blob: 57259ceb8960b641309382d5648477a333ae72bf [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
cristyec6934f2012-08-14 18:38:40 +0000706SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000708RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000709RMDelegate
710RLEEncodeDelegate
711PSDelegate
712POVDelegate
713PGPDecodeDelegate
714PCLDelegate
715MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000716MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717MPEGEncodeDelegate
718MPEGDecodeDelegate
719MANDelegate
720LaunchDelegate
721LZWEncodeDelegate
722LZWDecodeDelegate
723LPRDelegate
724LPDelegate
725ILBMEncodeDelegate
726ILBMDecodeDelegate
727HTMLDecodeDelegate
728HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000729GnuplotDecodeDelegate
730MogrifyDelegate
731DisplayDelegate
732ConvertDelegate
733FIGDecodeDelegate
734EditorDelegate
735EchoDelegate
736DVIDecodeDelegate
737GVCDecodeDelegate
738DNGDecodeDelegate
739CatDelegate
740CGMDecodeDelegate
741BrowseDelegate
742BZIPDelegate
743BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000744AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000745SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000746SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000747CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
750CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000751LIBRARY_PATH
752EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000753INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000754PERLMAINCC
755XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756XML_DELEGATE_FALSE
757XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000758xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000759WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000760WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761WMF_DELEGATE_FALSE
762WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000763WEBP_LIBS
764WEBP_DELEGATE_FALSE
765WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767TIFF_DELEGATE_FALSE
768TIFF_DELEGATE_TRUE
769CAIRO_DELEGATE_FALSE
770CAIRO_DELEGATE_TRUE
771RSVG_DELEGATE_FALSE
772RSVG_DELEGATE_TRUE
773CAIRO_SVG_LIBS
774CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000775RSVG_LIBS
776RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000777PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778PNG_DELEGATE_FALSE
779PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000780PANGOCAIRO_DELEGATE_FALSE
781PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000782PANGO_DELEGATE_FALSE
783PANGO_DELEGATE_TRUE
784PANGO_LIBS
785PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000786OPENEXR_DELEGATE_FALSE
787OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000788OPENEXR_LIBS
789OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000790LZMA_DELEGATE_FALSE
791LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000792LZMA_LIBS
793LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000794LQR_DELEGATE_FALSE
795LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796LQR_LIBS
797LQR_CFLAGS
798LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799LCMS_DELEGATE_FALSE
800LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802JP2_DELEGATE_FALSE
803JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805JPEG_DELEGATE_FALSE
806JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808JBIG_DELEGATE_FALSE
809JBIG_DELEGATE_TRUE
810GVC_DELEGATE_FALSE
811GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812GVC_LIBS
813GVC_CFLAGS
814GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815GS_DELEGATE_FALSE
816GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818FREETYPE_DELEGATE_FALSE
819FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000820freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000821FONTCONFIG_DELEGATE_FALSE
822FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823FONTCONFIG_LIBS
824FONTCONFIG_CFLAGS
825FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826FPX_DELEGATE_FALSE
827FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829FFTW_DELEGATE_FALSE
830FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832DJVU_DELEGATE_FALSE
833DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835DPS_DELEGATE_FALSE
836DPS_DELEGATE_TRUE
837AUTOTRACE_DELEGATE_FALSE
838AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839AUTOTRACE_LIBS
840AUTOTRACE_CFLAGS
841LIB_DL
842ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843ZLIB_DELEGATE_FALSE
844ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845XEXT_LIBS
846X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847X11_DELEGATE_FALSE
848X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849X_EXTRA_LIBS
850X_LIBS
851X_PRE_LIBS
852X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000853XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000854BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855BZLIB_DELEGATE_FALSE
856BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857CCMALLOCDelegate
858UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000859HasUMEM_FALSE
860HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861THREAD_LIBS
862GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000863WITH_MAGICK_PLUS_PLUS_FALSE
864WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000865OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000866MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000867POW_LIB
868LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000873UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000876INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000877UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000879INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000880INT32_T
881UINT16_T
882INT16_T
883UINT8_T
884INT8_T
885LIBRARY_EXTRA_CPPFLAGS
886MODULE_EXTRA_CPPFLAGS
887LIBSTDCLDFLAGS
888PERL_MAKE_OPTIONS
889QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000890LEGACY_SUPPORT_FALSE
891LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000892MAINT
893MAINTAINER_MODE_FALSE
894MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000895MAGICK_HDRI
896DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000897WITH_LTDL_FALSE
898WITH_LTDL_TRUE
899WITH_MODULES_FALSE
900WITH_MODULES_TRUE
901WITH_SHARED_LIBS_FALSE
902WITH_SHARED_LIBS_TRUE
903LTDLOPEN
904LT_CONFIG_H
905CONVENIENCE_LTDL_FALSE
906CONVENIENCE_LTDL_TRUE
907INSTALL_LTDL_FALSE
908INSTALL_LTDL_TRUE
909ARGZ_H
910sys_symbol_underscore
911LIBADD_DL
912LT_DLPREOPEN
913LIBADD_DLD_LINK
914LIBADD_SHL_LOAD
915LIBADD_DLOPEN
916LT_DLLOADERS
917INCLTDL
918LTDLINCL
919LTDLDEPS
920LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000921LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000922CXXCPP
923OTOOL64
924OTOOL
925LIPO
926NMEDIT
927DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000928MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000929RANLIB
cristyda16f162011-02-19 23:52:17 +0000930ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000931AR
932NM
933ac_ct_DUMPBIN
934DUMPBIN
935LIBTOOL
936OBJDUMP
937DLLTOOL
938AS
cristy3ed852e2009-09-05 21:47:34 +0000939LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000940CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000941CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000942OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000943PTHREAD_CFLAGS
944PTHREAD_LIBS
945PTHREAD_CC
946ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000947SHAREARCH_DIR
948INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000949WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000950USING_CL_FALSE
951USING_CL_TRUE
952CYGWIN_BUILD_FALSE
953CYGWIN_BUILD_TRUE
954WIN32_NATIVE_BUILD_FALSE
955WIN32_NATIVE_BUILD_TRUE
956WINGDI32_DELEGATE_FALSE
957WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000958GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000959PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000960PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000961LN_S
cristy3ed852e2009-09-05 21:47:34 +0000962LD
cristy73bd4a52010-10-05 11:24:23 +0000963FGREP
964SED
965am__fastdepCXX_FALSE
966am__fastdepCXX_TRUE
967CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000968ac_ct_CXX
969CXXFLAGS
970CXX
cristya0b81c32010-01-22 02:54:33 +0000971EGREP
972GREP
973CPP
cristy73bd4a52010-10-05 11:24:23 +0000974am__fastdepCC_FALSE
975am__fastdepCC_TRUE
976CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000977am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000978AMDEPBACKSLASH
979AMDEP_FALSE
980AMDEP_TRUE
981am__quote
982am__include
983DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000984OBJEXT
985EXEEXT
986ac_ct_CC
987CPPFLAGS
988LDFLAGS
989CFLAGS
990CC
991DIRSEP
992MAGICK_FILTER_MODULE_PATH
993MAGICK_CONFIGURE_BUILD_PATH
994MAGICK_CONFIGURE_SRC_PATH
995MAGICK_CODER_MODULE_PATH
996MAN_DIR
997INFO_DIR
998PERSISTINCLUDE_DIR
999INCLUDE_DIR
1000LIB_DIR
1001LOCALSTATE_DIR
1002SHAREDSTATE_DIR
1003SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001004DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001005DATA_DIR
1006LIBEXEC_DIR
1007SBIN_DIR
1008BIN_DIR
1009EXEC_PREFIX_DIR
1010PREFIX_DIR
1011CONFIG_STATUS_DEPENDENCIES
1012MAGICK_LIB_VERSION_NUMBER
1013MAGICK_LIB_VERSION_TEXT
1014MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001015AM_BACKSLASH
1016AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001017AM_DEFAULT_V
1018AM_V
cristy73bd4a52010-10-05 11:24:23 +00001019am__untar
1020am__tar
1021AMTAR
1022am__leading_dot
1023SET_MAKE
1024AWK
1025mkdir_p
1026MKDIR_P
1027INSTALL_STRIP_PROGRAM
1028STRIP
1029install_sh
1030MAKEINFO
1031AUTOHEADER
1032AUTOMAKE
1033AUTOCONF
1034ACLOCAL
1035VERSION
1036PACKAGE
1037CYGPATH_W
1038am__isrc
1039INSTALL_DATA
1040INSTALL_SCRIPT
1041INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001042PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001043PACKAGE_RELEASE_DATE
1044PACKAGE_LIB_VERSION_NUMBER
1045PACKAGE_LIB_VERSION
1046PACKAGE_CHANGE_DATE
1047PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001048PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001049MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001055MAGICK_TARGET_OS
1056MAGICK_TARGET_VENDOR
1057MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001058target_os
1059target_vendor
1060target_cpu
1061target
1062host_os
1063host_vendor
1064host_cpu
1065host
1066build_os
1067build_vendor
1068build_cpu
1069build
1070CONFIGURE_ARGS
1071DISTCHECK_CONFIG_FLAGS
1072target_alias
1073host_alias
1074build_alias
1075LIBS
1076ECHO_T
1077ECHO_N
1078ECHO_C
1079DEFS
1080mandir
1081localedir
1082libdir
1083psdir
1084pdfdir
1085dvidir
1086htmldir
1087infodir
1088docdir
1089oldincludedir
1090includedir
1091localstatedir
1092sharedstatedir
1093sysconfdir
1094datadir
1095datarootdir
1096libexecdir
1097sbindir
1098bindir
1099program_transform_name
1100prefix
1101exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001102PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001103PACKAGE_BUGREPORT
1104PACKAGE_STRING
1105PACKAGE_VERSION
1106PACKAGE_TARNAME
1107PACKAGE_NAME
1108PATH_SEPARATOR
1109SHELL'
1110ac_subst_files=''
1111ac_user_opts='
1112enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001113enable_silent_rules
1114enable_dependency_tracking
1115with_gnu_ld
1116with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001117with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001118enable_bounds_checking
1119enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001120with_includearch_dir
1121with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001122with_threads
1123enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001124enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001125enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001126enable_shared
1127enable_static
1128with_pic
1129enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001130with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001131enable_libtool_lock
1132with_included_ltdl
1133with_ltdl_include
1134with_ltdl_lib
1135enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001136with_modules
1137enable_delegate_build
1138enable_deprecated
1139enable_installed
1140enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001141enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001142enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001143enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001144enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001145enable_ccmalloc
1146enable_efence
1147enable_prof
1148enable_gprof
1149enable_gcov
1150with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001151enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001152with_quantum_depth
1153with_cache
1154with_frozenpaths
1155with_magick_plus_plus
1156with_perl
1157with_perl_options
1158with_umem
1159with_libstdc
1160with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001161with_x
cristy3ed852e2009-09-05 21:47:34 +00001162with_zlib
1163with_autotrace
1164with_dps
1165with_djvu
cristy430a7312010-01-21 20:44:04 +00001166with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001167with_fftw
1168with_fpx
1169with_fontconfig
1170with_freetype
1171with_gslib
1172with_fontpath
1173with_gs_font_dir
1174with_gvc
1175with_jbig
1176with_jpeg
1177with_jp2
1178with_lcms
cristy71203402010-06-18 13:12:03 +00001179with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001180with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001181with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001182with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001183with_pango
cristy3ed852e2009-09-05 21:47:34 +00001184with_png
1185with_rsvg
1186with_tiff
cristyb1860752011-03-14 00:27:46 +00001187with_webp
cristy3ed852e2009-09-05 21:47:34 +00001188with_windows_font_dir
1189with_wmf
1190with_xml
1191'
1192 ac_precious_vars='build_alias
1193host_alias
1194target_alias
1195CC
1196CFLAGS
1197LDFLAGS
1198LIBS
1199CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001200CPP
cristy3ed852e2009-09-05 21:47:34 +00001201CXX
1202CXXFLAGS
1203CCC
cristy73bd4a52010-10-05 11:24:23 +00001204PKG_CONFIG
1205CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001206XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001207AUTOTRACE_CFLAGS
1208AUTOTRACE_LIBS
1209FONTCONFIG_CFLAGS
1210FONTCONFIG_LIBS
1211GVC_CFLAGS
1212GVC_LIBS
1213LQR_CFLAGS
1214LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001215LZMA_CFLAGS
1216LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001217OPENEXR_CFLAGS
1218OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001219PANGO_CFLAGS
1220PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221RSVG_CFLAGS
1222RSVG_LIBS
1223CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001224CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001225
1226
1227# Initialize some variables set by options.
1228ac_init_help=
1229ac_init_version=false
1230ac_unrecognized_opts=
1231ac_unrecognized_sep=
1232# The variables have the same names as the options, with
1233# dashes changed to underlines.
1234cache_file=/dev/null
1235exec_prefix=NONE
1236no_create=
1237no_recursion=
1238prefix=NONE
1239program_prefix=NONE
1240program_suffix=NONE
1241program_transform_name=s,x,x,
1242silent=
1243site=
1244srcdir=
1245verbose=
1246x_includes=NONE
1247x_libraries=NONE
1248
1249# Installation directory options.
1250# These are left unexpanded so users can "make install exec_prefix=/foo"
1251# and all the variables that are supposed to be based on exec_prefix
1252# by default will actually change.
1253# Use braces instead of parens because sh, perl, etc. also accept them.
1254# (The list follows the same order as the GNU Coding Standards.)
1255bindir='${exec_prefix}/bin'
1256sbindir='${exec_prefix}/sbin'
1257libexecdir='${exec_prefix}/libexec'
1258datarootdir='${prefix}/share'
1259datadir='${datarootdir}'
1260sysconfdir='${prefix}/etc'
1261sharedstatedir='${prefix}/com'
1262localstatedir='${prefix}/var'
1263includedir='${prefix}/include'
1264oldincludedir='/usr/include'
1265docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1266infodir='${datarootdir}/info'
1267htmldir='${docdir}'
1268dvidir='${docdir}'
1269pdfdir='${docdir}'
1270psdir='${docdir}'
1271libdir='${exec_prefix}/lib'
1272localedir='${datarootdir}/locale'
1273mandir='${datarootdir}/man'
1274
1275ac_prev=
1276ac_dashdash=
1277for ac_option
1278do
1279 # If the previous option needs an argument, assign it.
1280 if test -n "$ac_prev"; then
1281 eval $ac_prev=\$ac_option
1282 ac_prev=
1283 continue
1284 fi
1285
1286 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001287 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1288 *=) ac_optarg= ;;
1289 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001290 esac
1291
1292 # Accept the important Cygnus configure options, so we can diagnose typos.
1293
1294 case $ac_dashdash$ac_option in
1295 --)
1296 ac_dashdash=yes ;;
1297
1298 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1299 ac_prev=bindir ;;
1300 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1301 bindir=$ac_optarg ;;
1302
1303 -build | --build | --buil | --bui | --bu)
1304 ac_prev=build_alias ;;
1305 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1306 build_alias=$ac_optarg ;;
1307
1308 -cache-file | --cache-file | --cache-fil | --cache-fi \
1309 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1310 ac_prev=cache_file ;;
1311 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1312 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1313 cache_file=$ac_optarg ;;
1314
1315 --config-cache | -C)
1316 cache_file=config.cache ;;
1317
1318 -datadir | --datadir | --datadi | --datad)
1319 ac_prev=datadir ;;
1320 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1321 datadir=$ac_optarg ;;
1322
1323 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1324 | --dataroo | --dataro | --datar)
1325 ac_prev=datarootdir ;;
1326 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1327 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1328 datarootdir=$ac_optarg ;;
1329
1330 -disable-* | --disable-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001334 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"enable_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval enable_$ac_useropt=no ;;
1345
1346 -docdir | --docdir | --docdi | --doc | --do)
1347 ac_prev=docdir ;;
1348 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1349 docdir=$ac_optarg ;;
1350
1351 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1352 ac_prev=dvidir ;;
1353 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1354 dvidir=$ac_optarg ;;
1355
1356 -enable-* | --enable-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001360 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1364 *"
1365"enable_$ac_useropt"
1366"*) ;;
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1369 esac
1370 eval enable_$ac_useropt=\$ac_optarg ;;
1371
1372 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1373 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1374 | --exec | --exe | --ex)
1375 ac_prev=exec_prefix ;;
1376 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1377 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1378 | --exec=* | --exe=* | --ex=*)
1379 exec_prefix=$ac_optarg ;;
1380
1381 -gas | --gas | --ga | --g)
1382 # Obsolete; use --with-gas.
1383 with_gas=yes ;;
1384
1385 -help | --help | --hel | --he | -h)
1386 ac_init_help=long ;;
1387 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1388 ac_init_help=recursive ;;
1389 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1390 ac_init_help=short ;;
1391
1392 -host | --host | --hos | --ho)
1393 ac_prev=host_alias ;;
1394 -host=* | --host=* | --hos=* | --ho=*)
1395 host_alias=$ac_optarg ;;
1396
1397 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1398 ac_prev=htmldir ;;
1399 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1400 | --ht=*)
1401 htmldir=$ac_optarg ;;
1402
1403 -includedir | --includedir | --includedi | --included | --include \
1404 | --includ | --inclu | --incl | --inc)
1405 ac_prev=includedir ;;
1406 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1407 | --includ=* | --inclu=* | --incl=* | --inc=*)
1408 includedir=$ac_optarg ;;
1409
1410 -infodir | --infodir | --infodi | --infod | --info | --inf)
1411 ac_prev=infodir ;;
1412 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1413 infodir=$ac_optarg ;;
1414
1415 -libdir | --libdir | --libdi | --libd)
1416 ac_prev=libdir ;;
1417 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1418 libdir=$ac_optarg ;;
1419
1420 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1421 | --libexe | --libex | --libe)
1422 ac_prev=libexecdir ;;
1423 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1424 | --libexe=* | --libex=* | --libe=*)
1425 libexecdir=$ac_optarg ;;
1426
1427 -localedir | --localedir | --localedi | --localed | --locale)
1428 ac_prev=localedir ;;
1429 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1430 localedir=$ac_optarg ;;
1431
1432 -localstatedir | --localstatedir | --localstatedi | --localstated \
1433 | --localstate | --localstat | --localsta | --localst | --locals)
1434 ac_prev=localstatedir ;;
1435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1436 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1437 localstatedir=$ac_optarg ;;
1438
1439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1440 ac_prev=mandir ;;
1441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1442 mandir=$ac_optarg ;;
1443
1444 -nfp | --nfp | --nf)
1445 # Obsolete; use --without-fp.
1446 with_fp=no ;;
1447
1448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1449 | --no-cr | --no-c | -n)
1450 no_create=yes ;;
1451
1452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1454 no_recursion=yes ;;
1455
1456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1458 | --oldin | --oldi | --old | --ol | --o)
1459 ac_prev=oldincludedir ;;
1460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1463 oldincludedir=$ac_optarg ;;
1464
1465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1466 ac_prev=prefix ;;
1467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1468 prefix=$ac_optarg ;;
1469
1470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1471 | --program-pre | --program-pr | --program-p)
1472 ac_prev=program_prefix ;;
1473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1475 program_prefix=$ac_optarg ;;
1476
1477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1478 | --program-suf | --program-su | --program-s)
1479 ac_prev=program_suffix ;;
1480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1482 program_suffix=$ac_optarg ;;
1483
1484 -program-transform-name | --program-transform-name \
1485 | --program-transform-nam | --program-transform-na \
1486 | --program-transform-n | --program-transform- \
1487 | --program-transform | --program-transfor \
1488 | --program-transfo | --program-transf \
1489 | --program-trans | --program-tran \
1490 | --progr-tra | --program-tr | --program-t)
1491 ac_prev=program_transform_name ;;
1492 -program-transform-name=* | --program-transform-name=* \
1493 | --program-transform-nam=* | --program-transform-na=* \
1494 | --program-transform-n=* | --program-transform-=* \
1495 | --program-transform=* | --program-transfor=* \
1496 | --program-transfo=* | --program-transf=* \
1497 | --program-trans=* | --program-tran=* \
1498 | --progr-tra=* | --program-tr=* | --program-t=*)
1499 program_transform_name=$ac_optarg ;;
1500
1501 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1502 ac_prev=pdfdir ;;
1503 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1504 pdfdir=$ac_optarg ;;
1505
1506 -psdir | --psdir | --psdi | --psd | --ps)
1507 ac_prev=psdir ;;
1508 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1509 psdir=$ac_optarg ;;
1510
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 silent=yes ;;
1514
1515 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1516 ac_prev=sbindir ;;
1517 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1518 | --sbi=* | --sb=*)
1519 sbindir=$ac_optarg ;;
1520
1521 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1522 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1523 | --sharedst | --shareds | --shared | --share | --shar \
1524 | --sha | --sh)
1525 ac_prev=sharedstatedir ;;
1526 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1527 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1528 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1529 | --sha=* | --sh=*)
1530 sharedstatedir=$ac_optarg ;;
1531
1532 -site | --site | --sit)
1533 ac_prev=site ;;
1534 -site=* | --site=* | --sit=*)
1535 site=$ac_optarg ;;
1536
1537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1538 ac_prev=srcdir ;;
1539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1540 srcdir=$ac_optarg ;;
1541
1542 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1543 | --syscon | --sysco | --sysc | --sys | --sy)
1544 ac_prev=sysconfdir ;;
1545 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1546 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1547 sysconfdir=$ac_optarg ;;
1548
1549 -target | --target | --targe | --targ | --tar | --ta | --t)
1550 ac_prev=target_alias ;;
1551 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1552 target_alias=$ac_optarg ;;
1553
1554 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1555 verbose=yes ;;
1556
1557 -version | --version | --versio | --versi | --vers | -V)
1558 ac_init_version=: ;;
1559
1560 -with-* | --with-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1568 *"
1569"with_$ac_useropt"
1570"*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval with_$ac_useropt=\$ac_optarg ;;
1575
1576 -without-* | --without-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001581 ac_useropt_orig=$ac_useropt
1582 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583 case $ac_user_opts in
1584 *"
1585"with_$ac_useropt"
1586"*) ;;
1587 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1588 ac_unrecognized_sep=', ';;
1589 esac
1590 eval with_$ac_useropt=no ;;
1591
1592 --x)
1593 # Obsolete; use --with-x.
1594 with_x=yes ;;
1595
1596 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1597 | --x-incl | --x-inc | --x-in | --x-i)
1598 ac_prev=x_includes ;;
1599 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1600 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1601 x_includes=$ac_optarg ;;
1602
1603 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1604 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1605 ac_prev=x_libraries ;;
1606 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1607 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1608 x_libraries=$ac_optarg ;;
1609
cristy98dddb52010-11-04 00:30:15 +00001610 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1611Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001612 ;;
1613
1614 *=*)
1615 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1616 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001617 case $ac_envvar in #(
1618 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001620 esac
cristy3ed852e2009-09-05 21:47:34 +00001621 eval $ac_envvar=\$ac_optarg
1622 export $ac_envvar ;;
1623
1624 *)
1625 # FIXME: should be removed in autoconf 3.0.
1626 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1627 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1628 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001629 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001630 ;;
1631
1632 esac
1633done
1634
1635if test -n "$ac_prev"; then
1636 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001638fi
1639
1640if test -n "$ac_unrecognized_opts"; then
1641 case $enable_option_checking in
1642 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001643 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001644 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1645 esac
1646fi
1647
1648# Check all directory arguments for consistency.
1649for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1650 datadir sysconfdir sharedstatedir localstatedir includedir \
1651 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1652 libdir localedir mandir
1653do
1654 eval ac_val=\$$ac_var
1655 # Remove trailing slashes.
1656 case $ac_val in
1657 */ )
1658 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1659 eval $ac_var=\$ac_val;;
1660 esac
1661 # Be sure to have absolute directory names.
1662 case $ac_val in
1663 [\\/$]* | ?:[\\/]* ) continue;;
1664 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1665 esac
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001667done
1668
1669# There might be people who depend on the old broken behavior: `$host'
1670# used to hold the argument of --host etc.
1671# FIXME: To remove some day.
1672build=$build_alias
1673host=$host_alias
1674target=$target_alias
1675
1676# FIXME: To remove some day.
1677if test "x$host_alias" != x; then
1678 if test "x$build_alias" = x; then
1679 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001680 elif test "x$build_alias" != "x$host_alias"; then
1681 cross_compiling=yes
1682 fi
1683fi
1684
1685ac_tool_prefix=
1686test -n "$host_alias" && ac_tool_prefix=$host_alias-
1687
1688test "$silent" = yes && exec 6>/dev/null
1689
1690
1691ac_pwd=`pwd` && test -n "$ac_pwd" &&
1692ac_ls_di=`ls -di .` &&
1693ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001695test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001696 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001697
1698
1699# Find the source files, if location was not specified.
1700if test -z "$srcdir"; then
1701 ac_srcdir_defaulted=yes
1702 # Try the directory containing this script, then the parent directory.
1703 ac_confdir=`$as_dirname -- "$as_myself" ||
1704$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1705 X"$as_myself" : 'X\(//\)[^/]' \| \
1706 X"$as_myself" : 'X\(//\)$' \| \
1707 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1708$as_echo X"$as_myself" |
1709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1710 s//\1/
1711 q
1712 }
1713 /^X\(\/\/\)[^/].*/{
1714 s//\1/
1715 q
1716 }
1717 /^X\(\/\/\)$/{
1718 s//\1/
1719 q
1720 }
1721 /^X\(\/\).*/{
1722 s//\1/
1723 q
1724 }
1725 s/.*/./; q'`
1726 srcdir=$ac_confdir
1727 if test ! -r "$srcdir/$ac_unique_file"; then
1728 srcdir=..
1729 fi
1730else
1731 ac_srcdir_defaulted=no
1732fi
1733if test ! -r "$srcdir/$ac_unique_file"; then
1734 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001735 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001736fi
1737ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1738ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001739 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001740 pwd)`
1741# When building in place, set srcdir=.
1742if test "$ac_abs_confdir" = "$ac_pwd"; then
1743 srcdir=.
1744fi
1745# Remove unnecessary trailing slashes from srcdir.
1746# Double slashes in file names in object file debugging info
1747# mess up M-x gdb in Emacs.
1748case $srcdir in
1749*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1750esac
1751for ac_var in $ac_precious_vars; do
1752 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_env_${ac_var}_value=\$${ac_var}
1754 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1756done
1757
1758#
1759# Report the --help message.
1760#
1761if test "$ac_init_help" = "long"; then
1762 # Omit some internal or obsolete options to make the list less imposing.
1763 # This message is too long to be a string in the A/UX 3.1 sh.
1764 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001765\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001766
1767Usage: $0 [OPTION]... [VAR=VALUE]...
1768
1769To assign environment variables (e.g., CC, CFLAGS...), specify them as
1770VAR=VALUE. See below for descriptions of some of the useful variables.
1771
1772Defaults for the options are specified in brackets.
1773
1774Configuration:
1775 -h, --help display this help and exit
1776 --help=short display options specific to this package
1777 --help=recursive display the short help of all the included packages
1778 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001779 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001780 --cache-file=FILE cache test results in FILE [disabled]
1781 -C, --config-cache alias for \`--cache-file=config.cache'
1782 -n, --no-create do not create output files
1783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1784
1785Installation directories:
1786 --prefix=PREFIX install architecture-independent files in PREFIX
1787 [$ac_default_prefix]
1788 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1789 [PREFIX]
1790
1791By default, \`make install' will install all the files in
1792\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1793an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1794for instance \`--prefix=\$HOME'.
1795
1796For better control, use the options below.
1797
1798Fine tuning of the installation directories:
1799 --bindir=DIR user executables [EPREFIX/bin]
1800 --sbindir=DIR system admin executables [EPREFIX/sbin]
1801 --libexecdir=DIR program executables [EPREFIX/libexec]
1802 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1803 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1804 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1805 --libdir=DIR object code libraries [EPREFIX/lib]
1806 --includedir=DIR C header files [PREFIX/include]
1807 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1808 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1809 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1810 --infodir=DIR info documentation [DATAROOTDIR/info]
1811 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1812 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001813 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001814 --htmldir=DIR html documentation [DOCDIR]
1815 --dvidir=DIR dvi documentation [DOCDIR]
1816 --pdfdir=DIR pdf documentation [DOCDIR]
1817 --psdir=DIR ps documentation [DOCDIR]
1818_ACEOF
1819
1820 cat <<\_ACEOF
1821
cristy73bd4a52010-10-05 11:24:23 +00001822Program names:
1823 --program-prefix=PREFIX prepend PREFIX to installed program names
1824 --program-suffix=SUFFIX append SUFFIX to installed program names
1825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1826
cristy3ed852e2009-09-05 21:47:34 +00001827X features:
1828 --x-includes=DIR X include files are in DIR
1829 --x-libraries=DIR X library files are in DIR
1830
1831System types:
1832 --build=BUILD configure for building on BUILD [guessed]
1833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1834 --target=TARGET configure for building compilers for TARGET [HOST]
1835_ACEOF
1836fi
1837
1838if test -n "$ac_init_help"; then
1839 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001840 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001841 esac
1842 cat <<\_ACEOF
1843
1844Optional Features:
1845 --disable-option-checking ignore unrecognized --enable/--with options
1846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-dependency-tracking
1851 do not reject slow dependency extractors
1852 --disable-dependency-tracking
1853 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001854 --enable-bounds-checking
1855 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001856 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001857 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001859 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001860 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001861 --enable-shared[=PKGS] build shared libraries [default=yes]
1862 --enable-static[=PKGS] build static libraries [default=yes]
1863 --enable-fast-install[=PKGS]
1864 optimize for fast installation [default=yes]
1865 --disable-libtool-lock avoid locking (might break parallel builds)
1866 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-delegate-build look for delegate libraries in build directory
1868 --disable-deprecated exclude deprecated methods in MagickCore and
1869 MagickWand API's
1870 --disable-installed Formally install ImageMagick under PREFIX
1871 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001872 --enable-zero-configuration
1873 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001874 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001875 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001876 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001878 --enable-maintainer-mode
1879 enable make rules and dependencies not useful (and
1880 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001881 --enable-ccmalloc enable 'ccmalloc' memory debug support
1882 --enable-efence enable 'efence' memory debug support
1883 --enable-prof enable 'prof' profiling support
1884 --enable-gprof enable 'gprof' profiling support
1885 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001886 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001887 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001888
1889Optional Packages:
1890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001892 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001893 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001894 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1895 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001896 --includearch-dir=DIR ARCH specific include directory
1897 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001898 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001899 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001900 both]
cristyda16f162011-02-19 23:52:17 +00001901 --with-sysroot=DIR Search for dependent libraries within DIR
1902 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001903 --with-included-ltdl use the GNU ltdl sources included here
1904 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1905 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-modules enable building dynamically loadable modules
1907 --with-method-prefix=PREFIX
1908 prefix MagickCore API methods
1909 --with-quantum-depth=DEPTH
1910 number of bits in a pixel quantum (default 16)
1911 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1912 memory)
1913 --with-frozenpaths freeze delegate paths
1914 --without-magick-plus-plus
1915 disable build/install of Magick++
1916 --with-perl enable build/install of PerlMagick
1917 --with-perl-options=OPTIONS
1918 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001919 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-umem enable umem memory allocation library support
1921 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1922 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001923 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-zlib disable ZLIB support
1925 --with-autotrace enable autotrace support
1926 --without-dps disable Display Postscript support
1927 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001928 --with-dejavu-font-dir=DIR
1929 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-fftw disable FFTW support
1931 --without-fpx disable FlashPIX support
1932 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001933 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001934 --without-gslib enable Ghostscript library support
1935 --with-fontpath=DIR prepend to default font search path
1936 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001937 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-jbig disable JBIG support
1939 --without-jpeg disable JPEG support
1940 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001941 --without-lcms disable lcms (v1.1X) support
1942 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001943 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001944 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001945 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001946 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-png disable PNG support
1948 --without-rsvg disable RSVG support
1949 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001950 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-windows-font-dir=DIR
1952 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001953 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-xml disable XML support
1955
1956Some influential environment variables:
1957 CC C compiler command
1958 CFLAGS C compiler flags
1959 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1960 nonstandard directory <lib dir>
1961 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001962 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001963 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001964 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001965 CXX C++ compiler command
1966 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001967 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001968 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001969 XMKMF Path to xmkmf, Makefile generator for X Window System
1970 AUTOTRACE_CFLAGS
1971 C compiler flags for AUTOTRACE, overriding pkg-config
1972 AUTOTRACE_LIBS
1973 linker flags for AUTOTRACE, overriding pkg-config
1974 FONTCONFIG_CFLAGS
1975 C compiler flags for FONTCONFIG, overriding pkg-config
1976 FONTCONFIG_LIBS
1977 linker flags for FONTCONFIG, overriding pkg-config
1978 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1979 GVC_LIBS linker flags for GVC, overriding pkg-config
1980 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1981 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001982 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1983 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001984 OPENEXR_CFLAGS
1985 C compiler flags for OPENEXR, overriding pkg-config
1986 OPENEXR_LIBS
1987 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001988 PANGO_CFLAGS
1989 C compiler flags for PANGO, overriding pkg-config
1990 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001991 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1992 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1993 CAIRO_SVG_CFLAGS
1994 C compiler flags for CAIRO_SVG, overriding pkg-config
1995 CAIRO_SVG_LIBS
1996 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001997
1998Use these variables to override the choices made by `configure' or to help
1999it to find libraries and programs with nonstandard names/locations.
2000
2001Report bugs to <http://www.imagemagick.org>.
2002_ACEOF
2003ac_status=$?
2004fi
2005
2006if test "$ac_init_help" = "recursive"; then
2007 # If there are subdirs, report their specific --help.
2008 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2009 test -d "$ac_dir" ||
2010 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2011 continue
2012 ac_builddir=.
2013
2014case "$ac_dir" in
2015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2016*)
2017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2018 # A ".." for each directory in $ac_dir_suffix.
2019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2020 case $ac_top_builddir_sub in
2021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2023 esac ;;
2024esac
2025ac_abs_top_builddir=$ac_pwd
2026ac_abs_builddir=$ac_pwd$ac_dir_suffix
2027# for backward compatibility:
2028ac_top_builddir=$ac_top_build_prefix
2029
2030case $srcdir in
2031 .) # We are building in place.
2032 ac_srcdir=.
2033 ac_top_srcdir=$ac_top_builddir_sub
2034 ac_abs_top_srcdir=$ac_pwd ;;
2035 [\\/]* | ?:[\\/]* ) # Absolute name.
2036 ac_srcdir=$srcdir$ac_dir_suffix;
2037 ac_top_srcdir=$srcdir
2038 ac_abs_top_srcdir=$srcdir ;;
2039 *) # Relative name.
2040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2041 ac_top_srcdir=$ac_top_build_prefix$srcdir
2042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2043esac
2044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2045
2046 cd "$ac_dir" || { ac_status=$?; continue; }
2047 # Check for guested configure.
2048 if test -f "$ac_srcdir/configure.gnu"; then
2049 echo &&
2050 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2051 elif test -f "$ac_srcdir/configure"; then
2052 echo &&
2053 $SHELL "$ac_srcdir/configure" --help=recursive
2054 else
2055 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2056 fi || ac_status=$?
2057 cd "$ac_pwd" || { ac_status=$?; break; }
2058 done
2059fi
2060
2061test -n "$ac_init_help" && exit $ac_status
2062if $ac_init_version; then
2063 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002064ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002065generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002066
cristy14fefe52012-05-21 00:59:18 +00002067Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002068This configure script is free software; the Free Software Foundation
2069gives unlimited permission to copy, distribute and modify it.
2070_ACEOF
2071 exit
2072fi
cristy8b350f62009-11-15 23:12:43 +00002073
2074## ------------------------ ##
2075## Autoconf initialization. ##
2076## ------------------------ ##
2077
2078# ac_fn_c_try_compile LINENO
2079# --------------------------
2080# Try to compile conftest.$ac_ext, and return whether this succeeded.
2081ac_fn_c_try_compile ()
2082{
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext
2085 if { { ac_try="$ac_compile"
2086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
2090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091$as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_compile") 2>conftest.err
2093 ac_status=$?
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2098 fi
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest.$ac_objext; then :
2104 ac_retval=0
2105else
2106 $as_echo "$as_me: failed program was:" >&5
2107sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_retval=1
2110fi
cristyda16f162011-02-19 23:52:17 +00002111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002112 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002113
2114} # ac_fn_c_try_compile
2115
cristy95646052009-11-28 23:05:30 +00002116# ac_fn_c_try_cpp LINENO
2117# ----------------------
2118# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2119ac_fn_c_try_cpp ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if { { ac_try="$ac_cpp conftest.$ac_ext"
2123case "(($ac_try" in
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2126esac
2127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128$as_echo "$ac_try_echo"; } >&5
2129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2130 ac_status=$?
2131 if test -s conftest.err; then
2132 grep -v '^ *+' conftest.err >conftest.er1
2133 cat conftest.er1 >&5
2134 mv -f conftest.er1 conftest.err
2135 fi
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002137 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2139 test ! -s conftest.err
2140 }; then :
2141 ac_retval=0
2142else
2143 $as_echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146 ac_retval=1
2147fi
cristyda16f162011-02-19 23:52:17 +00002148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002149 as_fn_set_status $ac_retval
2150
2151} # ac_fn_c_try_cpp
2152
cristy8b350f62009-11-15 23:12:43 +00002153# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2154# -------------------------------------------------------
2155# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2156# the include files in INCLUDES and setting the cache variable VAR
2157# accordingly.
2158ac_fn_c_check_header_mongrel ()
2159{
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002161 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002164if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002165 $as_echo_n "(cached) " >&6
2166fi
2167eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169$as_echo "$ac_res" >&6; }
2170else
2171 # Is the header compilable?
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2173$as_echo_n "checking $2 usability... " >&6; }
2174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177#include <$2>
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_header_compiler=yes
2181else
2182 ac_header_compiler=no
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2186$as_echo "$ac_header_compiler" >&6; }
2187
2188# Is the header present?
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2190$as_echo_n "checking $2 presence... " >&6; }
2191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h. */
2193#include <$2>
2194_ACEOF
2195if ac_fn_c_try_cpp "$LINENO"; then :
2196 ac_header_preproc=yes
2197else
2198 ac_header_preproc=no
2199fi
cristyda16f162011-02-19 23:52:17 +00002200rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2202$as_echo "$ac_header_preproc" >&6; }
2203
2204# So? What about this header?
2205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2206 yes:no: )
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2208$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2210$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 ;;
2212 no:yes:* )
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2214$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2216$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2218$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2220$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002223( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002224## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002225## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002226 ) | sed "s/^/$as_me: WARNING: /" >&2
2227 ;;
2228esac
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002231if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002232 $as_echo_n "(cached) " >&6
2233else
2234 eval "$3=\$ac_header_compiler"
2235fi
2236eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238$as_echo "$ac_res" >&6; }
2239fi
cristyda16f162011-02-19 23:52:17 +00002240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002241
2242} # ac_fn_c_check_header_mongrel
2243
2244# ac_fn_c_try_run LINENO
2245# ----------------------
2246# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2247# that executables *can* be run.
2248ac_fn_c_try_run ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 if { { ac_try="$ac_link"
2252case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257$as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_link") 2>&5
2259 ac_status=$?
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2262 { { case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267$as_echo "$ac_try_echo"; } >&5
2268 (eval "$ac_try") 2>&5
2269 ac_status=$?
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; }; }; then :
2272 ac_retval=0
2273else
2274 $as_echo "$as_me: program exited with status $ac_status" >&5
2275 $as_echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_retval=$ac_status
2279fi
2280 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002282 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002283
2284} # ac_fn_c_try_run
2285
2286# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2287# -------------------------------------------------------
2288# Tests whether HEADER exists and can be compiled using the include files in
2289# INCLUDES, setting the cache variable VAR accordingly.
2290ac_fn_c_check_header_compile ()
2291{
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002295if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002296 $as_echo_n "(cached) " >&6
2297else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299/* end confdefs.h. */
2300$4
2301#include <$2>
2302_ACEOF
2303if ac_fn_c_try_compile "$LINENO"; then :
2304 eval "$3=yes"
2305else
2306 eval "$3=no"
2307fi
2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309fi
2310eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002314
2315} # ac_fn_c_check_header_compile
2316
cristya0b81c32010-01-22 02:54:33 +00002317# ac_fn_cxx_try_compile LINENO
2318# ----------------------------
2319# Try to compile conftest.$ac_ext, and return whether this succeeded.
2320ac_fn_cxx_try_compile ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 rm -f conftest.$ac_objext
2324 if { { ac_try="$ac_compile"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330$as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_compile") 2>conftest.err
2332 ac_status=$?
2333 if test -s conftest.err; then
2334 grep -v '^ *+' conftest.err >conftest.er1
2335 cat conftest.er1 >&5
2336 mv -f conftest.er1 conftest.err
2337 fi
2338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2339 test $ac_status = 0; } && {
2340 test -z "$ac_cxx_werror_flag" ||
2341 test ! -s conftest.err
2342 } && test -s conftest.$ac_objext; then :
2343 ac_retval=0
2344else
2345 $as_echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 ac_retval=1
2349fi
cristyda16f162011-02-19 23:52:17 +00002350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002351 as_fn_set_status $ac_retval
2352
2353} # ac_fn_cxx_try_compile
2354
cristy8b350f62009-11-15 23:12:43 +00002355# ac_fn_c_try_link LINENO
2356# -----------------------
2357# Try to link conftest.$ac_ext, and return whether this succeeded.
2358ac_fn_c_try_link ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext conftest$ac_exeext
2362 if { { ac_try="$ac_link"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368$as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2375 fi
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_c_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest$ac_exeext && {
2381 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002382 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002383 }; then :
2384 ac_retval=0
2385else
2386 $as_echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_retval=1
2390fi
2391 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2392 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2393 # interfere with the next link command; also delete a directory that is
2394 # left behind by Apple's compiler. We do this before executing the actions.
2395 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002397 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002398
2399} # ac_fn_c_try_link
2400
cristy73bd4a52010-10-05 11:24:23 +00002401# ac_fn_c_check_func LINENO FUNC VAR
2402# ----------------------------------
2403# Tests whether FUNC exists, setting the cache variable VAR accordingly
2404ac_fn_c_check_func ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002409if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002410 $as_echo_n "(cached) " >&6
2411else
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2416#define $2 innocuous_$2
2417
2418/* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $2 (); below.
2420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2421 <limits.h> exists even on freestanding compilers. */
2422
2423#ifdef __STDC__
2424# include <limits.h>
2425#else
2426# include <assert.h>
2427#endif
2428
2429#undef $2
2430
2431/* Override any GCC internal prototype to avoid an error.
2432 Use char because int might match the return type of a GCC
2433 builtin and then its argument prototype would still apply. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437char $2 ();
2438/* The GNU C library defines this for functions which it implements
2439 to always fail with ENOSYS. Some functions are actually named
2440 something starting with __ and the normal name is an alias. */
2441#if defined __stub_$2 || defined __stub___$2
2442choke me
2443#endif
2444
2445int
2446main ()
2447{
2448return $2 ();
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_link "$LINENO"; then :
2454 eval "$3=yes"
2455else
2456 eval "$3=no"
2457fi
2458rm -f core conftest.err conftest.$ac_objext \
2459 conftest$ac_exeext conftest.$ac_ext
2460fi
2461eval ac_res=\$$3
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002465
2466} # ac_fn_c_check_func
2467
2468# ac_fn_cxx_try_cpp LINENO
2469# ------------------------
2470# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2471ac_fn_cxx_try_cpp ()
2472{
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 if { { ac_try="$ac_cpp conftest.$ac_ext"
2475case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480$as_echo "$ac_try_echo"; } >&5
2481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2482 ac_status=$?
2483 if test -s conftest.err; then
2484 grep -v '^ *+' conftest.err >conftest.er1
2485 cat conftest.er1 >&5
2486 mv -f conftest.er1 conftest.err
2487 fi
2488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002489 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002490 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2491 test ! -s conftest.err
2492 }; then :
2493 ac_retval=0
2494else
2495 $as_echo "$as_me: failed program was:" >&5
2496sed 's/^/| /' conftest.$ac_ext >&5
2497
2498 ac_retval=1
2499fi
cristyda16f162011-02-19 23:52:17 +00002500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002501 as_fn_set_status $ac_retval
2502
2503} # ac_fn_cxx_try_cpp
2504
2505# ac_fn_cxx_try_link LINENO
2506# -------------------------
2507# Try to link conftest.$ac_ext, and return whether this succeeded.
2508ac_fn_cxx_try_link ()
2509{
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 rm -f conftest.$ac_objext conftest$ac_exeext
2512 if { { ac_try="$ac_link"
2513case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516esac
2517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518$as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_link") 2>conftest.err
2520 ac_status=$?
2521 if test -s conftest.err; then
2522 grep -v '^ *+' conftest.err >conftest.er1
2523 cat conftest.er1 >&5
2524 mv -f conftest.er1 conftest.err
2525 fi
2526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; } && {
2528 test -z "$ac_cxx_werror_flag" ||
2529 test ! -s conftest.err
2530 } && test -s conftest$ac_exeext && {
2531 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002532 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002533 }; then :
2534 ac_retval=0
2535else
2536 $as_echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_retval=1
2540fi
2541 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2542 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2543 # interfere with the next link command; also delete a directory that is
2544 # left behind by Apple's compiler. We do this before executing the actions.
2545 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002547 as_fn_set_status $ac_retval
2548
2549} # ac_fn_cxx_try_link
2550
cristy98dddb52010-11-04 00:30:15 +00002551# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2552# ---------------------------------------------
2553# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2554# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002555ac_fn_c_check_decl ()
2556{
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002558 as_decl_name=`echo $2|sed 's/ *(.*//'`
2559 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2561$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002562if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002563 $as_echo_n "(cached) " >&6
2564else
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
cristy98dddb52010-11-04 00:30:15 +00002571#ifndef $as_decl_name
2572#ifdef __cplusplus
2573 (void) $as_decl_use;
2574#else
2575 (void) $as_decl_name;
2576#endif
cristy73bd4a52010-10-05 11:24:23 +00002577#endif
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584 eval "$3=yes"
2585else
2586 eval "$3=no"
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002594
2595} # ac_fn_c_check_decl
2596
cristy8b350f62009-11-15 23:12:43 +00002597# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2598# -------------------------------------------
2599# Tests whether TYPE exists after having included INCLUDES, setting cache
2600# variable VAR accordingly.
2601ac_fn_c_check_type ()
2602{
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002606if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002607 $as_echo_n "(cached) " >&6
2608else
2609 eval "$3=no"
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h. */
2612$4
2613int
2614main ()
2615{
2616if (sizeof ($2))
2617 return 0;
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h. */
2625$4
2626int
2627main ()
2628{
2629if (sizeof (($2)))
2630 return 0;
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636
2637else
2638 eval "$3=yes"
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002648
2649} # ac_fn_c_check_type
2650
cristy92703d82010-04-26 00:18:18 +00002651# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2652# ----------------------------------------------------
2653# Tries to find if the field MEMBER exists in type AGGR, after including
2654# INCLUDES, setting cache variable VAR accordingly.
2655ac_fn_c_check_member ()
2656{
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2659$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002660if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002661 $as_echo_n "(cached) " >&6
2662else
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664/* end confdefs.h. */
2665$5
2666int
2667main ()
2668{
2669static $2 ac_aggr;
2670if (ac_aggr.$3)
2671return 0;
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676if ac_fn_c_try_compile "$LINENO"; then :
2677 eval "$4=yes"
2678else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681$5
2682int
2683main ()
2684{
2685static $2 ac_aggr;
2686if (sizeof ac_aggr.$3)
2687return 0;
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692if ac_fn_c_try_compile "$LINENO"; then :
2693 eval "$4=yes"
2694else
2695 eval "$4=no"
2696fi
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701eval ac_res=\$$4
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002705
2706} # ac_fn_c_check_member
2707
cristy501c8042011-05-26 17:46:28 +00002708# ac_fn_c_find_intX_t LINENO BITS VAR
2709# -----------------------------------
2710# Finds a signed integer type with width BITS, setting cache variable VAR
2711# accordingly.
2712ac_fn_c_find_intX_t ()
2713{
2714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2716$as_echo_n "checking for int$2_t... " >&6; }
2717if eval \${$3+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719else
2720 eval "$3=no"
2721 # Order is important - never check a type that is potentially smaller
2722 # than half of the expected target width.
2723 for ac_type in int$2_t 'int' 'long int' \
2724 'long long int' 'short int' 'signed char'; do
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726/* end confdefs.h. */
2727$ac_includes_default
2728 enum { N = $2 / 2 - 1 };
2729int
2730main ()
2731{
2732static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002733test_array [0] = 0;
2734return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740if ac_fn_c_try_compile "$LINENO"; then :
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742/* end confdefs.h. */
2743$ac_includes_default
2744 enum { N = $2 / 2 - 1 };
2745int
2746main ()
2747{
2748static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2749 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002750test_array [0] = 0;
2751return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757if ac_fn_c_try_compile "$LINENO"; then :
2758
2759else
2760 case $ac_type in #(
2761 int$2_t) :
2762 eval "$3=yes" ;; #(
2763 *) :
2764 eval "$3=\$ac_type" ;;
2765esac
2766fi
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768fi
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 if eval test \"x\$"$3"\" = x"no"; then :
2771
2772else
2773 break
2774fi
2775 done
2776fi
2777eval ac_res=\$$3
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779$as_echo "$ac_res" >&6; }
2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2781
2782} # ac_fn_c_find_intX_t
2783
2784# ac_fn_c_find_uintX_t LINENO BITS VAR
2785# ------------------------------------
2786# Finds an unsigned integer type with width BITS, setting cache variable VAR
2787# accordingly.
2788ac_fn_c_find_uintX_t ()
2789{
2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2792$as_echo_n "checking for uint$2_t... " >&6; }
2793if eval \${$3+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795else
2796 eval "$3=no"
2797 # Order is important - never check a type that is potentially smaller
2798 # than half of the expected target width.
2799 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2800 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802/* end confdefs.h. */
2803$ac_includes_default
2804int
2805main ()
2806{
2807static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002808test_array [0] = 0;
2809return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 case $ac_type in #(
2817 uint$2_t) :
2818 eval "$3=yes" ;; #(
2819 *) :
2820 eval "$3=\$ac_type" ;;
2821esac
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 if eval test \"x\$"$3"\" = x"no"; then :
2825
2826else
2827 break
2828fi
2829 done
2830fi
2831eval ac_res=\$$3
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833$as_echo "$ac_res" >&6; }
2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835
2836} # ac_fn_c_find_uintX_t
2837
cristy8b350f62009-11-15 23:12:43 +00002838# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2839# --------------------------------------------
2840# Tries to find the compile-time value of EXPR in a program that includes
2841# INCLUDES, setting VAR accordingly. Returns whether the value could be
2842# computed
2843ac_fn_c_compute_int ()
2844{
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 if test "$cross_compiling" = yes; then
2847 # Depending upon the size, compute the lo and hi bounds.
2848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850$4
2851int
2852main ()
2853{
2854static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002855test_array [0] = 0;
2856return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_lo=0 ac_mid=0
2864 while :; do
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867$4
2868int
2869main ()
2870{
2871static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002872test_array [0] = 0;
2873return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879if ac_fn_c_try_compile "$LINENO"; then :
2880 ac_hi=$ac_mid; break
2881else
2882 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2883 if test $ac_lo -le $ac_mid; then
2884 ac_lo= ac_hi=
2885 break
2886 fi
2887 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2888fi
2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 done
2891else
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h. */
2894$4
2895int
2896main ()
2897{
2898static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002899test_array [0] = 0;
2900return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907 ac_hi=-1 ac_mid=-1
2908 while :; do
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h. */
2911$4
2912int
2913main ()
2914{
2915static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002916test_array [0] = 0;
2917return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_lo=$ac_mid; break
2925else
2926 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2927 if test $ac_mid -le $ac_hi; then
2928 ac_lo= ac_hi=
2929 break
2930 fi
2931 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2932fi
2933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935else
2936 ac_lo= ac_hi=
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939fi
2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941# Binary search between lo and hi bounds.
2942while test "x$ac_lo" != "x$ac_hi"; do
2943 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945/* end confdefs.h. */
2946$4
2947int
2948main ()
2949{
2950static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002951test_array [0] = 0;
2952return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_hi=$ac_mid
2960else
2961 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2962fi
2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964done
2965case $ac_lo in #((
2966?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2967'') ac_retval=1 ;;
2968esac
2969 else
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h. */
2972$4
2973static long int longval () { return $2; }
2974static unsigned long int ulongval () { return $2; }
2975#include <stdio.h>
2976#include <stdlib.h>
2977int
2978main ()
2979{
2980
2981 FILE *f = fopen ("conftest.val", "w");
2982 if (! f)
2983 return 1;
2984 if (($2) < 0)
2985 {
2986 long int i = longval ();
2987 if (i != ($2))
2988 return 1;
2989 fprintf (f, "%ld", i);
2990 }
2991 else
2992 {
2993 unsigned long int i = ulongval ();
2994 if (i != ($2))
2995 return 1;
2996 fprintf (f, "%lu", i);
2997 }
2998 /* Do not output a trailing newline, as this causes \r\n confusion
2999 on some platforms. */
3000 return ferror (f) || fclose (f) != 0;
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006if ac_fn_c_try_run "$LINENO"; then :
3007 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3008else
3009 ac_retval=1
3010fi
3011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3012 conftest.$ac_objext conftest.beam conftest.$ac_ext
3013rm -f conftest.val
3014
3015 fi
cristyda16f162011-02-19 23:52:17 +00003016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003017 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003018
3019} # ac_fn_c_compute_int
3020
3021# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3022# ---------------------------------------------------------
3023# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3024# the include files in INCLUDES and setting the cache variable VAR
3025# accordingly.
3026ac_fn_cxx_check_header_mongrel ()
3027{
3028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003029 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3031$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003032if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003033 $as_echo_n "(cached) " >&6
3034fi
3035eval ac_res=\$$3
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037$as_echo "$ac_res" >&6; }
3038else
3039 # Is the header compilable?
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3041$as_echo_n "checking $2 usability... " >&6; }
3042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h. */
3044$4
3045#include <$2>
3046_ACEOF
3047if ac_fn_cxx_try_compile "$LINENO"; then :
3048 ac_header_compiler=yes
3049else
3050 ac_header_compiler=no
3051fi
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3054$as_echo "$ac_header_compiler" >&6; }
3055
3056# Is the header present?
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3058$as_echo_n "checking $2 presence... " >&6; }
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h. */
3061#include <$2>
3062_ACEOF
3063if ac_fn_cxx_try_cpp "$LINENO"; then :
3064 ac_header_preproc=yes
3065else
3066 ac_header_preproc=no
3067fi
cristyda16f162011-02-19 23:52:17 +00003068rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3070$as_echo "$ac_header_preproc" >&6; }
3071
3072# So? What about this header?
3073case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3074 yes:no: )
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3076$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3078$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3079 ;;
3080 no:yes:* )
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3082$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3084$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3086$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3088$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003091( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003092## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003093## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003094 ) | sed "s/^/$as_me: WARNING: /" >&2
3095 ;;
3096esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3098$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003099if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003100 $as_echo_n "(cached) " >&6
3101else
3102 eval "$3=\$ac_header_compiler"
3103fi
3104eval ac_res=\$$3
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3106$as_echo "$ac_res" >&6; }
3107fi
cristyda16f162011-02-19 23:52:17 +00003108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003109
3110} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003111cat >config.log <<_ACEOF
3112This file contains any messages produced by compilers while
3113running configure, to aid debugging if configure makes a mistake.
3114
cristy29eb34e2011-10-16 00:46:08 +00003115It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003116generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003117
3118 $ $0 $@
3119
3120_ACEOF
3121exec 5>>config.log
3122{
3123cat <<_ASUNAME
3124## --------- ##
3125## Platform. ##
3126## --------- ##
3127
3128hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3129uname -m = `(uname -m) 2>/dev/null || echo unknown`
3130uname -r = `(uname -r) 2>/dev/null || echo unknown`
3131uname -s = `(uname -s) 2>/dev/null || echo unknown`
3132uname -v = `(uname -v) 2>/dev/null || echo unknown`
3133
3134/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3135/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3136
3137/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3138/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3139/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3140/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3141/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3142/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3143/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3144
3145_ASUNAME
3146
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003152 $as_echo "PATH: $as_dir"
3153 done
cristy3ed852e2009-09-05 21:47:34 +00003154IFS=$as_save_IFS
3155
3156} >&5
3157
3158cat >&5 <<_ACEOF
3159
3160
3161## ----------- ##
3162## Core tests. ##
3163## ----------- ##
3164
3165_ACEOF
3166
3167
3168# Keep a trace of the command line.
3169# Strip out --no-create and --no-recursion so they do not pile up.
3170# Strip out --silent because we don't want to record it for future runs.
3171# Also quote any args containing shell meta-characters.
3172# Make two passes to allow for proper duplicate-argument suppression.
3173ac_configure_args=
3174ac_configure_args0=
3175ac_configure_args1=
3176ac_must_keep_next=false
3177for ac_pass in 1 2
3178do
3179 for ac_arg
3180 do
3181 case $ac_arg in
3182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3184 | -silent | --silent | --silen | --sile | --sil)
3185 continue ;;
3186 *\'*)
3187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3188 esac
3189 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003191 2)
cristy8b350f62009-11-15 23:12:43 +00003192 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003193 if test $ac_must_keep_next = true; then
3194 ac_must_keep_next=false # Got value, back to normal.
3195 else
3196 case $ac_arg in
3197 *=* | --config-cache | -C | -disable-* | --disable-* \
3198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3200 | -with-* | --with-* | -without-* | --without-* | --x)
3201 case "$ac_configure_args0 " in
3202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3203 esac
3204 ;;
3205 -* ) ac_must_keep_next=true ;;
3206 esac
3207 fi
cristy8b350f62009-11-15 23:12:43 +00003208 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003209 ;;
3210 esac
3211 done
3212done
cristy8b350f62009-11-15 23:12:43 +00003213{ ac_configure_args0=; unset ac_configure_args0;}
3214{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003215
3216# When interrupted or exit'd, cleanup temporary files, and complete
3217# config.log. We remove comments because anyway the quotes in there
3218# would cause problems or look ugly.
3219# WARNING: Use '\'' to represent an apostrophe within the trap.
3220# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3221trap 'exit_status=$?
3222 # Save into config.log some information that might help in debugging.
3223 {
3224 echo
3225
cristy98dddb52010-11-04 00:30:15 +00003226 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003227## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003228## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003229 echo
3230 # The following way of writing the cache mishandles newlines in values,
3231(
3232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3233 eval ac_val=\$$ac_var
3234 case $ac_val in #(
3235 *${as_nl}*)
3236 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3239 esac
3240 case $ac_var in #(
3241 _ | IFS | as_nl) ;; #(
3242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003243 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003244 esac ;;
3245 esac
3246 done
3247 (set) 2>&1 |
3248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3249 *${as_nl}ac_space=\ *)
3250 sed -n \
3251 "s/'\''/'\''\\\\'\'''\''/g;
3252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3253 ;; #(
3254 *)
3255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3256 ;;
3257 esac |
3258 sort
3259)
3260 echo
3261
cristy98dddb52010-11-04 00:30:15 +00003262 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003263## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003264## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003265 echo
3266 for ac_var in $ac_subst_vars
3267 do
3268 eval ac_val=\$$ac_var
3269 case $ac_val in
3270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271 esac
3272 $as_echo "$ac_var='\''$ac_val'\''"
3273 done | sort
3274 echo
3275
3276 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003277 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003278## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003279## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003280 echo
3281 for ac_var in $ac_subst_files
3282 do
3283 eval ac_val=\$$ac_var
3284 case $ac_val in
3285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3286 esac
3287 $as_echo "$ac_var='\''$ac_val'\''"
3288 done | sort
3289 echo
3290 fi
3291
3292 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003293 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003294## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003295## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003296 echo
3297 cat confdefs.h
3298 echo
3299 fi
3300 test "$ac_signal" != 0 &&
3301 $as_echo "$as_me: caught signal $ac_signal"
3302 $as_echo "$as_me: exit $exit_status"
3303 } >&5
3304 rm -f core *.core core.conftest.* &&
3305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3306 exit $exit_status
3307' 0
3308for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003310done
3311ac_signal=0
3312
3313# confdefs.h avoids OS command line length limits that DEFS can exceed.
3314rm -f -r conftest* confdefs.h
3315
cristy8b350f62009-11-15 23:12:43 +00003316$as_echo "/* confdefs.h */" > confdefs.h
3317
cristy3ed852e2009-09-05 21:47:34 +00003318# Predefined preprocessor variables.
3319
3320cat >>confdefs.h <<_ACEOF
3321#define PACKAGE_NAME "$PACKAGE_NAME"
3322_ACEOF
3323
cristy3ed852e2009-09-05 21:47:34 +00003324cat >>confdefs.h <<_ACEOF
3325#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3326_ACEOF
3327
cristy3ed852e2009-09-05 21:47:34 +00003328cat >>confdefs.h <<_ACEOF
3329#define PACKAGE_VERSION "$PACKAGE_VERSION"
3330_ACEOF
3331
cristy3ed852e2009-09-05 21:47:34 +00003332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_STRING "$PACKAGE_STRING"
3334_ACEOF
3335
cristy3ed852e2009-09-05 21:47:34 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3338_ACEOF
3339
cristy8b350f62009-11-15 23:12:43 +00003340cat >>confdefs.h <<_ACEOF
3341#define PACKAGE_URL "$PACKAGE_URL"
3342_ACEOF
3343
cristy3ed852e2009-09-05 21:47:34 +00003344
3345# Let the site file select an alternate cache file if it wants to.
3346# Prefer an explicitly selected file to automatically selected ones.
3347ac_site_file1=NONE
3348ac_site_file2=NONE
3349if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003350 # We do not want a PATH search for config.site.
3351 case $CONFIG_SITE in #((
3352 -*) ac_site_file1=./$CONFIG_SITE;;
3353 */*) ac_site_file1=$CONFIG_SITE;;
3354 *) ac_site_file1=./$CONFIG_SITE;;
3355 esac
cristy3ed852e2009-09-05 21:47:34 +00003356elif test "x$prefix" != xNONE; then
3357 ac_site_file1=$prefix/share/config.site
3358 ac_site_file2=$prefix/etc/config.site
3359else
3360 ac_site_file1=$ac_default_prefix/share/config.site
3361 ac_site_file2=$ac_default_prefix/etc/config.site
3362fi
3363for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3364do
3365 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003366 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003368$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3369 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003370 . "$ac_site_file" \
3371 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373as_fn_error $? "failed to load site script $ac_site_file
3374See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003375 fi
3376done
3377
3378if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003379 # Some versions of bash will fail to source /dev/null (special files
3380 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: loading cache $cache_file" >&6;}
3384 case $cache_file in
3385 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3386 *) . "./$cache_file";;
3387 esac
3388 fi
3389else
cristy8b350f62009-11-15 23:12:43 +00003390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo "$as_me: creating cache $cache_file" >&6;}
3392 >$cache_file
3393fi
3394
cristycd4c5312009-11-22 01:19:08 +00003395as_fn_append ac_header_list " stdlib.h"
3396as_fn_append ac_header_list " unistd.h"
3397as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003398# Check that the precious variables saved in the cache have kept the same
3399# value.
3400ac_cache_corrupted=false
3401for ac_var in $ac_precious_vars; do
3402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3403 eval ac_new_set=\$ac_env_${ac_var}_set
3404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3405 eval ac_new_val=\$ac_env_${ac_var}_value
3406 case $ac_old_set,$ac_new_set in
3407 set,)
cristy8b350f62009-11-15 23:12:43 +00003408 { $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 +00003409$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3410 ac_cache_corrupted=: ;;
3411 ,set)
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3414 ac_cache_corrupted=: ;;
3415 ,);;
3416 *)
3417 if test "x$ac_old_val" != "x$ac_new_val"; then
3418 # differences in whitespace do not lead to failure.
3419 ac_old_val_w=`echo x $ac_old_val`
3420 ac_new_val_w=`echo x $ac_new_val`
3421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003423$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3424 ac_cache_corrupted=:
3425 else
cristy8b350f62009-11-15 23:12:43 +00003426 { $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 +00003427$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3428 eval $ac_var=\$ac_old_val
3429 fi
cristy8b350f62009-11-15 23:12:43 +00003430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3434 fi;;
3435 esac
3436 # Pass precious variables to config.status.
3437 if test "$ac_new_set" = set; then
3438 case $ac_new_val in
3439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3440 *) ac_arg=$ac_var=$ac_new_val ;;
3441 esac
3442 case " $ac_configure_args " in
3443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003445 esac
3446 fi
3447done
3448if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003454fi
cristy8b350f62009-11-15 23:12:43 +00003455## -------------------- ##
3456## Main body of script. ##
3457## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466
3467ac_aux_dir=
3468for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003469 if test -f "$ac_dir/install-sh"; then
3470 ac_aux_dir=$ac_dir
3471 ac_install_sh="$ac_aux_dir/install-sh -c"
3472 break
3473 elif test -f "$ac_dir/install.sh"; then
3474 ac_aux_dir=$ac_dir
3475 ac_install_sh="$ac_aux_dir/install.sh -c"
3476 break
3477 elif test -f "$ac_dir/shtool"; then
3478 ac_aux_dir=$ac_dir
3479 ac_install_sh="$ac_aux_dir/shtool install -c"
3480 break
3481 fi
cristy3ed852e2009-09-05 21:47:34 +00003482done
3483if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003485fi
3486
3487# These three variables are undocumented and unsupported,
3488# and are intended to be withdrawn in a future Autoconf release.
3489# They can cause serious problems if a builder's source tree is in a directory
3490# whose full name contains unusual characters.
3491ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3492ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3493ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3494
3495
3496
3497
3498ac_config_headers="$ac_config_headers config/config.h"
3499
cristy24fc1fe2010-10-23 21:13:01 +00003500
cristy4c08aed2011-07-01 19:47:50 +00003501ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003502
cristy4c08aed2011-07-01 19:47:50 +00003503ac_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 +00003504
3505
3506#
3507# Save initial user-tunable values
3508#
3509USER_LIBS=$LIBS
3510for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3511 eval isset=\${$var+set}
3512 if test "$isset" = 'set'; then
3513 eval val=$`echo $var`
3514 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3515 fi
3516done
3517
3518
3519CONFIGURE_ARGS="$0 ${ac_configure_args}"
3520
3521
3522# Source file containing package/library versioning information.
3523. ${srcdir}/version.sh
3524
cristy15a88782010-01-31 23:24:49 +00003525echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003526# Make sure we can run config.sub.
3527$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003528 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003529
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003532if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 ac_build_alias=$build_alias
3536test "x$ac_build_alias" = x &&
3537 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3538test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003539 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003540ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003542
3543fi
cristy8b350f62009-11-15 23:12:43 +00003544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003545$as_echo "$ac_cv_build" >&6; }
3546case $ac_cv_build in
3547*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003548*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003549esac
3550build=$ac_cv_build
3551ac_save_IFS=$IFS; IFS='-'
3552set x $ac_cv_build
3553shift
3554build_cpu=$1
3555build_vendor=$2
3556shift; shift
3557# Remember, the first character of IFS is used to create $*,
3558# except with old shells:
3559build_os=$*
3560IFS=$ac_save_IFS
3561case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3562
3563
cristy8b350f62009-11-15 23:12:43 +00003564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003565$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003566if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003567 $as_echo_n "(cached) " >&6
3568else
3569 if test "x$host_alias" = x; then
3570 ac_cv_host=$ac_cv_build
3571else
3572 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003574fi
3575
3576fi
cristy8b350f62009-11-15 23:12:43 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003578$as_echo "$ac_cv_host" >&6; }
3579case $ac_cv_host in
3580*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003581*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003582esac
3583host=$ac_cv_host
3584ac_save_IFS=$IFS; IFS='-'
3585set x $ac_cv_host
3586shift
3587host_cpu=$1
3588host_vendor=$2
3589shift; shift
3590# Remember, the first character of IFS is used to create $*,
3591# except with old shells:
3592host_os=$*
3593IFS=$ac_save_IFS
3594case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3595
3596
cristy8b350f62009-11-15 23:12:43 +00003597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003598$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003599if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003600 $as_echo_n "(cached) " >&6
3601else
3602 if test "x$target_alias" = x; then
3603 ac_cv_target=$ac_cv_host
3604else
3605 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003607fi
3608
3609fi
cristy8b350f62009-11-15 23:12:43 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003611$as_echo "$ac_cv_target" >&6; }
3612case $ac_cv_target in
3613*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003614*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003615esac
3616target=$ac_cv_target
3617ac_save_IFS=$IFS; IFS='-'
3618set x $ac_cv_target
3619shift
3620target_cpu=$1
3621target_vendor=$2
3622shift; shift
3623# Remember, the first character of IFS is used to create $*,
3624# except with old shells:
3625target_os=$*
3626IFS=$ac_save_IFS
3627case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3628
3629
3630# The aliases save the names the user supplied, while $host etc.
3631# will get canonicalized.
3632test -n "$target_alias" &&
3633 test "$program_prefix$program_suffix$program_transform_name" = \
3634 NONENONEs,x,x, &&
3635 program_prefix=${target_alias}-
3636
cristy837d6dc2010-02-27 01:16:57 +00003637
3638
3639
cristy8be34142012-06-17 14:07:18 +00003640
cristy19615b82011-04-13 20:02:01 +00003641MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003642
3643
cristy27d53d62012-07-29 23:30:07 +00003644cat >>confdefs.h <<_ACEOF
3645#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3646_ACEOF
3647
3648
cristy19615b82011-04-13 20:02:01 +00003649MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003650
3651
cristy27d53d62012-07-29 23:30:07 +00003652cat >>confdefs.h <<_ACEOF
3653#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3654_ACEOF
3655
3656
cristy19615b82011-04-13 20:02:01 +00003657MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003658
3659
cristy27d53d62012-07-29 23:30:07 +00003660cat >>confdefs.h <<_ACEOF
3661#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3662_ACEOF
3663
3664
cristy3ed852e2009-09-05 21:47:34 +00003665# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003666MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3667
3668MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3669
cristyec6934f2012-08-14 18:38:40 +00003670MAGICK_SVN_REVISION=8934:8947M
cristyd694ca32011-03-27 21:42:54 +00003671
cristy3ed852e2009-09-05 21:47:34 +00003672
3673
3674# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3676$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003677# Reject unsafe characters in $srcdir or the absolute working directory
3678# name. Accept space and tab only in the latter.
3679am_lf='
3680'
3681case `pwd` in
3682 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003683 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003684esac
3685case $srcdir in
3686 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003687 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003688esac
cristy3ed852e2009-09-05 21:47:34 +00003689
cristyc0890a62012-07-19 00:18:20 +00003690# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003691# arguments. Must try -L first in case configure is actually a
3692# symlink; some systems play weird games with the mod time of symlinks
3693# (eg FreeBSD returns the mod time of the symlink's containing
3694# directory).
3695if (
cristyc0890a62012-07-19 00:18:20 +00003696 am_has_slept=no
3697 for am_try in 1 2; do
3698 echo "timestamp, slept: $am_has_slept" > conftest.file
3699 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3700 if test "$*" = "X"; then
3701 # -L didn't work.
3702 set X `ls -t "$srcdir/configure" conftest.file`
3703 fi
3704 if test "$*" != "X $srcdir/configure conftest.file" \
3705 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003706
cristyc0890a62012-07-19 00:18:20 +00003707 # If neither matched, then we have a broken ls. This can happen
3708 # if, for instance, CONFIG_SHELL is bash and it inherits a
3709 # broken ls alias from the environment. This has actually
3710 # happened. Such a system could not be considered "sane".
3711 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3712 alias in your environment" "$LINENO" 5
3713 fi
3714 if test "$2" = conftest.file || test $am_try -eq 2; then
3715 break
3716 fi
3717 # Just in case.
3718 sleep 1
3719 am_has_slept=yes
3720 done
cristy73bd4a52010-10-05 11:24:23 +00003721 test "$2" = conftest.file
3722 )
3723then
3724 # Ok.
3725 :
3726else
cristy98dddb52010-11-04 00:30:15 +00003727 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003728Check your system clock" "$LINENO" 5
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003732# If we didn't sleep, we still need to ensure time stamps of config.status and
3733# generated files are strictly newer.
3734am_sleep_pid=
3735if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3736 ( sleep 1 ) &
3737 am_sleep_pid=$!
3738fi
cristy73bd4a52010-10-05 11:24:23 +00003739
cristyc0890a62012-07-19 00:18:20 +00003740rm -f conftest.file
3741
3742
3743am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003744
3745# Find a good install program. We prefer a C program (faster),
3746# so one script is as good as another. But avoid the broken or
3747# incompatible versions:
3748# SysV /etc/install, /usr/sbin/install
3749# SunOS /usr/etc/install
3750# IRIX /sbin/install
3751# AIX /bin/install
3752# AmigaOS /C/install, which installs bootblocks on floppy discs
3753# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3754# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3755# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3756# OS/2's system install, which has a completely different semantic
3757# ./install, which can be erroneously created by make from ./install.sh.
3758# Reject install programs that cannot install multiple files.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3760$as_echo_n "checking for a BSD-compatible install... " >&6; }
3761if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003762if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003763 $as_echo_n "(cached) " >&6
3764else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 # Account for people who put trailing slashes in PATH elements.
3771case $as_dir/ in #((
3772 ./ | .// | /[cC]/* | \
3773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3774 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3775 /usr/ucb/* ) ;;
3776 *)
3777 # OSF1 and SCO ODT 3.0 have their own names for install.
3778 # Don't use installbsd from OSF since it installs stuff as root
3779 # by default.
3780 for ac_prog in ginstall scoinst install; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003782 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003783 if test $ac_prog = install &&
3784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3785 # AIX install. It has an incompatible calling convention.
3786 :
3787 elif test $ac_prog = install &&
3788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3789 # program-specific install script used by HP pwplus--don't use.
3790 :
3791 else
3792 rm -rf conftest.one conftest.two conftest.dir
3793 echo one > conftest.one
3794 echo two > conftest.two
3795 mkdir conftest.dir
3796 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3797 test -s conftest.one && test -s conftest.two &&
3798 test -s conftest.dir/conftest.one &&
3799 test -s conftest.dir/conftest.two
3800 then
3801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3802 break 3
3803 fi
3804 fi
3805 fi
3806 done
3807 done
3808 ;;
3809esac
3810
3811 done
3812IFS=$as_save_IFS
3813
3814rm -rf conftest.one conftest.two conftest.dir
3815
3816fi
3817 if test "${ac_cv_path_install+set}" = set; then
3818 INSTALL=$ac_cv_path_install
3819 else
3820 # As a last resort, use the slow shell script. Don't cache a
3821 # value for INSTALL within a source directory, because that will
3822 # break other packages using the cache if that directory is
3823 # removed, or if the value is a relative name.
3824 INSTALL=$ac_install_sh
3825 fi
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3828$as_echo "$INSTALL" >&6; }
3829
3830# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3831# It thinks the first close brace ends the variable substitution.
3832test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3833
3834test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3835
3836test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837
3838test "$program_prefix" != NONE &&
3839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3840# Use a double $ so make ignores it.
3841test "$program_suffix" != NONE &&
3842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3843# Double any \ or $.
3844# By default was `s,x,x', remove it if useless.
3845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3846program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3847
3848# expand $ac_aux_dir to an absolute path
3849am_aux_dir=`cd $ac_aux_dir && pwd`
3850
3851if test x"${MISSING+set}" != xset; then
3852 case $am_aux_dir in
3853 *\ * | *\ *)
3854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3855 *)
3856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3857 esac
3858fi
3859# Use eval to expand $SHELL
3860if eval "$MISSING --run true"; then
3861 am_missing_run="$MISSING --run "
3862else
3863 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3865$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003866fi
3867
3868if test x"${install_sh}" != xset; then
3869 case $am_aux_dir in
3870 *\ * | *\ *)
3871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3872 *)
3873 install_sh="\${SHELL} $am_aux_dir/install-sh"
3874 esac
3875fi
3876
cristyc0890a62012-07-19 00:18:20 +00003877# Installed binaries are usually stripped using 'strip' when the user
3878# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003879# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003880# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003881if test "$cross_compiling" != no; then
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3884set dummy ${ac_tool_prefix}strip; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003887if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003888 $as_echo_n "(cached) " >&6
3889else
3890 if test -n "$STRIP"; then
3891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905 done
3906IFS=$as_save_IFS
3907
3908fi
3909fi
3910STRIP=$ac_cv_prog_STRIP
3911if test -n "$STRIP"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3913$as_echo "$STRIP" >&6; }
3914else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
3918
3919
3920fi
3921if test -z "$ac_cv_prog_STRIP"; then
3922 ac_ct_STRIP=$STRIP
3923 # Extract the first word of "strip", so it can be a program name with args.
3924set dummy strip; ac_word=$2
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003927if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003928 $as_echo_n "(cached) " >&6
3929else
3930 if test -n "$ac_ct_STRIP"; then
3931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3932else
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003940 ac_cv_prog_ac_ct_STRIP="strip"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948fi
3949fi
3950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3951if test -n "$ac_ct_STRIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3953$as_echo "$ac_ct_STRIP" >&6; }
3954else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957fi
3958
3959 if test "x$ac_ct_STRIP" = x; then
3960 STRIP=":"
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963yes:)
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966ac_tool_warned=yes ;;
3967esac
3968 STRIP=$ac_ct_STRIP
3969 fi
3970else
3971 STRIP="$ac_cv_prog_STRIP"
3972fi
3973
3974fi
3975INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3976
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3978$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3979if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003980 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003981 $as_echo_n "(cached) " >&6
3982else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in mkdir gmkdir; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003990 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3992 'mkdir (GNU coreutils) '* | \
3993 'mkdir (coreutils) '* | \
3994 'mkdir (fileutils) '4.1*)
3995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3996 break 3;;
3997 esac
3998 done
3999 done
4000 done
4001IFS=$as_save_IFS
4002
4003fi
4004
4005 test -d ./--version && rmdir ./--version
4006 if test "${ac_cv_path_mkdir+set}" = set; then
4007 MKDIR_P="$ac_cv_path_mkdir -p"
4008 else
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for MKDIR_P within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 MKDIR_P="$ac_install_sh -d"
4014 fi
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4017$as_echo "$MKDIR_P" >&6; }
4018
cristy73bd4a52010-10-05 11:24:23 +00004019for ac_prog in gawk mawk nawk awk
4020do
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022set dummy $ac_prog; ac_word=$2
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004025if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004026 $as_echo_n "(cached) " >&6
4027else
4028 if test -n "$AWK"; then
4029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004038 ac_cv_prog_AWK="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042done
4043 done
4044IFS=$as_save_IFS
4045
4046fi
4047fi
4048AWK=$ac_cv_prog_AWK
4049if test -n "$AWK"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4051$as_echo "$AWK" >&6; }
4052else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
4055fi
4056
4057
4058 test -n "$AWK" && break
4059done
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4062$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4063set x ${MAKE-make}
4064ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004065if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004066 $as_echo_n "(cached) " >&6
4067else
4068 cat >conftest.make <<\_ACEOF
4069SHELL = /bin/sh
4070all:
4071 @echo '@@@%%%=$(MAKE)=@@@%%%'
4072_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004073# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004074case `${MAKE-make} -f conftest.make 2>/dev/null` in
4075 *@@@%%%=?*=@@@%%%*)
4076 eval ac_cv_prog_make_${ac_make}_set=yes;;
4077 *)
4078 eval ac_cv_prog_make_${ac_make}_set=no;;
4079esac
4080rm -f conftest.make
4081fi
4082if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084$as_echo "yes" >&6; }
4085 SET_MAKE=
4086else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089 SET_MAKE="MAKE=${MAKE-make}"
4090fi
4091
4092rm -rf .tst 2>/dev/null
4093mkdir .tst 2>/dev/null
4094if test -d .tst; then
4095 am__leading_dot=.
4096else
4097 am__leading_dot=_
4098fi
4099rmdir .tst 2>/dev/null
4100
cristya448bd22011-10-14 12:38:13 +00004101# Check whether --enable-silent-rules was given.
4102if test "${enable_silent_rules+set}" = set; then :
4103 enableval=$enable_silent_rules;
4104fi
4105
cristyc0890a62012-07-19 00:18:20 +00004106case $enable_silent_rules in # (((
4107 yes) AM_DEFAULT_VERBOSITY=0;;
4108 no) AM_DEFAULT_VERBOSITY=1;;
4109 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004110esac
cristyc3fb77b2012-02-06 01:49:41 +00004111am_make=${MAKE-make}
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4113$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4114if ${am_cv_make_support_nested_variables+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116else
4117 if $as_echo 'TRUE=$(BAR$(V))
4118BAR0=false
4119BAR1=true
4120V=1
4121am__doit:
4122 @$(TRUE)
4123.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4124 am_cv_make_support_nested_variables=yes
4125else
4126 am_cv_make_support_nested_variables=no
4127fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4130$as_echo "$am_cv_make_support_nested_variables" >&6; }
4131if test $am_cv_make_support_nested_variables = yes; then
4132 AM_V='$(V)'
4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4134else
4135 AM_V=$AM_DEFAULT_VERBOSITY
4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4137fi
cristya448bd22011-10-14 12:38:13 +00004138AM_BACKSLASH='\'
4139
cristy73bd4a52010-10-05 11:24:23 +00004140if test "`cd $srcdir && pwd`" != "`pwd`"; then
4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4142 # is not polluted with repeated "-I."
4143 am__isrc=' -I$(srcdir)'
4144 # test to see if srcdir already configured
4145 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004147 fi
4148fi
4149
4150# test whether we have cygpath
4151if test -z "$CYGPATH_W"; then
4152 if (cygpath --version) >/dev/null 2>/dev/null; then
4153 CYGPATH_W='cygpath -w'
4154 else
4155 CYGPATH_W=echo
4156 fi
4157fi
4158
4159
4160# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004161 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004162 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004163
4164
cristya448bd22011-10-14 12:38:13 +00004165cat >>confdefs.h <<_ACEOF
4166#define PACKAGE "$PACKAGE"
4167_ACEOF
4168
4169
4170cat >>confdefs.h <<_ACEOF
4171#define VERSION "$VERSION"
4172_ACEOF
4173
cristy73bd4a52010-10-05 11:24:23 +00004174# Some tools Automake needs.
4175
4176ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4177
4178
4179AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4180
4181
4182AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4183
4184
4185AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4186
4187
4188MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4189
cristyc0890a62012-07-19 00:18:20 +00004190# For better backward compatibility. To be removed once Automake 1.9.x
4191# dies out for good. For more background, see:
4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4193# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4194mkdir_p='$(MKDIR_P)'
4195
cristy73bd4a52010-10-05 11:24:23 +00004196# We need awk for the "check" target. The system "awk" is bad on
4197# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004198# Always define AMTAR for backward compatibility. Yes, it's still used
4199# in the wild :-( We should find a proper way to deprecate it ...
4200AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004201
cristyc3fb77b2012-02-06 01:49:41 +00004202am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004203
4204
4205
4206
4207
cristy3ed852e2009-09-05 21:47:34 +00004208
4209# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004210# Check whether --enable-silent-rules was given.
4211if test "${enable_silent_rules+set}" = set; then :
4212 enableval=$enable_silent_rules;
4213fi
4214
cristyc0890a62012-07-19 00:18:20 +00004215case $enable_silent_rules in # (((
4216 yes) AM_DEFAULT_VERBOSITY=0;;
4217 no) AM_DEFAULT_VERBOSITY=1;;
4218 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004219esac
cristyc3fb77b2012-02-06 01:49:41 +00004220am_make=${MAKE-make}
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4222$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4223if ${am_cv_make_support_nested_variables+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225else
4226 if $as_echo 'TRUE=$(BAR$(V))
4227BAR0=false
4228BAR1=true
4229V=1
4230am__doit:
4231 @$(TRUE)
4232.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4233 am_cv_make_support_nested_variables=yes
4234else
4235 am_cv_make_support_nested_variables=no
4236fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4239$as_echo "$am_cv_make_support_nested_variables" >&6; }
4240if test $am_cv_make_support_nested_variables = yes; then
4241 AM_V='$(V)'
4242 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4243else
4244 AM_V=$AM_DEFAULT_VERBOSITY
4245 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4246fi
cristy73bd4a52010-10-05 11:24:23 +00004247AM_BACKSLASH='\'
4248
cristy3ed852e2009-09-05 21:47:34 +00004249
4250MAGICK_LIB_VERSION="0x"
4251if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4252 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4253fi
4254MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4255if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4256 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4257fi
4258MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4259if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4260 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4261fi
4262MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4263
4264
4265# Definition used to define MagickLibVersionText in version.h
4266MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4267
4268
4269# Definition used to define MagickLibVersionNumber in version.h
4270MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4271
4272
4273# Regenerate config.status if ChangeLog or version.sh is updated.
4274CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4275
4276
4277PERLMAINCC=$CC
4278
4279MAGICK_CFLAGS=''
4280MAGICK_CPPFLAGS=$CPPFLAGS_USER
4281MAGICK_PCFLAGS=$CPPFLAGS_USER
4282MAGICK_LDFLAGS=''
4283MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004284MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004285
4286#
4287# Evaluate shell variable equivalents to Makefile directory variables
4288#
4289if test "x$prefix" = xNONE; then
4290 prefix=$ac_default_prefix
4291fi
4292# Let make expand exec_prefix.
4293if test "x$exec_prefix" = xNONE; then
4294 exec_prefix='${prefix}'
4295fi
4296
4297#
4298eval "eval PREFIX_DIR=${prefix}"
4299
4300eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4301
4302eval "eval BIN_DIR=$bindir"
4303
4304eval "eval SBIN_DIR=$sbindir"
4305
4306eval "eval LIBEXEC_DIR=$libexecdir"
4307
4308eval "eval DATA_DIR=$datadir"
4309
cristy4e65ec22012-04-08 01:33:27 +00004310eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004311
cristy3ed852e2009-09-05 21:47:34 +00004312eval "eval SYSCONF_DIR=$sysconfdir"
4313
4314eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4315
4316eval "eval LOCALSTATE_DIR=$localstatedir"
4317
4318eval "eval LIB_DIR=$libdir"
4319
4320eval "eval INCLUDE_DIR=$includedir"
4321
4322eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4323
4324eval "eval INFO_DIR=$infodir"
4325
4326eval "eval MAN_DIR=$mandir"
4327
4328
4329# Get full paths to source and build directories
4330srcdirfull="`cd $srcdir && pwd`"
4331builddir="`pwd`"
4332
4333#
4334# Compute variables useful for running uninstalled software.
4335#
4336MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4337MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4338MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4339MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4340DIRSEP=':'
4341case "${build_os}" in
4342 mingw* )
4343 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4344 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4345 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4346 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4347 DIRSEP=';'
4348 ;;
4349esac
4350case "${host_os}" in
4351 mingw* )
4352 DIRSEP=';'
4353 ;;
4354esac
4355
4356
4357
4358
4359
4360
cristya0b81c32010-01-22 02:54:33 +00004361
4362#
4363# Enable OS features.
4364#
cristy73bd4a52010-10-05 11:24:23 +00004365DEPDIR="${am__leading_dot}deps"
4366
4367ac_config_commands="$ac_config_commands depfiles"
4368
4369
4370am_make=${MAKE-make}
4371cat > confinc << 'END'
4372am__doit:
4373 @echo this is the am__doit target
4374.PHONY: am__doit
4375END
4376# If we don't find an include directive, just comment out the code.
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4378$as_echo_n "checking for style of include used by $am_make... " >&6; }
4379am__include="#"
4380am__quote=
4381_am_result=none
4382# First try GNU make style include.
4383echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004384# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004385case `$am_make -s -f confmf 2> /dev/null` in #(
4386*the\ am__doit\ target*)
4387 am__include=include
4388 am__quote=
4389 _am_result=GNU
4390 ;;
4391esac
4392# Now try BSD make style include.
4393if test "$am__include" = "#"; then
4394 echo '.include "confinc"' > confmf
4395 case `$am_make -s -f confmf 2> /dev/null` in #(
4396 *the\ am__doit\ target*)
4397 am__include=.include
4398 am__quote="\""
4399 _am_result=BSD
4400 ;;
4401 esac
4402fi
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4406$as_echo "$_am_result" >&6; }
4407rm -f confinc confmf
4408
4409# Check whether --enable-dependency-tracking was given.
4410if test "${enable_dependency_tracking+set}" = set; then :
4411 enableval=$enable_dependency_tracking;
4412fi
4413
4414if test "x$enable_dependency_tracking" != xno; then
4415 am_depcomp="$ac_aux_dir/depcomp"
4416 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004417 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004418fi
4419 if test "x$enable_dependency_tracking" != xno; then
4420 AMDEP_TRUE=
4421 AMDEP_FALSE='#'
4422else
4423 AMDEP_TRUE='#'
4424 AMDEP_FALSE=
4425fi
4426
4427
cristy3ed852e2009-09-05 21:47:34 +00004428ac_ext=c
4429ac_cpp='$CPP $CPPFLAGS'
4430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4435set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004438if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004439 $as_echo_n "(cached) " >&6
4440else
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453 break 2
4454 fi
4455done
cristy8b350f62009-11-15 23:12:43 +00004456 done
cristy3ed852e2009-09-05 21:47:34 +00004457IFS=$as_save_IFS
4458
4459fi
4460fi
4461CC=$ac_cv_prog_CC
4462if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo "$CC" >&6; }
4465else
cristy8b350f62009-11-15 23:12:43 +00004466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo "no" >&6; }
4468fi
4469
4470
4471fi
4472if test -z "$ac_cv_prog_CC"; then
4473 ac_ct_CC=$CC
4474 # Extract the first word of "gcc", so it can be a program name with args.
4475set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004478if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004479 $as_echo_n "(cached) " >&6
4480else
4481 if test -n "$ac_ct_CC"; then
4482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004491 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493 break 2
4494 fi
4495done
cristy8b350f62009-11-15 23:12:43 +00004496 done
cristy3ed852e2009-09-05 21:47:34 +00004497IFS=$as_save_IFS
4498
4499fi
4500fi
4501ac_ct_CC=$ac_cv_prog_ac_ct_CC
4502if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$ac_ct_CC" >&6; }
4505else
cristy8b350f62009-11-15 23:12:43 +00004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "no" >&6; }
4508fi
4509
4510 if test "x$ac_ct_CC" = x; then
4511 CC=""
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514yes:)
cristy8b350f62009-11-15 23:12:43 +00004515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517ac_tool_warned=yes ;;
4518esac
4519 CC=$ac_ct_CC
4520 fi
4521else
4522 CC="$ac_cv_prog_CC"
4523fi
4524
4525if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4528set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004531if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004532 $as_echo_n "(cached) " >&6
4533else
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004544 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546 break 2
4547 fi
4548done
cristy8b350f62009-11-15 23:12:43 +00004549 done
cristy3ed852e2009-09-05 21:47:34 +00004550IFS=$as_save_IFS
4551
4552fi
4553fi
4554CC=$ac_cv_prog_CC
4555if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557$as_echo "$CC" >&6; }
4558else
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "no" >&6; }
4561fi
4562
4563
4564 fi
4565fi
4566if test -z "$CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004571if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004572 $as_echo_n "(cached) " >&6
4573else
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4576else
4577 ac_prog_rejected=no
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4587 continue
4588 fi
4589 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591 break 2
4592 fi
4593done
cristy8b350f62009-11-15 23:12:43 +00004594 done
cristy3ed852e2009-09-05 21:47:34 +00004595IFS=$as_save_IFS
4596
4597if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4600 shift
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4605 shift
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4607 fi
4608fi
4609fi
4610fi
4611CC=$ac_cv_prog_CC
4612if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614$as_echo "$CC" >&6; }
4615else
cristy8b350f62009-11-15 23:12:43 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo "no" >&6; }
4618fi
4619
4620
4621fi
4622if test -z "$CC"; then
4623 if test -n "$ac_tool_prefix"; then
4624 for ac_prog in cl.exe
4625 do
4626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004630if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004631 $as_echo_n "(cached) " >&6
4632else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645 break 2
4646 fi
4647done
cristy8b350f62009-11-15 23:12:43 +00004648 done
cristy3ed852e2009-09-05 21:47:34 +00004649IFS=$as_save_IFS
4650
4651fi
4652fi
4653CC=$ac_cv_prog_CC
4654if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656$as_echo "$CC" >&6; }
4657else
cristy8b350f62009-11-15 23:12:43 +00004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "no" >&6; }
4660fi
4661
4662
4663 test -n "$CC" && break
4664 done
4665fi
4666if test -z "$CC"; then
4667 ac_ct_CC=$CC
4668 for ac_prog in cl.exe
4669do
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004674if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004687 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689 break 2
4690 fi
4691done
cristy8b350f62009-11-15 23:12:43 +00004692 done
cristy3ed852e2009-09-05 21:47:34 +00004693IFS=$as_save_IFS
4694
4695fi
4696fi
4697ac_ct_CC=$ac_cv_prog_ac_ct_CC
4698if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700$as_echo "$ac_ct_CC" >&6; }
4701else
cristy8b350f62009-11-15 23:12:43 +00004702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703$as_echo "no" >&6; }
4704fi
4705
4706
4707 test -n "$ac_ct_CC" && break
4708done
4709
4710 if test "x$ac_ct_CC" = x; then
4711 CC=""
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714yes:)
cristy8b350f62009-11-15 23:12:43 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717ac_tool_warned=yes ;;
4718esac
4719 CC=$ac_ct_CC
4720 fi
4721fi
4722
4723fi
4724
4725
cristy8b350f62009-11-15 23:12:43 +00004726test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004728as_fn_error $? "no acceptable C compiler found in \$PATH
4729See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004730
4731# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004732$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733set X $ac_compile
4734ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004735for ac_option in --version -v -V -qversion; do
4736 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004737case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740esac
cristy8b350f62009-11-15 23:12:43 +00004741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4742$as_echo "$ac_try_echo"; } >&5
4743 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004744 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004745 if test -s conftest.err; then
4746 sed '10a\
4747... rest of stderr output deleted ...
4748 10q' conftest.err >conftest.er1
4749 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004750 fi
cristycd4c5312009-11-22 01:19:08 +00004751 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753 test $ac_status = 0; }
4754done
cristy3ed852e2009-09-05 21:47:34 +00004755
cristy8b350f62009-11-15 23:12:43 +00004756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004757/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004758
cristy3ed852e2009-09-05 21:47:34 +00004759int
4760main ()
4761{
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
4767ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004768ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004769# Try to create an executable without -o first, disregard a.out.
4770# It will help us diagnose broken compilers, and finding out an intuition
4771# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4773$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004774ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4775
4776# The possible output files:
4777ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4778
4779ac_rmfiles=
4780for ac_file in $ac_files
4781do
4782 case $ac_file in
4783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4784 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4785 esac
4786done
4787rm -f $ac_rmfiles
4788
cristy8b350f62009-11-15 23:12:43 +00004789if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
cristy8b350f62009-11-15 23:12:43 +00004794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004796 (eval "$ac_link_default") 2>&5
4797 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004800 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4801# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4802# in a Makefile. We should not override ac_cv_exeext if it was cached,
4803# so that the user can short-circuit this test for compilers unknown to
4804# Autoconf.
4805for ac_file in $ac_files ''
4806do
4807 test -f "$ac_file" || continue
4808 case $ac_file in
4809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4810 ;;
4811 [ab].out )
4812 # We found the default executable, but exeext='' is most
4813 # certainly right.
4814 break;;
4815 *.* )
cristy8b350f62009-11-15 23:12:43 +00004816 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004817 then :; else
4818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4819 fi
4820 # We set ac_cv_exeext here because the later test for it is not
4821 # safe: cross compilers may not add the suffix if given an `-o'
4822 # argument, so we may need to know it at that point already.
4823 # Even if this section looks crufty: it has the advantage of
4824 # actually working.
4825 break;;
4826 * )
4827 break;;
4828 esac
4829done
4830test "$ac_cv_exeext" = no && ac_cv_exeext=
4831
4832else
4833 ac_file=''
4834fi
cristy8b350f62009-11-15 23:12:43 +00004835if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839sed 's/^/| /' conftest.$ac_ext >&5
4840
cristy8b350f62009-11-15 23:12:43 +00004841{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004843as_fn_error 77 "C compiler cannot create executables
4844See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004845else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004848fi
cristycd4c5312009-11-22 01:19:08 +00004849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4850$as_echo_n "checking for C compiler default output file name... " >&6; }
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4852$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004853ac_exeext=$ac_cv_exeext
4854
cristycd4c5312009-11-22 01:19:08 +00004855rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004856ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004859if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004860case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
cristy8b350f62009-11-15 23:12:43 +00004864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004866 (eval "$ac_link") 2>&5
4867 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4871# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4872# work properly (i.e., refer to `conftest.exe'), while it won't with
4873# `rm'.
4874for ac_file in conftest.exe conftest conftest.*; do
4875 test -f "$ac_file" || continue
4876 case $ac_file in
4877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4879 break;;
4880 * ) break;;
4881 esac
4882done
4883else
cristy8b350f62009-11-15 23:12:43 +00004884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004886as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4887See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004888fi
cristycd4c5312009-11-22 01:19:08 +00004889rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo "$ac_cv_exeext" >&6; }
4892
4893rm -f conftest.$ac_ext
4894EXEEXT=$ac_cv_exeext
4895ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898#include <stdio.h>
4899int
4900main ()
4901{
4902FILE *f = fopen ("conftest.out", "w");
4903 return ferror (f) || fclose (f) != 0;
4904
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909ac_clean_files="$ac_clean_files conftest.out"
4910# Check that the compiler produces executables we can run. If not, either
4911# the compiler is broken, or we cross compile.
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4913$as_echo_n "checking whether we are cross compiling... " >&6; }
4914if test "$cross_compiling" != yes; then
4915 { { ac_try="$ac_link"
4916case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919esac
4920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4921$as_echo "$ac_try_echo"; } >&5
4922 (eval "$ac_link") 2>&5
4923 ac_status=$?
4924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925 test $ac_status = 0; }
4926 if { ac_try='./conftest$ac_cv_exeext'
4927 { { case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4932$as_echo "$ac_try_echo"; } >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }; }; then
4937 cross_compiling=no
4938 else
4939 if test "$cross_compiling" = maybe; then
4940 cross_compiling=yes
4941 else
4942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004944as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004945If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004946See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004947 fi
4948 fi
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4951$as_echo "$cross_compiling" >&6; }
4952
4953rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4954ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004957if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004958 $as_echo_n "(cached) " >&6
4959else
cristy8b350f62009-11-15 23:12:43 +00004960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004961/* end confdefs.h. */
4962
4963int
4964main ()
4965{
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004972if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
cristy8b350f62009-11-15 23:12:43 +00004977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004979 (eval "$ac_compile") 2>&5
4980 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004983 for ac_file in conftest.o conftest.obj conftest.*; do
4984 test -f "$ac_file" || continue;
4985 case $ac_file in
4986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4988 break;;
4989 esac
4990done
4991else
4992 $as_echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
cristy8b350f62009-11-15 23:12:43 +00004995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004997as_fn_error $? "cannot compute suffix of object files: cannot compile
4998See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004999fi
cristy3ed852e2009-09-05 21:47:34 +00005000rm -f conftest.$ac_cv_objext conftest.$ac_ext
5001fi
cristy8b350f62009-11-15 23:12:43 +00005002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "$ac_cv_objext" >&6; }
5004OBJEXT=$ac_cv_objext
5005ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005008if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005009 $as_echo_n "(cached) " >&6
5010else
cristy8b350f62009-11-15 23:12:43 +00005011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005012/* end confdefs.h. */
5013
5014int
5015main ()
5016{
5017#ifndef __GNUC__
5018 choke me
5019#endif
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 ac_compiler_gnu=yes
5027else
cristy8b350f62009-11-15 23:12:43 +00005028 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005029fi
cristy3ed852e2009-09-05 21:47:34 +00005030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031ac_cv_c_compiler_gnu=$ac_compiler_gnu
5032
5033fi
cristy8b350f62009-11-15 23:12:43 +00005034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005035$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5036if test $ac_compiler_gnu = yes; then
5037 GCC=yes
5038else
5039 GCC=
5040fi
5041ac_test_CFLAGS=${CFLAGS+set}
5042ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005045if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 $as_echo_n "(cached) " >&6
5047else
5048 ac_save_c_werror_flag=$ac_c_werror_flag
5049 ac_c_werror_flag=yes
5050 ac_cv_prog_cc_g=no
5051 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005053/* end confdefs.h. */
5054
5055int
5056main ()
5057{
5058
5059 ;
5060 return 0;
5061}
5062_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005064 ac_cv_prog_cc_g=yes
5065else
cristy8b350f62009-11-15 23:12:43 +00005066 CFLAGS=""
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005068/* end confdefs.h. */
5069
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005078if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005079
cristy8b350f62009-11-15 23:12:43 +00005080else
5081 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005082 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005095 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005096fi
cristy3ed852e2009-09-05 21:47:34 +00005097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098fi
cristy3ed852e2009-09-05 21:47:34 +00005099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
cristy3ed852e2009-09-05 21:47:34 +00005101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5103fi
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo "$ac_cv_prog_cc_g" >&6; }
5106if test "$ac_test_CFLAGS" = set; then
5107 CFLAGS=$ac_save_CFLAGS
5108elif test $ac_cv_prog_cc_g = yes; then
5109 if test "$GCC" = yes; then
5110 CFLAGS="-g -O2"
5111 else
5112 CFLAGS="-g"
5113 fi
5114else
5115 if test "$GCC" = yes; then
5116 CFLAGS="-O2"
5117 else
5118 CFLAGS=
5119 fi
5120fi
cristy8b350f62009-11-15 23:12:43 +00005121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005123if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005124 $as_echo_n "(cached) " >&6
5125else
5126 ac_cv_prog_cc_c89=no
5127ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
5130#include <stdarg.h>
5131#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005132struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5134struct buf { int x; };
5135FILE * (*rcsopen) (struct buf *, struct stat *, int);
5136static char *e (p, i)
5137 char **p;
5138 int i;
5139{
5140 return p[i];
5141}
5142static char *f (char * (*g) (char **, int), char **p, ...)
5143{
5144 char *s;
5145 va_list v;
5146 va_start (v,p);
5147 s = g (p, va_arg (v,int));
5148 va_end (v);
5149 return s;
5150}
5151
5152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5153 function prototypes and stuff, but not '\xHH' hex character constants.
5154 These don't provoke an error unfortunately, instead are silently treated
5155 as 'x'. The following induces an error, until -std is added to get
5156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5157 array size at least. It's necessary to write '\x00'==0 to get something
5158 that's true only with -std. */
5159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5160
5161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5162 inside strings and character constants. */
5163#define FOO(x) 'x'
5164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5165
5166int test (int i, double x);
5167struct s1 {int (*f) (int a);};
5168struct s2 {int (*f) (double a);};
5169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5170int argc;
5171char **argv;
5172int
5173main ()
5174{
5175return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182do
5183 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005184 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005186fi
cristy3ed852e2009-09-05 21:47:34 +00005187rm -f core conftest.err conftest.$ac_objext
5188 test "x$ac_cv_prog_cc_c89" != "xno" && break
5189done
5190rm -f conftest.$ac_ext
5191CC=$ac_save_CC
5192
5193fi
5194# AC_CACHE_VAL
5195case "x$ac_cv_prog_cc_c89" in
5196 x)
cristy8b350f62009-11-15 23:12:43 +00005197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005198$as_echo "none needed" >&6; } ;;
5199 xno)
cristy8b350f62009-11-15 23:12:43 +00005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005201$as_echo "unsupported" >&6; } ;;
5202 *)
5203 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5206esac
cristy8b350f62009-11-15 23:12:43 +00005207if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005208
cristy8b350f62009-11-15 23:12:43 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005216
cristy73bd4a52010-10-05 11:24:23 +00005217depcc="$CC" am_compiler_list=
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005222 $as_echo_n "(cached) " >&6
5223else
5224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5225 # We make a subdir and do the tests there. Otherwise we can end up
5226 # making bogus files that we don't know about and never remove. For
5227 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005228 # making a dummy file named 'D' -- because '-MD' means "put the output
5229 # in D".
cristy7247bba2012-02-05 16:37:27 +00005230 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005231 mkdir conftest.dir
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5235 cd conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5241 # directory.
5242 mkdir sub
5243
5244 am_cv_CC_dependencies_compiler_type=none
5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247 fi
5248 am__universal=false
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5251 esac
5252
5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5257 #
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5261 : > sub/conftest.c
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5265 # Solaris 10 /bin/sh.
5266 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005267 done
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5269
cristyc0890a62012-07-19 00:18:20 +00005270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005271 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005272 # handle '-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
5276 case $depmode in
5277 gcc)
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5280 ;;
5281 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005282 # After this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005284 if test "x$enable_dependency_tracking" = xyes; then
5285 continue
5286 else
5287 break
5288 fi
5289 ;;
cristy7247bba2012-02-05 16:37:27 +00005290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005291 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5295 am__minus_obj=
5296 ;;
5297 none) break ;;
5298 esac
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=$am__obj \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5318 break
5319 fi
5320 fi
5321 done
5322
5323 cd ..
5324 rm -rf conftest.dir
5325else
5326 am_cv_CC_dependencies_compiler_type=none
5327fi
5328
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5333
5334 if
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337 am__fastdepCC_TRUE=
5338 am__fastdepCC_FALSE='#'
5339else
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5342fi
5343
5344
cristy3ed852e2009-09-05 21:47:34 +00005345
cristya0b81c32010-01-22 02:54:33 +00005346ac_ext=c
5347ac_cpp='$CPP $CPPFLAGS'
5348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5352$as_echo_n "checking how to run the C preprocessor... " >&6; }
5353# On Suns, sometimes $CPP names a directory.
5354if test -n "$CPP" && test -d "$CPP"; then
5355 CPP=
5356fi
5357if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005358 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005359 $as_echo_n "(cached) " >&6
5360else
5361 # Double quotes because CPP needs to be expanded
5362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5363 do
5364 ac_preproc_ok=false
5365for ac_c_preproc_warn_flag in '' yes
5366do
5367 # Use a header file that comes with gcc, so configuring glibc
5368 # with a fresh cross-compiler works.
5369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370 # <limits.h> exists even on freestanding compilers.
5371 # On the NeXT, cc -E runs the code through the compiler's parser,
5372 # not just through cpp. "Syntax error" is here to catch this case.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#ifdef __STDC__
5376# include <limits.h>
5377#else
5378# include <assert.h>
5379#endif
5380 Syntax error
5381_ACEOF
5382if ac_fn_c_try_cpp "$LINENO"; then :
5383
5384else
5385 # Broken: fails on valid input.
5386continue
5387fi
cristyda16f162011-02-19 23:52:17 +00005388rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005389
5390 # OK, works on sane cases. Now check whether nonexistent headers
5391 # can be detected and how.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394#include <ac_nonexistent.h>
5395_ACEOF
5396if ac_fn_c_try_cpp "$LINENO"; then :
5397 # Broken: success on invalid input.
5398continue
5399else
5400 # Passes both tests.
5401ac_preproc_ok=:
5402break
5403fi
cristyda16f162011-02-19 23:52:17 +00005404rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005405
5406done
5407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005408rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005409if $ac_preproc_ok; then :
5410 break
5411fi
5412
5413 done
5414 ac_cv_prog_CPP=$CPP
5415
5416fi
5417 CPP=$ac_cv_prog_CPP
5418else
5419 ac_cv_prog_CPP=$CPP
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5422$as_echo "$CPP" >&6; }
5423ac_preproc_ok=false
5424for ac_c_preproc_warn_flag in '' yes
5425do
5426 # Use a header file that comes with gcc, so configuring glibc
5427 # with a fresh cross-compiler works.
5428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5429 # <limits.h> exists even on freestanding compilers.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#ifdef __STDC__
5435# include <limits.h>
5436#else
5437# include <assert.h>
5438#endif
5439 Syntax error
5440_ACEOF
5441if ac_fn_c_try_cpp "$LINENO"; then :
5442
5443else
5444 # Broken: fails on valid input.
5445continue
5446fi
cristyda16f162011-02-19 23:52:17 +00005447rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005448
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h. */
5453#include <ac_nonexistent.h>
5454_ACEOF
5455if ac_fn_c_try_cpp "$LINENO"; then :
5456 # Broken: success on invalid input.
5457continue
5458else
5459 # Passes both tests.
5460ac_preproc_ok=:
5461break
5462fi
cristyda16f162011-02-19 23:52:17 +00005463rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005464
5465done
5466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005467rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005468if $ac_preproc_ok; then :
5469
5470else
5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005473as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5474See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005475fi
5476
5477ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5485$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005486if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005487 $as_echo_n "(cached) " >&6
5488else
5489 if test -z "$GREP"; then
5490 ac_path_GREP_found=false
5491 # Loop through the user's path and test for each of PROGNAME-LIST
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_prog in grep ggrep; do
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005500 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005501# Check for GNU ac_path_GREP and select it if it is found.
5502 # Check for GNU $ac_path_GREP
5503case `"$ac_path_GREP" --version 2>&1` in
5504*GNU*)
5505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5506*)
5507 ac_count=0
5508 $as_echo_n 0123456789 >"conftest.in"
5509 while :
5510 do
5511 cat "conftest.in" "conftest.in" >"conftest.tmp"
5512 mv "conftest.tmp" "conftest.in"
5513 cp "conftest.in" "conftest.nl"
5514 $as_echo 'GREP' >> "conftest.nl"
5515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517 as_fn_arith $ac_count + 1 && ac_count=$as_val
5518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5519 # Best one so far, save it but keep looking for a better one
5520 ac_cv_path_GREP="$ac_path_GREP"
5521 ac_path_GREP_max=$ac_count
5522 fi
5523 # 10*(2^10) chars as input seems more than enough
5524 test $ac_count -gt 10 && break
5525 done
5526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527esac
5528
5529 $ac_path_GREP_found && break 3
5530 done
5531 done
5532 done
5533IFS=$as_save_IFS
5534 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005535 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005536 fi
5537else
5538 ac_cv_path_GREP=$GREP
5539fi
5540
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5543$as_echo "$ac_cv_path_GREP" >&6; }
5544 GREP="$ac_cv_path_GREP"
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5548$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005549if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005550 $as_echo_n "(cached) " >&6
5551else
5552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5553 then ac_cv_path_EGREP="$GREP -E"
5554 else
5555 if test -z "$EGREP"; then
5556 ac_path_EGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in egrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005566 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005567# Check for GNU ac_path_EGREP and select it if it is found.
5568 # Check for GNU $ac_path_EGREP
5569case `"$ac_path_EGREP" --version 2>&1` in
5570*GNU*)
5571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5572*)
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'EGREP' >> "conftest.nl"
5581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_EGREP="$ac_path_EGREP"
5587 ac_path_EGREP_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595 $ac_path_EGREP_found && break 3
5596 done
5597 done
5598 done
5599IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005601 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005602 fi
5603else
5604 ac_cv_path_EGREP=$EGREP
5605fi
5606
5607 fi
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5610$as_echo "$ac_cv_path_EGREP" >&6; }
5611 EGREP="$ac_cv_path_EGREP"
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5615$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005616if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005617 $as_echo_n "(cached) " >&6
5618else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h. */
5621#include <stdlib.h>
5622#include <stdarg.h>
5623#include <string.h>
5624#include <float.h>
5625
5626int
5627main ()
5628{
5629
5630 ;
5631 return 0;
5632}
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635 ac_cv_header_stdc=yes
5636else
5637 ac_cv_header_stdc=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640
5641if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645#include <string.h>
5646
5647_ACEOF
5648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then :
5650
5651else
5652 ac_cv_header_stdc=no
5653fi
5654rm -f conftest*
5655
5656fi
5657
5658if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h. */
5662#include <stdlib.h>
5663
5664_ACEOF
5665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "free" >/dev/null 2>&1; then :
5667
5668else
5669 ac_cv_header_stdc=no
5670fi
5671rm -f conftest*
5672
5673fi
5674
5675if test $ac_cv_header_stdc = yes; then
5676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5677 if test "$cross_compiling" = yes; then :
5678 :
5679else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#include <ctype.h>
5683#include <stdlib.h>
5684#if ((' ' & 0x0FF) == 0x020)
5685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5687#else
5688# define ISLOWER(c) \
5689 (('a' <= (c) && (c) <= 'i') \
5690 || ('j' <= (c) && (c) <= 'r') \
5691 || ('s' <= (c) && (c) <= 'z'))
5692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5693#endif
5694
5695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5696int
5697main ()
5698{
5699 int i;
5700 for (i = 0; i < 256; i++)
5701 if (XOR (islower (i), ISLOWER (i))
5702 || toupper (i) != TOUPPER (i))
5703 return 2;
5704 return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_run "$LINENO"; then :
5708
5709else
5710 ac_cv_header_stdc=no
5711fi
5712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713 conftest.$ac_objext conftest.beam conftest.$ac_ext
5714fi
5715
5716fi
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5719$as_echo "$ac_cv_header_stdc" >&6; }
5720if test $ac_cv_header_stdc = yes; then
5721
5722$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5723
5724fi
5725
5726# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5728 inttypes.h stdint.h unistd.h
5729do :
5730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5731ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5732"
cristy98dddb52010-11-04 00:30:15 +00005733if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005734 cat >>confdefs.h <<_ACEOF
5735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736_ACEOF
5737
5738fi
5739
5740done
5741
5742
5743
5744 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005745if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005746 MINIX=yes
5747else
5748 MINIX=
5749fi
5750
5751
5752 if test "$MINIX" = yes; then
5753
5754$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5755
5756
5757$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5758
5759
5760$as_echo "#define _MINIX 1" >>confdefs.h
5761
5762 fi
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5766$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005767if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005768 $as_echo_n "(cached) " >&6
5769else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772
cristy14fefe52012-05-21 00:59:18 +00005773# define __EXTENSIONS__ 1
5774 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005775int
5776main ()
5777{
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_safe_to_define___extensions__=yes
5785else
5786 ac_cv_safe_to_define___extensions__=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5791$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5792 test $ac_cv_safe_to_define___extensions__ = yes &&
5793 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5794
5795 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5796
5797 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5798
5799 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5800
5801 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5802
5803
5804
5805# Check for programs
5806ac_ext=c
5807ac_cpp='$CPP $CPPFLAGS'
5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5813set dummy ${ac_tool_prefix}gcc; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005816if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005817 $as_echo_n "(cached) " >&6
5818else
5819 if test -n "$CC"; then
5820 ac_cv_prog_CC="$CC" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833done
5834 done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839CC=$ac_cv_prog_CC
5840if test -n "$CC"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5842$as_echo "$CC" >&6; }
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847
5848
5849fi
5850if test -z "$ac_cv_prog_CC"; then
5851 ac_ct_CC=$CC
5852 # Extract the first word of "gcc", so it can be a program name with args.
5853set dummy gcc; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 if test -n "$ac_ct_CC"; then
5860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005869 ac_cv_prog_ac_ct_CC="gcc"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874 done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879ac_ct_CC=$ac_cv_prog_ac_ct_CC
5880if test -n "$ac_ct_CC"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5882$as_echo "$ac_ct_CC" >&6; }
5883else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888 if test "x$ac_ct_CC" = x; then
5889 CC=""
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892yes:)
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895ac_tool_warned=yes ;;
5896esac
5897 CC=$ac_ct_CC
5898 fi
5899else
5900 CC="$ac_cv_prog_CC"
5901fi
5902
5903if test -z "$CC"; then
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}cc; ac_word=$2
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005909if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005910 $as_echo_n "(cached) " >&6
5911else
5912 if test -n "$CC"; then
5913 ac_cv_prog_CC="$CC" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005922 ac_cv_prog_CC="${ac_tool_prefix}cc"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927 done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932CC=$ac_cv_prog_CC
5933if test -n "$CC"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5935$as_echo "$CC" >&6; }
5936else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942 fi
5943fi
5944if test -z "$CC"; then
5945 # Extract the first word of "cc", so it can be a program name with args.
5946set dummy cc; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005949if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005950 $as_echo_n "(cached) " >&6
5951else
5952 if test -n "$CC"; then
5953 ac_cv_prog_CC="$CC" # Let the user override the test.
5954else
5955 ac_prog_rejected=no
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5964 ac_prog_rejected=yes
5965 continue
5966 fi
5967 ac_cv_prog_CC="cc"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972 done
5973IFS=$as_save_IFS
5974
5975if test $ac_prog_rejected = yes; then
5976 # We found a bogon in the path, so make sure we never use it.
5977 set dummy $ac_cv_prog_CC
5978 shift
5979 if test $# != 0; then
5980 # We chose a different compiler from the bogus one.
5981 # However, it has the same basename, so the bogon will be chosen
5982 # first if we set CC to just the basename; use the full file name.
5983 shift
5984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5985 fi
5986fi
5987fi
5988fi
5989CC=$ac_cv_prog_CC
5990if test -n "$CC"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5992$as_echo "$CC" >&6; }
5993else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998
5999fi
6000if test -z "$CC"; then
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in cl.exe
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006008if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006009 $as_echo_n "(cached) " >&6
6010else
6011 if test -n "$CC"; then
6012 ac_cv_prog_CC="$CC" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025done
6026 done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031CC=$ac_cv_prog_CC
6032if test -n "$CC"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6034$as_echo "$CC" >&6; }
6035else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040
6041 test -n "$CC" && break
6042 done
6043fi
6044if test -z "$CC"; then
6045 ac_ct_CC=$CC
6046 for ac_prog in cl.exe
6047do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049set dummy $ac_prog; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006052if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$ac_ct_CC"; then
6056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006065 ac_cv_prog_ac_ct_CC="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_CC=$ac_cv_prog_ac_ct_CC
6076if test -n "$ac_ct_CC"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6078$as_echo "$ac_ct_CC" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085 test -n "$ac_ct_CC" && break
6086done
6087
6088 if test "x$ac_ct_CC" = x; then
6089 CC=""
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097 CC=$ac_ct_CC
6098 fi
6099fi
6100
6101fi
6102
6103
6104test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006106as_fn_error $? "no acceptable C compiler found in \$PATH
6107See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006108
6109# Provide some information about the compiler.
6110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6111set X $ac_compile
6112ac_compiler=$2
6113for ac_option in --version -v -V -qversion; do
6114 { { ac_try="$ac_compiler $ac_option >&5"
6115case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6120$as_echo "$ac_try_echo"; } >&5
6121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6122 ac_status=$?
6123 if test -s conftest.err; then
6124 sed '10a\
6125... rest of stderr output deleted ...
6126 10q' conftest.err >conftest.er1
6127 cat conftest.er1 >&5
6128 fi
6129 rm -f conftest.er1 conftest.err
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; }
6132done
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6135$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006136if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006137 $as_echo_n "(cached) " >&6
6138else
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h. */
6141
6142int
6143main ()
6144{
6145#ifndef __GNUC__
6146 choke me
6147#endif
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_compiler_gnu=yes
6155else
6156 ac_compiler_gnu=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159ac_cv_c_compiler_gnu=$ac_compiler_gnu
6160
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6163$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6164if test $ac_compiler_gnu = yes; then
6165 GCC=yes
6166else
6167 GCC=
6168fi
6169ac_test_CFLAGS=${CFLAGS+set}
6170ac_save_CFLAGS=$CFLAGS
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6172$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006173if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006174 $as_echo_n "(cached) " >&6
6175else
6176 ac_save_c_werror_flag=$ac_c_werror_flag
6177 ac_c_werror_flag=yes
6178 ac_cv_prog_cc_g=no
6179 CFLAGS="-g"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h. */
6182
6183int
6184main ()
6185{
6186
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_prog_cc_g=yes
6193else
6194 CFLAGS=""
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h. */
6197
6198int
6199main ()
6200{
6201
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207
6208else
6209 ac_c_werror_flag=$ac_save_c_werror_flag
6210 CFLAGS="-g"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h. */
6213
6214int
6215main ()
6216{
6217
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223 ac_cv_prog_cc_g=yes
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 ac_c_werror_flag=$ac_save_c_werror_flag
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6233$as_echo "$ac_cv_prog_cc_g" >&6; }
6234if test "$ac_test_CFLAGS" = set; then
6235 CFLAGS=$ac_save_CFLAGS
6236elif test $ac_cv_prog_cc_g = yes; then
6237 if test "$GCC" = yes; then
6238 CFLAGS="-g -O2"
6239 else
6240 CFLAGS="-g"
6241 fi
6242else
6243 if test "$GCC" = yes; then
6244 CFLAGS="-O2"
6245 else
6246 CFLAGS=
6247 fi
6248fi
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6250$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006251if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006252 $as_echo_n "(cached) " >&6
6253else
6254 ac_cv_prog_cc_c89=no
6255ac_save_CC=$CC
6256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258#include <stdarg.h>
6259#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006260struct stat;
cristya0b81c32010-01-22 02:54:33 +00006261/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6262struct buf { int x; };
6263FILE * (*rcsopen) (struct buf *, struct stat *, int);
6264static char *e (p, i)
6265 char **p;
6266 int i;
6267{
6268 return p[i];
6269}
6270static char *f (char * (*g) (char **, int), char **p, ...)
6271{
6272 char *s;
6273 va_list v;
6274 va_start (v,p);
6275 s = g (p, va_arg (v,int));
6276 va_end (v);
6277 return s;
6278}
6279
6280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6281 function prototypes and stuff, but not '\xHH' hex character constants.
6282 These don't provoke an error unfortunately, instead are silently treated
6283 as 'x'. The following induces an error, until -std is added to get
6284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6285 array size at least. It's necessary to write '\x00'==0 to get something
6286 that's true only with -std. */
6287int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6288
6289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6290 inside strings and character constants. */
6291#define FOO(x) 'x'
6292int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6293
6294int test (int i, double x);
6295struct s1 {int (*f) (int a);};
6296struct s2 {int (*f) (double a);};
6297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6298int argc;
6299char **argv;
6300int
6301main ()
6302{
6303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6310do
6311 CC="$ac_save_CC $ac_arg"
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 ac_cv_prog_cc_c89=$ac_arg
6314fi
6315rm -f core conftest.err conftest.$ac_objext
6316 test "x$ac_cv_prog_cc_c89" != "xno" && break
6317done
6318rm -f conftest.$ac_ext
6319CC=$ac_save_CC
6320
6321fi
6322# AC_CACHE_VAL
6323case "x$ac_cv_prog_cc_c89" in
6324 x)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6326$as_echo "none needed" >&6; } ;;
6327 xno)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6329$as_echo "unsupported" >&6; } ;;
6330 *)
6331 CC="$CC $ac_cv_prog_cc_c89"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6333$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6334esac
6335if test "x$ac_cv_prog_cc_c89" != xno; then :
6336
6337fi
6338
6339ac_ext=c
6340ac_cpp='$CPP $CPPFLAGS'
6341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
cristy73bd4a52010-10-05 11:24:23 +00006345depcc="$CC" am_compiler_list=
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6348$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006349if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006350 $as_echo_n "(cached) " >&6
6351else
6352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6353 # We make a subdir and do the tests there. Otherwise we can end up
6354 # making bogus files that we don't know about and never remove. For
6355 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006356 # making a dummy file named 'D' -- because '-MD' means "put the output
6357 # in D".
cristy7247bba2012-02-05 16:37:27 +00006358 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006359 mkdir conftest.dir
6360 # Copy depcomp to subdir because otherwise we won't find it if we're
6361 # using a relative directory.
6362 cp "$am_depcomp" conftest.dir
6363 cd conftest.dir
6364 # We will build objects and dependencies in a subdirectory because
6365 # it helps to detect inapplicable dependency modes. For instance
6366 # both Tru64's cc and ICC support -MD to output dependencies as a
6367 # side effect of compilation, but ICC will put the dependencies in
6368 # the current directory while Tru64 will put them in the object
6369 # directory.
6370 mkdir sub
6371
6372 am_cv_CC_dependencies_compiler_type=none
6373 if test "$am_compiler_list" = ""; then
6374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6375 fi
6376 am__universal=false
6377 case " $depcc " in #(
6378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6379 esac
6380
6381 for depmode in $am_compiler_list; do
6382 # Setup a source with many dependencies, because some compilers
6383 # like to wrap large dependency lists on column 80 (with \), and
6384 # we should not choose a depcomp mode which is confused by this.
6385 #
6386 # We need to recreate these files for each test, as the compiler may
6387 # overwrite some of them when testing with obscure command lines.
6388 # This happens at least with the AIX C compiler.
6389 : > sub/conftest.c
6390 for i in 1 2 3 4 5 6; do
6391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006392 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6393 # Solaris 10 /bin/sh.
6394 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006395 done
6396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6397
cristyc0890a62012-07-19 00:18:20 +00006398 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006399 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006400 # handle '-M -o', and we need to detect this. Also, some Intel
6401 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006402 am__obj=sub/conftest.${OBJEXT-o}
6403 am__minus_obj="-o $am__obj"
6404 case $depmode in
6405 gcc)
6406 # This depmode causes a compiler race in universal mode.
6407 test "$am__universal" = false || continue
6408 ;;
6409 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006410 # After this tag, mechanisms are not by side-effect, so they'll
6411 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006412 if test "x$enable_dependency_tracking" = xyes; then
6413 continue
6414 else
6415 break
6416 fi
6417 ;;
cristy7247bba2012-02-05 16:37:27 +00006418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006419 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006420 # not run yet. These depmodes are late enough in the game, and
6421 # so weak that their functioning should not be impacted.
6422 am__obj=conftest.${OBJEXT-o}
6423 am__minus_obj=
6424 ;;
6425 none) break ;;
6426 esac
6427 if depmode=$depmode \
6428 source=sub/conftest.c object=$am__obj \
6429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6431 >/dev/null 2>conftest.err &&
6432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6436 # icc doesn't choke on unknown options, it will just issue warnings
6437 # or remarks (even with -Werror). So we grep stderr for any message
6438 # that says an option was ignored or not supported.
6439 # When given -MP, icc 7.0 and 7.1 complain thusly:
6440 # icc: Command line warning: ignoring option '-M'; no argument required
6441 # The diagnosis changed in icc 8.0:
6442 # icc: Command line remark: option '-MP' not supported
6443 if (grep 'ignoring option' conftest.err ||
6444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6445 am_cv_CC_dependencies_compiler_type=$depmode
6446 break
6447 fi
6448 fi
6449 done
6450
6451 cd ..
6452 rm -rf conftest.dir
6453else
6454 am_cv_CC_dependencies_compiler_type=none
6455fi
6456
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6459$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6460CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6461
6462 if
6463 test "x$enable_dependency_tracking" != xno \
6464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6465 am__fastdepCC_TRUE=
6466 am__fastdepCC_FALSE='#'
6467else
6468 am__fastdepCC_TRUE='#'
6469 am__fastdepCC_FALSE=
6470fi
6471
6472
cristy95646052009-11-28 23:05:30 +00006473ac_ext=cpp
6474ac_cpp='$CXXCPP $CPPFLAGS'
6475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6478if test -z "$CXX"; then
6479 if test -n "$CCC"; then
6480 CXX=$CCC
6481 else
6482 if test -n "$ac_tool_prefix"; then
6483 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6484 do
6485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006489if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$CXX"; then
6493 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006502 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512CXX=$ac_cv_prog_CXX
6513if test -n "$CXX"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6515$as_echo "$CXX" >&6; }
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521
6522 test -n "$CXX" && break
6523 done
6524fi
6525if test -z "$CXX"; then
6526 ac_ct_CXX=$CXX
6527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6528do
6529 # Extract the first word of "$ac_prog", so it can be a program name with args.
6530set dummy $ac_prog; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006533if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006534 $as_echo_n "(cached) " >&6
6535else
6536 if test -n "$ac_ct_CXX"; then
6537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006546 ac_cv_prog_ac_ct_CXX="$ac_prog"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551 done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6557if test -n "$ac_ct_CXX"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6559$as_echo "$ac_ct_CXX" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566 test -n "$ac_ct_CXX" && break
6567done
6568
6569 if test "x$ac_ct_CXX" = x; then
6570 CXX="g++"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576ac_tool_warned=yes ;;
6577esac
6578 CXX=$ac_ct_CXX
6579 fi
6580fi
6581
6582 fi
6583fi
6584# Provide some information about the compiler.
6585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6586set X $ac_compile
6587ac_compiler=$2
6588for ac_option in --version -v -V -qversion; do
6589 { { ac_try="$ac_compiler $ac_option >&5"
6590case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6595$as_echo "$ac_try_echo"; } >&5
6596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6597 ac_status=$?
6598 if test -s conftest.err; then
6599 sed '10a\
6600... rest of stderr output deleted ...
6601 10q' conftest.err >conftest.er1
6602 cat conftest.er1 >&5
6603 fi
6604 rm -f conftest.er1 conftest.err
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; }
6607done
6608
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6610$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006611if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006612 $as_echo_n "(cached) " >&6
6613else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617int
6618main ()
6619{
6620#ifndef __GNUC__
6621 choke me
6622#endif
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628if ac_fn_cxx_try_compile "$LINENO"; then :
6629 ac_compiler_gnu=yes
6630else
6631 ac_compiler_gnu=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6638$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6639if test $ac_compiler_gnu = yes; then
6640 GXX=yes
6641else
6642 GXX=
6643fi
6644ac_test_CXXFLAGS=${CXXFLAGS+set}
6645ac_save_CXXFLAGS=$CXXFLAGS
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6647$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006648if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006649 $as_echo_n "(cached) " >&6
6650else
6651 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6652 ac_cxx_werror_flag=yes
6653 ac_cv_prog_cxx_g=no
6654 CXXFLAGS="-g"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h. */
6657
6658int
6659main ()
6660{
6661
6662 ;
6663 return 0;
6664}
6665_ACEOF
6666if ac_fn_cxx_try_compile "$LINENO"; then :
6667 ac_cv_prog_cxx_g=yes
6668else
6669 CXXFLAGS=""
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h. */
6672
6673int
6674main ()
6675{
6676
6677 ;
6678 return 0;
6679}
6680_ACEOF
6681if ac_fn_cxx_try_compile "$LINENO"; then :
6682
6683else
6684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6685 CXXFLAGS="-g"
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688
6689int
6690main ()
6691{
6692
6693 ;
6694 return 0;
6695}
6696_ACEOF
6697if ac_fn_cxx_try_compile "$LINENO"; then :
6698 ac_cv_prog_cxx_g=yes
6699fi
6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6708$as_echo "$ac_cv_prog_cxx_g" >&6; }
6709if test "$ac_test_CXXFLAGS" = set; then
6710 CXXFLAGS=$ac_save_CXXFLAGS
6711elif test $ac_cv_prog_cxx_g = yes; then
6712 if test "$GXX" = yes; then
6713 CXXFLAGS="-g -O2"
6714 else
6715 CXXFLAGS="-g"
6716 fi
6717else
6718 if test "$GXX" = yes; then
6719 CXXFLAGS="-O2"
6720 else
6721 CXXFLAGS=
6722 fi
6723fi
6724ac_ext=c
6725ac_cpp='$CPP $CPPFLAGS'
6726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729
cristy73bd4a52010-10-05 11:24:23 +00006730depcc="$CXX" am_compiler_list=
6731
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6733$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006734if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006735 $as_echo_n "(cached) " >&6
6736else
6737 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6738 # We make a subdir and do the tests there. Otherwise we can end up
6739 # making bogus files that we don't know about and never remove. For
6740 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006741 # making a dummy file named 'D' -- because '-MD' means "put the output
6742 # in D".
cristy7247bba2012-02-05 16:37:27 +00006743 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006744 mkdir conftest.dir
6745 # Copy depcomp to subdir because otherwise we won't find it if we're
6746 # using a relative directory.
6747 cp "$am_depcomp" conftest.dir
6748 cd conftest.dir
6749 # We will build objects and dependencies in a subdirectory because
6750 # it helps to detect inapplicable dependency modes. For instance
6751 # both Tru64's cc and ICC support -MD to output dependencies as a
6752 # side effect of compilation, but ICC will put the dependencies in
6753 # the current directory while Tru64 will put them in the object
6754 # directory.
6755 mkdir sub
6756
6757 am_cv_CXX_dependencies_compiler_type=none
6758 if test "$am_compiler_list" = ""; then
6759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6760 fi
6761 am__universal=false
6762 case " $depcc " in #(
6763 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6764 esac
6765
6766 for depmode in $am_compiler_list; do
6767 # Setup a source with many dependencies, because some compilers
6768 # like to wrap large dependency lists on column 80 (with \), and
6769 # we should not choose a depcomp mode which is confused by this.
6770 #
6771 # We need to recreate these files for each test, as the compiler may
6772 # overwrite some of them when testing with obscure command lines.
6773 # This happens at least with the AIX C compiler.
6774 : > sub/conftest.c
6775 for i in 1 2 3 4 5 6; do
6776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006777 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6778 # Solaris 10 /bin/sh.
6779 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006780 done
6781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6782
cristyc0890a62012-07-19 00:18:20 +00006783 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006784 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006785 # handle '-M -o', and we need to detect this. Also, some Intel
6786 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006787 am__obj=sub/conftest.${OBJEXT-o}
6788 am__minus_obj="-o $am__obj"
6789 case $depmode in
6790 gcc)
6791 # This depmode causes a compiler race in universal mode.
6792 test "$am__universal" = false || continue
6793 ;;
6794 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006795 # After this tag, mechanisms are not by side-effect, so they'll
6796 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006797 if test "x$enable_dependency_tracking" = xyes; then
6798 continue
6799 else
6800 break
6801 fi
6802 ;;
cristy7247bba2012-02-05 16:37:27 +00006803 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006804 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006805 # not run yet. These depmodes are late enough in the game, and
6806 # so weak that their functioning should not be impacted.
6807 am__obj=conftest.${OBJEXT-o}
6808 am__minus_obj=
6809 ;;
6810 none) break ;;
6811 esac
6812 if depmode=$depmode \
6813 source=sub/conftest.c object=$am__obj \
6814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6815 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6816 >/dev/null 2>conftest.err &&
6817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6819 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6821 # icc doesn't choke on unknown options, it will just issue warnings
6822 # or remarks (even with -Werror). So we grep stderr for any message
6823 # that says an option was ignored or not supported.
6824 # When given -MP, icc 7.0 and 7.1 complain thusly:
6825 # icc: Command line warning: ignoring option '-M'; no argument required
6826 # The diagnosis changed in icc 8.0:
6827 # icc: Command line remark: option '-MP' not supported
6828 if (grep 'ignoring option' conftest.err ||
6829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6830 am_cv_CXX_dependencies_compiler_type=$depmode
6831 break
6832 fi
6833 fi
6834 done
6835
6836 cd ..
6837 rm -rf conftest.dir
6838else
6839 am_cv_CXX_dependencies_compiler_type=none
6840fi
6841
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6844$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6845CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6846
6847 if
6848 test "x$enable_dependency_tracking" != xno \
6849 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6850 am__fastdepCXX_TRUE=
6851 am__fastdepCXX_FALSE='#'
6852else
6853 am__fastdepCXX_TRUE='#'
6854 am__fastdepCXX_FALSE=
6855fi
6856
6857
cristy8b350f62009-11-15 23:12:43 +00006858 case $ac_cv_prog_cc_stdc in #(
6859 no) :
6860 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6861 *) :
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006863$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006864if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006865 $as_echo_n "(cached) " >&6
6866else
6867 ac_cv_prog_cc_c99=no
6868ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006870/* end confdefs.h. */
6871#include <stdarg.h>
6872#include <stdbool.h>
6873#include <stdlib.h>
6874#include <wchar.h>
6875#include <stdio.h>
6876
6877// Check varargs macros. These examples are taken from C99 6.10.3.5.
6878#define debug(...) fprintf (stderr, __VA_ARGS__)
6879#define showlist(...) puts (#__VA_ARGS__)
6880#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6881static void
6882test_varargs_macros (void)
6883{
6884 int x = 1234;
6885 int y = 5678;
6886 debug ("Flag");
6887 debug ("X = %d\n", x);
6888 showlist (The first, second, and third items.);
6889 report (x>y, "x is %d but y is %d", x, y);
6890}
6891
6892// Check long long types.
6893#define BIG64 18446744073709551615ull
6894#define BIG32 4294967295ul
6895#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6896#if !BIG_OK
6897 your preprocessor is broken;
6898#endif
6899#if BIG_OK
6900#else
6901 your preprocessor is broken;
6902#endif
6903static long long int bignum = -9223372036854775807LL;
6904static unsigned long long int ubignum = BIG64;
6905
6906struct incomplete_array
6907{
6908 int datasize;
6909 double data[];
6910};
6911
6912struct named_init {
6913 int number;
6914 const wchar_t *name;
6915 double average;
6916};
6917
6918typedef const char *ccp;
6919
6920static inline int
6921test_restrict (ccp restrict text)
6922{
6923 // See if C++-style comments work.
6924 // Iterate through items via the restricted pointer.
6925 // Also check for declarations in for loops.
6926 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6927 continue;
6928 return 0;
6929}
6930
6931// Check varargs and va_copy.
6932static void
6933test_varargs (const char *format, ...)
6934{
6935 va_list args;
6936 va_start (args, format);
6937 va_list args_copy;
6938 va_copy (args_copy, args);
6939
6940 const char *str;
6941 int number;
6942 float fnumber;
6943
6944 while (*format)
6945 {
6946 switch (*format++)
6947 {
6948 case 's': // string
6949 str = va_arg (args_copy, const char *);
6950 break;
6951 case 'd': // int
6952 number = va_arg (args_copy, int);
6953 break;
6954 case 'f': // float
6955 fnumber = va_arg (args_copy, double);
6956 break;
6957 default:
6958 break;
6959 }
6960 }
6961 va_end (args_copy);
6962 va_end (args);
6963}
6964
6965int
6966main ()
6967{
6968
6969 // Check bool.
6970 _Bool success = false;
6971
6972 // Check restrict.
6973 if (test_restrict ("String literal") == 0)
6974 success = true;
6975 char *restrict newvar = "Another string";
6976
6977 // Check varargs.
6978 test_varargs ("s, d' f .", "string", 65, 34.234);
6979 test_varargs_macros ();
6980
6981 // Check flexible array members.
6982 struct incomplete_array *ia =
6983 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6984 ia->datasize = 10;
6985 for (int i = 0; i < ia->datasize; ++i)
6986 ia->data[i] = i * 1.234;
6987
6988 // Check named initializers.
6989 struct named_init ni = {
6990 .number = 34,
6991 .name = L"Test wide string",
6992 .average = 543.34343,
6993 };
6994
6995 ni.number = 58;
6996
6997 int dynamic_array[ni.number];
6998 dynamic_array[ni.number - 1] = 543;
6999
7000 // work around unused variable warnings
7001 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7002 || dynamic_array[ni.number - 1] != 543);
7003
7004 ;
7005 return 0;
7006}
7007_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007008for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007009do
7010 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007011 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007012 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007013fi
cristy3ed852e2009-09-05 21:47:34 +00007014rm -f core conftest.err conftest.$ac_objext
7015 test "x$ac_cv_prog_cc_c99" != "xno" && break
7016done
7017rm -f conftest.$ac_ext
7018CC=$ac_save_CC
7019
7020fi
7021# AC_CACHE_VAL
7022case "x$ac_cv_prog_cc_c99" in
7023 x)
cristy8b350f62009-11-15 23:12:43 +00007024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007025$as_echo "none needed" >&6; } ;;
7026 xno)
cristy8b350f62009-11-15 23:12:43 +00007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007028$as_echo "unsupported" >&6; } ;;
7029 *)
7030 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007032$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7033esac
cristy8b350f62009-11-15 23:12:43 +00007034if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7036else
cristy8b350f62009-11-15 23:12:43 +00007037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007038$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007039if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007040 $as_echo_n "(cached) " >&6
7041else
7042 ac_cv_prog_cc_c89=no
7043ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#include <stdarg.h>
7047#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007048struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7050struct buf { int x; };
7051FILE * (*rcsopen) (struct buf *, struct stat *, int);
7052static char *e (p, i)
7053 char **p;
7054 int i;
7055{
7056 return p[i];
7057}
7058static char *f (char * (*g) (char **, int), char **p, ...)
7059{
7060 char *s;
7061 va_list v;
7062 va_start (v,p);
7063 s = g (p, va_arg (v,int));
7064 va_end (v);
7065 return s;
7066}
7067
7068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7069 function prototypes and stuff, but not '\xHH' hex character constants.
7070 These don't provoke an error unfortunately, instead are silently treated
7071 as 'x'. The following induces an error, until -std is added to get
7072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7073 array size at least. It's necessary to write '\x00'==0 to get something
7074 that's true only with -std. */
7075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7076
7077/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7078 inside strings and character constants. */
7079#define FOO(x) 'x'
7080int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7081
7082int test (int i, double x);
7083struct s1 {int (*f) (int a);};
7084struct s2 {int (*f) (double a);};
7085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7086int argc;
7087char **argv;
7088int
7089main ()
7090{
7091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7092 ;
7093 return 0;
7094}
7095_ACEOF
7096for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7098do
7099 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007100 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007102fi
cristy3ed852e2009-09-05 21:47:34 +00007103rm -f core conftest.err conftest.$ac_objext
7104 test "x$ac_cv_prog_cc_c89" != "xno" && break
7105done
7106rm -f conftest.$ac_ext
7107CC=$ac_save_CC
7108
7109fi
7110# AC_CACHE_VAL
7111case "x$ac_cv_prog_cc_c89" in
7112 x)
cristy8b350f62009-11-15 23:12:43 +00007113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007114$as_echo "none needed" >&6; } ;;
7115 xno)
cristy8b350f62009-11-15 23:12:43 +00007116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007117$as_echo "unsupported" >&6; } ;;
7118 *)
7119 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007121$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7122esac
cristy8b350f62009-11-15 23:12:43 +00007123if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7125else
7126 ac_cv_prog_cc_stdc=no
7127fi
7128
cristy3ed852e2009-09-05 21:47:34 +00007129fi
cristy3ed852e2009-09-05 21:47:34 +00007130 ;;
7131esac
cristy8b350f62009-11-15 23:12:43 +00007132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007133$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007134 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007135 $as_echo_n "(cached) " >&6
7136fi
7137
cristy8b350f62009-11-15 23:12:43 +00007138 case $ac_cv_prog_cc_stdc in #(
7139 no) :
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7141$as_echo "unsupported" >&6; } ;; #(
7142 '') :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7144$as_echo "none needed" >&6; } ;; #(
7145 *) :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7148esac
7149
cristy3ed852e2009-09-05 21:47:34 +00007150ac_ext=c
7151ac_cpp='$CPP $CPPFLAGS'
7152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007156$as_echo_n "checking how to run the C preprocessor... " >&6; }
7157# On Suns, sometimes $CPP names a directory.
7158if test -n "$CPP" && test -d "$CPP"; then
7159 CPP=
7160fi
7161if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007162 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007163 $as_echo_n "(cached) " >&6
7164else
7165 # Double quotes because CPP needs to be expanded
7166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7167 do
7168 ac_preproc_ok=false
7169for ac_c_preproc_warn_flag in '' yes
7170do
7171 # Use a header file that comes with gcc, so configuring glibc
7172 # with a fresh cross-compiler works.
7173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7174 # <limits.h> exists even on freestanding compilers.
7175 # On the NeXT, cc -E runs the code through the compiler's parser,
7176 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007178/* end confdefs.h. */
7179#ifdef __STDC__
7180# include <limits.h>
7181#else
7182# include <assert.h>
7183#endif
7184 Syntax error
7185_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007186if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007187
cristy8b350f62009-11-15 23:12:43 +00007188else
cristy3ed852e2009-09-05 21:47:34 +00007189 # Broken: fails on valid input.
7190continue
7191fi
cristyda16f162011-02-19 23:52:17 +00007192rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007193
7194 # OK, works on sane cases. Now check whether nonexistent headers
7195 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007197/* end confdefs.h. */
7198#include <ac_nonexistent.h>
7199_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007200if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007201 # Broken: success on invalid input.
7202continue
7203else
cristy3ed852e2009-09-05 21:47:34 +00007204 # Passes both tests.
7205ac_preproc_ok=:
7206break
7207fi
cristyda16f162011-02-19 23:52:17 +00007208rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007209
7210done
7211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007212rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007213if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007214 break
7215fi
7216
7217 done
7218 ac_cv_prog_CPP=$CPP
7219
7220fi
7221 CPP=$ac_cv_prog_CPP
7222else
7223 ac_cv_prog_CPP=$CPP
7224fi
cristy8b350f62009-11-15 23:12:43 +00007225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007226$as_echo "$CPP" >&6; }
7227ac_preproc_ok=false
7228for ac_c_preproc_warn_flag in '' yes
7229do
7230 # Use a header file that comes with gcc, so configuring glibc
7231 # with a fresh cross-compiler works.
7232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 # <limits.h> exists even on freestanding compilers.
7234 # On the NeXT, cc -E runs the code through the compiler's parser,
7235 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007237/* end confdefs.h. */
7238#ifdef __STDC__
7239# include <limits.h>
7240#else
7241# include <assert.h>
7242#endif
7243 Syntax error
7244_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007245if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007246
cristy8b350f62009-11-15 23:12:43 +00007247else
cristy3ed852e2009-09-05 21:47:34 +00007248 # Broken: fails on valid input.
7249continue
7250fi
cristyda16f162011-02-19 23:52:17 +00007251rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007252
7253 # OK, works on sane cases. Now check whether nonexistent headers
7254 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007256/* end confdefs.h. */
7257#include <ac_nonexistent.h>
7258_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007259if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007260 # Broken: success on invalid input.
7261continue
7262else
cristy3ed852e2009-09-05 21:47:34 +00007263 # Passes both tests.
7264ac_preproc_ok=:
7265break
7266fi
cristyda16f162011-02-19 23:52:17 +00007267rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007268
7269done
7270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007271rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007272if $ac_preproc_ok; then :
7273
cristy3ed852e2009-09-05 21:47:34 +00007274else
cristy8b350f62009-11-15 23:12:43 +00007275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007277as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7278See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007279fi
7280
7281ac_ext=c
7282ac_cpp='$CPP $CPPFLAGS'
7283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286
cristy73bd4a52010-10-05 11:24:23 +00007287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7288$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007289if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007290 $as_echo_n "(cached) " >&6
7291else
7292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7293 for ac_i in 1 2 3 4 5 6 7; do
7294 ac_script="$ac_script$as_nl$ac_script"
7295 done
7296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7297 { ac_script=; unset ac_script;}
7298 if test -z "$SED"; then
7299 ac_path_SED_found=false
7300 # Loop through the user's path and test for each of PROGNAME-LIST
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_prog in sed gsed; do
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007309 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007310# Check for GNU ac_path_SED and select it if it is found.
7311 # Check for GNU $ac_path_SED
7312case `"$ac_path_SED" --version 2>&1` in
7313*GNU*)
7314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7315*)
7316 ac_count=0
7317 $as_echo_n 0123456789 >"conftest.in"
7318 while :
7319 do
7320 cat "conftest.in" "conftest.in" >"conftest.tmp"
7321 mv "conftest.tmp" "conftest.in"
7322 cp "conftest.in" "conftest.nl"
7323 $as_echo '' >> "conftest.nl"
7324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7326 as_fn_arith $ac_count + 1 && ac_count=$as_val
7327 if test $ac_count -gt ${ac_path_SED_max-0}; then
7328 # Best one so far, save it but keep looking for a better one
7329 ac_cv_path_SED="$ac_path_SED"
7330 ac_path_SED_max=$ac_count
7331 fi
7332 # 10*(2^10) chars as input seems more than enough
7333 test $ac_count -gt 10 && break
7334 done
7335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7336esac
7337
7338 $ac_path_SED_found && break 3
7339 done
7340 done
7341 done
7342IFS=$as_save_IFS
7343 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007345 fi
7346else
7347 ac_cv_path_SED=$SED
7348fi
7349
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7352$as_echo "$ac_cv_path_SED" >&6; }
7353 SED="$ac_cv_path_SED"
7354 rm -f conftest.sed
7355
7356test -z "$SED" && SED=sed
7357Xsed="$SED -e 1s/^X//"
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7370$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007371if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007372 $as_echo_n "(cached) " >&6
7373else
7374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7375 then ac_cv_path_FGREP="$GREP -F"
7376 else
7377 if test -z "$FGREP"; then
7378 ac_path_FGREP_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_prog in fgrep; do
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007388 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007389# Check for GNU ac_path_FGREP and select it if it is found.
7390 # Check for GNU $ac_path_FGREP
7391case `"$ac_path_FGREP" --version 2>&1` in
7392*GNU*)
7393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7394*)
7395 ac_count=0
7396 $as_echo_n 0123456789 >"conftest.in"
7397 while :
7398 do
7399 cat "conftest.in" "conftest.in" >"conftest.tmp"
7400 mv "conftest.tmp" "conftest.in"
7401 cp "conftest.in" "conftest.nl"
7402 $as_echo 'FGREP' >> "conftest.nl"
7403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7405 as_fn_arith $ac_count + 1 && ac_count=$as_val
7406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7407 # Best one so far, save it but keep looking for a better one
7408 ac_cv_path_FGREP="$ac_path_FGREP"
7409 ac_path_FGREP_max=$ac_count
7410 fi
7411 # 10*(2^10) chars as input seems more than enough
7412 test $ac_count -gt 10 && break
7413 done
7414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7415esac
7416
7417 $ac_path_FGREP_found && break 3
7418 done
7419 done
7420 done
7421IFS=$as_save_IFS
7422 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007424 fi
7425else
7426 ac_cv_path_FGREP=$FGREP
7427fi
7428
7429 fi
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7432$as_echo "$ac_cv_path_FGREP" >&6; }
7433 FGREP="$ac_cv_path_FGREP"
7434
7435
7436test -z "$GREP" && GREP=grep
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
cristy0c60a692010-11-04 01:09:47 +00007454ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7455ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7456ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7459$as_echo_n "checking how to print strings... " >&6; }
7460# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007461if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007462 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7463 ECHO='print -r --'
7464elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7465 ECHO='printf %s\n'
7466else
7467 # Use this function as a fallback that always works.
7468 func_fallback_echo ()
7469 {
7470 eval 'cat <<_LTECHO_EOF
7471$1
7472_LTECHO_EOF'
7473 }
7474 ECHO='func_fallback_echo'
7475fi
7476
7477# func_echo_all arg...
7478# Invoke $ECHO with all args, space-separated.
7479func_echo_all ()
7480{
7481 $ECHO ""
7482}
7483
7484case "$ECHO" in
7485 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7486$as_echo "printf" >&6; } ;;
7487 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7488$as_echo "print -r" >&6; } ;;
7489 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7490$as_echo "cat" >&6; } ;;
7491esac
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
cristy73bd4a52010-10-05 11:24:23 +00007506
7507
7508# Check whether --with-gnu-ld was given.
7509if test "${with_gnu_ld+set}" = set; then :
7510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7511else
7512 with_gnu_ld=no
7513fi
7514
7515ac_prog=ld
7516if test "$GCC" = yes; then
7517 # Check if gcc -print-prog-name=ld gives a path.
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7519$as_echo_n "checking for ld used by $CC... " >&6; }
7520 case $host in
7521 *-*-mingw*)
7522 # gcc leaves a trailing carriage return which upsets mingw
7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7524 *)
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7526 esac
7527 case $ac_prog in
7528 # Accept absolute paths.
7529 [\\/]* | ?:[\\/]*)
7530 re_direlt='/[^/][^/]*/\.\./'
7531 # Canonicalize the pathname of ld
7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7535 done
7536 test -z "$LD" && LD="$ac_prog"
7537 ;;
7538 "")
7539 # If it fails, then pretend we aren't using GCC.
7540 ac_prog=ld
7541 ;;
7542 *)
7543 # If it is relative, then search for the first ld in PATH.
7544 with_gnu_ld=unknown
7545 ;;
7546 esac
7547elif test "$with_gnu_ld" = yes; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7549$as_echo_n "checking for GNU ld... " >&6; }
7550else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7552$as_echo_n "checking for non-GNU ld... " >&6; }
7553fi
cristyda16f162011-02-19 23:52:17 +00007554if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007555 $as_echo_n "(cached) " >&6
7556else
7557 if test -z "$LD"; then
7558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7559 for ac_dir in $PATH; do
7560 IFS="$lt_save_ifs"
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7563 lt_cv_path_LD="$ac_dir/$ac_prog"
7564 # Check to see if the program is GNU ld. I'd rather use --version,
7565 # but apparently some variants of GNU ld only accept -v.
7566 # Break only if it was the GNU/non-GNU ld that we prefer.
7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7568 *GNU* | *'with BFD'*)
7569 test "$with_gnu_ld" != no && break
7570 ;;
7571 *)
7572 test "$with_gnu_ld" != yes && break
7573 ;;
7574 esac
7575 fi
7576 done
7577 IFS="$lt_save_ifs"
7578else
7579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7580fi
7581fi
7582
7583LD="$lt_cv_path_LD"
7584if test -n "$LD"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7586$as_echo "$LD" >&6; }
7587else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
cristy98dddb52010-11-04 00:30:15 +00007591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007594if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007595 $as_echo_n "(cached) " >&6
7596else
7597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7598case `$LD -v 2>&1 </dev/null` in
7599*GNU* | *'with BFD'*)
7600 lt_cv_prog_gnu_ld=yes
7601 ;;
7602*)
7603 lt_cv_prog_gnu_ld=no
7604 ;;
7605esac
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7608$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7609with_gnu_ld=$lt_cv_prog_gnu_ld
7610
7611
7612
7613
7614
7615
7616
7617
7618
cristy3ed852e2009-09-05 21:47:34 +00007619
cristy837d6dc2010-02-27 01:16:57 +00007620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7621$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007622if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007623 $as_echo_n "(cached) " >&6
7624else
7625 ac_cv_prog_cc_c99=no
7626ac_save_CC=$CC
7627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#include <stdarg.h>
7630#include <stdbool.h>
7631#include <stdlib.h>
7632#include <wchar.h>
7633#include <stdio.h>
7634
7635// Check varargs macros. These examples are taken from C99 6.10.3.5.
7636#define debug(...) fprintf (stderr, __VA_ARGS__)
7637#define showlist(...) puts (#__VA_ARGS__)
7638#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7639static void
7640test_varargs_macros (void)
7641{
7642 int x = 1234;
7643 int y = 5678;
7644 debug ("Flag");
7645 debug ("X = %d\n", x);
7646 showlist (The first, second, and third items.);
7647 report (x>y, "x is %d but y is %d", x, y);
7648}
7649
7650// Check long long types.
7651#define BIG64 18446744073709551615ull
7652#define BIG32 4294967295ul
7653#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7654#if !BIG_OK
7655 your preprocessor is broken;
7656#endif
7657#if BIG_OK
7658#else
7659 your preprocessor is broken;
7660#endif
7661static long long int bignum = -9223372036854775807LL;
7662static unsigned long long int ubignum = BIG64;
7663
7664struct incomplete_array
7665{
7666 int datasize;
7667 double data[];
7668};
7669
7670struct named_init {
7671 int number;
7672 const wchar_t *name;
7673 double average;
7674};
7675
7676typedef const char *ccp;
7677
7678static inline int
7679test_restrict (ccp restrict text)
7680{
7681 // See if C++-style comments work.
7682 // Iterate through items via the restricted pointer.
7683 // Also check for declarations in for loops.
7684 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7685 continue;
7686 return 0;
7687}
7688
7689// Check varargs and va_copy.
7690static void
7691test_varargs (const char *format, ...)
7692{
7693 va_list args;
7694 va_start (args, format);
7695 va_list args_copy;
7696 va_copy (args_copy, args);
7697
7698 const char *str;
7699 int number;
7700 float fnumber;
7701
7702 while (*format)
7703 {
7704 switch (*format++)
7705 {
7706 case 's': // string
7707 str = va_arg (args_copy, const char *);
7708 break;
7709 case 'd': // int
7710 number = va_arg (args_copy, int);
7711 break;
7712 case 'f': // float
7713 fnumber = va_arg (args_copy, double);
7714 break;
7715 default:
7716 break;
7717 }
7718 }
7719 va_end (args_copy);
7720 va_end (args);
7721}
7722
7723int
7724main ()
7725{
7726
7727 // Check bool.
7728 _Bool success = false;
7729
7730 // Check restrict.
7731 if (test_restrict ("String literal") == 0)
7732 success = true;
7733 char *restrict newvar = "Another string";
7734
7735 // Check varargs.
7736 test_varargs ("s, d' f .", "string", 65, 34.234);
7737 test_varargs_macros ();
7738
7739 // Check flexible array members.
7740 struct incomplete_array *ia =
7741 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7742 ia->datasize = 10;
7743 for (int i = 0; i < ia->datasize; ++i)
7744 ia->data[i] = i * 1.234;
7745
7746 // Check named initializers.
7747 struct named_init ni = {
7748 .number = 34,
7749 .name = L"Test wide string",
7750 .average = 543.34343,
7751 };
7752
7753 ni.number = 58;
7754
7755 int dynamic_array[ni.number];
7756 dynamic_array[ni.number - 1] = 543;
7757
7758 // work around unused variable warnings
7759 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7760 || dynamic_array[ni.number - 1] != 543);
7761
7762 ;
7763 return 0;
7764}
7765_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007766for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007767do
7768 CC="$ac_save_CC $ac_arg"
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 ac_cv_prog_cc_c99=$ac_arg
7771fi
7772rm -f core conftest.err conftest.$ac_objext
7773 test "x$ac_cv_prog_cc_c99" != "xno" && break
7774done
7775rm -f conftest.$ac_ext
7776CC=$ac_save_CC
7777
7778fi
7779# AC_CACHE_VAL
7780case "x$ac_cv_prog_cc_c99" in
7781 x)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7783$as_echo "none needed" >&6; } ;;
7784 xno)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7786$as_echo "unsupported" >&6; } ;;
7787 *)
7788 CC="$CC $ac_cv_prog_cc_c99"
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7790$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7791esac
7792if test "x$ac_cv_prog_cc_c99" != xno; then :
7793
7794fi
7795
7796
cristy73bd4a52010-10-05 11:24:23 +00007797if test "x$CC" != xcc; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7799$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7802$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7803fi
7804set dummy $CC; ac_cc=`$as_echo "$2" |
7805 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007806if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007807 $as_echo_n "(cached) " >&6
7808else
cristy73bd4a52010-10-05 11:24:23 +00007809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820# Make sure it works both with $CC and with simple cc.
7821# We do the test twice because some compilers refuse to overwrite an
7822# existing .o file with -o, though they will create one.
7823ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7824rm -f conftest2.*
7825if { { case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828esac
7829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7830$as_echo "$ac_try_echo"; } >&5
7831 (eval "$ac_try") 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; } &&
7835 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7840$as_echo "$ac_try_echo"; } >&5
7841 (eval "$ac_try") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; };
7845then
7846 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7847 if test "x$CC" != xcc; then
7848 # Test first that cc exists at all.
7849 if { ac_try='cc -c conftest.$ac_ext >&5'
7850 { { case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853esac
7854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7855$as_echo "$ac_try_echo"; } >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859 test $ac_status = 0; }; }; then
7860 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7861 rm -f conftest2.*
7862 if { { case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865esac
7866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7867$as_echo "$ac_try_echo"; } >&5
7868 (eval "$ac_try") 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; } &&
7872 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7877$as_echo "$ac_try_echo"; } >&5
7878 (eval "$ac_try") 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; };
7882 then
7883 # cc works too.
7884 :
7885 else
7886 # cc exists but doesn't like -o.
7887 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7888 fi
7889 fi
7890 fi
7891else
7892 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7893fi
7894rm -f core conftest*
7895
7896fi
7897if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7899$as_echo "yes" >&6; }
7900else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903
7904$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7905
7906fi
7907
7908# FIXME: we rely on the cache variable name because
7909# there is no other way.
7910set dummy $CC
7911am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7912eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7913if test "$am_t" != yes; then
7914 # Losing compiler, so override with the script.
7915 # FIXME: It is wrong to rewrite CC.
7916 # But if we don't then we get into trouble of one sort or another.
7917 # A longer-term fix would be to have automake use am__CC in this case,
7918 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7919 CC="$am_aux_dir/compile $CC"
7920fi
7921
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7924$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007925if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007929 ac_ext=c
7930ac_cpp='$CPP $CPPFLAGS'
7931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935 ac_save_CFLAGS="$CFLAGS"
7936for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7937do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h. */
7940
7941int
7942main ()
7943{
cristy24fc1fe2010-10-23 21:13:01 +00007944
cristy73bd4a52010-10-05 11:24:23 +00007945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7951fi
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953done
7954 CFLAGS="$ac_save_CFLAGS"
7955 ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7964$as_echo "$ac_cv_cflags_warn_all" >&6; }
7965case ".$ac_cv_cflags_warn_all" in
7966 .ok|.ok,*) ;;
7967 .|.no|.no,*)
7968 ;;
7969 *)
7970 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7971 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7972 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7973 ac_status=$?
7974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7975 test $ac_status = 0; }
7976 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7977 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7978 ac_status=$?
7979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }
7981 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7982 fi
7983 ;;
nicolas6237c462010-10-05 06:11:49 +00007984esac
cristy3ed852e2009-09-05 21:47:34 +00007985
cristy568c2d42012-07-27 01:41:20 +00007986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7987$as_echo_n "checking for C compiler vendor... " >&6; }
7988if ${ax_cv_c_compiler_vendor+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 # note: don't check for gcc first since some other compilers define __GNUC__
7992 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7993 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7994 pathscale: __PATHCC__,__PATHSCALE__
7995 clang: __clang__
7996 gnu: __GNUC__
7997 sun: __SUNPRO_C,__SUNPRO_CC
7998 hp: __HP_cc,__HP_aCC
7999 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8000 borland: __BORLANDC__,__TURBOC__
8001 comeau: __COMO__
8002 cray: _CRAYC
8003 kai: __KCC
8004 lcc: __LCC__
8005 sgi: __sgi,sgi
8006 microsoft: _MSC_VER
8007 metrowerks: __MWERKS__
8008 watcom: __WATCOMC__
8009 portland: __PGI
8010 unknown: UNKNOWN"
8011 for ventest in $vendors; do
8012 case $ventest in
8013 *:) vendor=$ventest; continue ;;
8014 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8015 esac
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h. */
8018
8019int
8020main ()
8021{
8022
8023 #if !($vencpp)
8024 thisisanerror;
8025 #endif
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"; then :
8032 break
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 done
8036 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8037
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8040$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8041
cristya0b81c32010-01-22 02:54:33 +00008042
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8045set x ${MAKE-make}
8046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 cat >conftest.make <<\_ACEOF
8051SHELL = /bin/sh
8052all:
8053 @echo '@@@%%%=$(MAKE)=@@@%%%'
8054_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008056case `${MAKE-make} -f conftest.make 2>/dev/null` in
8057 *@@@%%%=?*=@@@%%%*)
8058 eval ac_cv_prog_make_${ac_make}_set=yes;;
8059 *)
8060 eval ac_cv_prog_make_${ac_make}_set=no;;
8061esac
8062rm -f conftest.make
8063fi
8064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8066$as_echo "yes" >&6; }
8067 SET_MAKE=
8068else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071 SET_MAKE="MAKE=${MAKE-make}"
8072fi
8073
cristy8b350f62009-11-15 23:12:43 +00008074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008075$as_echo_n "checking whether ln -s works... " >&6; }
8076LN_S=$as_ln_s
8077if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008079$as_echo "yes" >&6; }
8080else
cristy8b350f62009-11-15 23:12:43 +00008081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo "no, using $LN_S" >&6; }
8083fi
8084
cristy73bd4a52010-10-05 11:24:23 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8086$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8087
8088# Check whether --with-dmalloc was given.
8089if test "${with_dmalloc+set}" = set; then :
8090 withval=$with_dmalloc; if test "$withval" = yes; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092$as_echo "yes" >&6; }
8093
8094$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8095
8096 LIBS="$LIBS -ldmalloc"
8097 LDFLAGS="$LDFLAGS -g"
8098else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107
8108
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8110$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008111if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008112 $as_echo_n "(cached) " >&6
8113else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h. */
8116#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008117 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008118 static void
8119 foo(void) {
8120 exit(1);
8121 }
8122
8123int
8124main ()
8125{
8126
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132 ax_cv___attribute__=yes
8133else
8134 ax_cv___attribute__=no
8135
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8141$as_echo "$ax_cv___attribute__" >&6; }
8142 if test "$ax_cv___attribute__" = "yes"; then
8143
8144$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8145
8146 fi
8147
8148
8149
cristy37110d62012-03-01 18:38:20 +00008150
8151
8152# Check whether --with-gcc-arch was given.
8153if test "${with_gcc_arch+set}" = set; then :
8154 withval=$with_gcc_arch; ax_gcc_arch=$withval
8155else
cristya32d1812012-03-02 19:24:21 +00008156 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008157fi
8158
8159
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8161$as_echo_n "checking for gcc architecture flag... " >&6; }
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8163$as_echo "" >&6; }
8164if ${ax_cv_gcc_archflag+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167
8168ax_cv_gcc_archflag="unknown"
8169
8170if test "$GCC" = yes; then
8171
8172if test "x$ax_gcc_arch" = xyes; then
8173ax_gcc_arch=""
8174if test "$cross_compiling" = no; then
8175case $host_cpu in
8176 i[3456]86*|x86_64*) # use cpuid codes
8177
8178ac_ext=c
8179ac_cpp='$CPP $CPPFLAGS'
8180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8185$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8186if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 if test "$cross_compiling" = yes; then :
8190 ax_cv_gcc_x86_cpuid_0=unknown
8191else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h. */
8194#include <stdio.h>
8195int
8196main ()
8197{
8198
8199 int op = 0, eax, ebx, ecx, edx;
8200 FILE *f;
8201 __asm__("cpuid"
8202 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8203 : "a" (op));
8204 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8205 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8206 fclose(f);
8207 return 0;
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_run "$LINENO"; then :
8214 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8215else
8216 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8217fi
8218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8219 conftest.$ac_objext conftest.beam conftest.$ac_ext
8220fi
8221
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8224$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8225ac_ext=c
8226ac_cpp='$CPP $CPPFLAGS'
8227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
8231
8232
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8240$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8241if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243else
8244 if test "$cross_compiling" = yes; then :
8245 ax_cv_gcc_x86_cpuid_1=unknown
8246else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248/* end confdefs.h. */
8249#include <stdio.h>
8250int
8251main ()
8252{
8253
8254 int op = 1, eax, ebx, ecx, edx;
8255 FILE *f;
8256 __asm__("cpuid"
8257 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8258 : "a" (op));
8259 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8260 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8261 fclose(f);
8262 return 0;
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_run "$LINENO"; then :
8269 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8270else
8271 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8272fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8279$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8280ac_ext=c
8281ac_cpp='$CPP $CPPFLAGS'
8282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286
8287 case $ax_cv_gcc_x86_cpuid_0 in
8288 *:756e6547:*:*) # Intel
8289 case $ax_cv_gcc_x86_cpuid_1 in
8290 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8291 *5??:*:*:*) ax_gcc_arch=pentium ;;
8292 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8293 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8294 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8295 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8296 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8297 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8298 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8299 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8300 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8301 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8302 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8303 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8304 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8305 case $host_cpu in
8306 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8307 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8308 esac ;;
8309 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8310 esac ;;
8311 *:68747541:*:*) # AMD
8312 case $ax_cv_gcc_x86_cpuid_1 in
8313 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8314 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8315 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8316 *60?:*:*:*) ax_gcc_arch=k7 ;;
8317 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8318 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8319 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8320 *6[68a]?:*:*:*)
8321
8322ac_ext=c
8323ac_cpp='$CPP $CPPFLAGS'
8324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8326ac_compiler_gnu=$ac_cv_c_compiler_gnu
8327
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8329$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8330if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333 if test "$cross_compiling" = yes; then :
8334 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8335else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include <stdio.h>
8339int
8340main ()
8341{
8342
8343 int op = 0x80000006, eax, ebx, ecx, edx;
8344 FILE *f;
8345 __asm__("cpuid"
8346 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8347 : "a" (op));
8348 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8349 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8350 fclose(f);
8351 return 0;
8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_run "$LINENO"; then :
8358 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8359else
8360 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8361fi
8362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8363 conftest.$ac_objext conftest.beam conftest.$ac_ext
8364fi
8365
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8368$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8369ac_ext=c
8370ac_cpp='$CPP $CPPFLAGS'
8371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8373ac_compiler_gnu=$ac_cv_c_compiler_gnu
8374
8375 # L2 cache size
8376 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8377 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8378 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8379 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8380 esac ;;
8381 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8382 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8383 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8384 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8385 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8386 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8387 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8388 esac ;;
8389 *:746e6543:*:*) # IDT
8390 case $ax_cv_gcc_x86_cpuid_1 in
8391 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8392 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8393 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8394 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8395 esac ;;
8396 esac
8397 if test x"$ax_gcc_arch" = x; then # fallback
8398 case $host_cpu in
8399 i586*) ax_gcc_arch=pentium ;;
8400 i686*) ax_gcc_arch=pentiumpro ;;
8401 esac
8402 fi
8403 ;;
8404
8405 sparc*)
8406 # Extract the first word of "prtdiag", so it can be a program name with args.
8407set dummy prtdiag; ac_word=$2
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409$as_echo_n "checking for $ac_word... " >&6; }
8410if ${ac_cv_path_PRTDIAG+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413 case $PRTDIAG in
8414 [\\/]* | ?:[\\/]*)
8415 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8416 ;;
8417 *)
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8420for as_dir in $as_dummy
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008426 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431 done
8432IFS=$as_save_IFS
8433
8434 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8435 ;;
8436esac
8437fi
8438PRTDIAG=$ac_cv_path_PRTDIAG
8439if test -n "$PRTDIAG"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8441$as_echo "$PRTDIAG" >&6; }
8442else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445fi
8446
8447
8448 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8449 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8450 case $cputype in
8451 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8452 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8453 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8454 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8455 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8456 *cypress*) ax_gcc_arch=cypress ;;
8457 esac ;;
8458
8459 alphaev5) ax_gcc_arch=ev5 ;;
8460 alphaev56) ax_gcc_arch=ev56 ;;
8461 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8462 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8463 alphaev6) ax_gcc_arch=ev6 ;;
8464 alphaev67) ax_gcc_arch=ev67 ;;
8465 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8466 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8467 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8468 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8469
8470 powerpc*)
8471 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8472 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8473 case $cputype in
8474 *750*) ax_gcc_arch="750 G3" ;;
8475 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8476 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8477 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8478 *970*) ax_gcc_arch="970 G5 power4";;
8479 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8480 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8481 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8482 *) ax_gcc_arch=$cputype ;;
8483 esac
8484 ax_gcc_arch="$ax_gcc_arch powerpc"
8485 ;;
8486esac
8487fi # not cross-compiling
8488fi # guess arch
8489
8490if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8491for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008492 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008493 flags="-mtune=$arch"
8494 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8495 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8496 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8497 else
8498 flags="-march=$arch -mcpu=$arch -m$arch"
8499 fi
8500 for flag in $flags; do
8501 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8503$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8504if eval \${$as_CACHEVAR+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507
8508 ax_check_save_flags=$CFLAGS
8509 CFLAGS="$CFLAGS $flag"
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h. */
8512
8513int
8514main ()
8515{
8516
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522 eval "$as_CACHEVAR=yes"
8523else
8524 eval "$as_CACHEVAR=no"
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 CFLAGS=$ax_check_save_flags
8528fi
8529eval ac_res=\$$as_CACHEVAR
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8531$as_echo "$ac_res" >&6; }
8532if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8533 ax_cv_gcc_archflag=$flag; break
8534else
8535 :
8536fi
8537
8538 done
8539 test "x$ax_cv_gcc_archflag" = xunknown || break
8540done
8541fi
8542
8543fi # $GCC=yes
8544
8545fi
8546
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8548$as_echo_n "checking for gcc architecture flag... " >&6; }
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8550$as_echo "$ax_cv_gcc_archflag" >&6; }
8551if test "x$ax_cv_gcc_archflag" = xunknown; then
8552 :
8553else
8554 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8555fi
8556
8557
8558
cristy73bd4a52010-10-05 11:24:23 +00008559if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8562set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008565if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008566 $as_echo_n "(cached) " >&6
8567else
8568 case $PKG_CONFIG in
8569 [\\/]* | ?:[\\/]*)
8570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8571 ;;
8572 *)
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585 done
8586IFS=$as_save_IFS
8587
8588 ;;
8589esac
8590fi
8591PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8592if test -n "$PKG_CONFIG"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8594$as_echo "$PKG_CONFIG" >&6; }
8595else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598fi
8599
8600
8601fi
8602if test -z "$ac_cv_path_PKG_CONFIG"; then
8603 ac_pt_PKG_CONFIG=$PKG_CONFIG
8604 # Extract the first word of "pkg-config", so it can be a program name with args.
8605set dummy pkg-config; ac_word=$2
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008608if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008609 $as_echo_n "(cached) " >&6
8610else
8611 case $ac_pt_PKG_CONFIG in
8612 [\\/]* | ?:[\\/]*)
8613 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8614 ;;
8615 *)
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008623 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627done
8628 done
8629IFS=$as_save_IFS
8630
8631 ;;
8632esac
8633fi
8634ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8635if test -n "$ac_pt_PKG_CONFIG"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8637$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8638else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
8641fi
8642
8643 if test "x$ac_pt_PKG_CONFIG" = x; then
8644 PKG_CONFIG=""
8645 else
8646 case $cross_compiling:$ac_tool_warned in
8647yes:)
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8650ac_tool_warned=yes ;;
8651esac
8652 PKG_CONFIG=$ac_pt_PKG_CONFIG
8653 fi
8654else
8655 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8656fi
8657
8658fi
8659if test -n "$PKG_CONFIG"; then
8660 _pkg_min_version=0.9.0
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8662$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8663 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8665$as_echo "yes" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
8669 PKG_CONFIG=""
8670 fi
8671
8672fi
cristy3ed852e2009-09-05 21:47:34 +00008673
8674#
cristy3ed852e2009-09-05 21:47:34 +00008675# Enable run-time checking.
8676#
8677# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008678if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008679 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8680else
8681 enable_bounds_checking='no'
8682fi
8683
8684
8685if test "$enable_bounds_checking" = yes; then
8686
cristy8b350f62009-11-15 23:12:43 +00008687$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008688
8689fi
8690
8691#
8692# Tests for Windows
8693#
8694
8695
8696
8697GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008698native_win32_build='no'
8699cygwin_build='no'
8700case "${host_os}" in
8701 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008702 cygwin_build='yes'
8703 GDI32_LIBS='-lgdi32'
8704 ;;
8705 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008706 native_win32_build='yes'
8707 GDI32_LIBS='-lgdi32'
8708 ;;
8709esac
8710if test "${GDI32_LIBS}x" != 'x'; then
8711
cristy8b350f62009-11-15 23:12:43 +00008712$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008713
8714fi
8715
cristy73bd4a52010-10-05 11:24:23 +00008716 if test "${GDI32_LIBS}x" != 'x' ; then
8717 WINGDI32_DELEGATE_TRUE=
8718 WINGDI32_DELEGATE_FALSE='#'
8719else
8720 WINGDI32_DELEGATE_TRUE='#'
8721 WINGDI32_DELEGATE_FALSE=
8722fi
8723
8724 if test "${native_win32_build}" = 'yes' ; then
8725 WIN32_NATIVE_BUILD_TRUE=
8726 WIN32_NATIVE_BUILD_FALSE='#'
8727else
8728 WIN32_NATIVE_BUILD_TRUE='#'
8729 WIN32_NATIVE_BUILD_FALSE=
8730fi
8731
8732 if test "${cygwin_build}" = 'yes' ; then
8733 CYGWIN_BUILD_TRUE=
8734 CYGWIN_BUILD_FALSE='#'
8735else
8736 CYGWIN_BUILD_TRUE='#'
8737 CYGWIN_BUILD_FALSE=
8738fi
8739
8740 if test "x${CC}" = 'xcl.exe' ; then
8741 USING_CL_TRUE=
8742 USING_CL_FALSE='#'
8743else
8744 USING_CL_TRUE='#'
8745 USING_CL_FALSE=
8746fi
8747
cristy3ed852e2009-09-05 21:47:34 +00008748
8749WinPathScript="${srcdirfull}/winpath.sh"
8750
8751
8752#
8753# Compiler flags tweaks
8754#
8755if test "${GCC}" != "yes"; then
8756 case "${host}" in
8757 *-*-hpux* )
8758 # aCC: HP ANSI C++ B3910B A.03.34
8759 CFLAGS="${CFLAGS} -Wp,-H30000"
8760 if test -n "${CXXFLAGS}"; then
8761 CXXFLAGS='-AA'
8762 else
8763 CXXFLAGS="${CXXFLAGS} -AA"
8764 fi
8765 ;;
8766 *-dec-osf5.* )
8767 # Compaq alphaev68-dec-osf5.1 compiler
8768 if test -n "${CXXFLAGS}"; then
8769 CXXFLAGS='-std strict_ansi -noimplicit_include'
8770 else
8771 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8772 fi
8773 esac
8774fi
8775
8776# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008778$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008779if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008780 $as_echo_n "(cached) " >&6
8781else
8782
8783im_cv_ld_lazyload='none'
8784case "${host}" in
8785 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8786 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8787 im_cv_ld_lazyload='-Wl,-zlazyload'
8788 fi
8789 ;;
8790esac
8791
8792fi
cristy8b350f62009-11-15 23:12:43 +00008793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008794$as_echo "$im_cv_ld_lazyload" >&6; }
8795if test "${im_cv_ld_lazyload}" != 'none' ; then
8796 if test -z "${LDFLAGS}" ; then
8797 LDFLAGS="${im_cv_ld_lazyload}"
8798 else
8799 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8800 fi
8801fi
8802
8803case "$host" in
8804*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008805 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008806if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008807 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8808else
8809 build_osxuniversal=no
8810fi
8811
8812
8813 if test "${build_osxuniversal}" != no ; then
8814 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008815 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008816Please re-run configure with these options:
8817 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008818 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008819 fi
8820 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8821 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8822 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8823 fi
8824 ;;
8825esac
8826
cristy0151ae12011-10-28 16:32:29 +00008827#
8828# ARCH specific include directory
8829#
8830
cristy670aa3c2011-11-03 00:54:00 +00008831# Check whether --with-includearch-dir was given.
8832if test "${with_includearch_dir+set}" = set; then :
8833 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008834else
cristy670aa3c2011-11-03 00:54:00 +00008835 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008836fi
8837
8838
cristy670aa3c2011-11-03 00:54:00 +00008839eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008840
cristy0151ae12011-10-28 16:32:29 +00008841
8842#
8843# ARCH specific configuration directory
8844#
8845
cristy670aa3c2011-11-03 00:54:00 +00008846# Check whether --with-sharearch-dir was given.
8847if test "${with_sharearch_dir+set}" = set; then :
8848 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008849else
cristy408ebcd2011-11-14 01:36:57 +00008850 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008851fi
8852
8853
cristy670aa3c2011-11-03 00:54:00 +00008854eval "eval SHAREARCH_DIR=$sharearch_dir"
8855SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008856
cristy0151ae12011-10-28 16:32:29 +00008857
8858#
cristy3ed852e2009-09-05 21:47:34 +00008859# Enable support for threads
8860
8861# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008862if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008863 withval=$with_threads; with_threads=$withval
8864else
8865 with_threads='yes'
8866fi
8867
8868
8869have_threads=no
8870if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008871
8872
cristy73bd4a52010-10-05 11:24:23 +00008873ac_ext=c
8874ac_cpp='$CPP $CPPFLAGS'
8875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878
8879ax_pthread_ok=no
8880
8881# We used to check for pthread.h first, but this fails if pthread.h
8882# requires special compiler flags (e.g. on True64 or Sequent).
8883# It gets checked for in the link test anyway.
8884
8885# First of all, check if the user has set any of the PTHREAD_LIBS,
8886# etcetera environment variables, and if threads linking works using
8887# them:
8888if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8889 save_CFLAGS="$CFLAGS"
8890 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8891 save_LIBS="$LIBS"
8892 LIBS="$PTHREAD_LIBS $LIBS"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8894$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h. */
8897
8898/* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901#ifdef __cplusplus
8902extern "C"
8903#endif
8904char pthread_join ();
8905int
8906main ()
8907{
8908return pthread_join ();
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_link "$LINENO"; then :
8914 ax_pthread_ok=yes
8915fi
8916rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8919$as_echo "$ax_pthread_ok" >&6; }
8920 if test x"$ax_pthread_ok" = xno; then
8921 PTHREAD_LIBS=""
8922 PTHREAD_CFLAGS=""
8923 fi
8924 LIBS="$save_LIBS"
8925 CFLAGS="$save_CFLAGS"
8926fi
8927
8928# We must check for the threads library under a number of different
8929# names; the ordering is very important because some systems
8930# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8931# libraries is broken (non-POSIX).
8932
8933# Create a list of thread flags to try. Items starting with a "-" are
8934# C compiler flags, and other items are library names, except for "none"
8935# which indicates that we try without any flags at all, and "pthread-config"
8936# which is a program returning the flags for the Pth emulation library.
8937
cristy18307f12011-12-30 01:20:16 +00008938ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008939
8940# The ordering *is* (sometimes) important. Some notes on the
8941# individual items follow:
8942
8943# pthreads: AIX (must check this before -lpthread)
8944# none: in case threads are in libc; should be tried before -Kthread and
8945# other compiler flags to prevent continual compiler warnings
8946# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8947# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8948# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8949# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8950# -pthreads: Solaris/gcc
8951# -mthreads: Mingw32/gcc, Lynx/gcc
8952# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8953# doesn't hurt to check since this sometimes defines pthreads too;
8954# also defines -D_REENTRANT)
8955# ... -mt is also the pthreads flag for HP/aCC
8956# pthread: Linux, etcetera
8957# --thread-safe: KAI C++
8958# pthread-config: use pthread-config program (for GNU Pth library)
8959
8960case "${host_cpu}-${host_os}" in
8961 *solaris*)
8962
8963 # On Solaris (at least, for some versions), libc contains stubbed
8964 # (non-functional) versions of the pthreads routines, so link-based
8965 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8966 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8967 # a function called by this macro, so we could check for that, but
8968 # who knows whether they'll stub that too in a future libc.) So,
8969 # we'll just look for -pthreads and -lpthread first:
8970
8971 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8972 ;;
8973
cristya316db12011-10-24 00:49:45 +00008974 *-darwin*)
8975 ax_pthread_flags="-pthread $ax_pthread_flags"
8976 ;;
cristy73bd4a52010-10-05 11:24:23 +00008977esac
8978
8979if test x"$ax_pthread_ok" = xno; then
8980for flag in $ax_pthread_flags; do
8981
8982 case $flag in
8983 none)
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8985$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8986 ;;
8987
8988 -*)
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8990$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8991 PTHREAD_CFLAGS="$flag"
8992 ;;
8993
cristya316db12011-10-24 00:49:45 +00008994 pthread-config)
8995 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008996set dummy pthread-config; ac_word=$2
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008999if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009000 $as_echo_n "(cached) " >&6
9001else
9002 if test -n "$ax_pthread_config"; then
9003 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9004else
9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006for as_dir in $PATH
9007do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009012 ac_cv_prog_ax_pthread_config="yes"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9015 fi
9016done
9017 done
9018IFS=$as_save_IFS
9019
9020 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9021fi
9022fi
9023ax_pthread_config=$ac_cv_prog_ax_pthread_config
9024if test -n "$ax_pthread_config"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9026$as_echo "$ax_pthread_config" >&6; }
9027else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
9030fi
9031
9032
cristya316db12011-10-24 00:49:45 +00009033 if test x"$ax_pthread_config" = xno; then continue; fi
9034 PTHREAD_CFLAGS="`pthread-config --cflags`"
9035 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9036 ;;
cristy73bd4a52010-10-05 11:24:23 +00009037
9038 *)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9040$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9041 PTHREAD_LIBS="-l$flag"
9042 ;;
9043 esac
9044
9045 save_LIBS="$LIBS"
9046 save_CFLAGS="$CFLAGS"
9047 LIBS="$PTHREAD_LIBS $LIBS"
9048 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9049
9050 # Check for various functions. We must include pthread.h,
9051 # since some functions may be macros. (On the Sequent, we
9052 # need a special flag -Kthread to make this header compile.)
9053 # We check for pthread_join because it is in -lpthread on IRIX
9054 # while pthread_create is in libc. We check for pthread_attr_init
9055 # due to DEC craziness with -lpthreads. We check for
9056 # pthread_cleanup_push because it is one of the few pthread
9057 # functions on Solaris that doesn't have a non-functional libc stub.
9058 # We try pthread_create on general principles.
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h. */
9061#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009062 static void routine(void *a) { a = 0; }
9063 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009064int
9065main ()
9066{
9067pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009068 pthread_create(&th, 0, start_routine, 0);
9069 pthread_join(th, 0);
9070 pthread_attr_init(&attr);
9071 pthread_cleanup_push(routine, 0);
9072 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009073 ;
9074 return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078 ax_pthread_ok=yes
9079fi
9080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082
9083 LIBS="$save_LIBS"
9084 CFLAGS="$save_CFLAGS"
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9087$as_echo "$ax_pthread_ok" >&6; }
9088 if test "x$ax_pthread_ok" = xyes; then
9089 break;
9090 fi
9091
9092 PTHREAD_LIBS=""
9093 PTHREAD_CFLAGS=""
9094done
9095fi
9096
9097# Various other checks:
9098if test "x$ax_pthread_ok" = xyes; then
9099 save_LIBS="$LIBS"
9100 LIBS="$PTHREAD_LIBS $LIBS"
9101 save_CFLAGS="$CFLAGS"
9102 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9103
9104 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009106$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009107 attr_name=unknown
9108 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009110/* end confdefs.h. */
9111#include <pthread.h>
9112int
9113main ()
9114{
cristya316db12011-10-24 00:49:45 +00009115int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009116 ;
9117 return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121 attr_name=$attr; break
9122fi
9123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009125 done
cristy73bd4a52010-10-05 11:24:23 +00009126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9127$as_echo "$attr_name" >&6; }
9128 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9129
9130cat >>confdefs.h <<_ACEOF
9131#define PTHREAD_CREATE_JOINABLE $attr_name
9132_ACEOF
9133
9134 fi
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9137$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9138 flag=no
9139 case "${host_cpu}-${host_os}" in
9140 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9141 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9142 esac
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9144$as_echo "${flag}" >&6; }
9145 if test "x$flag" != xno; then
9146 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9147 fi
9148
cristya316db12011-10-24 00:49:45 +00009149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9150$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9151if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153else
9154
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h. */
9157
9158 #include <pthread.h>
9159int
9160main ()
9161{
9162int i = PTHREAD_PRIO_INHERIT;
9163 ;
9164 return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168 ax_cv_PTHREAD_PRIO_INHERIT=yes
9169else
9170 ax_cv_PTHREAD_PRIO_INHERIT=no
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174
9175fi
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9177$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9178 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9179
9180$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9181
9182fi
9183
cristy73bd4a52010-10-05 11:24:23 +00009184 LIBS="$save_LIBS"
9185 CFLAGS="$save_CFLAGS"
9186
9187 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009188 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009189 for ac_prog in xlc_r cc_r
9190do
9191 # Extract the first word of "$ac_prog", so it can be a program name with args.
9192set dummy $ac_prog; ac_word=$2
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009195if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009196 $as_echo_n "(cached) " >&6
9197else
9198 if test -n "$PTHREAD_CC"; then
9199 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9200else
9201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202for as_dir in $PATH
9203do
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009208 ac_cv_prog_PTHREAD_CC="$ac_prog"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9211 fi
9212done
9213 done
9214IFS=$as_save_IFS
9215
9216fi
9217fi
9218PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9219if test -n "$PTHREAD_CC"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9221$as_echo "$PTHREAD_CC" >&6; }
9222else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224$as_echo "no" >&6; }
9225fi
9226
9227
9228 test -n "$PTHREAD_CC" && break
9229done
9230test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9231
9232 else
9233 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009234 fi
cristy73bd4a52010-10-05 11:24:23 +00009235else
9236 PTHREAD_CC="$CC"
9237fi
9238
9239
9240
9241
9242
9243# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9244if test x"$ax_pthread_ok" = xyes; then
9245
9246$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9247
9248 :
9249else
9250 ax_pthread_ok=no
9251
9252fi
9253ac_ext=c
9254ac_cpp='$CPP $CPPFLAGS'
9255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259
cristy7acf8fb2010-09-23 19:58:53 +00009260 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009261 have_threads=yes
9262 DEF_THREAD="$PTHREAD_CFLAGS"
9263 CFLAGS="$CFLAGS $DEF_THREAD"
9264 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9265 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00009267$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9268 CC="$PTHREAD_CC"
9269 fi
cristy55bf91c2010-09-24 00:29:41 +00009270
9271$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9272
cristy3ed852e2009-09-05 21:47:34 +00009273 fi
9274fi
9275
9276# Enable support for OpenMP
9277if test "$have_threads" != 'yes'; then
9278 ac_cv_prog_c_openmp=unsupported
9279fi
9280
9281 OPENMP_CFLAGS=
9282 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009283if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 enableval=$enable_openmp;
9285fi
9286
9287 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009289$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009290if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009291 $as_echo_n "(cached) " >&6
9292else
cristy8b350f62009-11-15 23:12:43 +00009293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009295
9296#ifndef _OPENMP
9297 choke me
9298#endif
9299#include <omp.h>
9300int main () { return omp_get_num_threads (); }
9301
9302_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_cv_prog_c_openmp='none needed'
9305else
cristy8b350f62009-11-15 23:12:43 +00009306 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009307 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9308 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009309 ac_save_CFLAGS=$CFLAGS
9310 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009313
9314#ifndef _OPENMP
9315 choke me
9316#endif
9317#include <omp.h>
9318int main () { return omp_get_num_threads (); }
9319
9320_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009322 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009323fi
cristy8b350f62009-11-15 23:12:43 +00009324rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009326 CFLAGS=$ac_save_CFLAGS
9327 if test "$ac_cv_prog_c_openmp" != unsupported; then
9328 break
9329 fi
9330 done
9331fi
cristy8b350f62009-11-15 23:12:43 +00009332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009334fi
cristy8b350f62009-11-15 23:12:43 +00009335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo "$ac_cv_prog_c_openmp" >&6; }
9337 case $ac_cv_prog_c_openmp in #(
9338 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009339 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009340 *)
cristy8b350f62009-11-15 23:12:43 +00009341 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009342 esac
9343 fi
9344
9345
9346CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9347MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9348
cristy391f1ce2010-09-09 17:23:28 +00009349if test "$enable_openmp" != no; then
9350 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9351 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9352 fi
9353fi
cristy3ed852e2009-09-05 21:47:34 +00009354
cristy736173a2009-09-20 21:18:22 +00009355# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009356
9357
cristy73bd4a52010-10-05 11:24:23 +00009358ac_ext=c
9359ac_cpp='$CPP $CPPFLAGS'
9360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364ax_pthread_ok=no
9365
9366# We used to check for pthread.h first, but this fails if pthread.h
9367# requires special compiler flags (e.g. on True64 or Sequent).
9368# It gets checked for in the link test anyway.
9369
9370# First of all, check if the user has set any of the PTHREAD_LIBS,
9371# etcetera environment variables, and if threads linking works using
9372# them:
9373if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9374 save_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9376 save_LIBS="$LIBS"
9377 LIBS="$PTHREAD_LIBS $LIBS"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9379$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
9382
9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386#ifdef __cplusplus
9387extern "C"
9388#endif
9389char pthread_join ();
9390int
9391main ()
9392{
9393return pthread_join ();
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399 ax_pthread_ok=yes
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9404$as_echo "$ax_pthread_ok" >&6; }
9405 if test x"$ax_pthread_ok" = xno; then
9406 PTHREAD_LIBS=""
9407 PTHREAD_CFLAGS=""
9408 fi
9409 LIBS="$save_LIBS"
9410 CFLAGS="$save_CFLAGS"
9411fi
9412
9413# We must check for the threads library under a number of different
9414# names; the ordering is very important because some systems
9415# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9416# libraries is broken (non-POSIX).
9417
9418# Create a list of thread flags to try. Items starting with a "-" are
9419# C compiler flags, and other items are library names, except for "none"
9420# which indicates that we try without any flags at all, and "pthread-config"
9421# which is a program returning the flags for the Pth emulation library.
9422
cristy18307f12011-12-30 01:20:16 +00009423ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009424
9425# The ordering *is* (sometimes) important. Some notes on the
9426# individual items follow:
9427
9428# pthreads: AIX (must check this before -lpthread)
9429# none: in case threads are in libc; should be tried before -Kthread and
9430# other compiler flags to prevent continual compiler warnings
9431# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9432# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9433# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9434# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9435# -pthreads: Solaris/gcc
9436# -mthreads: Mingw32/gcc, Lynx/gcc
9437# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9438# doesn't hurt to check since this sometimes defines pthreads too;
9439# also defines -D_REENTRANT)
9440# ... -mt is also the pthreads flag for HP/aCC
9441# pthread: Linux, etcetera
9442# --thread-safe: KAI C++
9443# pthread-config: use pthread-config program (for GNU Pth library)
9444
9445case "${host_cpu}-${host_os}" in
9446 *solaris*)
9447
9448 # On Solaris (at least, for some versions), libc contains stubbed
9449 # (non-functional) versions of the pthreads routines, so link-based
9450 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9451 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9452 # a function called by this macro, so we could check for that, but
9453 # who knows whether they'll stub that too in a future libc.) So,
9454 # we'll just look for -pthreads and -lpthread first:
9455
9456 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9457 ;;
9458
cristya316db12011-10-24 00:49:45 +00009459 *-darwin*)
9460 ax_pthread_flags="-pthread $ax_pthread_flags"
9461 ;;
cristy73bd4a52010-10-05 11:24:23 +00009462esac
9463
9464if test x"$ax_pthread_ok" = xno; then
9465for flag in $ax_pthread_flags; do
9466
9467 case $flag in
9468 none)
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9470$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9471 ;;
9472
9473 -*)
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9475$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9476 PTHREAD_CFLAGS="$flag"
9477 ;;
9478
cristya316db12011-10-24 00:49:45 +00009479 pthread-config)
9480 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009481set dummy pthread-config; ac_word=$2
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009484if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009485 $as_echo_n "(cached) " >&6
9486else
9487 if test -n "$ax_pthread_config"; then
9488 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009497 ac_cv_prog_ax_pthread_config="yes"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502 done
9503IFS=$as_save_IFS
9504
9505 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9506fi
9507fi
9508ax_pthread_config=$ac_cv_prog_ax_pthread_config
9509if test -n "$ax_pthread_config"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9511$as_echo "$ax_pthread_config" >&6; }
9512else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
9515fi
9516
9517
cristya316db12011-10-24 00:49:45 +00009518 if test x"$ax_pthread_config" = xno; then continue; fi
9519 PTHREAD_CFLAGS="`pthread-config --cflags`"
9520 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9521 ;;
cristy73bd4a52010-10-05 11:24:23 +00009522
9523 *)
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9525$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9526 PTHREAD_LIBS="-l$flag"
9527 ;;
9528 esac
9529
9530 save_LIBS="$LIBS"
9531 save_CFLAGS="$CFLAGS"
9532 LIBS="$PTHREAD_LIBS $LIBS"
9533 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9534
9535 # Check for various functions. We must include pthread.h,
9536 # since some functions may be macros. (On the Sequent, we
9537 # need a special flag -Kthread to make this header compile.)
9538 # We check for pthread_join because it is in -lpthread on IRIX
9539 # while pthread_create is in libc. We check for pthread_attr_init
9540 # due to DEC craziness with -lpthreads. We check for
9541 # pthread_cleanup_push because it is one of the few pthread
9542 # functions on Solaris that doesn't have a non-functional libc stub.
9543 # We try pthread_create on general principles.
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h. */
9546#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009547 static void routine(void *a) { a = 0; }
9548 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009549int
9550main ()
9551{
9552pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009553 pthread_create(&th, 0, start_routine, 0);
9554 pthread_join(th, 0);
9555 pthread_attr_init(&attr);
9556 pthread_cleanup_push(routine, 0);
9557 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009558 ;
9559 return 0;
9560}
9561_ACEOF
9562if ac_fn_c_try_link "$LINENO"; then :
9563 ax_pthread_ok=yes
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567
9568 LIBS="$save_LIBS"
9569 CFLAGS="$save_CFLAGS"
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9572$as_echo "$ax_pthread_ok" >&6; }
9573 if test "x$ax_pthread_ok" = xyes; then
9574 break;
9575 fi
9576
9577 PTHREAD_LIBS=""
9578 PTHREAD_CFLAGS=""
9579done
9580fi
9581
9582# Various other checks:
9583if test "x$ax_pthread_ok" = xyes; then
9584 save_LIBS="$LIBS"
9585 LIBS="$PTHREAD_LIBS $LIBS"
9586 save_CFLAGS="$CFLAGS"
9587 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9588
9589 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009591$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009592 attr_name=unknown
9593 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009595/* end confdefs.h. */
9596#include <pthread.h>
9597int
9598main ()
9599{
cristya316db12011-10-24 00:49:45 +00009600int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009601 ;
9602 return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606 attr_name=$attr; break
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009610 done
cristy73bd4a52010-10-05 11:24:23 +00009611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9612$as_echo "$attr_name" >&6; }
9613 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9614
9615cat >>confdefs.h <<_ACEOF
9616#define PTHREAD_CREATE_JOINABLE $attr_name
9617_ACEOF
9618
9619 fi
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9622$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9623 flag=no
9624 case "${host_cpu}-${host_os}" in
9625 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9626 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9627 esac
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9629$as_echo "${flag}" >&6; }
9630 if test "x$flag" != xno; then
9631 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9632 fi
9633
cristya316db12011-10-24 00:49:45 +00009634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9635$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9636if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h. */
9642
9643 #include <pthread.h>
9644int
9645main ()
9646{
9647int i = PTHREAD_PRIO_INHERIT;
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653 ax_cv_PTHREAD_PRIO_INHERIT=yes
9654else
9655 ax_cv_PTHREAD_PRIO_INHERIT=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9662$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9663 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9664
9665$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9666
9667fi
9668
cristy73bd4a52010-10-05 11:24:23 +00009669 LIBS="$save_LIBS"
9670 CFLAGS="$save_CFLAGS"
9671
9672 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009673 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009674 for ac_prog in xlc_r cc_r
9675do
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677set dummy $ac_prog; ac_word=$2
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009680if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009681 $as_echo_n "(cached) " >&6
9682else
9683 if test -n "$PTHREAD_CC"; then
9684 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9685else
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009693 ac_cv_prog_PTHREAD_CC="$ac_prog"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697done
9698 done
9699IFS=$as_save_IFS
9700
9701fi
9702fi
9703PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9704if test -n "$PTHREAD_CC"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9706$as_echo "$PTHREAD_CC" >&6; }
9707else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
9710fi
9711
9712
9713 test -n "$PTHREAD_CC" && break
9714done
9715test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9716
9717 else
9718 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009719 fi
cristy73bd4a52010-10-05 11:24:23 +00009720else
9721 PTHREAD_CC="$CC"
9722fi
9723
9724
9725
9726
9727
9728# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9729if test x"$ax_pthread_ok" = xyes; then
9730
9731$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9732
9733 :
9734else
9735 ax_pthread_ok=no
9736
9737fi
9738ac_ext=c
9739ac_cpp='$CPP $CPPFLAGS'
9740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742ac_compiler_gnu=$ac_cv_c_compiler_gnu
9743
9744
9745
9746# Check whether --enable-opencl was given.
9747if test "${enable_opencl+set}" = set; then :
9748 enableval=$enable_opencl; disable_opencl=$enableval
9749else
9750 disable_opencl='yes'
9751fi
9752
9753
9754if test "$disable_opencl" = 'yes'; then
9755 ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
cristy568c2d42012-07-27 01:41:20 +00009761 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009762 if test X$ax_compiler_ms = Xno; then :
9763 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9764fi
9765
9766 ax_save_CPPFLAGS=$CPPFLAGS
9767 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9768 for ac_header in CL/cl.h OpenCL/cl.h
9769do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009773 cat >>confdefs.h <<_ACEOF
9774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9775_ACEOF
9776
9777fi
9778
9779done
9780
9781 CPPFLAGS=$ax_save_CPPFLAGS
9782
9783 for ac_header in windows.h
9784do :
9785 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009786if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009787 cat >>confdefs.h <<_ACEOF
9788#define HAVE_WINDOWS_H 1
9789_ACEOF
9790
9791fi
9792
9793done
9794
9795
9796
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9799$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009800if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009801 $as_echo_n "(cached) " >&6
9802else
9803 ax_cv_check_cl_libcl=no
9804 case $host_cpu in
9805 x86_64) ax_check_cl_libdir=lib64 ;;
9806 *) ax_check_cl_libdir=lib ;;
9807 esac
9808 ax_save_CPPFLAGS=$CPPFLAGS
9809 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9810 ax_save_LIBS=$LIBS
9811 LIBS=""
9812 ax_check_libs="-lOpenCL -lCL -lclparser"
9813 for ax_lib in $ax_check_libs; do
9814 if test X$ax_compiler_ms = Xyes; then :
9815 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9816else
9817 ax_try_lib=$ax_lib
9818fi
9819 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h. */
9822
9823 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9824 # include <windows.h>
9825 # endif
9826 # ifdef HAVE_CL_CL_H
9827 # include <CL/cl.h>
9828 # elif defined(HAVE_OPENCL_CL_H)
9829 # include <OpenCL/cl.h>
9830 # else
9831 # error no CL.h
9832 # endif
9833int
9834main ()
9835{
9836clCreateContextFromType(0,0,0,0,0)
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842 ax_cv_check_cl_libcl=$ax_try_lib; break
9843else
9844 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h. */
9847
9848 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9849 # include <windows.h>
9850 # endif
9851 # ifdef HAVE_CL_CL_H
9852 # include <CL/cl.h>
9853 # elif defined(HAVE_OPENCL_CL_H)
9854 # include <OpenCL/cl.h>
9855 # else
9856 # error no CL.h
9857 # endif
9858int
9859main ()
9860{
9861clCreateContextFromType(0,0,0,0,0)
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9868else
cristy78c5a0c2010-12-04 20:00:59 +00009869 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +00009870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h. */
9872
9873 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9874 # include <windows.h>
9875 # endif
9876 # ifdef HAVE_CL_CL_H
9877 # include <CL/cl.h>
9878 # elif defined(HAVE_OPENCL_CL_H)
9879 # include <OpenCL/cl.h>
9880 # else
9881 # error no CL.h
9882 # endif
9883int
9884main ()
9885{
9886clCreateContextFromType(0,0,0,0,0)
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891if ac_fn_c_try_link "$LINENO"; then :
9892 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9893fi
9894rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896fi
9897rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 done
9903
cristyc3f8b8e2011-12-22 14:55:16 +00009904 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009905 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h. */
9908
9909 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9910 # include <windows.h>
9911 # endif
9912 # ifdef HAVE_CL_CL_H
9913 # include <CL/cl.h>
9914 # elif defined(HAVE_OPENCL_CL_H)
9915 # include <OpenCL/cl.h>
9916 # else
9917 # error no CL.h
9918 # endif
9919int
9920main ()
9921{
9922clCreateContextFromType(0,0,0,0,0)
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928 ax_cv_check_cl_libcl=$LIBS
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932fi
9933
9934 LIBS=$ax_save_LIBS
9935 CPPFLAGS=$ax_save_CPPFLAGS
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9938$as_echo "$ax_cv_check_cl_libcl" >&6; }
9939
9940 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9941 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9942else
9943 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9944$as_echo "#define _OPENCL 1" >>confdefs.h
9945
9946fi
9947 ac_ext=c
9948ac_cpp='$CPP $CPPFLAGS'
9949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951ac_compiler_gnu=$ac_cv_c_compiler_gnu
9952
9953fi
9954
9955
9956
9957
cristyc7083c12009-10-14 03:16:55 +00009958CFLAGS="$CL_CFLAGS $CFLAGS"
9959LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009960
cristy391f1ce2010-09-09 17:23:28 +00009961if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009962 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009963 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9964 fi
cristyfd9dcd42010-08-08 18:07:02 +00009965fi
cristy2e8b51d2009-10-17 18:26:15 +00009966
cristy3ed852e2009-09-05 21:47:34 +00009967########
9968#
9969# Check for large file support
9970#
9971########
9972# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009973if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009974 enableval=$enable_largefile;
9975fi
9976
9977if test "$enable_largefile" != no; then
9978
cristy8b350f62009-11-15 23:12:43 +00009979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009980$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009981if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009982 $as_echo_n "(cached) " >&6
9983else
9984 ac_cv_sys_largefile_CC=no
9985 if test "$GCC" != yes; then
9986 ac_save_CC=$CC
9987 while :; do
9988 # IRIX 6.2 and later do not support large files by default,
9989 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009991/* end confdefs.h. */
9992#include <sys/types.h>
9993 /* Check that off_t can represent 2**63 - 1 correctly.
9994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9995 since some C++ compilers masquerading as C compilers
9996 incorrectly reject 9223372036854775807. */
9997#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9999 && LARGE_OFF_T % 2147483647 == 1)
10000 ? 1 : -1];
10001int
10002main ()
10003{
10004
10005 ;
10006 return 0;
10007}
10008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010009 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010010 break
cristy3ed852e2009-09-05 21:47:34 +000010011fi
cristy3ed852e2009-09-05 21:47:34 +000010012rm -f core conftest.err conftest.$ac_objext
10013 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010014 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010015 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010016fi
cristy3ed852e2009-09-05 21:47:34 +000010017rm -f core conftest.err conftest.$ac_objext
10018 break
10019 done
10020 CC=$ac_save_CC
10021 rm -f conftest.$ac_ext
10022 fi
10023fi
cristy8b350f62009-11-15 23:12:43 +000010024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10026 if test "$ac_cv_sys_largefile_CC" != no; then
10027 CC=$CC$ac_cv_sys_largefile_CC
10028 fi
10029
cristy8b350f62009-11-15 23:12:43 +000010030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010031$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010032if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010033 $as_echo_n "(cached) " >&6
10034else
10035 while :; do
cristy8b350f62009-11-15 23:12:43 +000010036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010037/* end confdefs.h. */
10038#include <sys/types.h>
10039 /* Check that off_t can represent 2**63 - 1 correctly.
10040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10041 since some C++ compilers masquerading as C compilers
10042 incorrectly reject 9223372036854775807. */
10043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10045 && LARGE_OFF_T % 2147483647 == 1)
10046 ? 1 : -1];
10047int
10048main ()
10049{
10050
10051 ;
10052 return 0;
10053}
10054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010055if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010056 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010057fi
cristy3ed852e2009-09-05 21:47:34 +000010058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010060/* end confdefs.h. */
10061#define _FILE_OFFSET_BITS 64
10062#include <sys/types.h>
10063 /* Check that off_t can represent 2**63 - 1 correctly.
10064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10065 since some C++ compilers masquerading as C compilers
10066 incorrectly reject 9223372036854775807. */
10067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10069 && LARGE_OFF_T % 2147483647 == 1)
10070 ? 1 : -1];
10071int
10072main ()
10073{
10074
10075 ;
10076 return 0;
10077}
10078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010080 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010081fi
cristy3ed852e2009-09-05 21:47:34 +000010082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 ac_cv_sys_file_offset_bits=unknown
10084 break
10085done
10086fi
cristy8b350f62009-11-15 23:12:43 +000010087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010088$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10089case $ac_cv_sys_file_offset_bits in #(
10090 no | unknown) ;;
10091 *)
10092cat >>confdefs.h <<_ACEOF
10093#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10094_ACEOF
10095;;
10096esac
10097rm -rf conftest*
10098 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010100$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010101if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010102 $as_echo_n "(cached) " >&6
10103else
10104 while :; do
cristy8b350f62009-11-15 23:12:43 +000010105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010106/* end confdefs.h. */
10107#include <sys/types.h>
10108 /* Check that off_t can represent 2**63 - 1 correctly.
10109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10110 since some C++ compilers masquerading as C compilers
10111 incorrectly reject 9223372036854775807. */
10112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10114 && LARGE_OFF_T % 2147483647 == 1)
10115 ? 1 : -1];
10116int
10117main ()
10118{
10119
10120 ;
10121 return 0;
10122}
10123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010125 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010126fi
cristy3ed852e2009-09-05 21:47:34 +000010127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010129/* end confdefs.h. */
10130#define _LARGE_FILES 1
10131#include <sys/types.h>
10132 /* Check that off_t can represent 2**63 - 1 correctly.
10133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10134 since some C++ compilers masquerading as C compilers
10135 incorrectly reject 9223372036854775807. */
10136#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10138 && LARGE_OFF_T % 2147483647 == 1)
10139 ? 1 : -1];
10140int
10141main ()
10142{
10143
10144 ;
10145 return 0;
10146}
10147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010149 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010150fi
cristy3ed852e2009-09-05 21:47:34 +000010151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 ac_cv_sys_large_files=unknown
10153 break
10154done
10155fi
cristy8b350f62009-11-15 23:12:43 +000010156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010157$as_echo "$ac_cv_sys_large_files" >&6; }
10158case $ac_cv_sys_large_files in #(
10159 no | unknown) ;;
10160 *)
10161cat >>confdefs.h <<_ACEOF
10162#define _LARGE_FILES $ac_cv_sys_large_files
10163_ACEOF
10164;;
10165esac
10166rm -rf conftest*
10167 fi
cristy14fefe52012-05-21 00:59:18 +000010168
10169
cristy3ed852e2009-09-05 21:47:34 +000010170fi
10171
cristy8b350f62009-11-15 23:12:43 +000010172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010173$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010174if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 $as_echo_n "(cached) " >&6
10176else
10177 while :; do
cristy8b350f62009-11-15 23:12:43 +000010178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010179/* end confdefs.h. */
10180#include <sys/types.h> /* for off_t */
10181 #include <stdio.h>
10182int
10183main ()
10184{
10185int (*fp) (FILE *, off_t, int) = fseeko;
10186 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10187 ;
10188 return 0;
10189}
10190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010192 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010193fi
cristy8b350f62009-11-15 23:12:43 +000010194rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010197/* end confdefs.h. */
10198#define _LARGEFILE_SOURCE 1
10199#include <sys/types.h> /* for off_t */
10200 #include <stdio.h>
10201int
10202main ()
10203{
10204int (*fp) (FILE *, off_t, int) = fseeko;
10205 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10206 ;
10207 return 0;
10208}
10209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010211 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010212fi
cristy8b350f62009-11-15 23:12:43 +000010213rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010215 ac_cv_sys_largefile_source=unknown
10216 break
10217done
10218fi
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$ac_cv_sys_largefile_source" >&6; }
10221case $ac_cv_sys_largefile_source in #(
10222 no | unknown) ;;
10223 *)
10224cat >>confdefs.h <<_ACEOF
10225#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10226_ACEOF
10227;;
10228esac
10229rm -rf conftest*
10230
10231# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10232# in glibc 2.1.3, but that breaks too many other things.
10233# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10234if test $ac_cv_sys_largefile_source != unknown; then
10235
cristy8b350f62009-11-15 23:12:43 +000010236$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010237
10238fi
10239
10240LFS_CPPFLAGS=''
10241if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010242 case $ac_cv_sys_file_offset_bits in
10243 no)
10244 # nothing to do here as the host supports LFS fine
10245 ;;
10246 unknown)
cristy8b350f62009-11-15 23:12:43 +000010247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010248$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010249 if test "$cross_compiling" = yes; then :
10250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010252as_fn_error $? "cannot run test program while cross compiling
10253See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010254else
cristy8b350f62009-11-15 23:12:43 +000010255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010257#include <unistd.h>
10258 main () {
10259 exit(!(sizeof(off_t) == 8));
10260 }
cristyda16f162011-02-19 23:52:17 +000010261int
10262main ()
10263{
10264
10265 ;
10266 return 0;
10267}
cristy3ed852e2009-09-05 21:47:34 +000010268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010269if ac_fn_c_try_run "$LINENO"; then :
10270 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010271
cristy09b53e12011-10-14 12:47:22 +000010272 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10273$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010274else
cristy09b53e12011-10-14 12:47:22 +000010275 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10276$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010277fi
cristy8b350f62009-11-15 23:12:43 +000010278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10279 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010280fi
10281
cristyc1e0cc12011-09-21 16:41:16 +000010282 ;;
10283 *)
10284 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10285 ;;
10286 esac
cristy3ed852e2009-09-05 21:47:34 +000010287 if test "$ac_cv_sys_large_files" != 'no'; then
10288 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10289 fi
10290 if test "$ac_cv_sys_largefile_source" != 'no'; then
10291 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10292 fi
10293fi
10294
10295
cristy3ed852e2009-09-05 21:47:34 +000010296# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010297enable_dlopen=yes
10298
10299
10300
10301case `pwd` in
10302 *\ * | *\ *)
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10304$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10305esac
10306
10307
10308
cristy99bd5232011-12-07 14:38:20 +000010309macro_version='2.4.2'
10310macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324ltmain="$ac_aux_dir/ltmain.sh"
10325
cristy0c60a692010-11-04 01:09:47 +000010326# Backslashify metacharacters that are still active within
10327# double-quoted strings.
10328sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10329
10330# Same as above, but do not quote variable references.
10331double_quote_subst='s/\(["`\\]\)/\\\1/g'
10332
10333# Sed substitution to delay expansion of an escaped shell variable in a
10334# double_quote_subst'ed string.
10335delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10336
10337# Sed substitution to delay expansion of an escaped single quote.
10338delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10339
10340# Sed substitution to avoid accidental globbing in evaled expressions
10341no_glob_subst='s/\*/\\\*/g'
10342
cristy73bd4a52010-10-05 11:24:23 +000010343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10344$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010345if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010346 $as_echo_n "(cached) " >&6
10347else
10348 if test -n "$NM"; then
10349 # Let the user override the test.
10350 lt_cv_path_NM="$NM"
10351else
10352 lt_nm_to_check="${ac_tool_prefix}nm"
10353 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10354 lt_nm_to_check="$lt_nm_to_check nm"
10355 fi
10356 for lt_tmp_nm in $lt_nm_to_check; do
10357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10358 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10359 IFS="$lt_save_ifs"
10360 test -z "$ac_dir" && ac_dir=.
10361 tmp_nm="$ac_dir/$lt_tmp_nm"
10362 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10363 # Check to see if the nm accepts a BSD-compat flag.
10364 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10365 # nm: unknown option "B" ignored
10366 # Tru64's nm complains that /dev/null is an invalid object file
10367 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10368 */dev/null* | *'Invalid file or object type'*)
10369 lt_cv_path_NM="$tmp_nm -B"
10370 break
10371 ;;
10372 *)
10373 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10374 */dev/null*)
10375 lt_cv_path_NM="$tmp_nm -p"
10376 break
10377 ;;
10378 *)
10379 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10380 continue # so that we can try to find one that supports BSD flags
10381 ;;
10382 esac
10383 ;;
10384 esac
10385 fi
10386 done
10387 IFS="$lt_save_ifs"
10388 done
10389 : ${lt_cv_path_NM=no}
10390fi
10391fi
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10393$as_echo "$lt_cv_path_NM" >&6; }
10394if test "$lt_cv_path_NM" != "no"; then
10395 NM="$lt_cv_path_NM"
10396else
10397 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010398 if test -n "$DUMPBIN"; then :
10399 # Let the user override the test.
10400 else
10401 if test -n "$ac_tool_prefix"; then
10402 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010403 do
10404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010408if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010409 $as_echo_n "(cached) " >&6
10410else
10411 if test -n "$DUMPBIN"; then
10412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426 done
10427IFS=$as_save_IFS
10428
10429fi
10430fi
10431DUMPBIN=$ac_cv_prog_DUMPBIN
10432if test -n "$DUMPBIN"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10434$as_echo "$DUMPBIN" >&6; }
10435else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
10438fi
10439
10440
10441 test -n "$DUMPBIN" && break
10442 done
10443fi
10444if test -z "$DUMPBIN"; then
10445 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010446 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010447do
10448 # Extract the first word of "$ac_prog", so it can be a program name with args.
10449set dummy $ac_prog; ac_word=$2
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010452if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010453 $as_echo_n "(cached) " >&6
10454else
10455 if test -n "$ac_ct_DUMPBIN"; then
10456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469done
10470 done
10471IFS=$as_save_IFS
10472
10473fi
10474fi
10475ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10476if test -n "$ac_ct_DUMPBIN"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10478$as_echo "$ac_ct_DUMPBIN" >&6; }
10479else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482fi
10483
10484
10485 test -n "$ac_ct_DUMPBIN" && break
10486done
10487
10488 if test "x$ac_ct_DUMPBIN" = x; then
10489 DUMPBIN=":"
10490 else
10491 case $cross_compiling:$ac_tool_warned in
10492yes:)
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10495ac_tool_warned=yes ;;
10496esac
10497 DUMPBIN=$ac_ct_DUMPBIN
10498 fi
10499fi
10500
cristy0c60a692010-11-04 01:09:47 +000010501 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10502 *COFF*)
10503 DUMPBIN="$DUMPBIN -symbols"
10504 ;;
10505 *)
10506 DUMPBIN=:
10507 ;;
10508 esac
10509 fi
cristy73bd4a52010-10-05 11:24:23 +000010510
10511 if test "$DUMPBIN" != ":"; then
10512 NM="$DUMPBIN"
10513 fi
10514fi
10515test -z "$NM" && NM=nm
10516
10517
10518
10519
10520
10521
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10523$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010524if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010525 $as_echo_n "(cached) " >&6
10526else
10527 lt_cv_nm_interface="BSD nm"
10528 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010529 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010530 (eval "$ac_compile" 2>conftest.err)
10531 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010532 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10534 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010535 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010536 cat conftest.out >&5
10537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10538 lt_cv_nm_interface="MS dumpbin"
10539 fi
10540 rm -f conftest*
10541fi
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10543$as_echo "$lt_cv_nm_interface" >&6; }
10544
10545# find the maximum length of command line arguments
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010548if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010549 $as_echo_n "(cached) " >&6
10550else
10551 i=0
10552 teststring="ABCD"
10553
10554 case $build_os in
10555 msdosdjgpp*)
10556 # On DJGPP, this test can blow up pretty badly due to problems in libc
10557 # (any single argument exceeding 2000 bytes causes a buffer overrun
10558 # during glob expansion). Even if it were fixed, the result of this
10559 # check would be larger than it should be.
10560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10561 ;;
10562
10563 gnu*)
10564 # Under GNU Hurd, this test is not required because there is
10565 # no limit to the length of command line arguments.
10566 # Libtool will interpret -1 as no limit whatsoever
10567 lt_cv_sys_max_cmd_len=-1;
10568 ;;
10569
10570 cygwin* | mingw* | cegcc*)
10571 # On Win9x/ME, this test blows up -- it succeeds, but takes
10572 # about 5 minutes as the teststring grows exponentially.
10573 # Worse, since 9x/ME are not pre-emptively multitasking,
10574 # you end up with a "frozen" computer, even though with patience
10575 # the test eventually succeeds (with a max line length of 256k).
10576 # Instead, let's just punt: use the minimum linelength reported by
10577 # all of the supported platforms: 8192 (on NT/2K/XP).
10578 lt_cv_sys_max_cmd_len=8192;
10579 ;;
10580
cristy0c60a692010-11-04 01:09:47 +000010581 mint*)
10582 # On MiNT this can take a long time and run out of memory.
10583 lt_cv_sys_max_cmd_len=8192;
10584 ;;
10585
cristy73bd4a52010-10-05 11:24:23 +000010586 amigaos*)
10587 # On AmigaOS with pdksh, this test takes hours, literally.
10588 # So we just punt and use a minimum line length of 8192.
10589 lt_cv_sys_max_cmd_len=8192;
10590 ;;
10591
10592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10593 # This has been around since 386BSD, at least. Likely further.
10594 if test -x /sbin/sysctl; then
10595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10596 elif test -x /usr/sbin/sysctl; then
10597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10598 else
10599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10600 fi
10601 # And add a safety zone
10602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10604 ;;
10605
10606 interix*)
10607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10608 lt_cv_sys_max_cmd_len=196608
10609 ;;
10610
cristy99bd5232011-12-07 14:38:20 +000010611 os2*)
10612 # The test takes a long time on OS/2.
10613 lt_cv_sys_max_cmd_len=8192
10614 ;;
10615
cristy73bd4a52010-10-05 11:24:23 +000010616 osf*)
10617 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10618 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10619 # nice to cause kernel panics so lets avoid the loop below.
10620 # First set a reasonable default.
10621 lt_cv_sys_max_cmd_len=16384
10622 #
10623 if test -x /sbin/sysconfig; then
10624 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10625 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10626 esac
10627 fi
10628 ;;
10629 sco3.2v5*)
10630 lt_cv_sys_max_cmd_len=102400
10631 ;;
10632 sysv5* | sco5v6* | sysv4.2uw2*)
10633 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10634 if test -n "$kargmax"; then
10635 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10636 else
10637 lt_cv_sys_max_cmd_len=32768
10638 fi
10639 ;;
10640 *)
10641 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10642 if test -n "$lt_cv_sys_max_cmd_len"; then
10643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10645 else
10646 # Make teststring a little bigger before we do anything with it.
10647 # a 1K string should be a reasonable start.
10648 for i in 1 2 3 4 5 6 7 8 ; do
10649 teststring=$teststring$teststring
10650 done
10651 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10652 # If test is not a shell built-in, we'll probably end up computing a
10653 # maximum length that is only half of the actual maximum length, but
10654 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010655 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010656 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010657 test $i != 17 # 1/2 MB should be enough
10658 do
10659 i=`expr $i + 1`
10660 teststring=$teststring$teststring
10661 done
10662 # Only check the string length outside the loop.
10663 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10664 teststring=
10665 # Add a significant safety factor because C++ compilers can tack on
10666 # massive amounts of additional arguments before passing them to the
10667 # linker. It appears as though 1/2 is a usable value.
10668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10669 fi
10670 ;;
10671 esac
10672
10673fi
10674
10675if test -n $lt_cv_sys_max_cmd_len ; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10677$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10678else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10680$as_echo "none" >&6; }
10681fi
10682max_cmd_len=$lt_cv_sys_max_cmd_len
10683
10684
10685
10686
10687
10688
10689: ${CP="cp -f"}
10690: ${MV="mv -f"}
10691: ${RM="rm -f"}
10692
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10694$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10695# Try some XSI features
10696xsi_shell=no
10697( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010698 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10699 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010700 && eval 'test $(( 1 + 1 )) -eq 2 \
10701 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10702 && xsi_shell=yes
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10704$as_echo "$xsi_shell" >&6; }
10705
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10708$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10709lt_shell_append=no
10710( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10711 >/dev/null 2>&1 \
10712 && lt_shell_append=yes
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10714$as_echo "$lt_shell_append" >&6; }
10715
10716
10717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10718 lt_unset=unset
10719else
10720 lt_unset=false
10721fi
10722
10723
10724
10725
10726
10727# test EBCDIC or ASCII
10728case `echo X|tr X '\101'` in
10729 A) # ASCII based system
10730 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10731 lt_SP2NL='tr \040 \012'
10732 lt_NL2SP='tr \015\012 \040\040'
10733 ;;
10734 *) # EBCDIC based system
10735 lt_SP2NL='tr \100 \n'
10736 lt_NL2SP='tr \r\n \100\100'
10737 ;;
10738esac
10739
10740
10741
10742
10743
10744
10745
10746
10747
cristyda16f162011-02-19 23:52:17 +000010748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10749$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10750if ${lt_cv_to_host_file_cmd+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752else
10753 case $host in
10754 *-*-mingw* )
10755 case $build in
10756 *-*-mingw* ) # actually msys
10757 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10758 ;;
10759 *-*-cygwin* )
10760 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10761 ;;
10762 * ) # otherwise, assume *nix
10763 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10764 ;;
10765 esac
10766 ;;
10767 *-*-cygwin* )
10768 case $build in
10769 *-*-mingw* ) # actually msys
10770 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10771 ;;
10772 *-*-cygwin* )
10773 lt_cv_to_host_file_cmd=func_convert_file_noop
10774 ;;
10775 * ) # otherwise, assume *nix
10776 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10777 ;;
10778 esac
10779 ;;
10780 * ) # unhandled hosts (and "normal" native builds)
10781 lt_cv_to_host_file_cmd=func_convert_file_noop
10782 ;;
10783esac
10784
10785fi
10786
10787to_host_file_cmd=$lt_cv_to_host_file_cmd
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10789$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10790
10791
10792
10793
10794
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10796$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10797if ${lt_cv_to_tool_file_cmd+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799else
10800 #assume ordinary cross tools, or native build.
10801lt_cv_to_tool_file_cmd=func_convert_file_noop
10802case $host in
10803 *-*-mingw* )
10804 case $build in
10805 *-*-mingw* ) # actually msys
10806 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10807 ;;
10808 esac
10809 ;;
10810esac
10811
10812fi
10813
10814to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10816$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10817
10818
10819
10820
10821
cristy73bd4a52010-10-05 11:24:23 +000010822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10823$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010824if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010825 $as_echo_n "(cached) " >&6
10826else
10827 lt_cv_ld_reload_flag='-r'
10828fi
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10830$as_echo "$lt_cv_ld_reload_flag" >&6; }
10831reload_flag=$lt_cv_ld_reload_flag
10832case $reload_flag in
10833"" | " "*) ;;
10834*) reload_flag=" $reload_flag" ;;
10835esac
10836reload_cmds='$LD$reload_flag -o $output$reload_objs'
10837case $host_os in
cristyda16f162011-02-19 23:52:17 +000010838 cygwin* | mingw* | pw32* | cegcc*)
10839 if test "$GCC" != yes; then
10840 reload_cmds=false
10841 fi
10842 ;;
cristy73bd4a52010-10-05 11:24:23 +000010843 darwin*)
10844 if test "$GCC" = yes; then
10845 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10846 else
10847 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10848 fi
10849 ;;
10850esac
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860if test -n "$ac_tool_prefix"; then
10861 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10862set dummy ${ac_tool_prefix}objdump; ac_word=$2
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$OBJDUMP"; then
10869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010878 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883 done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888OBJDUMP=$ac_cv_prog_OBJDUMP
10889if test -n "$OBJDUMP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10891$as_echo "$OBJDUMP" >&6; }
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_OBJDUMP"; then
10900 ac_ct_OBJDUMP=$OBJDUMP
10901 # Extract the first word of "objdump", so it can be a program name with args.
10902set dummy objdump; ac_word=$2
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010905if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$ac_ct_OBJDUMP"; then
10909 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010918 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923 done
10924IFS=$as_save_IFS
10925
10926fi
10927fi
10928ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10929if test -n "$ac_ct_OBJDUMP"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10931$as_echo "$ac_ct_OBJDUMP" >&6; }
10932else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935fi
10936
10937 if test "x$ac_ct_OBJDUMP" = x; then
10938 OBJDUMP="false"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 OBJDUMP=$ac_ct_OBJDUMP
10947 fi
10948else
10949 OBJDUMP="$ac_cv_prog_OBJDUMP"
10950fi
10951
10952test -z "$OBJDUMP" && OBJDUMP=objdump
10953
10954
10955
10956
10957
10958
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10960$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010961if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010962 $as_echo_n "(cached) " >&6
10963else
10964 lt_cv_file_magic_cmd='$MAGIC_CMD'
10965lt_cv_file_magic_test_file=
10966lt_cv_deplibs_check_method='unknown'
10967# Need to set the preceding variable on all platforms that support
10968# interlibrary dependencies.
10969# 'none' -- dependencies not supported.
10970# `unknown' -- same as none, but documents that we really don't know.
10971# 'pass_all' -- all dependencies passed with no checks.
10972# 'test_compile' -- check by making test program.
10973# 'file_magic [[regex]]' -- check by looking for files in library path
10974# which responds to the $file_magic_cmd with a given extended regex.
10975# If you have `file' or equivalent on your system and you're not sure
10976# whether `pass_all' will *always* work, you probably want this one.
10977
10978case $host_os in
10979aix[4-9]*)
10980 lt_cv_deplibs_check_method=pass_all
10981 ;;
10982
10983beos*)
10984 lt_cv_deplibs_check_method=pass_all
10985 ;;
10986
10987bsdi[45]*)
10988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10989 lt_cv_file_magic_cmd='/usr/bin/file -L'
10990 lt_cv_file_magic_test_file=/shlib/libc.so
10991 ;;
10992
10993cygwin*)
10994 # func_win32_libid is a shell function defined in ltmain.sh
10995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10996 lt_cv_file_magic_cmd='func_win32_libid'
10997 ;;
10998
10999mingw* | pw32*)
11000 # Base MSYS/MinGW do not provide the 'file' command needed by
11001 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11002 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011003 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11004 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11006 lt_cv_file_magic_cmd='func_win32_libid'
11007 else
cristy0c60a692010-11-04 01:09:47 +000011008 # Keep this pattern in sync with the one in func_win32_libid.
11009 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000011010 lt_cv_file_magic_cmd='$OBJDUMP -f'
11011 fi
11012 ;;
11013
cristy0c60a692010-11-04 01:09:47 +000011014cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011015 # use the weaker test based on 'objdump'. See mingw*.
11016 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11017 lt_cv_file_magic_cmd='$OBJDUMP -f'
11018 ;;
11019
11020darwin* | rhapsody*)
11021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
11024freebsd* | dragonfly*)
11025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11026 case $host_cpu in
11027 i*86 )
11028 # Not sure whether the presence of OpenBSD here was a mistake.
11029 # Let's accept both of them until this is cleared up.
11030 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11031 lt_cv_file_magic_cmd=/usr/bin/file
11032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11033 ;;
11034 esac
11035 else
11036 lt_cv_deplibs_check_method=pass_all
11037 fi
11038 ;;
11039
11040gnu*)
11041 lt_cv_deplibs_check_method=pass_all
11042 ;;
11043
cristy0c60a692010-11-04 01:09:47 +000011044haiku*)
11045 lt_cv_deplibs_check_method=pass_all
11046 ;;
11047
cristy73bd4a52010-10-05 11:24:23 +000011048hpux10.20* | hpux11*)
11049 lt_cv_file_magic_cmd=/usr/bin/file
11050 case $host_cpu in
11051 ia64*)
11052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11054 ;;
11055 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000011057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11058 ;;
11059 *)
cristy0c60a692010-11-04 01:09:47 +000011060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011061 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11062 ;;
11063 esac
11064 ;;
11065
11066interix[3-9]*)
11067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11069 ;;
11070
11071irix5* | irix6* | nonstopux*)
11072 case $LD in
11073 *-32|*"-32 ") libmagic=32-bit;;
11074 *-n32|*"-n32 ") libmagic=N32;;
11075 *-64|*"-64 ") libmagic=64-bit;;
11076 *) libmagic=never-match;;
11077 esac
11078 lt_cv_deplibs_check_method=pass_all
11079 ;;
11080
cristy99bd5232011-12-07 14:38:20 +000011081# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011082linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011083 lt_cv_deplibs_check_method=pass_all
11084 ;;
11085
11086netbsd*)
11087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11089 else
11090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11091 fi
11092 ;;
11093
11094newos6*)
11095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11096 lt_cv_file_magic_cmd=/usr/bin/file
11097 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11098 ;;
11099
11100*nto* | *qnx*)
11101 lt_cv_deplibs_check_method=pass_all
11102 ;;
11103
11104openbsd*)
11105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11107 else
11108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11109 fi
11110 ;;
11111
11112osf3* | osf4* | osf5*)
11113 lt_cv_deplibs_check_method=pass_all
11114 ;;
11115
11116rdos*)
11117 lt_cv_deplibs_check_method=pass_all
11118 ;;
11119
11120solaris*)
11121 lt_cv_deplibs_check_method=pass_all
11122 ;;
11123
11124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11125 lt_cv_deplibs_check_method=pass_all
11126 ;;
11127
11128sysv4 | sysv4.3*)
11129 case $host_vendor in
11130 motorola)
11131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
11132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11133 ;;
11134 ncr)
11135 lt_cv_deplibs_check_method=pass_all
11136 ;;
11137 sequent)
11138 lt_cv_file_magic_cmd='/bin/file'
11139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11140 ;;
11141 sni)
11142 lt_cv_file_magic_cmd='/bin/file'
11143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11144 lt_cv_file_magic_test_file=/lib/libc.so
11145 ;;
11146 siemens)
11147 lt_cv_deplibs_check_method=pass_all
11148 ;;
11149 pc)
11150 lt_cv_deplibs_check_method=pass_all
11151 ;;
11152 esac
11153 ;;
11154
11155tpf*)
11156 lt_cv_deplibs_check_method=pass_all
11157 ;;
11158esac
11159
11160fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11162$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011163
11164file_magic_glob=
11165want_nocaseglob=no
11166if test "$build" = "$host"; then
11167 case $host_os in
11168 mingw* | pw32*)
11169 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11170 want_nocaseglob=yes
11171 else
11172 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11173 fi
11174 ;;
11175 esac
11176fi
11177
cristy73bd4a52010-10-05 11:24:23 +000011178file_magic_cmd=$lt_cv_file_magic_cmd
11179deplibs_check_method=$lt_cv_deplibs_check_method
11180test -z "$deplibs_check_method" && deplibs_check_method=unknown
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
cristyda16f162011-02-19 23:52:17 +000011193
11194
11195
11196
11197
11198
11199
11200
11201
11202
cristy73bd4a52010-10-05 11:24:23 +000011203if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011204 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11205set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011208if ${ac_cv_prog_DLLTOOL+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210else
11211 if test -n "$DLLTOOL"; then
11212 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11213else
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011221 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226 done
11227IFS=$as_save_IFS
11228
11229fi
11230fi
11231DLLTOOL=$ac_cv_prog_DLLTOOL
11232if test -n "$DLLTOOL"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11234$as_echo "$DLLTOOL" >&6; }
11235else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
11238fi
11239
11240
11241fi
11242if test -z "$ac_cv_prog_DLLTOOL"; then
11243 ac_ct_DLLTOOL=$DLLTOOL
11244 # Extract the first word of "dlltool", so it can be a program name with args.
11245set dummy dlltool; ac_word=$2
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250else
11251 if test -n "$ac_ct_DLLTOOL"; then
11252 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011261 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265done
11266 done
11267IFS=$as_save_IFS
11268
11269fi
11270fi
11271ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11272if test -n "$ac_ct_DLLTOOL"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11274$as_echo "$ac_ct_DLLTOOL" >&6; }
11275else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
11278fi
11279
11280 if test "x$ac_ct_DLLTOOL" = x; then
11281 DLLTOOL="false"
11282 else
11283 case $cross_compiling:$ac_tool_warned in
11284yes:)
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11287ac_tool_warned=yes ;;
11288esac
11289 DLLTOOL=$ac_ct_DLLTOOL
11290 fi
11291else
11292 DLLTOOL="$ac_cv_prog_DLLTOOL"
11293fi
11294
11295test -z "$DLLTOOL" && DLLTOOL=dlltool
11296
11297
11298
11299
11300
11301
11302
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11304$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307else
11308 lt_cv_sharedlib_from_linklib_cmd='unknown'
11309
11310case $host_os in
11311cygwin* | mingw* | pw32* | cegcc*)
11312 # two different shell functions defined in ltmain.sh
11313 # decide which to use based on capabilities of $DLLTOOL
11314 case `$DLLTOOL --help 2>&1` in
11315 *--identify-strict*)
11316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11317 ;;
11318 *)
11319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11320 ;;
11321 esac
11322 ;;
11323*)
11324 # fallback: assume linklib IS sharedlib
11325 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11326 ;;
11327esac
11328
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11334
11335
11336
11337
11338
11339
11340
11341if test -n "$ac_tool_prefix"; then
11342 for ac_prog in ar
11343 do
11344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011349 $as_echo_n "(cached) " >&6
11350else
11351 if test -n "$AR"; then
11352 ac_cv_prog_AR="$AR" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365done
11366 done
11367IFS=$as_save_IFS
11368
11369fi
11370fi
11371AR=$ac_cv_prog_AR
11372if test -n "$AR"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11374$as_echo "$AR" >&6; }
11375else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379
11380
cristyda16f162011-02-19 23:52:17 +000011381 test -n "$AR" && break
11382 done
cristy73bd4a52010-10-05 11:24:23 +000011383fi
cristyda16f162011-02-19 23:52:17 +000011384if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011385 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011386 for ac_prog in ar
11387do
11388 # Extract the first word of "$ac_prog", so it can be a program name with args.
11389set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011392if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011393 $as_echo_n "(cached) " >&6
11394else
11395 if test -n "$ac_ct_AR"; then
11396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11397else
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011405 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11408 fi
11409done
11410 done
11411IFS=$as_save_IFS
11412
11413fi
11414fi
11415ac_ct_AR=$ac_cv_prog_ac_ct_AR
11416if test -n "$ac_ct_AR"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11418$as_echo "$ac_ct_AR" >&6; }
11419else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422fi
11423
cristyda16f162011-02-19 23:52:17 +000011424
11425 test -n "$ac_ct_AR" && break
11426done
11427
cristy73bd4a52010-10-05 11:24:23 +000011428 if test "x$ac_ct_AR" = x; then
11429 AR="false"
11430 else
11431 case $cross_compiling:$ac_tool_warned in
11432yes:)
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11435ac_tool_warned=yes ;;
11436esac
11437 AR=$ac_ct_AR
11438 fi
cristy73bd4a52010-10-05 11:24:23 +000011439fi
11440
cristyda16f162011-02-19 23:52:17 +000011441: ${AR=ar}
11442: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
cristyda16f162011-02-19 23:52:17 +000011454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11455$as_echo_n "checking for archiver @FILE support... " >&6; }
11456if ${lt_cv_ar_at_file+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458else
11459 lt_cv_ar_at_file=no
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462
11463int
11464main ()
11465{
11466
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_compile "$LINENO"; then :
11472 echo conftest.$ac_objext > conftest.lst
11473 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11475 (eval $lt_ar_try) 2>&5
11476 ac_status=$?
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; }
11479 if test "$ac_status" -eq 0; then
11480 # Ensure the archiver fails upon bogus file names.
11481 rm -f conftest.$ac_objext libconftest.a
11482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11483 (eval $lt_ar_try) 2>&5
11484 ac_status=$?
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; }
11487 if test "$ac_status" -ne 0; then
11488 lt_cv_ar_at_file=@
11489 fi
11490 fi
11491 rm -f conftest.* libconftest.a
11492
11493fi
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11498$as_echo "$lt_cv_ar_at_file" >&6; }
11499
11500if test "x$lt_cv_ar_at_file" = xno; then
11501 archiver_list_spec=
11502else
11503 archiver_list_spec=$lt_cv_ar_at_file
11504fi
11505
11506
11507
11508
11509
11510
11511
cristy73bd4a52010-10-05 11:24:23 +000011512if test -n "$ac_tool_prefix"; then
11513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11514set dummy ${ac_tool_prefix}strip; ac_word=$2
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011517if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011518 $as_echo_n "(cached) " >&6
11519else
11520 if test -n "$STRIP"; then
11521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535 done
11536IFS=$as_save_IFS
11537
11538fi
11539fi
11540STRIP=$ac_cv_prog_STRIP
11541if test -n "$STRIP"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11543$as_echo "$STRIP" >&6; }
11544else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547fi
11548
11549
11550fi
11551if test -z "$ac_cv_prog_STRIP"; then
11552 ac_ct_STRIP=$STRIP
11553 # Extract the first word of "strip", so it can be a program name with args.
11554set dummy strip; ac_word=$2
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011558 $as_echo_n "(cached) " >&6
11559else
11560 if test -n "$ac_ct_STRIP"; then
11561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011570 ac_cv_prog_ac_ct_STRIP="strip"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575 done
11576IFS=$as_save_IFS
11577
11578fi
11579fi
11580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11581if test -n "$ac_ct_STRIP"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11583$as_echo "$ac_ct_STRIP" >&6; }
11584else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589 if test "x$ac_ct_STRIP" = x; then
11590 STRIP=":"
11591 else
11592 case $cross_compiling:$ac_tool_warned in
11593yes:)
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11596ac_tool_warned=yes ;;
11597esac
11598 STRIP=$ac_ct_STRIP
11599 fi
11600else
11601 STRIP="$ac_cv_prog_STRIP"
11602fi
11603
11604test -z "$STRIP" && STRIP=:
11605
11606
11607
11608
11609
11610
11611if test -n "$ac_tool_prefix"; then
11612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011616if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011617 $as_echo_n "(cached) " >&6
11618else
11619 if test -n "$RANLIB"; then
11620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11621else
11622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $PATH
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11632 fi
11633done
11634 done
11635IFS=$as_save_IFS
11636
11637fi
11638fi
11639RANLIB=$ac_cv_prog_RANLIB
11640if test -n "$RANLIB"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11642$as_echo "$RANLIB" >&6; }
11643else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646fi
11647
11648
11649fi
11650if test -z "$ac_cv_prog_RANLIB"; then
11651 ac_ct_RANLIB=$RANLIB
11652 # Extract the first word of "ranlib", so it can be a program name with args.
11653set dummy ranlib; ac_word=$2
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011657 $as_echo_n "(cached) " >&6
11658else
11659 if test -n "$ac_ct_RANLIB"; then
11660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011669 ac_cv_prog_ac_ct_RANLIB="ranlib"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673done
11674 done
11675IFS=$as_save_IFS
11676
11677fi
11678fi
11679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11680if test -n "$ac_ct_RANLIB"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11682$as_echo "$ac_ct_RANLIB" >&6; }
11683else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686fi
11687
11688 if test "x$ac_ct_RANLIB" = x; then
11689 RANLIB=":"
11690 else
11691 case $cross_compiling:$ac_tool_warned in
11692yes:)
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11695ac_tool_warned=yes ;;
11696esac
11697 RANLIB=$ac_ct_RANLIB
11698 fi
11699else
11700 RANLIB="$ac_cv_prog_RANLIB"
11701fi
11702
11703test -z "$RANLIB" && RANLIB=:
11704
11705
11706
11707
11708
11709
11710# Determine commands to create old-style static archives.
11711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11712old_postinstall_cmds='chmod 644 $oldlib'
11713old_postuninstall_cmds=
11714
11715if test -n "$RANLIB"; then
11716 case $host_os in
11717 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011719 ;;
11720 *)
cristy99bd5232011-12-07 14:38:20 +000011721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011722 ;;
11723 esac
cristy99bd5232011-12-07 14:38:20 +000011724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011725fi
11726
cristy0c60a692010-11-04 01:09:47 +000011727case $host_os in
11728 darwin*)
11729 lock_old_archive_extraction=yes ;;
11730 *)
11731 lock_old_archive_extraction=no ;;
11732esac
11733
11734
11735
11736
11737
11738
cristy73bd4a52010-10-05 11:24:23 +000011739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772# If no C compiler was specified, use CC.
11773LTCC=${LTCC-"$CC"}
11774
11775# If no C compiler flags were specified, use CFLAGS.
11776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11777
11778# Allow CC to be a program name with arguments.
11779compiler=$CC
11780
11781
11782# Check for command to grab the raw symbol name followed by C symbol from nm.
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011785if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011786 $as_echo_n "(cached) " >&6
11787else
11788
11789# These are sane defaults that work on at least a few old systems.
11790# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11791
11792# Character class describing NM global symbol codes.
11793symcode='[BCDEGRST]'
11794
11795# Regexp to match symbols that can be accessed directly from C.
11796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11797
11798# Define system-specific variables.
11799case $host_os in
11800aix*)
11801 symcode='[BCDT]'
11802 ;;
11803cygwin* | mingw* | pw32* | cegcc*)
11804 symcode='[ABCDGISTW]'
11805 ;;
11806hpux*)
11807 if test "$host_cpu" = ia64; then
11808 symcode='[ABCDEGRST]'
11809 fi
11810 ;;
11811irix* | nonstopux*)
11812 symcode='[BCDEGRST]'
11813 ;;
11814osf*)
11815 symcode='[BCDEGQRST]'
11816 ;;
11817solaris*)
11818 symcode='[BDRT]'
11819 ;;
11820sco3.2v5*)
11821 symcode='[DT]'
11822 ;;
11823sysv4.2uw2*)
11824 symcode='[DT]'
11825 ;;
11826sysv5* | sco5v6* | unixware* | OpenUNIX*)
11827 symcode='[ABDT]'
11828 ;;
11829sysv4)
11830 symcode='[DFNSTU]'
11831 ;;
11832esac
11833
11834# If we're using GNU nm, then use its standard symbol codes.
11835case `$NM -V 2>&1` in
11836*GNU* | *'with BFD'*)
11837 symcode='[ABCDGIRSTW]' ;;
11838esac
11839
11840# Transform an extracted symbol line into a proper C declaration.
11841# Some systems (esp. on ia64) link data and code symbols differently,
11842# so use this general approach.
11843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11844
11845# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11847lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cristy73bd4a52010-10-05 11:24:23 +000011848
11849# Handle CRLF in mingw tool chain
11850opt_cr=
11851case $build_os in
11852mingw*)
11853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11854 ;;
11855esac
11856
11857# Try without a prefix underscore, then with it.
11858for ac_symprfx in "" "_"; do
11859
11860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11861 symxfrm="\\1 $ac_symprfx\\2 \\2"
11862
11863 # Write the raw and C identifiers.
11864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11865 # Fake it for dumpbin and say T for any non-static function
11866 # and D for any global variable.
11867 # Also find C++ and __fastcall symbols from MSVC++,
11868 # which start with @ or ?.
11869 lt_cv_sys_global_symbol_pipe="$AWK '"\
11870" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011871" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011872" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11873" \$ 0!~/External *\|/{next};"\
11874" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11875" {if(hide[section]) next};"\
11876" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11877" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11878" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11879" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11880" ' prfx=^$ac_symprfx"
11881 else
11882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11883 fi
cristyda16f162011-02-19 23:52:17 +000011884 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011885
11886 # Check to see that the pipe works correctly.
11887 pipe_works=no
11888
11889 rm -f conftest*
11890 cat > conftest.$ac_ext <<_LT_EOF
11891#ifdef __cplusplus
11892extern "C" {
11893#endif
11894char nm_test_var;
11895void nm_test_func(void);
11896void nm_test_func(void){}
11897#ifdef __cplusplus
11898}
11899#endif
11900int main(){nm_test_var='a';nm_test_func();return(0);}
11901_LT_EOF
11902
11903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; }; then
11908 # Now try to grab the symbols.
11909 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011912 ac_status=$?
11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11914 test $ac_status = 0; } && test -s "$nlist"; then
11915 # Try sorting and uniquifying the output.
11916 if sort "$nlist" | uniq > "$nlist"T; then
11917 mv -f "$nlist"T "$nlist"
11918 else
11919 rm -f "$nlist"T
11920 fi
11921
11922 # Make sure that we snagged all the symbols we need.
11923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11925 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011926/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11927#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11928/* DATA imports from DLLs on WIN32 con't be const, because runtime
11929 relocations are performed -- see ld's documentation on pseudo-relocs. */
11930# define LT_DLSYM_CONST
11931#elif defined(__osf__)
11932/* This system does not cope well with relocations in const data. */
11933# define LT_DLSYM_CONST
11934#else
11935# define LT_DLSYM_CONST const
11936#endif
11937
cristy73bd4a52010-10-05 11:24:23 +000011938#ifdef __cplusplus
11939extern "C" {
11940#endif
11941
11942_LT_EOF
11943 # Now generate the symbol file.
11944 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11945
11946 cat <<_LT_EOF >> conftest.$ac_ext
11947
11948/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011949LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011950 const char *name;
11951 void *address;
11952}
11953lt__PROGRAM__LTX_preloaded_symbols[] =
11954{
11955 { "@PROGRAM@", (void *) 0 },
11956_LT_EOF
11957 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11958 cat <<\_LT_EOF >> conftest.$ac_ext
11959 {0, (void *) 0}
11960};
11961
11962/* This works around a problem in FreeBSD linker */
11963#ifdef FREEBSD_WORKAROUND
11964static const void *lt_preloaded_setup() {
11965 return lt__PROGRAM__LTX_preloaded_symbols;
11966}
11967#endif
11968
11969#ifdef __cplusplus
11970}
11971#endif
11972_LT_EOF
11973 # Now try linking the two files.
11974 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011975 lt_globsym_save_LIBS=$LIBS
11976 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011977 LIBS="conftstm.$ac_objext"
11978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11980 (eval $ac_link) 2>&5
11981 ac_status=$?
11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11984 pipe_works=yes
11985 fi
cristyda16f162011-02-19 23:52:17 +000011986 LIBS=$lt_globsym_save_LIBS
11987 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011988 else
11989 echo "cannot find nm_test_func in $nlist" >&5
11990 fi
11991 else
11992 echo "cannot find nm_test_var in $nlist" >&5
11993 fi
11994 else
11995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11996 fi
11997 else
11998 echo "$progname: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 fi
12001 rm -rf conftest* conftst*
12002
12003 # Do not use the global_symbol_pipe unless it works.
12004 if test "$pipe_works" = yes; then
12005 break
12006 else
12007 lt_cv_sys_global_symbol_pipe=
12008 fi
12009done
12010
12011fi
12012
12013if test -z "$lt_cv_sys_global_symbol_pipe"; then
12014 lt_cv_sys_global_symbol_to_cdecl=
12015fi
12016if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12018$as_echo "failed" >&6; }
12019else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12021$as_echo "ok" >&6; }
12022fi
12023
cristyda16f162011-02-19 23:52:17 +000012024# Response file support.
12025if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12026 nm_file_list_spec='@'
12027elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12028 nm_file_list_spec='@'
12029fi
cristy73bd4a52010-10-05 11:24:23 +000012030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
cristyda16f162011-02-19 23:52:17 +000012051
12052
12053
12054
12055
12056
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12058$as_echo_n "checking for sysroot... " >&6; }
12059
12060# Check whether --with-sysroot was given.
12061if test "${with_sysroot+set}" = set; then :
12062 withval=$with_sysroot;
12063else
12064 with_sysroot=no
12065fi
12066
12067
12068lt_sysroot=
12069case ${with_sysroot} in #(
12070 yes)
12071 if test "$GCC" = yes; then
12072 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12073 fi
12074 ;; #(
12075 /*)
12076 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12077 ;; #(
12078 no|'')
12079 ;; #(
12080 *)
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12082$as_echo "${with_sysroot}" >&6; }
12083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12084 ;;
12085esac
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12088$as_echo "${lt_sysroot:-no}" >&6; }
12089
12090
12091
12092
12093
cristy73bd4a52010-10-05 11:24:23 +000012094# Check whether --enable-libtool-lock was given.
12095if test "${enable_libtool_lock+set}" = set; then :
12096 enableval=$enable_libtool_lock;
12097fi
12098
12099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12100
12101# Some flags need to be propagated to the compiler or linker for good
12102# libtool support.
12103case $host in
12104ia64-*-hpux*)
12105 # Find out which ABI we are using.
12106 echo 'int i;' > conftest.$ac_ext
12107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12108 (eval $ac_compile) 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; }; then
12112 case `/usr/bin/file conftest.$ac_objext` in
12113 *ELF-32*)
12114 HPUX_IA64_MODE="32"
12115 ;;
12116 *ELF-64*)
12117 HPUX_IA64_MODE="64"
12118 ;;
12119 esac
12120 fi
12121 rm -rf conftest*
12122 ;;
12123*-*-irix6*)
12124 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012125 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12127 (eval $ac_compile) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; }; then
12131 if test "$lt_cv_prog_gnu_ld" = yes; then
12132 case `/usr/bin/file conftest.$ac_objext` in
12133 *32-bit*)
12134 LD="${LD-ld} -melf32bsmip"
12135 ;;
12136 *N32*)
12137 LD="${LD-ld} -melf32bmipn32"
12138 ;;
12139 *64-bit*)
12140 LD="${LD-ld} -melf64bmip"
12141 ;;
12142 esac
12143 else
12144 case `/usr/bin/file conftest.$ac_objext` in
12145 *32-bit*)
12146 LD="${LD-ld} -32"
12147 ;;
12148 *N32*)
12149 LD="${LD-ld} -n32"
12150 ;;
12151 *64-bit*)
12152 LD="${LD-ld} -64"
12153 ;;
12154 esac
12155 fi
12156 fi
12157 rm -rf conftest*
12158 ;;
12159
12160x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12161s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12162 # Find out which ABI we are using.
12163 echo 'int i;' > conftest.$ac_ext
12164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12165 (eval $ac_compile) 2>&5
12166 ac_status=$?
12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168 test $ac_status = 0; }; then
12169 case `/usr/bin/file conftest.o` in
12170 *32-bit*)
12171 case $host in
12172 x86_64-*kfreebsd*-gnu)
12173 LD="${LD-ld} -m elf_i386_fbsd"
12174 ;;
12175 x86_64-*linux*)
12176 LD="${LD-ld} -m elf_i386"
12177 ;;
12178 ppc64-*linux*|powerpc64-*linux*)
12179 LD="${LD-ld} -m elf32ppclinux"
12180 ;;
12181 s390x-*linux*)
12182 LD="${LD-ld} -m elf_s390"
12183 ;;
12184 sparc64-*linux*)
12185 LD="${LD-ld} -m elf32_sparc"
12186 ;;
12187 esac
12188 ;;
12189 *64-bit*)
12190 case $host in
12191 x86_64-*kfreebsd*-gnu)
12192 LD="${LD-ld} -m elf_x86_64_fbsd"
12193 ;;
12194 x86_64-*linux*)
12195 LD="${LD-ld} -m elf_x86_64"
12196 ;;
12197 ppc*-*linux*|powerpc*-*linux*)
12198 LD="${LD-ld} -m elf64ppc"
12199 ;;
12200 s390*-*linux*|s390*-*tpf*)
12201 LD="${LD-ld} -m elf64_s390"
12202 ;;
12203 sparc*-*linux*)
12204 LD="${LD-ld} -m elf64_sparc"
12205 ;;
12206 esac
12207 ;;
12208 esac
12209 fi
12210 rm -rf conftest*
12211 ;;
12212
12213*-*-sco3.2v5*)
12214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12215 SAVE_CFLAGS="$CFLAGS"
12216 CFLAGS="$CFLAGS -belf"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12218$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012219if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012220 $as_echo_n "(cached) " >&6
12221else
12222 ac_ext=c
12223ac_cpp='$CPP $CPPFLAGS'
12224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
12230
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239if ac_fn_c_try_link "$LINENO"; then :
12240 lt_cv_cc_needs_belf=yes
12241else
12242 lt_cv_cc_needs_belf=no
12243fi
12244rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 ac_ext=c
12247ac_cpp='$CPP $CPPFLAGS'
12248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250ac_compiler_gnu=$ac_cv_c_compiler_gnu
12251
12252fi
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12254$as_echo "$lt_cv_cc_needs_belf" >&6; }
12255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12257 CFLAGS="$SAVE_CFLAGS"
12258 fi
12259 ;;
cristy99bd5232011-12-07 14:38:20 +000012260*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012261 # Find out which ABI we are using.
12262 echo 'int i;' > conftest.$ac_ext
12263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12264 (eval $ac_compile) 2>&5
12265 ac_status=$?
12266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267 test $ac_status = 0; }; then
12268 case `/usr/bin/file conftest.o` in
12269 *64-bit*)
12270 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012271 yes*)
12272 case $host in
12273 i?86-*-solaris*)
12274 LD="${LD-ld} -m elf_x86_64"
12275 ;;
12276 sparc*-*-solaris*)
12277 LD="${LD-ld} -m elf64_sparc"
12278 ;;
12279 esac
12280 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12281 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12282 LD="${LD-ld}_sol2"
12283 fi
12284 ;;
cristy73bd4a52010-10-05 11:24:23 +000012285 *)
12286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12287 LD="${LD-ld} -64"
12288 fi
12289 ;;
12290 esac
12291 ;;
12292 esac
12293 fi
12294 rm -rf conftest*
12295 ;;
12296esac
12297
12298need_locks="$enable_libtool_lock"
12299
cristyda16f162011-02-19 23:52:17 +000012300if test -n "$ac_tool_prefix"; then
12301 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12302set dummy ${ac_tool_prefix}mt; ac_word=$2
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
12305if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307else
12308 if test -n "$MANIFEST_TOOL"; then
12309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12310else
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012318 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12321 fi
12322done
12323 done
12324IFS=$as_save_IFS
12325
12326fi
12327fi
12328MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12329if test -n "$MANIFEST_TOOL"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12331$as_echo "$MANIFEST_TOOL" >&6; }
12332else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
12335fi
12336
12337
12338fi
12339if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12340 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12341 # Extract the first word of "mt", so it can be a program name with args.
12342set dummy mt; ac_word=$2
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347else
12348 if test -n "$ac_ct_MANIFEST_TOOL"; then
12349 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12350else
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012358 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12361 fi
12362done
12363 done
12364IFS=$as_save_IFS
12365
12366fi
12367fi
12368ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12369if test -n "$ac_ct_MANIFEST_TOOL"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12371$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12372else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
12375fi
12376
12377 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12378 MANIFEST_TOOL=":"
12379 else
12380 case $cross_compiling:$ac_tool_warned in
12381yes:)
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12384ac_tool_warned=yes ;;
12385esac
12386 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12387 fi
12388else
12389 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12390fi
12391
12392test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12394$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12395if ${lt_cv_path_mainfest_tool+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397else
12398 lt_cv_path_mainfest_tool=no
12399 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12400 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12401 cat conftest.err >&5
12402 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12403 lt_cv_path_mainfest_tool=yes
12404 fi
12405 rm -f conftest*
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12408$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12409if test "x$lt_cv_path_mainfest_tool" != xyes; then
12410 MANIFEST_TOOL=:
12411fi
12412
12413
12414
12415
12416
cristy73bd4a52010-10-05 11:24:23 +000012417
12418 case $host_os in
12419 rhapsody* | darwin*)
12420 if test -n "$ac_tool_prefix"; then
12421 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12422set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012425if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012426 $as_echo_n "(cached) " >&6
12427else
12428 if test -n "$DSYMUTIL"; then
12429 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12430else
12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $PATH
12433do
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440 break 2
12441 fi
12442done
12443 done
12444IFS=$as_save_IFS
12445
12446fi
12447fi
12448DSYMUTIL=$ac_cv_prog_DSYMUTIL
12449if test -n "$DSYMUTIL"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12451$as_echo "$DSYMUTIL" >&6; }
12452else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454$as_echo "no" >&6; }
12455fi
12456
12457
12458fi
12459if test -z "$ac_cv_prog_DSYMUTIL"; then
12460 ac_ct_DSYMUTIL=$DSYMUTIL
12461 # Extract the first word of "dsymutil", so it can be a program name with args.
12462set dummy dsymutil; ac_word=$2
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012465if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012466 $as_echo_n "(cached) " >&6
12467else
12468 if test -n "$ac_ct_DSYMUTIL"; then
12469 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12470else
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012478 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 break 2
12481 fi
12482done
12483 done
12484IFS=$as_save_IFS
12485
12486fi
12487fi
12488ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12489if test -n "$ac_ct_DSYMUTIL"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12491$as_echo "$ac_ct_DSYMUTIL" >&6; }
12492else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495fi
12496
12497 if test "x$ac_ct_DSYMUTIL" = x; then
12498 DSYMUTIL=":"
12499 else
12500 case $cross_compiling:$ac_tool_warned in
12501yes:)
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12504ac_tool_warned=yes ;;
12505esac
12506 DSYMUTIL=$ac_ct_DSYMUTIL
12507 fi
12508else
12509 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12510fi
12511
12512 if test -n "$ac_tool_prefix"; then
12513 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12514set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012517if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012518 $as_echo_n "(cached) " >&6
12519else
12520 if test -n "$NMEDIT"; then
12521 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012530 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534done
12535 done
12536IFS=$as_save_IFS
12537
12538fi
12539fi
12540NMEDIT=$ac_cv_prog_NMEDIT
12541if test -n "$NMEDIT"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12543$as_echo "$NMEDIT" >&6; }
12544else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550fi
12551if test -z "$ac_cv_prog_NMEDIT"; then
12552 ac_ct_NMEDIT=$NMEDIT
12553 # Extract the first word of "nmedit", so it can be a program name with args.
12554set dummy nmedit; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012557if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012558 $as_echo_n "(cached) " >&6
12559else
12560 if test -n "$ac_ct_NMEDIT"; then
12561 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012570 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574done
12575 done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12581if test -n "$ac_ct_NMEDIT"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12583$as_echo "$ac_ct_NMEDIT" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589 if test "x$ac_ct_NMEDIT" = x; then
12590 NMEDIT=":"
12591 else
12592 case $cross_compiling:$ac_tool_warned in
12593yes:)
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12596ac_tool_warned=yes ;;
12597esac
12598 NMEDIT=$ac_ct_NMEDIT
12599 fi
12600else
12601 NMEDIT="$ac_cv_prog_NMEDIT"
12602fi
12603
12604 if test -n "$ac_tool_prefix"; then
12605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12606set dummy ${ac_tool_prefix}lipo; ac_word=$2
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012609if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012610 $as_echo_n "(cached) " >&6
12611else
12612 if test -n "$LIPO"; then
12613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12614else
12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616for as_dir in $PATH
12617do
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12625 fi
12626done
12627 done
12628IFS=$as_save_IFS
12629
12630fi
12631fi
12632LIPO=$ac_cv_prog_LIPO
12633if test -n "$LIPO"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12635$as_echo "$LIPO" >&6; }
12636else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639fi
12640
12641
12642fi
12643if test -z "$ac_cv_prog_LIPO"; then
12644 ac_ct_LIPO=$LIPO
12645 # Extract the first word of "lipo", so it can be a program name with args.
12646set dummy lipo; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012649if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$ac_ct_LIPO"; then
12653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012662 ac_cv_prog_ac_ct_LIPO="lipo"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12673if test -n "$ac_ct_LIPO"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12675$as_echo "$ac_ct_LIPO" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681 if test "x$ac_ct_LIPO" = x; then
12682 LIPO=":"
12683 else
12684 case $cross_compiling:$ac_tool_warned in
12685yes:)
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12688ac_tool_warned=yes ;;
12689esac
12690 LIPO=$ac_ct_LIPO
12691 fi
12692else
12693 LIPO="$ac_cv_prog_LIPO"
12694fi
12695
12696 if test -n "$ac_tool_prefix"; then
12697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12698set dummy ${ac_tool_prefix}otool; ac_word=$2
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012701if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012702 $as_echo_n "(cached) " >&6
12703else
12704 if test -n "$OTOOL"; then
12705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12706else
12707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12717 fi
12718done
12719 done
12720IFS=$as_save_IFS
12721
12722fi
12723fi
12724OTOOL=$ac_cv_prog_OTOOL
12725if test -n "$OTOOL"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12727$as_echo "$OTOOL" >&6; }
12728else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733
12734fi
12735if test -z "$ac_cv_prog_OTOOL"; then
12736 ac_ct_OTOOL=$OTOOL
12737 # Extract the first word of "otool", so it can be a program name with args.
12738set dummy otool; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012741if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012742 $as_echo_n "(cached) " >&6
12743else
12744 if test -n "$ac_ct_OTOOL"; then
12745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012754 ac_cv_prog_ac_ct_OTOOL="otool"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758done
12759 done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12765if test -n "$ac_ct_OTOOL"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12767$as_echo "$ac_ct_OTOOL" >&6; }
12768else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773 if test "x$ac_ct_OTOOL" = x; then
12774 OTOOL=":"
12775 else
12776 case $cross_compiling:$ac_tool_warned in
12777yes:)
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12780ac_tool_warned=yes ;;
12781esac
12782 OTOOL=$ac_ct_OTOOL
12783 fi
12784else
12785 OTOOL="$ac_cv_prog_OTOOL"
12786fi
12787
12788 if test -n "$ac_tool_prefix"; then
12789 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12790set dummy ${ac_tool_prefix}otool64; ac_word=$2
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012793if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012794 $as_echo_n "(cached) " >&6
12795else
12796 if test -n "$OTOOL64"; then
12797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012806 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12809 fi
12810done
12811 done
12812IFS=$as_save_IFS
12813
12814fi
12815fi
12816OTOOL64=$ac_cv_prog_OTOOL64
12817if test -n "$OTOOL64"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12819$as_echo "$OTOOL64" >&6; }
12820else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
12823fi
12824
12825
12826fi
12827if test -z "$ac_cv_prog_OTOOL64"; then
12828 ac_ct_OTOOL64=$OTOOL64
12829 # Extract the first word of "otool64", so it can be a program name with args.
12830set dummy otool64; ac_word=$2
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012833if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012834 $as_echo_n "(cached) " >&6
12835else
12836 if test -n "$ac_ct_OTOOL64"; then
12837 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12838else
12839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840for as_dir in $PATH
12841do
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012846 ac_cv_prog_ac_ct_OTOOL64="otool64"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12849 fi
12850done
12851 done
12852IFS=$as_save_IFS
12853
12854fi
12855fi
12856ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12857if test -n "$ac_ct_OTOOL64"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12859$as_echo "$ac_ct_OTOOL64" >&6; }
12860else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863fi
12864
12865 if test "x$ac_ct_OTOOL64" = x; then
12866 OTOOL64=":"
12867 else
12868 case $cross_compiling:$ac_tool_warned in
12869yes:)
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12872ac_tool_warned=yes ;;
12873esac
12874 OTOOL64=$ac_ct_OTOOL64
12875 fi
12876else
12877 OTOOL64="$ac_cv_prog_OTOOL64"
12878fi
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12907$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012908if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012909 $as_echo_n "(cached) " >&6
12910else
12911 lt_cv_apple_cc_single_mod=no
12912 if test -z "${LT_MULTI_MODULE}"; then
12913 # By default we will add the -single_module flag. You can override
12914 # by either setting the environment variable LT_MULTI_MODULE
12915 # non-empty at configure time, or by adding -multi_module to the
12916 # link flags.
12917 rm -rf libconftest.dylib*
12918 echo "int foo(void){return 1;}" > conftest.c
12919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12920-dynamiclib -Wl,-single_module conftest.c" >&5
12921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12923 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012924 # If there is a non-empty error log, and "single_module"
12925 # appears in it, assume the flag caused a linker warning
12926 if test -s conftest.err && $GREP single_module conftest.err; then
12927 cat conftest.err >&5
12928 # Otherwise, if the output was created with a 0 exit code from
12929 # the compiler, it worked.
12930 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012931 lt_cv_apple_cc_single_mod=yes
12932 else
12933 cat conftest.err >&5
12934 fi
12935 rm -rf libconftest.dylib*
12936 rm -f conftest.*
12937 fi
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12940$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012941
cristy73bd4a52010-10-05 11:24:23 +000012942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12943$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012944if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012945 $as_echo_n "(cached) " >&6
12946else
12947 lt_cv_ld_exported_symbols_list=no
12948 save_LDFLAGS=$LDFLAGS
12949 echo "_main" > conftest.sym
12950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h. */
12953
12954int
12955main ()
12956{
12957
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962if ac_fn_c_try_link "$LINENO"; then :
12963 lt_cv_ld_exported_symbols_list=yes
12964else
12965 lt_cv_ld_exported_symbols_list=no
12966fi
12967rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LDFLAGS="$save_LDFLAGS"
12970
12971fi
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12973$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012974
cristy0c60a692010-11-04 01:09:47 +000012975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12976$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012977if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012978 $as_echo_n "(cached) " >&6
12979else
12980 lt_cv_ld_force_load=no
12981 cat > conftest.c << _LT_EOF
12982int forced_loaded() { return 2;}
12983_LT_EOF
12984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12986 echo "$AR cru libconftest.a conftest.o" >&5
12987 $AR cru libconftest.a conftest.o 2>&5
12988 echo "$RANLIB libconftest.a" >&5
12989 $RANLIB libconftest.a 2>&5
12990 cat > conftest.c << _LT_EOF
12991int main() { return 0;}
12992_LT_EOF
12993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12995 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012996 if test -s conftest.err && $GREP force_load conftest.err; then
12997 cat conftest.err >&5
12998 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012999 lt_cv_ld_force_load=yes
13000 else
13001 cat conftest.err >&5
13002 fi
13003 rm -f conftest.err libconftest.a conftest conftest.c
13004 rm -rf conftest.dSYM
13005
13006fi
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13008$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013009 case $host_os in
13010 rhapsody* | darwin1.[012])
13011 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13012 darwin1.*)
13013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13014 darwin*) # darwin 5.x on
13015 # if running on 10.5 or later, the deployment target defaults
13016 # to the OS version, if on x86, and 10.4, the deployment
13017 # target defaults to 10.4. Don't you love it?
13018 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13019 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13021 10.[012]*)
13022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13023 10.*)
13024 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13025 esac
13026 ;;
13027 esac
13028 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13029 _lt_dar_single_mod='$single_module'
13030 fi
13031 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13032 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13033 else
13034 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13035 fi
cristy0c60a692010-11-04 01:09:47 +000013036 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013037 _lt_dsymutil='~$DSYMUTIL $lib || :'
13038 else
13039 _lt_dsymutil=
13040 fi
13041 ;;
13042 esac
13043
13044for ac_header in dlfcn.h
13045do :
13046 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13047"
cristyda16f162011-02-19 23:52:17 +000013048if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013049 cat >>confdefs.h <<_ACEOF
13050#define HAVE_DLFCN_H 1
13051_ACEOF
13052
13053fi
13054
13055done
13056
13057
13058
cristy73bd4a52010-10-05 11:24:23 +000013059
cristyda16f162011-02-19 23:52:17 +000013060func_stripname_cnf ()
13061{
13062 case ${2} in
13063 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13064 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13065 esac
13066} # func_stripname_cnf
13067
13068
13069
cristy73bd4a52010-10-05 11:24:23 +000013070
13071
13072# Set options
13073enable_win32_dll=yes
13074
13075case $host in
cristy0c60a692010-11-04 01:09:47 +000013076*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013077 if test -n "$ac_tool_prefix"; then
13078 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13079set dummy ${ac_tool_prefix}as; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013082if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013083 $as_echo_n "(cached) " >&6
13084else
13085 if test -n "$AS"; then
13086 ac_cv_prog_AS="$AS" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013095 ac_cv_prog_AS="${ac_tool_prefix}as"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099done
13100 done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105AS=$ac_cv_prog_AS
13106if test -n "$AS"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13108$as_echo "$AS" >&6; }
13109else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114
13115fi
13116if test -z "$ac_cv_prog_AS"; then
13117 ac_ct_AS=$AS
13118 # Extract the first word of "as", so it can be a program name with args.
13119set dummy as; ac_word=$2
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013122if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013123 $as_echo_n "(cached) " >&6
13124else
13125 if test -n "$ac_ct_AS"; then
13126 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13127else
13128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129for as_dir in $PATH
13130do
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013135 ac_cv_prog_ac_ct_AS="as"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13138 fi
13139done
13140 done
13141IFS=$as_save_IFS
13142
13143fi
13144fi
13145ac_ct_AS=$ac_cv_prog_ac_ct_AS
13146if test -n "$ac_ct_AS"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13148$as_echo "$ac_ct_AS" >&6; }
13149else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152fi
13153
13154 if test "x$ac_ct_AS" = x; then
13155 AS="false"
13156 else
13157 case $cross_compiling:$ac_tool_warned in
13158yes:)
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13161ac_tool_warned=yes ;;
13162esac
13163 AS=$ac_ct_AS
13164 fi
13165else
13166 AS="$ac_cv_prog_AS"
13167fi
13168
13169 if test -n "$ac_tool_prefix"; then
13170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013174if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013175 $as_echo_n "(cached) " >&6
13176else
13177 if test -n "$DLLTOOL"; then
13178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13179else
13180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191done
13192 done
13193IFS=$as_save_IFS
13194
13195fi
13196fi
13197DLLTOOL=$ac_cv_prog_DLLTOOL
13198if test -n "$DLLTOOL"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13200$as_echo "$DLLTOOL" >&6; }
13201else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203$as_echo "no" >&6; }
13204fi
13205
13206
13207fi
13208if test -z "$ac_cv_prog_DLLTOOL"; then
13209 ac_ct_DLLTOOL=$DLLTOOL
13210 # Extract the first word of "dlltool", so it can be a program name with args.
13211set dummy dlltool; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013215 $as_echo_n "(cached) " >&6
13216else
13217 if test -n "$ac_ct_DLLTOOL"; then
13218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13219else
13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $PATH
13222do
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13230 fi
13231done
13232 done
13233IFS=$as_save_IFS
13234
13235fi
13236fi
13237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13238if test -n "$ac_ct_DLLTOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13240$as_echo "$ac_ct_DLLTOOL" >&6; }
13241else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246 if test "x$ac_ct_DLLTOOL" = x; then
13247 DLLTOOL="false"
13248 else
13249 case $cross_compiling:$ac_tool_warned in
13250yes:)
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13253ac_tool_warned=yes ;;
13254esac
13255 DLLTOOL=$ac_ct_DLLTOOL
13256 fi
13257else
13258 DLLTOOL="$ac_cv_prog_DLLTOOL"
13259fi
13260
13261 if test -n "$ac_tool_prefix"; then
13262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13263set dummy ${ac_tool_prefix}objdump; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013266if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013267 $as_echo_n "(cached) " >&6
13268else
13269 if test -n "$OBJDUMP"; then
13270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283done
13284 done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289OBJDUMP=$ac_cv_prog_OBJDUMP
13290if test -n "$OBJDUMP"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13292$as_echo "$OBJDUMP" >&6; }
13293else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298
13299fi
13300if test -z "$ac_cv_prog_OBJDUMP"; then
13301 ac_ct_OBJDUMP=$OBJDUMP
13302 # Extract the first word of "objdump", so it can be a program name with args.
13303set dummy objdump; ac_word=$2
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013306if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013307 $as_echo_n "(cached) " >&6
13308else
13309 if test -n "$ac_ct_OBJDUMP"; then
13310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13311else
13312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323done
13324 done
13325IFS=$as_save_IFS
13326
13327fi
13328fi
13329ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13330if test -n "$ac_ct_OBJDUMP"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13332$as_echo "$ac_ct_OBJDUMP" >&6; }
13333else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337
13338 if test "x$ac_ct_OBJDUMP" = x; then
13339 OBJDUMP="false"
13340 else
13341 case $cross_compiling:$ac_tool_warned in
13342yes:)
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345ac_tool_warned=yes ;;
13346esac
13347 OBJDUMP=$ac_ct_OBJDUMP
13348 fi
13349else
13350 OBJDUMP="$ac_cv_prog_OBJDUMP"
13351fi
13352
13353 ;;
13354esac
13355
13356test -z "$AS" && AS=as
13357
13358
13359
13360
13361
13362test -z "$DLLTOOL" && DLLTOOL=dlltool
13363
13364
13365
13366
13367
13368test -z "$OBJDUMP" && OBJDUMP=objdump
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378 # Check whether --enable-shared was given.
13379if test "${enable_shared+set}" = set; then :
13380 enableval=$enable_shared; p=${PACKAGE-default}
13381 case $enableval in
13382 yes) enable_shared=yes ;;
13383 no) enable_shared=no ;;
13384 *)
13385 enable_shared=no
13386 # Look at the argument we got. We use all the common list separators.
13387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13388 for pkg in $enableval; do
13389 IFS="$lt_save_ifs"
13390 if test "X$pkg" = "X$p"; then
13391 enable_shared=yes
13392 fi
13393 done
13394 IFS="$lt_save_ifs"
13395 ;;
13396 esac
13397else
13398 enable_shared=yes
13399fi
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409 # Check whether --enable-static was given.
13410if test "${enable_static+set}" = set; then :
13411 enableval=$enable_static; p=${PACKAGE-default}
13412 case $enableval in
13413 yes) enable_static=yes ;;
13414 no) enable_static=no ;;
13415 *)
13416 enable_static=no
13417 # Look at the argument we got. We use all the common list separators.
13418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13419 for pkg in $enableval; do
13420 IFS="$lt_save_ifs"
13421 if test "X$pkg" = "X$p"; then
13422 enable_static=yes
13423 fi
13424 done
13425 IFS="$lt_save_ifs"
13426 ;;
13427 esac
13428else
13429 enable_static=yes
13430fi
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441# Check whether --with-pic was given.
13442if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013443 withval=$with_pic; lt_p=${PACKAGE-default}
13444 case $withval in
13445 yes|no) pic_mode=$withval ;;
13446 *)
13447 pic_mode=default
13448 # Look at the argument we got. We use all the common list separators.
13449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13450 for lt_pkg in $withval; do
13451 IFS="$lt_save_ifs"
13452 if test "X$lt_pkg" = "X$lt_p"; then
13453 pic_mode=yes
13454 fi
13455 done
13456 IFS="$lt_save_ifs"
13457 ;;
13458 esac
cristy73bd4a52010-10-05 11:24:23 +000013459else
13460 pic_mode=default
13461fi
13462
13463
13464test -z "$pic_mode" && pic_mode=default
13465
13466
13467
13468
13469
13470
13471
13472 # Check whether --enable-fast-install was given.
13473if test "${enable_fast_install+set}" = set; then :
13474 enableval=$enable_fast_install; p=${PACKAGE-default}
13475 case $enableval in
13476 yes) enable_fast_install=yes ;;
13477 no) enable_fast_install=no ;;
13478 *)
13479 enable_fast_install=no
13480 # Look at the argument we got. We use all the common list separators.
13481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13482 for pkg in $enableval; do
13483 IFS="$lt_save_ifs"
13484 if test "X$pkg" = "X$p"; then
13485 enable_fast_install=yes
13486 fi
13487 done
13488 IFS="$lt_save_ifs"
13489 ;;
13490 esac
13491else
13492 enable_fast_install=yes
13493fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505# This can be used to rebuild libtool when needed
13506LIBTOOL_DEPS="$ltmain"
13507
13508# Always use our own libtool.
13509LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
cristy0c60a692010-11-04 01:09:47 +000013535
cristy99bd5232011-12-07 14:38:20 +000013536
13537
13538
13539
cristy73bd4a52010-10-05 11:24:23 +000013540test -z "$LN_S" && LN_S="ln -s"
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555if test -n "${ZSH_VERSION+set}" ; then
13556 setopt NO_GLOB_SUBST
13557fi
13558
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13560$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013561if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013562 $as_echo_n "(cached) " >&6
13563else
13564 rm -f .libs 2>/dev/null
13565mkdir .libs 2>/dev/null
13566if test -d .libs; then
13567 lt_cv_objdir=.libs
13568else
13569 # MS-DOS does not allow filenames that begin with a dot.
13570 lt_cv_objdir=_libs
13571fi
13572rmdir .libs 2>/dev/null
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13575$as_echo "$lt_cv_objdir" >&6; }
13576objdir=$lt_cv_objdir
13577
13578
13579
13580
13581
13582cat >>confdefs.h <<_ACEOF
13583#define LT_OBJDIR "$lt_cv_objdir/"
13584_ACEOF
13585
13586
13587
13588
cristy73bd4a52010-10-05 11:24:23 +000013589case $host_os in
13590aix3*)
13591 # AIX sometimes has problems with the GCC collect2 program. For some
13592 # reason, if we set the COLLECT_NAMES environment variable, the problems
13593 # vanish in a puff of smoke.
13594 if test "X${COLLECT_NAMES+set}" != Xset; then
13595 COLLECT_NAMES=
13596 export COLLECT_NAMES
13597 fi
13598 ;;
13599esac
13600
cristy73bd4a52010-10-05 11:24:23 +000013601# Global variables:
13602ofile=libtool
13603can_build_shared=yes
13604
13605# All known linkers require a `.a' archive for static linking (except MSVC,
13606# which needs '.lib').
13607libext=a
13608
13609with_gnu_ld="$lt_cv_prog_gnu_ld"
13610
13611old_CC="$CC"
13612old_CFLAGS="$CFLAGS"
13613
13614# Set sane defaults for various variables
13615test -z "$CC" && CC=cc
13616test -z "$LTCC" && LTCC=$CC
13617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13618test -z "$LD" && LD=ld
13619test -z "$ac_objext" && ac_objext=o
13620
13621for cc_temp in $compiler""; do
13622 case $cc_temp in
13623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13625 \-*) ;;
13626 *) break;;
13627 esac
13628done
cristy0c60a692010-11-04 01:09:47 +000013629cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013630
13631
13632# Only perform the check for file, if the check method requires it
13633test -z "$MAGIC_CMD" && MAGIC_CMD=file
13634case $deplibs_check_method in
13635file_magic*)
13636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13638$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013639if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013640 $as_echo_n "(cached) " >&6
13641else
13642 case $MAGIC_CMD in
13643[\\/*] | ?:[\\/]*)
13644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13645 ;;
13646*)
13647 lt_save_MAGIC_CMD="$MAGIC_CMD"
13648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13650 for ac_dir in $ac_dummy; do
13651 IFS="$lt_save_ifs"
13652 test -z "$ac_dir" && ac_dir=.
13653 if test -f $ac_dir/${ac_tool_prefix}file; then
13654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13655 if test -n "$file_magic_test_file"; then
13656 case $deplibs_check_method in
13657 "file_magic "*)
13658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13661 $EGREP "$file_magic_regex" > /dev/null; then
13662 :
13663 else
13664 cat <<_LT_EOF 1>&2
13665
13666*** Warning: the command libtool uses to detect shared libraries,
13667*** $file_magic_cmd, produces output that libtool cannot recognize.
13668*** The result is that libtool may fail to recognize shared libraries
13669*** as such. This will affect the creation of libtool libraries that
13670*** depend on shared libraries, but programs linked with such libtool
13671*** libraries will work regardless of this problem. Nevertheless, you
13672*** may want to report the problem to your system manager and/or to
13673*** bug-libtool@gnu.org
13674
13675_LT_EOF
13676 fi ;;
13677 esac
13678 fi
13679 break
13680 fi
13681 done
13682 IFS="$lt_save_ifs"
13683 MAGIC_CMD="$lt_save_MAGIC_CMD"
13684 ;;
13685esac
13686fi
13687
13688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13689if test -n "$MAGIC_CMD"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13691$as_echo "$MAGIC_CMD" >&6; }
13692else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
13695fi
13696
13697
13698
13699
13700
13701if test -z "$lt_cv_path_MAGIC_CMD"; then
13702 if test -n "$ac_tool_prefix"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13704$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013705if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013706 $as_echo_n "(cached) " >&6
13707else
13708 case $MAGIC_CMD in
13709[\\/*] | ?:[\\/]*)
13710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13711 ;;
13712*)
13713 lt_save_MAGIC_CMD="$MAGIC_CMD"
13714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13716 for ac_dir in $ac_dummy; do
13717 IFS="$lt_save_ifs"
13718 test -z "$ac_dir" && ac_dir=.
13719 if test -f $ac_dir/file; then
13720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13721 if test -n "$file_magic_test_file"; then
13722 case $deplibs_check_method in
13723 "file_magic "*)
13724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13727 $EGREP "$file_magic_regex" > /dev/null; then
13728 :
13729 else
13730 cat <<_LT_EOF 1>&2
13731
13732*** Warning: the command libtool uses to detect shared libraries,
13733*** $file_magic_cmd, produces output that libtool cannot recognize.
13734*** The result is that libtool may fail to recognize shared libraries
13735*** as such. This will affect the creation of libtool libraries that
13736*** depend on shared libraries, but programs linked with such libtool
13737*** libraries will work regardless of this problem. Nevertheless, you
13738*** may want to report the problem to your system manager and/or to
13739*** bug-libtool@gnu.org
13740
13741_LT_EOF
13742 fi ;;
13743 esac
13744 fi
13745 break
13746 fi
13747 done
13748 IFS="$lt_save_ifs"
13749 MAGIC_CMD="$lt_save_MAGIC_CMD"
13750 ;;
13751esac
13752fi
13753
13754MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13755if test -n "$MAGIC_CMD"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13757$as_echo "$MAGIC_CMD" >&6; }
13758else
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
13761fi
13762
13763
13764 else
13765 MAGIC_CMD=:
13766 fi
13767fi
13768
13769 fi
13770 ;;
13771esac
13772
13773# Use C for the default configuration in the libtool script
13774
13775lt_save_CC="$CC"
13776ac_ext=c
13777ac_cpp='$CPP $CPPFLAGS'
13778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781
13782
13783# Source file extension for C test sources.
13784ac_ext=c
13785
13786# Object file extension for compiled C test sources.
13787objext=o
13788objext=$objext
13789
13790# Code to be used in simple compile tests
13791lt_simple_compile_test_code="int some_variable = 0;"
13792
13793# Code to be used in simple link tests
13794lt_simple_link_test_code='int main(){return(0);}'
13795
13796
13797
13798
13799
13800
13801
13802# If no C compiler was specified, use CC.
13803LTCC=${LTCC-"$CC"}
13804
13805# If no C compiler flags were specified, use CFLAGS.
13806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13807
13808# Allow CC to be a program name with arguments.
13809compiler=$CC
13810
13811# Save the default compiler, since it gets overwritten when the other
13812# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13813compiler_DEFAULT=$CC
13814
13815# save warnings/boilerplate of simple test code
13816ac_outfile=conftest.$ac_objext
13817echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13819_lt_compiler_boilerplate=`cat conftest.err`
13820$RM conftest*
13821
13822ac_outfile=conftest.$ac_objext
13823echo "$lt_simple_link_test_code" >conftest.$ac_ext
13824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13825_lt_linker_boilerplate=`cat conftest.err`
13826$RM -r conftest*
13827
13828
13829## CAVEAT EMPTOR:
13830## There is no encapsulation within the following macros, do not change
13831## the running order or otherwise move them around unless you know exactly
13832## what you are doing...
13833if test -n "$compiler"; then
13834
13835lt_prog_compiler_no_builtin_flag=
13836
13837if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013838 case $cc_basename in
13839 nvcc*)
13840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13841 *)
13842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13843 esac
cristy73bd4a52010-10-05 11:24:23 +000013844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13846$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013847if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013848 $as_echo_n "(cached) " >&6
13849else
13850 lt_cv_prog_compiler_rtti_exceptions=no
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13853 lt_compiler_flag="-fno-rtti -fno-exceptions"
13854 # Insert the option either (1) after the last *FLAGS variable, or
13855 # (2) before a word containing "conftest.", or (3) at the end.
13856 # Note that $ac_compile itself does not contain backslashes and begins
13857 # with a dollar sign (not a hyphen), so the echo should work correctly.
13858 # The option is referenced via a variable to avoid confusing sed.
13859 lt_compile=`echo "$ac_compile" | $SED \
13860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013864 (eval "$lt_compile" 2>conftest.err)
13865 ac_status=$?
13866 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013868 if (exit $ac_status) && test -s "$ac_outfile"; then
13869 # The compiler can only warn and ignore the option if not recognized
13870 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13874 lt_cv_prog_compiler_rtti_exceptions=yes
13875 fi
13876 fi
13877 $RM conftest*
13878
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13881$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13882
13883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13884 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13885else
13886 :
13887fi
13888
13889fi
13890
13891
13892
13893
13894
13895
13896 lt_prog_compiler_wl=
13897lt_prog_compiler_pic=
13898lt_prog_compiler_static=
13899
cristy73bd4a52010-10-05 11:24:23 +000013900
13901 if test "$GCC" = yes; then
13902 lt_prog_compiler_wl='-Wl,'
13903 lt_prog_compiler_static='-static'
13904
13905 case $host_os in
13906 aix*)
13907 # All AIX code is PIC.
13908 if test "$host_cpu" = ia64; then
13909 # AIX 5 now supports IA64 processor
13910 lt_prog_compiler_static='-Bstatic'
13911 fi
13912 ;;
13913
13914 amigaos*)
13915 case $host_cpu in
13916 powerpc)
13917 # see comment about AmigaOS4 .so support
13918 lt_prog_compiler_pic='-fPIC'
13919 ;;
13920 m68k)
13921 # FIXME: we need at least 68020 code to build shared libraries, but
13922 # adding the `-m68020' flag to GCC prevents building anything better,
13923 # like `-m68040'.
13924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13925 ;;
13926 esac
13927 ;;
13928
13929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13930 # PIC is the default for these OSes.
13931 ;;
13932
13933 mingw* | cygwin* | pw32* | os2* | cegcc*)
13934 # This hack is so that the source file can tell whether it is being
13935 # built for inclusion in a dll (and should export symbols for example).
13936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13937 # (--disable-auto-import) libraries
13938 lt_prog_compiler_pic='-DDLL_EXPORT'
13939 ;;
13940
13941 darwin* | rhapsody*)
13942 # PIC is the default on this platform
13943 # Common symbols not allowed in MH_DYLIB files
13944 lt_prog_compiler_pic='-fno-common'
13945 ;;
13946
cristy0c60a692010-11-04 01:09:47 +000013947 haiku*)
13948 # PIC is the default for Haiku.
13949 # The "-static" flag exists, but is broken.
13950 lt_prog_compiler_static=
13951 ;;
13952
cristy73bd4a52010-10-05 11:24:23 +000013953 hpux*)
13954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13956 # sets the default TLS model and affects inlining.
13957 case $host_cpu in
13958 hppa*64*)
13959 # +Z the default
13960 ;;
13961 *)
13962 lt_prog_compiler_pic='-fPIC'
13963 ;;
13964 esac
13965 ;;
13966
13967 interix[3-9]*)
13968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13969 # Instead, we relocate shared libraries at runtime.
13970 ;;
13971
13972 msdosdjgpp*)
13973 # Just because we use GCC doesn't mean we suddenly get shared libraries
13974 # on systems that don't support them.
13975 lt_prog_compiler_can_build_shared=no
13976 enable_shared=no
13977 ;;
13978
13979 *nto* | *qnx*)
13980 # QNX uses GNU C++, but need to define -shared option too, otherwise
13981 # it will coredump.
13982 lt_prog_compiler_pic='-fPIC -shared'
13983 ;;
13984
13985 sysv4*MP*)
13986 if test -d /usr/nec; then
13987 lt_prog_compiler_pic=-Kconform_pic
13988 fi
13989 ;;
13990
13991 *)
13992 lt_prog_compiler_pic='-fPIC'
13993 ;;
13994 esac
cristy0c60a692010-11-04 01:09:47 +000013995
13996 case $cc_basename in
13997 nvcc*) # Cuda Compiler Driver 2.2
13998 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013999 if test -n "$lt_prog_compiler_pic"; then
14000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14001 fi
cristy0c60a692010-11-04 01:09:47 +000014002 ;;
14003 esac
cristy73bd4a52010-10-05 11:24:23 +000014004 else
14005 # PORTME Check for flag to pass linker flags through the system compiler.
14006 case $host_os in
14007 aix*)
14008 lt_prog_compiler_wl='-Wl,'
14009 if test "$host_cpu" = ia64; then
14010 # AIX 5 now supports IA64 processor
14011 lt_prog_compiler_static='-Bstatic'
14012 else
14013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14014 fi
14015 ;;
14016
14017 mingw* | cygwin* | pw32* | os2* | cegcc*)
14018 # This hack is so that the source file can tell whether it is being
14019 # built for inclusion in a dll (and should export symbols for example).
14020 lt_prog_compiler_pic='-DDLL_EXPORT'
14021 ;;
14022
14023 hpux9* | hpux10* | hpux11*)
14024 lt_prog_compiler_wl='-Wl,'
14025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14026 # not for PA HP-UX.
14027 case $host_cpu in
14028 hppa*64*|ia64*)
14029 # +Z the default
14030 ;;
14031 *)
14032 lt_prog_compiler_pic='+Z'
14033 ;;
14034 esac
14035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14036 lt_prog_compiler_static='${wl}-a ${wl}archive'
14037 ;;
14038
14039 irix5* | irix6* | nonstopux*)
14040 lt_prog_compiler_wl='-Wl,'
14041 # PIC (with -KPIC) is the default.
14042 lt_prog_compiler_static='-non_shared'
14043 ;;
14044
cristy0c60a692010-11-04 01:09:47 +000014045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014046 case $cc_basename in
14047 # old Intel for x86_64 which still supported -KPIC.
14048 ecc*)
14049 lt_prog_compiler_wl='-Wl,'
14050 lt_prog_compiler_pic='-KPIC'
14051 lt_prog_compiler_static='-static'
14052 ;;
14053 # icc used to be incompatible with GCC.
14054 # ICC 10 doesn't accept -KPIC any more.
14055 icc* | ifort*)
14056 lt_prog_compiler_wl='-Wl,'
14057 lt_prog_compiler_pic='-fPIC'
14058 lt_prog_compiler_static='-static'
14059 ;;
14060 # Lahey Fortran 8.1.
14061 lf95*)
14062 lt_prog_compiler_wl='-Wl,'
14063 lt_prog_compiler_pic='--shared'
14064 lt_prog_compiler_static='--static'
14065 ;;
cristyda16f162011-02-19 23:52:17 +000014066 nagfor*)
14067 # NAG Fortran compiler
14068 lt_prog_compiler_wl='-Wl,-Wl,,'
14069 lt_prog_compiler_pic='-PIC'
14070 lt_prog_compiler_static='-Bstatic'
14071 ;;
cristy0c60a692010-11-04 01:09:47 +000014072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014073 # Portland Group compilers (*not* the Pentium gcc compiler,
14074 # which looks to be a dead project)
14075 lt_prog_compiler_wl='-Wl,'
14076 lt_prog_compiler_pic='-fpic'
14077 lt_prog_compiler_static='-Bstatic'
14078 ;;
14079 ccc*)
14080 lt_prog_compiler_wl='-Wl,'
14081 # All Alpha code is PIC.
14082 lt_prog_compiler_static='-non_shared'
14083 ;;
cristy0c60a692010-11-04 01:09:47 +000014084 xl* | bgxl* | bgf* | mpixl*)
14085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014086 lt_prog_compiler_wl='-Wl,'
14087 lt_prog_compiler_pic='-qpic'
14088 lt_prog_compiler_static='-qstaticlink'
14089 ;;
14090 *)
14091 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14094 lt_prog_compiler_pic='-KPIC'
14095 lt_prog_compiler_static='-Bstatic'
14096 lt_prog_compiler_wl=''
14097 ;;
cristy99bd5232011-12-07 14:38:20 +000014098 *Sun\ F* | *Sun*Fortran*)
14099 lt_prog_compiler_pic='-KPIC'
14100 lt_prog_compiler_static='-Bstatic'
14101 lt_prog_compiler_wl='-Qoption ld '
14102 ;;
cristy73bd4a52010-10-05 11:24:23 +000014103 *Sun\ C*)
14104 # Sun C 5.9
14105 lt_prog_compiler_pic='-KPIC'
14106 lt_prog_compiler_static='-Bstatic'
14107 lt_prog_compiler_wl='-Wl,'
14108 ;;
cristy99bd5232011-12-07 14:38:20 +000014109 *Intel*\ [CF]*Compiler*)
14110 lt_prog_compiler_wl='-Wl,'
14111 lt_prog_compiler_pic='-fPIC'
14112 lt_prog_compiler_static='-static'
14113 ;;
14114 *Portland\ Group*)
14115 lt_prog_compiler_wl='-Wl,'
14116 lt_prog_compiler_pic='-fpic'
14117 lt_prog_compiler_static='-Bstatic'
14118 ;;
cristy73bd4a52010-10-05 11:24:23 +000014119 esac
14120 ;;
14121 esac
14122 ;;
14123
14124 newsos6)
14125 lt_prog_compiler_pic='-KPIC'
14126 lt_prog_compiler_static='-Bstatic'
14127 ;;
14128
14129 *nto* | *qnx*)
14130 # QNX uses GNU C++, but need to define -shared option too, otherwise
14131 # it will coredump.
14132 lt_prog_compiler_pic='-fPIC -shared'
14133 ;;
14134
14135 osf3* | osf4* | osf5*)
14136 lt_prog_compiler_wl='-Wl,'
14137 # All OSF/1 code is PIC.
14138 lt_prog_compiler_static='-non_shared'
14139 ;;
14140
14141 rdos*)
14142 lt_prog_compiler_static='-non_shared'
14143 ;;
14144
14145 solaris*)
14146 lt_prog_compiler_pic='-KPIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014150 lt_prog_compiler_wl='-Qoption ld ';;
14151 *)
14152 lt_prog_compiler_wl='-Wl,';;
14153 esac
14154 ;;
14155
14156 sunos4*)
14157 lt_prog_compiler_wl='-Qoption ld '
14158 lt_prog_compiler_pic='-PIC'
14159 lt_prog_compiler_static='-Bstatic'
14160 ;;
14161
14162 sysv4 | sysv4.2uw2* | sysv4.3*)
14163 lt_prog_compiler_wl='-Wl,'
14164 lt_prog_compiler_pic='-KPIC'
14165 lt_prog_compiler_static='-Bstatic'
14166 ;;
14167
14168 sysv4*MP*)
14169 if test -d /usr/nec ;then
14170 lt_prog_compiler_pic='-Kconform_pic'
14171 lt_prog_compiler_static='-Bstatic'
14172 fi
14173 ;;
14174
14175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14176 lt_prog_compiler_wl='-Wl,'
14177 lt_prog_compiler_pic='-KPIC'
14178 lt_prog_compiler_static='-Bstatic'
14179 ;;
14180
14181 unicos*)
14182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_can_build_shared=no
14184 ;;
14185
14186 uts4*)
14187 lt_prog_compiler_pic='-pic'
14188 lt_prog_compiler_static='-Bstatic'
14189 ;;
14190
14191 *)
14192 lt_prog_compiler_can_build_shared=no
14193 ;;
14194 esac
14195 fi
14196
14197case $host_os in
14198 # For platforms which do not support PIC, -DPIC is meaningless:
14199 *djgpp*)
14200 lt_prog_compiler_pic=
14201 ;;
14202 *)
14203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14204 ;;
14205esac
cristy73bd4a52010-10-05 11:24:23 +000014206
cristyda16f162011-02-19 23:52:17 +000014207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14208$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14209if ${lt_cv_prog_compiler_pic+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211else
14212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14215$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14216lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014217
14218#
14219# Check to make sure the PIC flag actually works.
14220#
14221if test -n "$lt_prog_compiler_pic"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014224if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014225 $as_echo_n "(cached) " >&6
14226else
14227 lt_cv_prog_compiler_pic_works=no
14228 ac_outfile=conftest.$ac_objext
14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14231 # Insert the option either (1) after the last *FLAGS variable, or
14232 # (2) before a word containing "conftest.", or (3) at the end.
14233 # Note that $ac_compile itself does not contain backslashes and begins
14234 # with a dollar sign (not a hyphen), so the echo should work correctly.
14235 # The option is referenced via a variable to avoid confusing sed.
14236 lt_compile=`echo "$ac_compile" | $SED \
14237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14239 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014241 (eval "$lt_compile" 2>conftest.err)
14242 ac_status=$?
14243 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014245 if (exit $ac_status) && test -s "$ac_outfile"; then
14246 # The compiler can only warn and ignore the option if not recognized
14247 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14251 lt_cv_prog_compiler_pic_works=yes
14252 fi
14253 fi
14254 $RM conftest*
14255
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14259
14260if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14261 case $lt_prog_compiler_pic in
14262 "" | " "*) ;;
14263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14264 esac
14265else
14266 lt_prog_compiler_pic=
14267 lt_prog_compiler_can_build_shared=no
14268fi
14269
14270fi
14271
14272
14273
14274
14275
14276
cristyda16f162011-02-19 23:52:17 +000014277
14278
14279
14280
14281
cristy73bd4a52010-10-05 11:24:23 +000014282#
14283# Check to make sure the static flag actually works.
14284#
14285wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14287$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014288if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014289 $as_echo_n "(cached) " >&6
14290else
14291 lt_cv_prog_compiler_static_works=no
14292 save_LDFLAGS="$LDFLAGS"
14293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14296 # The linker can only warn and ignore the option if not recognized
14297 # So say no if there are warnings
14298 if test -s conftest.err; then
14299 # Append any errors to the config.log.
14300 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14303 if diff conftest.exp conftest.er2 >/dev/null; then
14304 lt_cv_prog_compiler_static_works=yes
14305 fi
14306 else
14307 lt_cv_prog_compiler_static_works=yes
14308 fi
14309 fi
14310 $RM -r conftest*
14311 LDFLAGS="$save_LDFLAGS"
14312
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14315$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14316
14317if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14318 :
14319else
14320 lt_prog_compiler_static=
14321fi
14322
14323
14324
14325
14326
14327
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014331if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014332 $as_echo_n "(cached) " >&6
14333else
14334 lt_cv_prog_compiler_c_o=no
14335 $RM -r conftest 2>/dev/null
14336 mkdir conftest
14337 cd conftest
14338 mkdir out
14339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341 lt_compiler_flag="-o out/conftest2.$ac_objext"
14342 # Insert the option either (1) after the last *FLAGS variable, or
14343 # (2) before a word containing "conftest.", or (3) at the end.
14344 # Note that $ac_compile itself does not contain backslashes and begins
14345 # with a dollar sign (not a hyphen), so the echo should work correctly.
14346 lt_compile=`echo "$ac_compile" | $SED \
14347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14349 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014351 (eval "$lt_compile" 2>out/conftest.err)
14352 ac_status=$?
14353 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14356 then
14357 # The compiler can only warn and ignore the option if not recognized
14358 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14362 lt_cv_prog_compiler_c_o=yes
14363 fi
14364 fi
14365 chmod u+w . 2>&5
14366 $RM conftest*
14367 # SGI C++ compiler will create directory out/ii_files/ for
14368 # template instantiation
14369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14370 $RM out/* && rmdir out
14371 cd ..
14372 $RM -r conftest
14373 $RM conftest*
14374
14375fi
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14378
14379
14380
14381
14382
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14385$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014386if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014387 $as_echo_n "(cached) " >&6
14388else
14389 lt_cv_prog_compiler_c_o=no
14390 $RM -r conftest 2>/dev/null
14391 mkdir conftest
14392 cd conftest
14393 mkdir out
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395
14396 lt_compiler_flag="-o out/conftest2.$ac_objext"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014406 (eval "$lt_compile" 2>out/conftest.err)
14407 ac_status=$?
14408 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14411 then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_c_o=yes
14418 fi
14419 fi
14420 chmod u+w . 2>&5
14421 $RM conftest*
14422 # SGI C++ compiler will create directory out/ii_files/ for
14423 # template instantiation
14424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14425 $RM out/* && rmdir out
14426 cd ..
14427 $RM -r conftest
14428 $RM conftest*
14429
14430fi
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14432$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14433
14434
14435
14436
14437hard_links="nottested"
14438if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14439 # do not overwrite the value of need_locks provided by the user
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14441$as_echo_n "checking if we can lock with hard links... " >&6; }
14442 hard_links=yes
14443 $RM conftest*
14444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14445 touch conftest.a
14446 ln conftest.a conftest.b 2>&5 || hard_links=no
14447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14449$as_echo "$hard_links" >&6; }
14450 if test "$hard_links" = no; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14452$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14453 need_locks=warn
14454 fi
14455else
14456 need_locks=no
14457fi
14458
14459
14460
14461
14462
14463
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14466
14467 runpath_var=
14468 allow_undefined_flag=
14469 always_export_symbols=no
14470 archive_cmds=
14471 archive_expsym_cmds=
14472 compiler_needs_object=no
14473 enable_shared_with_static_runtimes=no
14474 export_dynamic_flag_spec=
14475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476 hardcode_automatic=no
14477 hardcode_direct=no
14478 hardcode_direct_absolute=no
14479 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014480 hardcode_libdir_separator=
14481 hardcode_minus_L=no
14482 hardcode_shlibpath_var=unsupported
14483 inherit_rpath=no
14484 link_all_deplibs=unknown
14485 module_cmds=
14486 module_expsym_cmds=
14487 old_archive_from_new_cmds=
14488 old_archive_from_expsyms_cmds=
14489 thread_safe_flag_spec=
14490 whole_archive_flag_spec=
14491 # include_expsyms should be a list of space-separated symbols to be *always*
14492 # included in the symbol list
14493 include_expsyms=
14494 # exclude_expsyms can be an extended regexp of symbols to exclude
14495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14497 # as well as any symbol that contains `d'.
14498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14500 # platforms (ab)use it in PIC code, but their linkers get confused if
14501 # the symbol is explicitly referenced. Since portable code cannot
14502 # rely on this symbol name, it's probably fine to never include it in
14503 # preloaded symbol tables.
14504 # Exclude shared library initialization/finalization symbols.
14505 extract_expsyms_cmds=
14506
14507 case $host_os in
14508 cygwin* | mingw* | pw32* | cegcc*)
14509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14510 # When not using gcc, we currently assume that we are using
14511 # Microsoft Visual C++.
14512 if test "$GCC" != yes; then
14513 with_gnu_ld=no
14514 fi
14515 ;;
14516 interix*)
14517 # we just hope/assume this is gcc and not c89 (= MSVC++)
14518 with_gnu_ld=yes
14519 ;;
14520 openbsd*)
14521 with_gnu_ld=no
14522 ;;
14523 esac
14524
14525 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014526
14527 # On some targets, GNU ld is compatible enough with the native linker
14528 # that we're better off using the native interface for both.
14529 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014530 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014531 case $host_os in
14532 aix*)
14533 # The AIX port of GNU ld has always aspired to compatibility
14534 # with the native linker. However, as the warning in the GNU ld
14535 # block says, versions before 2.19.5* couldn't really create working
14536 # shared libraries, regardless of the interface used.
14537 case `$LD -v 2>&1` in
14538 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14539 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14540 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14541 *)
14542 lt_use_gnu_ld_interface=yes
14543 ;;
14544 esac
14545 ;;
14546 *)
14547 lt_use_gnu_ld_interface=yes
14548 ;;
14549 esac
14550 fi
14551
14552 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014553 # If archive_cmds runs LD, not CC, wlarc should be empty
14554 wlarc='${wl}'
14555
14556 # Set some defaults for GNU ld with shared library support. These
14557 # are reset later if shared libraries are not supported. Putting them
14558 # here allows them to be overridden if necessary.
14559 runpath_var=LD_RUN_PATH
14560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14561 export_dynamic_flag_spec='${wl}--export-dynamic'
14562 # ancient GNU ld didn't support --whole-archive et. al.
14563 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14564 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14565 else
14566 whole_archive_flag_spec=
14567 fi
14568 supports_anon_versioning=no
14569 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014570 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014571 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14574 *\ 2.11.*) ;; # other 2.11 versions
14575 *) supports_anon_versioning=yes ;;
14576 esac
14577
14578 # See if GNU ld supports shared libraries.
14579 case $host_os in
14580 aix[3-9]*)
14581 # On AIX/PPC, the GNU linker is very broken
14582 if test "$host_cpu" != ia64; then
14583 ld_shlibs=no
14584 cat <<_LT_EOF 1>&2
14585
cristy0c60a692010-11-04 01:09:47 +000014586*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014587*** to be unable to reliably create shared libraries on AIX.
14588*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014589*** really care for shared libraries, you may want to install binutils
14590*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14591*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014592
14593_LT_EOF
14594 fi
14595 ;;
14596
14597 amigaos*)
14598 case $host_cpu in
14599 powerpc)
14600 # see comment about AmigaOS4 .so support
14601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602 archive_expsym_cmds=''
14603 ;;
14604 m68k)
14605 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14606 hardcode_libdir_flag_spec='-L$libdir'
14607 hardcode_minus_L=yes
14608 ;;
14609 esac
14610 ;;
14611
14612 beos*)
14613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14614 allow_undefined_flag=unsupported
14615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14616 # support --undefined. This deserves some investigation. FIXME
14617 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 else
14619 ld_shlibs=no
14620 fi
14621 ;;
14622
14623 cygwin* | mingw* | pw32* | cegcc*)
14624 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14625 # as there is no search path for DLLs.
14626 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014627 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014628 allow_undefined_flag=unsupported
14629 always_export_symbols=no
14630 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014631 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14632 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000014633
14634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14636 # If the export-symbols file already is a .def file (1st line
14637 # is EXPORTS), use it as is; otherwise, prepend...
14638 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14639 cp $export_symbols $output_objdir/$soname.def;
14640 else
14641 echo EXPORTS > $output_objdir/$soname.def;
14642 cat $export_symbols >> $output_objdir/$soname.def;
14643 fi~
14644 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14645 else
14646 ld_shlibs=no
14647 fi
14648 ;;
14649
cristy0c60a692010-11-04 01:09:47 +000014650 haiku*)
14651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652 link_all_deplibs=yes
14653 ;;
14654
cristy73bd4a52010-10-05 11:24:23 +000014655 interix[3-9]*)
14656 hardcode_direct=no
14657 hardcode_shlibpath_var=no
14658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14659 export_dynamic_flag_spec='${wl}-E'
14660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14661 # Instead, shared libraries are loaded at an image base (0x10000000 by
14662 # default) and relocated if they conflict, which is a slow very memory
14663 # consuming and fragmenting process. To avoid this, we pick a random,
14664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14667 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14668 ;;
14669
cristy0c60a692010-11-04 01:09:47 +000014670 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014671 tmp_diet=no
14672 if test "$host_os" = linux-dietlibc; then
14673 case $cc_basename in
14674 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14675 esac
14676 fi
14677 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14678 && test "$tmp_diet" = no
14679 then
cristyda16f162011-02-19 23:52:17 +000014680 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014681 tmp_sharedflag='-shared'
14682 case $cc_basename,$host_cpu in
14683 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014684 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014685 tmp_addflag=' $pic_flag'
14686 ;;
cristy0c60a692010-11-04 01:09:47 +000014687 pgf77* | pgf90* | pgf95* | pgfortran*)
14688 # Portland Group f77 and f90 compilers
14689 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014690 tmp_addflag=' $pic_flag -Mnomain' ;;
14691 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14692 tmp_addflag=' -i_dynamic' ;;
14693 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14694 tmp_addflag=' -i_dynamic -nofor_main' ;;
14695 ifc* | ifort*) # Intel Fortran compiler
14696 tmp_addflag=' -nofor_main' ;;
14697 lf95*) # Lahey Fortran 8.1
14698 whole_archive_flag_spec=
14699 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014700 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014701 tmp_sharedflag='-qmkshrobj'
14702 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014703 nvcc*) # Cuda Compiler Driver 2.2
14704 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14705 compiler_needs_object=yes
14706 ;;
cristy73bd4a52010-10-05 11:24:23 +000014707 esac
14708 case `$CC -V 2>&1 | sed 5q` in
14709 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014710 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014711 compiler_needs_object=yes
14712 tmp_sharedflag='-G' ;;
14713 *Sun\ F*) # Sun Fortran 8.3
14714 tmp_sharedflag='-G' ;;
14715 esac
14716 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14717
14718 if test "x$supports_anon_versioning" = xyes; then
14719 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14720 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14721 echo "local: *; };" >> $output_objdir/$libname.ver~
14722 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14723 fi
14724
14725 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014726 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014727 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14728 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014730 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014731 if test "x$supports_anon_versioning" = xyes; then
14732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14734 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014735 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014736 fi
14737 ;;
14738 esac
14739 else
14740 ld_shlibs=no
14741 fi
14742 ;;
14743
14744 netbsd*)
14745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14747 wlarc=
14748 else
cristyda16f162011-02-19 23:52:17 +000014749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014751 fi
14752 ;;
14753
14754 solaris*)
14755 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14756 ld_shlibs=no
14757 cat <<_LT_EOF 1>&2
14758
14759*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14760*** create shared libraries on Solaris systems. Therefore, libtool
14761*** is disabling shared libraries support. We urge you to upgrade GNU
14762*** binutils to release 2.9.1 or newer. Another option is to modify
14763*** your PATH or compiler configuration so that the native linker is
14764*** used, and then restart.
14765
14766_LT_EOF
14767 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014770 else
14771 ld_shlibs=no
14772 fi
14773 ;;
14774
14775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14776 case `$LD -v 2>&1` in
14777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14778 ld_shlibs=no
14779 cat <<_LT_EOF 1>&2
14780
14781*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14782*** reliably create shared libraries on SCO systems. Therefore, libtool
14783*** is disabling shared libraries support. We urge you to upgrade GNU
14784*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14785*** your PATH or compiler configuration so that the native linker is
14786*** used, and then restart.
14787
14788_LT_EOF
14789 ;;
14790 *)
14791 # For security reasons, it is highly recommended that you always
14792 # use absolute paths for naming shared libraries, and exclude the
14793 # DT_RUNPATH tag from executables and libraries. But doing so
14794 # requires that you compile everything twice, which is a pain.
14795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14799 else
14800 ld_shlibs=no
14801 fi
14802 ;;
14803 esac
14804 ;;
14805
14806 sunos4*)
14807 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14808 wlarc=
14809 hardcode_direct=yes
14810 hardcode_shlibpath_var=no
14811 ;;
14812
14813 *)
14814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014817 else
14818 ld_shlibs=no
14819 fi
14820 ;;
14821 esac
14822
14823 if test "$ld_shlibs" = no; then
14824 runpath_var=
14825 hardcode_libdir_flag_spec=
14826 export_dynamic_flag_spec=
14827 whole_archive_flag_spec=
14828 fi
14829 else
14830 # PORTME fill in a description of your system's linker (not GNU ld)
14831 case $host_os in
14832 aix3*)
14833 allow_undefined_flag=unsupported
14834 always_export_symbols=yes
14835 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14836 # Note: this linker hardcodes the directories in LIBPATH if there
14837 # are no directories specified by -L.
14838 hardcode_minus_L=yes
14839 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14840 # Neither direct hardcoding nor static linking is supported with a
14841 # broken collect2.
14842 hardcode_direct=unsupported
14843 fi
14844 ;;
14845
14846 aix[4-9]*)
14847 if test "$host_cpu" = ia64; then
14848 # On IA64, the linker does run time linking by default, so we don't
14849 # have to do anything special.
14850 aix_use_runtimelinking=no
14851 exp_sym_flag='-Bexport'
14852 no_entry_flag=""
14853 else
14854 # If we're using GNU nm, then we don't want the "-C" option.
14855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014856 # Also, AIX nm treats weak defined symbols like other global
14857 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014858 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014859 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000014860 else
14861 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14862 fi
14863 aix_use_runtimelinking=no
14864
14865 # Test if we are trying to use run time linking or normal
14866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14867 # need to do runtime linking.
14868 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14869 for ld_flag in $LDFLAGS; do
14870 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14871 aix_use_runtimelinking=yes
14872 break
14873 fi
14874 done
14875 ;;
14876 esac
14877
14878 exp_sym_flag='-bexport'
14879 no_entry_flag='-bnoentry'
14880 fi
14881
14882 # When large executables or shared objects are built, AIX ld can
14883 # have problems creating the table of contents. If linking a library
14884 # or program results in "error TOC overflow" add -mminimal-toc to
14885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14887
14888 archive_cmds=''
14889 hardcode_direct=yes
14890 hardcode_direct_absolute=yes
14891 hardcode_libdir_separator=':'
14892 link_all_deplibs=yes
14893 file_list_spec='${wl}-f,'
14894
14895 if test "$GCC" = yes; then
14896 case $host_os in aix4.[012]|aix4.[012].*)
14897 # We only want to do this on AIX 4.2 and lower, the check
14898 # below for broken collect2 doesn't work under 4.3+
14899 collect2name=`${CC} -print-prog-name=collect2`
14900 if test -f "$collect2name" &&
14901 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14902 then
14903 # We have reworked collect2
14904 :
14905 else
14906 # We have old collect2
14907 hardcode_direct=unsupported
14908 # It fails to find uninstalled libraries when the uninstalled
14909 # path is not listed in the libpath. Setting hardcode_minus_L
14910 # to unsupported forces relinking
14911 hardcode_minus_L=yes
14912 hardcode_libdir_flag_spec='-L$libdir'
14913 hardcode_libdir_separator=
14914 fi
14915 ;;
14916 esac
14917 shared_flag='-shared'
14918 if test "$aix_use_runtimelinking" = yes; then
14919 shared_flag="$shared_flag "'${wl}-G'
14920 fi
14921 else
14922 # not using gcc
14923 if test "$host_cpu" = ia64; then
14924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14925 # chokes on -Wl,-G. The following line is correct:
14926 shared_flag='-G'
14927 else
14928 if test "$aix_use_runtimelinking" = yes; then
14929 shared_flag='${wl}-G'
14930 else
14931 shared_flag='${wl}-bM:SRE'
14932 fi
14933 fi
14934 fi
14935
14936 export_dynamic_flag_spec='${wl}-bexpall'
14937 # It seems that -bexpall does not export symbols beginning with
14938 # underscore (_), so it is better to generate a list of symbols to export.
14939 always_export_symbols=yes
14940 if test "$aix_use_runtimelinking" = yes; then
14941 # Warning - without using the other runtime loading flags (-brtl),
14942 # -berok will link without error, but may produce a broken library.
14943 allow_undefined_flag='-berok'
14944 # Determine the default libpath from the value encoded in an
14945 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014946 if test "${lt_cv_aix_libpath+set}" = set; then
14947 aix_libpath=$lt_cv_aix_libpath
14948else
14949 if ${lt_cv_aix_libpath_+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014953/* end confdefs.h. */
14954
14955int
14956main ()
14957{
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963if ac_fn_c_try_link "$LINENO"; then :
14964
cristyda16f162011-02-19 23:52:17 +000014965 lt_aix_libpath_sed='
14966 /Import File Strings/,/^$/ {
14967 /^0/ {
14968 s/^0 *\([^ ]*\) *$/\1/
14969 p
14970 }
14971 }'
14972 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14973 # Check for a 64-bit object if we didn't find anything.
14974 if test -z "$lt_cv_aix_libpath_"; then
14975 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14976 fi
cristy73bd4a52010-10-05 11:24:23 +000014977fi
14978rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014980 if test -z "$lt_cv_aix_libpath_"; then
14981 lt_cv_aix_libpath_="/usr/lib:/lib"
14982 fi
14983
14984fi
14985
14986 aix_libpath=$lt_cv_aix_libpath_
14987fi
cristy73bd4a52010-10-05 11:24:23 +000014988
14989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014990 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000014991 else
14992 if test "$host_cpu" = ia64; then
14993 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14994 allow_undefined_flag="-z nodefs"
14995 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14996 else
14997 # Determine the default libpath from the value encoded in an
14998 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014999 if test "${lt_cv_aix_libpath+set}" = set; then
15000 aix_libpath=$lt_cv_aix_libpath
15001else
15002 if ${lt_cv_aix_libpath_+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015006/* end confdefs.h. */
15007
15008int
15009main ()
15010{
15011
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016if ac_fn_c_try_link "$LINENO"; then :
15017
cristyda16f162011-02-19 23:52:17 +000015018 lt_aix_libpath_sed='
15019 /Import File Strings/,/^$/ {
15020 /^0/ {
15021 s/^0 *\([^ ]*\) *$/\1/
15022 p
15023 }
15024 }'
15025 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15026 # Check for a 64-bit object if we didn't find anything.
15027 if test -z "$lt_cv_aix_libpath_"; then
15028 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15029 fi
cristy73bd4a52010-10-05 11:24:23 +000015030fi
15031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015033 if test -z "$lt_cv_aix_libpath_"; then
15034 lt_cv_aix_libpath_="/usr/lib:/lib"
15035 fi
15036
15037fi
15038
15039 aix_libpath=$lt_cv_aix_libpath_
15040fi
cristy73bd4a52010-10-05 11:24:23 +000015041
15042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15043 # Warning - without using the other run time loading flags,
15044 # -berok will link without error, but may produce a broken library.
15045 no_undefined_flag=' ${wl}-bernotok'
15046 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015047 if test "$with_gnu_ld" = yes; then
15048 # We only use this code for GNU lds that support --whole-archive.
15049 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15050 else
15051 # Exported symbols can be pulled into shared objects from archives
15052 whole_archive_flag_spec='$convenience'
15053 fi
cristy73bd4a52010-10-05 11:24:23 +000015054 archive_cmds_need_lc=yes
15055 # This is similar to how AIX traditionally builds its shared libraries.
15056 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15057 fi
15058 fi
15059 ;;
15060
15061 amigaos*)
15062 case $host_cpu in
15063 powerpc)
15064 # see comment about AmigaOS4 .so support
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 archive_expsym_cmds=''
15067 ;;
15068 m68k)
15069 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 hardcode_minus_L=yes
15072 ;;
15073 esac
15074 ;;
15075
15076 bsdi[45]*)
15077 export_dynamic_flag_spec=-rdynamic
15078 ;;
15079
15080 cygwin* | mingw* | pw32* | cegcc*)
15081 # When not using gcc, we currently assume that we are using
15082 # Microsoft Visual C++.
15083 # hardcode_libdir_flag_spec is actually meaningless, as there is
15084 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015085 case $cc_basename in
15086 cl*)
15087 # Native MSVC
15088 hardcode_libdir_flag_spec=' '
15089 allow_undefined_flag=unsupported
15090 always_export_symbols=yes
15091 file_list_spec='@'
15092 # Tell ltmain to make .lib files, not .a files.
15093 libext=lib
15094 # Tell ltmain to make .dll files, not .so files.
15095 shrext_cmds=".dll"
15096 # FIXME: Setting linknames here is a bad hack.
15097 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15098 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15099 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15100 else
15101 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15102 fi~
15103 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15104 linknames='
15105 # The linker will not automatically build a static lib if we build a DLL.
15106 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15107 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015108 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15110 # Don't use ranlib
15111 old_postinstall_cmds='chmod 644 $oldlib'
15112 postlink_cmds='lt_outputfile="@OUTPUT@"~
15113 lt_tool_outputfile="@TOOL_OUTPUT@"~
15114 case $lt_outputfile in
15115 *.exe|*.EXE) ;;
15116 *)
15117 lt_outputfile="$lt_outputfile.exe"
15118 lt_tool_outputfile="$lt_tool_outputfile.exe"
15119 ;;
15120 esac~
15121 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15122 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15123 $RM "$lt_outputfile.manifest";
15124 fi'
15125 ;;
15126 *)
15127 # Assume MSVC wrapper
15128 hardcode_libdir_flag_spec=' '
15129 allow_undefined_flag=unsupported
15130 # Tell ltmain to make .lib files, not .a files.
15131 libext=lib
15132 # Tell ltmain to make .dll files, not .so files.
15133 shrext_cmds=".dll"
15134 # FIXME: Setting linknames here is a bad hack.
15135 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15136 # The linker will automatically build a .lib file if we build a DLL.
15137 old_archive_from_new_cmds='true'
15138 # FIXME: Should let the user specify the lib program.
15139 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15140 enable_shared_with_static_runtimes=yes
15141 ;;
15142 esac
cristy73bd4a52010-10-05 11:24:23 +000015143 ;;
15144
15145 darwin* | rhapsody*)
15146
15147
15148 archive_cmds_need_lc=no
15149 hardcode_direct=no
15150 hardcode_automatic=yes
15151 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015152 if test "$lt_cv_ld_force_load" = "yes"; then
15153 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015154
cristy0c60a692010-11-04 01:09:47 +000015155 else
15156 whole_archive_flag_spec=''
15157 fi
cristy73bd4a52010-10-05 11:24:23 +000015158 link_all_deplibs=yes
15159 allow_undefined_flag="$_lt_dar_allow_undefined"
15160 case $cc_basename in
15161 ifort*) _lt_dar_can_shared=yes ;;
15162 *) _lt_dar_can_shared=$GCC ;;
15163 esac
15164 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015165 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015166 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15167 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15168 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15169 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15170
15171 else
15172 ld_shlibs=no
15173 fi
15174
15175 ;;
15176
15177 dgux*)
15178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_libdir_flag_spec='-L$libdir'
15180 hardcode_shlibpath_var=no
15181 ;;
15182
cristy73bd4a52010-10-05 11:24:23 +000015183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15184 # support. Future versions do this automatically, but an explicit c++rt0.o
15185 # does not break anything, and helps significantly (at the cost of a little
15186 # extra space).
15187 freebsd2.2*)
15188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15189 hardcode_libdir_flag_spec='-R$libdir'
15190 hardcode_direct=yes
15191 hardcode_shlibpath_var=no
15192 ;;
15193
15194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015195 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15197 hardcode_direct=yes
15198 hardcode_minus_L=yes
15199 hardcode_shlibpath_var=no
15200 ;;
15201
15202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15203 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015205 hardcode_libdir_flag_spec='-R$libdir'
15206 hardcode_direct=yes
15207 hardcode_shlibpath_var=no
15208 ;;
15209
15210 hpux9*)
15211 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015212 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000015213 else
15214 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15215 fi
15216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15217 hardcode_libdir_separator=:
15218 hardcode_direct=yes
15219
15220 # hardcode_minus_L: Not really in the search PATH,
15221 # but as the default location of the library.
15222 hardcode_minus_L=yes
15223 export_dynamic_flag_spec='${wl}-E'
15224 ;;
15225
15226 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015227 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015228 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015229 else
15230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15231 fi
15232 if test "$with_gnu_ld" = no; then
15233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015234 hardcode_libdir_separator=:
15235 hardcode_direct=yes
15236 hardcode_direct_absolute=yes
15237 export_dynamic_flag_spec='${wl}-E'
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L=yes
15241 fi
15242 ;;
15243
15244 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015246 case $host_cpu in
15247 hppa*64*)
15248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 ;;
15250 ia64*)
cristyda16f162011-02-19 23:52:17 +000015251 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015252 ;;
15253 *)
cristyda16f162011-02-19 23:52:17 +000015254 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015255 ;;
15256 esac
15257 else
15258 case $host_cpu in
15259 hppa*64*)
15260 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 ;;
15262 ia64*)
15263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264 ;;
15265 *)
cristy0c60a692010-11-04 01:09:47 +000015266
15267 # Older versions of the 11.00 compiler do not understand -b yet
15268 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15270$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015271if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015272 $as_echo_n "(cached) " >&6
15273else
15274 lt_cv_prog_compiler__b=no
15275 save_LDFLAGS="$LDFLAGS"
15276 LDFLAGS="$LDFLAGS -b"
15277 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15279 # The linker can only warn and ignore the option if not recognized
15280 # So say no if there are warnings
15281 if test -s conftest.err; then
15282 # Append any errors to the config.log.
15283 cat conftest.err 1>&5
15284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15286 if diff conftest.exp conftest.er2 >/dev/null; then
15287 lt_cv_prog_compiler__b=yes
15288 fi
15289 else
15290 lt_cv_prog_compiler__b=yes
15291 fi
15292 fi
15293 $RM -r conftest*
15294 LDFLAGS="$save_LDFLAGS"
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15298$as_echo "$lt_cv_prog_compiler__b" >&6; }
15299
15300if test x"$lt_cv_prog_compiler__b" = xyes; then
15301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15302else
15303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15304fi
15305
cristy73bd4a52010-10-05 11:24:23 +000015306 ;;
15307 esac
15308 fi
15309 if test "$with_gnu_ld" = no; then
15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15311 hardcode_libdir_separator=:
15312
15313 case $host_cpu in
15314 hppa*64*|ia64*)
15315 hardcode_direct=no
15316 hardcode_shlibpath_var=no
15317 ;;
15318 *)
15319 hardcode_direct=yes
15320 hardcode_direct_absolute=yes
15321 export_dynamic_flag_spec='${wl}-E'
15322
15323 # hardcode_minus_L: Not really in the search PATH,
15324 # but as the default location of the library.
15325 hardcode_minus_L=yes
15326 ;;
15327 esac
15328 fi
15329 ;;
15330
15331 irix5* | irix6* | nonstopux*)
15332 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015334 # Try to use the -exported_symbol ld option, if it does not
15335 # work, assume that -exports_file does not work either and
15336 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015337 # This should be the same for all languages, so no per-tag cache variable.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15339$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15340if ${lt_cv_irix_exported_symbol+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342else
15343 save_LDFLAGS="$LDFLAGS"
15344 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015346/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015347int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015348_ACEOF
15349if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015350 lt_cv_irix_exported_symbol=yes
15351else
15352 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015356 LDFLAGS="$save_LDFLAGS"
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15359$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15360 if test "$lt_cv_irix_exported_symbol" = yes; then
15361 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15362 fi
cristy73bd4a52010-10-05 11:24:23 +000015363 else
cristy0c60a692010-11-04 01:09:47 +000015364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015366 fi
15367 archive_cmds_need_lc='no'
15368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator=:
15370 inherit_rpath=yes
15371 link_all_deplibs=yes
15372 ;;
15373
15374 netbsd*)
15375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15377 else
15378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15379 fi
15380 hardcode_libdir_flag_spec='-R$libdir'
15381 hardcode_direct=yes
15382 hardcode_shlibpath_var=no
15383 ;;
15384
15385 newsos6)
15386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_direct=yes
15388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15389 hardcode_libdir_separator=:
15390 hardcode_shlibpath_var=no
15391 ;;
15392
15393 *nto* | *qnx*)
15394 ;;
15395
15396 openbsd*)
15397 if test -f /usr/libexec/ld.so; then
15398 hardcode_direct=yes
15399 hardcode_shlibpath_var=no
15400 hardcode_direct_absolute=yes
15401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15405 export_dynamic_flag_spec='${wl}-E'
15406 else
15407 case $host_os in
15408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_libdir_flag_spec='-R$libdir'
15411 ;;
15412 *)
15413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15415 ;;
15416 esac
15417 fi
15418 else
15419 ld_shlibs=no
15420 fi
15421 ;;
15422
15423 os2*)
15424 hardcode_libdir_flag_spec='-L$libdir'
15425 hardcode_minus_L=yes
15426 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015427 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000015428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15429 ;;
15430
15431 osf3*)
15432 if test "$GCC" = yes; then
15433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015434 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015435 else
15436 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015437 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015438 fi
15439 archive_cmds_need_lc='no'
15440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15441 hardcode_libdir_separator=:
15442 ;;
15443
15444 osf4* | osf5*) # as osf3* with the addition of -msym flag
15445 if test "$GCC" = yes; then
15446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015447 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15449 else
15450 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015451 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015452 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000015453 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015454
15455 # Both c and cxx compiler support -rpath directly
15456 hardcode_libdir_flag_spec='-rpath $libdir'
15457 fi
15458 archive_cmds_need_lc='no'
15459 hardcode_libdir_separator=:
15460 ;;
15461
15462 solaris*)
15463 no_undefined_flag=' -z defs'
15464 if test "$GCC" = yes; then
15465 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015466 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000015468 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015469 else
15470 case `$CC -V 2>&1` in
15471 *"Compilers 5.0"*)
15472 wlarc=''
15473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15476 ;;
15477 *)
15478 wlarc='${wl}'
15479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15482 ;;
15483 esac
15484 fi
15485 hardcode_libdir_flag_spec='-R$libdir'
15486 hardcode_shlibpath_var=no
15487 case $host_os in
15488 solaris2.[0-5] | solaris2.[0-5].*) ;;
15489 *)
15490 # The compiler driver will combine and reorder linker options,
15491 # but understands `-z linker_flag'. GCC discards it without `$wl',
15492 # but is careful enough not to reorder.
15493 # Supported since Solaris 2.6 (maybe 2.5.1?)
15494 if test "$GCC" = yes; then
15495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15496 else
15497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15498 fi
15499 ;;
15500 esac
15501 link_all_deplibs=yes
15502 ;;
15503
15504 sunos4*)
15505 if test "x$host_vendor" = xsequent; then
15506 # Use $CC to link under sequent, because it throws in some extra .o
15507 # files that make .init and .fini sections work.
15508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15509 else
15510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15511 fi
15512 hardcode_libdir_flag_spec='-L$libdir'
15513 hardcode_direct=yes
15514 hardcode_minus_L=yes
15515 hardcode_shlibpath_var=no
15516 ;;
15517
15518 sysv4)
15519 case $host_vendor in
15520 sni)
15521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes # is this really true???
15523 ;;
15524 siemens)
15525 ## LD is ld it makes a PLAMLIB
15526 ## CC just makes a GrossModule.
15527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15528 reload_cmds='$CC -r -o $output$reload_objs'
15529 hardcode_direct=no
15530 ;;
15531 motorola)
15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15534 ;;
15535 esac
15536 runpath_var='LD_RUN_PATH'
15537 hardcode_shlibpath_var=no
15538 ;;
15539
15540 sysv4.3*)
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var=no
15543 export_dynamic_flag_spec='-Bexport'
15544 ;;
15545
15546 sysv4*MP*)
15547 if test -d /usr/nec; then
15548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var=no
15550 runpath_var=LD_RUN_PATH
15551 hardcode_runpath_var=yes
15552 ld_shlibs=yes
15553 fi
15554 ;;
15555
15556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15557 no_undefined_flag='${wl}-z,text'
15558 archive_cmds_need_lc=no
15559 hardcode_shlibpath_var=no
15560 runpath_var='LD_RUN_PATH'
15561
15562 if test "$GCC" = yes; then
15563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 else
15566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568 fi
15569 ;;
15570
15571 sysv5* | sco3.2v5* | sco5v6*)
15572 # Note: We can NOT use -z defs as we might desire, because we do not
15573 # link with -lc, and that would cause any symbols used from libc to
15574 # always be unresolved, which means just about no library would
15575 # ever link correctly. If we're not using GNU ld we use -z text
15576 # though, which does catch some bad symbols but isn't as heavy-handed
15577 # as -z defs.
15578 no_undefined_flag='${wl}-z,text'
15579 allow_undefined_flag='${wl}-z,nodefs'
15580 archive_cmds_need_lc=no
15581 hardcode_shlibpath_var=no
15582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15583 hardcode_libdir_separator=':'
15584 link_all_deplibs=yes
15585 export_dynamic_flag_spec='${wl}-Bexport'
15586 runpath_var='LD_RUN_PATH'
15587
15588 if test "$GCC" = yes; then
15589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 else
15592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 fi
15595 ;;
15596
15597 uts4*)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec='-L$libdir'
15600 hardcode_shlibpath_var=no
15601 ;;
15602
15603 *)
15604 ld_shlibs=no
15605 ;;
15606 esac
15607
15608 if test x$host_vendor = xsni; then
15609 case $host in
15610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15611 export_dynamic_flag_spec='${wl}-Blargedynsym'
15612 ;;
15613 esac
15614 fi
15615 fi
15616
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15618$as_echo "$ld_shlibs" >&6; }
15619test "$ld_shlibs" = no && can_build_shared=no
15620
15621with_gnu_ld=$with_gnu_ld
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637#
15638# Do we need to explicitly link libc?
15639#
15640case "x$archive_cmds_need_lc" in
15641x|xyes)
15642 # Assume -lc should be added
15643 archive_cmds_need_lc=yes
15644
15645 if test "$enable_shared" = yes && test "$GCC" = yes; then
15646 case $archive_cmds in
15647 *'~'*)
15648 # FIXME: we may have to deal with multi-command sequences.
15649 ;;
15650 '$CC '*)
15651 # Test whether the compiler implicitly links with -lc since on some
15652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15653 # to ld, don't add -lc before -lgcc.
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15655$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015656if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015657 $as_echo_n "(cached) " >&6
15658else
15659 $RM conftest*
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015661
cristy0c60a692010-11-04 01:09:47 +000015662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015663 (eval $ac_compile) 2>&5
15664 ac_status=$?
15665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15666 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015667 soname=conftest
15668 lib=conftest
15669 libobjs=conftest.$ac_objext
15670 deplibs=
15671 wl=$lt_prog_compiler_wl
15672 pic_flag=$lt_prog_compiler_pic
15673 compiler_flags=-v
15674 linker_flags=-v
15675 verstring=
15676 output_objdir=.
15677 libname=conftest
15678 lt_save_allow_undefined_flag=$allow_undefined_flag
15679 allow_undefined_flag=
15680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15682 ac_status=$?
15683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15684 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015685 then
15686 lt_cv_archive_cmds_need_lc=no
15687 else
15688 lt_cv_archive_cmds_need_lc=yes
15689 fi
15690 allow_undefined_flag=$lt_save_allow_undefined_flag
15691 else
15692 cat conftest.err 1>&5
15693 fi
15694 $RM conftest*
15695
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15698$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015700 ;;
15701 esac
15702 fi
15703 ;;
15704esac
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
cristy73bd4a52010-10-05 11:24:23 +000015857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15858$as_echo_n "checking dynamic linker characteristics... " >&6; }
15859
15860if test "$GCC" = yes; then
15861 case $host_os in
15862 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15863 *) lt_awk_arg="/^libraries:/" ;;
15864 esac
cristy0c60a692010-11-04 01:09:47 +000015865 case $host_os in
15866 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15867 *) lt_sed_strip_eq="s,=/,/,g" ;;
15868 esac
15869 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15870 case $lt_search_path_spec in
15871 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015872 # if the path contains ";" then we assume it to be the separator
15873 # otherwise default to the standard path separator (i.e. ":") - it is
15874 # assumed that no part of a normal pathname contains ";" but that should
15875 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015876 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15877 ;;
15878 *)
15879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15880 ;;
15881 esac
cristy73bd4a52010-10-05 11:24:23 +000015882 # Ok, now we have the path, separated by spaces, we can step through it
15883 # and add multilib dir if necessary.
15884 lt_tmp_lt_search_path_spec=
15885 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15886 for lt_sys_path in $lt_search_path_spec; do
15887 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15888 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15889 else
15890 test -d "$lt_sys_path" && \
15891 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15892 fi
15893 done
cristy0c60a692010-11-04 01:09:47 +000015894 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015895BEGIN {RS=" "; FS="/|\n";} {
15896 lt_foo="";
15897 lt_count=0;
15898 for (lt_i = NF; lt_i > 0; lt_i--) {
15899 if ($lt_i != "" && $lt_i != ".") {
15900 if ($lt_i == "..") {
15901 lt_count++;
15902 } else {
15903 if (lt_count == 0) {
15904 lt_foo="/" $lt_i lt_foo;
15905 } else {
15906 lt_count--;
15907 }
15908 }
15909 }
15910 }
15911 if (lt_foo != "") { lt_freq[lt_foo]++; }
15912 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15913}'`
cristy0c60a692010-11-04 01:09:47 +000015914 # AWK program above erroneously prepends '/' to C:/dos/paths
15915 # for these hosts.
15916 case $host_os in
15917 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15918 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15919 esac
15920 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015921else
15922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15923fi
15924library_names_spec=
15925libname_spec='lib$name'
15926soname_spec=
15927shrext_cmds=".so"
15928postinstall_cmds=
15929postuninstall_cmds=
15930finish_cmds=
15931finish_eval=
15932shlibpath_var=
15933shlibpath_overrides_runpath=unknown
15934version_type=none
15935dynamic_linker="$host_os ld.so"
15936sys_lib_dlsearch_path_spec="/lib /usr/lib"
15937need_lib_prefix=unknown
15938hardcode_into_libs=no
15939
15940# when you set need_version to no, make sure it does not cause -set_version
15941# flags to be left without arguments
15942need_version=unknown
15943
15944case $host_os in
15945aix3*)
cristy99bd5232011-12-07 14:38:20 +000015946 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15948 shlibpath_var=LIBPATH
15949
15950 # AIX 3 has no versioning support, so we append a major version to the name.
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 ;;
15953
15954aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015955 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015956 need_lib_prefix=no
15957 need_version=no
15958 hardcode_into_libs=yes
15959 if test "$host_cpu" = ia64; then
15960 # AIX 5 supports IA64
15961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 else
15964 # With GCC up to 2.95.x, collect2 would create an import file
15965 # for dependence libraries. The import file would start with
15966 # the line `#! .'. This would cause the generated library to
15967 # depend on `.', always an invalid library. This was fixed in
15968 # development snapshots of GCC prior to 3.0.
15969 case $host_os in
15970 aix4 | aix4.[01] | aix4.[01].*)
15971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15972 echo ' yes '
15973 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15974 :
15975 else
15976 can_build_shared=no
15977 fi
15978 ;;
15979 esac
15980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15981 # soname into executable. Probably we can add versioning support to
15982 # collect2, so additional links can be useful in future.
15983 if test "$aix_use_runtimelinking" = yes; then
15984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15985 # instead of lib<name>.a to let people know that these are not
15986 # typical AIX shared libraries.
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 else
15989 # We preserve .a as extension for shared libraries through AIX4.2
15990 # and later when we are not doing run time linking.
15991 library_names_spec='${libname}${release}.a $libname.a'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 fi
15994 shlibpath_var=LIBPATH
15995 fi
15996 ;;
15997
15998amigaos*)
15999 case $host_cpu in
16000 powerpc)
16001 # Since July 2007 AmigaOS4 officially supports .so libraries.
16002 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 ;;
16005 m68k)
16006 library_names_spec='$libname.ixlibrary $libname.a'
16007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016008 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000016009 ;;
16010 esac
16011 ;;
16012
16013beos*)
16014 library_names_spec='${libname}${shared_ext}'
16015 dynamic_linker="$host_os ld.so"
16016 shlibpath_var=LIBRARY_PATH
16017 ;;
16018
16019bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016020 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016021 need_version=no
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16028 # the default ld.so.conf also contains /usr/contrib/lib and
16029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16030 # libtool to hard-code these into programs
16031 ;;
16032
16033cygwin* | mingw* | pw32* | cegcc*)
16034 version_type=windows
16035 shrext_cmds=".dll"
16036 need_version=no
16037 need_lib_prefix=no
16038
cristyda16f162011-02-19 23:52:17 +000016039 case $GCC,$cc_basename in
16040 yes,*)
16041 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016042 library_names_spec='$libname.dll.a'
16043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16044 postinstall_cmds='base_file=`basename \${file}`~
16045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16046 dldir=$destdir/`dirname \$dlpath`~
16047 test -d \$dldir || mkdir -p \$dldir~
16048 $install_prog $dir/$dlname \$dldir/$dlname~
16049 chmod a+x \$dldir/$dlname~
16050 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16051 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16052 fi'
16053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16054 dlpath=$dir/\$dldll~
16055 $RM \$dlpath'
16056 shlibpath_overrides_runpath=yes
16057
16058 case $host_os in
16059 cygwin*)
16060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16061 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016062
16063 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016064 ;;
16065 mingw* | cegcc*)
16066 # MinGW DLLs use traditional 'lib' prefix
16067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016068 ;;
16069 pw32*)
16070 # pw32 DLLs use 'pw' prefix rather than 'lib'
16071 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 ;;
16073 esac
cristyda16f162011-02-19 23:52:17 +000016074 dynamic_linker='Win32 ld.exe'
16075 ;;
16076
16077 *,cl*)
16078 # Native MSVC
16079 libname_spec='$name'
16080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16081 library_names_spec='${libname}.dll.lib'
16082
16083 case $build_os in
16084 mingw*)
16085 sys_lib_search_path_spec=
16086 lt_save_ifs=$IFS
16087 IFS=';'
16088 for lt_path in $LIB
16089 do
16090 IFS=$lt_save_ifs
16091 # Let DOS variable expansion print the short 8.3 style file name.
16092 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16093 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16094 done
16095 IFS=$lt_save_ifs
16096 # Convert to MSYS style.
16097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16098 ;;
16099 cygwin*)
16100 # Convert to unix form, then to dos form, then back to unix form
16101 # but this time dos style (no spaces!) so that the unix form looks
16102 # like /cygdrive/c/PROGRA~1:/cygdr...
16103 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16104 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16105 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16106 ;;
16107 *)
16108 sys_lib_search_path_spec="$LIB"
16109 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16110 # It is most probably a Windows format PATH.
16111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16112 else
16113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16114 fi
16115 # FIXME: find the short name or the path components, as spaces are
16116 # common. (e.g. "Program Files" -> "PROGRA~1")
16117 ;;
16118 esac
16119
16120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16121 postinstall_cmds='base_file=`basename \${file}`~
16122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16123 dldir=$destdir/`dirname \$dlpath`~
16124 test -d \$dldir || mkdir -p \$dldir~
16125 $install_prog $dir/$dlname \$dldir/$dlname'
16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16127 dlpath=$dir/\$dldll~
16128 $RM \$dlpath'
16129 shlibpath_overrides_runpath=yes
16130 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016131 ;;
16132
16133 *)
cristyda16f162011-02-19 23:52:17 +000016134 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016135 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016136 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016137 ;;
16138 esac
cristy73bd4a52010-10-05 11:24:23 +000016139 # FIXME: first we should search . and the directory the executable is in
16140 shlibpath_var=PATH
16141 ;;
16142
16143darwin* | rhapsody*)
16144 dynamic_linker="$host_os dyld"
16145 version_type=darwin
16146 need_lib_prefix=no
16147 need_version=no
16148 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16149 soname_spec='${libname}${release}${major}$shared_ext'
16150 shlibpath_overrides_runpath=yes
16151 shlibpath_var=DYLD_LIBRARY_PATH
16152 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16153
16154 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16155 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16156 ;;
16157
16158dgux*)
cristy99bd5232011-12-07 14:38:20 +000016159 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016160 need_lib_prefix=no
16161 need_version=no
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 ;;
16166
cristy73bd4a52010-10-05 11:24:23 +000016167freebsd* | dragonfly*)
16168 # DragonFly does not have aout. When/if they implement a new
16169 # versioning mechanism, adjust this.
16170 if test -x /usr/bin/objformat; then
16171 objformat=`/usr/bin/objformat`
16172 else
16173 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016174 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016175 *) objformat=elf ;;
16176 esac
16177 fi
16178 version_type=freebsd-$objformat
16179 case $version_type in
16180 freebsd-elf*)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 need_version=no
16183 need_lib_prefix=no
16184 ;;
16185 freebsd-*)
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187 need_version=yes
16188 ;;
16189 esac
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016192 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016193 shlibpath_overrides_runpath=yes
16194 ;;
16195 freebsd3.[01]* | freebsdelf3.[01]*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16198 ;;
16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16203 ;;
16204 *) # from 4.6 on, and DragonFly
16205 shlibpath_overrides_runpath=yes
16206 hardcode_into_libs=yes
16207 ;;
16208 esac
16209 ;;
16210
16211gnu*)
cristy99bd5232011-12-07 14:38:20 +000016212 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016213 need_lib_prefix=no
16214 need_version=no
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016218 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016219 hardcode_into_libs=yes
16220 ;;
16221
cristy0c60a692010-11-04 01:09:47 +000016222haiku*)
cristy99bd5232011-12-07 14:38:20 +000016223 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016224 need_lib_prefix=no
16225 need_version=no
16226 dynamic_linker="$host_os runtime_loader"
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16232 hardcode_into_libs=yes
16233 ;;
16234
cristy73bd4a52010-10-05 11:24:23 +000016235hpux9* | hpux10* | hpux11*)
16236 # Give a soname corresponding to the major version so that dld.sl refuses to
16237 # link against other versions.
16238 version_type=sunos
16239 need_lib_prefix=no
16240 need_version=no
16241 case $host_cpu in
16242 ia64*)
16243 shrext_cmds='.so'
16244 hardcode_into_libs=yes
16245 dynamic_linker="$host_os dld.so"
16246 shlibpath_var=LD_LIBRARY_PATH
16247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 if test "X$HPUX_IA64_MODE" = X32; then
16251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16252 else
16253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16254 fi
16255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256 ;;
16257 hppa*64*)
16258 shrext_cmds='.sl'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.sl"
16261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267 ;;
16268 *)
16269 shrext_cmds='.sl'
16270 dynamic_linker="$host_os dld.sl"
16271 shlibpath_var=SHLIB_PATH
16272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 ;;
16276 esac
cristy0c60a692010-11-04 01:09:47 +000016277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016278 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016279 # or fails outright, so override atomically:
16280 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016281 ;;
16282
16283interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016284 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016285 need_lib_prefix=no
16286 need_version=no
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=no
16292 hardcode_into_libs=yes
16293 ;;
16294
16295irix5* | irix6* | nonstopux*)
16296 case $host_os in
16297 nonstopux*) version_type=nonstopux ;;
16298 *)
16299 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016300 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016301 else
16302 version_type=irix
16303 fi ;;
16304 esac
16305 need_lib_prefix=no
16306 need_version=no
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16309 case $host_os in
16310 irix5* | nonstopux*)
16311 libsuff= shlibsuff=
16312 ;;
16313 *)
16314 case $LD in # libtool.m4 will add one of these switches to LD
16315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16316 libsuff= shlibsuff= libmagic=32-bit;;
16317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16318 libsuff=32 shlibsuff=N32 libmagic=N32;;
16319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16321 *) libsuff= shlibsuff= libmagic=never-match;;
16322 esac
16323 ;;
16324 esac
16325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16326 shlibpath_overrides_runpath=no
16327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16329 hardcode_into_libs=yes
16330 ;;
16331
16332# No shared lib support for Linux oldld, aout, or coff.
16333linux*oldld* | linux*aout* | linux*coff*)
16334 dynamic_linker=no
16335 ;;
16336
cristy99bd5232011-12-07 14:38:20 +000016337# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016338linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016339 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016340 need_lib_prefix=no
16341 need_version=no
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016347
cristy73bd4a52010-10-05 11:24:23 +000016348 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016349 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016350 $as_echo_n "(cached) " >&6
16351else
16352 lt_cv_shlibpath_overrides_runpath=no
16353 save_LDFLAGS=$LDFLAGS
16354 save_libdir=$libdir
16355 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16356 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016358/* end confdefs.h. */
16359
16360int
16361main ()
16362{
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_link "$LINENO"; then :
16369 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016370 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016371fi
16372fi
16373rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016375 LDFLAGS=$save_LDFLAGS
16376 libdir=$save_libdir
16377
16378fi
16379
16380 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016381
16382 # This implies no fast_install, which is unacceptable.
16383 # Some rework will be needed to allow for fast_install
16384 # before this can be enabled.
16385 hardcode_into_libs=yes
16386
16387 # Add ABI-specific directories to the system library path.
16388 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16389
16390 # Append ld.so.conf contents to the search path
16391 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016392 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000016393 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016394
cristy73bd4a52010-10-05 11:24:23 +000016395 fi
16396
16397 # We used to test for /lib/ld.so.1 and disable shared libraries on
16398 # powerpc, because MkLinux only supported shared libraries with the
16399 # GNU dynamic linker. Since this was broken with cross compilers,
16400 # most powerpc-linux boxes support dynamic linking these days and
16401 # people can always --disable-shared, the test was removed, and we
16402 # assume the GNU/Linux dynamic linker is in use.
16403 dynamic_linker='GNU/Linux ld.so'
16404 ;;
16405
16406netbsd*)
16407 version_type=sunos
16408 need_lib_prefix=no
16409 need_version=no
16410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16413 dynamic_linker='NetBSD (a.out) ld.so'
16414 else
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 dynamic_linker='NetBSD ld.elf_so'
16418 fi
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 hardcode_into_libs=yes
16422 ;;
16423
16424newsos6)
cristy99bd5232011-12-07 14:38:20 +000016425 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 ;;
16430
16431*nto* | *qnx*)
16432 version_type=qnx
16433 need_lib_prefix=no
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 shlibpath_overrides_runpath=no
16439 hardcode_into_libs=yes
16440 dynamic_linker='ldqnx.so'
16441 ;;
16442
16443openbsd*)
16444 version_type=sunos
16445 sys_lib_dlsearch_path_spec="/usr/lib"
16446 need_lib_prefix=no
16447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16448 case $host_os in
16449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16450 *) need_version=no ;;
16451 esac
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16456 case $host_os in
16457 openbsd2.[89] | openbsd2.[89].*)
16458 shlibpath_overrides_runpath=no
16459 ;;
16460 *)
16461 shlibpath_overrides_runpath=yes
16462 ;;
16463 esac
16464 else
16465 shlibpath_overrides_runpath=yes
16466 fi
16467 ;;
16468
16469os2*)
16470 libname_spec='$name'
16471 shrext_cmds=".dll"
16472 need_lib_prefix=no
16473 library_names_spec='$libname${shared_ext} $libname.a'
16474 dynamic_linker='OS/2 ld.exe'
16475 shlibpath_var=LIBPATH
16476 ;;
16477
16478osf3* | osf4* | osf5*)
16479 version_type=osf
16480 need_lib_prefix=no
16481 need_version=no
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16487 ;;
16488
16489rdos*)
16490 dynamic_linker=no
16491 ;;
16492
16493solaris*)
cristy99bd5232011-12-07 14:38:20 +000016494 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=yes
16501 hardcode_into_libs=yes
16502 # ldd complains unless libraries are executable
16503 postinstall_cmds='chmod +x $lib'
16504 ;;
16505
16506sunos4*)
16507 version_type=sunos
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=yes
16512 if test "$with_gnu_ld" = yes; then
16513 need_lib_prefix=no
16514 fi
16515 need_version=yes
16516 ;;
16517
16518sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016519 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 case $host_vendor in
16524 sni)
16525 shlibpath_overrides_runpath=no
16526 need_lib_prefix=no
16527 runpath_var=LD_RUN_PATH
16528 ;;
16529 siemens)
16530 need_lib_prefix=no
16531 ;;
16532 motorola)
16533 need_lib_prefix=no
16534 need_version=no
16535 shlibpath_overrides_runpath=no
16536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16537 ;;
16538 esac
16539 ;;
16540
16541sysv4*MP*)
16542 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016543 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16545 soname_spec='$libname${shared_ext}.$major'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 fi
16548 ;;
16549
16550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16551 version_type=freebsd-elf
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 hardcode_into_libs=yes
16559 if test "$with_gnu_ld" = yes; then
16560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16561 else
16562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16563 case $host_os in
16564 sco3.2v5*)
16565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16566 ;;
16567 esac
16568 fi
16569 sys_lib_dlsearch_path_spec='/usr/lib'
16570 ;;
16571
16572tpf*)
16573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016574 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=no
16580 hardcode_into_libs=yes
16581 ;;
16582
16583uts4*)
cristy99bd5232011-12-07 14:38:20 +000016584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 ;;
16589
16590*)
16591 dynamic_linker=no
16592 ;;
16593esac
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16595$as_echo "$dynamic_linker" >&6; }
16596test "$dynamic_linker" = no && can_build_shared=no
16597
16598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16599if test "$GCC" = yes; then
16600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16601fi
16602
16603if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16604 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16605fi
16606if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16607 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16608fi
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
cristy0c60a692010-11-04 01:09:47 +000016696
16697
16698
16699
16700
cristy73bd4a52010-10-05 11:24:23 +000016701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16702$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16703hardcode_action=
16704if test -n "$hardcode_libdir_flag_spec" ||
16705 test -n "$runpath_var" ||
16706 test "X$hardcode_automatic" = "Xyes" ; then
16707
16708 # We can hardcode non-existent directories.
16709 if test "$hardcode_direct" != no &&
16710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16711 # have to relink, otherwise we might link with an installed library
16712 # when we should be linking with a yet-to-be-installed one
16713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16714 test "$hardcode_minus_L" != no; then
16715 # Linking always hardcodes the temporary library directory.
16716 hardcode_action=relink
16717 else
16718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16719 hardcode_action=immediate
16720 fi
16721else
16722 # We cannot hardcode anything, or else we can only hardcode existing
16723 # directories.
16724 hardcode_action=unsupported
16725fi
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16727$as_echo "$hardcode_action" >&6; }
16728
16729if test "$hardcode_action" = relink ||
16730 test "$inherit_rpath" = yes; then
16731 # Fast installation is not supported
16732 enable_fast_install=no
16733elif test "$shlibpath_overrides_runpath" = yes ||
16734 test "$enable_shared" = no; then
16735 # Fast installation is not necessary
16736 enable_fast_install=needless
16737fi
16738
16739
16740
16741
16742
16743
16744 if test "x$enable_dlopen" != xyes; then
16745 enable_dlopen=unknown
16746 enable_dlopen_self=unknown
16747 enable_dlopen_self_static=unknown
16748else
16749 lt_cv_dlopen=no
16750 lt_cv_dlopen_libs=
16751
16752 case $host_os in
16753 beos*)
16754 lt_cv_dlopen="load_add_on"
16755 lt_cv_dlopen_libs=
16756 lt_cv_dlopen_self=yes
16757 ;;
16758
16759 mingw* | pw32* | cegcc*)
16760 lt_cv_dlopen="LoadLibrary"
16761 lt_cv_dlopen_libs=
16762 ;;
16763
16764 cygwin*)
16765 lt_cv_dlopen="dlopen"
16766 lt_cv_dlopen_libs=
16767 ;;
16768
16769 darwin*)
16770 # if libdl is installed we need to link against it
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16772$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016773if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016774 $as_echo_n "(cached) " >&6
16775else
16776 ac_check_lib_save_LIBS=$LIBS
16777LIBS="-ldl $LIBS"
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h. */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char dlopen ();
16788int
16789main ()
16790{
16791return dlopen ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797 ac_cv_lib_dl_dlopen=yes
16798else
16799 ac_cv_lib_dl_dlopen=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802 conftest$ac_exeext conftest.$ac_ext
16803LIBS=$ac_check_lib_save_LIBS
16804fi
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016807if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16809else
16810
16811 lt_cv_dlopen="dyld"
16812 lt_cv_dlopen_libs=
16813 lt_cv_dlopen_self=yes
16814
16815fi
16816
16817 ;;
16818
16819 *)
16820 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016821if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016822 lt_cv_dlopen="shl_load"
16823else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16825$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016826if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016827 $as_echo_n "(cached) " >&6
16828else
16829 ac_check_lib_save_LIBS=$LIBS
16830LIBS="-ldld $LIBS"
16831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h. */
16833
16834/* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char shl_load ();
16841int
16842main ()
16843{
16844return shl_load ();
16845 ;
16846 return 0;
16847}
16848_ACEOF
16849if ac_fn_c_try_link "$LINENO"; then :
16850 ac_cv_lib_dld_shl_load=yes
16851else
16852 ac_cv_lib_dld_shl_load=no
16853fi
16854rm -f core conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856LIBS=$ac_check_lib_save_LIBS
16857fi
16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16859$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016860if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16862else
16863 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016864if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016865 lt_cv_dlopen="dlopen"
16866else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16868$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016869if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016870 $as_echo_n "(cached) " >&6
16871else
16872 ac_check_lib_save_LIBS=$LIBS
16873LIBS="-ldl $LIBS"
16874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875/* end confdefs.h. */
16876
16877/* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16880#ifdef __cplusplus
16881extern "C"
16882#endif
16883char dlopen ();
16884int
16885main ()
16886{
16887return dlopen ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892if ac_fn_c_try_link "$LINENO"; then :
16893 ac_cv_lib_dl_dlopen=yes
16894else
16895 ac_cv_lib_dl_dlopen=no
16896fi
16897rm -f core conftest.err conftest.$ac_objext \
16898 conftest$ac_exeext conftest.$ac_ext
16899LIBS=$ac_check_lib_save_LIBS
16900fi
16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016903if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16905else
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016908if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016909 $as_echo_n "(cached) " >&6
16910else
16911 ac_check_lib_save_LIBS=$LIBS
16912LIBS="-lsvld $LIBS"
16913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h. */
16915
16916/* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16919#ifdef __cplusplus
16920extern "C"
16921#endif
16922char dlopen ();
16923int
16924main ()
16925{
16926return dlopen ();
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"; then :
16932 ac_cv_lib_svld_dlopen=yes
16933else
16934 ac_cv_lib_svld_dlopen=no
16935fi
16936rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938LIBS=$ac_check_lib_save_LIBS
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16941$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016942if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16944else
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16946$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016947if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016948 $as_echo_n "(cached) " >&6
16949else
16950 ac_check_lib_save_LIBS=$LIBS
16951LIBS="-ldld $LIBS"
16952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h. */
16954
16955/* Override any GCC internal prototype to avoid an error.
16956 Use char because int might match the return type of a GCC
16957 builtin and then its argument prototype would still apply. */
16958#ifdef __cplusplus
16959extern "C"
16960#endif
16961char dld_link ();
16962int
16963main ()
16964{
16965return dld_link ();
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970if ac_fn_c_try_link "$LINENO"; then :
16971 ac_cv_lib_dld_dld_link=yes
16972else
16973 ac_cv_lib_dld_dld_link=no
16974fi
16975rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16977LIBS=$ac_check_lib_save_LIBS
16978fi
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16980$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016981if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16983fi
16984
16985
16986fi
16987
16988
16989fi
16990
16991
16992fi
16993
16994
16995fi
16996
16997
16998fi
16999
17000 ;;
17001 esac
17002
17003 if test "x$lt_cv_dlopen" != xno; then
17004 enable_dlopen=yes
17005 else
17006 enable_dlopen=no
17007 fi
17008
17009 case $lt_cv_dlopen in
17010 dlopen)
17011 save_CPPFLAGS="$CPPFLAGS"
17012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17013
17014 save_LDFLAGS="$LDFLAGS"
17015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17016
17017 save_LIBS="$LIBS"
17018 LIBS="$lt_cv_dlopen_libs $LIBS"
17019
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17021$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017022if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 $as_echo_n "(cached) " >&6
17024else
17025 if test "$cross_compiling" = yes; then :
17026 lt_cv_dlopen_self=cross
17027else
17028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17029 lt_status=$lt_dlunknown
17030 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017031#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017032#include "confdefs.h"
17033
17034#if HAVE_DLFCN_H
17035#include <dlfcn.h>
17036#endif
17037
17038#include <stdio.h>
17039
17040#ifdef RTLD_GLOBAL
17041# define LT_DLGLOBAL RTLD_GLOBAL
17042#else
17043# ifdef DL_GLOBAL
17044# define LT_DLGLOBAL DL_GLOBAL
17045# else
17046# define LT_DLGLOBAL 0
17047# endif
17048#endif
17049
17050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17051 find out it does not work in some platform. */
17052#ifndef LT_DLLAZY_OR_NOW
17053# ifdef RTLD_LAZY
17054# define LT_DLLAZY_OR_NOW RTLD_LAZY
17055# else
17056# ifdef DL_LAZY
17057# define LT_DLLAZY_OR_NOW DL_LAZY
17058# else
17059# ifdef RTLD_NOW
17060# define LT_DLLAZY_OR_NOW RTLD_NOW
17061# else
17062# ifdef DL_NOW
17063# define LT_DLLAZY_OR_NOW DL_NOW
17064# else
17065# define LT_DLLAZY_OR_NOW 0
17066# endif
17067# endif
17068# endif
17069# endif
17070#endif
17071
cristy0c60a692010-11-04 01:09:47 +000017072/* When -fvisbility=hidden is used, assume the code has been annotated
17073 correspondingly for the symbols needed. */
17074#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017075int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017076#endif
17077
cristyda16f162011-02-19 23:52:17 +000017078int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017079int main ()
17080{
17081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17082 int status = $lt_dlunknown;
17083
17084 if (self)
17085 {
17086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017087 else
17088 {
17089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17090 else puts (dlerror ());
17091 }
cristy73bd4a52010-10-05 11:24:23 +000017092 /* dlclose (self); */
17093 }
17094 else
17095 puts (dlerror ());
17096
17097 return status;
17098}
17099_LT_EOF
17100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17101 (eval $ac_link) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17105 (./conftest; exit; ) >&5 2>/dev/null
17106 lt_status=$?
17107 case x$lt_status in
17108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17110 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17111 esac
17112 else :
17113 # compilation failed
17114 lt_cv_dlopen_self=no
17115 fi
17116fi
17117rm -fr conftest*
17118
17119
17120fi
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17122$as_echo "$lt_cv_dlopen_self" >&6; }
17123
17124 if test "x$lt_cv_dlopen_self" = xyes; then
17125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17127$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017128if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017129 $as_echo_n "(cached) " >&6
17130else
17131 if test "$cross_compiling" = yes; then :
17132 lt_cv_dlopen_self_static=cross
17133else
17134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17135 lt_status=$lt_dlunknown
17136 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017137#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017138#include "confdefs.h"
17139
17140#if HAVE_DLFCN_H
17141#include <dlfcn.h>
17142#endif
17143
17144#include <stdio.h>
17145
17146#ifdef RTLD_GLOBAL
17147# define LT_DLGLOBAL RTLD_GLOBAL
17148#else
17149# ifdef DL_GLOBAL
17150# define LT_DLGLOBAL DL_GLOBAL
17151# else
17152# define LT_DLGLOBAL 0
17153# endif
17154#endif
17155
17156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17157 find out it does not work in some platform. */
17158#ifndef LT_DLLAZY_OR_NOW
17159# ifdef RTLD_LAZY
17160# define LT_DLLAZY_OR_NOW RTLD_LAZY
17161# else
17162# ifdef DL_LAZY
17163# define LT_DLLAZY_OR_NOW DL_LAZY
17164# else
17165# ifdef RTLD_NOW
17166# define LT_DLLAZY_OR_NOW RTLD_NOW
17167# else
17168# ifdef DL_NOW
17169# define LT_DLLAZY_OR_NOW DL_NOW
17170# else
17171# define LT_DLLAZY_OR_NOW 0
17172# endif
17173# endif
17174# endif
17175# endif
17176#endif
17177
cristy0c60a692010-11-04 01:09:47 +000017178/* When -fvisbility=hidden is used, assume the code has been annotated
17179 correspondingly for the symbols needed. */
17180#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017181int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017182#endif
17183
cristyda16f162011-02-19 23:52:17 +000017184int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017185int main ()
17186{
17187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17188 int status = $lt_dlunknown;
17189
17190 if (self)
17191 {
17192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017193 else
17194 {
17195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17196 else puts (dlerror ());
17197 }
cristy73bd4a52010-10-05 11:24:23 +000017198 /* dlclose (self); */
17199 }
17200 else
17201 puts (dlerror ());
17202
17203 return status;
17204}
17205_LT_EOF
17206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17207 (eval $ac_link) 2>&5
17208 ac_status=$?
17209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17211 (./conftest; exit; ) >&5 2>/dev/null
17212 lt_status=$?
17213 case x$lt_status in
17214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17217 esac
17218 else :
17219 # compilation failed
17220 lt_cv_dlopen_self_static=no
17221 fi
17222fi
17223rm -fr conftest*
17224
17225
17226fi
17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17228$as_echo "$lt_cv_dlopen_self_static" >&6; }
17229 fi
17230
17231 CPPFLAGS="$save_CPPFLAGS"
17232 LDFLAGS="$save_LDFLAGS"
17233 LIBS="$save_LIBS"
17234 ;;
17235 esac
17236
17237 case $lt_cv_dlopen_self in
17238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17239 *) enable_dlopen_self=unknown ;;
17240 esac
17241
17242 case $lt_cv_dlopen_self_static in
17243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17244 *) enable_dlopen_self_static=unknown ;;
17245 esac
17246fi
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264striplib=
17265old_striplib=
17266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17267$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17268if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272$as_echo "yes" >&6; }
17273else
17274# FIXME - insert some real tests, host_os isn't really good enough
17275 case $host_os in
17276 darwin*)
17277 if test -n "$STRIP" ; then
17278 striplib="$STRIP -x"
17279 old_striplib="$STRIP -S"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281$as_echo "yes" >&6; }
17282 else
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284$as_echo "no" >&6; }
17285 fi
17286 ;;
17287 *)
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289$as_echo "no" >&6; }
17290 ;;
17291 esac
17292fi
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305 # Report which library types will actually be built
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17307$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17309$as_echo "$can_build_shared" >&6; }
17310
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17312$as_echo_n "checking whether to build shared libraries... " >&6; }
17313 test "$can_build_shared" = "no" && enable_shared=no
17314
17315 # On AIX, shared libraries and static libraries use the same namespace, and
17316 # are all built from PIC.
17317 case $host_os in
17318 aix3*)
17319 test "$enable_shared" = yes && enable_static=no
17320 if test -n "$RANLIB"; then
17321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17322 postinstall_cmds='$RANLIB $lib'
17323 fi
17324 ;;
17325
17326 aix[4-9]*)
17327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17328 test "$enable_shared" = yes && enable_static=no
17329 fi
17330 ;;
17331 esac
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17333$as_echo "$enable_shared" >&6; }
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17336$as_echo_n "checking whether to build static libraries... " >&6; }
17337 # Make sure either enable_shared or enable_static is yes.
17338 test "$enable_shared" = yes || enable_static=yes
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17340$as_echo "$enable_static" >&6; }
17341
17342
17343
17344
17345fi
17346ac_ext=c
17347ac_cpp='$CPP $CPPFLAGS'
17348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17350ac_compiler_gnu=$ac_cv_c_compiler_gnu
17351
17352CC="$lt_save_CC"
17353
cristy0c60a692010-11-04 01:09:47 +000017354 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17356 (test "X$CXX" != "Xg++"))) ; then
17357 ac_ext=cpp
17358ac_cpp='$CXXCPP $CPPFLAGS'
17359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17363$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17364if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017365 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017366 $as_echo_n "(cached) " >&6
17367else
17368 # Double quotes because CXXCPP needs to be expanded
17369 for CXXCPP in "$CXX -E" "/lib/cpp"
17370 do
17371 ac_preproc_ok=false
17372for ac_cxx_preproc_warn_flag in '' yes
17373do
17374 # Use a header file that comes with gcc, so configuring glibc
17375 # with a fresh cross-compiler works.
17376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377 # <limits.h> exists even on freestanding compilers.
17378 # On the NeXT, cc -E runs the code through the compiler's parser,
17379 # not just through cpp. "Syntax error" is here to catch this case.
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h. */
17382#ifdef __STDC__
17383# include <limits.h>
17384#else
17385# include <assert.h>
17386#endif
17387 Syntax error
17388_ACEOF
17389if ac_fn_cxx_try_cpp "$LINENO"; then :
17390
17391else
17392 # Broken: fails on valid input.
17393continue
17394fi
cristyda16f162011-02-19 23:52:17 +000017395rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017396
17397 # OK, works on sane cases. Now check whether nonexistent headers
17398 # can be detected and how.
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400/* end confdefs.h. */
17401#include <ac_nonexistent.h>
17402_ACEOF
17403if ac_fn_cxx_try_cpp "$LINENO"; then :
17404 # Broken: success on invalid input.
17405continue
17406else
17407 # Passes both tests.
17408ac_preproc_ok=:
17409break
17410fi
cristyda16f162011-02-19 23:52:17 +000017411rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017412
17413done
17414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017415rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017416if $ac_preproc_ok; then :
17417 break
17418fi
17419
17420 done
17421 ac_cv_prog_CXXCPP=$CXXCPP
17422
17423fi
17424 CXXCPP=$ac_cv_prog_CXXCPP
17425else
17426 ac_cv_prog_CXXCPP=$CXXCPP
17427fi
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17429$as_echo "$CXXCPP" >&6; }
17430ac_preproc_ok=false
17431for ac_cxx_preproc_warn_flag in '' yes
17432do
17433 # Use a header file that comes with gcc, so configuring glibc
17434 # with a fresh cross-compiler works.
17435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17436 # <limits.h> exists even on freestanding compilers.
17437 # On the NeXT, cc -E runs the code through the compiler's parser,
17438 # not just through cpp. "Syntax error" is here to catch this case.
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h. */
17441#ifdef __STDC__
17442# include <limits.h>
17443#else
17444# include <assert.h>
17445#endif
17446 Syntax error
17447_ACEOF
17448if ac_fn_cxx_try_cpp "$LINENO"; then :
17449
17450else
17451 # Broken: fails on valid input.
17452continue
17453fi
cristyda16f162011-02-19 23:52:17 +000017454rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017455
17456 # OK, works on sane cases. Now check whether nonexistent headers
17457 # can be detected and how.
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459/* end confdefs.h. */
17460#include <ac_nonexistent.h>
17461_ACEOF
17462if ac_fn_cxx_try_cpp "$LINENO"; then :
17463 # Broken: success on invalid input.
17464continue
17465else
17466 # Passes both tests.
17467ac_preproc_ok=:
17468break
17469fi
cristyda16f162011-02-19 23:52:17 +000017470rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017471
17472done
17473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017474rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017475if $ac_preproc_ok; then :
17476
17477else
17478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17480as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17481See \`config.log' for more details" "$LINENO" 5; }
17482fi
17483
17484ac_ext=c
17485ac_cpp='$CPP $CPPFLAGS'
17486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17488ac_compiler_gnu=$ac_cv_c_compiler_gnu
17489
17490else
17491 _lt_caught_CXX_error=yes
17492fi
cristy73bd4a52010-10-05 11:24:23 +000017493
17494ac_ext=cpp
17495ac_cpp='$CXXCPP $CPPFLAGS'
17496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499
17500archive_cmds_need_lc_CXX=no
17501allow_undefined_flag_CXX=
17502always_export_symbols_CXX=no
17503archive_expsym_cmds_CXX=
17504compiler_needs_object_CXX=no
17505export_dynamic_flag_spec_CXX=
17506hardcode_direct_CXX=no
17507hardcode_direct_absolute_CXX=no
17508hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017509hardcode_libdir_separator_CXX=
17510hardcode_minus_L_CXX=no
17511hardcode_shlibpath_var_CXX=unsupported
17512hardcode_automatic_CXX=no
17513inherit_rpath_CXX=no
17514module_cmds_CXX=
17515module_expsym_cmds_CXX=
17516link_all_deplibs_CXX=unknown
17517old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017518reload_flag_CXX=$reload_flag
17519reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017520no_undefined_flag_CXX=
17521whole_archive_flag_spec_CXX=
17522enable_shared_with_static_runtimes_CXX=no
17523
17524# Source file extension for C++ test sources.
17525ac_ext=cpp
17526
17527# Object file extension for compiled C++ test sources.
17528objext=o
17529objext_CXX=$objext
17530
17531# No sense in running all these tests if we already determined that
17532# the CXX compiler isn't working. Some variables (like enable_shared)
17533# are currently assumed to apply to all compilers on this platform,
17534# and will be corrupted by setting them based on a non-working compiler.
17535if test "$_lt_caught_CXX_error" != yes; then
17536 # Code to be used in simple compile tests
17537 lt_simple_compile_test_code="int some_variable = 0;"
17538
17539 # Code to be used in simple link tests
17540 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17541
17542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17543
17544
17545
17546
17547
17548
17549# If no C compiler was specified, use CC.
17550LTCC=${LTCC-"$CC"}
17551
17552# If no C compiler flags were specified, use CFLAGS.
17553LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17554
17555# Allow CC to be a program name with arguments.
17556compiler=$CC
17557
17558
17559 # save warnings/boilerplate of simple test code
17560 ac_outfile=conftest.$ac_objext
17561echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17563_lt_compiler_boilerplate=`cat conftest.err`
17564$RM conftest*
17565
17566 ac_outfile=conftest.$ac_objext
17567echo "$lt_simple_link_test_code" >conftest.$ac_ext
17568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17569_lt_linker_boilerplate=`cat conftest.err`
17570$RM -r conftest*
17571
17572
17573 # Allow CC to be a program name with arguments.
17574 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017575 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017576 lt_save_LD=$LD
17577 lt_save_GCC=$GCC
17578 GCC=$GXX
17579 lt_save_with_gnu_ld=$with_gnu_ld
17580 lt_save_path_LD=$lt_cv_path_LD
17581 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17582 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17583 else
17584 $as_unset lt_cv_prog_gnu_ld
17585 fi
17586 if test -n "${lt_cv_path_LDCXX+set}"; then
17587 lt_cv_path_LD=$lt_cv_path_LDCXX
17588 else
17589 $as_unset lt_cv_path_LD
17590 fi
17591 test -z "${LDCXX+set}" || LD=$LDCXX
17592 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017593 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017594 compiler=$CC
17595 compiler_CXX=$CC
17596 for cc_temp in $compiler""; do
17597 case $cc_temp in
17598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17600 \-*) ;;
17601 *) break;;
17602 esac
17603done
cristy0c60a692010-11-04 01:09:47 +000017604cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017605
17606
17607 if test -n "$compiler"; then
17608 # We don't want -fno-exception when compiling C++ code, so set the
17609 # no_builtin_flag separately
17610 if test "$GXX" = yes; then
17611 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17612 else
17613 lt_prog_compiler_no_builtin_flag_CXX=
17614 fi
17615
17616 if test "$GXX" = yes; then
17617 # Set up default GNU C++ configuration
17618
17619
17620
17621# Check whether --with-gnu-ld was given.
17622if test "${with_gnu_ld+set}" = set; then :
17623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17624else
17625 with_gnu_ld=no
17626fi
17627
17628ac_prog=ld
17629if test "$GCC" = yes; then
17630 # Check if gcc -print-prog-name=ld gives a path.
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17632$as_echo_n "checking for ld used by $CC... " >&6; }
17633 case $host in
17634 *-*-mingw*)
17635 # gcc leaves a trailing carriage return which upsets mingw
17636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17637 *)
17638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17639 esac
17640 case $ac_prog in
17641 # Accept absolute paths.
17642 [\\/]* | ?:[\\/]*)
17643 re_direlt='/[^/][^/]*/\.\./'
17644 # Canonicalize the pathname of ld
17645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17648 done
17649 test -z "$LD" && LD="$ac_prog"
17650 ;;
17651 "")
17652 # If it fails, then pretend we aren't using GCC.
17653 ac_prog=ld
17654 ;;
17655 *)
17656 # If it is relative, then search for the first ld in PATH.
17657 with_gnu_ld=unknown
17658 ;;
17659 esac
17660elif test "$with_gnu_ld" = yes; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17662$as_echo_n "checking for GNU ld... " >&6; }
17663else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17665$as_echo_n "checking for non-GNU ld... " >&6; }
17666fi
cristyda16f162011-02-19 23:52:17 +000017667if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017668 $as_echo_n "(cached) " >&6
17669else
17670 if test -z "$LD"; then
17671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17672 for ac_dir in $PATH; do
17673 IFS="$lt_save_ifs"
17674 test -z "$ac_dir" && ac_dir=.
17675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17676 lt_cv_path_LD="$ac_dir/$ac_prog"
17677 # Check to see if the program is GNU ld. I'd rather use --version,
17678 # but apparently some variants of GNU ld only accept -v.
17679 # Break only if it was the GNU/non-GNU ld that we prefer.
17680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17681 *GNU* | *'with BFD'*)
17682 test "$with_gnu_ld" != no && break
17683 ;;
17684 *)
17685 test "$with_gnu_ld" != yes && break
17686 ;;
17687 esac
17688 fi
17689 done
17690 IFS="$lt_save_ifs"
17691else
17692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17693fi
17694fi
17695
17696LD="$lt_cv_path_LD"
17697if test -n "$LD"; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17699$as_echo "$LD" >&6; }
17700else
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702$as_echo "no" >&6; }
17703fi
cristy98dddb52010-11-04 00:30:15 +000017704test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17706$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017707if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017708 $as_echo_n "(cached) " >&6
17709else
17710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17711case `$LD -v 2>&1 </dev/null` in
17712*GNU* | *'with BFD'*)
17713 lt_cv_prog_gnu_ld=yes
17714 ;;
17715*)
17716 lt_cv_prog_gnu_ld=no
17717 ;;
17718esac
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17721$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17722with_gnu_ld=$lt_cv_prog_gnu_ld
17723
17724
17725
17726
17727
17728
17729
17730 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17731 # archiving commands below assume that GNU ld is being used.
17732 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017733 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17734 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017735
17736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17738
17739 # If archive_cmds runs LD, not CC, wlarc should be empty
17740 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17741 # investigate it a little bit more. (MM)
17742 wlarc='${wl}'
17743
17744 # ancient GNU ld didn't support --whole-archive et. al.
17745 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17746 $GREP 'no-whole-archive' > /dev/null; then
17747 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17748 else
17749 whole_archive_flag_spec_CXX=
17750 fi
17751 else
17752 with_gnu_ld=no
17753 wlarc=
17754
17755 # A generic and very simple default shared library creation
17756 # command for GNU C++ for the case where it uses the native
17757 # linker, instead of GNU ld. If possible, this setting should
17758 # overridden to take advantage of the native linker features on
17759 # the platform it is being used on.
17760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17761 fi
17762
17763 # Commands to make compiler produce verbose output that lists
17764 # what "hidden" libraries, object files and flags are used when
17765 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017767
17768 else
17769 GXX=no
17770 with_gnu_ld=no
17771 wlarc=
17772 fi
17773
17774 # PORTME: fill in a description of your system's C++ link characteristics
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17776$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17777 ld_shlibs_CXX=yes
17778 case $host_os in
17779 aix3*)
17780 # FIXME: insert proper C++ library support
17781 ld_shlibs_CXX=no
17782 ;;
17783 aix[4-9]*)
17784 if test "$host_cpu" = ia64; then
17785 # On IA64, the linker does run time linking by default, so we don't
17786 # have to do anything special.
17787 aix_use_runtimelinking=no
17788 exp_sym_flag='-Bexport'
17789 no_entry_flag=""
17790 else
17791 aix_use_runtimelinking=no
17792
17793 # Test if we are trying to use run time linking or normal
17794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17795 # need to do runtime linking.
17796 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17797 for ld_flag in $LDFLAGS; do
17798 case $ld_flag in
17799 *-brtl*)
17800 aix_use_runtimelinking=yes
17801 break
17802 ;;
17803 esac
17804 done
17805 ;;
17806 esac
17807
17808 exp_sym_flag='-bexport'
17809 no_entry_flag='-bnoentry'
17810 fi
17811
17812 # When large executables or shared objects are built, AIX ld can
17813 # have problems creating the table of contents. If linking a library
17814 # or program results in "error TOC overflow" add -mminimal-toc to
17815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17817
17818 archive_cmds_CXX=''
17819 hardcode_direct_CXX=yes
17820 hardcode_direct_absolute_CXX=yes
17821 hardcode_libdir_separator_CXX=':'
17822 link_all_deplibs_CXX=yes
17823 file_list_spec_CXX='${wl}-f,'
17824
17825 if test "$GXX" = yes; then
17826 case $host_os in aix4.[012]|aix4.[012].*)
17827 # We only want to do this on AIX 4.2 and lower, the check
17828 # below for broken collect2 doesn't work under 4.3+
17829 collect2name=`${CC} -print-prog-name=collect2`
17830 if test -f "$collect2name" &&
17831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17832 then
17833 # We have reworked collect2
17834 :
17835 else
17836 # We have old collect2
17837 hardcode_direct_CXX=unsupported
17838 # It fails to find uninstalled libraries when the uninstalled
17839 # path is not listed in the libpath. Setting hardcode_minus_L
17840 # to unsupported forces relinking
17841 hardcode_minus_L_CXX=yes
17842 hardcode_libdir_flag_spec_CXX='-L$libdir'
17843 hardcode_libdir_separator_CXX=
17844 fi
17845 esac
17846 shared_flag='-shared'
17847 if test "$aix_use_runtimelinking" = yes; then
17848 shared_flag="$shared_flag "'${wl}-G'
17849 fi
17850 else
17851 # not using gcc
17852 if test "$host_cpu" = ia64; then
17853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17854 # chokes on -Wl,-G. The following line is correct:
17855 shared_flag='-G'
17856 else
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag='${wl}-G'
17859 else
17860 shared_flag='${wl}-bM:SRE'
17861 fi
17862 fi
17863 fi
17864
17865 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17866 # It seems that -bexpall does not export symbols beginning with
17867 # underscore (_), so it is better to generate a list of symbols to
17868 # export.
17869 always_export_symbols_CXX=yes
17870 if test "$aix_use_runtimelinking" = yes; then
17871 # Warning - without using the other runtime loading flags (-brtl),
17872 # -berok will link without error, but may produce a broken library.
17873 allow_undefined_flag_CXX='-berok'
17874 # Determine the default libpath from the value encoded in an empty
17875 # executable.
cristyda16f162011-02-19 23:52:17 +000017876 if test "${lt_cv_aix_libpath+set}" = set; then
17877 aix_libpath=$lt_cv_aix_libpath
17878else
17879 if ${lt_cv_aix_libpath__CXX+:} false; then :
17880 $as_echo_n "(cached) " >&6
17881else
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017883/* end confdefs.h. */
17884
17885int
17886main ()
17887{
17888
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893if ac_fn_cxx_try_link "$LINENO"; then :
17894
cristyda16f162011-02-19 23:52:17 +000017895 lt_aix_libpath_sed='
17896 /Import File Strings/,/^$/ {
17897 /^0/ {
17898 s/^0 *\([^ ]*\) *$/\1/
17899 p
17900 }
17901 }'
17902 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17903 # Check for a 64-bit object if we didn't find anything.
17904 if test -z "$lt_cv_aix_libpath__CXX"; then
17905 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17906 fi
cristy73bd4a52010-10-05 11:24:23 +000017907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017910 if test -z "$lt_cv_aix_libpath__CXX"; then
17911 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17912 fi
17913
17914fi
17915
17916 aix_libpath=$lt_cv_aix_libpath__CXX
17917fi
cristy73bd4a52010-10-05 11:24:23 +000017918
17919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17920
cristy0c60a692010-11-04 01:09:47 +000017921 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000017922 else
17923 if test "$host_cpu" = ia64; then
17924 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17925 allow_undefined_flag_CXX="-z nodefs"
17926 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17927 else
17928 # Determine the default libpath from the value encoded in an
17929 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017930 if test "${lt_cv_aix_libpath+set}" = set; then
17931 aix_libpath=$lt_cv_aix_libpath
17932else
17933 if ${lt_cv_aix_libpath__CXX+:} false; then :
17934 $as_echo_n "(cached) " >&6
17935else
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017937/* end confdefs.h. */
17938
17939int
17940main ()
17941{
17942
17943 ;
17944 return 0;
17945}
17946_ACEOF
17947if ac_fn_cxx_try_link "$LINENO"; then :
17948
cristyda16f162011-02-19 23:52:17 +000017949 lt_aix_libpath_sed='
17950 /Import File Strings/,/^$/ {
17951 /^0/ {
17952 s/^0 *\([^ ]*\) *$/\1/
17953 p
17954 }
17955 }'
17956 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17957 # Check for a 64-bit object if we didn't find anything.
17958 if test -z "$lt_cv_aix_libpath__CXX"; then
17959 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 fi
cristy73bd4a52010-10-05 11:24:23 +000017961fi
17962rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017964 if test -z "$lt_cv_aix_libpath__CXX"; then
17965 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17966 fi
17967
17968fi
17969
17970 aix_libpath=$lt_cv_aix_libpath__CXX
17971fi
cristy73bd4a52010-10-05 11:24:23 +000017972
17973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17974 # Warning - without using the other run time loading flags,
17975 # -berok will link without error, but may produce a broken library.
17976 no_undefined_flag_CXX=' ${wl}-bernotok'
17977 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017978 if test "$with_gnu_ld" = yes; then
17979 # We only use this code for GNU lds that support --whole-archive.
17980 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17981 else
17982 # Exported symbols can be pulled into shared objects from archives
17983 whole_archive_flag_spec_CXX='$convenience'
17984 fi
cristy73bd4a52010-10-05 11:24:23 +000017985 archive_cmds_need_lc_CXX=yes
17986 # This is similar to how AIX traditionally builds its shared
17987 # libraries.
17988 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17989 fi
17990 fi
17991 ;;
17992
17993 beos*)
17994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17995 allow_undefined_flag_CXX=unsupported
17996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17997 # support --undefined. This deserves some investigation. FIXME
17998 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17999 else
18000 ld_shlibs_CXX=no
18001 fi
18002 ;;
18003
18004 chorus*)
18005 case $cc_basename in
18006 *)
18007 # FIXME: insert proper C++ library support
18008 ld_shlibs_CXX=no
18009 ;;
18010 esac
18011 ;;
18012
18013 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018014 case $GXX,$cc_basename in
18015 ,cl* | no,cl*)
18016 # Native MSVC
18017 # hardcode_libdir_flag_spec is actually meaningless, as there is
18018 # no search path for DLLs.
18019 hardcode_libdir_flag_spec_CXX=' '
18020 allow_undefined_flag_CXX=unsupported
18021 always_export_symbols_CXX=yes
18022 file_list_spec_CXX='@'
18023 # Tell ltmain to make .lib files, not .a files.
18024 libext=lib
18025 # Tell ltmain to make .dll files, not .so files.
18026 shrext_cmds=".dll"
18027 # FIXME: Setting linknames here is a bad hack.
18028 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18030 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18031 else
18032 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18033 fi~
18034 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18035 linknames='
18036 # The linker will not automatically build a static lib if we build a DLL.
18037 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18038 enable_shared_with_static_runtimes_CXX=yes
18039 # Don't use ranlib
18040 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18041 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18042 lt_tool_outputfile="@TOOL_OUTPUT@"~
18043 case $lt_outputfile in
18044 *.exe|*.EXE) ;;
18045 *)
18046 lt_outputfile="$lt_outputfile.exe"
18047 lt_tool_outputfile="$lt_tool_outputfile.exe"
18048 ;;
18049 esac~
18050 func_to_tool_file "$lt_outputfile"~
18051 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18052 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18053 $RM "$lt_outputfile.manifest";
18054 fi'
18055 ;;
18056 *)
18057 # g++
18058 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18059 # as there is no search path for DLLs.
18060 hardcode_libdir_flag_spec_CXX='-L$libdir'
18061 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18062 allow_undefined_flag_CXX=unsupported
18063 always_export_symbols_CXX=no
18064 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018065
cristyda16f162011-02-19 23:52:17 +000018066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18067 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18068 # If the export-symbols file already is a .def file (1st line
18069 # is EXPORTS), use it as is; otherwise, prepend...
18070 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18071 cp $export_symbols $output_objdir/$soname.def;
18072 else
18073 echo EXPORTS > $output_objdir/$soname.def;
18074 cat $export_symbols >> $output_objdir/$soname.def;
18075 fi~
18076 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18077 else
18078 ld_shlibs_CXX=no
18079 fi
18080 ;;
18081 esac
18082 ;;
cristy73bd4a52010-10-05 11:24:23 +000018083 darwin* | rhapsody*)
18084
18085
18086 archive_cmds_need_lc_CXX=no
18087 hardcode_direct_CXX=no
18088 hardcode_automatic_CXX=yes
18089 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018090 if test "$lt_cv_ld_force_load" = "yes"; then
18091 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018092
cristy0c60a692010-11-04 01:09:47 +000018093 else
18094 whole_archive_flag_spec_CXX=''
18095 fi
cristy73bd4a52010-10-05 11:24:23 +000018096 link_all_deplibs_CXX=yes
18097 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18098 case $cc_basename in
18099 ifort*) _lt_dar_can_shared=yes ;;
18100 *) _lt_dar_can_shared=$GCC ;;
18101 esac
18102 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018103 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018104 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18105 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18106 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18107 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18108 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18109 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18110 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18111 fi
18112
18113 else
18114 ld_shlibs_CXX=no
18115 fi
18116
18117 ;;
18118
18119 dgux*)
18120 case $cc_basename in
18121 ec++*)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 ;;
18125 ghcx*)
18126 # Green Hills C++ Compiler
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130 *)
18131 # FIXME: insert proper C++ library support
18132 ld_shlibs_CXX=no
18133 ;;
18134 esac
18135 ;;
18136
cristy99bd5232011-12-07 14:38:20 +000018137 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018138 # C++ shared libraries reported to be fairly broken before
18139 # switch to ELF
18140 ld_shlibs_CXX=no
18141 ;;
18142
18143 freebsd-elf*)
18144 archive_cmds_need_lc_CXX=no
18145 ;;
18146
18147 freebsd* | dragonfly*)
18148 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18149 # conventions
18150 ld_shlibs_CXX=yes
18151 ;;
18152
18153 gnu*)
18154 ;;
18155
cristy0c60a692010-11-04 01:09:47 +000018156 haiku*)
18157 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18158 link_all_deplibs_CXX=yes
18159 ;;
18160
cristy73bd4a52010-10-05 11:24:23 +000018161 hpux9*)
18162 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18163 hardcode_libdir_separator_CXX=:
18164 export_dynamic_flag_spec_CXX='${wl}-E'
18165 hardcode_direct_CXX=yes
18166 hardcode_minus_L_CXX=yes # Not in the search PATH,
18167 # but as the default
18168 # location of the library.
18169
18170 case $cc_basename in
18171 CC*)
18172 # FIXME: insert proper C++ library support
18173 ld_shlibs_CXX=no
18174 ;;
18175 aCC*)
18176 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18177 # Commands to make compiler produce verbose output that lists
18178 # what "hidden" libraries, object files and flags are used when
18179 # linking a shared library.
18180 #
18181 # There doesn't appear to be a way to prevent this compiler from
18182 # explicitly linking system object files so we need to strip them
18183 # from the output so that they don't get included in the library
18184 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018185 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018186 ;;
18187 *)
18188 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018189 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000018190 else
18191 # FIXME: insert proper C++ library support
18192 ld_shlibs_CXX=no
18193 fi
18194 ;;
18195 esac
18196 ;;
18197
18198 hpux10*|hpux11*)
18199 if test $with_gnu_ld = no; then
18200 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18201 hardcode_libdir_separator_CXX=:
18202
18203 case $host_cpu in
18204 hppa*64*|ia64*)
18205 ;;
18206 *)
18207 export_dynamic_flag_spec_CXX='${wl}-E'
18208 ;;
18209 esac
18210 fi
18211 case $host_cpu in
18212 hppa*64*|ia64*)
18213 hardcode_direct_CXX=no
18214 hardcode_shlibpath_var_CXX=no
18215 ;;
18216 *)
18217 hardcode_direct_CXX=yes
18218 hardcode_direct_absolute_CXX=yes
18219 hardcode_minus_L_CXX=yes # Not in the search PATH,
18220 # but as the default
18221 # location of the library.
18222 ;;
18223 esac
18224
18225 case $cc_basename in
18226 CC*)
18227 # FIXME: insert proper C++ library support
18228 ld_shlibs_CXX=no
18229 ;;
18230 aCC*)
18231 case $host_cpu in
18232 hppa*64*)
18233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18234 ;;
18235 ia64*)
18236 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18237 ;;
18238 *)
18239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18240 ;;
18241 esac
18242 # Commands to make compiler produce verbose output that lists
18243 # what "hidden" libraries, object files and flags are used when
18244 # linking a shared library.
18245 #
18246 # There doesn't appear to be a way to prevent this compiler from
18247 # explicitly linking system object files so we need to strip them
18248 # from the output so that they don't get included in the library
18249 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018250 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018251 ;;
18252 *)
18253 if test "$GXX" = yes; then
18254 if test $with_gnu_ld = no; then
18255 case $host_cpu in
18256 hppa*64*)
18257 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18258 ;;
18259 ia64*)
cristyda16f162011-02-19 23:52:17 +000018260 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018261 ;;
18262 *)
cristyda16f162011-02-19 23:52:17 +000018263 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018264 ;;
18265 esac
18266 fi
18267 else
18268 # FIXME: insert proper C++ library support
18269 ld_shlibs_CXX=no
18270 fi
18271 ;;
18272 esac
18273 ;;
18274
18275 interix[3-9]*)
18276 hardcode_direct_CXX=no
18277 hardcode_shlibpath_var_CXX=no
18278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18279 export_dynamic_flag_spec_CXX='${wl}-E'
18280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18281 # Instead, shared libraries are loaded at an image base (0x10000000 by
18282 # default) and relocated if they conflict, which is a slow very memory
18283 # consuming and fragmenting process. To avoid this, we pick a random,
18284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18286 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18287 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18288 ;;
18289 irix5* | irix6*)
18290 case $cc_basename in
18291 CC*)
18292 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018293 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018294
18295 # Archives containing C++ object files must be created using
18296 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18297 # necessary to make sure instantiated templates are included
18298 # in the archive.
18299 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18300 ;;
18301 *)
18302 if test "$GXX" = yes; then
18303 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018304 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018305 else
cristyda16f162011-02-19 23:52:17 +000018306 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018307 fi
18308 fi
18309 link_all_deplibs_CXX=yes
18310 ;;
18311 esac
18312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18313 hardcode_libdir_separator_CXX=:
18314 inherit_rpath_CXX=yes
18315 ;;
18316
cristy0c60a692010-11-04 01:09:47 +000018317 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018318 case $cc_basename in
18319 KCC*)
18320 # Kuck and Associates, Inc. (KAI) C++ Compiler
18321
18322 # KCC will only create a shared library if the output file
18323 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18324 # to its proper name (with version) after linking.
18325 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18326 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18327 # Commands to make compiler produce verbose output that lists
18328 # what "hidden" libraries, object files and flags are used when
18329 # linking a shared library.
18330 #
18331 # There doesn't appear to be a way to prevent this compiler from
18332 # explicitly linking system object files so we need to strip them
18333 # from the output so that they don't get included in the library
18334 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018335 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018336
18337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18339
18340 # Archives containing C++ object files must be created using
18341 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18342 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18343 ;;
18344 icpc* | ecpc* )
18345 # Intel C++
18346 with_gnu_ld=yes
18347 # version 8.0 and above of icpc choke on multiply defined symbols
18348 # if we add $predep_objects and $postdep_objects, however 7.1 and
18349 # earlier do not add the objects themselves.
18350 case `$CC -V 2>&1` in
18351 *"Version 7."*)
18352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18354 ;;
18355 *) # Version 8.0 or newer
18356 tmp_idyn=
18357 case $host_cpu in
18358 ia64*) tmp_idyn=' -i_dynamic';;
18359 esac
18360 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18361 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18362 ;;
18363 esac
18364 archive_cmds_need_lc_CXX=no
18365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18368 ;;
18369 pgCC* | pgcpp*)
18370 # Portland Group C++ compiler
18371 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018372 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018373 prelink_cmds_CXX='tpldir=Template.dir~
18374 rm -rf $tpldir~
18375 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018376 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018377 old_archive_cmds_CXX='tpldir=Template.dir~
18378 rm -rf $tpldir~
18379 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018380 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018381 $RANLIB $oldlib'
18382 archive_cmds_CXX='tpldir=Template.dir~
18383 rm -rf $tpldir~
18384 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018385 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018386 archive_expsym_cmds_CXX='tpldir=Template.dir~
18387 rm -rf $tpldir~
18388 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018389 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018390 ;;
cristy0c60a692010-11-04 01:09:47 +000018391 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18393 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18394 ;;
18395 esac
18396
18397 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018399 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018400 ;;
18401 cxx*)
18402 # Compaq C++
18403 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18404 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18405
18406 runpath_var=LD_RUN_PATH
18407 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18408 hardcode_libdir_separator_CXX=:
18409
18410 # Commands to make compiler produce verbose output that lists
18411 # what "hidden" libraries, object files and flags are used when
18412 # linking a shared library.
18413 #
18414 # There doesn't appear to be a way to prevent this compiler from
18415 # explicitly linking system object files so we need to strip them
18416 # from the output so that they don't get included in the library
18417 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018418 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000018419 ;;
cristy0c60a692010-11-04 01:09:47 +000018420 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018421 # IBM XL 8.0 on PPC, with GNU ld
18422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18424 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18425 if test "x$supports_anon_versioning" = xyes; then
18426 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18428 echo "local: *; };" >> $output_objdir/$libname.ver~
18429 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18430 fi
18431 ;;
18432 *)
18433 case `$CC -V 2>&1 | sed 5q` in
18434 *Sun\ C*)
18435 # Sun C++ 5.9
18436 no_undefined_flag_CXX=' -zdefs'
18437 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18438 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18439 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018440 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018441 compiler_needs_object_CXX=yes
18442
18443 # Not sure whether something based on
18444 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18445 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018446 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018447
18448 # Archives containing C++ object files must be created using
18449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18450 # necessary to make sure instantiated templates are included
18451 # in the archive.
18452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18453 ;;
18454 esac
18455 ;;
18456 esac
18457 ;;
18458
18459 lynxos*)
18460 # FIXME: insert proper C++ library support
18461 ld_shlibs_CXX=no
18462 ;;
18463
18464 m88k*)
18465 # FIXME: insert proper C++ library support
18466 ld_shlibs_CXX=no
18467 ;;
18468
18469 mvs*)
18470 case $cc_basename in
18471 cxx*)
18472 # FIXME: insert proper C++ library support
18473 ld_shlibs_CXX=no
18474 ;;
18475 *)
18476 # FIXME: insert proper C++ library support
18477 ld_shlibs_CXX=no
18478 ;;
18479 esac
18480 ;;
18481
18482 netbsd*)
18483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18484 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18485 wlarc=
18486 hardcode_libdir_flag_spec_CXX='-R$libdir'
18487 hardcode_direct_CXX=yes
18488 hardcode_shlibpath_var_CXX=no
18489 fi
18490 # Workaround some broken pre-1.5 toolchains
18491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18492 ;;
18493
18494 *nto* | *qnx*)
18495 ld_shlibs_CXX=yes
18496 ;;
18497
18498 openbsd2*)
18499 # C++ shared libraries are fairly broken
18500 ld_shlibs_CXX=no
18501 ;;
18502
18503 openbsd*)
18504 if test -f /usr/libexec/ld.so; then
18505 hardcode_direct_CXX=yes
18506 hardcode_shlibpath_var_CXX=no
18507 hardcode_direct_absolute_CXX=yes
18508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18511 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18512 export_dynamic_flag_spec_CXX='${wl}-E'
18513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18514 fi
cristy0c60a692010-11-04 01:09:47 +000018515 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018516 else
18517 ld_shlibs_CXX=no
18518 fi
18519 ;;
18520
18521 osf3* | osf4* | osf5*)
18522 case $cc_basename in
18523 KCC*)
18524 # Kuck and Associates, Inc. (KAI) C++ Compiler
18525
18526 # KCC will only create a shared library if the output file
18527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18528 # to its proper name (with version) after linking.
18529 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18530
18531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18532 hardcode_libdir_separator_CXX=:
18533
18534 # Archives containing C++ object files must be created using
18535 # the KAI C++ compiler.
18536 case $host in
18537 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18538 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18539 esac
18540 ;;
18541 RCC*)
18542 # Rational C++ 2.4.1
18543 # FIXME: insert proper C++ library support
18544 ld_shlibs_CXX=no
18545 ;;
18546 cxx*)
18547 case $host in
18548 osf3*)
18549 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018550 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18552 ;;
18553 *)
18554 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018555 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18557 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018558 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000018559 $RM $lib.exp'
18560 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18561 ;;
18562 esac
18563
18564 hardcode_libdir_separator_CXX=:
18565
18566 # Commands to make compiler produce verbose output that lists
18567 # what "hidden" libraries, object files and flags are used when
18568 # linking a shared library.
18569 #
18570 # There doesn't appear to be a way to prevent this compiler from
18571 # explicitly linking system object files so we need to strip them
18572 # from the output so that they don't get included in the library
18573 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018574 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018575 ;;
18576 *)
18577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18579 case $host in
18580 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018581 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018582 ;;
18583 *)
cristyda16f162011-02-19 23:52:17 +000018584 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018585 ;;
18586 esac
18587
18588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 hardcode_libdir_separator_CXX=:
18590
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018595
18596 else
18597 # FIXME: insert proper C++ library support
18598 ld_shlibs_CXX=no
18599 fi
18600 ;;
18601 esac
18602 ;;
18603
18604 psos*)
18605 # FIXME: insert proper C++ library support
18606 ld_shlibs_CXX=no
18607 ;;
18608
18609 sunos4*)
18610 case $cc_basename in
18611 CC*)
18612 # Sun C++ 4.x
18613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18615 ;;
18616 lcc*)
18617 # Lucid
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621 *)
18622 # FIXME: insert proper C++ library support
18623 ld_shlibs_CXX=no
18624 ;;
18625 esac
18626 ;;
18627
18628 solaris*)
18629 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018630 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018631 # Sun C++ 4.2, 5.x and Centerline C++
18632 archive_cmds_need_lc_CXX=yes
18633 no_undefined_flag_CXX=' -zdefs'
18634 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18635 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18636 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18637
18638 hardcode_libdir_flag_spec_CXX='-R$libdir'
18639 hardcode_shlibpath_var_CXX=no
18640 case $host_os in
18641 solaris2.[0-5] | solaris2.[0-5].*) ;;
18642 *)
18643 # The compiler driver will combine and reorder linker options,
18644 # but understands `-z linker_flag'.
18645 # Supported since Solaris 2.6 (maybe 2.5.1?)
18646 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18647 ;;
18648 esac
18649 link_all_deplibs_CXX=yes
18650
cristy0c60a692010-11-04 01:09:47 +000018651 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018652
18653 # Archives containing C++ object files must be created using
18654 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18655 # necessary to make sure instantiated templates are included
18656 # in the archive.
18657 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18658 ;;
18659 gcx*)
18660 # Green Hills C++ Compiler
18661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18662
18663 # The C++ compiler must be used to create the archive.
18664 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18665 ;;
18666 *)
18667 # GNU C++ compiler with Solaris linker
18668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18669 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18670 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018671 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018672 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000018673 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000018674
18675 # Commands to make compiler produce verbose output that lists
18676 # what "hidden" libraries, object files and flags are used when
18677 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018679 else
18680 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18681 # platform.
18682 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18683 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18684 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18685
18686 # Commands to make compiler produce verbose output that lists
18687 # what "hidden" libraries, object files and flags are used when
18688 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018689 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018690 fi
18691
18692 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18693 case $host_os in
18694 solaris2.[0-5] | solaris2.[0-5].*) ;;
18695 *)
18696 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18697 ;;
18698 esac
18699 fi
18700 ;;
18701 esac
18702 ;;
18703
18704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18705 no_undefined_flag_CXX='${wl}-z,text'
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_shlibpath_var_CXX=no
18708 runpath_var='LD_RUN_PATH'
18709
18710 case $cc_basename in
18711 CC*)
18712 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 ;;
18715 *)
18716 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18717 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 ;;
18719 esac
18720 ;;
18721
18722 sysv5* | sco3.2v5* | sco5v6*)
18723 # Note: We can NOT use -z defs as we might desire, because we do not
18724 # link with -lc, and that would cause any symbols used from libc to
18725 # always be unresolved, which means just about no library would
18726 # ever link correctly. If we're not using GNU ld we use -z text
18727 # though, which does catch some bad symbols but isn't as heavy-handed
18728 # as -z defs.
18729 no_undefined_flag_CXX='${wl}-z,text'
18730 allow_undefined_flag_CXX='${wl}-z,nodefs'
18731 archive_cmds_need_lc_CXX=no
18732 hardcode_shlibpath_var_CXX=no
18733 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18734 hardcode_libdir_separator_CXX=':'
18735 link_all_deplibs_CXX=yes
18736 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18737 runpath_var='LD_RUN_PATH'
18738
18739 case $cc_basename in
18740 CC*)
18741 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000018743 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18744 '"$old_archive_cmds_CXX"
18745 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18746 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018747 ;;
18748 *)
18749 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18751 ;;
18752 esac
18753 ;;
18754
18755 tandem*)
18756 case $cc_basename in
18757 NCC*)
18758 # NonStop-UX NCC 3.20
18759 # FIXME: insert proper C++ library support
18760 ld_shlibs_CXX=no
18761 ;;
18762 *)
18763 # FIXME: insert proper C++ library support
18764 ld_shlibs_CXX=no
18765 ;;
18766 esac
18767 ;;
18768
18769 vxworks*)
18770 # FIXME: insert proper C++ library support
18771 ld_shlibs_CXX=no
18772 ;;
18773
18774 *)
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 ;;
18778 esac
18779
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18781$as_echo "$ld_shlibs_CXX" >&6; }
18782 test "$ld_shlibs_CXX" = no && can_build_shared=no
18783
18784 GCC_CXX="$GXX"
18785 LD_CXX="$LD"
18786
18787 ## CAVEAT EMPTOR:
18788 ## There is no encapsulation within the following macros, do not change
18789 ## the running order or otherwise move them around unless you know exactly
18790 ## what you are doing...
18791 # Dependencies to place before and after the object being linked:
18792predep_objects_CXX=
18793postdep_objects_CXX=
18794predeps_CXX=
18795postdeps_CXX=
18796compiler_lib_search_path_CXX=
18797
18798cat > conftest.$ac_ext <<_LT_EOF
18799class Foo
18800{
18801public:
18802 Foo (void) { a = 0; }
18803private:
18804 int a;
18805};
18806_LT_EOF
18807
cristyda16f162011-02-19 23:52:17 +000018808
18809_lt_libdeps_save_CFLAGS=$CFLAGS
18810case "$CC $CFLAGS " in #(
18811*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18812*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018813*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018814esac
18815
cristy73bd4a52010-10-05 11:24:23 +000018816if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18817 (eval $ac_compile) 2>&5
18818 ac_status=$?
18819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18820 test $ac_status = 0; }; then
18821 # Parse the compiler output and extract the necessary
18822 # objects, libraries and library flags.
18823
18824 # Sentinel used to keep track of whether or not we are before
18825 # the conftest object file.
18826 pre_test_object_deps_done=no
18827
18828 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018829 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018830
18831 -L* | -R* | -l*)
18832 # Some compilers place space between "-{L,R}" and the path.
18833 # Remove the space.
18834 if test $p = "-L" ||
18835 test $p = "-R"; then
18836 prev=$p
18837 continue
cristy73bd4a52010-10-05 11:24:23 +000018838 fi
18839
cristyda16f162011-02-19 23:52:17 +000018840 # Expand the sysroot to ease extracting the directories later.
18841 if test -z "$prev"; then
18842 case $p in
18843 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18844 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18845 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18846 esac
18847 fi
18848 case $p in
18849 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18850 esac
cristy73bd4a52010-10-05 11:24:23 +000018851 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018852 case ${prev} in
18853 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018854 # Internal compiler library paths should come after those
18855 # provided the user. The postdeps already come after the
18856 # user supplied libs so there is no need to process them.
18857 if test -z "$compiler_lib_search_path_CXX"; then
18858 compiler_lib_search_path_CXX="${prev}${p}"
18859 else
18860 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18861 fi
18862 ;;
18863 # The "-l" case would never come before the object being
18864 # linked, so don't bother handling this case.
18865 esac
18866 else
18867 if test -z "$postdeps_CXX"; then
18868 postdeps_CXX="${prev}${p}"
18869 else
18870 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18871 fi
18872 fi
cristyda16f162011-02-19 23:52:17 +000018873 prev=
cristy73bd4a52010-10-05 11:24:23 +000018874 ;;
18875
cristyda16f162011-02-19 23:52:17 +000018876 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018877 *.$objext)
18878 # This assumes that the test object file only shows up
18879 # once in the compiler output.
18880 if test "$p" = "conftest.$objext"; then
18881 pre_test_object_deps_done=yes
18882 continue
18883 fi
18884
18885 if test "$pre_test_object_deps_done" = no; then
18886 if test -z "$predep_objects_CXX"; then
18887 predep_objects_CXX="$p"
18888 else
18889 predep_objects_CXX="$predep_objects_CXX $p"
18890 fi
18891 else
18892 if test -z "$postdep_objects_CXX"; then
18893 postdep_objects_CXX="$p"
18894 else
18895 postdep_objects_CXX="$postdep_objects_CXX $p"
18896 fi
18897 fi
18898 ;;
18899
18900 *) ;; # Ignore the rest.
18901
18902 esac
18903 done
18904
18905 # Clean up.
18906 rm -f a.out a.exe
18907else
18908 echo "libtool.m4: error: problem compiling CXX test program"
18909fi
18910
18911$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018912CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018913
18914# PORTME: override above test on systems where it is broken
18915case $host_os in
18916interix[3-9]*)
18917 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18918 # hack all around it, let's just trust "g++" to DTRT.
18919 predep_objects_CXX=
18920 postdep_objects_CXX=
18921 postdeps_CXX=
18922 ;;
18923
18924linux*)
18925 case `$CC -V 2>&1 | sed 5q` in
18926 *Sun\ C*)
18927 # Sun C++ 5.9
18928
18929 # The more standards-conforming stlport4 library is
18930 # incompatible with the Cstd library. Avoid specifying
18931 # it if it's in CXXFLAGS. Ignore libCrun as
18932 # -library=stlport4 depends on it.
18933 case " $CXX $CXXFLAGS " in
18934 *" -library=stlport4 "*)
18935 solaris_use_stlport4=yes
18936 ;;
18937 esac
18938
18939 if test "$solaris_use_stlport4" != yes; then
18940 postdeps_CXX='-library=Cstd -library=Crun'
18941 fi
18942 ;;
18943 esac
18944 ;;
18945
18946solaris*)
18947 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018948 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018949 # The more standards-conforming stlport4 library is
18950 # incompatible with the Cstd library. Avoid specifying
18951 # it if it's in CXXFLAGS. Ignore libCrun as
18952 # -library=stlport4 depends on it.
18953 case " $CXX $CXXFLAGS " in
18954 *" -library=stlport4 "*)
18955 solaris_use_stlport4=yes
18956 ;;
18957 esac
18958
18959 # Adding this requires a known-good setup of shared libraries for
18960 # Sun compiler versions before 5.6, else PIC objects from an old
18961 # archive will be linked into the output, leading to subtle bugs.
18962 if test "$solaris_use_stlport4" != yes; then
18963 postdeps_CXX='-library=Cstd -library=Crun'
18964 fi
18965 ;;
18966 esac
18967 ;;
18968esac
18969
18970
18971case " $postdeps_CXX " in
18972*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18973esac
18974 compiler_lib_search_dirs_CXX=
18975if test -n "${compiler_lib_search_path_CXX}"; then
18976 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18977fi
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009 lt_prog_compiler_wl_CXX=
19010lt_prog_compiler_pic_CXX=
19011lt_prog_compiler_static_CXX=
19012
cristy73bd4a52010-10-05 11:24:23 +000019013
19014 # C++ specific cases for pic, static, wl, etc.
19015 if test "$GXX" = yes; then
19016 lt_prog_compiler_wl_CXX='-Wl,'
19017 lt_prog_compiler_static_CXX='-static'
19018
19019 case $host_os in
19020 aix*)
19021 # All AIX code is PIC.
19022 if test "$host_cpu" = ia64; then
19023 # AIX 5 now supports IA64 processor
19024 lt_prog_compiler_static_CXX='-Bstatic'
19025 fi
19026 ;;
19027
19028 amigaos*)
19029 case $host_cpu in
19030 powerpc)
19031 # see comment about AmigaOS4 .so support
19032 lt_prog_compiler_pic_CXX='-fPIC'
19033 ;;
19034 m68k)
19035 # FIXME: we need at least 68020 code to build shared libraries, but
19036 # adding the `-m68020' flag to GCC prevents building anything better,
19037 # like `-m68040'.
19038 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19039 ;;
19040 esac
19041 ;;
19042
19043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19044 # PIC is the default for these OSes.
19045 ;;
19046 mingw* | cygwin* | os2* | pw32* | cegcc*)
19047 # This hack is so that the source file can tell whether it is being
19048 # built for inclusion in a dll (and should export symbols for example).
19049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19050 # (--disable-auto-import) libraries
19051 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19052 ;;
19053 darwin* | rhapsody*)
19054 # PIC is the default on this platform
19055 # Common symbols not allowed in MH_DYLIB files
19056 lt_prog_compiler_pic_CXX='-fno-common'
19057 ;;
19058 *djgpp*)
19059 # DJGPP does not support shared libraries at all
19060 lt_prog_compiler_pic_CXX=
19061 ;;
cristy0c60a692010-11-04 01:09:47 +000019062 haiku*)
19063 # PIC is the default for Haiku.
19064 # The "-static" flag exists, but is broken.
19065 lt_prog_compiler_static_CXX=
19066 ;;
cristy73bd4a52010-10-05 11:24:23 +000019067 interix[3-9]*)
19068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19069 # Instead, we relocate shared libraries at runtime.
19070 ;;
19071 sysv4*MP*)
19072 if test -d /usr/nec; then
19073 lt_prog_compiler_pic_CXX=-Kconform_pic
19074 fi
19075 ;;
19076 hpux*)
19077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19079 # sets the default TLS model and affects inlining.
19080 case $host_cpu in
19081 hppa*64*)
19082 ;;
19083 *)
19084 lt_prog_compiler_pic_CXX='-fPIC'
19085 ;;
19086 esac
19087 ;;
19088 *qnx* | *nto*)
19089 # QNX uses GNU C++, but need to define -shared option too, otherwise
19090 # it will coredump.
19091 lt_prog_compiler_pic_CXX='-fPIC -shared'
19092 ;;
19093 *)
19094 lt_prog_compiler_pic_CXX='-fPIC'
19095 ;;
19096 esac
19097 else
19098 case $host_os in
19099 aix[4-9]*)
19100 # All AIX code is PIC.
19101 if test "$host_cpu" = ia64; then
19102 # AIX 5 now supports IA64 processor
19103 lt_prog_compiler_static_CXX='-Bstatic'
19104 else
19105 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19106 fi
19107 ;;
19108 chorus*)
19109 case $cc_basename in
19110 cxch68*)
19111 # Green Hills C++ Compiler
19112 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19113 ;;
19114 esac
19115 ;;
cristyda16f162011-02-19 23:52:17 +000019116 mingw* | cygwin* | os2* | pw32* | cegcc*)
19117 # This hack is so that the source file can tell whether it is being
19118 # built for inclusion in a dll (and should export symbols for example).
19119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19120 ;;
cristy73bd4a52010-10-05 11:24:23 +000019121 dgux*)
19122 case $cc_basename in
19123 ec++*)
19124 lt_prog_compiler_pic_CXX='-KPIC'
19125 ;;
19126 ghcx*)
19127 # Green Hills C++ Compiler
19128 lt_prog_compiler_pic_CXX='-pic'
19129 ;;
19130 *)
19131 ;;
19132 esac
19133 ;;
19134 freebsd* | dragonfly*)
19135 # FreeBSD uses GNU C++
19136 ;;
19137 hpux9* | hpux10* | hpux11*)
19138 case $cc_basename in
19139 CC*)
19140 lt_prog_compiler_wl_CXX='-Wl,'
19141 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19142 if test "$host_cpu" != ia64; then
19143 lt_prog_compiler_pic_CXX='+Z'
19144 fi
19145 ;;
19146 aCC*)
19147 lt_prog_compiler_wl_CXX='-Wl,'
19148 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19149 case $host_cpu in
19150 hppa*64*|ia64*)
19151 # +Z the default
19152 ;;
19153 *)
19154 lt_prog_compiler_pic_CXX='+Z'
19155 ;;
19156 esac
19157 ;;
19158 *)
19159 ;;
19160 esac
19161 ;;
19162 interix*)
19163 # This is c89, which is MS Visual C++ (no shared libs)
19164 # Anyone wants to do a port?
19165 ;;
19166 irix5* | irix6* | nonstopux*)
19167 case $cc_basename in
19168 CC*)
19169 lt_prog_compiler_wl_CXX='-Wl,'
19170 lt_prog_compiler_static_CXX='-non_shared'
19171 # CC pic flag -KPIC is the default.
19172 ;;
19173 *)
19174 ;;
19175 esac
19176 ;;
cristy0c60a692010-11-04 01:09:47 +000019177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019178 case $cc_basename in
19179 KCC*)
19180 # KAI C++ Compiler
19181 lt_prog_compiler_wl_CXX='--backend -Wl,'
19182 lt_prog_compiler_pic_CXX='-fPIC'
19183 ;;
19184 ecpc* )
19185 # old Intel C++ for x86_64 which still supported -KPIC.
19186 lt_prog_compiler_wl_CXX='-Wl,'
19187 lt_prog_compiler_pic_CXX='-KPIC'
19188 lt_prog_compiler_static_CXX='-static'
19189 ;;
19190 icpc* )
19191 # Intel C++, used to be incompatible with GCC.
19192 # ICC 10 doesn't accept -KPIC any more.
19193 lt_prog_compiler_wl_CXX='-Wl,'
19194 lt_prog_compiler_pic_CXX='-fPIC'
19195 lt_prog_compiler_static_CXX='-static'
19196 ;;
19197 pgCC* | pgcpp*)
19198 # Portland Group C++ compiler
19199 lt_prog_compiler_wl_CXX='-Wl,'
19200 lt_prog_compiler_pic_CXX='-fpic'
19201 lt_prog_compiler_static_CXX='-Bstatic'
19202 ;;
19203 cxx*)
19204 # Compaq C++
19205 # Make sure the PIC flag is empty. It appears that all Alpha
19206 # Linux and Compaq Tru64 Unix objects are PIC.
19207 lt_prog_compiler_pic_CXX=
19208 lt_prog_compiler_static_CXX='-non_shared'
19209 ;;
cristy0c60a692010-11-04 01:09:47 +000019210 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19211 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019212 lt_prog_compiler_wl_CXX='-Wl,'
19213 lt_prog_compiler_pic_CXX='-qpic'
19214 lt_prog_compiler_static_CXX='-qstaticlink'
19215 ;;
19216 *)
19217 case `$CC -V 2>&1 | sed 5q` in
19218 *Sun\ C*)
19219 # Sun C++ 5.9
19220 lt_prog_compiler_pic_CXX='-KPIC'
19221 lt_prog_compiler_static_CXX='-Bstatic'
19222 lt_prog_compiler_wl_CXX='-Qoption ld '
19223 ;;
19224 esac
19225 ;;
19226 esac
19227 ;;
19228 lynxos*)
19229 ;;
19230 m88k*)
19231 ;;
19232 mvs*)
19233 case $cc_basename in
19234 cxx*)
19235 lt_prog_compiler_pic_CXX='-W c,exportall'
19236 ;;
19237 *)
19238 ;;
19239 esac
19240 ;;
19241 netbsd*)
19242 ;;
19243 *qnx* | *nto*)
19244 # QNX uses GNU C++, but need to define -shared option too, otherwise
19245 # it will coredump.
19246 lt_prog_compiler_pic_CXX='-fPIC -shared'
19247 ;;
19248 osf3* | osf4* | osf5*)
19249 case $cc_basename in
19250 KCC*)
19251 lt_prog_compiler_wl_CXX='--backend -Wl,'
19252 ;;
19253 RCC*)
19254 # Rational C++ 2.4.1
19255 lt_prog_compiler_pic_CXX='-pic'
19256 ;;
19257 cxx*)
19258 # Digital/Compaq C++
19259 lt_prog_compiler_wl_CXX='-Wl,'
19260 # Make sure the PIC flag is empty. It appears that all Alpha
19261 # Linux and Compaq Tru64 Unix objects are PIC.
19262 lt_prog_compiler_pic_CXX=
19263 lt_prog_compiler_static_CXX='-non_shared'
19264 ;;
19265 *)
19266 ;;
19267 esac
19268 ;;
19269 psos*)
19270 ;;
19271 solaris*)
19272 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019273 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019274 # Sun C++ 4.2, 5.x and Centerline C++
19275 lt_prog_compiler_pic_CXX='-KPIC'
19276 lt_prog_compiler_static_CXX='-Bstatic'
19277 lt_prog_compiler_wl_CXX='-Qoption ld '
19278 ;;
19279 gcx*)
19280 # Green Hills C++ Compiler
19281 lt_prog_compiler_pic_CXX='-PIC'
19282 ;;
19283 *)
19284 ;;
19285 esac
19286 ;;
19287 sunos4*)
19288 case $cc_basename in
19289 CC*)
19290 # Sun C++ 4.x
19291 lt_prog_compiler_pic_CXX='-pic'
19292 lt_prog_compiler_static_CXX='-Bstatic'
19293 ;;
19294 lcc*)
19295 # Lucid
19296 lt_prog_compiler_pic_CXX='-pic'
19297 ;;
19298 *)
19299 ;;
19300 esac
19301 ;;
19302 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19303 case $cc_basename in
19304 CC*)
19305 lt_prog_compiler_wl_CXX='-Wl,'
19306 lt_prog_compiler_pic_CXX='-KPIC'
19307 lt_prog_compiler_static_CXX='-Bstatic'
19308 ;;
19309 esac
19310 ;;
19311 tandem*)
19312 case $cc_basename in
19313 NCC*)
19314 # NonStop-UX NCC 3.20
19315 lt_prog_compiler_pic_CXX='-KPIC'
19316 ;;
19317 *)
19318 ;;
19319 esac
19320 ;;
19321 vxworks*)
19322 ;;
19323 *)
19324 lt_prog_compiler_can_build_shared_CXX=no
19325 ;;
19326 esac
19327 fi
19328
19329case $host_os in
19330 # For platforms which do not support PIC, -DPIC is meaningless:
19331 *djgpp*)
19332 lt_prog_compiler_pic_CXX=
19333 ;;
19334 *)
19335 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19336 ;;
19337esac
cristy73bd4a52010-10-05 11:24:23 +000019338
cristyda16f162011-02-19 23:52:17 +000019339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19340$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19341if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19342 $as_echo_n "(cached) " >&6
19343else
19344 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19345fi
19346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19347$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19348lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019349
19350#
19351# Check to make sure the PIC flag actually works.
19352#
19353if test -n "$lt_prog_compiler_pic_CXX"; then
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19355$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019356if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019357 $as_echo_n "(cached) " >&6
19358else
19359 lt_cv_prog_compiler_pic_works_CXX=no
19360 ac_outfile=conftest.$ac_objext
19361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19362 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19363 # Insert the option either (1) after the last *FLAGS variable, or
19364 # (2) before a word containing "conftest.", or (3) at the end.
19365 # Note that $ac_compile itself does not contain backslashes and begins
19366 # with a dollar sign (not a hyphen), so the echo should work correctly.
19367 # The option is referenced via a variable to avoid confusing sed.
19368 lt_compile=`echo "$ac_compile" | $SED \
19369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19371 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019373 (eval "$lt_compile" 2>conftest.err)
19374 ac_status=$?
19375 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019377 if (exit $ac_status) && test -s "$ac_outfile"; then
19378 # The compiler can only warn and ignore the option if not recognized
19379 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19383 lt_cv_prog_compiler_pic_works_CXX=yes
19384 fi
19385 fi
19386 $RM conftest*
19387
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19390$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19391
19392if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19393 case $lt_prog_compiler_pic_CXX in
19394 "" | " "*) ;;
19395 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19396 esac
19397else
19398 lt_prog_compiler_pic_CXX=
19399 lt_prog_compiler_can_build_shared_CXX=no
19400fi
19401
19402fi
19403
19404
19405
cristyda16f162011-02-19 23:52:17 +000019406
19407
cristy73bd4a52010-10-05 11:24:23 +000019408#
19409# Check to make sure the static flag actually works.
19410#
19411wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19413$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019414if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019415 $as_echo_n "(cached) " >&6
19416else
19417 lt_cv_prog_compiler_static_works_CXX=no
19418 save_LDFLAGS="$LDFLAGS"
19419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19422 # The linker can only warn and ignore the option if not recognized
19423 # So say no if there are warnings
19424 if test -s conftest.err; then
19425 # Append any errors to the config.log.
19426 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19429 if diff conftest.exp conftest.er2 >/dev/null; then
19430 lt_cv_prog_compiler_static_works_CXX=yes
19431 fi
19432 else
19433 lt_cv_prog_compiler_static_works_CXX=yes
19434 fi
19435 fi
19436 $RM -r conftest*
19437 LDFLAGS="$save_LDFLAGS"
19438
19439fi
19440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19441$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19442
19443if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19444 :
19445else
19446 lt_prog_compiler_static_CXX=
19447fi
19448
19449
19450
19451
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19453$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019454if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019455 $as_echo_n "(cached) " >&6
19456else
19457 lt_cv_prog_compiler_c_o_CXX=no
19458 $RM -r conftest 2>/dev/null
19459 mkdir conftest
19460 cd conftest
19461 mkdir out
19462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19463
19464 lt_compiler_flag="-o out/conftest2.$ac_objext"
19465 # Insert the option either (1) after the last *FLAGS variable, or
19466 # (2) before a word containing "conftest.", or (3) at the end.
19467 # Note that $ac_compile itself does not contain backslashes and begins
19468 # with a dollar sign (not a hyphen), so the echo should work correctly.
19469 lt_compile=`echo "$ac_compile" | $SED \
19470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19472 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019474 (eval "$lt_compile" 2>out/conftest.err)
19475 ac_status=$?
19476 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19479 then
19480 # The compiler can only warn and ignore the option if not recognized
19481 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19485 lt_cv_prog_compiler_c_o_CXX=yes
19486 fi
19487 fi
19488 chmod u+w . 2>&5
19489 $RM conftest*
19490 # SGI C++ compiler will create directory out/ii_files/ for
19491 # template instantiation
19492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19493 $RM out/* && rmdir out
19494 cd ..
19495 $RM -r conftest
19496 $RM conftest*
19497
19498fi
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19500$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19501
19502
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19505$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019506if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019507 $as_echo_n "(cached) " >&6
19508else
19509 lt_cv_prog_compiler_c_o_CXX=no
19510 $RM -r conftest 2>/dev/null
19511 mkdir conftest
19512 cd conftest
19513 mkdir out
19514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19515
19516 lt_compiler_flag="-o out/conftest2.$ac_objext"
19517 # Insert the option either (1) after the last *FLAGS variable, or
19518 # (2) before a word containing "conftest.", or (3) at the end.
19519 # Note that $ac_compile itself does not contain backslashes and begins
19520 # with a dollar sign (not a hyphen), so the echo should work correctly.
19521 lt_compile=`echo "$ac_compile" | $SED \
19522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19524 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019526 (eval "$lt_compile" 2>out/conftest.err)
19527 ac_status=$?
19528 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19531 then
19532 # The compiler can only warn and ignore the option if not recognized
19533 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19537 lt_cv_prog_compiler_c_o_CXX=yes
19538 fi
19539 fi
19540 chmod u+w . 2>&5
19541 $RM conftest*
19542 # SGI C++ compiler will create directory out/ii_files/ for
19543 # template instantiation
19544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19545 $RM out/* && rmdir out
19546 cd ..
19547 $RM -r conftest
19548 $RM conftest*
19549
19550fi
19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19552$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19553
19554
19555
19556
19557hard_links="nottested"
19558if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19559 # do not overwrite the value of need_locks provided by the user
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19561$as_echo_n "checking if we can lock with hard links... " >&6; }
19562 hard_links=yes
19563 $RM conftest*
19564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19565 touch conftest.a
19566 ln conftest.a conftest.b 2>&5 || hard_links=no
19567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19569$as_echo "$hard_links" >&6; }
19570 if test "$hard_links" = no; then
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19572$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19573 need_locks=warn
19574 fi
19575else
19576 need_locks=no
19577fi
19578
19579
19580
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19583
19584 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019585 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019586 case $host_os in
19587 aix[4-9]*)
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019590 # Also, AIX nm treats weak defined symbols like other global defined
19591 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019593 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000019594 else
19595 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19596 fi
19597 ;;
19598 pw32*)
19599 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019600 ;;
cristy73bd4a52010-10-05 11:24:23 +000019601 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019602 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019603 cl*)
19604 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19605 ;;
cristyda16f162011-02-19 23:52:17 +000019606 *)
19607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19608 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19609 ;;
19610 esac
19611 ;;
cristy73bd4a52010-10-05 11:24:23 +000019612 *)
19613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019614 ;;
cristy73bd4a52010-10-05 11:24:23 +000019615 esac
cristy73bd4a52010-10-05 11:24:23 +000019616
19617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19618$as_echo "$ld_shlibs_CXX" >&6; }
19619test "$ld_shlibs_CXX" = no && can_build_shared=no
19620
19621with_gnu_ld_CXX=$with_gnu_ld
19622
19623
19624
19625
19626
19627
19628#
19629# Do we need to explicitly link libc?
19630#
19631case "x$archive_cmds_need_lc_CXX" in
19632x|xyes)
19633 # Assume -lc should be added
19634 archive_cmds_need_lc_CXX=yes
19635
19636 if test "$enable_shared" = yes && test "$GCC" = yes; then
19637 case $archive_cmds_CXX in
19638 *'~'*)
19639 # FIXME: we may have to deal with multi-command sequences.
19640 ;;
19641 '$CC '*)
19642 # Test whether the compiler implicitly links with -lc since on some
19643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19644 # to ld, don't add -lc before -lgcc.
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19646$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019647if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019648 $as_echo_n "(cached) " >&6
19649else
19650 $RM conftest*
19651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019652
cristy0c60a692010-11-04 01:09:47 +000019653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019654 (eval $ac_compile) 2>&5
19655 ac_status=$?
19656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19657 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019658 soname=conftest
19659 lib=conftest
19660 libobjs=conftest.$ac_objext
19661 deplibs=
19662 wl=$lt_prog_compiler_wl_CXX
19663 pic_flag=$lt_prog_compiler_pic_CXX
19664 compiler_flags=-v
19665 linker_flags=-v
19666 verstring=
19667 output_objdir=.
19668 libname=conftest
19669 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19670 allow_undefined_flag_CXX=
19671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019672 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19673 ac_status=$?
19674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19675 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019676 then
19677 lt_cv_archive_cmds_need_lc_CXX=no
19678 else
19679 lt_cv_archive_cmds_need_lc_CXX=yes
19680 fi
19681 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19682 else
19683 cat conftest.err 1>&5
19684 fi
19685 $RM conftest*
19686
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19689$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19690 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019691 ;;
19692 esac
19693 fi
19694 ;;
19695esac
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
cristy73bd4a52010-10-05 11:24:23 +000019758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19759$as_echo_n "checking dynamic linker characteristics... " >&6; }
19760
19761library_names_spec=
19762libname_spec='lib$name'
19763soname_spec=
19764shrext_cmds=".so"
19765postinstall_cmds=
19766postuninstall_cmds=
19767finish_cmds=
19768finish_eval=
19769shlibpath_var=
19770shlibpath_overrides_runpath=unknown
19771version_type=none
19772dynamic_linker="$host_os ld.so"
19773sys_lib_dlsearch_path_spec="/lib /usr/lib"
19774need_lib_prefix=unknown
19775hardcode_into_libs=no
19776
19777# when you set need_version to no, make sure it does not cause -set_version
19778# flags to be left without arguments
19779need_version=unknown
19780
19781case $host_os in
19782aix3*)
cristy99bd5232011-12-07 14:38:20 +000019783 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19786
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 ;;
19790
19791aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019792 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019793 need_lib_prefix=no
19794 need_version=no
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 else
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19806 case $host_os in
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo ' yes '
19810 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19811 :
19812 else
19813 can_build_shared=no
19814 fi
19815 ;;
19816 esac
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 else
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 fi
19831 shlibpath_var=LIBPATH
19832 fi
19833 ;;
19834
19835amigaos*)
19836 case $host_cpu in
19837 powerpc)
19838 # Since July 2007 AmigaOS4 officially supports .so libraries.
19839 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841 ;;
19842 m68k)
19843 library_names_spec='$libname.ixlibrary $libname.a'
19844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019845 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000019846 ;;
19847 esac
19848 ;;
19849
19850beos*)
19851 library_names_spec='${libname}${shared_ext}'
19852 dynamic_linker="$host_os ld.so"
19853 shlibpath_var=LIBRARY_PATH
19854 ;;
19855
19856bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019857 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019858 need_version=no
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19862 shlibpath_var=LD_LIBRARY_PATH
19863 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19864 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19865 # the default ld.so.conf also contains /usr/contrib/lib and
19866 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19867 # libtool to hard-code these into programs
19868 ;;
19869
19870cygwin* | mingw* | pw32* | cegcc*)
19871 version_type=windows
19872 shrext_cmds=".dll"
19873 need_version=no
19874 need_lib_prefix=no
19875
cristyda16f162011-02-19 23:52:17 +000019876 case $GCC,$cc_basename in
19877 yes,*)
19878 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019879 library_names_spec='$libname.dll.a'
19880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19881 postinstall_cmds='base_file=`basename \${file}`~
19882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19883 dldir=$destdir/`dirname \$dlpath`~
19884 test -d \$dldir || mkdir -p \$dldir~
19885 $install_prog $dir/$dlname \$dldir/$dlname~
19886 chmod a+x \$dldir/$dlname~
19887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19889 fi'
19890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19891 dlpath=$dir/\$dldll~
19892 $RM \$dlpath'
19893 shlibpath_overrides_runpath=yes
19894
19895 case $host_os in
19896 cygwin*)
19897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019899
cristy73bd4a52010-10-05 11:24:23 +000019900 ;;
19901 mingw* | cegcc*)
19902 # MinGW DLLs use traditional 'lib' prefix
19903 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019904 ;;
19905 pw32*)
19906 # pw32 DLLs use 'pw' prefix rather than 'lib'
19907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19908 ;;
19909 esac
cristyda16f162011-02-19 23:52:17 +000019910 dynamic_linker='Win32 ld.exe'
19911 ;;
19912
19913 *,cl*)
19914 # Native MSVC
19915 libname_spec='$name'
19916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917 library_names_spec='${libname}.dll.lib'
19918
19919 case $build_os in
19920 mingw*)
19921 sys_lib_search_path_spec=
19922 lt_save_ifs=$IFS
19923 IFS=';'
19924 for lt_path in $LIB
19925 do
19926 IFS=$lt_save_ifs
19927 # Let DOS variable expansion print the short 8.3 style file name.
19928 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19929 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19930 done
19931 IFS=$lt_save_ifs
19932 # Convert to MSYS style.
19933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19934 ;;
19935 cygwin*)
19936 # Convert to unix form, then to dos form, then back to unix form
19937 # but this time dos style (no spaces!) so that the unix form looks
19938 # like /cygdrive/c/PROGRA~1:/cygdr...
19939 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19940 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19941 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19942 ;;
19943 *)
19944 sys_lib_search_path_spec="$LIB"
19945 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19946 # It is most probably a Windows format PATH.
19947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19948 else
19949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19950 fi
19951 # FIXME: find the short name or the path components, as spaces are
19952 # common. (e.g. "Program Files" -> "PROGRA~1")
19953 ;;
19954 esac
19955
19956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19957 postinstall_cmds='base_file=`basename \${file}`~
19958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19959 dldir=$destdir/`dirname \$dlpath`~
19960 test -d \$dldir || mkdir -p \$dldir~
19961 $install_prog $dir/$dlname \$dldir/$dlname'
19962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19963 dlpath=$dir/\$dldll~
19964 $RM \$dlpath'
19965 shlibpath_overrides_runpath=yes
19966 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019967 ;;
19968
19969 *)
cristyda16f162011-02-19 23:52:17 +000019970 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019972 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019973 ;;
19974 esac
cristy73bd4a52010-10-05 11:24:23 +000019975 # FIXME: first we should search . and the directory the executable is in
19976 shlibpath_var=PATH
19977 ;;
19978
19979darwin* | rhapsody*)
19980 dynamic_linker="$host_os dyld"
19981 version_type=darwin
19982 need_lib_prefix=no
19983 need_version=no
19984 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19985 soname_spec='${libname}${release}${major}$shared_ext'
19986 shlibpath_overrides_runpath=yes
19987 shlibpath_var=DYLD_LIBRARY_PATH
19988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19989
19990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19991 ;;
19992
19993dgux*)
cristy99bd5232011-12-07 14:38:20 +000019994 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019995 need_lib_prefix=no
19996 need_version=no
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 shlibpath_var=LD_LIBRARY_PATH
20000 ;;
20001
cristy73bd4a52010-10-05 11:24:23 +000020002freebsd* | dragonfly*)
20003 # DragonFly does not have aout. When/if they implement a new
20004 # versioning mechanism, adjust this.
20005 if test -x /usr/bin/objformat; then
20006 objformat=`/usr/bin/objformat`
20007 else
20008 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020009 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020010 *) objformat=elf ;;
20011 esac
20012 fi
20013 version_type=freebsd-$objformat
20014 case $version_type in
20015 freebsd-elf*)
20016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20017 need_version=no
20018 need_lib_prefix=no
20019 ;;
20020 freebsd-*)
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20022 need_version=yes
20023 ;;
20024 esac
20025 shlibpath_var=LD_LIBRARY_PATH
20026 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020027 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020028 shlibpath_overrides_runpath=yes
20029 ;;
20030 freebsd3.[01]* | freebsdelf3.[01]*)
20031 shlibpath_overrides_runpath=yes
20032 hardcode_into_libs=yes
20033 ;;
20034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20036 shlibpath_overrides_runpath=no
20037 hardcode_into_libs=yes
20038 ;;
20039 *) # from 4.6 on, and DragonFly
20040 shlibpath_overrides_runpath=yes
20041 hardcode_into_libs=yes
20042 ;;
20043 esac
20044 ;;
20045
20046gnu*)
cristy99bd5232011-12-07 14:38:20 +000020047 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020048 need_lib_prefix=no
20049 need_version=no
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020053 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020054 hardcode_into_libs=yes
20055 ;;
20056
cristy0c60a692010-11-04 01:09:47 +000020057haiku*)
cristy99bd5232011-12-07 14:38:20 +000020058 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020059 need_lib_prefix=no
20060 need_version=no
20061 dynamic_linker="$host_os runtime_loader"
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 shlibpath_var=LIBRARY_PATH
20065 shlibpath_overrides_runpath=yes
20066 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20067 hardcode_into_libs=yes
20068 ;;
20069
cristy73bd4a52010-10-05 11:24:23 +000020070hpux9* | hpux10* | hpux11*)
20071 # Give a soname corresponding to the major version so that dld.sl refuses to
20072 # link against other versions.
20073 version_type=sunos
20074 need_lib_prefix=no
20075 need_version=no
20076 case $host_cpu in
20077 ia64*)
20078 shrext_cmds='.so'
20079 hardcode_into_libs=yes
20080 dynamic_linker="$host_os dld.so"
20081 shlibpath_var=LD_LIBRARY_PATH
20082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 if test "X$HPUX_IA64_MODE" = X32; then
20086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20087 else
20088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20089 fi
20090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20091 ;;
20092 hppa*64*)
20093 shrext_cmds='.sl'
20094 hardcode_into_libs=yes
20095 dynamic_linker="$host_os dld.sl"
20096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20099 soname_spec='${libname}${release}${shared_ext}$major'
20100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20102 ;;
20103 *)
20104 shrext_cmds='.sl'
20105 dynamic_linker="$host_os dld.sl"
20106 shlibpath_var=SHLIB_PATH
20107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 ;;
20111 esac
cristy0c60a692010-11-04 01:09:47 +000020112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020113 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020114 # or fails outright, so override atomically:
20115 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020116 ;;
20117
20118interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020119 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 hardcode_into_libs=yes
20128 ;;
20129
20130irix5* | irix6* | nonstopux*)
20131 case $host_os in
20132 nonstopux*) version_type=nonstopux ;;
20133 *)
20134 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020135 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020136 else
20137 version_type=irix
20138 fi ;;
20139 esac
20140 need_lib_prefix=no
20141 need_version=no
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20144 case $host_os in
20145 irix5* | nonstopux*)
20146 libsuff= shlibsuff=
20147 ;;
20148 *)
20149 case $LD in # libtool.m4 will add one of these switches to LD
20150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20151 libsuff= shlibsuff= libmagic=32-bit;;
20152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20153 libsuff=32 shlibsuff=N32 libmagic=N32;;
20154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20156 *) libsuff= shlibsuff= libmagic=never-match;;
20157 esac
20158 ;;
20159 esac
20160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20161 shlibpath_overrides_runpath=no
20162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20164 hardcode_into_libs=yes
20165 ;;
20166
20167# No shared lib support for Linux oldld, aout, or coff.
20168linux*oldld* | linux*aout* | linux*coff*)
20169 dynamic_linker=no
20170 ;;
20171
cristy99bd5232011-12-07 14:38:20 +000020172# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020173linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020174 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020175 need_lib_prefix=no
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020182
cristy73bd4a52010-10-05 11:24:23 +000020183 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020184 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020185 $as_echo_n "(cached) " >&6
20186else
20187 lt_cv_shlibpath_overrides_runpath=no
20188 save_LDFLAGS=$LDFLAGS
20189 save_libdir=$libdir
20190 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20191 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020193/* end confdefs.h. */
20194
20195int
20196main ()
20197{
20198
20199 ;
20200 return 0;
20201}
20202_ACEOF
20203if ac_fn_cxx_try_link "$LINENO"; then :
20204 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020205 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020206fi
20207fi
20208rm -f core conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020210 LDFLAGS=$save_LDFLAGS
20211 libdir=$save_libdir
20212
20213fi
20214
20215 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020216
20217 # This implies no fast_install, which is unacceptable.
20218 # Some rework will be needed to allow for fast_install
20219 # before this can be enabled.
20220 hardcode_into_libs=yes
20221
20222 # Add ABI-specific directories to the system library path.
20223 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20224
20225 # Append ld.so.conf contents to the search path
20226 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020227 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000020228 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020229
cristy73bd4a52010-10-05 11:24:23 +000020230 fi
20231
20232 # We used to test for /lib/ld.so.1 and disable shared libraries on
20233 # powerpc, because MkLinux only supported shared libraries with the
20234 # GNU dynamic linker. Since this was broken with cross compilers,
20235 # most powerpc-linux boxes support dynamic linking these days and
20236 # people can always --disable-shared, the test was removed, and we
20237 # assume the GNU/Linux dynamic linker is in use.
20238 dynamic_linker='GNU/Linux ld.so'
20239 ;;
20240
20241netbsd*)
20242 version_type=sunos
20243 need_lib_prefix=no
20244 need_version=no
20245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20248 dynamic_linker='NetBSD (a.out) ld.so'
20249 else
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 dynamic_linker='NetBSD ld.elf_so'
20253 fi
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=yes
20256 hardcode_into_libs=yes
20257 ;;
20258
20259newsos6)
cristy99bd5232011-12-07 14:38:20 +000020260 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 shlibpath_overrides_runpath=yes
20264 ;;
20265
20266*nto* | *qnx*)
20267 version_type=qnx
20268 need_lib_prefix=no
20269 need_version=no
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=no
20274 hardcode_into_libs=yes
20275 dynamic_linker='ldqnx.so'
20276 ;;
20277
20278openbsd*)
20279 version_type=sunos
20280 sys_lib_dlsearch_path_spec="/usr/lib"
20281 need_lib_prefix=no
20282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20283 case $host_os in
20284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20285 *) need_version=no ;;
20286 esac
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20291 case $host_os in
20292 openbsd2.[89] | openbsd2.[89].*)
20293 shlibpath_overrides_runpath=no
20294 ;;
20295 *)
20296 shlibpath_overrides_runpath=yes
20297 ;;
20298 esac
20299 else
20300 shlibpath_overrides_runpath=yes
20301 fi
20302 ;;
20303
20304os2*)
20305 libname_spec='$name'
20306 shrext_cmds=".dll"
20307 need_lib_prefix=no
20308 library_names_spec='$libname${shared_ext} $libname.a'
20309 dynamic_linker='OS/2 ld.exe'
20310 shlibpath_var=LIBPATH
20311 ;;
20312
20313osf3* | osf4* | osf5*)
20314 version_type=osf
20315 need_lib_prefix=no
20316 need_version=no
20317 soname_spec='${libname}${release}${shared_ext}$major'
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20322 ;;
20323
20324rdos*)
20325 dynamic_linker=no
20326 ;;
20327
20328solaris*)
cristy99bd5232011-12-07 14:38:20 +000020329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 shlibpath_overrides_runpath=yes
20336 hardcode_into_libs=yes
20337 # ldd complains unless libraries are executable
20338 postinstall_cmds='chmod +x $lib'
20339 ;;
20340
20341sunos4*)
20342 version_type=sunos
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 if test "$with_gnu_ld" = yes; then
20348 need_lib_prefix=no
20349 fi
20350 need_version=yes
20351 ;;
20352
20353sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020354 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 case $host_vendor in
20359 sni)
20360 shlibpath_overrides_runpath=no
20361 need_lib_prefix=no
20362 runpath_var=LD_RUN_PATH
20363 ;;
20364 siemens)
20365 need_lib_prefix=no
20366 ;;
20367 motorola)
20368 need_lib_prefix=no
20369 need_version=no
20370 shlibpath_overrides_runpath=no
20371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20372 ;;
20373 esac
20374 ;;
20375
20376sysv4*MP*)
20377 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020378 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20380 soname_spec='$libname${shared_ext}.$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 fi
20383 ;;
20384
20385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20386 version_type=freebsd-elf
20387 need_lib_prefix=no
20388 need_version=no
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=yes
20393 hardcode_into_libs=yes
20394 if test "$with_gnu_ld" = yes; then
20395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20396 else
20397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20398 case $host_os in
20399 sco3.2v5*)
20400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20401 ;;
20402 esac
20403 fi
20404 sys_lib_dlsearch_path_spec='/usr/lib'
20405 ;;
20406
20407tpf*)
20408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020409 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020410 need_lib_prefix=no
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 shlibpath_overrides_runpath=no
20415 hardcode_into_libs=yes
20416 ;;
20417
20418uts4*)
cristy99bd5232011-12-07 14:38:20 +000020419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 ;;
20424
20425*)
20426 dynamic_linker=no
20427 ;;
20428esac
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20430$as_echo "$dynamic_linker" >&6; }
20431test "$dynamic_linker" = no && can_build_shared=no
20432
20433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20434if test "$GCC" = yes; then
20435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20436fi
20437
20438if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20439 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20440fi
20441if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20442 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20443fi
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
cristy0c60a692010-11-04 01:09:47 +000020480
20481
cristy73bd4a52010-10-05 11:24:23 +000020482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20483$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20484hardcode_action_CXX=
20485if test -n "$hardcode_libdir_flag_spec_CXX" ||
20486 test -n "$runpath_var_CXX" ||
20487 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20488
20489 # We can hardcode non-existent directories.
20490 if test "$hardcode_direct_CXX" != no &&
20491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20492 # have to relink, otherwise we might link with an installed library
20493 # when we should be linking with a yet-to-be-installed one
20494 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20495 test "$hardcode_minus_L_CXX" != no; then
20496 # Linking always hardcodes the temporary library directory.
20497 hardcode_action_CXX=relink
20498 else
20499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20500 hardcode_action_CXX=immediate
20501 fi
20502else
20503 # We cannot hardcode anything, or else we can only hardcode existing
20504 # directories.
20505 hardcode_action_CXX=unsupported
20506fi
20507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20508$as_echo "$hardcode_action_CXX" >&6; }
20509
20510if test "$hardcode_action_CXX" = relink ||
20511 test "$inherit_rpath_CXX" = yes; then
20512 # Fast installation is not supported
20513 enable_fast_install=no
20514elif test "$shlibpath_overrides_runpath" = yes ||
20515 test "$enable_shared" = no; then
20516 # Fast installation is not necessary
20517 enable_fast_install=needless
20518fi
20519
20520
20521
20522
20523
20524
20525
20526 fi # test -n "$compiler"
20527
20528 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020529 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020530 LDCXX=$LD
20531 LD=$lt_save_LD
20532 GCC=$lt_save_GCC
20533 with_gnu_ld=$lt_save_with_gnu_ld
20534 lt_cv_path_LDCXX=$lt_cv_path_LD
20535 lt_cv_path_LD=$lt_save_path_LD
20536 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20537 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20538fi # test "$_lt_caught_CXX_error" != yes
20539
20540ac_ext=c
20541ac_cpp='$CPP $CPPFLAGS'
20542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544ac_compiler_gnu=$ac_cv_c_compiler_gnu
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
cristy99bd5232011-12-07 14:38:20 +000020558
20559
cristy73bd4a52010-10-05 11:24:23 +000020560 ac_config_commands="$ac_config_commands libtool"
20561
20562
20563
20564
20565# Only expand once:
20566
20567
20568
cristy3ed852e2009-09-05 21:47:34 +000020569
20570
20571# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020572
20573
20574
20575
20576
20577
20578
cristy73bd4a52010-10-05 11:24:23 +000020579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20580$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020581if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020582 $as_echo_n "(cached) " >&6
20583else
20584
20585module=yes
20586eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020587module=no
20588eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020589
20590fi
20591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20592$as_echo "$libltdl_cv_shlibext" >&6; }
20593if test -n "$libltdl_cv_shlibext"; then
20594
20595cat >>confdefs.h <<_ACEOF
20596#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20597_ACEOF
20598
20599fi
cristy99bd5232011-12-07 14:38:20 +000020600if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20601
20602cat >>confdefs.h <<_ACEOF
20603#define LT_SHARED_EXT "$libltdl_cv_shrext"
20604_ACEOF
20605
20606fi
cristy73bd4a52010-10-05 11:24:23 +000020607
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20609$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020610if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020611 $as_echo_n "(cached) " >&6
20612else
20613 lt_cv_module_path_var="$shlibpath_var"
20614fi
20615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20616$as_echo "$lt_cv_module_path_var" >&6; }
20617if test -n "$lt_cv_module_path_var"; then
20618
20619cat >>confdefs.h <<_ACEOF
20620#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20621_ACEOF
20622
20623fi
20624
20625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20626$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020627if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020628 $as_echo_n "(cached) " >&6
20629else
20630 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20633$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20634if test -n "$lt_cv_sys_dlsearch_path"; then
20635 sys_dlsearch_path=
20636 for dir in $lt_cv_sys_dlsearch_path; do
20637 if test -z "$sys_dlsearch_path"; then
20638 sys_dlsearch_path="$dir"
20639 else
20640 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20641 fi
20642 done
20643
20644cat >>confdefs.h <<_ACEOF
20645#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20646_ACEOF
20647
20648fi
20649
20650
20651LT_DLLOADERS=
20652
20653
20654ac_ext=c
20655ac_cpp='$CPP $CPPFLAGS'
20656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
20660
20661LIBADD_DLOPEN=
20662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20663$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020664if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020665 $as_echo_n "(cached) " >&6
20666else
20667 ac_func_search_save_LIBS=$LIBS
20668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20669/* end confdefs.h. */
20670
20671/* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20674#ifdef __cplusplus
20675extern "C"
20676#endif
20677char dlopen ();
20678int
20679main ()
20680{
20681return dlopen ();
20682 ;
20683 return 0;
20684}
20685_ACEOF
20686for ac_lib in '' dl; do
20687 if test -z "$ac_lib"; then
20688 ac_res="none required"
20689 else
20690 ac_res=-l$ac_lib
20691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20692 fi
20693 if ac_fn_c_try_link "$LINENO"; then :
20694 ac_cv_search_dlopen=$ac_res
20695fi
20696rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020698 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020699 break
20700fi
20701done
cristyda16f162011-02-19 23:52:17 +000020702if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020703
20704else
20705 ac_cv_search_dlopen=no
20706fi
20707rm conftest.$ac_ext
20708LIBS=$ac_func_search_save_LIBS
20709fi
20710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20711$as_echo "$ac_cv_search_dlopen" >&6; }
20712ac_res=$ac_cv_search_dlopen
20713if test "$ac_res" != no; then :
20714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20715
20716$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20717
20718 if test "$ac_cv_search_dlopen" != "none required" ; then
20719 LIBADD_DLOPEN="-ldl"
20720 fi
20721 libltdl_cv_lib_dl_dlopen="yes"
20722 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20723else
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725/* end confdefs.h. */
20726#if HAVE_DLFCN_H
20727# include <dlfcn.h>
20728#endif
20729
20730int
20731main ()
20732{
20733dlopen(0, 0);
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738if ac_fn_c_try_link "$LINENO"; then :
20739
20740$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20741
20742 libltdl_cv_func_dlopen="yes"
20743 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20744else
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20746$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020747if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020748 $as_echo_n "(cached) " >&6
20749else
20750 ac_check_lib_save_LIBS=$LIBS
20751LIBS="-lsvld $LIBS"
20752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753/* end confdefs.h. */
20754
20755/* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758#ifdef __cplusplus
20759extern "C"
20760#endif
20761char dlopen ();
20762int
20763main ()
20764{
20765return dlopen ();
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770if ac_fn_c_try_link "$LINENO"; then :
20771 ac_cv_lib_svld_dlopen=yes
20772else
20773 ac_cv_lib_svld_dlopen=no
20774fi
20775rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777LIBS=$ac_check_lib_save_LIBS
20778fi
20779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20780$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020781if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020782
20783$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20784
20785 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20786 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20787fi
20788
20789fi
20790rm -f core conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792fi
20793
20794if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20795then
20796 lt_save_LIBS="$LIBS"
20797 LIBS="$LIBS $LIBADD_DLOPEN"
20798 for ac_func in dlerror
20799do :
20800 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020801if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020802 cat >>confdefs.h <<_ACEOF
20803#define HAVE_DLERROR 1
20804_ACEOF
20805
20806fi
20807done
20808
20809 LIBS="$lt_save_LIBS"
20810fi
20811
20812
20813LIBADD_SHL_LOAD=
20814ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020815if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020816
20817$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20818
20819 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20820else
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20822$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020823if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020824 $as_echo_n "(cached) " >&6
20825else
20826 ac_check_lib_save_LIBS=$LIBS
20827LIBS="-ldld $LIBS"
20828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829/* end confdefs.h. */
20830
20831/* Override any GCC internal prototype to avoid an error.
20832 Use char because int might match the return type of a GCC
20833 builtin and then its argument prototype would still apply. */
20834#ifdef __cplusplus
20835extern "C"
20836#endif
20837char shl_load ();
20838int
20839main ()
20840{
20841return shl_load ();
20842 ;
20843 return 0;
20844}
20845_ACEOF
20846if ac_fn_c_try_link "$LINENO"; then :
20847 ac_cv_lib_dld_shl_load=yes
20848else
20849 ac_cv_lib_dld_shl_load=no
20850fi
20851rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20853LIBS=$ac_check_lib_save_LIBS
20854fi
20855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20856$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020857if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020858
20859$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20860
20861 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20862 LIBADD_SHL_LOAD="-ldld"
20863fi
20864
20865fi
20866
20867
20868
20869case $host_os in
20870darwin[1567].*)
20871# We only want this for pre-Mac OS X 10.4.
20872 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020873if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020874
20875$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20876
20877 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20878fi
20879
20880 ;;
20881beos*)
20882 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20883 ;;
20884cygwin* | mingw* | os2* | pw32*)
20885 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20886"
cristyda16f162011-02-19 23:52:17 +000020887if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020888 ac_have_decl=1
20889else
20890 ac_have_decl=0
20891fi
20892
20893cat >>confdefs.h <<_ACEOF
20894#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20895_ACEOF
20896
20897 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20898 ;;
20899esac
20900
20901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20902$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020903if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020904 $as_echo_n "(cached) " >&6
20905else
20906 ac_check_lib_save_LIBS=$LIBS
20907LIBS="-ldld $LIBS"
20908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h. */
20910
20911/* Override any GCC internal prototype to avoid an error.
20912 Use char because int might match the return type of a GCC
20913 builtin and then its argument prototype would still apply. */
20914#ifdef __cplusplus
20915extern "C"
20916#endif
20917char dld_link ();
20918int
20919main ()
20920{
20921return dld_link ();
20922 ;
20923 return 0;
20924}
20925_ACEOF
20926if ac_fn_c_try_link "$LINENO"; then :
20927 ac_cv_lib_dld_dld_link=yes
20928else
20929 ac_cv_lib_dld_dld_link=no
20930fi
20931rm -f core conftest.err conftest.$ac_objext \
20932 conftest$ac_exeext conftest.$ac_ext
20933LIBS=$ac_check_lib_save_LIBS
20934fi
20935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20936$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020937if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020938
20939$as_echo "#define HAVE_DLD 1" >>confdefs.h
20940
20941 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20942fi
20943
20944
20945
20946
20947LT_DLPREOPEN=
20948if test -n "$LT_DLLOADERS"
20949then
20950 for lt_loader in $LT_DLLOADERS; do
20951 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20952 done
20953
20954$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20955
20956fi
20957
20958
20959LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20960
20961
20962ac_ext=c
20963ac_cpp='$CPP $CPPFLAGS'
20964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967
20968
20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20970$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020971if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020972 $as_echo_n "(cached) " >&6
20973else
20974 lt_cv_sys_symbol_underscore=no
20975 cat > conftest.$ac_ext <<_LT_EOF
20976void nm_test_func(){}
20977int main(){nm_test_func;return 0;}
20978_LT_EOF
20979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20980 (eval $ac_compile) 2>&5
20981 ac_status=$?
20982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20983 test $ac_status = 0; }; then
20984 # Now try to grab the symbols.
20985 ac_nlist=conftest.nm
20986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20987 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20988 ac_status=$?
20989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20990 test $ac_status = 0; } && test -s "$ac_nlist"; then
20991 # See whether the symbols have a leading underscore.
20992 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20993 lt_cv_sys_symbol_underscore=yes
20994 else
20995 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20996 :
20997 else
20998 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20999 fi
21000 fi
21001 else
21002 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21003 fi
21004 else
21005 echo "configure: failed program was:" >&5
21006 cat conftest.c >&5
21007 fi
21008 rm -rf conftest*
21009
21010fi
21011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21012$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21013 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21014
21015
21016if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21017 if test x"$libltdl_cv_func_dlopen" = xyes ||
21018 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21020$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021021if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021022 $as_echo_n "(cached) " >&6
21023else
21024 libltdl_cv_need_uscore=unknown
21025 save_LIBS="$LIBS"
21026 LIBS="$LIBS $LIBADD_DLOPEN"
21027 if test "$cross_compiling" = yes; then :
21028 libltdl_cv_need_uscore=cross
21029else
21030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21031 lt_status=$lt_dlunknown
21032 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021033#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021034#include "confdefs.h"
21035
21036#if HAVE_DLFCN_H
21037#include <dlfcn.h>
21038#endif
21039
21040#include <stdio.h>
21041
21042#ifdef RTLD_GLOBAL
21043# define LT_DLGLOBAL RTLD_GLOBAL
21044#else
21045# ifdef DL_GLOBAL
21046# define LT_DLGLOBAL DL_GLOBAL
21047# else
21048# define LT_DLGLOBAL 0
21049# endif
21050#endif
21051
21052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21053 find out it does not work in some platform. */
21054#ifndef LT_DLLAZY_OR_NOW
21055# ifdef RTLD_LAZY
21056# define LT_DLLAZY_OR_NOW RTLD_LAZY
21057# else
21058# ifdef DL_LAZY
21059# define LT_DLLAZY_OR_NOW DL_LAZY
21060# else
21061# ifdef RTLD_NOW
21062# define LT_DLLAZY_OR_NOW RTLD_NOW
21063# else
21064# ifdef DL_NOW
21065# define LT_DLLAZY_OR_NOW DL_NOW
21066# else
21067# define LT_DLLAZY_OR_NOW 0
21068# endif
21069# endif
21070# endif
21071# endif
21072#endif
21073
cristy0c60a692010-11-04 01:09:47 +000021074/* When -fvisbility=hidden is used, assume the code has been annotated
21075 correspondingly for the symbols needed. */
21076#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021077int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021078#endif
21079
cristyda16f162011-02-19 23:52:17 +000021080int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021081int main ()
21082{
21083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21084 int status = $lt_dlunknown;
21085
21086 if (self)
21087 {
21088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021089 else
21090 {
21091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21092 else puts (dlerror ());
21093 }
cristy73bd4a52010-10-05 11:24:23 +000021094 /* dlclose (self); */
21095 }
21096 else
21097 puts (dlerror ());
21098
21099 return status;
21100}
21101_LT_EOF
21102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21103 (eval $ac_link) 2>&5
21104 ac_status=$?
21105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21107 (./conftest; exit; ) >&5 2>/dev/null
21108 lt_status=$?
21109 case x$lt_status in
21110 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21111 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21112 x$lt_dlunknown|x*) ;;
21113 esac
21114 else :
21115 # compilation failed
21116
21117 fi
21118fi
21119rm -fr conftest*
21120
21121 LIBS="$save_LIBS"
21122
21123fi
21124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21125$as_echo "$libltdl_cv_need_uscore" >&6; }
21126 fi
21127fi
21128
21129if test x"$libltdl_cv_need_uscore" = xyes; then
21130
21131$as_echo "#define NEED_USCORE 1" >>confdefs.h
21132
21133fi
21134
21135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21136$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021137if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021138 $as_echo_n "(cached) " >&6
21139else
21140 # PORTME does your system automatically load deplibs for dlopen?
21141 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21142 # For now, we just catch OSes we know something about -- in the
21143 # future, we'll try test this programmatically.
21144 lt_cv_sys_dlopen_deplibs=unknown
21145 case $host_os in
21146 aix3*|aix4.1.*|aix4.2.*)
21147 # Unknown whether this is true for these versions of AIX, but
21148 # we want this `case' here to explicitly catch those versions.
21149 lt_cv_sys_dlopen_deplibs=unknown
21150 ;;
21151 aix[4-9]*)
21152 lt_cv_sys_dlopen_deplibs=yes
21153 ;;
21154 amigaos*)
21155 case $host_cpu in
21156 powerpc)
21157 lt_cv_sys_dlopen_deplibs=no
21158 ;;
21159 esac
21160 ;;
21161 darwin*)
21162 # Assuming the user has installed a libdl from somewhere, this is true
21163 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21164 lt_cv_sys_dlopen_deplibs=yes
21165 ;;
21166 freebsd* | dragonfly*)
21167 lt_cv_sys_dlopen_deplibs=yes
21168 ;;
cristy0c60a692010-11-04 01:09:47 +000021169 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021170 # GNU and its variants, using gnu ld.so (Glibc)
21171 lt_cv_sys_dlopen_deplibs=yes
21172 ;;
21173 hpux10*|hpux11*)
21174 lt_cv_sys_dlopen_deplibs=yes
21175 ;;
21176 interix*)
21177 lt_cv_sys_dlopen_deplibs=yes
21178 ;;
21179 irix[12345]*|irix6.[01]*)
21180 # Catch all versions of IRIX before 6.2, and indicate that we don't
21181 # know how it worked for any of those versions.
21182 lt_cv_sys_dlopen_deplibs=unknown
21183 ;;
21184 irix*)
21185 # The case above catches anything before 6.2, and it's known that
21186 # at 6.2 and later dlopen does load deplibs.
21187 lt_cv_sys_dlopen_deplibs=yes
21188 ;;
21189 netbsd*)
21190 lt_cv_sys_dlopen_deplibs=yes
21191 ;;
21192 openbsd*)
21193 lt_cv_sys_dlopen_deplibs=yes
21194 ;;
21195 osf[1234]*)
21196 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21197 # it did *not* use an RPATH in a shared library to find objects the
21198 # library depends on, so we explicitly say `no'.
21199 lt_cv_sys_dlopen_deplibs=no
21200 ;;
21201 osf5.0|osf5.0a|osf5.1)
21202 # dlopen *does* load deplibs and with the right loader patch applied
21203 # it even uses RPATH in a shared library to search for shared objects
21204 # that the library depends on, but there's no easy way to know if that
21205 # patch is installed. Since this is the case, all we can really
21206 # say is unknown -- it depends on the patch being installed. If
21207 # it is, this changes to `yes'. Without it, it would be `no'.
21208 lt_cv_sys_dlopen_deplibs=unknown
21209 ;;
21210 osf*)
21211 # the two cases above should catch all versions of osf <= 5.1. Read
21212 # the comments above for what we know about them.
21213 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21214 # is used to find them so we can finally say `yes'.
21215 lt_cv_sys_dlopen_deplibs=yes
21216 ;;
21217 qnx*)
21218 lt_cv_sys_dlopen_deplibs=yes
21219 ;;
21220 solaris*)
21221 lt_cv_sys_dlopen_deplibs=yes
21222 ;;
21223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21224 libltdl_cv_sys_dlopen_deplibs=yes
21225 ;;
21226 esac
21227
21228fi
21229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21230$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21231if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21232
21233$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21234
21235fi
21236
21237:
21238
21239for ac_header in argz.h
21240do :
21241 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21242"
cristyda16f162011-02-19 23:52:17 +000021243if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021244 cat >>confdefs.h <<_ACEOF
21245#define HAVE_ARGZ_H 1
21246_ACEOF
21247
21248fi
21249
21250done
21251
21252
21253ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21254# include <argz.h>
21255#endif
21256"
cristyda16f162011-02-19 23:52:17 +000021257if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021258
21259cat >>confdefs.h <<_ACEOF
21260#define HAVE_ERROR_T 1
21261_ACEOF
21262
21263
21264else
21265
21266$as_echo "#define error_t int" >>confdefs.h
21267
21268
21269$as_echo "#define __error_t_defined 1" >>confdefs.h
21270
21271fi
21272
21273
21274ARGZ_H=
21275for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21276 argz_next argz_stringify
21277do :
21278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021281 cat >>confdefs.h <<_ACEOF
21282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21283_ACEOF
21284
21285else
21286 ARGZ_H=argz.h;
21287
21288 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21289
21290fi
21291done
21292
21293
21294if test -z "$ARGZ_H"; then :
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21296$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021297if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021298 $as_echo_n "(cached) " >&6
21299else
21300 case $host_os in #(
21301 *cygwin*)
21302 lt_cv_sys_argz_works=no
21303 if test "$cross_compiling" != no; then
21304 lt_cv_sys_argz_works="guessing no"
21305 else
21306 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21307 save_IFS=$IFS
21308 IFS=-.
21309 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21310 IFS=$save_IFS
21311 lt_os_major=${2-0}
21312 lt_os_minor=${3-0}
21313 lt_os_micro=${4-0}
21314 if test "$lt_os_major" -gt 1 \
21315 || { test "$lt_os_major" -eq 1 \
21316 && { test "$lt_os_minor" -gt 5 \
21317 || { test "$lt_os_minor" -eq 5 \
21318 && test "$lt_os_micro" -gt 24; }; }; }; then
21319 lt_cv_sys_argz_works=yes
21320 fi
21321 fi
21322 ;; #(
21323 *) lt_cv_sys_argz_works=yes ;;
21324 esac
21325fi
21326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21327$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021328 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021329
21330$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21331
21332else
21333 ARGZ_H=argz.h
21334
21335
21336 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21337
21338fi
21339fi
21340
21341
21342
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21344$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021345if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021346 $as_echo_n "(cached) " >&6
21347else
21348 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21349 libltdl_cv_preloaded_symbols=yes
21350 else
21351 libltdl_cv_preloaded_symbols=no
21352 fi
21353
21354fi
21355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21356$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21357if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21358
21359$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21360
21361fi
21362
21363# Set options
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375# Check whether --with-included_ltdl was given.
21376if test "${with_included_ltdl+set}" = set; then :
21377 withval=$with_included_ltdl;
21378fi
21379
21380
21381if test "x$with_included_ltdl" != xyes; then
21382 # We are not being forced to use the included libltdl sources, so
21383 # decide whether there is a useful installed version we can use.
21384 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21385
21386"
cristyda16f162011-02-19 23:52:17 +000021387if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021388 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21389 #include <ltdl.h>
21390"
cristyda16f162011-02-19 23:52:17 +000021391if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21393$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021394if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021395 $as_echo_n "(cached) " >&6
21396else
21397 ac_check_lib_save_LIBS=$LIBS
21398LIBS="-lltdl $LIBS"
21399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400/* end confdefs.h. */
21401
21402/* Override any GCC internal prototype to avoid an error.
21403 Use char because int might match the return type of a GCC
21404 builtin and then its argument prototype would still apply. */
21405#ifdef __cplusplus
21406extern "C"
21407#endif
21408char lt_dladvise_preload ();
21409int
21410main ()
21411{
21412return lt_dladvise_preload ();
21413 ;
21414 return 0;
21415}
21416_ACEOF
21417if ac_fn_c_try_link "$LINENO"; then :
21418 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21419else
21420 ac_cv_lib_ltdl_lt_dladvise_preload=no
21421fi
21422rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21424LIBS=$ac_check_lib_save_LIBS
21425fi
21426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21427$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021428if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021429 with_included_ltdl=no
21430else
21431 with_included_ltdl=yes
21432fi
21433
21434else
21435 with_included_ltdl=yes
21436fi
21437
21438else
21439 with_included_ltdl=yes
21440fi
21441
21442
21443fi
21444
21445
21446
21447
21448# Check whether --with-ltdl_include was given.
21449if test "${with_ltdl_include+set}" = set; then :
21450 withval=$with_ltdl_include;
21451fi
21452
21453
21454if test -n "$with_ltdl_include"; then
21455 if test -f "$with_ltdl_include/ltdl.h"; then :
21456 else
cristy98dddb52010-11-04 00:30:15 +000021457 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021458 fi
21459else
21460 with_ltdl_include=no
21461fi
21462
21463
21464# Check whether --with-ltdl_lib was given.
21465if test "${with_ltdl_lib+set}" = set; then :
21466 withval=$with_ltdl_lib;
21467fi
21468
21469
21470if test -n "$with_ltdl_lib"; then
21471 if test -f "$with_ltdl_lib/libltdl.la"; then :
21472 else
cristy98dddb52010-11-04 00:30:15 +000021473 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021474 fi
21475else
21476 with_ltdl_lib=no
21477fi
21478
21479case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21480 ,yes,no,no,)
21481 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021482 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021483 "") enable_ltdl_convenience=yes
21484 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21485esac
21486LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21487LTDLDEPS=$LIBLTDL
21488LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21489
21490
21491
21492
21493
21494# For backwards non-gettext consistent compatibility...
21495INCLTDL="$LTDLINCL"
21496
21497
21498 ;;
21499 ,no,no,no,)
21500 # If the included ltdl is not to be used, then use the
21501 # preinstalled libltdl we found.
21502
21503$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21504
21505 LIBLTDL=-lltdl
21506 LTDLDEPS=
21507 LTDLINCL=
21508 ;;
21509 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021510 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021511 ;;
21512 *) with_included_ltdl=no
21513 LIBLTDL="-L$with_ltdl_lib -lltdl"
21514 LTDLDEPS=
21515 LTDLINCL="-I$with_ltdl_include"
21516 ;;
21517esac
21518INCLTDL="$LTDLINCL"
21519
21520# Report our decision...
21521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21522$as_echo_n "checking where to find libltdl headers... " >&6; }
21523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21524$as_echo "$LTDLINCL" >&6; }
21525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21526$as_echo_n "checking where to find libltdl library... " >&6; }
21527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21528$as_echo "$LIBLTDL" >&6; }
21529
21530
21531
21532# Check whether --enable-ltdl-install was given.
21533if test "${enable_ltdl_install+set}" = set; then :
21534 enableval=$enable_ltdl_install;
21535fi
21536
21537
21538case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21539 *yes*) ;;
21540 *) enable_ltdl_convenience=yes ;;
21541esac
21542
21543 if test x"${enable_ltdl_install-no}" != xno; then
21544 INSTALL_LTDL_TRUE=
21545 INSTALL_LTDL_FALSE='#'
21546else
21547 INSTALL_LTDL_TRUE='#'
21548 INSTALL_LTDL_FALSE=
21549fi
21550
21551 if test x"${enable_ltdl_convenience-no}" != xno; then
21552 CONVENIENCE_LTDL_TRUE=
21553 CONVENIENCE_LTDL_FALSE='#'
21554else
21555 CONVENIENCE_LTDL_TRUE='#'
21556 CONVENIENCE_LTDL_FALSE=
21557fi
21558
21559
21560
21561
21562
21563
cristy73bd4a52010-10-05 11:24:23 +000021564# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21565# the user used. This is so that ltdl.h can pick up the parent projects
21566# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21567# definitions required by ltdl.c.
21568# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21569
21570
21571
21572for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21573do :
21574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21575ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21576"
cristy98dddb52010-11-04 00:30:15 +000021577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021578 cat >>confdefs.h <<_ACEOF
21579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21580_ACEOF
21581
21582fi
21583
21584done
21585
21586
21587for ac_func in closedir opendir readdir
21588do :
21589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021591if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021592 cat >>confdefs.h <<_ACEOF
21593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594_ACEOF
21595
21596else
21597
21598
21599 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21600
21601fi
21602done
21603
21604for ac_func in strlcat strlcpy
21605do :
21606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021609 cat >>confdefs.h <<_ACEOF
21610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21611_ACEOF
21612
21613else
21614
21615
21616 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21617
21618fi
21619done
21620
21621
21622
21623cat >>confdefs.h <<_ACEOF
21624#define LT_LIBEXT "$libext"
21625_ACEOF
21626
21627
cristyda16f162011-02-19 23:52:17 +000021628name=
21629eval "lt_libprefix=\"$libname_spec\""
21630
21631cat >>confdefs.h <<_ACEOF
21632#define LT_LIBPREFIX "$lt_libprefix"
21633_ACEOF
21634
21635
cristy73bd4a52010-10-05 11:24:23 +000021636name=ltdl
cristyda16f162011-02-19 23:52:17 +000021637eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021638
21639
21640
21641
21642
21643
21644
21645
21646# Only expand once:
21647
21648
cristy3ed852e2009-09-05 21:47:34 +000021649
21650# Check to see if building shared libraries
21651libtool_build_shared_libs='no'
21652if test "$enable_shared" = 'yes'; then
21653 libtool_build_shared_libs='yes'
21654fi
21655
21656# Check to see if building static libraries
21657libtool_build_static_libs='no'
21658if test "$enable_static" = 'yes'; then
21659 libtool_build_static_libs='yes'
21660fi
21661
cristy73bd4a52010-10-05 11:24:23 +000021662 if test "${libtool_build_shared_libs}" = 'yes'; then
21663 WITH_SHARED_LIBS_TRUE=
21664 WITH_SHARED_LIBS_FALSE='#'
21665else
21666 WITH_SHARED_LIBS_TRUE='#'
21667 WITH_SHARED_LIBS_FALSE=
21668fi
21669
cristy3ed852e2009-09-05 21:47:34 +000021670#
21671# Enable support for building loadable modules
21672#
21673
21674# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021675if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021676 withval=$with_modules; with_modules=$withval
21677else
cristy5a1cefd2010-01-06 20:42:35 +000021678 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021679fi
21680
21681
21682# Only allow building loadable modules if we are building shared libraries
21683if test "$with_modules" != 'no' ; then
21684 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000021686$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21687 with_modules='no'
21688 fi
21689fi
21690if test "$with_modules" != 'no'; then
21691
cristy8b350f62009-11-15 23:12:43 +000021692$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021693
21694fi
cristy73bd4a52010-10-05 11:24:23 +000021695 if test "$with_modules" != 'no'; then
21696 WITH_MODULES_TRUE=
21697 WITH_MODULES_FALSE='#'
21698else
21699 WITH_MODULES_TRUE='#'
21700 WITH_MODULES_FALSE=
21701fi
21702
cristy3ed852e2009-09-05 21:47:34 +000021703
21704# Enable building/use of libltdl if we are building shared libraries regardless
21705# of whether modules are built or not.
21706with_ltdl='no'
21707if test "$libtool_build_shared_libs" != 'no'; then
21708 with_ltdl='yes'
21709fi
21710
cristy73bd4a52010-10-05 11:24:23 +000021711 if test "$with_ltdl" != 'no'; then
21712 WITH_LTDL_TRUE=
21713 WITH_LTDL_FALSE='#'
21714else
21715 WITH_LTDL_TRUE='#'
21716 WITH_LTDL_FALSE=
21717fi
21718
cristy3ed852e2009-09-05 21:47:34 +000021719if test "$with_ltdl" != 'no'; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723
21724 # Set DLLDFLAGS
21725 if test X"$enable_shared" = Xyes; then
21726 DLLDFLAGS=-export-dynamic
21727
21728 fi
21729fi
21730
21731# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021732# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021733# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021734if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021735 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21736else
21737 enable_delegate_build='no'
21738fi
21739
21740
21741# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021742if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021743 enableval=$enable_deprecated; enable_deprecated=$enableval
21744else
21745 enable_deprecated='no'
21746fi
21747
21748
21749if test "$enable_deprecated" = 'yes'; then
21750
cristy8b350f62009-11-15 23:12:43 +000021751$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021752
21753else
21754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21755fi
21756
21757# Build a version of ImageMagick which operates uninstalled.
21758# Used to build distributions located via MAGICK_HOME / executable path
21759# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021760if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021761 enableval=$enable_installed; enable_installed=$enableval
21762else
21763 enable_installed='yes'
21764fi
21765
21766
21767if test "$enable_installed" = 'yes'; then
21768
cristy8b350f62009-11-15 23:12:43 +000021769$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021770
21771else
21772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21773fi
21774
21775# Permit enciphering and deciphering image pixels.
21776# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021777if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 enableval=$enable_cipher; enable_cipher=$enableval
21779else
21780 enable_cipher='yes'
21781fi
21782
21783
21784if test "$enable_cipher" = 'yes'; then
21785
cristy8b350f62009-11-15 23:12:43 +000021786$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021787
21788fi
21789
cristy6e3607c2011-09-13 13:59:17 +000021790# Build a zero-configuration version of ImageMagick.
21791# Check whether --enable-zero-configuration was given.
21792if test "${enable_zero_configuration+set}" = set; then :
21793 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021794else
cristy6e3607c2011-09-13 13:59:17 +000021795 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021796fi
21797
21798
cristy6e3607c2011-09-13 13:59:17 +000021799if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021800
cristy6e3607c2011-09-13 13:59:17 +000021801$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021802
cristy81af5702011-09-13 14:20:58 +000021803 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021804fi
21805
21806# Build a high dynamic range version of ImageMagick.
21807# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021808if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 enableval=$enable_hdri; enable_hdri=$enableval
21810else
cristy191c0b72012-08-12 16:29:52 +000021811 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021812fi
21813
21814
21815MAGICK_HDRI=""
21816if test "$enable_hdri" = 'yes'; then
21817 MAGICK_HDRI="HDRI"
21818
cristy8b350f62009-11-15 23:12:43 +000021819$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021820
cristyfd9dcd42010-08-08 18:07:02 +000021821 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021822fi
21823
cristy3ed852e2009-09-05 21:47:34 +000021824# Build a version of ImageMagick with assert statements.
21825# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021826if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 enableval=$enable_assert; enable_assert=$enableval
21828else
21829 enable_assert='yes'
21830fi
21831
21832
21833if test "$enable_assert" = 'no'; then
21834
cristy8b350f62009-11-15 23:12:43 +000021835$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021836
21837fi
21838
cristya448bd22011-10-14 12:38:13 +000021839# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021840
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21842$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21843 # Check whether --enable-maintainer-mode was given.
21844if test "${enable_maintainer_mode+set}" = set; then :
21845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21846else
21847 USE_MAINTAINER_MODE=no
21848fi
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21851$as_echo "$USE_MAINTAINER_MODE" >&6; }
21852 if test $USE_MAINTAINER_MODE = yes; then
21853 MAINTAINER_MODE_TRUE=
21854 MAINTAINER_MODE_FALSE='#'
21855else
21856 MAINTAINER_MODE_TRUE='#'
21857 MAINTAINER_MODE_FALSE=
21858fi
21859
21860 MAINT=$MAINTAINER_MODE_TRUE
21861
21862
cristy3ed852e2009-09-05 21:47:34 +000021863
cristy3ed852e2009-09-05 21:47:34 +000021864# Enable ccmalloc memory debugging support
21865# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021866if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021867 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21868else
21869 enable_ccmalloc='no'
21870fi
21871
21872
21873# Enable Electric Fence memory debugging support
21874# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021875if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 enableval=$enable_efence; enable_efence=$enableval
21877else
21878 enable_efence='no'
21879fi
21880
21881
21882# Enable prof-based profiling support
21883# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021884if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021885 enableval=$enable_prof; enable_prof=$enableval
21886else
21887 enable_prof='no'
21888fi
21889
21890
21891# Enable gprof-based profiling support
21892# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021893if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 enableval=$enable_gprof; enable_gprof=$enableval
21895else
21896 enable_gprof='no'
21897fi
21898
21899
21900# Enable gcov-based profiling support
21901# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021902if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 enableval=$enable_gcov; enable_gcov=$enableval
21904else
21905 enable_gcov='no'
21906fi
21907
21908
21909enable_profiling='no'
21910if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21911 enable_profiling='yes'
21912 if test "$libtool_build_shared_libs" = 'yes'; then
21913 echo "Warning: Can not profile code using shared libraries"
21914 fi
21915fi
21916
21917# Magick API method prefix
21918
21919# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021920if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021921 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021922else
cristyfc3d0222012-02-07 15:05:57 +000021923 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021924fi
21925
21926
cristyfc3d0222012-02-07 15:05:57 +000021927if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021928
21929cat >>confdefs.h <<_ACEOF
21930#define NAMESPACE_PREFIX $with_method_prefix
21931_ACEOF
21932
cristyfc3d0222012-02-07 15:05:57 +000021933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021934fi
21935
cristy71d8c202012-03-20 17:05:01 +000021936# Enable legacy support (default no)
21937# Check whether --enable-legacy-support was given.
21938if test "${enable_legacy_support+set}" = set; then :
21939 enableval=$enable_legacy_support; with_legacy_support=$enableval
21940else
21941 with_legacy_support='no'
21942fi
21943
21944 if test "$with_legacy_support" != 'no'; then
21945 LEGACY_SUPPORT_TRUE=
21946 LEGACY_SUPPORT_FALSE='#'
21947else
21948 LEGACY_SUPPORT_TRUE='#'
21949 LEGACY_SUPPORT_FALSE=
21950fi
21951
21952
cristy3ed852e2009-09-05 21:47:34 +000021953# Number of bits in a Quantum
21954
21955# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021956if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 withval=$with_quantum_depth; with_quantum_depth=$withval
21958else
21959 with_quantum_depth=16
21960fi
21961
21962
21963if test "$with_quantum_depth" != '8'; then
21964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21965fi
21966
21967case "${with_quantum_depth}" in
21968 8 ) ;;
21969 16 ) ;;
21970 32 ) ;;
21971 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021972 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021973esac
21974QUANTUM_DEPTH="$with_quantum_depth"
21975
21976cat >>confdefs.h <<_ACEOF
21977#define QUANTUM_DEPTH $QUANTUM_DEPTH
21978_ACEOF
21979
21980
21981# Set pixel cache threshold
21982
21983# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021984if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 withval=$with_cache; with_cache=$withval
21986else
21987 with_cache=''
21988fi
21989
21990
21991if test "$with_cache" != ''; then
21992
21993cat >>confdefs.h <<_ACEOF
21994#define PixelCacheThreshold $with_cache
21995_ACEOF
21996
21997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21998fi
21999
22000# Disable/Enable support for full delegate paths
22001
22002# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022003if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022004 withval=$with_frozenpaths; with_frozenpaths=$withval
22005else
22006 with_frozenpaths='no'
22007fi
22008
22009
22010# Enable build/install of Magick++
22011
22012# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022013if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22015else
22016 with_magick_plus_plus='yes'
22017fi
22018
22019
22020# Disable build/install of PerlMagick.
22021
22022# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022023if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 withval=$with_perl; with_perl=$withval
22025else
cristyb5f4e2f2010-04-25 00:49:11 +000022026 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022027fi
22028
22029
22030# Options to pass when configuring PerlMagick
22031
22032# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022033if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022034 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022035fi
22036
22037
cristy3ed852e2009-09-05 21:47:34 +000022038
22039# Enable umem, object-caching memory allocation library.
22040
22041# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022042if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022043 withval=$with_umem; with_umem=$withval
22044else
22045 with_umem='no'
22046fi
22047
22048if test "$with_umem" != 'yes' ; then
22049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22050fi
22051
22052#
22053# Specify path to shared libstdc++ if not in normal location
22054#
22055
22056# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022057if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022058 withval=$with_libstdc; with_libstdc=$withval
22059else
22060 with_libstdc=''
22061fi
22062
22063
22064if test "$with_libstdc" != ''; then
22065 if test -d "$with_libstdc"; then
22066 LIBSTDCLDFLAGS="-L$with_libstdc"
22067 fi
22068fi
22069
22070
22071# Does gcc required -traditional?
22072if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
22078 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081#include <sgtty.h>
22082Autoconf TIOCGETP
22083_ACEOF
22084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022085 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 ac_cv_prog_gcc_traditional=yes
22087else
22088 ac_cv_prog_gcc_traditional=no
22089fi
22090rm -f conftest*
22091
22092
22093 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022095/* end confdefs.h. */
22096#include <termio.h>
22097Autoconf TCGETA
22098_ACEOF
22099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022100 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 ac_cv_prog_gcc_traditional=yes
22102fi
22103rm -f conftest*
22104
22105 fi
22106fi
cristy8b350f62009-11-15 23:12:43 +000022107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22109 if test $ac_cv_prog_gcc_traditional = yes; then
22110 CC="$CC -traditional"
22111 fi
22112fi
22113
22114
22115########
22116#
22117# Set defines required to build DLLs and modules using MinGW
22118#
22119########
22120# These options are set for multi-thread DLL module build
22121# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22122# module: _DLL
22123# executable/Magick++: _DLL _MAGICKMOD_
22124MODULE_EXTRA_CPPFLAGS=''
22125LIBRARY_EXTRA_CPPFLAGS=''
22126if test "${native_win32_build}" = 'yes'; then
22127 if test "${libtool_build_shared_libs}" = 'yes'; then
22128 CPPFLAGS="$CPPFLAGS -D_DLL"
22129 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22130 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22131 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22132 if test "$with_modules" = 'yes'; then
22133 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22134 else
22135 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22136 fi
22137 else
22138 CPPFLAGS="$CPPFLAGS -D_LIB"
22139 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22140 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22141 fi
22142 if test "$with_threads" = 'yes'; then
22143 CPPFLAGS="$CPPFLAGS -D_MT"
22144 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22145 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22146 fi
22147fi
22148
22149
22150
22151# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022153$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022154if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 $as_echo_n "(cached) " >&6
22156else
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <stdlib.h>
22160#include <stdarg.h>
22161#include <string.h>
22162#include <float.h>
22163
22164int
22165main ()
22166{
22167
22168 ;
22169 return 0;
22170}
22171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022172if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022173 ac_cv_header_stdc=yes
22174else
cristy8b350f62009-11-15 23:12:43 +000022175 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022176fi
cristy3ed852e2009-09-05 21:47:34 +000022177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178
22179if test $ac_cv_header_stdc = yes; then
22180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022182/* end confdefs.h. */
22183#include <string.h>
22184
22185_ACEOF
22186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022187 $EGREP "memchr" >/dev/null 2>&1; then :
22188
cristy3ed852e2009-09-05 21:47:34 +000022189else
22190 ac_cv_header_stdc=no
22191fi
22192rm -f conftest*
22193
22194fi
22195
22196if test $ac_cv_header_stdc = yes; then
22197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200#include <stdlib.h>
22201
22202_ACEOF
22203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022204 $EGREP "free" >/dev/null 2>&1; then :
22205
cristy3ed852e2009-09-05 21:47:34 +000022206else
22207 ac_cv_header_stdc=no
22208fi
22209rm -f conftest*
22210
22211fi
22212
22213if test $ac_cv_header_stdc = yes; then
22214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022215 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 :
22217else
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <ctype.h>
22221#include <stdlib.h>
22222#if ((' ' & 0x0FF) == 0x020)
22223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22225#else
22226# define ISLOWER(c) \
22227 (('a' <= (c) && (c) <= 'i') \
22228 || ('j' <= (c) && (c) <= 'r') \
22229 || ('s' <= (c) && (c) <= 'z'))
22230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22231#endif
22232
22233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22234int
22235main ()
22236{
22237 int i;
22238 for (i = 0; i < 256; i++)
22239 if (XOR (islower (i), ISLOWER (i))
22240 || toupper (i) != TOUPPER (i))
22241 return 2;
22242 return 0;
22243}
22244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022245if ac_fn_c_try_run "$LINENO"; then :
22246
cristy3ed852e2009-09-05 21:47:34 +000022247else
cristy8b350f62009-11-15 23:12:43 +000022248 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022249fi
cristy8b350f62009-11-15 23:12:43 +000022250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22251 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022252fi
22253
cristy3ed852e2009-09-05 21:47:34 +000022254fi
22255fi
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo "$ac_cv_header_stdc" >&6; }
22258if test $ac_cv_header_stdc = yes; then
22259
cristy8b350f62009-11-15 23:12:43 +000022260$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022261
22262fi
22263
22264if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +000022266 header files. Compilation cannot proceed. Please install the ANSI C
22267 headers and rerun this script." >&5
22268$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22269 header files. Compilation cannot proceed. Please install the ANSI C
22270 headers and rerun this script." >&2;};
22271fi
cristya0b81c32010-01-22 02:54:33 +000022272
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22274$as_echo_n "checking whether to enable assertions... " >&6; }
22275 # Check whether --enable-assert was given.
22276if test "${enable_assert+set}" = set; then :
22277 enableval=$enable_assert; ac_enable_assert=$enableval
22278 if test "x$enableval" = xno; then :
22279
22280$as_echo "#define NDEBUG 1" >>confdefs.h
22281
22282elif test "x$enableval" != xyes; then :
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22284$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22285 ac_enable_assert=yes
22286fi
22287else
22288 ac_enable_assert=yes
22289fi
22290
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22292$as_echo "$ac_enable_assert" >&6; }
22293
cristy3ed852e2009-09-05 21:47:34 +000022294ac_header_dirent=no
22295for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22296 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022299if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022300 $as_echo_n "(cached) " >&6
22301else
cristy8b350f62009-11-15 23:12:43 +000022302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304#include <sys/types.h>
22305#include <$ac_hdr>
22306
22307int
22308main ()
22309{
22310if ((DIR *) 0)
22311return 0;
22312 ;
22313 return 0;
22314}
22315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022316if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 eval "$as_ac_Header=yes"
22318else
cristy8b350f62009-11-15 23:12:43 +000022319 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022320fi
cristy3ed852e2009-09-05 21:47:34 +000022321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322fi
cristy8b350f62009-11-15 23:12:43 +000022323eval ac_res=\$$as_ac_Header
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22329_ACEOF
22330
22331ac_header_dirent=$ac_hdr; break
22332fi
22333
22334done
22335# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22336if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 $as_echo_n "(cached) " >&6
22341else
22342 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345
22346/* Override any GCC internal prototype to avoid an error.
22347 Use char because int might match the return type of a GCC
22348 builtin and then its argument prototype would still apply. */
22349#ifdef __cplusplus
22350extern "C"
22351#endif
22352char opendir ();
22353int
22354main ()
22355{
22356return opendir ();
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361for ac_lib in '' dir; do
22362 if test -z "$ac_lib"; then
22363 ac_res="none required"
22364 else
22365 ac_res=-l$ac_lib
22366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22367 fi
cristy8b350f62009-11-15 23:12:43 +000022368 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022370fi
cristy8b350f62009-11-15 23:12:43 +000022371rm -f core conftest.err conftest.$ac_objext \
22372 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022373 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 break
22375fi
22376done
cristyda16f162011-02-19 23:52:17 +000022377if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022378
cristy3ed852e2009-09-05 21:47:34 +000022379else
22380 ac_cv_search_opendir=no
22381fi
22382rm conftest.$ac_ext
22383LIBS=$ac_func_search_save_LIBS
22384fi
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo "$ac_cv_search_opendir" >&6; }
22387ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022388if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22390
22391fi
22392
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022395$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022397 $as_echo_n "(cached) " >&6
22398else
22399 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022401/* end confdefs.h. */
22402
22403/* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22406#ifdef __cplusplus
22407extern "C"
22408#endif
22409char opendir ();
22410int
22411main ()
22412{
22413return opendir ();
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418for ac_lib in '' x; do
22419 if test -z "$ac_lib"; then
22420 ac_res="none required"
22421 else
22422 ac_res=-l$ac_lib
22423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22424 fi
cristy8b350f62009-11-15 23:12:43 +000022425 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022426 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022427fi
cristy8b350f62009-11-15 23:12:43 +000022428rm -f core conftest.err conftest.$ac_objext \
22429 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022430 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022431 break
22432fi
22433done
cristyda16f162011-02-19 23:52:17 +000022434if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022435
cristy3ed852e2009-09-05 21:47:34 +000022436else
22437 ac_cv_search_opendir=no
22438fi
22439rm conftest.$ac_ext
22440LIBS=$ac_func_search_save_LIBS
22441fi
cristy8b350f62009-11-15 23:12:43 +000022442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo "$ac_cv_search_opendir" >&6; }
22444ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022445if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22447
22448fi
22449
22450fi
22451
22452
22453# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022454for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022455do :
22456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022459 cat >>confdefs.h <<_ACEOF
22460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22461_ACEOF
22462
22463fi
22464
22465done
22466
22467
22468########
22469#
22470# Checks for typedefs, structures, and compiler characteristics.
22471#
22472########
22473
cristy8b350f62009-11-15 23:12:43 +000022474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022475$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022476if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022477 $as_echo_n "(cached) " >&6
22478else
cristy8b350f62009-11-15 23:12:43 +000022479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022480/* end confdefs.h. */
22481
cristy14fefe52012-05-21 00:59:18 +000022482 #include <stdbool.h>
22483 #ifndef bool
22484 "error: bool is not defined"
22485 #endif
22486 #ifndef false
22487 "error: false is not defined"
22488 #endif
22489 #if false
22490 "error: false is not 0"
22491 #endif
22492 #ifndef true
22493 "error: true is not defined"
22494 #endif
22495 #if true != 1
22496 "error: true is not 1"
22497 #endif
22498 #ifndef __bool_true_false_are_defined
22499 "error: __bool_true_false_are_defined is not defined"
22500 #endif
cristy3ed852e2009-09-05 21:47:34 +000022501
cristy14fefe52012-05-21 00:59:18 +000022502 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022503
cristy14fefe52012-05-21 00:59:18 +000022504 char a[true == 1 ? 1 : -1];
22505 char b[false == 0 ? 1 : -1];
22506 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22507 char d[(bool) 0.5 == true ? 1 : -1];
22508 /* See body of main program for 'e'. */
22509 char f[(_Bool) 0.0 == false ? 1 : -1];
22510 char g[true];
22511 char h[sizeof (_Bool)];
22512 char i[sizeof s.t];
22513 enum { j = false, k = true, l = false * true, m = true * 256 };
22514 /* The following fails for
22515 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22516 _Bool n[m];
22517 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22518 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22519 /* Catch a bug in an HP-UX C compiler. See
22520 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22521 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22522 */
22523 _Bool q = true;
22524 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022525
22526int
22527main ()
22528{
22529
cristy14fefe52012-05-21 00:59:18 +000022530 bool e = &s;
22531 *pq |= q;
22532 *pq |= ! q;
22533 /* Refer to every declared value, to avoid compiler optimizations. */
22534 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22535 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022536
22537 ;
22538 return 0;
22539}
22540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 ac_cv_header_stdbool_h=yes
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy3ed852e2009-09-05 21:47:34 +000022546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547fi
cristy8b350f62009-11-15 23:12:43 +000022548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022549$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022550 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022551if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022552
22553cat >>confdefs.h <<_ACEOF
22554#define HAVE__BOOL 1
22555_ACEOF
22556
22557
22558fi
22559
cristy14fefe52012-05-21 00:59:18 +000022560
cristy3ed852e2009-09-05 21:47:34 +000022561if test $ac_cv_header_stdbool_h = yes; then
22562
cristy8b350f62009-11-15 23:12:43 +000022563$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022564
22565fi
22566
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022569if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022570 $as_echo_n "(cached) " >&6
22571else
cristy8b350f62009-11-15 23:12:43 +000022572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573/* end confdefs.h. */
22574
22575int
22576main ()
22577{
22578
22579volatile int x;
22580int * volatile y = (int *) 0;
22581return !x && !y;
22582 ;
22583 return 0;
22584}
22585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022586if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 ac_cv_c_volatile=yes
22588else
cristy8b350f62009-11-15 23:12:43 +000022589 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022590fi
cristy3ed852e2009-09-05 21:47:34 +000022591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592fi
cristy8b350f62009-11-15 23:12:43 +000022593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022594$as_echo "$ac_cv_c_volatile" >&6; }
22595if test $ac_cv_c_volatile = no; then
22596
cristy8b350f62009-11-15 23:12:43 +000022597$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022598
22599fi
22600
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022603if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022604 $as_echo_n "(cached) " >&6
22605else
cristy8b350f62009-11-15 23:12:43 +000022606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022607/* end confdefs.h. */
22608#define x(y) #y
22609
22610char *s = x(teststring);
22611_ACEOF
22612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022613 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022614 ac_cv_c_stringize=no
22615else
22616 ac_cv_c_stringize=yes
22617fi
22618rm -f conftest*
22619
22620fi
cristy8b350f62009-11-15 23:12:43 +000022621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo "$ac_cv_c_stringize" >&6; }
22623if test $ac_cv_c_stringize = yes; then
22624
cristy8b350f62009-11-15 23:12:43 +000022625$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022626
22627fi
22628
cristy8b350f62009-11-15 23:12:43 +000022629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022630$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022631if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 $as_echo_n "(cached) " >&6
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022635/* end confdefs.h. */
22636#include <sys/types.h>
22637#include <sys/stat.h>
22638
22639#if defined S_ISBLK && defined S_IFDIR
22640extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22641#endif
22642
22643#if defined S_ISBLK && defined S_IFCHR
22644extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22645#endif
22646
22647#if defined S_ISLNK && defined S_IFREG
22648extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22649#endif
22650
22651#if defined S_ISSOCK && defined S_IFREG
22652extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22653#endif
22654
22655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022656if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 ac_cv_header_stat_broken=no
22658else
cristy8b350f62009-11-15 23:12:43 +000022659 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022660fi
cristy3ed852e2009-09-05 21:47:34 +000022661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662fi
cristy8b350f62009-11-15 23:12:43 +000022663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022664$as_echo "$ac_cv_header_stat_broken" >&6; }
22665if test $ac_cv_header_stat_broken = yes; then
22666
cristy8b350f62009-11-15 23:12:43 +000022667$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022668
22669fi
22670
cristy8b350f62009-11-15 23:12:43 +000022671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022672$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022673if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022674 $as_echo_n "(cached) " >&6
22675else
cristy8b350f62009-11-15 23:12:43 +000022676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022677/* end confdefs.h. */
22678#include <sys/types.h>
22679#include <sys/time.h>
22680#include <time.h>
22681
22682int
22683main ()
22684{
22685if ((struct tm *) 0)
22686return 0;
22687 ;
22688 return 0;
22689}
22690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022692 ac_cv_header_time=yes
22693else
cristy8b350f62009-11-15 23:12:43 +000022694 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022695fi
cristy3ed852e2009-09-05 21:47:34 +000022696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697fi
cristy8b350f62009-11-15 23:12:43 +000022698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022699$as_echo "$ac_cv_header_time" >&6; }
22700if test $ac_cv_header_time = yes; then
22701
cristy8b350f62009-11-15 23:12:43 +000022702$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022703
22704fi
22705
cristy8b350f62009-11-15 23:12:43 +000022706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022707$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022708if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022709 $as_echo_n "(cached) " >&6
22710else
cristy8b350f62009-11-15 23:12:43 +000022711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022712/* end confdefs.h. */
22713#include <sys/types.h>
22714#include <time.h>
22715
22716int
22717main ()
22718{
22719struct tm tm;
22720 int *p = &tm.tm_sec;
22721 return !p;
22722 ;
22723 return 0;
22724}
22725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 ac_cv_struct_tm=time.h
22728else
cristy8b350f62009-11-15 23:12:43 +000022729 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022730fi
cristy3ed852e2009-09-05 21:47:34 +000022731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732fi
cristy8b350f62009-11-15 23:12:43 +000022733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022734$as_echo "$ac_cv_struct_tm" >&6; }
22735if test $ac_cv_struct_tm = sys/time.h; then
22736
cristy8b350f62009-11-15 23:12:43 +000022737$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022738
22739fi
22740
cristy92703d82010-04-26 00:18:18 +000022741ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22742#include <$ac_cv_struct_tm>
22743
22744"
cristyda16f162011-02-19 23:52:17 +000022745if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022746
22747cat >>confdefs.h <<_ACEOF
22748#define HAVE_STRUCT_TM_TM_ZONE 1
22749_ACEOF
22750
22751
22752fi
22753
22754if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22755
22756$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22757
22758else
22759 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22760"
cristyda16f162011-02-19 23:52:17 +000022761if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022762 ac_have_decl=1
22763else
22764 ac_have_decl=0
22765fi
22766
22767cat >>confdefs.h <<_ACEOF
22768#define HAVE_DECL_TZNAME $ac_have_decl
22769_ACEOF
22770
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22772$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022773if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022774 $as_echo_n "(cached) " >&6
22775else
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777/* end confdefs.h. */
22778#include <time.h>
22779#if !HAVE_DECL_TZNAME
22780extern char *tzname[];
22781#endif
22782
22783int
22784main ()
22785{
22786return tzname[0][0];
22787 ;
22788 return 0;
22789}
22790_ACEOF
22791if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_var_tzname=yes
22793else
22794 ac_cv_var_tzname=no
22795fi
22796rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798fi
22799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22800$as_echo "$ac_cv_var_tzname" >&6; }
22801 if test $ac_cv_var_tzname = yes; then
22802
22803$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22804
22805 fi
22806fi
22807
cristy8b350f62009-11-15 23:12:43 +000022808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022809$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022810if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022811 $as_echo_n "(cached) " >&6
22812else
22813 echo '#! /bin/cat
22814exit 69
22815' >conftest
22816chmod u+x conftest
22817(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22818if test $? -ne 69; then
22819 ac_cv_sys_interpreter=yes
22820else
22821 ac_cv_sys_interpreter=no
22822fi
22823rm -f conftest
22824fi
cristy8b350f62009-11-15 23:12:43 +000022825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022826$as_echo "$ac_cv_sys_interpreter" >&6; }
22827interpval=$ac_cv_sys_interpreter
22828
22829
cristy3ed852e2009-09-05 21:47:34 +000022830# If the C compiler supports the keyword inline, do nothing. Otherwise
22831# define inline to __inline__ or __inline if it accepts one of those,
22832# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022835if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022836 $as_echo_n "(cached) " >&6
22837else
22838 ac_cv_c_inline=no
22839for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022841/* end confdefs.h. */
22842#ifndef __cplusplus
22843typedef int foo_t;
22844static $ac_kw foo_t static_foo () {return 0; }
22845$ac_kw foo_t foo () {return 0; }
22846#endif
22847
22848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022849if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022850 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022851fi
cristy3ed852e2009-09-05 21:47:34 +000022852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 test "$ac_cv_c_inline" != no && break
22854done
22855
22856fi
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo "$ac_cv_c_inline" >&6; }
22859
cristy3ed852e2009-09-05 21:47:34 +000022860case $ac_cv_c_inline in
22861 inline | yes) ;;
22862 *)
22863 case $ac_cv_c_inline in
22864 no) ac_val=;;
22865 *) ac_val=$ac_cv_c_inline;;
22866 esac
22867 cat >>confdefs.h <<_ACEOF
22868#ifndef __cplusplus
22869#define inline $ac_val
22870#endif
22871_ACEOF
22872 ;;
22873esac
22874
22875
22876# If the C compiler supports the keyword restrict, do nothing. Otherwise
22877# define restrict to __restrict__ or __restrict if it accepts one of those,
22878# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022881if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 $as_echo_n "(cached) " >&6
22883else
22884 ac_cv_c_restrict=no
22885 # The order here caters to the fact that C++ does not require restrict.
22886 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888/* end confdefs.h. */
22889typedef int * int_ptr;
22890 int foo (int_ptr $ac_kw ip) {
22891 return ip[0];
22892 }
22893int
22894main ()
22895{
22896int s[1];
22897 int * $ac_kw t = s;
22898 t[0] = 0;
22899 return foo(t)
22900 ;
22901 return 0;
22902}
22903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022904if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022905 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022906fi
cristy3ed852e2009-09-05 21:47:34 +000022907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 test "$ac_cv_c_restrict" != no && break
22909 done
22910
22911fi
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo "$ac_cv_c_restrict" >&6; }
22914
cristy3ed852e2009-09-05 21:47:34 +000022915 case $ac_cv_c_restrict in
22916 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022917 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022918 ;;
22919 *) cat >>confdefs.h <<_ACEOF
22920#define restrict $ac_cv_c_restrict
22921_ACEOF
22922 ;;
22923 esac
22924
22925
22926# If words are stored with the most significant byte first (like
22927# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022929$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022930if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 $as_echo_n "(cached) " >&6
22932else
22933 ac_cv_c_bigendian=unknown
22934 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022936/* end confdefs.h. */
22937#ifndef __APPLE_CC__
22938 not a universal capable compiler
22939 #endif
22940 typedef int dummy;
22941
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022944
22945 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022946 # there are at least two -arch flags with different values.
22947 ac_arch=
22948 ac_prev=
22949 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22950 if test -n "$ac_prev"; then
22951 case $ac_word in
22952 i?86 | x86_64 | ppc | ppc64)
22953 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22954 ac_arch=$ac_word
22955 else
22956 ac_cv_c_bigendian=universal
22957 break
22958 fi
22959 ;;
22960 esac
22961 ac_prev=
22962 elif test "x$ac_word" = "x-arch"; then
22963 ac_prev=arch
22964 fi
22965 done
cristy3ed852e2009-09-05 21:47:34 +000022966fi
cristy3ed852e2009-09-05 21:47:34 +000022967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 if test $ac_cv_c_bigendian = unknown; then
22969 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022971/* end confdefs.h. */
22972#include <sys/types.h>
22973 #include <sys/param.h>
22974
22975int
22976main ()
22977{
22978#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22979 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22980 && LITTLE_ENDIAN)
22981 bogus endian macros
22982 #endif
22983
22984 ;
22985 return 0;
22986}
22987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022989 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022991/* end confdefs.h. */
22992#include <sys/types.h>
22993 #include <sys/param.h>
22994
22995int
22996main ()
22997{
22998#if BYTE_ORDER != BIG_ENDIAN
22999 not big endian
23000 #endif
23001
23002 ;
23003 return 0;
23004}
23005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023007 ac_cv_c_bigendian=yes
23008else
cristy8b350f62009-11-15 23:12:43 +000023009 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023010fi
cristy3ed852e2009-09-05 21:47:34 +000023011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023012fi
cristy3ed852e2009-09-05 21:47:34 +000023013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 fi
23015 if test $ac_cv_c_bigendian = unknown; then
23016 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023018/* end confdefs.h. */
23019#include <limits.h>
23020
23021int
23022main ()
23023{
23024#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23025 bogus endian macros
23026 #endif
23027
23028 ;
23029 return 0;
23030}
23031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023032if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023033 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035/* end confdefs.h. */
23036#include <limits.h>
23037
23038int
23039main ()
23040{
23041#ifndef _BIG_ENDIAN
23042 not big endian
23043 #endif
23044
23045 ;
23046 return 0;
23047}
23048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050 ac_cv_c_bigendian=yes
23051else
cristy8b350f62009-11-15 23:12:43 +000023052 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy3ed852e2009-09-05 21:47:34 +000023054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023055fi
cristy3ed852e2009-09-05 21:47:34 +000023056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 fi
23058 if test $ac_cv_c_bigendian = unknown; then
23059 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023060 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023061 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023063/* end confdefs.h. */
23064short int ascii_mm[] =
23065 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23066 short int ascii_ii[] =
23067 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23068 int use_ascii (int i) {
23069 return ascii_mm[i] + ascii_ii[i];
23070 }
23071 short int ebcdic_ii[] =
23072 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23073 short int ebcdic_mm[] =
23074 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23075 int use_ebcdic (int i) {
23076 return ebcdic_mm[i] + ebcdic_ii[i];
23077 }
23078 extern int foo;
23079
23080int
23081main ()
23082{
23083return use_ascii (foo) == use_ebcdic (foo);
23084 ;
23085 return 0;
23086}
23087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023089 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23090 ac_cv_c_bigendian=yes
23091 fi
23092 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23093 if test "$ac_cv_c_bigendian" = unknown; then
23094 ac_cv_c_bigendian=no
23095 else
23096 # finding both strings is unlikely to happen, but who knows?
23097 ac_cv_c_bigendian=unknown
23098 fi
23099 fi
cristy3ed852e2009-09-05 21:47:34 +000023100fi
cristy3ed852e2009-09-05 21:47:34 +000023101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102else
cristy8b350f62009-11-15 23:12:43 +000023103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023104/* end confdefs.h. */
23105$ac_includes_default
23106int
23107main ()
23108{
23109
23110 /* Are we little or big endian? From Harbison&Steele. */
23111 union
23112 {
23113 long int l;
23114 char c[sizeof (long int)];
23115 } u;
23116 u.l = 1;
23117 return u.c[sizeof (long int) - 1] == 1;
23118
23119 ;
23120 return 0;
23121}
23122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023123if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023124 ac_cv_c_bigendian=no
23125else
cristy8b350f62009-11-15 23:12:43 +000023126 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023127fi
cristy8b350f62009-11-15 23:12:43 +000023128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23129 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023130fi
23131
cristy3ed852e2009-09-05 21:47:34 +000023132 fi
23133fi
cristy8b350f62009-11-15 23:12:43 +000023134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023135$as_echo "$ac_cv_c_bigendian" >&6; }
23136 case $ac_cv_c_bigendian in #(
23137 yes)
cristy8b350f62009-11-15 23:12:43 +000023138 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023139;; #(
23140 no)
23141 ;; #(
23142 universal)
23143
cristy8b350f62009-11-15 23:12:43 +000023144$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023145
23146 ;; #(
23147 *)
cristy98dddb52010-11-04 00:30:15 +000023148 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023149 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023150 esac
23151
23152
cristy501c8042011-05-26 17:46:28 +000023153# Define to a suitable type, if standard headers do not define it.
23154ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23155case $ac_cv_c_int8_t in #(
23156 no|yes) ;; #(
23157 *)
cristy3ed852e2009-09-05 21:47:34 +000023158
23159cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023160#define int8_t $ac_cv_c_int8_t
23161_ACEOF
23162;;
23163esac
23164
23165ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23166case $ac_cv_c_int16_t in #(
23167 no|yes) ;; #(
23168 *)
23169
23170cat >>confdefs.h <<_ACEOF
23171#define int16_t $ac_cv_c_int16_t
23172_ACEOF
23173;;
23174esac
23175
23176ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23177case $ac_cv_c_int32_t in #(
23178 no|yes) ;; #(
23179 *)
23180
23181cat >>confdefs.h <<_ACEOF
23182#define int32_t $ac_cv_c_int32_t
23183_ACEOF
23184;;
23185esac
23186
23187ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23188case $ac_cv_c_int64_t in #(
23189 no|yes) ;; #(
23190 *)
23191
23192cat >>confdefs.h <<_ACEOF
23193#define int64_t $ac_cv_c_int64_t
23194_ACEOF
23195;;
23196esac
23197
23198
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23200$as_echo_n "checking for long long int... " >&6; }
23201if ${ac_cv_type_long_long_int+:} false; then :
23202 $as_echo_n "(cached) " >&6
23203else
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205/* end confdefs.h. */
23206
23207 /* For now, do not test the preprocessor; as of 2007 there are too many
23208 implementations with broken preprocessors. Perhaps this can
23209 be revisited in 2012. In the meantime, code should not expect
23210 #if to work with literals wider than 32 bits. */
23211 /* Test literals. */
23212 long long int ll = 9223372036854775807ll;
23213 long long int nll = -9223372036854775807LL;
23214 unsigned long long int ull = 18446744073709551615ULL;
23215 /* Test constant expressions. */
23216 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23217 ? 1 : -1)];
23218 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23219 ? 1 : -1)];
23220 int i = 63;
23221int
23222main ()
23223{
23224/* Test availability of runtime routines for shift and division. */
23225 long long int llmax = 9223372036854775807ll;
23226 unsigned long long int ullmax = 18446744073709551615ull;
23227 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23228 | (llmax / ll) | (llmax % ll)
23229 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23230 | (ullmax / ull) | (ullmax % ull));
23231 ;
23232 return 0;
23233}
23234
23235_ACEOF
23236if ac_fn_c_try_link "$LINENO"; then :
23237 if test "$cross_compiling" = yes; then :
23238 ac_cv_type_long_long_int=yes
23239else
23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23241/* end confdefs.h. */
23242#include <limits.h>
23243 #ifndef LLONG_MAX
23244 # define HALF \
23245 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23246 # define LLONG_MAX (HALF - 1 + HALF)
23247 #endif
23248int
23249main ()
23250{
23251long long int n = 1;
23252 int i;
23253 for (i = 0; ; i++)
23254 {
23255 long long int m = n << i;
23256 if (m >> i != n)
23257 return 1;
23258 if (LLONG_MAX / 2 < m)
23259 break;
23260 }
23261 return 0;
23262 ;
23263 return 0;
23264}
23265_ACEOF
23266if ac_fn_c_try_run "$LINENO"; then :
23267 ac_cv_type_long_long_int=yes
23268else
23269 ac_cv_type_long_long_int=no
23270fi
23271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23272 conftest.$ac_objext conftest.beam conftest.$ac_ext
23273fi
23274
23275else
23276 ac_cv_type_long_long_int=no
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23280fi
23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23282$as_echo "$ac_cv_type_long_long_int" >&6; }
23283 if test $ac_cv_type_long_long_int = yes; then
23284
23285$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23286
23287 fi
23288
23289
23290
23291 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23292if test "x$ac_cv_type_intmax_t" = xyes; then :
23293
23294$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23295
23296else
23297 test $ac_cv_type_long_long_int = yes \
23298 && ac_type='long long int' \
23299 || ac_type='long int'
23300
23301cat >>confdefs.h <<_ACEOF
23302#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023303_ACEOF
23304
23305fi
23306
23307
cristy501c8042011-05-26 17:46:28 +000023308
23309 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23310if test "x$ac_cv_type_intptr_t" = xyes; then :
23311
23312$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023313
cristy3ed852e2009-09-05 21:47:34 +000023314else
cristy501c8042011-05-26 17:46:28 +000023315 for ac_type in 'int' 'long int' 'long long int'; do
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317/* end confdefs.h. */
23318$ac_includes_default
23319int
23320main ()
23321{
23322static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023323test_array [0] = 0;
23324return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023325
23326 ;
23327 return 0;
23328}
23329_ACEOF
23330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023331
23332cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023333#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023334_ACEOF
23335
cristy501c8042011-05-26 17:46:28 +000023336 ac_type=
23337fi
23338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 test -z "$ac_type" && break
23340 done
cristy3ed852e2009-09-05 21:47:34 +000023341fi
23342
23343
cristy3ed852e2009-09-05 21:47:34 +000023344
cristy501c8042011-05-26 17:46:28 +000023345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23346$as_echo_n "checking for long double... " >&6; }
23347if ${ac_cv_type_long_double+:} false; then :
23348 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023349else
cristy501c8042011-05-26 17:46:28 +000023350 if test "$GCC" = yes; then
23351 ac_cv_type_long_double=yes
23352 else
23353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354/* end confdefs.h. */
23355/* The Stardent Vistra knows sizeof (long double), but does
23356 not support it. */
23357 long double foo = 0.0L;
23358int
23359main ()
23360{
23361static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23362 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023363test_array [0] = 0;
23364return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023365
cristy501c8042011-05-26 17:46:28 +000023366 ;
23367 return 0;
23368}
cristy3ed852e2009-09-05 21:47:34 +000023369_ACEOF
cristy501c8042011-05-26 17:46:28 +000023370if ac_fn_c_try_compile "$LINENO"; then :
23371 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023372else
cristy501c8042011-05-26 17:46:28 +000023373 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023374fi
cristy501c8042011-05-26 17:46:28 +000023375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 fi
cristy3ed852e2009-09-05 21:47:34 +000023377fi
cristy501c8042011-05-26 17:46:28 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23379$as_echo "$ac_cv_type_long_double" >&6; }
23380 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023381
cristy501c8042011-05-26 17:46:28 +000023382$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023383
cristy501c8042011-05-26 17:46:28 +000023384 fi
23385
cristy3ed852e2009-09-05 21:47:34 +000023386
cristy8b350f62009-11-15 23:12:43 +000023387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023389if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023390 $as_echo_n "(cached) " >&6
23391else
cristy8b350f62009-11-15 23:12:43 +000023392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023393/* end confdefs.h. */
23394#include <float.h>
23395 long double const a[] =
23396 {
23397 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23398 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23399 };
23400 long double
23401 f (long double x)
23402 {
23403 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23404 + (x ? f (x) : 'c'));
23405 }
23406
23407int
23408main ()
23409{
23410static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23411 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23412 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23413 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23414 && (int) LDBL_EPSILON == 0
23415 )];
cristy14fefe52012-05-21 00:59:18 +000023416test_array [0] = 0;
23417return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023418
23419 ;
23420 return 0;
23421}
23422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023424 ac_cv_type_long_double_wider=yes
23425else
cristy8b350f62009-11-15 23:12:43 +000023426 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023427fi
cristy3ed852e2009-09-05 21:47:34 +000023428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo "$ac_cv_type_long_double_wider" >&6; }
23432 if test $ac_cv_type_long_double_wider = yes; then
23433
cristy8b350f62009-11-15 23:12:43 +000023434$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023435
23436 fi
23437
23438
cristy501c8042011-05-26 17:46:28 +000023439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23440$as_echo_n "checking for long long int... " >&6; }
23441if ${ac_cv_type_long_long_int+:} false; then :
23442 $as_echo_n "(cached) " >&6
23443else
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h. */
23446
23447 /* For now, do not test the preprocessor; as of 2007 there are too many
23448 implementations with broken preprocessors. Perhaps this can
23449 be revisited in 2012. In the meantime, code should not expect
23450 #if to work with literals wider than 32 bits. */
23451 /* Test literals. */
23452 long long int ll = 9223372036854775807ll;
23453 long long int nll = -9223372036854775807LL;
23454 unsigned long long int ull = 18446744073709551615ULL;
23455 /* Test constant expressions. */
23456 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23457 ? 1 : -1)];
23458 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23459 ? 1 : -1)];
23460 int i = 63;
23461int
23462main ()
23463{
23464/* Test availability of runtime routines for shift and division. */
23465 long long int llmax = 9223372036854775807ll;
23466 unsigned long long int ullmax = 18446744073709551615ull;
23467 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23468 | (llmax / ll) | (llmax % ll)
23469 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23470 | (ullmax / ull) | (ullmax % ull));
23471 ;
23472 return 0;
23473}
23474
23475_ACEOF
23476if ac_fn_c_try_link "$LINENO"; then :
23477 if test "$cross_compiling" = yes; then :
23478 ac_cv_type_long_long_int=yes
23479else
23480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481/* end confdefs.h. */
23482#include <limits.h>
23483 #ifndef LLONG_MAX
23484 # define HALF \
23485 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23486 # define LLONG_MAX (HALF - 1 + HALF)
23487 #endif
23488int
23489main ()
23490{
23491long long int n = 1;
23492 int i;
23493 for (i = 0; ; i++)
23494 {
23495 long long int m = n << i;
23496 if (m >> i != n)
23497 return 1;
23498 if (LLONG_MAX / 2 < m)
23499 break;
23500 }
23501 return 0;
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506if ac_fn_c_try_run "$LINENO"; then :
23507 ac_cv_type_long_long_int=yes
23508else
23509 ac_cv_type_long_long_int=no
23510fi
23511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23512 conftest.$ac_objext conftest.beam conftest.$ac_ext
23513fi
23514
23515else
23516 ac_cv_type_long_long_int=no
23517fi
23518rm -f core conftest.err conftest.$ac_objext \
23519 conftest$ac_exeext conftest.$ac_ext
23520fi
23521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23522$as_echo "$ac_cv_type_long_long_int" >&6; }
23523 if test $ac_cv_type_long_long_int = yes; then
23524
23525$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23526
23527 fi
23528
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23530$as_echo_n "checking for mbstate_t... " >&6; }
23531if ${ac_cv_type_mbstate_t+:} false; then :
23532 $as_echo_n "(cached) " >&6
23533else
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535/* end confdefs.h. */
23536$ac_includes_default
23537# include <wchar.h>
23538int
23539main ()
23540{
23541mbstate_t x; return sizeof x;
23542 ;
23543 return 0;
23544}
23545_ACEOF
23546if ac_fn_c_try_compile "$LINENO"; then :
23547 ac_cv_type_mbstate_t=yes
23548else
23549 ac_cv_type_mbstate_t=no
23550fi
23551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552fi
23553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23554$as_echo "$ac_cv_type_mbstate_t" >&6; }
23555 if test $ac_cv_type_mbstate_t = yes; then
23556
23557$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23558
23559 else
23560
23561$as_echo "#define mbstate_t int" >>confdefs.h
23562
23563 fi
23564ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23565if test "x$ac_cv_type_mode_t" = xyes; then :
23566
23567else
23568
23569cat >>confdefs.h <<_ACEOF
23570#define mode_t int
23571_ACEOF
23572
23573fi
23574
23575ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23576if test "x$ac_cv_type_off_t" = xyes; then :
23577
23578else
23579
23580cat >>confdefs.h <<_ACEOF
23581#define off_t long int
23582_ACEOF
23583
23584fi
23585
23586ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23587if test "x$ac_cv_type_pid_t" = xyes; then :
23588
23589else
23590
23591cat >>confdefs.h <<_ACEOF
23592#define pid_t int
23593_ACEOF
23594
23595fi
23596
23597ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23598if test "x$ac_cv_type_size_t" = xyes; then :
23599
23600else
23601
23602cat >>confdefs.h <<_ACEOF
23603#define size_t unsigned int
23604_ACEOF
23605
23606fi
23607
23608ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23609if test "x$ac_cv_type_ssize_t" = xyes; then :
23610
23611else
23612
23613cat >>confdefs.h <<_ACEOF
23614#define ssize_t int
23615_ACEOF
23616
23617fi
23618
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23620$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23621if ${ac_cv_type_uid_t+:} false; then :
23622 $as_echo_n "(cached) " >&6
23623else
23624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625/* end confdefs.h. */
23626#include <sys/types.h>
23627
23628_ACEOF
23629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23630 $EGREP "uid_t" >/dev/null 2>&1; then :
23631 ac_cv_type_uid_t=yes
23632else
23633 ac_cv_type_uid_t=no
23634fi
23635rm -f conftest*
23636
23637fi
23638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23639$as_echo "$ac_cv_type_uid_t" >&6; }
23640if test $ac_cv_type_uid_t = no; then
23641
23642$as_echo "#define uid_t int" >>confdefs.h
23643
23644
23645$as_echo "#define gid_t int" >>confdefs.h
23646
23647fi
23648
23649ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23650case $ac_cv_c_uint8_t in #(
23651 no|yes) ;; #(
23652 *)
23653
23654$as_echo "#define _UINT8_T 1" >>confdefs.h
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define uint8_t $ac_cv_c_uint8_t
23659_ACEOF
23660;;
23661 esac
23662
23663ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23664case $ac_cv_c_uint16_t in #(
23665 no|yes) ;; #(
23666 *)
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define uint16_t $ac_cv_c_uint16_t
23671_ACEOF
23672;;
23673 esac
23674
23675ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23676case $ac_cv_c_uint32_t in #(
23677 no|yes) ;; #(
23678 *)
23679
23680$as_echo "#define _UINT32_T 1" >>confdefs.h
23681
23682
23683cat >>confdefs.h <<_ACEOF
23684#define uint32_t $ac_cv_c_uint32_t
23685_ACEOF
23686;;
23687 esac
23688
23689ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23690case $ac_cv_c_uint64_t in #(
23691 no|yes) ;; #(
23692 *)
23693
23694$as_echo "#define _UINT64_T 1" >>confdefs.h
23695
23696
23697cat >>confdefs.h <<_ACEOF
23698#define uint64_t $ac_cv_c_uint64_t
23699_ACEOF
23700;;
23701 esac
23702
23703
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23705$as_echo_n "checking for unsigned long long int... " >&6; }
23706if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23707 $as_echo_n "(cached) " >&6
23708else
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710/* end confdefs.h. */
23711
23712 /* For now, do not test the preprocessor; as of 2007 there are too many
23713 implementations with broken preprocessors. Perhaps this can
23714 be revisited in 2012. In the meantime, code should not expect
23715 #if to work with literals wider than 32 bits. */
23716 /* Test literals. */
23717 long long int ll = 9223372036854775807ll;
23718 long long int nll = -9223372036854775807LL;
23719 unsigned long long int ull = 18446744073709551615ULL;
23720 /* Test constant expressions. */
23721 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23722 ? 1 : -1)];
23723 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23724 ? 1 : -1)];
23725 int i = 63;
23726int
23727main ()
23728{
23729/* Test availability of runtime routines for shift and division. */
23730 long long int llmax = 9223372036854775807ll;
23731 unsigned long long int ullmax = 18446744073709551615ull;
23732 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23733 | (llmax / ll) | (llmax % ll)
23734 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23735 | (ullmax / ull) | (ullmax % ull));
23736 ;
23737 return 0;
23738}
23739
23740_ACEOF
23741if ac_fn_c_try_link "$LINENO"; then :
23742 ac_cv_type_unsigned_long_long_int=yes
23743else
23744 ac_cv_type_unsigned_long_long_int=no
23745fi
23746rm -f core conftest.err conftest.$ac_objext \
23747 conftest$ac_exeext conftest.$ac_ext
23748fi
23749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23750$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23751 if test $ac_cv_type_unsigned_long_long_int = yes; then
23752
23753$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23754
23755 fi
23756
23757
23758
23759 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23760if test "x$ac_cv_type_uintmax_t" = xyes; then :
23761
23762$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23763
23764else
23765 test $ac_cv_type_unsigned_long_long_int = yes \
23766 && ac_type='unsigned long long int' \
23767 || ac_type='unsigned long int'
23768
23769cat >>confdefs.h <<_ACEOF
23770#define uintmax_t $ac_type
23771_ACEOF
23772
23773fi
23774
23775
23776
23777 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23778if test "x$ac_cv_type_uintptr_t" = xyes; then :
23779
23780$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23781
23782else
23783 for ac_type in 'unsigned int' 'unsigned long int' \
23784 'unsigned long long int'; do
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786/* end confdefs.h. */
23787$ac_includes_default
23788int
23789main ()
23790{
23791static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023792test_array [0] = 0;
23793return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023794
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799if ac_fn_c_try_compile "$LINENO"; then :
23800
23801cat >>confdefs.h <<_ACEOF
23802#define uintptr_t $ac_type
23803_ACEOF
23804
23805 ac_type=
23806fi
23807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808 test -z "$ac_type" && break
23809 done
23810fi
23811
23812
23813
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23815$as_echo_n "checking for unsigned long long int... " >&6; }
23816if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23817 $as_echo_n "(cached) " >&6
23818else
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820/* end confdefs.h. */
23821
23822 /* For now, do not test the preprocessor; as of 2007 there are too many
23823 implementations with broken preprocessors. Perhaps this can
23824 be revisited in 2012. In the meantime, code should not expect
23825 #if to work with literals wider than 32 bits. */
23826 /* Test literals. */
23827 long long int ll = 9223372036854775807ll;
23828 long long int nll = -9223372036854775807LL;
23829 unsigned long long int ull = 18446744073709551615ULL;
23830 /* Test constant expressions. */
23831 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23832 ? 1 : -1)];
23833 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23834 ? 1 : -1)];
23835 int i = 63;
23836int
23837main ()
23838{
23839/* Test availability of runtime routines for shift and division. */
23840 long long int llmax = 9223372036854775807ll;
23841 unsigned long long int ullmax = 18446744073709551615ull;
23842 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23843 | (llmax / ll) | (llmax % ll)
23844 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23845 | (ullmax / ull) | (ullmax % ull));
23846 ;
23847 return 0;
23848}
23849
23850_ACEOF
23851if ac_fn_c_try_link "$LINENO"; then :
23852 ac_cv_type_unsigned_long_long_int=yes
23853else
23854 ac_cv_type_unsigned_long_long_int=no
23855fi
23856rm -f core conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23858fi
23859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23860$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23861 if test $ac_cv_type_unsigned_long_long_int = yes; then
23862
23863$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23864
23865 fi
23866
23867
cristy3ed852e2009-09-05 21:47:34 +000023868# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23869# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023872if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023873 $as_echo_n "(cached) " >&6
23874else
cristy8b350f62009-11-15 23:12:43 +000023875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023876/* end confdefs.h. */
23877$ac_includes_default
23878int
23879main ()
23880{
23881static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023882test_array [0] = 0;
23883return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023884
23885 ;
23886 return 0;
23887}
23888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023890 ac_cv_c_char_unsigned=no
23891else
cristy8b350f62009-11-15 23:12:43 +000023892 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023893fi
cristy3ed852e2009-09-05 21:47:34 +000023894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895fi
cristy8b350f62009-11-15 23:12:43 +000023896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo "$ac_cv_c_char_unsigned" >&6; }
23898if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023899 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023900
23901fi
23902
23903
23904# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23905# The cast to long int works around a bug in the HP C Compiler
23906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23908# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023911if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023912 $as_echo_n "(cached) " >&6
23913else
cristy8b350f62009-11-15 23:12:43 +000023914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023915
cristy3ed852e2009-09-05 21:47:34 +000023916else
cristy8b350f62009-11-15 23:12:43 +000023917 if test "$ac_cv_type_signed_short" = yes; then
23918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023920as_fn_error 77 "cannot compute sizeof (signed short)
23921See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023922 else
23923 ac_cv_sizeof_signed_short=0
23924 fi
23925fi
cristy8b350f62009-11-15 23:12:43 +000023926
cristy3ed852e2009-09-05 21:47:34 +000023927fi
cristy8b350f62009-11-15 23:12:43 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023929$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23930
23931
23932
23933cat >>confdefs.h <<_ACEOF
23934#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23935_ACEOF
23936
23937
23938
23939# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23940# The cast to long int works around a bug in the HP C Compiler
23941# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23942# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23943# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023945$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023946if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023947 $as_echo_n "(cached) " >&6
23948else
cristy8b350f62009-11-15 23:12:43 +000023949 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023950
cristy3ed852e2009-09-05 21:47:34 +000023951else
cristy8b350f62009-11-15 23:12:43 +000023952 if test "$ac_cv_type_unsigned_short" = yes; then
23953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023955as_fn_error 77 "cannot compute sizeof (unsigned short)
23956See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023957 else
23958 ac_cv_sizeof_unsigned_short=0
23959 fi
23960fi
cristy8b350f62009-11-15 23:12:43 +000023961
cristy3ed852e2009-09-05 21:47:34 +000023962fi
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23965
23966
23967
23968cat >>confdefs.h <<_ACEOF
23969#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23970_ACEOF
23971
23972
23973
23974# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23975# The cast to long int works around a bug in the HP C Compiler
23976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23978# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023981if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 $as_echo_n "(cached) " >&6
23983else
cristy8b350f62009-11-15 23:12:43 +000023984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023985
cristy3ed852e2009-09-05 21:47:34 +000023986else
cristy8b350f62009-11-15 23:12:43 +000023987 if test "$ac_cv_type_signed_int" = yes; then
23988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023990as_fn_error 77 "cannot compute sizeof (signed int)
23991See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023992 else
23993 ac_cv_sizeof_signed_int=0
23994 fi
23995fi
cristy8b350f62009-11-15 23:12:43 +000023996
cristy3ed852e2009-09-05 21:47:34 +000023997fi
cristy8b350f62009-11-15 23:12:43 +000023998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24000
24001
24002
24003cat >>confdefs.h <<_ACEOF
24004#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24005_ACEOF
24006
24007
24008
24009# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24010# The cast to long int works around a bug in the HP C Compiler
24011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24013# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024016if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024017 $as_echo_n "(cached) " >&6
24018else
cristy8b350f62009-11-15 23:12:43 +000024019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024020
cristy3ed852e2009-09-05 21:47:34 +000024021else
cristy8b350f62009-11-15 23:12:43 +000024022 if test "$ac_cv_type_unsigned_int" = yes; then
24023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024025as_fn_error 77 "cannot compute sizeof (unsigned int)
24026See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024027 else
24028 ac_cv_sizeof_unsigned_int=0
24029 fi
24030fi
cristy8b350f62009-11-15 23:12:43 +000024031
cristy3ed852e2009-09-05 21:47:34 +000024032fi
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24035
24036
24037
24038cat >>confdefs.h <<_ACEOF
24039#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24040_ACEOF
24041
24042
24043
24044# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24045# The cast to long int works around a bug in the HP C Compiler
24046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24048# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024050$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024051if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024052 $as_echo_n "(cached) " >&6
24053else
cristy8b350f62009-11-15 23:12:43 +000024054 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024055
cristy3ed852e2009-09-05 21:47:34 +000024056else
cristy8b350f62009-11-15 23:12:43 +000024057 if test "$ac_cv_type_signed_long" = yes; then
24058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024060as_fn_error 77 "cannot compute sizeof (signed long)
24061See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024062 else
24063 ac_cv_sizeof_signed_long=0
24064 fi
24065fi
cristy8b350f62009-11-15 23:12:43 +000024066
cristy3ed852e2009-09-05 21:47:34 +000024067fi
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24070
24071
24072
24073cat >>confdefs.h <<_ACEOF
24074#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24075_ACEOF
24076
24077
24078
24079# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24080# The cast to long int works around a bug in the HP C Compiler
24081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24083# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024085$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024086if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024087 $as_echo_n "(cached) " >&6
24088else
cristy8b350f62009-11-15 23:12:43 +000024089 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024090
cristy3ed852e2009-09-05 21:47:34 +000024091else
cristy8b350f62009-11-15 23:12:43 +000024092 if test "$ac_cv_type_unsigned_long" = yes; then
24093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024095as_fn_error 77 "cannot compute sizeof (unsigned long)
24096See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024097 else
24098 ac_cv_sizeof_unsigned_long=0
24099 fi
24100fi
cristy8b350f62009-11-15 23:12:43 +000024101
cristy3ed852e2009-09-05 21:47:34 +000024102fi
cristy8b350f62009-11-15 23:12:43 +000024103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24105
24106
24107
24108cat >>confdefs.h <<_ACEOF
24109#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24110_ACEOF
24111
24112
24113
24114# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24115# 'signed long long' is not supported then the value defined is zero.
24116# The cast to long int works around a bug in the HP C Compiler
24117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24119# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024122if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 $as_echo_n "(cached) " >&6
24124else
cristy8b350f62009-11-15 23:12:43 +000024125 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024126
cristy3ed852e2009-09-05 21:47:34 +000024127else
cristy8b350f62009-11-15 23:12:43 +000024128 if test "$ac_cv_type_signed_long_long" = yes; then
24129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024131as_fn_error 77 "cannot compute sizeof (signed long long)
24132See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024133 else
24134 ac_cv_sizeof_signed_long_long=0
24135 fi
24136fi
cristy8b350f62009-11-15 23:12:43 +000024137
cristy3ed852e2009-09-05 21:47:34 +000024138fi
cristy8b350f62009-11-15 23:12:43 +000024139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24141
24142
24143
24144cat >>confdefs.h <<_ACEOF
24145#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24146_ACEOF
24147
24148
24149
24150# Obtain size of a 'unsigned long long' and define as
24151# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24152# supported then the value defined is zero.
24153# The cast to long int works around a bug in the HP C Compiler
24154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24156# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024159if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
cristy8b350f62009-11-15 23:12:43 +000024162 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024163
cristy3ed852e2009-09-05 21:47:34 +000024164else
cristy8b350f62009-11-15 23:12:43 +000024165 if test "$ac_cv_type_unsigned_long_long" = yes; then
24166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024168as_fn_error 77 "cannot compute sizeof (unsigned long long)
24169See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024170 else
24171 ac_cv_sizeof_unsigned_long_long=0
24172 fi
24173fi
cristy8b350f62009-11-15 23:12:43 +000024174
cristy3ed852e2009-09-05 21:47:34 +000024175fi
cristy8b350f62009-11-15 23:12:43 +000024176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024177$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24178
24179
24180
24181cat >>confdefs.h <<_ACEOF
24182#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24183_ACEOF
24184
24185
24186
24187# Obtain size of off_t and define as SIZEOF_OFF_T
24188# The cast to long int works around a bug in the HP C Compiler
24189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24191# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024194if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024195 $as_echo_n "(cached) " >&6
24196else
cristy8b350f62009-11-15 23:12:43 +000024197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024198
cristy3ed852e2009-09-05 21:47:34 +000024199else
cristy8b350f62009-11-15 23:12:43 +000024200 if test "$ac_cv_type_off_t" = yes; then
24201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024203as_fn_error 77 "cannot compute sizeof (off_t)
24204See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024205 else
24206 ac_cv_sizeof_off_t=0
24207 fi
24208fi
cristy8b350f62009-11-15 23:12:43 +000024209
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$ac_cv_sizeof_off_t" >&6; }
24213
24214
24215
24216cat >>confdefs.h <<_ACEOF
24217#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24218_ACEOF
24219
24220
24221
24222# Obtain size of size_t and define as SIZEOF_SIZE_T
24223# The cast to long int works around a bug in the HP C Compiler
24224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24226# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024229if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 $as_echo_n "(cached) " >&6
24231else
cristy8b350f62009-11-15 23:12:43 +000024232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024233
cristy3ed852e2009-09-05 21:47:34 +000024234else
cristy8b350f62009-11-15 23:12:43 +000024235 if test "$ac_cv_type_size_t" = yes; then
24236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024238as_fn_error 77 "cannot compute sizeof (size_t)
24239See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024240 else
24241 ac_cv_sizeof_size_t=0
24242 fi
24243fi
cristy8b350f62009-11-15 23:12:43 +000024244
cristy3ed852e2009-09-05 21:47:34 +000024245fi
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo "$ac_cv_sizeof_size_t" >&6; }
24248
24249
24250
24251cat >>confdefs.h <<_ACEOF
24252#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24253_ACEOF
24254
24255
24256
cristy330e9352010-06-01 18:42:49 +000024257# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24258# The cast to long int works around a bug in the HP C Compiler
24259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24261# This bug is HP SR number 8606223364.
24262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24263$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024264if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024265 $as_echo_n "(cached) " >&6
24266else
24267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24268
24269else
24270 if test "$ac_cv_type_ssize_t" = yes; then
24271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024273as_fn_error 77 "cannot compute sizeof (ssize_t)
24274See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024275 else
24276 ac_cv_sizeof_ssize_t=0
24277 fi
24278fi
24279
24280fi
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24282$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24283
24284
24285
24286cat >>confdefs.h <<_ACEOF
24287#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24288_ACEOF
24289
24290
24291
cristy3ed852e2009-09-05 21:47:34 +000024292# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24293# The cast to long int works around a bug in the HP C Compiler
24294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24296# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024298$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024299if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 $as_echo_n "(cached) " >&6
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024303
cristy3ed852e2009-09-05 21:47:34 +000024304else
cristy8b350f62009-11-15 23:12:43 +000024305 if test "$ac_cv_type_unsigned_intp" = yes; then
24306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024308as_fn_error 77 "cannot compute sizeof (unsigned int*)
24309See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024310 else
24311 ac_cv_sizeof_unsigned_intp=0
24312 fi
24313fi
cristy8b350f62009-11-15 23:12:43 +000024314
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24318
24319
24320
24321cat >>confdefs.h <<_ACEOF
24322#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24323_ACEOF
24324
24325
24326
24327#
24328# Compute sized types for current CPU and compiler options.
24329#
24330
cristy8b350f62009-11-15 23:12:43 +000024331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024332$as_echo_n "checking for signed 8-bit type... " >&6; }
24333INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024334{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24335$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024336
24337
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24340UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024341{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24342$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024343
24344
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo_n "checking for signed 16-bit type... " >&6; }
24347INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24349$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024350
24351
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24354UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24356$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024357
24358
cristy8b350f62009-11-15 23:12:43 +000024359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024360$as_echo_n "checking for signed 32-bit type... " >&6; }
24361INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024362INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024363if test $ac_cv_sizeof_signed_int -eq 4; then
24364 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024365 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024366elif test $ac_cv_sizeof_signed_long -eq 4; then
24367 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024368 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024369fi
cristy09b53e12011-10-14 12:47:22 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24371$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024372
24373
cristy6d5e20f2011-04-25 13:48:54 +000024374
cristy8b350f62009-11-15 23:12:43 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24377UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024378UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024379if test $ac_cv_sizeof_unsigned_int -eq 4; then
24380 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024381 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024382elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24383 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024384 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristy09b53e12011-10-14 12:47:22 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24387$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024388
24389
cristy6d5e20f2011-04-25 13:48:54 +000024390
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo_n "checking for signed 64-bit type... " >&6; }
24393INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024394INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024395if test $ac_cv_sizeof_signed_long -eq 8; then
24396 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024397 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024398elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24399 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024400 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024401fi
cristy3a99dcf2011-12-17 01:29:40 +000024402case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024403 mingw* )
24404 INT64_F='"I64"'
24405 ;;
24406esac
cristy09b53e12011-10-14 12:47:22 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24408$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024409
24410
cristy6d5e20f2011-04-25 13:48:54 +000024411
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24414UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024415UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024416if test $ac_cv_sizeof_unsigned_long -eq 8; then
24417 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024418 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024419elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24420 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024421 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy3a99dcf2011-12-17 01:29:40 +000024423case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024424 mingw* )
24425 UINT64_F='"I64"'
24426 ;;
24427esac
cristy09b53e12011-10-14 12:47:22 +000024428{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24429$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024430
24431
cristy6d5e20f2011-04-25 13:48:54 +000024432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for unsigned maximum type... " >&6; }
24435UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024436UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024437if test "$UINT64_T" != 'none'; then
24438 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024439 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024440elif test "$UINT32_T" != 'none'; then
24441 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024442 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024443fi
cristy09b53e12011-10-14 12:47:22 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24445$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024446
24447
cristy6d5e20f2011-04-25 13:48:54 +000024448
cristy8b350f62009-11-15 23:12:43 +000024449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024450$as_echo_n "checking for pointer difference type... " >&6; }
24451UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024452UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024453if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24454 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024455 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024456elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24457 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024458 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024459fi
cristy09b53e12011-10-14 12:47:22 +000024460{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24461$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024462
24463
cristy6d5e20f2011-04-25 13:48:54 +000024464
cristy8b350f62009-11-15 23:12:43 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024468/* end confdefs.h. */
24469
24470int
24471main ()
24472{
24473{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24474 ;
24475 return 0;
24476}
24477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024478if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024479 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24480$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024481else
cristy09b53e12011-10-14 12:47:22 +000024482 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24483$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024487/* end confdefs.h. */
24488
24489int
24490main ()
24491{
24492{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24493 ;
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024498 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24499$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024500
cristy8b350f62009-11-15 23:12:43 +000024501$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024502
24503else
cristy09b53e12011-10-14 12:47:22 +000024504 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24505$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024506
cristy8b350f62009-11-15 23:12:43 +000024507$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024508
24509fi
cristy3ed852e2009-09-05 21:47:34 +000024510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511fi
cristy3ed852e2009-09-05 21:47:34 +000024512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24513
24514########
24515#
24516# Check for functions
24517#
24518########
cristy73bd4a52010-10-05 11:24:23 +000024519for ac_header in stdlib.h unistd.h
24520do :
24521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024524 cat >>confdefs.h <<_ACEOF
24525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24526_ACEOF
24527
24528fi
24529
24530done
24531
24532for ac_func in getpagesize
24533do :
24534 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024535if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024536 cat >>confdefs.h <<_ACEOF
24537#define HAVE_GETPAGESIZE 1
24538_ACEOF
24539
24540fi
24541done
24542
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24544$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024545if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024546 $as_echo_n "(cached) " >&6
24547else
24548 if test "$cross_compiling" = yes; then :
24549 magick_cv_func_mmap_fileio=no
24550else
24551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24552/* end confdefs.h. */
24553$ac_includes_default
24554/* malloc might have been renamed as rpl_malloc. */
24555#undef malloc
24556
24557/*
24558 This test is derived from GNU Autoconf's similar macro.
24559 The purpose of this test is to verify that files may be memory
24560 mapped, and that memory mapping and file I/O are coherent.
24561
24562 The test creates a test file, memory maps the file, updates
24563 the file using the memory map, and then reads the file using
24564 file I/O to verify that the file contains the updates.
24565*/
24566
24567#include <fcntl.h>
24568#include <sys/mman.h>
24569
24570#if !STDC_HEADERS && !HAVE_STDLIB_H
24571char *malloc ();
24572#endif
24573
24574/* This mess was copied from the GNU getpagesize.h. */
24575#if !HAVE_GETPAGESIZE
24576/* Assume that all systems that can run configure have sys/param.h. */
24577# if !HAVE_SYS_PARAM_H
24578# define HAVE_SYS_PARAM_H 1
24579# endif
24580
24581# ifdef _SC_PAGESIZE
24582# define getpagesize() sysconf(_SC_PAGESIZE)
24583# else /* no _SC_PAGESIZE */
24584# if HAVE_SYS_PARAM_H
24585# include <sys/param.h>
24586# ifdef EXEC_PAGESIZE
24587# define getpagesize() EXEC_PAGESIZE
24588# else /* no EXEC_PAGESIZE */
24589# ifdef NBPG
24590# define getpagesize() NBPG * CLSIZE
24591# ifndef CLSIZE
24592# define CLSIZE 1
24593# endif /* no CLSIZE */
24594# else /* no NBPG */
24595# ifdef NBPC
24596# define getpagesize() NBPC
24597# else /* no NBPC */
24598# ifdef PAGESIZE
24599# define getpagesize() PAGESIZE
24600# endif /* PAGESIZE */
24601# endif /* no NBPC */
24602# endif /* no NBPG */
24603# endif /* no EXEC_PAGESIZE */
24604# else /* no HAVE_SYS_PARAM_H */
24605# define getpagesize() 8192 /* punt totally */
24606# endif /* no HAVE_SYS_PARAM_H */
24607# endif /* no _SC_PAGESIZE */
24608
24609#endif /* no HAVE_GETPAGESIZE */
24610
24611int
24612main ()
24613{
24614 char *data, *data2, *data3;
24615 int i, pagesize;
24616 int fd;
24617
24618 pagesize = getpagesize ();
24619
24620 /* First, make a file with some known garbage in it. */
24621 data = (char *) malloc (pagesize);
24622 if (!data)
24623 exit (1);
24624 for (i = 0; i < pagesize; ++i)
24625 *(data + i) = rand ();
24626 umask (0);
24627 fd = creat ("conftest.mmap", 0600);
24628 if (fd < 0)
24629 exit (1);
24630 if (write (fd, data, pagesize) != pagesize)
24631 exit (1);
24632 close (fd);
24633
24634 /* Mmap the file as read/write/shared and verify that we see the
24635 same garbage. */
24636 fd = open ("conftest.mmap", O_RDWR);
24637 if (fd < 0)
24638 exit (1);
24639 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24640 if (data2 == 0)
24641 exit (1);
24642 for (i = 0; i < pagesize; ++i)
24643 if (*(data + i) != *(data2 + i))
24644 exit (1);
24645
24646 /* Finally, make sure that changes to the mapped area
24647 percolate back to the file as seen by read(). */
24648 for (i = 0; i < pagesize; ++i)
24649 *(data2 + i) = *(data2 + i) + 1;
24650 data3 = (char *) malloc (pagesize);
24651 if (!data3)
24652 exit (1);
24653 if (read (fd, data3, pagesize) != pagesize)
24654 exit (1);
24655 for (i = 0; i < pagesize; ++i)
24656 if (*(data2 + i) != *(data3 + i))
24657 exit (1);
24658 close (fd);
24659 exit (0);
24660}
24661_ACEOF
24662if ac_fn_c_try_run "$LINENO"; then :
24663 magick_cv_func_mmap_fileio=yes
24664else
24665 magick_cv_func_mmap_fileio=no
24666fi
24667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24668 conftest.$ac_objext conftest.beam conftest.$ac_ext
24669fi
24670
24671fi
24672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24673$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24674if test $magick_cv_func_mmap_fileio = yes; then
24675
24676$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24677
24678fi
24679rm -f conftest.mmap
24680
cristy8b350f62009-11-15 23:12:43 +000024681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024683if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 $as_echo_n "(cached) " >&6
24685else
cristy8b350f62009-11-15 23:12:43 +000024686 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024687 ac_cv_func_closedir_void=yes
24688else
cristy8b350f62009-11-15 23:12:43 +000024689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691$ac_includes_default
24692#include <$ac_header_dirent>
24693#ifndef __cplusplus
24694int closedir ();
24695#endif
24696
24697int
24698main ()
24699{
24700return closedir (opendir (".")) != 0;
24701 ;
24702 return 0;
24703}
24704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024705if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024706 ac_cv_func_closedir_void=no
24707else
cristy8b350f62009-11-15 23:12:43 +000024708 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024709fi
cristy8b350f62009-11-15 23:12:43 +000024710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24711 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024712fi
24713
cristy3ed852e2009-09-05 21:47:34 +000024714fi
cristy8b350f62009-11-15 23:12:43 +000024715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo "$ac_cv_func_closedir_void" >&6; }
24717if test $ac_cv_func_closedir_void = yes; then
24718
cristy8b350f62009-11-15 23:12:43 +000024719$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024720
24721fi
24722
cristycd4c5312009-11-22 01:19:08 +000024723
24724
24725
24726 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024727do :
24728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024729ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24730"
cristy98dddb52010-11-04 00:30:15 +000024731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 cat >>confdefs.h <<_ACEOF
24733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24734_ACEOF
24735
24736fi
24737
24738done
24739
cristycd4c5312009-11-22 01:19:08 +000024740
24741
24742
24743
24744
24745
24746
cristy3ed852e2009-09-05 21:47:34 +000024747for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024748do :
24749 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024750if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024751 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024752#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024753_ACEOF
24754
24755fi
24756done
24757
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024760if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 $as_echo_n "(cached) " >&6
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_func_mmap_fixed_mapped=no
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024767/* end confdefs.h. */
24768$ac_includes_default
24769/* malloc might have been renamed as rpl_malloc. */
24770#undef malloc
24771
24772/* Thanks to Mike Haertel and Jim Avera for this test.
24773 Here is a matrix of mmap possibilities:
24774 mmap private not fixed
24775 mmap private fixed at somewhere currently unmapped
24776 mmap private fixed at somewhere already mapped
24777 mmap shared not fixed
24778 mmap shared fixed at somewhere currently unmapped
24779 mmap shared fixed at somewhere already mapped
24780 For private mappings, we should verify that changes cannot be read()
24781 back from the file, nor mmap's back from the file at a different
24782 address. (There have been systems where private was not correctly
24783 implemented like the infamous i386 svr4.0, and systems where the
24784 VM page cache was not coherent with the file system buffer cache
24785 like early versions of FreeBSD and possibly contemporary NetBSD.)
24786 For shared mappings, we should conversely verify that changes get
24787 propagated back to all the places they're supposed to be.
24788
24789 Grep wants private fixed already mapped.
24790 The main things grep needs to know about mmap are:
24791 * does it exist and is it safe to write into the mmap'd area
24792 * how to use it (BSD variants) */
24793
24794#include <fcntl.h>
24795#include <sys/mman.h>
24796
24797#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24798char *malloc ();
24799#endif
24800
24801/* This mess was copied from the GNU getpagesize.h. */
24802#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024803# ifdef _SC_PAGESIZE
24804# define getpagesize() sysconf(_SC_PAGESIZE)
24805# else /* no _SC_PAGESIZE */
24806# ifdef HAVE_SYS_PARAM_H
24807# include <sys/param.h>
24808# ifdef EXEC_PAGESIZE
24809# define getpagesize() EXEC_PAGESIZE
24810# else /* no EXEC_PAGESIZE */
24811# ifdef NBPG
24812# define getpagesize() NBPG * CLSIZE
24813# ifndef CLSIZE
24814# define CLSIZE 1
24815# endif /* no CLSIZE */
24816# else /* no NBPG */
24817# ifdef NBPC
24818# define getpagesize() NBPC
24819# else /* no NBPC */
24820# ifdef PAGESIZE
24821# define getpagesize() PAGESIZE
24822# endif /* PAGESIZE */
24823# endif /* no NBPC */
24824# endif /* no NBPG */
24825# endif /* no EXEC_PAGESIZE */
24826# else /* no HAVE_SYS_PARAM_H */
24827# define getpagesize() 8192 /* punt totally */
24828# endif /* no HAVE_SYS_PARAM_H */
24829# endif /* no _SC_PAGESIZE */
24830
24831#endif /* no HAVE_GETPAGESIZE */
24832
24833int
24834main ()
24835{
24836 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024837 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024838 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024839 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024840
24841 pagesize = getpagesize ();
24842
24843 /* First, make a file with some known garbage in it. */
24844 data = (char *) malloc (pagesize);
24845 if (!data)
24846 return 1;
24847 for (i = 0; i < pagesize; ++i)
24848 *(data + i) = rand ();
24849 umask (0);
24850 fd = creat ("conftest.mmap", 0600);
24851 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024852 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024853 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024854 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024855 close (fd);
24856
cristycd4c5312009-11-22 01:19:08 +000024857 /* Next, check that the tail of a page is zero-filled. File must have
24858 non-zero length, otherwise we risk SIGBUS for entire page. */
24859 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24860 if (fd2 < 0)
24861 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024862 cdata2 = "";
24863 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024864 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024865 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024866 if (data2 == MAP_FAILED)
24867 return 6;
24868 for (i = 0; i < pagesize; ++i)
24869 if (*(data2 + i))
24870 return 7;
24871 close (fd2);
24872 if (munmap (data2, pagesize))
24873 return 8;
24874
cristy3ed852e2009-09-05 21:47:34 +000024875 /* Next, try to mmap the file at a fixed address which already has
24876 something else allocated at it. If we can, also make sure that
24877 we see the same garbage. */
24878 fd = open ("conftest.mmap", O_RDWR);
24879 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024880 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024881 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24882 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024883 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024884 for (i = 0; i < pagesize; ++i)
24885 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024886 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024887
24888 /* Finally, make sure that changes to the mapped area do not
24889 percolate back to the file as seen by read(). (This is a bug on
24890 some variants of i386 svr4.0.) */
24891 for (i = 0; i < pagesize; ++i)
24892 *(data2 + i) = *(data2 + i) + 1;
24893 data3 = (char *) malloc (pagesize);
24894 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024895 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024896 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024897 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024898 for (i = 0; i < pagesize; ++i)
24899 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024900 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024901 close (fd);
24902 return 0;
24903}
24904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 ac_cv_func_mmap_fixed_mapped=yes
24907else
cristy8b350f62009-11-15 23:12:43 +000024908 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024909fi
cristy8b350f62009-11-15 23:12:43 +000024910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24911 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024912fi
24913
cristy3ed852e2009-09-05 21:47:34 +000024914fi
cristy8b350f62009-11-15 23:12:43 +000024915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024916$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24917if test $ac_cv_func_mmap_fixed_mapped = yes; then
24918
cristy8b350f62009-11-15 23:12:43 +000024919$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024920
24921fi
cristycd4c5312009-11-22 01:19:08 +000024922rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024923
cristy3ed852e2009-09-05 21:47:34 +000024924for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024925do :
24926 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024927if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024928 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024929#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024930_ACEOF
24931
24932fi
24933
24934done
24935
cristy3ed852e2009-09-05 21:47:34 +000024936for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024937do :
24938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024940if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 cat >>confdefs.h <<_ACEOF
24942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24943_ACEOF
24944
24945fi
24946done
24947
24948if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024951if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024952 $as_echo_n "(cached) " >&6
24953else
cristy8b350f62009-11-15 23:12:43 +000024954 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024955 ac_cv_func_fork_works=cross
24956else
cristy8b350f62009-11-15 23:12:43 +000024957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024958/* end confdefs.h. */
24959$ac_includes_default
24960int
24961main ()
24962{
24963
24964 /* By Ruediger Kuhlmann. */
24965 return fork () < 0;
24966
24967 ;
24968 return 0;
24969}
24970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024971if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024972 ac_cv_func_fork_works=yes
24973else
cristy8b350f62009-11-15 23:12:43 +000024974 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024975fi
cristy8b350f62009-11-15 23:12:43 +000024976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24977 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024978fi
24979
cristy3ed852e2009-09-05 21:47:34 +000024980fi
cristy8b350f62009-11-15 23:12:43 +000024981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024982$as_echo "$ac_cv_func_fork_works" >&6; }
24983
24984else
24985 ac_cv_func_fork_works=$ac_cv_func_fork
24986fi
24987if test "x$ac_cv_func_fork_works" = xcross; then
24988 case $host in
24989 *-*-amigaos* | *-*-msdosdjgpp*)
24990 # Override, as these systems have only a dummy fork() stub
24991 ac_cv_func_fork_works=no
24992 ;;
24993 *)
24994 ac_cv_func_fork_works=yes
24995 ;;
24996 esac
cristy8b350f62009-11-15 23:12:43 +000024997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000024998$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24999fi
25000ac_cv_func_vfork_works=$ac_cv_func_vfork
25001if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025004if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 $as_echo_n "(cached) " >&6
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 ac_cv_func_vfork_works=cross
25009else
cristy8b350f62009-11-15 23:12:43 +000025010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025011/* end confdefs.h. */
25012/* Thanks to Paul Eggert for this test. */
25013$ac_includes_default
25014#include <sys/wait.h>
25015#ifdef HAVE_VFORK_H
25016# include <vfork.h>
25017#endif
25018/* On some sparc systems, changes by the child to local and incoming
25019 argument registers are propagated back to the parent. The compiler
25020 is told about this with #include <vfork.h>, but some compilers
25021 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25022 static variable whose address is put into a register that is
25023 clobbered by the vfork. */
25024static void
25025#ifdef __cplusplus
25026sparc_address_test (int arg)
25027# else
25028sparc_address_test (arg) int arg;
25029#endif
25030{
25031 static pid_t child;
25032 if (!child) {
25033 child = vfork ();
25034 if (child < 0) {
25035 perror ("vfork");
25036 _exit(2);
25037 }
25038 if (!child) {
25039 arg = getpid();
25040 write(-1, "", 0);
25041 _exit (arg);
25042 }
25043 }
25044}
25045
25046int
25047main ()
25048{
25049 pid_t parent = getpid ();
25050 pid_t child;
25051
25052 sparc_address_test (0);
25053
25054 child = vfork ();
25055
25056 if (child == 0) {
25057 /* Here is another test for sparc vfork register problems. This
25058 test uses lots of local variables, at least as many local
25059 variables as main has allocated so far including compiler
25060 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25061 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25062 reuse the register of parent for one of the local variables,
25063 since it will think that parent can't possibly be used any more
25064 in this routine. Assigning to the local variable will thus
25065 munge parent in the parent process. */
25066 pid_t
25067 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25068 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25069 /* Convince the compiler that p..p7 are live; otherwise, it might
25070 use the same hardware register for all 8 local variables. */
25071 if (p != p1 || p != p2 || p != p3 || p != p4
25072 || p != p5 || p != p6 || p != p7)
25073 _exit(1);
25074
25075 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25076 from child file descriptors. If the child closes a descriptor
25077 before it execs or exits, this munges the parent's descriptor
25078 as well. Test for this by closing stdout in the child. */
25079 _exit(close(fileno(stdout)) != 0);
25080 } else {
25081 int status;
25082 struct stat st;
25083
25084 while (wait(&status) != child)
25085 ;
25086 return (
25087 /* Was there some problem with vforking? */
25088 child < 0
25089
25090 /* Did the child fail? (This shouldn't happen.) */
25091 || status
25092
25093 /* Did the vfork/compiler bug occur? */
25094 || parent != getpid()
25095
25096 /* Did the file descriptor bug occur? */
25097 || fstat(fileno(stdout), &st) != 0
25098 );
25099 }
25100}
25101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025103 ac_cv_func_vfork_works=yes
25104else
cristy8b350f62009-11-15 23:12:43 +000025105 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025106fi
cristy8b350f62009-11-15 23:12:43 +000025107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25108 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109fi
25110
cristy3ed852e2009-09-05 21:47:34 +000025111fi
cristy8b350f62009-11-15 23:12:43 +000025112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "$ac_cv_func_vfork_works" >&6; }
25114
25115fi;
25116if test "x$ac_cv_func_fork_works" = xcross; then
25117 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000025119$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25120fi
25121
25122if test "x$ac_cv_func_vfork_works" = xyes; then
25123
cristy8b350f62009-11-15 23:12:43 +000025124$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025125
25126else
25127
cristy8b350f62009-11-15 23:12:43 +000025128$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025129
25130fi
25131if test "x$ac_cv_func_fork_works" = xyes; then
25132
cristy8b350f62009-11-15 23:12:43 +000025133$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025134
25135fi
25136
cristy8b350f62009-11-15 23:12:43 +000025137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025138$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025139if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025140 $as_echo_n "(cached) " >&6
25141else
cristy8b350f62009-11-15 23:12:43 +000025142 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025143 ac_cv_func_memcmp_working=no
25144else
cristy8b350f62009-11-15 23:12:43 +000025145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025146/* end confdefs.h. */
25147$ac_includes_default
25148int
25149main ()
25150{
25151
25152 /* Some versions of memcmp are not 8-bit clean. */
25153 char c0 = '\100', c1 = '\200', c2 = '\201';
25154 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25155 return 1;
25156
25157 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25158 or more and with at least one buffer not starting on a 4-byte boundary.
25159 William Lewis provided this test program. */
25160 {
25161 char foo[21];
25162 char bar[21];
25163 int i;
25164 for (i = 0; i < 4; i++)
25165 {
25166 char *a = foo + i;
25167 char *b = bar + i;
25168 strcpy (a, "--------01111111");
25169 strcpy (b, "--------10000000");
25170 if (memcmp (a, b, 16) >= 0)
25171 return 1;
25172 }
25173 return 0;
25174 }
25175
25176 ;
25177 return 0;
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 ac_cv_func_memcmp_working=yes
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025184fi
cristy8b350f62009-11-15 23:12:43 +000025185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25186 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187fi
25188
cristy3ed852e2009-09-05 21:47:34 +000025189fi
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo "$ac_cv_func_memcmp_working" >&6; }
25192test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25193 *" memcmp.$ac_objext "* ) ;;
25194 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25195 ;;
25196esac
25197
25198
cristy3ed852e2009-09-05 21:47:34 +000025199for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025200do :
25201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25202ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 cat >>confdefs.h <<_ACEOF
25205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25206_ACEOF
25207
25208fi
25209
25210done
25211
cristy8b350f62009-11-15 23:12:43 +000025212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025213$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025214if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025215 $as_echo_n "(cached) " >&6
25216else
25217 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25218 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25219 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025221/* end confdefs.h. */
25222$ac_includes_default
25223#ifdef HAVE_SYS_SELECT_H
25224# include <sys/select.h>
25225#endif
25226#ifdef HAVE_SYS_SOCKET_H
25227# include <sys/socket.h>
25228#endif
25229
25230int
25231main ()
25232{
25233extern int select ($ac_arg1,
25234 $ac_arg234, $ac_arg234, $ac_arg234,
25235 $ac_arg5);
25236 ;
25237 return 0;
25238}
25239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025242fi
cristy3ed852e2009-09-05 21:47:34 +000025243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244 done
25245 done
25246done
25247# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025248: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025249
25250fi
cristy8b350f62009-11-15 23:12:43 +000025251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo "$ac_cv_func_select_args" >&6; }
25253ac_save_IFS=$IFS; IFS=','
25254set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25255IFS=$ac_save_IFS
25256shift
25257
25258cat >>confdefs.h <<_ACEOF
25259#define SELECT_TYPE_ARG1 $1
25260_ACEOF
25261
25262
25263cat >>confdefs.h <<_ACEOF
25264#define SELECT_TYPE_ARG234 ($2)
25265_ACEOF
25266
25267
25268cat >>confdefs.h <<_ACEOF
25269#define SELECT_TYPE_ARG5 ($3)
25270_ACEOF
25271
25272rm -f conftest*
25273
cristyda16f162011-02-19 23:52:17 +000025274if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 $as_echo_n "(cached) " >&6
25276else
25277 ac_cv_func_setvbuf_reversed=no
25278fi
25279
25280
cristy8b350f62009-11-15 23:12:43 +000025281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025283if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 $as_echo_n "(cached) " >&6
25285else
cristy8b350f62009-11-15 23:12:43 +000025286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025287/* end confdefs.h. */
25288#include <sys/types.h>
25289#include <signal.h>
25290
25291int
25292main ()
25293{
25294return *(signal (0, 0)) (0) == 1;
25295 ;
25296 return 0;
25297}
25298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 ac_cv_type_signal=int
25301else
cristy8b350f62009-11-15 23:12:43 +000025302 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025303fi
cristy3ed852e2009-09-05 21:47:34 +000025304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305fi
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo "$ac_cv_type_signal" >&6; }
25308
25309cat >>confdefs.h <<_ACEOF
25310#define RETSIGTYPE $ac_cv_type_signal
25311_ACEOF
25312
25313
cristy8b350f62009-11-15 23:12:43 +000025314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025316if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025317 $as_echo_n "(cached) " >&6
25318else
cristy8b350f62009-11-15 23:12:43 +000025319 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 ac_cv_func_strtod=no
25321else
cristy8b350f62009-11-15 23:12:43 +000025322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025323/* end confdefs.h. */
25324
25325$ac_includes_default
25326#ifndef strtod
25327double strtod ();
25328#endif
25329int
25330main()
25331{
25332 {
25333 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25334 char *string = " +69";
25335 char *term;
25336 double value;
25337 value = strtod (string, &term);
25338 if (value != 69 || term != (string + 4))
25339 return 1;
25340 }
25341
25342 {
25343 /* Under Solaris 2.4, strtod returns the wrong value for the
25344 terminating character under some conditions. */
25345 char *string = "NaN";
25346 char *term;
25347 strtod (string, &term);
25348 if (term != string && *(term - 1) == 0)
25349 return 1;
25350 }
25351 return 0;
25352}
25353
25354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025355if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 ac_cv_func_strtod=yes
25357else
cristy8b350f62009-11-15 23:12:43 +000025358 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025359fi
cristy8b350f62009-11-15 23:12:43 +000025360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25361 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362fi
25363
cristy3ed852e2009-09-05 21:47:34 +000025364fi
cristy8b350f62009-11-15 23:12:43 +000025365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo "$ac_cv_func_strtod" >&6; }
25367if test $ac_cv_func_strtod = no; then
25368 case " $LIBOBJS " in
25369 *" strtod.$ac_objext "* ) ;;
25370 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25371 ;;
25372esac
25373
cristy8b350f62009-11-15 23:12:43 +000025374ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025375if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025376
cristy3ed852e2009-09-05 21:47:34 +000025377fi
25378
cristy3ed852e2009-09-05 21:47:34 +000025379if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025382if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025383 $as_echo_n "(cached) " >&6
25384else
25385 ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025388/* end confdefs.h. */
25389
25390/* Override any GCC internal prototype to avoid an error.
25391 Use char because int might match the return type of a GCC
25392 builtin and then its argument prototype would still apply. */
25393#ifdef __cplusplus
25394extern "C"
25395#endif
25396char pow ();
25397int
25398main ()
25399{
25400return pow ();
25401 ;
25402 return 0;
25403}
25404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 ac_cv_lib_m_pow=yes
25407else
cristy8b350f62009-11-15 23:12:43 +000025408 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025409fi
cristy8b350f62009-11-15 23:12:43 +000025410rm -f core conftest.err conftest.$ac_objext \
25411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025412LIBS=$ac_check_lib_save_LIBS
25413fi
cristy8b350f62009-11-15 23:12:43 +000025414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025415$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025416if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 POW_LIB=-lm
25418else
cristy8b350f62009-11-15 23:12:43 +000025419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25421fi
25422
25423fi
25424
25425fi
25426
cristy7d4a1d62011-10-13 15:54:12 +000025427ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25428if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25429 ac_have_decl=1
25430else
25431 ac_have_decl=0
25432fi
25433
25434cat >>confdefs.h <<_ACEOF
25435#define HAVE_DECL_STRERROR_R $ac_have_decl
25436_ACEOF
25437
25438for ac_func in strerror_r
25439do :
25440 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25441if test "x$ac_cv_func_strerror_r" = xyes; then :
25442 cat >>confdefs.h <<_ACEOF
25443#define HAVE_STRERROR_R 1
25444_ACEOF
25445
25446fi
25447done
25448
25449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25450$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25451if ${ac_cv_func_strerror_r_char_p+:} false; then :
25452 $as_echo_n "(cached) " >&6
25453else
25454
25455 ac_cv_func_strerror_r_char_p=no
25456 if test $ac_cv_have_decl_strerror_r = yes; then
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h. */
25459$ac_includes_default
25460int
25461main ()
25462{
25463
25464 char buf[100];
25465 char x = *strerror_r (0, buf, sizeof buf);
25466 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025467 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025468
25469 ;
25470 return 0;
25471}
25472_ACEOF
25473if ac_fn_c_try_compile "$LINENO"; then :
25474 ac_cv_func_strerror_r_char_p=yes
25475fi
25476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25477 else
25478 # strerror_r is not declared. Choose between
25479 # systems that have relatively inaccessible declarations for the
25480 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25481 # former has a strerror_r that returns char*, while the latter
25482 # has a strerror_r that returns `int'.
25483 # This test should segfault on the DEC system.
25484 if test "$cross_compiling" = yes; then :
25485 :
25486else
25487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488/* end confdefs.h. */
25489$ac_includes_default
25490 extern char *strerror_r ();
25491int
25492main ()
25493{
25494char buf[100];
25495 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025496 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025497 ;
25498 return 0;
25499}
25500_ACEOF
25501if ac_fn_c_try_run "$LINENO"; then :
25502 ac_cv_func_strerror_r_char_p=yes
25503fi
25504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25505 conftest.$ac_objext conftest.beam conftest.$ac_ext
25506fi
25507
25508 fi
25509
25510fi
25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25512$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25513if test $ac_cv_func_strerror_r_char_p = yes; then
25514
25515$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25516
25517fi
25518
cristy3ed852e2009-09-05 21:47:34 +000025519for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025520do :
25521 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025522if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025524#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025525_ACEOF
25526
cristy8b350f62009-11-15 23:12:43 +000025527ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025528if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025529
cristy8b350f62009-11-15 23:12:43 +000025530$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025531
25532fi
25533
25534fi
25535done
25536
25537
25538
cristy161b9262010-03-20 19:34:32 +000025539#
25540# Find math library
25541#
25542MATH_LIBS=''
25543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25544$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025545if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025546 $as_echo_n "(cached) " >&6
25547else
25548 ac_check_lib_save_LIBS=$LIBS
25549LIBS="-lm $LIBS"
25550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551/* end confdefs.h. */
25552
25553/* Override any GCC internal prototype to avoid an error.
25554 Use char because int might match the return type of a GCC
25555 builtin and then its argument prototype would still apply. */
25556#ifdef __cplusplus
25557extern "C"
25558#endif
25559char sqrt ();
25560int
25561main ()
25562{
25563return sqrt ();
25564 ;
25565 return 0;
25566}
25567_ACEOF
25568if ac_fn_c_try_link "$LINENO"; then :
25569 ac_cv_lib_m_sqrt=yes
25570else
25571 ac_cv_lib_m_sqrt=no
25572fi
25573rm -f core conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext conftest.$ac_ext
25575LIBS=$ac_check_lib_save_LIBS
25576fi
25577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25578$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025579if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025580 MATH_LIBS="-lm"
25581fi
25582
25583LIBS="$MATH_LIBS $LIBS"
25584
25585
cristy568c2d42012-07-27 01:41:20 +000025586for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025587do :
25588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025590if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025591 cat >>confdefs.h <<_ACEOF
25592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25593_ACEOF
25594
25595fi
25596done
25597
25598
cristye43a45e2009-09-28 14:49:00 +000025599#
25600# Check for clock_gettime().
25601#
cristy8b350f62009-11-15 23:12:43 +000025602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025603$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025604if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025605 $as_echo_n "(cached) " >&6
25606else
25607 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025609/* end confdefs.h. */
25610
25611/* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25614#ifdef __cplusplus
25615extern "C"
25616#endif
25617char clock_gettime ();
25618int
25619main ()
25620{
25621return clock_gettime ();
25622 ;
25623 return 0;
25624}
25625_ACEOF
25626for ac_lib in '' rt; do
25627 if test -z "$ac_lib"; then
25628 ac_res="none required"
25629 else
25630 ac_res=-l$ac_lib
25631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25632 fi
cristy8b350f62009-11-15 23:12:43 +000025633 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025634 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025635fi
cristy8b350f62009-11-15 23:12:43 +000025636rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025638 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025639 break
25640fi
25641done
cristyda16f162011-02-19 23:52:17 +000025642if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025643
cristye43a45e2009-09-28 14:49:00 +000025644else
25645 ac_cv_search_clock_gettime=no
25646fi
25647rm conftest.$ac_ext
25648LIBS=$ac_func_search_save_LIBS
25649fi
cristy8b350f62009-11-15 23:12:43 +000025650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025651$as_echo "$ac_cv_search_clock_gettime" >&6; }
25652ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025653if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25655
25656
cristy8b350f62009-11-15 23:12:43 +000025657$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025658
cristy8b350f62009-11-15 23:12:43 +000025659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025660$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025662/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025663
25664 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025665int
25666main ()
25667{
25668clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025669 ;
25670 return 0;
25671}
25672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025673if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025674
cristy09b53e12011-10-14 12:47:22 +000025675 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25676$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025677
cristy8b350f62009-11-15 23:12:43 +000025678$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025679
25680
25681else
cristy09b53e12011-10-14 12:47:22 +000025682 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25683$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025684
25685fi
cristye43a45e2009-09-28 14:49:00 +000025686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25687
25688else
25689
cristy8b350f62009-11-15 23:12:43 +000025690 for ac_func in gettimeofday ftime
25691do :
25692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025695 cat >>confdefs.h <<_ACEOF
25696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25697_ACEOF
25698 break
25699fi
25700done
25701
25702
25703
25704fi
25705
25706
cristy3ed852e2009-09-05 21:47:34 +000025707########
25708#
25709# Check for function prototypes
25710#
25711########
25712
cristy8b350f62009-11-15 23:12:43 +000025713ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025714#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025715"
cristyda16f162011-02-19 23:52:17 +000025716if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025717 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025718else
cristy8b350f62009-11-15 23:12:43 +000025719 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025720fi
25721
cristy3ed852e2009-09-05 21:47:34 +000025722cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025723#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025725ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025726#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025727"
cristyda16f162011-02-19 23:52:17 +000025728if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025729 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025730else
cristy8b350f62009-11-15 23:12:43 +000025731 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025732fi
25733
cristy3ed852e2009-09-05 21:47:34 +000025734cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025735#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025736_ACEOF
25737
25738
cristy8b350f62009-11-15 23:12:43 +000025739ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025740#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025741"
cristyda16f162011-02-19 23:52:17 +000025742if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025743 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025744else
cristy8b350f62009-11-15 23:12:43 +000025745 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025746fi
25747
cristy3ed852e2009-09-05 21:47:34 +000025748cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025749#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025750_ACEOF
25751
25752
cristy8b350f62009-11-15 23:12:43 +000025753ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025754#include <stdio.h>
25755#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025756"
cristyda16f162011-02-19 23:52:17 +000025757if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025758 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025759else
cristy8b350f62009-11-15 23:12:43 +000025760 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025761fi
25762
cristy3ed852e2009-09-05 21:47:34 +000025763cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025764#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025765_ACEOF
25766
25767
cristy3ed852e2009-09-05 21:47:34 +000025768########
25769#
25770# C++ Support Tests (For Magick++)
25771#
25772########
25773have_magick_plus_plus='no'
25774if test "$with_magick_plus_plus" = 'yes'; then
25775 OLIBS="$LIBS"
25776 LIBS=''
25777 ac_ext=cpp
25778ac_cpp='$CXXCPP $CPPFLAGS'
25779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25782
25783
25784 # Full set of headers used...
25785 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25786 # functional iomanip iosfwd iostream iterator list string strstream utility
25787 ac_ext=cpp
25788ac_cpp='$CXXCPP $CPPFLAGS'
25789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25792
25793 ac_ext=cpp
25794ac_cpp='$CXXCPP $CPPFLAGS'
25795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25798if test -z "$CXX"; then
25799 if test -n "$CCC"; then
25800 CXX=$CCC
25801 else
25802 if test -n "$ac_tool_prefix"; then
25803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25804 do
25805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025809if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 $as_echo_n "(cached) " >&6
25811else
25812 if test -n "$CXX"; then
25813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25814else
25815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25816for as_dir in $PATH
25817do
25818 IFS=$as_save_IFS
25819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824 break 2
25825 fi
25826done
cristy8b350f62009-11-15 23:12:43 +000025827 done
cristy3ed852e2009-09-05 21:47:34 +000025828IFS=$as_save_IFS
25829
25830fi
25831fi
25832CXX=$ac_cv_prog_CXX
25833if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025835$as_echo "$CXX" >&6; }
25836else
cristy8b350f62009-11-15 23:12:43 +000025837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838$as_echo "no" >&6; }
25839fi
25840
25841
25842 test -n "$CXX" && break
25843 done
25844fi
25845if test -z "$CXX"; then
25846 ac_ct_CXX=$CXX
25847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25848do
25849 # Extract the first word of "$ac_prog", so it can be a program name with args.
25850set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025853if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 $as_echo_n "(cached) " >&6
25855else
25856 if test -n "$ac_ct_CXX"; then
25857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25858else
25859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25860for as_dir in $PATH
25861do
25862 IFS=$as_save_IFS
25863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025866 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025868 break 2
25869 fi
25870done
cristy8b350f62009-11-15 23:12:43 +000025871 done
cristy3ed852e2009-09-05 21:47:34 +000025872IFS=$as_save_IFS
25873
25874fi
25875fi
25876ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25877if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "$ac_ct_CXX" >&6; }
25880else
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "no" >&6; }
25883fi
25884
25885
25886 test -n "$ac_ct_CXX" && break
25887done
25888
25889 if test "x$ac_ct_CXX" = x; then
25890 CXX="g++"
25891 else
25892 case $cross_compiling:$ac_tool_warned in
25893yes:)
cristy8b350f62009-11-15 23:12:43 +000025894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25896ac_tool_warned=yes ;;
25897esac
25898 CXX=$ac_ct_CXX
25899 fi
25900fi
25901
25902 fi
25903fi
25904# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025905$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025906set X $ac_compile
25907ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025908for ac_option in --version -v -V -qversion; do
25909 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025910case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913esac
cristy8b350f62009-11-15 23:12:43 +000025914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25915$as_echo "$ac_try_echo"; } >&5
25916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025917 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025918 if test -s conftest.err; then
25919 sed '10a\
25920... rest of stderr output deleted ...
25921 10q' conftest.err >conftest.er1
25922 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025923 fi
cristycd4c5312009-11-22 01:19:08 +000025924 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }
25927done
cristy3ed852e2009-09-05 21:47:34 +000025928
cristy8b350f62009-11-15 23:12:43 +000025929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025930$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025931if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025932 $as_echo_n "(cached) " >&6
25933else
cristy8b350f62009-11-15 23:12:43 +000025934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025935/* end confdefs.h. */
25936
25937int
25938main ()
25939{
25940#ifndef __GNUC__
25941 choke me
25942#endif
25943
25944 ;
25945 return 0;
25946}
25947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025948if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 ac_compiler_gnu=yes
25950else
cristy8b350f62009-11-15 23:12:43 +000025951 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025952fi
cristy3ed852e2009-09-05 21:47:34 +000025953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25954ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25955
25956fi
cristy8b350f62009-11-15 23:12:43 +000025957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025958$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25959if test $ac_compiler_gnu = yes; then
25960 GXX=yes
25961else
25962 GXX=
25963fi
25964ac_test_CXXFLAGS=${CXXFLAGS+set}
25965ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025968if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025969 $as_echo_n "(cached) " >&6
25970else
25971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25972 ac_cxx_werror_flag=yes
25973 ac_cv_prog_cxx_g=no
25974 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978int
25979main ()
25980{
25981
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_prog_cxx_g=yes
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 CXXFLAGS=""
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025991/* end confdefs.h. */
25992
25993int
25994main ()
25995{
25996
25997 ;
25998 return 0;
25999}
26000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026001if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026002
cristy8b350f62009-11-15 23:12:43 +000026003else
26004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026005 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007/* end confdefs.h. */
26008
26009int
26010main ()
26011{
26012
26013 ;
26014 return 0;
26015}
26016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026017if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026019fi
cristy3ed852e2009-09-05 21:47:34 +000026020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021fi
cristy3ed852e2009-09-05 21:47:34 +000026022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26023fi
cristy3ed852e2009-09-05 21:47:34 +000026024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26026fi
cristy8b350f62009-11-15 23:12:43 +000026027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo "$ac_cv_prog_cxx_g" >&6; }
26029if test "$ac_test_CXXFLAGS" = set; then
26030 CXXFLAGS=$ac_save_CXXFLAGS
26031elif test $ac_cv_prog_cxx_g = yes; then
26032 if test "$GXX" = yes; then
26033 CXXFLAGS="-g -O2"
26034 else
26035 CXXFLAGS="-g"
26036 fi
26037else
26038 if test "$GXX" = yes; then
26039 CXXFLAGS="-O2"
26040 else
26041 CXXFLAGS=
26042 fi
26043fi
26044ac_ext=cpp
26045ac_cpp='$CXXCPP $CPPFLAGS'
26046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26049
cristy73bd4a52010-10-05 11:24:23 +000026050depcc="$CXX" am_compiler_list=
26051
26052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26053$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026054if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026055 $as_echo_n "(cached) " >&6
26056else
26057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26058 # We make a subdir and do the tests there. Otherwise we can end up
26059 # making bogus files that we don't know about and never remove. For
26060 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026061 # making a dummy file named 'D' -- because '-MD' means "put the output
26062 # in D".
cristy7247bba2012-02-05 16:37:27 +000026063 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026064 mkdir conftest.dir
26065 # Copy depcomp to subdir because otherwise we won't find it if we're
26066 # using a relative directory.
26067 cp "$am_depcomp" conftest.dir
26068 cd conftest.dir
26069 # We will build objects and dependencies in a subdirectory because
26070 # it helps to detect inapplicable dependency modes. For instance
26071 # both Tru64's cc and ICC support -MD to output dependencies as a
26072 # side effect of compilation, but ICC will put the dependencies in
26073 # the current directory while Tru64 will put them in the object
26074 # directory.
26075 mkdir sub
26076
26077 am_cv_CXX_dependencies_compiler_type=none
26078 if test "$am_compiler_list" = ""; then
26079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26080 fi
26081 am__universal=false
26082 case " $depcc " in #(
26083 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26084 esac
26085
26086 for depmode in $am_compiler_list; do
26087 # Setup a source with many dependencies, because some compilers
26088 # like to wrap large dependency lists on column 80 (with \), and
26089 # we should not choose a depcomp mode which is confused by this.
26090 #
26091 # We need to recreate these files for each test, as the compiler may
26092 # overwrite some of them when testing with obscure command lines.
26093 # This happens at least with the AIX C compiler.
26094 : > sub/conftest.c
26095 for i in 1 2 3 4 5 6; do
26096 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026097 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26098 # Solaris 10 /bin/sh.
26099 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026100 done
26101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26102
cristyc0890a62012-07-19 00:18:20 +000026103 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026104 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026105 # handle '-M -o', and we need to detect this. Also, some Intel
26106 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026107 am__obj=sub/conftest.${OBJEXT-o}
26108 am__minus_obj="-o $am__obj"
26109 case $depmode in
26110 gcc)
26111 # This depmode causes a compiler race in universal mode.
26112 test "$am__universal" = false || continue
26113 ;;
26114 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026115 # After this tag, mechanisms are not by side-effect, so they'll
26116 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026117 if test "x$enable_dependency_tracking" = xyes; then
26118 continue
26119 else
26120 break
26121 fi
26122 ;;
cristy7247bba2012-02-05 16:37:27 +000026123 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026124 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026125 # not run yet. These depmodes are late enough in the game, and
26126 # so weak that their functioning should not be impacted.
26127 am__obj=conftest.${OBJEXT-o}
26128 am__minus_obj=
26129 ;;
26130 none) break ;;
26131 esac
26132 if depmode=$depmode \
26133 source=sub/conftest.c object=$am__obj \
26134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26135 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26136 >/dev/null 2>conftest.err &&
26137 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26139 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26141 # icc doesn't choke on unknown options, it will just issue warnings
26142 # or remarks (even with -Werror). So we grep stderr for any message
26143 # that says an option was ignored or not supported.
26144 # When given -MP, icc 7.0 and 7.1 complain thusly:
26145 # icc: Command line warning: ignoring option '-M'; no argument required
26146 # The diagnosis changed in icc 8.0:
26147 # icc: Command line remark: option '-MP' not supported
26148 if (grep 'ignoring option' conftest.err ||
26149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26150 am_cv_CXX_dependencies_compiler_type=$depmode
26151 break
26152 fi
26153 fi
26154 done
26155
26156 cd ..
26157 rm -rf conftest.dir
26158else
26159 am_cv_CXX_dependencies_compiler_type=none
26160fi
26161
26162fi
26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26164$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26165CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26166
26167 if
26168 test "x$enable_dependency_tracking" != xno \
26169 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26170 am__fastdepCXX_TRUE=
26171 am__fastdepCXX_FALSE='#'
26172else
26173 am__fastdepCXX_TRUE='#'
26174 am__fastdepCXX_FALSE=
26175fi
26176
26177
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26179$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026180if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026181 $as_echo_n "(cached) " >&6
26182else
26183
26184 ac_ext=cpp
26185ac_cpp='$CXXCPP $CPPFLAGS'
26186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26189
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191/* end confdefs.h. */
26192
26193int f(int x){return 1;}
26194int f(char x){return 1;}
26195int f(bool x){return 1;}
26196
26197int
26198main ()
26199{
26200bool b = true; return f(b);
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205if ac_fn_cxx_try_compile "$LINENO"; then :
26206 ax_cv_cxx_bool=yes
26207else
26208 ax_cv_cxx_bool=no
26209fi
26210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 ac_ext=cpp
26212ac_cpp='$CXXCPP $CPPFLAGS'
26213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26216
26217
26218fi
26219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26220$as_echo "$ax_cv_cxx_bool" >&6; }
26221if test "$ax_cv_cxx_bool" = yes; then
26222
26223$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26224
26225fi
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26228$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026230 $as_echo_n "(cached) " >&6
26231else
26232
26233 ac_ext=cpp
26234ac_cpp='$CXXCPP $CPPFLAGS'
26235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26238
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h. */
26241namespace Outer { namespace Inner { int i = 0; }}
26242int
26243main ()
26244{
26245using namespace Outer::Inner; return i;
26246 ;
26247 return 0;
26248}
26249_ACEOF
26250if ac_fn_cxx_try_compile "$LINENO"; then :
26251 ax_cv_cxx_namespaces=yes
26252else
26253 ax_cv_cxx_namespaces=no
26254fi
26255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 ac_ext=cpp
26257ac_cpp='$CXXCPP $CPPFLAGS'
26258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26261
26262
26263fi
26264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26265$as_echo "$ax_cv_cxx_namespaces" >&6; }
26266if test "$ax_cv_cxx_namespaces" = yes; then
26267
26268$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26269
26270fi
26271
26272
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26274$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026275if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026276 $as_echo_n "(cached) " >&6
26277else
26278
26279 ac_ext=cpp
26280ac_cpp='$CXXCPP $CPPFLAGS'
26281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26284
26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286/* end confdefs.h. */
26287#include <iostream>
26288 std::istream& is = std::cin;
26289int
26290main ()
26291{
26292
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297if ac_fn_cxx_try_compile "$LINENO"; then :
26298 ax_cv_cxx_have_std_namespace=yes
26299else
26300 ax_cv_cxx_have_std_namespace=no
26301fi
26302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 ac_ext=cpp
26304ac_cpp='$CXXCPP $CPPFLAGS'
26305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26308
26309
26310fi
26311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26312$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26313 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26314
26315$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26316
26317 fi
26318
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26320$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026321if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026322 $as_echo_n "(cached) " >&6
26323else
26324
26325
26326 ac_ext=cpp
26327ac_cpp='$CXXCPP $CPPFLAGS'
26328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26331
26332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26333/* end confdefs.h. */
26334#include <iostream>
26335#include <map>
26336#include <iomanip>
26337#include <cmath>
26338#ifdef HAVE_NAMESPACES
26339using namespace std;
26340#endif
26341int
26342main ()
26343{
26344return 0;
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349if ac_fn_cxx_try_compile "$LINENO"; then :
26350 ac_cv_cxx_have_std_libs=yes
26351else
26352 ac_cv_cxx_have_std_libs=no
26353fi
26354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26355 ac_ext=cpp
26356ac_cpp='$CXXCPP $CPPFLAGS'
26357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26360
26361
26362fi
26363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26364$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26365if test "$ac_cv_cxx_have_std_libs" = yes; then
26366
26367$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26368
26369fi
26370
cristy3ed852e2009-09-05 21:47:34 +000026371
26372 OPENMP_CXXFLAGS=
26373 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026374if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 enableval=$enable_openmp;
26376fi
26377
26378 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26380$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026381if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026382 $as_echo_n "(cached) " >&6
26383else
cristy8b350f62009-11-15 23:12:43 +000026384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026386
26387#ifndef _OPENMP
26388 choke me
26389#endif
26390#include <omp.h>
26391int main () { return omp_get_num_threads (); }
26392
26393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026394if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 ac_cv_prog_cxx_openmp='none needed'
26396else
cristy8b350f62009-11-15 23:12:43 +000026397 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026398 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26399 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026400 ac_save_CXXFLAGS=$CXXFLAGS
26401 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026404
26405#ifndef _OPENMP
26406 choke me
26407#endif
26408#include <omp.h>
26409int main () { return omp_get_num_threads (); }
26410
26411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026412if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026413 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026414fi
cristy8b350f62009-11-15 23:12:43 +000026415rm -f core conftest.err conftest.$ac_objext \
26416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026417 CXXFLAGS=$ac_save_CXXFLAGS
26418 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26419 break
26420 fi
26421 done
26422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26428 case $ac_cv_prog_cxx_openmp in #(
26429 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026430 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026431 *)
cristy8b350f62009-11-15 23:12:43 +000026432 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026433 esac
26434 fi
26435
26436
26437 ac_ext=c
26438ac_cpp='$CPP $CPPFLAGS'
26439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441ac_compiler_gnu=$ac_cv_c_compiler_gnu
26442
26443
cristy8b350f62009-11-15 23:12:43 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26446 if \
cristy964cb7f2010-04-25 23:18:00 +000026447 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026448 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026449 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026450 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026451 have_magick_plus_plus='yes'
26452 else
26453 have_magick_plus_plus='no (failed tests)'
26454 fi
cristy09b53e12011-10-14 12:47:22 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26456$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026457 LIBS="$OLIBS"
26458fi
cristy73bd4a52010-10-05 11:24:23 +000026459 if test "$have_magick_plus_plus" = 'yes'; then
26460 WITH_MAGICK_PLUS_PLUS_TRUE=
26461 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26462else
26463 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26464 WITH_MAGICK_PLUS_PLUS_FALSE=
26465fi
26466
cristy3ed852e2009-09-05 21:47:34 +000026467
26468# Only check for delegate libraries in subdirectories if requested.
26469if test "$enable_delegate_build" != 'no'; then
26470 # Check for delegate sub-directories and add -I & -L options as required.
26471 # This presumes that delegates are installed as detailed in the ImageMagick
26472 # README. If delegates are installed in a standard location where the
26473 # compiler will automatically find them then these options should not be
26474 # required.
26475
26476 #
26477 # Most delegates have includes in the same directory as the library, but not all...
26478 #
26479 # Includes
cristy2542fc62011-12-06 17:50:25 +000026480 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026481 if test -d "$builddir/$dir"; then
26482 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26483 else
26484 if test -d "$srcdirfull/$dir"; then
26485 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26486 fi
26487 fi
26488 done
26489
26490 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026491 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026492 if test -d "$builddir/$dir/.libs"; then
26493 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26494 else
26495 if test -d "$srcdirfull/$dir/.libs"; then
26496 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26497 fi
26498 fi
26499 if test -d "$builddir/$dir"; then
26500 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26501 else
26502 if test -d "$srcdirfull/$dir"; then
26503 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26504 fi
26505 fi
26506 done
26507fi
26508
26509# Assume that delegate headers reside under same directory as ImageMagick
26510# installation prefix.
26511MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26512
26513#
26514# Find the X11 RGB database
26515#
cristy8b350f62009-11-15 23:12:43 +000026516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026518if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 $as_echo_n "(cached) " >&6
26520else
26521 # Look for the header file in a standard set of common directories.
26522# Check X11 before X11Rn because it is often a symlink to the current release.
26523 for ac_dir in \
26524 /lib/usr/lib/X11 \
26525 /usr/X11/lib \
26526 /usr/X11R4/lib \
26527 /usr/X11R5/lib \
26528 /usr/X11R6/lib \
26529 /usr/X11R7/lib \
26530 /usr/X386/lib \
26531 /usr/XFree86/lib/X11 \
26532 /usr/athena/lib \
26533 /usr/lib \
26534 /usr/lib/X11 \
26535 /usr/lib/X11R4 \
26536 /usr/lib/X11R5 \
26537 /usr/lib/X11R6 \
26538 /usr/lib/X11R7 \
26539 /usr/local/X11/lib \
26540 /usr/local/X11R4/lib \
26541 /usr/local/X11R5/lib \
26542 /usr/local/X11R6/lib \
26543 /usr/local/lib \
26544 /usr/local/lib/X11 \
26545 /usr/local/lib/X11R4 \
26546 /usr/local/lib/X11R5 \
26547 /usr/local/lib/X11R6 \
26548 /usr/local/lib/X11R7 \
26549 /usr/local/x11r5/lib \
26550 /usr/lpp/Xamples/lib \
26551 /usr/openwin/lib \
26552 /usr/openwin/share/lib \
26553 /usr/unsupported/lib \
26554 /usr/x386/lib \
26555 ; do
26556 if test -f "$ac_dir/X11/rgb.txt"; then
26557 im_cv_x_configure="$ac_dir/X11/"
26558 break
26559 elif test -f "$ac_dir/rgb.txt"; then
26560 im_cv_x_configure="$ac_dir/"
26561 break
26562 fi
26563
26564 done
26565fi
cristy8b350f62009-11-15 23:12:43 +000026566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo "$im_cv_x_configure" >&6; }
26568X11_CONFIGURE_PATH="$im_cv_x_configure"
26569case "${build_os}" in
26570 mingw* )
26571 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26572 ;;
26573esac
26574
26575cat >>confdefs.h <<_ACEOF
26576#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26577_ACEOF
26578
26579
26580#
26581# Find OpenMP library
26582#
26583GOMP_LIBS=''
26584if test "$enable_openmp" != 'no'; then
26585 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026586 # Open64 (passes for GCC but uses different OpenMP implementation)
26587 if test "x$GOMP_LIBS" = x ; then
26588 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26590$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26591if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26592 $as_echo_n "(cached) " >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-lopenmp $LIBS"
26596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597/* end confdefs.h. */
26598
26599/* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26602#ifdef __cplusplus
26603extern "C"
26604#endif
26605char omp_get_num_procs ();
26606int
26607main ()
26608{
26609return omp_get_num_procs ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
26614if ac_fn_c_try_link "$LINENO"; then :
26615 ac_cv_lib_openmp_omp_get_num_procs=yes
26616else
26617 ac_cv_lib_openmp_omp_get_num_procs=no
26618fi
26619rm -f core conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
26621LIBS=$ac_check_lib_save_LIBS
26622fi
26623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26624$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26625if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26626 GOMP_LIBS="-lopenmp"
26627fi
26628
26629 fi
26630 fi
26631 # GCC
26632 if test "x$GOMP_LIBS" = x ; then
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026635if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 $as_echo_n "(cached) " >&6
26637else
26638 ac_check_lib_save_LIBS=$LIBS
26639LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026641/* end confdefs.h. */
26642
26643/* Override any GCC internal prototype to avoid an error.
26644 Use char because int might match the return type of a GCC
26645 builtin and then its argument prototype would still apply. */
26646#ifdef __cplusplus
26647extern "C"
26648#endif
26649char GOMP_parallel_start ();
26650int
26651main ()
26652{
26653return GOMP_parallel_start ();
26654 ;
26655 return 0;
26656}
26657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026658if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 ac_cv_lib_gomp_GOMP_parallel_start=yes
26660else
cristy8b350f62009-11-15 23:12:43 +000026661 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026662fi
cristy8b350f62009-11-15 23:12:43 +000026663rm -f core conftest.err conftest.$ac_objext \
26664 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026665LIBS=$ac_check_lib_save_LIBS
26666fi
cristy8b350f62009-11-15 23:12:43 +000026667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026669if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 GOMP_LIBS="-lgomp"
26671fi
cristy18307f12011-12-30 01:20:16 +000026672
26673 fi
cristy3ed852e2009-09-05 21:47:34 +000026674 else
cristy18307f12011-12-30 01:20:16 +000026675 # Sun CC
26676 if test "x$GOMP_LIBS" = x ; then
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026679if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 $as_echo_n "(cached) " >&6
26681else
26682 ac_check_lib_save_LIBS=$LIBS
26683LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026685/* end confdefs.h. */
26686
26687/* Override any GCC internal prototype to avoid an error.
26688 Use char because int might match the return type of a GCC
26689 builtin and then its argument prototype would still apply. */
26690#ifdef __cplusplus
26691extern "C"
26692#endif
26693char sunw_mp_register_warn ();
26694int
26695main ()
26696{
26697return sunw_mp_register_warn ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26704else
cristy8b350f62009-11-15 23:12:43 +000026705 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026706fi
cristy8b350f62009-11-15 23:12:43 +000026707rm -f core conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026709LIBS=$ac_check_lib_save_LIBS
26710fi
cristy8b350f62009-11-15 23:12:43 +000026711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026713if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 GOMP_LIBS="-lmtsk"
26715fi
cristy18307f12011-12-30 01:20:16 +000026716
26717 fi
26718 # AIX xlc
26719 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026722if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 $as_echo_n "(cached) " >&6
26724else
26725 ac_check_lib_save_LIBS=$LIBS
26726LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026728/* end confdefs.h. */
26729
26730/* Override any GCC internal prototype to avoid an error.
26731 Use char because int might match the return type of a GCC
26732 builtin and then its argument prototype would still apply. */
26733#ifdef __cplusplus
26734extern "C"
26735#endif
26736char _xlsmpFlush ();
26737int
26738main ()
26739{
26740return _xlsmpFlush ();
26741 ;
26742 return 0;
26743}
26744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 ac_cv_lib_xlsmp__xlsmpFlush=yes
26747else
cristy8b350f62009-11-15 23:12:43 +000026748 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026749fi
cristy8b350f62009-11-15 23:12:43 +000026750rm -f core conftest.err conftest.$ac_objext \
26751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026752LIBS=$ac_check_lib_save_LIBS
26753fi
cristy8b350f62009-11-15 23:12:43 +000026754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026756if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 GOMP_LIBS="-lxlsmp"
26758fi
cristy18307f12011-12-30 01:20:16 +000026759
26760 fi
26761 # SGI IRIX 6.5 MIPSpro C/C++
26762 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026765if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 $as_echo_n "(cached) " >&6
26767else
26768 ac_check_lib_save_LIBS=$LIBS
26769LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026771/* end confdefs.h. */
26772
26773/* Override any GCC internal prototype to avoid an error.
26774 Use char because int might match the return type of a GCC
26775 builtin and then its argument prototype would still apply. */
26776#ifdef __cplusplus
26777extern "C"
26778#endif
26779char mp_destroy ();
26780int
26781main ()
26782{
26783return mp_destroy ();
26784 ;
26785 return 0;
26786}
26787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026789 ac_cv_lib_mp_mp_destroy=yes
26790else
cristy8b350f62009-11-15 23:12:43 +000026791 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026792fi
cristy8b350f62009-11-15 23:12:43 +000026793rm -f core conftest.err conftest.$ac_objext \
26794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026795LIBS=$ac_check_lib_save_LIBS
26796fi
cristy8b350f62009-11-15 23:12:43 +000026797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 GOMP_LIBS="-lmp"
26801fi
cristy18307f12011-12-30 01:20:16 +000026802
26803 fi
cristy3ed852e2009-09-05 21:47:34 +000026804 fi
26805 LIBS="$GOMP_LIBS $LIBS"
26806fi
26807
26808
26809#
26810# Find Posix threads library
26811#
26812THREAD_LIBS=''
26813if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26814
26815 if test "x$PTHREAD_LIBS" = "x"; then
26816 case "${host_cpu}-${host_os}" in
26817 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026818
26819
26820
26821ac_ext=c
26822ac_cpp='$CPP $CPPFLAGS'
26823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825ac_compiler_gnu=$ac_cv_c_compiler_gnu
26826
26827magick_pthread_lib_ok=no
26828
26829LIB=-lc_r
26830save_LIBS="$LIBS"
26831LIBS="$LIBS $LIB"
26832
26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26834$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836/* end confdefs.h. */
26837#include <pthread.h>
26838int
26839main ()
26840{
26841 pthread_t th;
26842 pthread_join(th, 0);
26843 pthread_attr_init(0);
26844 pthread_cleanup_push(0, 0);
26845 pthread_create(0,0,0,0);
26846 pthread_cleanup_pop(0);
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851if ac_fn_c_try_link "$LINENO"; then :
26852 magick_pthread_lib_ok=yes
26853fi
26854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
26856
26857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26858$as_echo "${magick_pthread_lib_ok}" >&6; }
26859if test "$magick_pthread_lib_ok" = yes
26860then
26861 PTHREAD_LIBS=-lc_r
26862 :
26863else
26864
26865 :
26866fi
26867
26868LIBS="$save_LIBS"
26869
26870ac_ext=c
26871ac_cpp='$CPP $CPPFLAGS'
26872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26874ac_compiler_gnu=$ac_cv_c_compiler_gnu
26875
26876 ;;
cristy3ed852e2009-09-05 21:47:34 +000026877 esac
26878 fi
26879
26880 for lib in pthread pthreads; do
26881 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026882
26883
26884
26885ac_ext=c
26886ac_cpp='$CPP $CPPFLAGS'
26887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26889ac_compiler_gnu=$ac_cv_c_compiler_gnu
26890
26891magick_pthread_lib_ok=no
26892
26893LIB=-l$lib
26894save_LIBS="$LIBS"
26895LIBS="$LIBS $LIB"
26896
26897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26898$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26900/* end confdefs.h. */
26901#include <pthread.h>
26902int
26903main ()
26904{
26905 pthread_t th;
26906 pthread_join(th, 0);
26907 pthread_attr_init(0);
26908 pthread_cleanup_push(0, 0);
26909 pthread_create(0,0,0,0);
26910 pthread_cleanup_pop(0);
26911 ;
26912 return 0;
26913}
26914_ACEOF
26915if ac_fn_c_try_link "$LINENO"; then :
26916 magick_pthread_lib_ok=yes
26917fi
26918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
26920
26921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26922$as_echo "${magick_pthread_lib_ok}" >&6; }
26923if test "$magick_pthread_lib_ok" = yes
26924then
26925 PTHREAD_LIBS=-l$lib
26926 :
26927else
26928
26929 :
26930fi
26931
26932LIBS="$save_LIBS"
26933
26934ac_ext=c
26935ac_cpp='$CPP $CPPFLAGS'
26936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938ac_compiler_gnu=$ac_cv_c_compiler_gnu
26939
26940
cristy3ed852e2009-09-05 21:47:34 +000026941 fi
26942 done
26943
26944 THREAD_LIBS="$PTHREAD_LIBS"
26945 LIBS="$LIBS $THREAD_LIBS"
26946fi
26947
26948
26949#
26950# Check for umem.
26951#
26952have_umem='no'
26953UMEM_LIBS=''
26954if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26958$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026959 failed=0
26960 passed=0
cristy8b350f62009-11-15 23:12:43 +000026961 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026962if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026963 passed=`expr $passed + 1`
26964else
26965 failed=`expr $failed + 1`
26966fi
26967
26968
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 $as_echo_n "(cached) " >&6
26973else
26974 ac_check_lib_save_LIBS=$LIBS
26975LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026977/* end confdefs.h. */
26978
26979/* Override any GCC internal prototype to avoid an error.
26980 Use char because int might match the return type of a GCC
26981 builtin and then its argument prototype would still apply. */
26982#ifdef __cplusplus
26983extern "C"
26984#endif
26985char umem_alloc ();
26986int
26987main ()
26988{
26989return umem_alloc ();
26990 ;
26991 return 0;
26992}
26993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026995 ac_cv_lib_umem_umem_alloc=yes
26996else
cristy8b350f62009-11-15 23:12:43 +000026997 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026998fi
cristy8b350f62009-11-15 23:12:43 +000026999rm -f core conftest.err conftest.$ac_objext \
27000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027001LIBS=$ac_check_lib_save_LIBS
27002fi
cristy8b350f62009-11-15 23:12:43 +000027003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027005if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 passed=`expr $passed + 1`
27007else
27008 failed=`expr $failed + 1`
27009fi
27010
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027013if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 $as_echo_n "(cached) " >&6
27015else
27016 ac_check_lib_save_LIBS=$LIBS
27017LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027019/* end confdefs.h. */
27020
27021/* Override any GCC internal prototype to avoid an error.
27022 Use char because int might match the return type of a GCC
27023 builtin and then its argument prototype would still apply. */
27024#ifdef __cplusplus
27025extern "C"
27026#endif
27027char umem_free ();
27028int
27029main ()
27030{
27031return umem_free ();
27032 ;
27033 return 0;
27034}
27035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 ac_cv_lib_umem_umem_free=yes
27038else
cristy8b350f62009-11-15 23:12:43 +000027039 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027040fi
cristy8b350f62009-11-15 23:12:43 +000027041rm -f core conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027043LIBS=$ac_check_lib_save_LIBS
27044fi
cristy8b350f62009-11-15 23:12:43 +000027045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 passed=`expr $passed + 1`
27049else
27050 failed=`expr $failed + 1`
27051fi
27052
cristy8b350f62009-11-15 23:12:43 +000027053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027054$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27055 if test $passed -gt 0; then
27056 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027057 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27058$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027059 have_umem='no (failed tests)'
27060 else
27061 UMEM_LIBS='-lumem'
27062 LIBS="$UMEM_LIBS $LIBS"
27063
cristy8b350f62009-11-15 23:12:43 +000027064$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027065
cristy09b53e12011-10-14 12:47:22 +000027066 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27067$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027068 have_umem='yes'
27069 fi
27070 else
cristy09b53e12011-10-14 12:47:22 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27072$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027073 fi
27074fi
cristy73bd4a52010-10-05 11:24:23 +000027075 if test "$have_umem" = 'yes'; then
27076 HasUMEM_TRUE=
27077 HasUMEM_FALSE='#'
27078else
27079 HasUMEM_TRUE='#'
27080 HasUMEM_FALSE=
27081fi
27082
cristy3ed852e2009-09-05 21:47:34 +000027083
27084
27085#
27086# Add support for ccmalloc memory debugging library if requested
27087#
27088have_ccmalloc='no'
27089CCMALLOC_LIBS=''
27090if test "$enable_ccmalloc" = 'yes'; then
27091 # Extract the first word of "ccmalloc", so it can be a program name with args.
27092set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027095if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 $as_echo_n "(cached) " >&6
27097else
27098 case $CCMALLOCDelegate in
27099 [\\/]* | ?:[\\/]*)
27100 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27101 ;;
27102 *)
27103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27104for as_dir in $PATH
27105do
27106 IFS=$as_save_IFS
27107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027110 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112 break 2
27113 fi
27114done
cristy8b350f62009-11-15 23:12:43 +000027115 done
cristy3ed852e2009-09-05 21:47:34 +000027116IFS=$as_save_IFS
27117
27118 ;;
27119esac
27120fi
27121CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27122if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "$CCMALLOCDelegate" >&6; }
27125else
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "no" >&6; }
27128fi
27129
27130
27131 if test -n "$CCMALLOCDelegate"; then
27132 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27133 OLIBS="$LIBS"
27134 # Assume that gcc is used with ccmalloc.
27135 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027138if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 $as_echo_n "(cached) " >&6
27140else
27141 ac_check_lib_save_LIBS=$LIBS
27142LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027144/* end confdefs.h. */
27145
27146/* Override any GCC internal prototype to avoid an error.
27147 Use char because int might match the return type of a GCC
27148 builtin and then its argument prototype would still apply. */
27149#ifdef __cplusplus
27150extern "C"
27151#endif
27152char ccmalloc_malloc ();
27153int
27154main ()
27155{
27156return ccmalloc_malloc ();
27157 ;
27158 return 0;
27159}
27160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027162 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27163else
cristy8b350f62009-11-15 23:12:43 +000027164 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027165fi
cristy8b350f62009-11-15 23:12:43 +000027166rm -f core conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027168LIBS=$ac_check_lib_save_LIBS
27169fi
cristy8b350f62009-11-15 23:12:43 +000027170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027172if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27174fi
27175
27176 if test -n "$CCMALLOC_LIBS"; then
27177 LIBS="$OLIBS"
27178 LIBS="$LIBS $CCMALLOC_LIBS"
27179 have_ccmalloc='yes'
27180 else
27181 LIBS="$OLIBS"
27182 fi
27183 fi
27184fi
27185
27186#
27187# Add support for efence memory debugging library if requested
27188#
27189if test "$enable_efence" = 'yes'; then
27190 EFENCE_LIBS='-lefence'
27191 LIBS="$EFENCE_LIBS $LIBS"
27192fi
27193
cristy3ed852e2009-09-05 21:47:34 +000027194
27195#
27196# Check for BZLIB
27197#
27198
27199
27200# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027201if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 withval=$with_bzlib; with_bzlib=$withval
27203else
27204 with_bzlib='yes'
27205fi
27206
27207
27208if test "$with_bzlib" != 'yes'; then
27209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27210fi
27211
27212have_bzlib='no'
27213if test "$with_bzlib" != 'no'; then
27214 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027215 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27216$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27220$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027221 failed=0
27222 passed=0
27223 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027224 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027225if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 passed=`expr $passed + 1`
27227else
27228 failed=`expr $failed + 1`
27229fi
27230
27231
cristy8b350f62009-11-15 23:12:43 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027234if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 $as_echo_n "(cached) " >&6
27236else
27237 ac_check_lib_save_LIBS=$LIBS
27238LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240/* end confdefs.h. */
27241
27242/* Override any GCC internal prototype to avoid an error.
27243 Use char because int might match the return type of a GCC
27244 builtin and then its argument prototype would still apply. */
27245#ifdef __cplusplus
27246extern "C"
27247#endif
27248char BZ2_bzDecompress ();
27249int
27250main ()
27251{
27252return BZ2_bzDecompress ();
27253 ;
27254 return 0;
27255}
27256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27259else
cristy8b350f62009-11-15 23:12:43 +000027260 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027261fi
cristy8b350f62009-11-15 23:12:43 +000027262rm -f core conftest.err conftest.$ac_objext \
27263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264LIBS=$ac_check_lib_save_LIBS
27265fi
cristy8b350f62009-11-15 23:12:43 +000027266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 found_libbz=`expr $found_libbz + 1`
27270fi
27271
27272 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027275if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 $as_echo_n "(cached) " >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281/* end confdefs.h. */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char _imp__BZ2_decompress ();
27290int
27291main ()
27292{
27293return _imp__BZ2_decompress ();
27294 ;
27295 return 0;
27296}
27297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27300else
cristy8b350f62009-11-15 23:12:43 +000027301 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027302fi
cristy8b350f62009-11-15 23:12:43 +000027303rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305LIBS=$ac_check_lib_save_LIBS
27306fi
cristy8b350f62009-11-15 23:12:43 +000027307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027309if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 found_libbz=`expr $found_libbz + 1`
27311fi
27312
27313 fi
27314 if test $found_libbz -gt 0; then
27315 passed=`expr $passed + 1`
27316 else
27317 failed=`expr $failed + 1`
27318 fi
cristy8b350f62009-11-15 23:12:43 +000027319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027320$as_echo_n "checking if BZLIB package is complete... " >&6; }
27321 if test $passed -gt 0; then
27322 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27324$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027325 have_bzlib='no (failed tests)'
27326 else
27327 BZLIB_LIBS='-lbz2'
27328 LIBS="$BZLIB_LIBS $LIBS"
27329
cristy8b350f62009-11-15 23:12:43 +000027330$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027331
cristy09b53e12011-10-14 12:47:22 +000027332 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27333$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027334 have_bzlib='yes'
27335 fi
27336 else
cristy09b53e12011-10-14 12:47:22 +000027337 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27338$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027339 fi
27340fi
cristy73bd4a52010-10-05 11:24:23 +000027341 if test "$have_bzlib" = 'yes'; then
27342 BZLIB_DELEGATE_TRUE=
27343 BZLIB_DELEGATE_FALSE='#'
27344else
27345 BZLIB_DELEGATE_TRUE='#'
27346 BZLIB_DELEGATE_FALSE=
27347fi
27348
cristy3ed852e2009-09-05 21:47:34 +000027349
27350
27351#
27352# Find the X11 include and library directories.
27353#
27354IPC_LIBS=''
27355X11_LIBS=''
27356XEXT_LIBS=''
27357XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027359$as_echo_n "checking for X... " >&6; }
27360
27361
27362# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027363if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027364 withval=$with_x;
27365fi
27366
27367# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27368if test "x$with_x" = xno; then
27369 # The user explicitly disabled X.
27370 have_x=disabled
27371else
27372 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027375 $as_echo_n "(cached) " >&6
27376else
27377 # One or both of the vars are not set, and there is no cached value.
27378ac_x_includes=no ac_x_libraries=no
27379rm -f -r conftest.dir
27380if mkdir conftest.dir; then
27381 cd conftest.dir
27382 cat >Imakefile <<'_ACEOF'
27383incroot:
27384 @echo incroot='${INCROOT}'
27385usrlibdir:
27386 @echo usrlibdir='${USRLIBDIR}'
27387libdir:
27388 @echo libdir='${LIBDIR}'
27389_ACEOF
27390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027392 for ac_var in incroot usrlibdir libdir; do
27393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27394 done
27395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27396 for ac_extension in a so sl dylib la dll; do
27397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27398 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27399 ac_im_usrlibdir=$ac_im_libdir; break
27400 fi
27401 done
27402 # Screen out bogus values from the imake configuration. They are
27403 # bogus both because they are the default anyway, and because
27404 # using them would break gcc on systems where it needs fixed includes.
27405 case $ac_im_incroot in
27406 /usr/include) ac_x_includes= ;;
27407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27408 esac
27409 case $ac_im_usrlibdir in
27410 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27412 esac
27413 fi
27414 cd ..
27415 rm -f -r conftest.dir
27416fi
27417
27418# Standard set of common directories for X headers.
27419# Check X11 before X11Rn because it is often a symlink to the current release.
27420ac_x_header_dirs='
27421/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027422/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027423/usr/X11R6/include
27424/usr/X11R5/include
27425/usr/X11R4/include
27426
27427/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027428/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027429/usr/include/X11R6
27430/usr/include/X11R5
27431/usr/include/X11R4
27432
27433/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027434/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027435/usr/local/X11R6/include
27436/usr/local/X11R5/include
27437/usr/local/X11R4/include
27438
27439/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027440/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027441/usr/local/include/X11R6
27442/usr/local/include/X11R5
27443/usr/local/include/X11R4
27444
27445/usr/X386/include
27446/usr/x386/include
27447/usr/XFree86/include/X11
27448
27449/usr/include
27450/usr/local/include
27451/usr/unsupported/include
27452/usr/athena/include
27453/usr/local/x11r5/include
27454/usr/lpp/Xamples/include
27455
27456/usr/openwin/include
27457/usr/openwin/share/include'
27458
27459if test "$ac_x_includes" = no; then
27460 # Guess where to find include files, by looking for Xlib.h.
27461 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027463/* end confdefs.h. */
27464#include <X11/Xlib.h>
27465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027466if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027467 # We can compile using X headers with no special include directory.
27468ac_x_includes=
27469else
cristyc7083c12009-10-14 03:16:55 +000027470 for ac_dir in $ac_x_header_dirs; do
27471 if test -r "$ac_dir/X11/Xlib.h"; then
27472 ac_x_includes=$ac_dir
27473 break
27474 fi
27475done
27476fi
cristyda16f162011-02-19 23:52:17 +000027477rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027478fi # $ac_x_includes = no
27479
27480if test "$ac_x_libraries" = no; then
27481 # Check for the libraries.
27482 # See if we find them without any special options.
27483 # Don't add to $LIBS permanently.
27484 ac_save_LIBS=$LIBS
27485 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027487/* end confdefs.h. */
27488#include <X11/Xlib.h>
27489int
27490main ()
27491{
27492XrmInitialize ()
27493 ;
27494 return 0;
27495}
27496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027497if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027498 LIBS=$ac_save_LIBS
27499# We can link X programs with no special library path.
27500ac_x_libraries=
27501else
cristy8b350f62009-11-15 23:12:43 +000027502 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027503for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27504do
27505 # Don't even attempt the hair of trying to link an X program!
27506 for ac_extension in a so sl dylib la dll; do
27507 if test -r "$ac_dir/libX11.$ac_extension"; then
27508 ac_x_libraries=$ac_dir
27509 break 2
27510 fi
27511 done
27512done
27513fi
cristy8b350f62009-11-15 23:12:43 +000027514rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027516fi # $ac_x_libraries = no
27517
27518case $ac_x_includes,$ac_x_libraries in #(
27519 no,* | *,no | *\'*)
27520 # Didn't find X, or a directory has "'" in its name.
27521 ac_cv_have_x="have_x=no";; #(
27522 *)
27523 # Record where we found X for the cache.
27524 ac_cv_have_x="have_x=yes\
27525 ac_x_includes='$ac_x_includes'\
27526 ac_x_libraries='$ac_x_libraries'"
27527esac
27528fi
27529;; #(
27530 *) have_x=yes;;
27531 esac
27532 eval "$ac_cv_have_x"
27533fi # $with_x != no
27534
27535if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027537$as_echo "$have_x" >&6; }
27538 no_x=yes
27539else
27540 # If each of the values was on the command line, it overrides each guess.
27541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27543 # Update the cache value to reflect the command line values.
27544 ac_cv_have_x="have_x=yes\
27545 ac_x_includes='$x_includes'\
27546 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027548$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27549fi
27550
cristy3ed852e2009-09-05 21:47:34 +000027551if test "$no_x" = yes; then
27552 # Not all programs may use this symbol, but it does not hurt to define it.
27553
cristy8b350f62009-11-15 23:12:43 +000027554$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027555
27556 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27557else
27558 if test -n "$x_includes"; then
27559 X_CFLAGS="$X_CFLAGS -I$x_includes"
27560 fi
27561
27562 # It would also be nice to do this for all -L options, not just this one.
27563 if test -n "$x_libraries"; then
27564 X_LIBS="$X_LIBS -L$x_libraries"
27565 # For Solaris; some versions of Sun CC require a space after -R and
27566 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27569 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27570 ac_xsave_c_werror_flag=$ac_c_werror_flag
27571 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027573/* end confdefs.h. */
27574
27575int
27576main ()
27577{
27578
27579 ;
27580 return 0;
27581}
27582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027583if ac_fn_c_try_link "$LINENO"; then :
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "no" >&6; }
27586 X_LIBS="$X_LIBS -R$x_libraries"
27587else
cristy8b350f62009-11-15 23:12:43 +000027588 LIBS="$ac_xsave_LIBS -R $x_libraries"
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027590/* end confdefs.h. */
27591
27592int
27593main ()
27594{
27595
27596 ;
27597 return 0;
27598}
27599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027600if ac_fn_c_try_link "$LINENO"; then :
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo "yes" >&6; }
27603 X_LIBS="$X_LIBS -R $x_libraries"
27604else
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "neither works" >&6; }
27607fi
cristy8b350f62009-11-15 23:12:43 +000027608rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610fi
cristy8b350f62009-11-15 23:12:43 +000027611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613 ac_c_werror_flag=$ac_xsave_c_werror_flag
27614 LIBS=$ac_xsave_LIBS
27615 fi
27616
27617 # Check for system-dependent libraries X programs must link with.
27618 # Do this before checking for the system-independent R6 libraries
27619 # (-lICE), since we may need -lsocket or whatever for X linking.
27620
27621 if test "$ISC" = yes; then
27622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27623 else
27624 # Martyn Johnson says this is needed for Ultrix, if the X
27625 # libraries were built with DECnet support. And Karl Berry says
27626 # the Alpha needs dnet_stub (dnet does not exist).
27627 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027629/* end confdefs.h. */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char XOpenDisplay ();
27638int
27639main ()
27640{
27641return XOpenDisplay ();
27642 ;
27643 return 0;
27644}
27645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027647
cristy8b350f62009-11-15 23:12:43 +000027648else
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027651if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
27654 ac_check_lib_save_LIBS=$LIBS
27655LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char dnet_ntoa ();
27666int
27667main ()
27668{
27669return dnet_ntoa ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 ac_cv_lib_dnet_dnet_ntoa=yes
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027678fi
cristy8b350f62009-11-15 23:12:43 +000027679rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681LIBS=$ac_check_lib_save_LIBS
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027685if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27687fi
27688
27689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710return dnet_ntoa ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27728fi
27729
27730 fi
27731fi
cristy8b350f62009-11-15 23:12:43 +000027732rm -f core conftest.err conftest.$ac_objext \
27733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734 LIBS="$ac_xsave_LIBS"
27735
27736 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27737 # to get the SysV transport functions.
27738 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27739 # needs -lnsl.
27740 # The nsl library prevents programs from opening the X display
27741 # on Irix 5.2, according to T.E. Dickey.
27742 # The functions gethostbyname, getservbyname, and inet_addr are
27743 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027744 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027745if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027746
cristy3ed852e2009-09-05 21:47:34 +000027747fi
27748
cristy3ed852e2009-09-05 21:47:34 +000027749 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027752if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 $as_echo_n "(cached) " >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758/* end confdefs.h. */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char gethostbyname ();
27767int
27768main ()
27769{
27770return gethostbyname ();
27771 ;
27772 return 0;
27773}
27774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 ac_cv_lib_nsl_gethostbyname=yes
27777else
cristy8b350f62009-11-15 23:12:43 +000027778 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027779fi
cristy8b350f62009-11-15 23:12:43 +000027780rm -f core conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782LIBS=$ac_check_lib_save_LIBS
27783fi
cristy8b350f62009-11-15 23:12:43 +000027784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027786if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27788fi
27789
27790 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 $as_echo_n "(cached) " >&6
27795else
27796 ac_check_lib_save_LIBS=$LIBS
27797LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027799/* end confdefs.h. */
27800
27801/* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807char gethostbyname ();
27808int
27809main ()
27810{
27811return gethostbyname ();
27812 ;
27813 return 0;
27814}
27815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 ac_cv_lib_bsd_gethostbyname=yes
27818else
cristy8b350f62009-11-15 23:12:43 +000027819 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027820fi
cristy8b350f62009-11-15 23:12:43 +000027821rm -f core conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823LIBS=$ac_check_lib_save_LIBS
27824fi
cristy8b350f62009-11-15 23:12:43 +000027825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027826$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27829fi
27830
27831 fi
27832 fi
27833
27834 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27835 # socket/setsockopt and other routines are undefined under SCO ODT
27836 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27837 # on later versions), says Simon Leinen: it contains gethostby*
27838 # variants that don't use the name server (or something). -lsocket
27839 # must be given before -lnsl if both are needed. We assume that
27840 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027841 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027842if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027843
cristy3ed852e2009-09-05 21:47:34 +000027844fi
27845
cristy3ed852e2009-09-05 21:47:34 +000027846 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027849if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 $as_echo_n "(cached) " >&6
27851else
27852 ac_check_lib_save_LIBS=$LIBS
27853LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027855/* end confdefs.h. */
27856
27857/* Override any GCC internal prototype to avoid an error.
27858 Use char because int might match the return type of a GCC
27859 builtin and then its argument prototype would still apply. */
27860#ifdef __cplusplus
27861extern "C"
27862#endif
27863char connect ();
27864int
27865main ()
27866{
27867return connect ();
27868 ;
27869 return 0;
27870}
27871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 ac_cv_lib_socket_connect=yes
27874else
cristy8b350f62009-11-15 23:12:43 +000027875 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027876fi
cristy8b350f62009-11-15 23:12:43 +000027877rm -f core conftest.err conftest.$ac_objext \
27878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027879LIBS=$ac_check_lib_save_LIBS
27880fi
cristy8b350f62009-11-15 23:12:43 +000027881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27885fi
27886
27887 fi
27888
27889 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027890 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027891if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027892
cristy3ed852e2009-09-05 21:47:34 +000027893fi
27894
cristy3ed852e2009-09-05 21:47:34 +000027895 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027898if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 $as_echo_n "(cached) " >&6
27900else
27901 ac_check_lib_save_LIBS=$LIBS
27902LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027904/* end confdefs.h. */
27905
27906/* Override any GCC internal prototype to avoid an error.
27907 Use char because int might match the return type of a GCC
27908 builtin and then its argument prototype would still apply. */
27909#ifdef __cplusplus
27910extern "C"
27911#endif
27912char remove ();
27913int
27914main ()
27915{
27916return remove ();
27917 ;
27918 return 0;
27919}
27920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027922 ac_cv_lib_posix_remove=yes
27923else
cristy8b350f62009-11-15 23:12:43 +000027924 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027925fi
cristy8b350f62009-11-15 23:12:43 +000027926rm -f core conftest.err conftest.$ac_objext \
27927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928LIBS=$ac_check_lib_save_LIBS
27929fi
cristy8b350f62009-11-15 23:12:43 +000027930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027931$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27934fi
27935
27936 fi
27937
27938 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027939 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027940if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027941
cristy3ed852e2009-09-05 21:47:34 +000027942fi
27943
cristy3ed852e2009-09-05 21:47:34 +000027944 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 $as_echo_n "(cached) " >&6
27949else
27950 ac_check_lib_save_LIBS=$LIBS
27951LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027953/* end confdefs.h. */
27954
27955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958#ifdef __cplusplus
27959extern "C"
27960#endif
27961char shmat ();
27962int
27963main ()
27964{
27965return shmat ();
27966 ;
27967 return 0;
27968}
27969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 ac_cv_lib_ipc_shmat=yes
27972else
cristy8b350f62009-11-15 23:12:43 +000027973 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027974fi
cristy8b350f62009-11-15 23:12:43 +000027975rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027977LIBS=$ac_check_lib_save_LIBS
27978fi
cristy8b350f62009-11-15 23:12:43 +000027979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27983fi
27984
27985 fi
27986 fi
27987
27988 # Check for libraries that X11R6 Xt/Xaw programs need.
27989 ac_save_LDFLAGS=$LDFLAGS
27990 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27991 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27992 # check for ICE first), but we must link in the order -lSM -lICE or
27993 # we get undefined symbols. So assume we have SM if we have ICE.
27994 # These have to be linked with before -lX11, unlike the other
27995 # libraries we check for below, so use a different variable.
27996 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027998$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_lib_save_LIBS=$LIBS
28003LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char IceConnectionNumber ();
28014int
28015main ()
28016{
28017return IceConnectionNumber ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 ac_cv_lib_ICE_IceConnectionNumber=yes
28024else
cristy8b350f62009-11-15 23:12:43 +000028025 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028026fi
cristy8b350f62009-11-15 23:12:43 +000028027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029LIBS=$ac_check_lib_save_LIBS
28030fi
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28035fi
28036
28037 LDFLAGS=$ac_save_LDFLAGS
28038
28039fi
28040
28041if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028042 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28043$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028046 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28047$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028048 LDFLAGS="$LDFLAGS $X_LIBS"
28049 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28050 LIBS="$X11_LIBS $LIBS"
28051 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28052
28053
cristy8b350f62009-11-15 23:12:43 +000028054$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028055
28056 #
28057 # Check for X11 shared memory extension
28058 #
28059 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028060 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028061if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 have_shmctl='yes'
28063fi
28064
28065 if test "$have_shmctl" != 'yes'; then
28066 PERSIST_LIBS=$LIBS
28067 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028069/* end confdefs.h. */
28070
28071/* Override any GCC internal prototype to avoid an error.
28072 Use char because int might match the return type of a GCC
28073 builtin and then its argument prototype would still apply. */
28074#ifdef __cplusplus
28075extern "C"
28076#endif
28077char shmctl ();
28078int
28079main ()
28080{
28081return shmctl ();
28082 ;
28083 return 0;
28084}
28085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028086if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028087 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028088fi
cristy8b350f62009-11-15 23:12:43 +000028089rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091 LIBS=$PERSIST_LIBS
28092 fi
28093
28094 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028097if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028098 $as_echo_n "(cached) " >&6
28099else
28100 ac_check_lib_save_LIBS=$LIBS
28101LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103/* end confdefs.h. */
28104
28105/* Override any GCC internal prototype to avoid an error.
28106 Use char because int might match the return type of a GCC
28107 builtin and then its argument prototype would still apply. */
28108#ifdef __cplusplus
28109extern "C"
28110#endif
28111char XShmAttach ();
28112int
28113main ()
28114{
28115return XShmAttach ();
28116 ;
28117 return 0;
28118}
28119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 ac_cv_lib_Xext_XShmAttach=yes
28122else
cristy8b350f62009-11-15 23:12:43 +000028123 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028124fi
cristy8b350f62009-11-15 23:12:43 +000028125rm -f core conftest.err conftest.$ac_objext \
28126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028127LIBS=$ac_check_lib_save_LIBS
28128fi
cristy8b350f62009-11-15 23:12:43 +000028129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028131if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028132 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028133$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028134
28135fi
28136
28137 fi
28138
28139 #
28140 # Check for X11 shape extension
28141 #
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 $as_echo_n "(cached) " >&6
28146else
28147 ac_check_lib_save_LIBS=$LIBS
28148LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028150/* end confdefs.h. */
28151
28152/* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28155#ifdef __cplusplus
28156extern "C"
28157#endif
28158char XShapeCombineMask ();
28159int
28160main ()
28161{
28162return XShapeCombineMask ();
28163 ;
28164 return 0;
28165}
28166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 ac_cv_lib_Xext_XShapeCombineMask=yes
28169else
cristy8b350f62009-11-15 23:12:43 +000028170 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028171fi
cristy8b350f62009-11-15 23:12:43 +000028172rm -f core conftest.err conftest.$ac_objext \
28173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028174LIBS=$ac_check_lib_save_LIBS
28175fi
cristy8b350f62009-11-15 23:12:43 +000028176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028177$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028178if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028180$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028181
28182fi
28183
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028186if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 $as_echo_n "(cached) " >&6
28188else
28189 ac_check_lib_save_LIBS=$LIBS
28190LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028192/* end confdefs.h. */
28193
28194/* Override any GCC internal prototype to avoid an error.
28195 Use char because int might match the return type of a GCC
28196 builtin and then its argument prototype would still apply. */
28197#ifdef __cplusplus
28198extern "C"
28199#endif
28200char XtSetEventDispatcher ();
28201int
28202main ()
28203{
28204return XtSetEventDispatcher ();
28205 ;
28206 return 0;
28207}
28208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28211else
cristy8b350f62009-11-15 23:12:43 +000028212 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028213fi
cristy8b350f62009-11-15 23:12:43 +000028214rm -f core conftest.err conftest.$ac_objext \
28215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216LIBS=$ac_check_lib_save_LIBS
28217fi
cristy8b350f62009-11-15 23:12:43 +000028218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028219$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028220if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 XT_LIBS='-lXt'
28222fi
28223
28224 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28225fi
28226if test "$no_x" != 'yes'; then
28227 have_x='yes'
28228else
28229 have_x='no'
28230fi
cristy73bd4a52010-10-05 11:24:23 +000028231 if test "$have_x" = 'yes'; then
28232 X11_DELEGATE_TRUE=
28233 X11_DELEGATE_FALSE='#'
28234else
28235 X11_DELEGATE_TRUE='#'
28236 X11_DELEGATE_FALSE=
28237fi
28238
cristy3ed852e2009-09-05 21:47:34 +000028239
28240
28241
28242
28243#
28244# Check for ZLIB
28245#
28246
28247# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028248if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028249 withval=$with_zlib; with_zlib=$withval
28250else
28251 with_zlib='yes'
28252fi
28253
28254
28255if test "$with_zlib" != 'yes'; then
28256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28257fi
28258
28259have_zlib='no'
28260ZLIB_LIBS=''
28261if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28263$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028265$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028266 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28267$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028268 ZLIB_LIBS=''
28269 failed=0
28270 passed=0
cristy8b350f62009-11-15 23:12:43 +000028271 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028272if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 passed=`expr $passed + 1`
28274else
28275 failed=`expr $failed + 1`
28276fi
28277
28278
cristy8b350f62009-11-15 23:12:43 +000028279 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028280if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028281 passed=`expr $passed + 1`
28282else
28283 failed=`expr $failed + 1`
28284fi
28285
28286
cristy8b350f62009-11-15 23:12:43 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028289if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 $as_echo_n "(cached) " >&6
28291else
28292 ac_check_lib_save_LIBS=$LIBS
28293LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028295/* end confdefs.h. */
28296
28297/* Override any GCC internal prototype to avoid an error.
28298 Use char because int might match the return type of a GCC
28299 builtin and then its argument prototype would still apply. */
28300#ifdef __cplusplus
28301extern "C"
28302#endif
28303char compress ();
28304int
28305main ()
28306{
28307return compress ();
28308 ;
28309 return 0;
28310}
28311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 ac_cv_lib_z_compress=yes
28314else
cristy8b350f62009-11-15 23:12:43 +000028315 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028316fi
cristy8b350f62009-11-15 23:12:43 +000028317rm -f core conftest.err conftest.$ac_objext \
28318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028319LIBS=$ac_check_lib_save_LIBS
28320fi
cristy8b350f62009-11-15 23:12:43 +000028321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028323if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 passed=`expr $passed + 1`
28325else
28326 failed=`expr $failed + 1`
28327fi
28328
cristy8b350f62009-11-15 23:12:43 +000028329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028330$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028331if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 $as_echo_n "(cached) " >&6
28333else
28334 ac_check_lib_save_LIBS=$LIBS
28335LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028337/* end confdefs.h. */
28338
28339/* Override any GCC internal prototype to avoid an error.
28340 Use char because int might match the return type of a GCC
28341 builtin and then its argument prototype would still apply. */
28342#ifdef __cplusplus
28343extern "C"
28344#endif
28345char uncompress ();
28346int
28347main ()
28348{
28349return uncompress ();
28350 ;
28351 return 0;
28352}
28353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028355 ac_cv_lib_z_uncompress=yes
28356else
cristy8b350f62009-11-15 23:12:43 +000028357 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028358fi
cristy8b350f62009-11-15 23:12:43 +000028359rm -f core conftest.err conftest.$ac_objext \
28360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028361LIBS=$ac_check_lib_save_LIBS
28362fi
cristy8b350f62009-11-15 23:12:43 +000028363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028365if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 passed=`expr $passed + 1`
28367else
28368 failed=`expr $failed + 1`
28369fi
28370
cristy8b350f62009-11-15 23:12:43 +000028371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028373if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 $as_echo_n "(cached) " >&6
28375else
28376 ac_check_lib_save_LIBS=$LIBS
28377LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028379/* end confdefs.h. */
28380
28381/* Override any GCC internal prototype to avoid an error.
28382 Use char because int might match the return type of a GCC
28383 builtin and then its argument prototype would still apply. */
28384#ifdef __cplusplus
28385extern "C"
28386#endif
28387char deflate ();
28388int
28389main ()
28390{
28391return deflate ();
28392 ;
28393 return 0;
28394}
28395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028397 ac_cv_lib_z_deflate=yes
28398else
cristy8b350f62009-11-15 23:12:43 +000028399 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028400fi
cristy8b350f62009-11-15 23:12:43 +000028401rm -f core conftest.err conftest.$ac_objext \
28402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028403LIBS=$ac_check_lib_save_LIBS
28404fi
cristy8b350f62009-11-15 23:12:43 +000028405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
cristy8b350f62009-11-15 23:12:43 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028415if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 $as_echo_n "(cached) " >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028421/* end confdefs.h. */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char inflate ();
28430int
28431main ()
28432{
28433return inflate ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028439 ac_cv_lib_z_inflate=yes
28440else
cristy8b350f62009-11-15 23:12:43 +000028441 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028442fi
cristy8b350f62009-11-15 23:12:43 +000028443rm -f core conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028445LIBS=$ac_check_lib_save_LIBS
28446fi
cristy8b350f62009-11-15 23:12:43 +000028447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028449if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 passed=`expr $passed + 1`
28451else
28452 failed=`expr $failed + 1`
28453fi
28454
cristy8b350f62009-11-15 23:12:43 +000028455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028457if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 $as_echo_n "(cached) " >&6
28459else
28460 ac_check_lib_save_LIBS=$LIBS
28461LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028463/* end confdefs.h. */
28464
28465/* Override any GCC internal prototype to avoid an error.
28466 Use char because int might match the return type of a GCC
28467 builtin and then its argument prototype would still apply. */
28468#ifdef __cplusplus
28469extern "C"
28470#endif
28471char gzseek ();
28472int
28473main ()
28474{
28475return gzseek ();
28476 ;
28477 return 0;
28478}
28479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028481 ac_cv_lib_z_gzseek=yes
28482else
cristy8b350f62009-11-15 23:12:43 +000028483 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028484fi
cristy8b350f62009-11-15 23:12:43 +000028485rm -f core conftest.err conftest.$ac_objext \
28486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028487LIBS=$ac_check_lib_save_LIBS
28488fi
cristy8b350f62009-11-15 23:12:43 +000028489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028491if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 passed=`expr $passed + 1`
28493else
28494 failed=`expr $failed + 1`
28495fi
28496
cristy8b350f62009-11-15 23:12:43 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 $as_echo_n "(cached) " >&6
28501else
28502 ac_check_lib_save_LIBS=$LIBS
28503LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028505/* end confdefs.h. */
28506
28507/* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510#ifdef __cplusplus
28511extern "C"
28512#endif
28513char gztell ();
28514int
28515main ()
28516{
28517return gztell ();
28518 ;
28519 return 0;
28520}
28521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 ac_cv_lib_z_gztell=yes
28524else
cristy8b350f62009-11-15 23:12:43 +000028525 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028526fi
cristy8b350f62009-11-15 23:12:43 +000028527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028529LIBS=$ac_check_lib_save_LIBS
28530fi
cristy8b350f62009-11-15 23:12:43 +000028531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028533if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
cristy8b350f62009-11-15 23:12:43 +000028539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540$as_echo_n "checking if ZLIB package is complete... " >&6; }
28541 if test $passed -gt 0; then
28542 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28544$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028545 have_zlib='no (failed tests)'
28546 else
28547 ZLIB_LIBS='-lz'
28548 LIBS="$ZLIB_LIBS $LIBS"
28549
cristy8b350f62009-11-15 23:12:43 +000028550$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028551
cristy09b53e12011-10-14 12:47:22 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28553$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028554 have_zlib='yes'
28555 fi
28556 else
cristy09b53e12011-10-14 12:47:22 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28558$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028559 fi
28560fi
cristy73bd4a52010-10-05 11:24:23 +000028561 if test "$have_zlib" = 'yes'; then
28562 ZLIB_DELEGATE_TRUE=
28563 ZLIB_DELEGATE_FALSE='#'
28564else
28565 ZLIB_DELEGATE_TRUE='#'
28566 ZLIB_DELEGATE_FALSE=
28567fi
28568
cristy3ed852e2009-09-05 21:47:34 +000028569
28570
28571#
28572# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28573#
28574LIB_DL=''
28575if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028578if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 $as_echo_n "(cached) " >&6
28580else
28581 ac_check_lib_save_LIBS=$LIBS
28582LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028584/* end confdefs.h. */
28585
28586/* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592char dlopen ();
28593int
28594main ()
28595{
28596return dlopen ();
28597 ;
28598 return 0;
28599}
28600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028602 ac_cv_lib_dl_dlopen=yes
28603else
cristy8b350f62009-11-15 23:12:43 +000028604 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028605fi
cristy8b350f62009-11-15 23:12:43 +000028606rm -f core conftest.err conftest.$ac_objext \
28607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028608LIBS=$ac_check_lib_save_LIBS
28609fi
cristy8b350f62009-11-15 23:12:43 +000028610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028611$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028612if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028613 LIB_DL='-ldl'
28614fi
28615
28616 LIBS="$LIB_DL $LIBS"
28617fi
28618
28619
28620
28621#
28622# Check for Autotrace delegate library.
28623#
28624
28625# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028626if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028627 withval=$with_autotrace; with_autotrace=$withval
28628else
28629 with_autotrace='no'
28630fi
28631
28632
28633if test "$with_autotrace" != 'yes'; then
28634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28635fi
28636
28637have_autotrace='no'
28638AUTOTRACE_CFLAGS=""
28639AUTOTRACE_LIBS=""
28640AUTOTRACE_PKG=""
28641if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28643$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028644
28645pkg_failed=no
28646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28647$as_echo_n "checking for AUTOTRACE... " >&6; }
28648
28649if test -n "$AUTOTRACE_CFLAGS"; then
28650 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28651 elif test -n "$PKG_CONFIG"; then
28652 if test -n "$PKG_CONFIG" && \
28653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28654 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28655 ac_status=$?
28656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28657 test $ac_status = 0; }; then
28658 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28659else
28660 pkg_failed=yes
28661fi
28662 else
28663 pkg_failed=untried
28664fi
28665if test -n "$AUTOTRACE_LIBS"; then
28666 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28667 elif test -n "$PKG_CONFIG"; then
28668 if test -n "$PKG_CONFIG" && \
28669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28670 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28671 ac_status=$?
28672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28673 test $ac_status = 0; }; then
28674 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28675else
28676 pkg_failed=yes
28677fi
28678 else
28679 pkg_failed=untried
28680fi
28681
28682
28683
28684if test $pkg_failed = yes; then
28685
28686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28687 _pkg_short_errors_supported=yes
28688else
28689 _pkg_short_errors_supported=no
28690fi
28691 if test $_pkg_short_errors_supported = yes; then
28692 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28693 else
28694 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28695 fi
28696 # Put the nasty error message in config.log where it belongs
28697 echo "$AUTOTRACE_PKG_ERRORS" >&5
28698
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28700$as_echo "no" >&6; }
28701 have_autotrace=no
28702elif test $pkg_failed = untried; then
28703 have_autotrace=no
28704else
28705 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28706 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28708$as_echo "yes" >&6; }
28709 have_autotrace=yes
28710fi
cristy09b53e12011-10-14 12:47:22 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28712$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028713fi
28714
28715if test "$have_autotrace" = 'yes'; then
28716 failed=0
28717
cristy8b350f62009-11-15 23:12:43 +000028718$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028719
28720 if test "$with_modules" = 'no'; then
28721 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28722 fi
28723fi
28724
cristy73bd4a52010-10-05 11:24:23 +000028725 if test "$have_autotrace" = 'yes'; then
28726 AUTOTRACE_DELEGATE_TRUE=
28727 AUTOTRACE_DELEGATE_FALSE='#'
28728else
28729 AUTOTRACE_DELEGATE_TRUE='#'
28730 AUTOTRACE_DELEGATE_FALSE=
28731fi
28732
cristy3ed852e2009-09-05 21:47:34 +000028733
28734
28735
28736
28737#
28738# Check for Display Postscript delegate library.
28739#
28740
28741# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028742if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 withval=$with_dps; with_dps=$withval
28744else
28745 with_dps='yes'
28746fi
28747
28748
28749if test "$with_dps" != 'yes'; then
28750 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28751fi
28752
28753have_dps='no'
28754DPS_LIBS=''
28755if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028756 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28757$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28761$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028762 failed=0
28763 passed=0
28764 PERSIST_CPPFLAGS="$CPPFLAGS"
28765 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028766 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028767if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028768 passed=`expr $passed + 1`
28769else
28770 failed=`expr $failed + 1`
28771fi
28772
28773
28774 # DPS issues:
28775 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28776 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28777 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28778 # ImageMagick itself doesn't use -lXt.
28779 have_libdps='no'
28780 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028782$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028783if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028784 $as_echo_n "(cached) " >&6
28785else
28786 ac_check_lib_save_LIBS=$LIBS
28787LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028789/* end confdefs.h. */
28790
28791/* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28794#ifdef __cplusplus
28795extern "C"
28796#endif
28797char DPSInitialize ();
28798int
28799main ()
28800{
28801return DPSInitialize ();
28802 ;
28803 return 0;
28804}
28805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028807 ac_cv_lib_dps_DPSInitialize=yes
28808else
cristy8b350f62009-11-15 23:12:43 +000028809 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028810fi
cristy8b350f62009-11-15 23:12:43 +000028811rm -f core conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028813LIBS=$ac_check_lib_save_LIBS
28814fi
cristy8b350f62009-11-15 23:12:43 +000028815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028816$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028817if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 have_libdps='yes'
28819else
28820 have_libdps='no'
28821fi
28822
28823 if test "$have_libdps" != 'yes'; then
28824 # Unset cache variable so we can try again.
28825 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028827$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028828if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028829 $as_echo_n "(cached) " >&6
28830else
28831 ac_check_lib_save_LIBS=$LIBS
28832LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028834/* end confdefs.h. */
28835
28836/* Override any GCC internal prototype to avoid an error.
28837 Use char because int might match the return type of a GCC
28838 builtin and then its argument prototype would still apply. */
28839#ifdef __cplusplus
28840extern "C"
28841#endif
28842char DPSInitialize ();
28843int
28844main ()
28845{
28846return DPSInitialize ();
28847 ;
28848 return 0;
28849}
28850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 ac_cv_lib_dps_DPSInitialize=yes
28853else
cristy8b350f62009-11-15 23:12:43 +000028854 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028855fi
cristy8b350f62009-11-15 23:12:43 +000028856rm -f core conftest.err conftest.$ac_objext \
28857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028858LIBS=$ac_check_lib_save_LIBS
28859fi
cristy8b350f62009-11-15 23:12:43 +000028860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028861$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028862if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 have_libdps='yes'
28864else
28865 have_libdps='no'
28866fi
28867
28868 if test "$have_libdps" = 'yes'; then
28869 LIBDPS_XT='-lXt'
28870 fi
28871 fi
28872 if test "$have_libdps" = 'yes'; then
28873 passed=`expr $passed + 1`
28874 else
28875 failed=`expr $failed + 1`
28876 fi
cristy8b350f62009-11-15 23:12:43 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028878$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028879if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028880 $as_echo_n "(cached) " >&6
28881else
28882 ac_check_lib_save_LIBS=$LIBS
28883LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028885/* end confdefs.h. */
28886
28887/* Override any GCC internal prototype to avoid an error.
28888 Use char because int might match the return type of a GCC
28889 builtin and then its argument prototype would still apply. */
28890#ifdef __cplusplus
28891extern "C"
28892#endif
28893char XDPSPixelsPerPoint ();
28894int
28895main ()
28896{
28897return XDPSPixelsPerPoint ();
28898 ;
28899 return 0;
28900}
28901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28904else
cristy8b350f62009-11-15 23:12:43 +000028905 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028906fi
cristy8b350f62009-11-15 23:12:43 +000028907rm -f core conftest.err conftest.$ac_objext \
28908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028909LIBS=$ac_check_lib_save_LIBS
28910fi
cristy8b350f62009-11-15 23:12:43 +000028911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028913if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 passed=`expr $passed + 1`
28915else
28916 failed=`expr $failed + 1`
28917fi
28918
cristy8b350f62009-11-15 23:12:43 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028920$as_echo_n "checking if DPS package is complete... " >&6; }
28921 if test $passed -gt 0; then
28922 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28924$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028925 have_dps='no (failed tests)'
28926 CPPFLAGS="$PERSIST_CPPFLAGS"
28927 else
28928 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28929 LIBS="$DPS_LIBS $LIBS"
28930
cristy8b350f62009-11-15 23:12:43 +000028931$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028932
cristy09b53e12011-10-14 12:47:22 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28934$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028935 have_dps='yes'
28936 fi
28937 else
cristy09b53e12011-10-14 12:47:22 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28939$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028940 CPPFLAGS=$PERSIST_CPPFLAGS
28941 fi
28942fi
cristy73bd4a52010-10-05 11:24:23 +000028943 if test "$have_dps" = 'yes'; then
28944 DPS_DELEGATE_TRUE=
28945 DPS_DELEGATE_FALSE='#'
28946else
28947 DPS_DELEGATE_TRUE='#'
28948 DPS_DELEGATE_FALSE=
28949fi
28950
cristy3ed852e2009-09-05 21:47:34 +000028951
28952
28953
28954#
28955# Check for DJVU delegate library.
28956#
28957
28958# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028959if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028960 withval=$with_djvu; with_djvu=$withval
28961else
28962 with_djvu='yes'
28963fi
28964
28965
28966if test "$with_djvu" != 'yes'; then
28967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28968fi
28969
28970have_djvu='no'
28971DJVU_LIBS=''
28972if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28974$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028976$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28978$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028979 failed=0
28980 passed=0
cristy8b350f62009-11-15 23:12:43 +000028981 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028982if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028983 passed=`expr $passed + 1`
28984else
28985 failed=`expr $failed + 1`
28986fi
28987
28988
cristy8b350f62009-11-15 23:12:43 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028991if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028992 $as_echo_n "(cached) " >&6
28993else
28994 ac_check_lib_save_LIBS=$LIBS
28995LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028997/* end confdefs.h. */
28998
28999/* Override any GCC internal prototype to avoid an error.
29000 Use char because int might match the return type of a GCC
29001 builtin and then its argument prototype would still apply. */
29002#ifdef __cplusplus
29003extern "C"
29004#endif
29005char ddjvu_context_create ();
29006int
29007main ()
29008{
29009return ddjvu_context_create ();
29010 ;
29011 return 0;
29012}
29013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029015 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29016else
cristy8b350f62009-11-15 23:12:43 +000029017 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029018fi
cristy8b350f62009-11-15 23:12:43 +000029019rm -f core conftest.err conftest.$ac_objext \
29020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029021LIBS=$ac_check_lib_save_LIBS
29022fi
cristy8b350f62009-11-15 23:12:43 +000029023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029024$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029025if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029026 passed=`expr $passed + 1`
29027else
29028 failed=`expr $failed + 1`
29029fi
29030
cristy8b350f62009-11-15 23:12:43 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029032$as_echo_n "checking if DJVU package is complete... " >&6; }
29033 if test $passed -gt 0; then
29034 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29036$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029037 have_djvu='no (failed tests)'
29038 else
29039 DJVU_LIBS='-ldjvulibre'
29040 LIBS="$DJVU_LIBS $LIBS"
29041
cristy8b350f62009-11-15 23:12:43 +000029042$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029043
cristy09b53e12011-10-14 12:47:22 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29045$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029046 have_djvu='yes'
29047 fi
29048 else
cristy09b53e12011-10-14 12:47:22 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29050$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029051 fi
29052fi
cristy73bd4a52010-10-05 11:24:23 +000029053 if test "$have_djvu" = 'yes'; then
29054 DJVU_DELEGATE_TRUE=
29055 DJVU_DELEGATE_FALSE='#'
29056else
29057 DJVU_DELEGATE_TRUE='#'
29058 DJVU_DELEGATE_FALSE=
29059fi
29060
cristy3ed852e2009-09-05 21:47:34 +000029061
29062
29063
29064#
cristy430a7312010-01-21 20:44:04 +000029065# Set DejaVu font directory.
29066#
29067
29068# Check whether --with-dejavu-font-dir was given.
29069if test "${with_dejavu_font_dir+set}" = set; then :
29070 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29071else
29072 with_dejavu_font_dir='default'
29073fi
29074
29075
29076if test "$with_dejavu_font_dir" != 'default'; then
29077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29078fi
29079
29080
29081#
cristy3ed852e2009-09-05 21:47:34 +000029082# Check for FFTW delegate library.
29083#
29084
29085# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029086if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029087 withval=$with_fftw; with_fftw=$withval
29088else
29089 with_fftw='yes'
29090fi
29091
29092
29093if test "$with_fftw" != 'yes'; then
29094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29095fi
29096
cristy81beccd2011-10-03 18:17:24 +000029097have_fftw='no'
29098FFTW_LIBS=''
29099if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29101$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29103$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029104 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29105$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029106 failed=0
29107 passed=0
29108 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29109if test "x$ac_cv_header_fftw3_h" = xyes; then :
29110 passed=`expr $passed + 1`
29111else
29112 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029113fi
29114
cristy81beccd2011-10-03 18:17:24 +000029115
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29117$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29118if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29119 $as_echo_n "(cached) " >&6
29120else
29121 ac_check_lib_save_LIBS=$LIBS
29122LIBS="-lfftw3 $LIBS"
29123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124/* end confdefs.h. */
29125
29126/* Override any GCC internal prototype to avoid an error.
29127 Use char because int might match the return type of a GCC
29128 builtin and then its argument prototype would still apply. */
29129#ifdef __cplusplus
29130extern "C"
29131#endif
29132char fftw_execute ();
29133int
29134main ()
29135{
29136return fftw_execute ();
29137 ;
29138 return 0;
29139}
29140_ACEOF
29141if ac_fn_c_try_link "$LINENO"; then :
29142 ac_cv_lib_fftw3_fftw_execute=yes
29143else
29144 ac_cv_lib_fftw3_fftw_execute=no
29145fi
29146rm -f core conftest.err conftest.$ac_objext \
29147 conftest$ac_exeext conftest.$ac_ext
29148LIBS=$ac_check_lib_save_LIBS
29149fi
29150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29151$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29152if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29153 passed=`expr $passed + 1`
29154else
29155 failed=`expr $failed + 1`
29156fi
29157
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29159$as_echo_n "checking if FFTW package is complete... " >&6; }
29160 if test $passed -gt 0; then
29161 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29163$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029164 have_fftw='no (failed tests)'
29165 else
29166 FFTW_LIBS='-lfftw3'
29167 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029168
cristy8b350f62009-11-15 23:12:43 +000029169$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029170
cristy09b53e12011-10-14 12:47:22 +000029171 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29172$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029173 have_fftw='yes'
29174 fi
29175 else
cristy09b53e12011-10-14 12:47:22 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29177$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029178 fi
29179fi
cristy73bd4a52010-10-05 11:24:23 +000029180 if test "$have_fftw" = 'yes'; then
29181 FFTW_DELEGATE_TRUE=
29182 FFTW_DELEGATE_FALSE='#'
29183else
29184 FFTW_DELEGATE_TRUE='#'
29185 FFTW_DELEGATE_FALSE=
29186fi
29187
cristy3ed852e2009-09-05 21:47:34 +000029188
29189
29190
29191#
29192# Check for FlashPIX delegate library.
29193#
29194
29195# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029196if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029197 withval=$with_fpx; with_fpx=$withval
29198else
29199 with_fpx='yes'
29200fi
29201
29202
29203if test "$with_fpx" != 'yes'; then
29204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29205fi
29206
29207have_fpx='no'
29208FPX_LIBS=''
29209if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29211$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029214 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29215$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029216 failed=0
29217 passed=0
29218 ac_ext=cpp
29219ac_cpp='$CXXCPP $CPPFLAGS'
29220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29223
29224
cristy8b350f62009-11-15 23:12:43 +000029225ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029226if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
cristy8b350f62009-11-15 23:12:43 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029235if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 $as_echo_n "(cached) " >&6
29237else
29238 ac_check_lib_save_LIBS=$LIBS
29239LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029241/* end confdefs.h. */
29242
29243/* Override any GCC internal prototype to avoid an error.
29244 Use char because int might match the return type of a GCC
29245 builtin and then its argument prototype would still apply. */
29246#ifdef __cplusplus
29247extern "C"
29248#endif
29249char FPX_OpenImageByFilename ();
29250int
29251main ()
29252{
29253return FPX_OpenImageByFilename ();
29254 ;
29255 return 0;
29256}
29257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029258if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29260else
cristy8b350f62009-11-15 23:12:43 +000029261 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029262fi
cristy8b350f62009-11-15 23:12:43 +000029263rm -f core conftest.err conftest.$ac_objext \
29264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029265LIBS=$ac_check_lib_save_LIBS
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029269if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
29275 ac_ext=c
29276ac_cpp='$CPP $CPPFLAGS'
29277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29279ac_compiler_gnu=$ac_cv_c_compiler_gnu
29280
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29283 if test $passed -gt 0; then
29284 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29286$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029287 have_fpx='no (failed tests)'
29288 else
29289 FPX_LIBS='-lfpx'
29290
cristy8b350f62009-11-15 23:12:43 +000029291$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029292
cristy09b53e12011-10-14 12:47:22 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29294$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029295 have_fpx='yes'
29296 PERLMAINCC="$CXX"
29297 fi
29298 else
cristy09b53e12011-10-14 12:47:22 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29300$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029301 fi
29302fi
cristy73bd4a52010-10-05 11:24:23 +000029303 if test "$have_fpx" = 'yes'; then
29304 FPX_DELEGATE_TRUE=
29305 FPX_DELEGATE_FALSE='#'
29306else
29307 FPX_DELEGATE_TRUE='#'
29308 FPX_DELEGATE_FALSE=
29309fi
29310
cristy3ed852e2009-09-05 21:47:34 +000029311
29312
29313
29314#
29315# Check for fontconfig delegate library.
29316#
29317
29318# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029319if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029320 withval=$with_fontconfig; with_fontconfig=$withval
29321else
cristyfc3d0222012-02-07 15:05:57 +000029322 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029323fi
29324
29325
29326if test "$with_fontconfig" != 'yes'; then
29327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29328fi
29329
29330have_fontconfig='no'
29331FONTCONFIG_CFLAGS=""
29332FONTCONFIG_LIBS=""
29333FONTCONFIG_PKG=""
29334if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29336$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029337
29338pkg_failed=no
29339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29340$as_echo_n "checking for FONTCONFIG... " >&6; }
29341
29342if test -n "$FONTCONFIG_CFLAGS"; then
29343 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29344 elif test -n "$PKG_CONFIG"; then
29345 if test -n "$PKG_CONFIG" && \
29346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29347 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29348 ac_status=$?
29349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29350 test $ac_status = 0; }; then
29351 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29352else
29353 pkg_failed=yes
29354fi
29355 else
29356 pkg_failed=untried
29357fi
29358if test -n "$FONTCONFIG_LIBS"; then
29359 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29360 elif test -n "$PKG_CONFIG"; then
29361 if test -n "$PKG_CONFIG" && \
29362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29363 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29364 ac_status=$?
29365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29366 test $ac_status = 0; }; then
29367 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29368else
29369 pkg_failed=yes
29370fi
29371 else
29372 pkg_failed=untried
29373fi
29374
29375
29376
29377if test $pkg_failed = yes; then
29378
29379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29380 _pkg_short_errors_supported=yes
29381else
29382 _pkg_short_errors_supported=no
29383fi
29384 if test $_pkg_short_errors_supported = yes; then
29385 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29386 else
29387 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29388 fi
29389 # Put the nasty error message in config.log where it belongs
29390 echo "$FONTCONFIG_PKG_ERRORS" >&5
29391
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29393$as_echo "no" >&6; }
29394 have_fontconfig=no
29395elif test $pkg_failed = untried; then
29396 have_fontconfig=no
29397else
29398 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29399 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29401$as_echo "yes" >&6; }
29402 have_fontconfig=yes
29403fi
cristy09b53e12011-10-14 12:47:22 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29405$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029406fi
29407
29408if test "$have_fontconfig" = 'yes'; then
29409
cristy8b350f62009-11-15 23:12:43 +000029410$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029411
cristyd09bcf92010-03-25 03:04:45 +000029412 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029413 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029414 fi
cristy3ed852e2009-09-05 21:47:34 +000029415fi
29416
cristy73bd4a52010-10-05 11:24:23 +000029417 if test "$have_fontconfig" = 'yes'; then
29418 FONTCONFIG_DELEGATE_TRUE=
29419 FONTCONFIG_DELEGATE_FALSE='#'
29420else
29421 FONTCONFIG_DELEGATE_TRUE='#'
29422 FONTCONFIG_DELEGATE_FALSE=
29423fi
29424
cristy3ed852e2009-09-05 21:47:34 +000029425
29426
29427
29428
29429#
cristy81beccd2011-10-03 18:17:24 +000029430# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029431#
29432
29433# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029434if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029435 withval=$with_freetype; with_freetype=$withval
29436else
29437 with_freetype='yes'
29438fi
29439
29440
cristy81beccd2011-10-03 18:17:24 +000029441
cristy3ed852e2009-09-05 21:47:34 +000029442if test "$with_freetype" != 'yes'; then
29443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29444fi
29445
cristy81beccd2011-10-03 18:17:24 +000029446have_freetype='no'
29447FREETYPE_LIBS=''
29448if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29450$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29452$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029453 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29454$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029455 failed=0
29456 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029457 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029458 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029459 freetype_config=''
29460 # Allow the user to specify the location of freetype.
29461 if test "$with_freetype" != 'yes'; then
29462 if test -x "${with_freetype}/bin/freetype-config"; then
29463 freetype_config="${with_freetype}/bin/freetype-config"
29464 elif test -x "${with_freetype}"; then
29465 freetype_config=${with_freetype}
29466 fi
29467 fi
29468 if test -z "$freetype_config"; then
29469 # Extract the first word of "freetype-config", so it can be a program name with args.
29470set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29472$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029473if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029474 $as_echo_n "(cached) " >&6
29475else
cristy98ca0f52011-10-08 23:19:10 +000029476 case $freetype_config in
29477 [\\/]* | ?:[\\/]*)
29478 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29479 ;;
29480 *)
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029482for as_dir in $PATH
29483do
29484 IFS=$as_save_IFS
29485 test -z "$as_dir" && as_dir=.
29486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029488 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29490 break 2
29491 fi
29492done
29493 done
29494IFS=$as_save_IFS
29495
cristy98ca0f52011-10-08 23:19:10 +000029496 ;;
29497esac
cristy81beccd2011-10-03 18:17:24 +000029498fi
cristy98ca0f52011-10-08 23:19:10 +000029499freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029500if test -n "$freetype_config"; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29502$as_echo "$freetype_config" >&6; }
29503else
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29505$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029506fi
29507
cristy98ca0f52011-10-08 23:19:10 +000029508 fi
29509 if test -n "$freetype_config"; then
29510 freetype_prefix=`${freetype_config} --prefix`
29511 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29512 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29513 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029514 fi
29515
29516 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029518$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29519if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29520 $as_echo_n "(cached) " >&6
29521else
29522 ac_check_lib_save_LIBS=$LIBS
29523LIBS="-lfreetype $LIBS"
29524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525/* end confdefs.h. */
29526
29527/* Override any GCC internal prototype to avoid an error.
29528 Use char because int might match the return type of a GCC
29529 builtin and then its argument prototype would still apply. */
29530#ifdef __cplusplus
29531extern "C"
29532#endif
29533char FT_Init_FreeType ();
29534int
29535main ()
29536{
29537return FT_Init_FreeType ();
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542if ac_fn_c_try_link "$LINENO"; then :
29543 ac_cv_lib_freetype_FT_Init_FreeType=yes
29544else
29545 ac_cv_lib_freetype_FT_Init_FreeType=no
29546fi
29547rm -f core conftest.err conftest.$ac_objext \
29548 conftest$ac_exeext conftest.$ac_ext
29549LIBS=$ac_check_lib_save_LIBS
29550fi
29551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29552$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29553if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29554 FREETYPE_LIBS='-lfreetype'
29555fi
29556
cristy98ca0f52011-10-08 23:19:10 +000029557 if test "$FREETYPE_LIBS" != ''; then
29558 passed=`expr $passed + 1`
29559 else
29560 failed=`expr $failed + 1`
29561 LDFLAGS="$PERSIST_LDFLAGS"
29562 fi
cristy81beccd2011-10-03 18:17:24 +000029563 fi
29564
29565 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29566if test "x$ac_cv_header_ft2build_h" = xyes; then :
29567 FT2BUILD_H='#include <ft2build.h>'
29568else
29569 ft2build=''
29570fi
29571
29572
29573 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29574"
29575if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29576 have_freetype_h='yes'
29577else
29578 have_freetype_h='no'
29579fi
29580
29581
cristy98ca0f52011-10-08 23:19:10 +000029582 if test "$have_freetype_h" = 'yes'; then
29583 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029584 else
cristy98ca0f52011-10-08 23:19:10 +000029585 failed=`expr $failed + 1`
29586 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029587 fi
29588
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29590$as_echo_n "checking if FreeType package is complete... " >&6; }
29591 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029592 if test $failed -gt 0; then
29593 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29595$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029596 have_freetype='no (failed tests)'
29597 else
29598 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029599
cristy8b350f62009-11-15 23:12:43 +000029600$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029601
cristy98ca0f52011-10-08 23:19:10 +000029602 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029603
29604$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29605
cristy81beccd2011-10-03 18:17:24 +000029606 fi
cristy09b53e12011-10-14 12:47:22 +000029607 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29608$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029609 have_freetype='yes'
29610 fi
cristy81beccd2011-10-03 18:17:24 +000029611 else
cristy09b53e12011-10-14 12:47:22 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29613$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029614 fi
29615fi
cristy73bd4a52010-10-05 11:24:23 +000029616 if test "$have_freetype" = 'yes'; then
29617 FREETYPE_DELEGATE_TRUE=
29618 FREETYPE_DELEGATE_FALSE='#'
29619else
29620 FREETYPE_DELEGATE_TRUE='#'
29621 FREETYPE_DELEGATE_FALSE=
29622fi
29623
cristy3ed852e2009-09-05 21:47:34 +000029624
29625
29626
cristy3ed852e2009-09-05 21:47:34 +000029627#
29628# Check for Ghostscript library or framework.
29629#
29630# Test for iapi.h & test for gsapi_new_instance in -lgs
29631# or -framework Ghostscript
29632
29633
29634# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029635if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029636 withval=$with_gslib; with_gslib=$withval
29637else
29638 with_gslib='no'
29639fi
29640
29641
cristyb7931f12009-09-25 10:22:21 +000029642gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029643if test "$with_gslib" != 'yes'; then
29644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29645fi
29646
29647have_gslib='no'
29648GS_LIBS=''
29649if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29655$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029656 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029657 failed=0
29658 passed=0
cristy8b350f62009-11-15 23:12:43 +000029659 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029660if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 passed=`expr $passed + 1`
29662else
29663 failed=`expr $failed + 1`
29664fi
29665
29666
cristy8b350f62009-11-15 23:12:43 +000029667 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029668if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029669 passed=`expr $passed + 1`
29670else
29671 failed=`expr $failed + 1`
29672fi
29673
29674
cristy73bd4a52010-10-05 11:24:23 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29676$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029677if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029678 $as_echo_n "(cached) " >&6
29679else
29680 ac_check_framework_save_LIBS=$LIBS
29681LIBS="-framework Ghostscript $LIBS"
29682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29683/* end confdefs.h. */
29684
29685/* Override any GCC internal prototype to avoid an error.
29686 Use char because int might match the return type of a GCC
29687 builtin and then its argument prototype would still apply. */
29688#ifdef __cplusplus
29689extern "C"
29690#endif
29691char gsapi_new_instance ();
29692int
29693main ()
29694{
29695return gsapi_new_instance ();
29696 ;
29697 return 0;
29698}
29699_ACEOF
29700if ac_fn_c_try_link "$LINENO"; then :
29701 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29702else
29703 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29704fi
29705rm -f core conftest.err conftest.$ac_objext \
29706 conftest$ac_exeext conftest.$ac_ext
29707LIBS=$ac_check_framework_save_LIBS
29708fi
29709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29710$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29711if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29712 framework=`expr $framework + 1`
29713else
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029716if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029717 $as_echo_n "(cached) " >&6
29718else
29719 ac_check_lib_save_LIBS=$LIBS
29720LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029722/* end confdefs.h. */
29723
29724/* Override any GCC internal prototype to avoid an error.
29725 Use char because int might match the return type of a GCC
29726 builtin and then its argument prototype would still apply. */
29727#ifdef __cplusplus
29728extern "C"
29729#endif
29730char gsapi_new_instance ();
29731int
29732main ()
29733{
29734return gsapi_new_instance ();
29735 ;
29736 return 0;
29737}
29738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 ac_cv_lib_gs_gsapi_new_instance=yes
29741else
cristy8b350f62009-11-15 23:12:43 +000029742 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029743fi
cristy8b350f62009-11-15 23:12:43 +000029744rm -f core conftest.err conftest.$ac_objext \
29745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029746LIBS=$ac_check_lib_save_LIBS
29747fi
cristy8b350f62009-11-15 23:12:43 +000029748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029750if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029751 passed=`expr $passed + 1`
29752else
29753 failed=`expr $failed + 1`
29754fi
cristy73bd4a52010-10-05 11:24:23 +000029755
29756fi
cristy8b350f62009-11-15 23:12:43 +000029757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29759 if test $passed -gt 0; then
29760 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29762$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029763 have_gslib='no (failed tests)'
29764 else
29765 if test $framework -gt 0; then
29766 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029767 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29769$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029770 else
cristy09b53e12011-10-14 12:47:22 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29772$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029773 GS_LIBS='-lgs'
29774 fi
29775 LIBS="$GS_LIBS $LIBS"
29776
cristy8b350f62009-11-15 23:12:43 +000029777$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029778
29779 have_gslib='yes'
29780 fi
29781 else
cristy09b53e12011-10-14 12:47:22 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29783$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029784 fi
29785fi
cristy73bd4a52010-10-05 11:24:23 +000029786 if test "$have_gslib" = 'yes'; then
29787 GS_DELEGATE_TRUE=
29788 GS_DELEGATE_FALSE='#'
29789else
29790 GS_DELEGATE_TRUE='#'
29791 GS_DELEGATE_FALSE=
29792fi
29793
cristy3ed852e2009-09-05 21:47:34 +000029794
29795
29796# Set default font search path
29797
29798# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029799if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 withval=$with_fontpath; with_fontpath=$withval
29801else
29802 with_fontpath=''
29803fi
29804
29805
29806if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29807 with_fontpath=''
29808else
29809
29810cat >>confdefs.h <<_ACEOF
29811#define MAGICK_FONT_PATH "$with_fontpath"
29812_ACEOF
29813
29814fi
29815if test "$with_fontpath=" != ''; then
29816 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29817fi
29818
29819# Set Ghostscript font directory
29820
29821# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029822if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029823 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29824else
29825 with_gs_font_dir='default'
29826fi
29827
29828
29829if test "$with_gs_font_dir" != 'default'; then
29830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29831fi
29832
29833
29834#
29835# Check for GVC delegate library.
29836#
29837
29838# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029839if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 withval=$with_gvc; with_gvc=$withval
29841else
cristy1b70dc82012-07-01 23:15:05 +000029842 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029843fi
29844
29845
29846if test "$with_gvc" != 'yes'; then
29847 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29848fi
29849
29850GVC_PKG=""
29851if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29853$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029854
29855pkg_failed=no
29856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29857$as_echo_n "checking for GVC... " >&6; }
29858
29859if test -n "$GVC_CFLAGS"; then
29860 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29861 elif test -n "$PKG_CONFIG"; then
29862 if test -n "$PKG_CONFIG" && \
29863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29864 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29865 ac_status=$?
29866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29867 test $ac_status = 0; }; then
29868 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29869else
29870 pkg_failed=yes
29871fi
29872 else
29873 pkg_failed=untried
29874fi
29875if test -n "$GVC_LIBS"; then
29876 pkg_cv_GVC_LIBS="$GVC_LIBS"
29877 elif test -n "$PKG_CONFIG"; then
29878 if test -n "$PKG_CONFIG" && \
29879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29880 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29881 ac_status=$?
29882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29883 test $ac_status = 0; }; then
29884 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29885else
29886 pkg_failed=yes
29887fi
29888 else
29889 pkg_failed=untried
29890fi
29891
29892
29893
29894if test $pkg_failed = yes; then
29895
29896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29897 _pkg_short_errors_supported=yes
29898else
29899 _pkg_short_errors_supported=no
29900fi
29901 if test $_pkg_short_errors_supported = yes; then
29902 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29903 else
29904 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29905 fi
29906 # Put the nasty error message in config.log where it belongs
29907 echo "$GVC_PKG_ERRORS" >&5
29908
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29910$as_echo "no" >&6; }
29911 have_gvc=no
29912elif test $pkg_failed = untried; then
29913 have_gvc=no
29914else
29915 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29916 GVC_LIBS=$pkg_cv_GVC_LIBS
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29918$as_echo "yes" >&6; }
29919 have_gvc=yes
29920fi
cristy09b53e12011-10-14 12:47:22 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29922$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029923fi
29924
29925if test "$have_gvc" = 'yes'; then
29926
cristy8b350f62009-11-15 23:12:43 +000029927$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029928
29929 if test "$with_modules" = 'no'; then
29930 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29931 fi
29932fi
29933
cristy73bd4a52010-10-05 11:24:23 +000029934 if test "$have_gvc" = 'yes'; then
29935 GVC_DELEGATE_TRUE=
29936 GVC_DELEGATE_FALSE='#'
29937else
29938 GVC_DELEGATE_TRUE='#'
29939 GVC_DELEGATE_FALSE=
29940fi
29941
cristy3ed852e2009-09-05 21:47:34 +000029942
29943
29944
29945
29946#
29947# Check for JBIG delegate library.
29948#
29949
29950
29951# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029952if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 withval=$with_jbig; with_jbig=$withval
29954else
29955 with_jbig='yes'
29956fi
29957
29958
29959have_jbig='no'
29960JBIG_LIBS=''
29961if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29963$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029965$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29967$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029968 failed=0
29969 passed=0
cristy8b350f62009-11-15 23:12:43 +000029970 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029971if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029972 passed=`expr $passed + 1`
29973else
29974 failed=`expr $failed + 1`
29975fi
29976
29977
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029980if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 $as_echo_n "(cached) " >&6
29982else
29983 ac_check_lib_save_LIBS=$LIBS
29984LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029986/* end confdefs.h. */
29987
29988/* Override any GCC internal prototype to avoid an error.
29989 Use char because int might match the return type of a GCC
29990 builtin and then its argument prototype would still apply. */
29991#ifdef __cplusplus
29992extern "C"
29993#endif
29994char jbg_dec_init ();
29995int
29996main ()
29997{
29998return jbg_dec_init ();
29999 ;
30000 return 0;
30001}
30002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030004 ac_cv_lib_jbig_jbg_dec_init=yes
30005else
cristy8b350f62009-11-15 23:12:43 +000030006 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030007fi
cristy8b350f62009-11-15 23:12:43 +000030008rm -f core conftest.err conftest.$ac_objext \
30009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030010LIBS=$ac_check_lib_save_LIBS
30011fi
cristy8b350f62009-11-15 23:12:43 +000030012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030013$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030014if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030015 passed=`expr $passed + 1`
30016else
30017 failed=`expr $failed + 1`
30018fi
30019
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo_n "checking if JBIG package is complete... " >&6; }
30022 if test $passed -gt 0; then
30023 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030024 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30025$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030026 have_jbig='no (failed tests)'
30027 else
30028 JBIG_LIBS='-ljbig'
30029 LIBS="$JBIG_LIBS $LIBS"
30030
cristy8b350f62009-11-15 23:12:43 +000030031$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030032
cristy09b53e12011-10-14 12:47:22 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30034$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030035 have_jbig='yes'
30036 fi
30037 else
cristy09b53e12011-10-14 12:47:22 +000030038 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30039$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030040 fi
30041fi
cristy73bd4a52010-10-05 11:24:23 +000030042 if test "$have_jbig" = 'yes'; then
30043 JBIG_DELEGATE_TRUE=
30044 JBIG_DELEGATE_FALSE='#'
30045else
30046 JBIG_DELEGATE_TRUE='#'
30047 JBIG_DELEGATE_FALSE=
30048fi
30049
cristy3ed852e2009-09-05 21:47:34 +000030050
30051
30052
30053#
30054# Check for JPEG delegate library.
30055#
30056
30057# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030058if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 withval=$with_jpeg; with_jpeg=$withval
30060else
30061 with_jpeg='yes'
30062fi
30063
30064
30065if test "$with_jpeg" != 'yes'; then
30066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30067fi
30068
30069have_jpeg='no'
30070JPEG_LIBS=''
30071if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30073$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30077$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030078 failed=0
30079 passed=0
cristy8b350f62009-11-15 23:12:43 +000030080 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030081if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 passed=`expr $passed + 1`
30083else
30084 failed=`expr $failed + 1`
30085fi
30086
30087
cristy8b350f62009-11-15 23:12:43 +000030088 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030089if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030090 passed=`expr $passed + 1`
30091else
30092 failed=`expr $failed + 1`
30093fi
30094
30095
cristy8b350f62009-11-15 23:12:43 +000030096 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030097if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 passed=`expr $passed + 1`
30099else
30100 failed=`expr $failed + 1`
30101fi
30102
30103
cristy8b350f62009-11-15 23:12:43 +000030104 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030105if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030106 passed=`expr $passed + 1`
30107else
30108 failed=`expr $failed + 1`
30109fi
30110
30111
cristy8b350f62009-11-15 23:12:43 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030114if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 $as_echo_n "(cached) " >&6
30116else
30117 ac_check_lib_save_LIBS=$LIBS
30118LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030120/* end confdefs.h. */
30121
30122/* Override any GCC internal prototype to avoid an error.
30123 Use char because int might match the return type of a GCC
30124 builtin and then its argument prototype would still apply. */
30125#ifdef __cplusplus
30126extern "C"
30127#endif
30128char jpeg_read_header ();
30129int
30130main ()
30131{
30132return jpeg_read_header ();
30133 ;
30134 return 0;
30135}
30136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030138 ac_cv_lib_jpeg_jpeg_read_header=yes
30139else
cristy8b350f62009-11-15 23:12:43 +000030140 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030141fi
cristy8b350f62009-11-15 23:12:43 +000030142rm -f core conftest.err conftest.$ac_objext \
30143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030144LIBS=$ac_check_lib_save_LIBS
30145fi
cristy8b350f62009-11-15 23:12:43 +000030146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030148if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030149 passed=`expr $passed + 1`
30150else
30151 failed=`expr $failed + 1`
30152fi
30153
30154
30155# Test for compatible JPEG library
30156if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030159if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 $as_echo_n "(cached) " >&6
30161else
cristy8b350f62009-11-15 23:12:43 +000030162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030163/* end confdefs.h. */
30164#include <stdio.h>
30165#include <stdlib.h>
30166#include <jpeglib.h>
30167
30168int
30169main ()
30170{
30171
30172#if JPEG_LIB_VERSION < 62
30173#error IJG JPEG library must be version 6b or newer!
30174#endif
30175return 0;
30176
30177 ;
30178 return 0;
30179}
30180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030182 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30183else
cristy8b350f62009-11-15 23:12:43 +000030184 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030185fi
cristy3ed852e2009-09-05 21:47:34 +000030186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30187fi
cristy8b350f62009-11-15 23:12:43 +000030188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30190fi
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking if JPEG package is complete... " >&6; }
30193 if test $passed -gt 0; then
30194 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30196$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030197 have_jpeg='no (failed tests)'
30198 else
30199 JPEG_LIBS='-ljpeg'
30200 LIBS="$JPEG_LIBS $LIBS"
30201
cristy8b350f62009-11-15 23:12:43 +000030202$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030203
cristy09b53e12011-10-14 12:47:22 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30205$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030206 have_jpeg='yes'
30207 fi
30208 else
cristy09b53e12011-10-14 12:47:22 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30210$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030211 fi
30212fi
cristy73bd4a52010-10-05 11:24:23 +000030213 if test "$have_jpeg" = 'yes'; then
30214 JPEG_DELEGATE_TRUE=
30215 JPEG_DELEGATE_FALSE='#'
30216else
30217 JPEG_DELEGATE_TRUE='#'
30218 JPEG_DELEGATE_FALSE=
30219fi
30220
cristy3ed852e2009-09-05 21:47:34 +000030221
30222
30223
30224#
30225# Check for JPEG Version 2 delegate library.
30226#
30227
30228# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030229if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030230 withval=$with_jp2; with_jp2=$withval
30231else
30232 with_jp2='yes'
30233fi
30234
30235
30236if test "$with_jp2" != 'yes'; then
30237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30238fi
30239
30240have_jp2='no'
30241JP2_LIBS=''
30242if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030243 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30244$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030246$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30248$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030249 failed=0
30250 passed=0
cristy8b350f62009-11-15 23:12:43 +000030251 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030252if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 passed=`expr $passed + 1`
30254else
30255 failed=`expr $failed + 1`
30256fi
30257
30258
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030261if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030262 $as_echo_n "(cached) " >&6
30263else
30264 ac_check_lib_save_LIBS=$LIBS
30265LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030267/* end confdefs.h. */
30268
30269/* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30272#ifdef __cplusplus
30273extern "C"
30274#endif
30275char jas_stream_fopen ();
30276int
30277main ()
30278{
30279return jas_stream_fopen ();
30280 ;
30281 return 0;
30282}
30283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 ac_cv_lib_jasper_jas_stream_fopen=yes
30286else
cristy8b350f62009-11-15 23:12:43 +000030287 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030288fi
cristy8b350f62009-11-15 23:12:43 +000030289rm -f core conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030291LIBS=$ac_check_lib_save_LIBS
30292fi
cristy8b350f62009-11-15 23:12:43 +000030293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030295if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030296 passed=`expr $passed + 1`
30297else
30298 failed=`expr $failed + 1`
30299fi
30300
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30303 if test $passed -gt 0; then
30304 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30306$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030307 have_jp2='no (failed tests)'
30308 else
30309 JP2_LIBS='-ljasper'
30310 LIBS="$JP2_LIBS $LIBS"
30311
cristy8b350f62009-11-15 23:12:43 +000030312$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030313
cristy09b53e12011-10-14 12:47:22 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30315$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030316 have_jp2='yes'
30317 fi
30318 else
cristy09b53e12011-10-14 12:47:22 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30320$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030321 fi
30322fi
cristy73bd4a52010-10-05 11:24:23 +000030323 if test "$have_jp2" = 'yes'; then
30324 JP2_DELEGATE_TRUE=
30325 JP2_DELEGATE_FALSE='#'
30326else
30327 JP2_DELEGATE_TRUE='#'
30328 JP2_DELEGATE_FALSE=
30329fi
30330
cristy3ed852e2009-09-05 21:47:34 +000030331
30332
30333
30334#
30335# Check for LCMS delegate library.
30336#
cristy71203402010-06-18 13:12:03 +000030337# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030338
30339# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030340if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030341 withval=$with_lcms; with_lcms=$withval
30342else
30343 with_lcms='yes'
30344fi
30345
cristy71203402010-06-18 13:12:03 +000030346if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30348fi
30349
cristy71203402010-06-18 13:12:03 +000030350# Disable LCMS2.
30351
30352# Check whether --with-lcms2 was given.
30353if test "${with_lcms2+set}" = set; then :
30354 withval=$with_lcms2; with_lcms2=$withval
30355else
30356 with_lcms2='yes'
30357fi
30358
30359if test "$with_lcms2" != 'yes' ; then
30360 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30361fi
30362
30363have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030364LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030365if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030366 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30367$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30369$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030370 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30371$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030372 failed=0
30373 passed=0
30374 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030375
30376 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030377 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030378if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030379 have_lcms_header='yes'
30380fi
30381
30382
30383 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030384
30385$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30386
cristy71203402010-06-18 13:12:03 +000030387 passed=`expr $passed + 1`
30388 fi
30389
30390 # Check for <lcms2/lcms2.h)
30391 if test "$have_lcms_header" != 'yes'; then
30392 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030393if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030394 have_lcms_header='yes'
30395fi
30396
30397
cristy71203402010-06-18 13:12:03 +000030398 if test "$have_lcms_header" = 'yes'; then
30399 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030400
cristy71203402010-06-18 13:12:03 +000030401$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030402
cristy71203402010-06-18 13:12:03 +000030403 fi
cristyd09bcf92010-03-25 03:04:45 +000030404 fi
cristy71203402010-06-18 13:12:03 +000030405
30406 # Failed to find lcms header?
30407 if test "$have_lcms_header" != 'yes'; then
30408 failed=`expr $failed + 1`
30409 fi
30410
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30412$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030413if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030414 $as_echo_n "(cached) " >&6
30415else
30416 ac_check_lib_save_LIBS=$LIBS
30417LIBS="-llcms2 $LIBS"
30418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30419/* end confdefs.h. */
30420
30421/* Override any GCC internal prototype to avoid an error.
30422 Use char because int might match the return type of a GCC
30423 builtin and then its argument prototype would still apply. */
30424#ifdef __cplusplus
30425extern "C"
30426#endif
cristy71203402010-06-18 13:12:03 +000030427char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030428int
30429main ()
30430{
cristy71203402010-06-18 13:12:03 +000030431return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030432 ;
30433 return 0;
30434}
30435_ACEOF
30436if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030437 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030438else
cristy71203402010-06-18 13:12:03 +000030439 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030440fi
30441rm -f core conftest.err conftest.$ac_objext \
30442 conftest$ac_exeext conftest.$ac_ext
30443LIBS=$ac_check_lib_save_LIBS
30444fi
cristy71203402010-06-18 13:12:03 +000030445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30446$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030447if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030448 passed=`expr $passed + 1`
30449else
30450 failed=`expr $failed + 1`
30451fi
30452
cristy71203402010-06-18 13:12:03 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30454$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030455 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030456 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30458$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030459 have_lcms2='no (failed tests)'
30460 else
30461 LCMS_LIBS='-llcms2'
30462 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30464$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030465 have_lcms2='yes'
30466 fi
cristyd09bcf92010-03-25 03:04:45 +000030467 else
cristy09b53e12011-10-14 12:47:22 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30469$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030470 fi
30471fi
30472
cristy71203402010-06-18 13:12:03 +000030473#
30474# Check for LCMS v1 (1.11 or later)
30475#
30476if test $have_lcms2 = 'yes'; then
30477 with_lcms='no'
30478fi
30479
30480have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030481if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30483$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30485$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30487$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030488 failed=0
30489 passed=0
30490 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030491
30492 # Check for <lcms.h>
30493 if test "$have_lcms_header" != 'yes'; then
30494 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030495if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030496 have_lcms_header='yes'
30497fi
30498
30499
cristy71203402010-06-18 13:12:03 +000030500 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030501 passed=`expr $passed + 1`
30502
cristy8b350f62009-11-15 23:12:43 +000030503$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030504
cristy71203402010-06-18 13:12:03 +000030505 fi
30506 fi
30507
30508 # Check for <lcms/lcms.h>
30509 if test "$have_lcms_header" != 'yes'; then
30510 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030511if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030512 have_lcms_header='yes'
30513fi
30514
30515
cristy71203402010-06-18 13:12:03 +000030516 if test "$have_lcms_header" = 'yes'; then
30517 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030518
cristy8b350f62009-11-15 23:12:43 +000030519$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030520
cristy71203402010-06-18 13:12:03 +000030521 fi
cristy3ed852e2009-09-05 21:47:34 +000030522 fi
cristy71203402010-06-18 13:12:03 +000030523
30524 # Failed to find lcms header?
30525 if test "$have_lcms_header" != 'yes'; then
30526 failed=`expr $failed + 1`
30527 fi
30528
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30530$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030531if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030532 $as_echo_n "(cached) " >&6
30533else
30534 ac_check_lib_save_LIBS=$LIBS
30535LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030537/* end confdefs.h. */
30538
30539/* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30542#ifdef __cplusplus
30543extern "C"
30544#endif
cristy71203402010-06-18 13:12:03 +000030545char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030546int
30547main ()
30548{
cristy71203402010-06-18 13:12:03 +000030549return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030550 ;
30551 return 0;
30552}
30553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030554if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030555 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030556else
cristy71203402010-06-18 13:12:03 +000030557 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030558fi
cristy8b350f62009-11-15 23:12:43 +000030559rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030561LIBS=$ac_check_lib_save_LIBS
30562fi
cristy71203402010-06-18 13:12:03 +000030563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30564$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030565if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030566 passed=`expr $passed + 1`
30567else
30568 failed=`expr $failed + 1`
30569fi
30570
cristy8b350f62009-11-15 23:12:43 +000030571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030572$as_echo_n "checking if LCMS package is complete... " >&6; }
30573 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030574 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030575 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30576$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030577 have_lcms='no (failed tests)'
30578 else
30579 LCMS_LIBS='-llcms'
30580 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30582$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030583 have_lcms='yes'
30584 fi
cristy3ed852e2009-09-05 21:47:34 +000030585 else
cristy09b53e12011-10-14 12:47:22 +000030586 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30587$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030588 fi
30589fi
cristy71203402010-06-18 13:12:03 +000030590
cristy73bd4a52010-10-05 11:24:23 +000030591 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30592 LCMS_DELEGATE_TRUE=
30593 LCMS_DELEGATE_FALSE='#'
30594else
30595 LCMS_DELEGATE_TRUE='#'
30596 LCMS_DELEGATE_FALSE=
30597fi
30598
cristy71203402010-06-18 13:12:03 +000030599if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30600
30601$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30602
30603fi
30604
cristy3ed852e2009-09-05 21:47:34 +000030605
30606
30607
30608#
30609# Check for the LQR (Liquid Rescale) delegate library.
30610#
30611
30612# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030613if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030614 withval=$with_lqr; with_lqr=$withval
30615else
30616 with_lqr='yes'
30617fi
30618
30619
30620if test "$with_lqr" != 'yes'; then
30621 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30622fi
30623
30624have_lqr='no'
30625LQR_CFLAGS=""
30626LQR_LIBS=""
30627LQR_PKG=""
30628if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30630$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030631
30632pkg_failed=no
30633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30634$as_echo_n "checking for LQR... " >&6; }
30635
30636if test -n "$LQR_CFLAGS"; then
30637 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30638 elif test -n "$PKG_CONFIG"; then
30639 if test -n "$PKG_CONFIG" && \
30640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30641 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30642 ac_status=$?
30643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30644 test $ac_status = 0; }; then
30645 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30646else
30647 pkg_failed=yes
30648fi
30649 else
30650 pkg_failed=untried
30651fi
30652if test -n "$LQR_LIBS"; then
30653 pkg_cv_LQR_LIBS="$LQR_LIBS"
30654 elif test -n "$PKG_CONFIG"; then
30655 if test -n "$PKG_CONFIG" && \
30656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30657 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30658 ac_status=$?
30659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30660 test $ac_status = 0; }; then
30661 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30662else
30663 pkg_failed=yes
30664fi
30665 else
30666 pkg_failed=untried
30667fi
30668
30669
30670
30671if test $pkg_failed = yes; then
30672
30673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30674 _pkg_short_errors_supported=yes
30675else
30676 _pkg_short_errors_supported=no
30677fi
30678 if test $_pkg_short_errors_supported = yes; then
30679 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30680 else
30681 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30682 fi
30683 # Put the nasty error message in config.log where it belongs
30684 echo "$LQR_PKG_ERRORS" >&5
30685
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30687$as_echo "no" >&6; }
30688 have_lqr=no
30689elif test $pkg_failed = untried; then
30690 have_lqr=no
30691else
30692 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30693 LQR_LIBS=$pkg_cv_LQR_LIBS
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30695$as_echo "yes" >&6; }
30696 have_lqr=yes
30697fi
cristy09b53e12011-10-14 12:47:22 +000030698 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30699$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030700fi
30701
30702if test "$have_lqr" = 'yes'; then
30703
cristy8b350f62009-11-15 23:12:43 +000030704$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030705
30706 CFLAGS="$LQR_CFLAGS $CFLAGS"
30707fi
30708
cristy73bd4a52010-10-05 11:24:23 +000030709 if test "$have_lqr" = 'yes'; then
30710 LQR_DELEGATE_TRUE=
30711 LQR_DELEGATE_FALSE='#'
30712else
30713 LQR_DELEGATE_TRUE='#'
30714 LQR_DELEGATE_FALSE=
30715fi
30716
cristy3ed852e2009-09-05 21:47:34 +000030717
30718
30719
30720
cristy81beccd2011-10-03 18:17:24 +000030721# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030722
30723# Check whether --with-lzma was given.
30724if test "${with_lzma+set}" = set; then :
30725 withval=$with_lzma; with_lzma=$withval
30726else
30727 with_lzma='yes'
30728fi
30729
cristy81beccd2011-10-03 18:17:24 +000030730if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030731 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30732fi
30733
cristyb94e5002011-11-14 13:20:10 +000030734LZMA_PKG=""
30735if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30737$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030738
30739pkg_failed=no
30740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030741$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030742
30743if test -n "$LZMA_CFLAGS"; then
30744 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30745 elif test -n "$PKG_CONFIG"; then
30746 if test -n "$PKG_CONFIG" && \
30747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30748 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30749 ac_status=$?
30750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30751 test $ac_status = 0; }; then
30752 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30753else
30754 pkg_failed=yes
30755fi
30756 else
30757 pkg_failed=untried
30758fi
30759if test -n "$LZMA_LIBS"; then
30760 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30761 elif test -n "$PKG_CONFIG"; then
30762 if test -n "$PKG_CONFIG" && \
30763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30764 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30765 ac_status=$?
30766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30767 test $ac_status = 0; }; then
30768 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30769else
30770 pkg_failed=yes
30771fi
30772 else
30773 pkg_failed=untried
30774fi
30775
30776
30777
30778if test $pkg_failed = yes; then
30779
30780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30781 _pkg_short_errors_supported=yes
30782else
30783 _pkg_short_errors_supported=no
30784fi
30785 if test $_pkg_short_errors_supported = yes; then
30786 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30787 else
30788 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30789 fi
30790 # Put the nasty error message in config.log where it belongs
30791 echo "$LZMA_PKG_ERRORS" >&5
30792
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30794$as_echo "no" >&6; }
30795 have_lzma=no
30796elif test $pkg_failed = untried; then
30797 have_lzma=no
30798else
30799 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30800 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30802$as_echo "yes" >&6; }
30803 have_lzma=yes
30804fi
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030806$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030807fi
30808
cristyb94e5002011-11-14 13:20:10 +000030809if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030810
30811$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30812
cristyb94e5002011-11-14 13:20:10 +000030813 if test "$with_modules" = 'no'; then
30814 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030815 fi
cristyfbb0ef02010-12-19 02:32:11 +000030816fi
cristyb94e5002011-11-14 13:20:10 +000030817
cristyfbb0ef02010-12-19 02:32:11 +000030818 if test "$have_lzma" = 'yes'; then
30819 LZMA_DELEGATE_TRUE=
30820 LZMA_DELEGATE_FALSE='#'
30821else
30822 LZMA_DELEGATE_TRUE='#'
30823 LZMA_DELEGATE_FALSE=
30824fi
30825
30826
30827
30828
cristyb94e5002011-11-14 13:20:10 +000030829
cristy3ed852e2009-09-05 21:47:34 +000030830#
30831# Check for the OpenEXR delegate library.
30832#
30833
30834# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030835if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030836 withval=$with_openexr; with_openexr=$withval
30837else
30838 with_openexr='yes'
30839fi
30840
30841
30842if test "$with_openexr" != 'yes'; then
30843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30844fi
30845
30846have_openexr='no'
30847OPENEXR_CFLAGS=""
30848OPENEXR_LIBS=""
30849OPENEXR_PKG=""
30850if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30852$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030853
30854pkg_failed=no
30855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30856$as_echo_n "checking for OPENEXR... " >&6; }
30857
30858if test -n "$OPENEXR_CFLAGS"; then
30859 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30860 elif test -n "$PKG_CONFIG"; then
30861 if test -n "$PKG_CONFIG" && \
30862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30863 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30864 ac_status=$?
30865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30866 test $ac_status = 0; }; then
30867 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30868else
30869 pkg_failed=yes
30870fi
30871 else
30872 pkg_failed=untried
30873fi
30874if test -n "$OPENEXR_LIBS"; then
30875 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30876 elif test -n "$PKG_CONFIG"; then
30877 if test -n "$PKG_CONFIG" && \
30878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30879 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30880 ac_status=$?
30881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30882 test $ac_status = 0; }; then
30883 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30884else
30885 pkg_failed=yes
30886fi
30887 else
30888 pkg_failed=untried
30889fi
30890
30891
30892
30893if test $pkg_failed = yes; then
30894
30895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30896 _pkg_short_errors_supported=yes
30897else
30898 _pkg_short_errors_supported=no
30899fi
30900 if test $_pkg_short_errors_supported = yes; then
30901 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30902 else
30903 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30904 fi
30905 # Put the nasty error message in config.log where it belongs
30906 echo "$OPENEXR_PKG_ERRORS" >&5
30907
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909$as_echo "no" >&6; }
30910 have_openexr=no
30911elif test $pkg_failed = untried; then
30912 have_openexr=no
30913else
30914 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30915 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30917$as_echo "yes" >&6; }
30918 have_openexr=yes
30919fi
cristy09b53e12011-10-14 12:47:22 +000030920 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30921$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030922fi
30923
30924if test "$have_openexr" = 'yes'; then
30925
cristy8b350f62009-11-15 23:12:43 +000030926$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030927
30928 if test "$with_modules" = 'no'; then
30929 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30930 fi
30931fi
30932
cristy73bd4a52010-10-05 11:24:23 +000030933 if test "$have_openexr" = 'yes'; then
30934 OPENEXR_DELEGATE_TRUE=
30935 OPENEXR_DELEGATE_FALSE='#'
30936else
30937 OPENEXR_DELEGATE_TRUE='#'
30938 OPENEXR_DELEGATE_FALSE=
30939fi
30940
cristy3ed852e2009-09-05 21:47:34 +000030941
30942
30943
30944
30945#
cristy41cbe8a2011-10-27 01:35:18 +000030946# Check for PANGO delegate library.
30947#
30948
30949# Check whether --with-pango was given.
30950if test "${with_pango+set}" = set; then :
30951 withval=$with_pango; with_pango=$withval
30952else
cristyfc3d0222012-02-07 15:05:57 +000030953 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030954fi
30955
30956
30957if test "$with_pango" != 'yes'; then
30958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30959fi
30960
30961have_pango='no'
cristya054b762012-03-26 23:16:00 +000030962have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030963PANGO_CFLAGS=""
30964PANGO_LIBS=""
30965PANGO_PKG=""
30966if test "x$with_pango" = "xyes"; then
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30968$as_echo "-------------------------------------------------------------" >&6; }
30969
30970pkg_failed=no
30971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30972$as_echo_n "checking for PANGO... " >&6; }
30973
30974if test -n "$PANGO_CFLAGS"; then
30975 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30976 elif test -n "$PKG_CONFIG"; then
30977 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30979 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030980 ac_status=$?
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030983 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030984else
30985 pkg_failed=yes
30986fi
30987 else
30988 pkg_failed=untried
30989fi
30990if test -n "$PANGO_LIBS"; then
30991 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30992 elif test -n "$PKG_CONFIG"; then
30993 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30995 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030996 ac_status=$?
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030999 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031000else
31001 pkg_failed=yes
31002fi
31003 else
31004 pkg_failed=untried
31005fi
31006
31007
31008
31009if test $pkg_failed = yes; then
31010
31011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31012 _pkg_short_errors_supported=yes
31013else
31014 _pkg_short_errors_supported=no
31015fi
31016 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031017 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031018 else
cristya054b762012-03-26 23:16:00 +000031019 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031020 fi
31021 # Put the nasty error message in config.log where it belongs
31022 echo "$PANGO_PKG_ERRORS" >&5
31023
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31025$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031026 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031027elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031028 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031029else
31030 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31031 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31033$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031034 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031035fi
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31037$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031038
31039pkg_failed=no
31040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31041$as_echo_n "checking for PANGO... " >&6; }
31042
31043if test -n "$PANGO_CFLAGS"; then
31044 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31045 elif test -n "$PKG_CONFIG"; then
31046 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31048 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031049 ac_status=$?
31050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31051 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031052 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031053else
31054 pkg_failed=yes
31055fi
31056 else
31057 pkg_failed=untried
31058fi
31059if test -n "$PANGO_LIBS"; then
31060 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31061 elif test -n "$PKG_CONFIG"; then
31062 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31064 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031065 ac_status=$?
31066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31067 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031068 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031069else
31070 pkg_failed=yes
31071fi
31072 else
31073 pkg_failed=untried
31074fi
31075
31076
31077
31078if test $pkg_failed = yes; then
31079
31080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31081 _pkg_short_errors_supported=yes
31082else
31083 _pkg_short_errors_supported=no
31084fi
31085 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031086 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031087 else
cristy2542fc62011-12-06 17:50:25 +000031088 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031089 fi
31090 # Put the nasty error message in config.log where it belongs
31091 echo "$PANGO_PKG_ERRORS" >&5
31092
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31094$as_echo "no" >&6; }
31095 have_pango=no
31096elif test $pkg_failed = untried; then
31097 have_pango=no
31098else
31099 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31100 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31102$as_echo "yes" >&6; }
31103 have_pango=yes
31104fi
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31106$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031107fi
31108
31109if test "$have_pango" = 'yes'; then
31110
31111$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31112
31113 if test "$with_modules" = 'no'; then
31114 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31115 fi
31116fi
31117
cristya054b762012-03-26 23:16:00 +000031118if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031119
cristya054b762012-03-26 23:16:00 +000031120$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031121
31122 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031123 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031124 fi
31125fi
31126
31127 if test "$have_pango" = 'yes'; then
31128 PANGO_DELEGATE_TRUE=
31129 PANGO_DELEGATE_FALSE='#'
31130else
31131 PANGO_DELEGATE_TRUE='#'
31132 PANGO_DELEGATE_FALSE=
31133fi
31134
cristya054b762012-03-26 23:16:00 +000031135 if test "$have_pangocairo" = 'yes'; then
31136 PANGOCAIRO_DELEGATE_TRUE=
31137 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031138else
cristya054b762012-03-26 23:16:00 +000031139 PANGOCAIRO_DELEGATE_TRUE='#'
31140 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031141fi
31142
31143
31144
31145
31146
31147#
cristy3ed852e2009-09-05 21:47:34 +000031148# Check for PNG delegate library.
31149#
31150
31151# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031152if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031153 withval=$with_png; with_png=$withval
31154else
31155 with_png='yes'
31156fi
31157
31158
31159if test "$with_png" != 'yes'; then
31160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31161fi
31162
cristy81beccd2011-10-03 18:17:24 +000031163have_png='no'
31164PNG_LIBS=''
31165
31166if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31168$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31170$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031171 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31172$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031173 failed=0
31174 passed=0
31175 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31176if test "x$ac_cv_header_png_h" = xyes; then :
31177 passed=`expr $passed + 1`
31178else
31179 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031180fi
31181
cristy81beccd2011-10-03 18:17:24 +000031182
31183
31184 if test $passed -gt 0; then
31185 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031186 if test "$have_png" = 'no' ; then
31187 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031188 pnglib='png'
31189 else
31190 pnglib="png1${var}"
31191 fi
31192
31193# Test for compatible LIBPNG library
31194 failed=0
31195 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031196 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031197 if test "${pnglib}" != 'png' ; then
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31199$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31201/* end confdefs.h. */
31202#include <stdio.h>
31203#include <stdlib.h>
31204#include <png.h>
31205
31206int
31207main ()
31208{
31209
31210#if PNG_LIBPNG_VER_MINOR != ${var}
31211#error LIBPNG library must be version 1${var}!
31212Kaboom, Kaboom
31213#endif
31214return 0;
31215
31216 ;
31217 return 0;
31218}
31219_ACEOF
31220if ac_fn_c_try_compile "$LINENO"; then :
31221 ac_cv_libpng_ok='yes'
31222else
31223 ac_cv_libpng_ok='no'
31224fi
31225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31226 if test "$ac_cv_libpng_ok" = 'yes' ; then
31227 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031228 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31229$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031230 else
31231 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31233$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031234 fi
31235 else
31236 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031237 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31238$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031239 fi
31240 fi
31241
31242 if test $passed -gt 0 -a $failed -le 0; then
31243 if test "1${var}" = '15' ; then
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31245$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31246if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31247 $as_echo_n "(cached) " >&6
31248else
31249 ac_check_lib_save_LIBS=$LIBS
31250LIBS="-lpng15 $LIBS"
31251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31252/* end confdefs.h. */
31253
31254/* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
31257#ifdef __cplusplus
31258extern "C"
31259#endif
31260char png_get_io_ptr ();
31261int
31262main ()
31263{
31264return png_get_io_ptr ();
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269if ac_fn_c_try_link "$LINENO"; then :
31270 ac_cv_lib_png15_png_get_io_ptr=yes
31271else
31272 ac_cv_lib_png15_png_get_io_ptr=no
31273fi
31274rm -f core conftest.err conftest.$ac_objext \
31275 conftest$ac_exeext conftest.$ac_ext
31276LIBS=$ac_check_lib_save_LIBS
31277fi
31278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31279$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31280if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31281 passed=`expr $passed + 1`
31282else
31283 failed=`expr $failed + 1`
31284fi
31285
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31287$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31288if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31289 $as_echo_n "(cached) " >&6
31290else
31291 ac_check_lib_save_LIBS=$LIBS
31292LIBS="-lpng15 $LIBS"
31293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31294/* end confdefs.h. */
31295
31296/* Override any GCC internal prototype to avoid an error.
31297 Use char because int might match the return type of a GCC
31298 builtin and then its argument prototype would still apply. */
31299#ifdef __cplusplus
31300extern "C"
31301#endif
31302char png_longjmp ();
31303int
31304main ()
31305{
31306return png_longjmp ();
31307 ;
31308 return 0;
31309}
31310_ACEOF
31311if ac_fn_c_try_link "$LINENO"; then :
31312 ac_cv_lib_png15_png_longjmp=yes
31313else
31314 ac_cv_lib_png15_png_longjmp=no
31315fi
31316rm -f core conftest.err conftest.$ac_objext \
31317 conftest$ac_exeext conftest.$ac_ext
31318LIBS=$ac_check_lib_save_LIBS
31319fi
31320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31321$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31322if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31323 passed=`expr $passed + 1`
31324else
31325 failed=`expr $failed + 1`
31326fi
31327
31328 fi
31329 if test "1${var}" = '14' ; then
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31331$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31332if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31333 $as_echo_n "(cached) " >&6
31334else
31335 ac_check_lib_save_LIBS=$LIBS
31336LIBS="-lpng14 $LIBS"
31337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338/* end confdefs.h. */
31339
31340/* Override any GCC internal prototype to avoid an error.
31341 Use char because int might match the return type of a GCC
31342 builtin and then its argument prototype would still apply. */
31343#ifdef __cplusplus
31344extern "C"
31345#endif
31346char png_get_io_ptr ();
31347int
31348main ()
31349{
31350return png_get_io_ptr ();
31351 ;
31352 return 0;
31353}
31354_ACEOF
31355if ac_fn_c_try_link "$LINENO"; then :
31356 ac_cv_lib_png14_png_get_io_ptr=yes
31357else
31358 ac_cv_lib_png14_png_get_io_ptr=no
31359fi
31360rm -f core conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31362LIBS=$ac_check_lib_save_LIBS
31363fi
31364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31365$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31366if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31367 passed=`expr $passed + 1`
31368else
31369 failed=`expr $failed + 1`
31370fi
31371
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31373$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31374if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31375 $as_echo_n "(cached) " >&6
31376else
31377 ac_check_lib_save_LIBS=$LIBS
31378LIBS="-lpng14 $LIBS"
31379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31380/* end confdefs.h. */
31381
31382/* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31385#ifdef __cplusplus
31386extern "C"
31387#endif
31388char png_get_io_state ();
31389int
31390main ()
31391{
31392return png_get_io_state ();
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397if ac_fn_c_try_link "$LINENO"; then :
31398 ac_cv_lib_png14_png_get_io_state=yes
31399else
31400 ac_cv_lib_png14_png_get_io_state=no
31401fi
31402rm -f core conftest.err conftest.$ac_objext \
31403 conftest$ac_exeext conftest.$ac_ext
31404LIBS=$ac_check_lib_save_LIBS
31405fi
31406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31407$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31408if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31409 passed=`expr $passed + 1`
31410else
31411 failed=`expr $failed + 1`
31412fi
31413
31414 fi
31415 if test "1${var}" = '12' ; then
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31417$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31418if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31419 $as_echo_n "(cached) " >&6
31420else
31421 ac_check_lib_save_LIBS=$LIBS
31422LIBS="-lpng12 $LIBS"
31423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31424/* end confdefs.h. */
31425
31426/* Override any GCC internal prototype to avoid an error.
31427 Use char because int might match the return type of a GCC
31428 builtin and then its argument prototype would still apply. */
31429#ifdef __cplusplus
31430extern "C"
31431#endif
31432char png_get_io_ptr ();
31433int
31434main ()
31435{
31436return png_get_io_ptr ();
31437 ;
31438 return 0;
31439}
31440_ACEOF
31441if ac_fn_c_try_link "$LINENO"; then :
31442 ac_cv_lib_png12_png_get_io_ptr=yes
31443else
31444 ac_cv_lib_png12_png_get_io_ptr=no
31445fi
31446rm -f core conftest.err conftest.$ac_objext \
31447 conftest$ac_exeext conftest.$ac_ext
31448LIBS=$ac_check_lib_save_LIBS
31449fi
31450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31451$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31452if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31453 passed=`expr $passed + 1`
31454else
31455 failed=`expr $failed + 1`
31456fi
31457
31458 fi
31459 if test "1${var}" = '1' ; then
31460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31461$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31462if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31463 $as_echo_n "(cached) " >&6
31464else
31465 ac_check_lib_save_LIBS=$LIBS
31466LIBS="-lpng $LIBS"
31467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31468/* end confdefs.h. */
31469
31470/* Override any GCC internal prototype to avoid an error.
31471 Use char because int might match the return type of a GCC
31472 builtin and then its argument prototype would still apply. */
31473#ifdef __cplusplus
31474extern "C"
31475#endif
31476char png_get_io_ptr ();
31477int
31478main ()
31479{
31480return png_get_io_ptr ();
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485if ac_fn_c_try_link "$LINENO"; then :
31486 ac_cv_lib_png_png_get_io_ptr=yes
31487else
31488 ac_cv_lib_png_png_get_io_ptr=no
31489fi
31490rm -f core conftest.err conftest.$ac_objext \
31491 conftest$ac_exeext conftest.$ac_ext
31492LIBS=$ac_check_lib_save_LIBS
31493fi
31494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31495$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31496if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31497 passed=`expr $passed + 1`
31498else
31499 failed=`expr $failed + 1`
31500fi
31501
31502 fi
31503 if test $passed -gt 0 -a $failed -le 0 ; then
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31505$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31506 if test $passed -gt 0 ; then
31507 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31509$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031510 have_png='no (failed tests)'
31511 else
31512 PNG_LIBS="-l${pnglib}"
31513 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031514
cristy8b350f62009-11-15 23:12:43 +000031515$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031516
cristy09b53e12011-10-14 12:47:22 +000031517 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31518$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031519 have_png='yes'
31520 fi
31521 fi
31522 fi
31523 fi
31524 fi
31525 done
31526 fi
cristy3ed852e2009-09-05 21:47:34 +000031527fi
cristy64877302011-08-23 19:10:31 +000031528
cristy73bd4a52010-10-05 11:24:23 +000031529 if test "$have_png" = 'yes'; then
31530 PNG_DELEGATE_TRUE=
31531 PNG_DELEGATE_FALSE='#'
31532else
31533 PNG_DELEGATE_TRUE='#'
31534 PNG_DELEGATE_FALSE=
31535fi
31536
cristy3ed852e2009-09-05 21:47:34 +000031537
cristy50d3f5c2011-09-10 20:09:06 +000031538
cristy3ed852e2009-09-05 21:47:34 +000031539
31540
31541#
31542# Check for RSVG delegate library.
31543#
31544
31545# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031546if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031547 withval=$with_rsvg; with_rsvg=$withval
31548else
cristyfc3d0222012-02-07 15:05:57 +000031549 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031550fi
31551
31552
31553if test "$with_rsvg" != 'yes'; then
31554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31555fi
31556
31557have_rsvg='no'
31558have_cairo='no'
31559RSVG_CFLAGS=""
31560RSVG_LIBS=""
31561RSVG_PKG=""
31562if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31564$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031565
31566pkg_failed=no
31567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31568$as_echo_n "checking for RSVG... " >&6; }
31569
31570if test -n "$RSVG_CFLAGS"; then
31571 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31572 elif test -n "$PKG_CONFIG"; then
31573 if test -n "$PKG_CONFIG" && \
31574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31575 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31576 ac_status=$?
31577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31578 test $ac_status = 0; }; then
31579 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31580else
31581 pkg_failed=yes
31582fi
31583 else
31584 pkg_failed=untried
31585fi
31586if test -n "$RSVG_LIBS"; then
31587 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31588 elif test -n "$PKG_CONFIG"; then
31589 if test -n "$PKG_CONFIG" && \
31590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31591 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31592 ac_status=$?
31593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31594 test $ac_status = 0; }; then
31595 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31596else
31597 pkg_failed=yes
31598fi
31599 else
31600 pkg_failed=untried
31601fi
31602
31603
31604
31605if test $pkg_failed = yes; then
31606
31607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31608 _pkg_short_errors_supported=yes
31609else
31610 _pkg_short_errors_supported=no
31611fi
31612 if test $_pkg_short_errors_supported = yes; then
31613 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31614 else
31615 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31616 fi
31617 # Put the nasty error message in config.log where it belongs
31618 echo "$RSVG_PKG_ERRORS" >&5
31619
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621$as_echo "no" >&6; }
31622 have_rsvg=no
31623elif test $pkg_failed = untried; then
31624 have_rsvg=no
31625else
31626 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31627 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629$as_echo "yes" >&6; }
31630 have_rsvg=yes
31631fi
cristy09b53e12011-10-14 12:47:22 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31633$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031634
31635pkg_failed=no
31636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31637$as_echo_n "checking for CAIRO_SVG... " >&6; }
31638
31639if test -n "$CAIRO_SVG_CFLAGS"; then
31640 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31641 elif test -n "$PKG_CONFIG"; then
31642 if test -n "$PKG_CONFIG" && \
31643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31644 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31645 ac_status=$?
31646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31647 test $ac_status = 0; }; then
31648 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31649else
31650 pkg_failed=yes
31651fi
31652 else
31653 pkg_failed=untried
31654fi
31655if test -n "$CAIRO_SVG_LIBS"; then
31656 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31657 elif test -n "$PKG_CONFIG"; then
31658 if test -n "$PKG_CONFIG" && \
31659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31660 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31661 ac_status=$?
31662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31663 test $ac_status = 0; }; then
31664 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31665else
31666 pkg_failed=yes
31667fi
31668 else
31669 pkg_failed=untried
31670fi
31671
31672
31673
31674if test $pkg_failed = yes; then
31675
31676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31677 _pkg_short_errors_supported=yes
31678else
31679 _pkg_short_errors_supported=no
31680fi
31681 if test $_pkg_short_errors_supported = yes; then
31682 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31683 else
31684 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31685 fi
31686 # Put the nasty error message in config.log where it belongs
31687 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31688
31689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31690$as_echo "no" >&6; }
31691 have_cairo=no
31692elif test $pkg_failed = untried; then
31693 have_cairo=no
31694else
31695 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31696 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31698$as_echo "yes" >&6; }
31699 have_cairo=yes
31700fi
cristy09b53e12011-10-14 12:47:22 +000031701 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31702$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031703fi
31704
31705if test "$have_rsvg" = 'yes'; then
31706
cristy8b350f62009-11-15 23:12:43 +000031707$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031708
31709 if test "$with_modules" = 'no'; then
31710 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31711 fi
31712fi
31713
31714if test "$have_cairo" = 'yes'; then
31715
cristy8b350f62009-11-15 23:12:43 +000031716$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031717
31718 if test "$with_modules" = 'no'; then
31719 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31720 fi
31721fi
31722
cristy73bd4a52010-10-05 11:24:23 +000031723 if test "$have_rsvg" = 'yes'; then
31724 RSVG_DELEGATE_TRUE=
31725 RSVG_DELEGATE_FALSE='#'
31726else
31727 RSVG_DELEGATE_TRUE='#'
31728 RSVG_DELEGATE_FALSE=
31729fi
31730
31731 if test "$have_cairo" = 'yes'; then
31732 CAIRO_DELEGATE_TRUE=
31733 CAIRO_DELEGATE_FALSE='#'
31734else
31735 CAIRO_DELEGATE_TRUE='#'
31736 CAIRO_DELEGATE_FALSE=
31737fi
31738
cristy3ed852e2009-09-05 21:47:34 +000031739
31740
31741
31742
31743#
31744# Check for TIFF delegate library.
31745#
31746
31747# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031748if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031749 withval=$with_tiff; with_tiff=$withval
31750else
31751 with_tiff='yes'
31752fi
31753
31754
31755if test "$with_tiff" != 'yes'; then
31756 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31757fi
31758
31759have_tiff='no'
31760TIFF_LIBS=''
31761if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31763$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031766 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31767$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031768 failed=0
31769 passed=0
cristy8b350f62009-11-15 23:12:43 +000031770 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031771if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031772 passed=`expr $passed + 1`
31773else
31774 failed=`expr $failed + 1`
31775fi
31776
31777
cristy8b350f62009-11-15 23:12:43 +000031778 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031779if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031780 passed=`expr $passed + 1`
31781else
31782 failed=`expr $failed + 1`
31783fi
31784
31785
cristy8b350f62009-11-15 23:12:43 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031787$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031788if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031789 $as_echo_n "(cached) " >&6
31790else
31791 ac_check_lib_save_LIBS=$LIBS
31792LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031794/* end confdefs.h. */
31795
31796/* Override any GCC internal prototype to avoid an error.
31797 Use char because int might match the return type of a GCC
31798 builtin and then its argument prototype would still apply. */
31799#ifdef __cplusplus
31800extern "C"
31801#endif
31802char TIFFOpen ();
31803int
31804main ()
31805{
31806return TIFFOpen ();
31807 ;
31808 return 0;
31809}
31810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031812 ac_cv_lib_tiff_TIFFOpen=yes
31813else
cristy8b350f62009-11-15 23:12:43 +000031814 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031815fi
cristy8b350f62009-11-15 23:12:43 +000031816rm -f core conftest.err conftest.$ac_objext \
31817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031818LIBS=$ac_check_lib_save_LIBS
31819fi
cristy8b350f62009-11-15 23:12:43 +000031820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031821$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031822if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 passed=`expr $passed + 1`
31824else
31825 failed=`expr $failed + 1`
31826fi
31827
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031830if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031831 $as_echo_n "(cached) " >&6
31832else
31833 ac_check_lib_save_LIBS=$LIBS
31834LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031836/* end confdefs.h. */
31837
31838/* Override any GCC internal prototype to avoid an error.
31839 Use char because int might match the return type of a GCC
31840 builtin and then its argument prototype would still apply. */
31841#ifdef __cplusplus
31842extern "C"
31843#endif
31844char TIFFClientOpen ();
31845int
31846main ()
31847{
31848return TIFFClientOpen ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031854 ac_cv_lib_tiff_TIFFClientOpen=yes
31855else
cristy8b350f62009-11-15 23:12:43 +000031856 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031857fi
cristy8b350f62009-11-15 23:12:43 +000031858rm -f core conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031860LIBS=$ac_check_lib_save_LIBS
31861fi
cristy8b350f62009-11-15 23:12:43 +000031862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031864if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 passed=`expr $passed + 1`
31866else
31867 failed=`expr $failed + 1`
31868fi
31869
cristy8b350f62009-11-15 23:12:43 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031871$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031872if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031873 $as_echo_n "(cached) " >&6
31874else
31875 ac_check_lib_save_LIBS=$LIBS
31876LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031878/* end confdefs.h. */
31879
31880/* Override any GCC internal prototype to avoid an error.
31881 Use char because int might match the return type of a GCC
31882 builtin and then its argument prototype would still apply. */
31883#ifdef __cplusplus
31884extern "C"
31885#endif
31886char TIFFIsByteSwapped ();
31887int
31888main ()
31889{
31890return TIFFIsByteSwapped ();
31891 ;
31892 return 0;
31893}
31894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31897else
cristy8b350f62009-11-15 23:12:43 +000031898 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031899fi
cristy8b350f62009-11-15 23:12:43 +000031900rm -f core conftest.err conftest.$ac_objext \
31901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031902LIBS=$ac_check_lib_save_LIBS
31903fi
cristy8b350f62009-11-15 23:12:43 +000031904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031906if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 passed=`expr $passed + 1`
31908else
31909 failed=`expr $failed + 1`
31910fi
31911
cristy8b350f62009-11-15 23:12:43 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031914if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031915 $as_echo_n "(cached) " >&6
31916else
31917 ac_check_lib_save_LIBS=$LIBS
31918LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031920/* end confdefs.h. */
31921
31922/* Override any GCC internal prototype to avoid an error.
31923 Use char because int might match the return type of a GCC
31924 builtin and then its argument prototype would still apply. */
31925#ifdef __cplusplus
31926extern "C"
31927#endif
31928char TIFFReadRGBATile ();
31929int
31930main ()
31931{
31932return TIFFReadRGBATile ();
31933 ;
31934 return 0;
31935}
31936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031938 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31939else
cristy8b350f62009-11-15 23:12:43 +000031940 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031941fi
cristy8b350f62009-11-15 23:12:43 +000031942rm -f core conftest.err conftest.$ac_objext \
31943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031944LIBS=$ac_check_lib_save_LIBS
31945fi
cristy8b350f62009-11-15 23:12:43 +000031946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031948if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 passed=`expr $passed + 1`
31950else
31951 failed=`expr $failed + 1`
31952fi
31953
cristy8b350f62009-11-15 23:12:43 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031955$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031956if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031957 $as_echo_n "(cached) " >&6
31958else
31959 ac_check_lib_save_LIBS=$LIBS
31960LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031962/* end confdefs.h. */
31963
31964/* Override any GCC internal prototype to avoid an error.
31965 Use char because int might match the return type of a GCC
31966 builtin and then its argument prototype would still apply. */
31967#ifdef __cplusplus
31968extern "C"
31969#endif
31970char TIFFReadRGBAStrip ();
31971int
31972main ()
31973{
31974return TIFFReadRGBAStrip ();
31975 ;
31976 return 0;
31977}
31978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031980 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31981else
cristy8b350f62009-11-15 23:12:43 +000031982 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031983fi
cristy8b350f62009-11-15 23:12:43 +000031984rm -f core conftest.err conftest.$ac_objext \
31985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031986LIBS=$ac_check_lib_save_LIBS
31987fi
cristy8b350f62009-11-15 23:12:43 +000031988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031990if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031991 passed=`expr $passed + 1`
31992else
31993 failed=`expr $failed + 1`
31994fi
31995
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo_n "checking if TIFF package is complete... " >&6; }
31998 if test $passed -gt 0; then
31999 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032000 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32001$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032002 have_tiff='no (failed tests)'
32003 else
32004 TIFF_LIBS='-ltiff'
32005 LIBS="$TIFF_LIBS $LIBS"
32006
cristy8b350f62009-11-15 23:12:43 +000032007$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032008
cristy09b53e12011-10-14 12:47:22 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32010$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032011 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032012 for ac_header in tiffconf.h
32013do :
32014 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032015if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032016 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032017#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032018_ACEOF
32019
32020fi
32021
32022done
32023
cristy8b350f62009-11-15 23:12:43 +000032024 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032025 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32026 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32027 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032028do :
32029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 cat >>confdefs.h <<_ACEOF
32033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32034_ACEOF
32035
32036fi
32037done
32038
32039 fi
32040 else
cristy09b53e12011-10-14 12:47:22 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32042$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032043 fi
32044fi
cristy73bd4a52010-10-05 11:24:23 +000032045 if test "$have_tiff" = 'yes'; then
32046 TIFF_DELEGATE_TRUE=
32047 TIFF_DELEGATE_FALSE='#'
32048else
32049 TIFF_DELEGATE_TRUE='#'
32050 TIFF_DELEGATE_FALSE=
32051fi
32052
cristy3ed852e2009-09-05 21:47:34 +000032053
32054
32055
32056#
cristyb1860752011-03-14 00:27:46 +000032057# Check for WEBP delegate library.
32058#
32059
32060# Check whether --with-webp was given.
32061if test "${with_webp+set}" = set; then :
32062 withval=$with_webp; with_webp=$withval
32063else
32064 with_webp='yes'
32065fi
32066
32067
32068if test "$with_webp" != 'yes'; then
32069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32070fi
32071
32072have_webp='no'
32073WEBP_LIBS=''
32074if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32076$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32078$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32080$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032081 failed=0
32082 passed=0
32083 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32084if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32085 passed=`expr $passed + 1`
32086else
32087 failed=`expr $failed + 1`
32088fi
32089
32090
32091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32092$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32093if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32094 $as_echo_n "(cached) " >&6
32095else
32096 ac_check_lib_save_LIBS=$LIBS
32097LIBS="-lwebp $LIBS"
32098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32099/* end confdefs.h. */
32100
32101/* Override any GCC internal prototype to avoid an error.
32102 Use char because int might match the return type of a GCC
32103 builtin and then its argument prototype would still apply. */
32104#ifdef __cplusplus
32105extern "C"
32106#endif
32107char WebPDecodeRGB ();
32108int
32109main ()
32110{
32111return WebPDecodeRGB ();
32112 ;
32113 return 0;
32114}
32115_ACEOF
32116if ac_fn_c_try_link "$LINENO"; then :
32117 ac_cv_lib_webp_WebPDecodeRGB=yes
32118else
32119 ac_cv_lib_webp_WebPDecodeRGB=no
32120fi
32121rm -f core conftest.err conftest.$ac_objext \
32122 conftest$ac_exeext conftest.$ac_ext
32123LIBS=$ac_check_lib_save_LIBS
32124fi
32125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32126$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32127if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32128 passed=`expr $passed + 1`
32129else
32130 failed=`expr $failed + 1`
32131fi
32132
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32134$as_echo_n "checking if WEBP package is complete... " >&6; }
32135 if test $passed -gt 0; then
32136 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32138$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032139 have_webp='no (failed tests)'
32140 else
32141 WEBP_LIBS='-lwebp'
32142 LIBS="$WEBP_LIBS $LIBS"
32143
32144$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32145
cristy09b53e12011-10-14 12:47:22 +000032146 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32147$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032148 have_webp='yes'
32149 fi
32150 else
cristy09b53e12011-10-14 12:47:22 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32152$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032153 fi
32154fi
32155 if test "$have_webp" = 'yes'; then
32156 WEBP_DELEGATE_TRUE=
32157 WEBP_DELEGATE_FALSE='#'
32158else
32159 WEBP_DELEGATE_TRUE='#'
32160 WEBP_DELEGATE_FALSE=
32161fi
32162
32163
32164
32165
32166#
cristy3ed852e2009-09-05 21:47:34 +000032167# Set Windows font directory.
32168#
32169
32170# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032171if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032172 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32173else
32174 with_windows_font_dir=''
32175fi
32176
32177if test "$with_windows_font_dir" != '' ; then
32178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32179fi
32180
32181
32182#
32183# Check for WMF delegate library.
32184#
32185
32186# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032187if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032188 withval=$with_wmf; with_wmf=$withval
32189else
cristyfc3d0222012-02-07 15:05:57 +000032190 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032191fi
32192
32193
32194if test "$with_wmf" != 'yes'; then
32195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32196fi
32197
32198have_wmf='no'
32199WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032200WMF_LIBS_DEPS=''
32201OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032202if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32204$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32208$as_echo "" >&6; }
32209 have_libwmf='no'
32210 have_libwmflite='no'
32211 have_libwmf_ipa_h='no'
32212
32213 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32214"
32215if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32216 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032217fi
32218
32219
cristy03f7cf92011-12-15 01:40:41 +000032220 if test "$have_libwmf_ipa_h" = 'yes'; then
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32222$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32223if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032224 $as_echo_n "(cached) " >&6
32225else
32226 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032227LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032229/* end confdefs.h. */
32230
32231/* Override any GCC internal prototype to avoid an error.
32232 Use char because int might match the return type of a GCC
32233 builtin and then its argument prototype would still apply. */
32234#ifdef __cplusplus
32235extern "C"
32236#endif
cristy03f7cf92011-12-15 01:40:41 +000032237char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032238int
32239main ()
32240{
cristy03f7cf92011-12-15 01:40:41 +000032241return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032242 ;
32243 return 0;
32244}
32245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032246if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032247 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032248else
cristy03f7cf92011-12-15 01:40:41 +000032249 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032250fi
cristy8b350f62009-11-15 23:12:43 +000032251rm -f core conftest.err conftest.$ac_objext \
32252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032253LIBS=$ac_check_lib_save_LIBS
32254fi
cristy03f7cf92011-12-15 01:40:41 +000032255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32256$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32257if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32258 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032259fi
32260
cristy03f7cf92011-12-15 01:40:41 +000032261 if test "$have_libwmflite" = 'yes'; then
32262
32263$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32264
32265 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032266 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032267 have_wmf='yes'
32268 else
32269 WMF_LIBS_DEPS=''
32270 WMF_CONFIG_LIBS=`libwmf-config --libs`
32271 for lib in xml2 expat freetype jpeg png z; do
32272 testlib="-l${lib}"
32273 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32274 done
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32276$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32277if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32278 $as_echo_n "(cached) " >&6
32279else
32280 ac_check_lib_save_LIBS=$LIBS
32281LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32283/* end confdefs.h. */
32284
32285/* Override any GCC internal prototype to avoid an error.
32286 Use char because int might match the return type of a GCC
32287 builtin and then its argument prototype would still apply. */
32288#ifdef __cplusplus
32289extern "C"
32290#endif
32291char wmf_api_create ();
32292int
32293main ()
32294{
32295return wmf_api_create ();
32296 ;
32297 return 0;
32298}
32299_ACEOF
32300if ac_fn_c_try_link "$LINENO"; then :
32301 ac_cv_lib_wmf_wmf_api_create=yes
32302else
32303 ac_cv_lib_wmf_wmf_api_create=no
32304fi
32305rm -f core conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
32307LIBS=$ac_check_lib_save_LIBS
32308fi
32309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32310$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32311if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32312 have_libwmf='yes'
32313fi
32314
32315 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032316
cristy8b350f62009-11-15 23:12:43 +000032317$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032318
cristy03f7cf92011-12-15 01:40:41 +000032319 WMF_LIBS='-lwmf'
32320 LIBS="$WMF_LIBS $LIBS"
32321 have_wmf='yes'
32322 else
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32324$as_echo "no -- some components failed test" >&6; }
32325 have_wmf='no (failed tests)'
32326 have_wmflite='no (failed tests)'
32327 LIBS="$OLIBS"
32328 WMF_LIBS=''
32329 fi
glennrp33e524b2011-08-24 17:41:57 +000032330 fi
cristy03f7cf92011-12-15 01:40:41 +000032331 fi
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32333$as_echo_n "checking if WMF package is complete... " >&6; }
32334 if test "$have_wmf" = 'yes'; then
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32336$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032337 else
cristy03f7cf92011-12-15 01:40:41 +000032338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032340 fi
cristy3ed852e2009-09-05 21:47:34 +000032341fi
cristy73bd4a52010-10-05 11:24:23 +000032342 if test "$have_wmf" = 'yes'; then
32343 WMF_DELEGATE_TRUE=
32344 WMF_DELEGATE_FALSE='#'
32345else
32346 WMF_DELEGATE_TRUE='#'
32347 WMF_DELEGATE_FALSE=
32348fi
32349
cristy3ed852e2009-09-05 21:47:34 +000032350
32351
32352
cristy81beccd2011-10-03 18:17:24 +000032353
32354
cristy3ed852e2009-09-05 21:47:34 +000032355#
32356# Check for XML delegate library.
32357#
32358
32359# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032360if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032361 withval=$with_xml; with_xml=$withval
32362else
cristyfc3d0222012-02-07 15:05:57 +000032363 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032364fi
32365
32366
cristy81beccd2011-10-03 18:17:24 +000032367if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32369fi
32370
cristy81beccd2011-10-03 18:17:24 +000032371have_xml='no'
32372XML_LIBS=''
32373if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032374 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32375$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32377$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32379$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032380 PERSIST_LDFLAGS=$LDFLAGS
32381 PERSIST_CPPFLAGS=$CPPFLAGS
32382 xml2_config=''
32383 # Extract the first word of "xml2-config", so it can be a program name with args.
32384set dummy xml2-config; ac_word=$2
32385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32386$as_echo_n "checking for $ac_word... " >&6; }
32387if ${ac_cv_path_xml2_config+:} false; then :
32388 $as_echo_n "(cached) " >&6
32389else
32390 case $xml2_config in
32391 [\\/]* | ?:[\\/]*)
32392 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32393 ;;
32394 *)
32395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32396for as_dir in $PATH
32397do
32398 IFS=$as_save_IFS
32399 test -z "$as_dir" && as_dir=.
32400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032402 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32404 break 2
32405 fi
32406done
32407 done
32408IFS=$as_save_IFS
32409
32410 ;;
32411esac
32412fi
32413xml2_config=$ac_cv_path_xml2_config
32414if test -n "$xml2_config"; then
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32416$as_echo "$xml2_config" >&6; }
32417else
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32419$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032420fi
32421
cristy81beccd2011-10-03 18:17:24 +000032422 if test -n "$xml2_config"; then
32423 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32424 # the shared library installed under /usr/lib, whereas the package
32425 # installs itself under $prefix/libxml and $prefix/lib.
32426 xml2_prefix=`xml2-config --prefix`
32427 if test -d "${xml2_prefix}/include/libxml2"; then
32428 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32429 fi
32430 if test "${xml2_prefix}" != '/usr'; then
32431 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32432 fi
32433 fi
32434 failed=0
32435 passed=0
32436 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32437if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32438 passed=`expr $passed + 1`
32439else
32440 failed=`expr $failed + 1`
32441fi
32442
32443
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32445$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32446if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32447 $as_echo_n "(cached) " >&6
32448else
32449 ac_check_lib_save_LIBS=$LIBS
32450LIBS="-lxml2 $LIBS"
32451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452/* end confdefs.h. */
32453
32454/* Override any GCC internal prototype to avoid an error.
32455 Use char because int might match the return type of a GCC
32456 builtin and then its argument prototype would still apply. */
32457#ifdef __cplusplus
32458extern "C"
32459#endif
32460char xmlSAXVersion ();
32461int
32462main ()
32463{
32464return xmlSAXVersion ();
32465 ;
32466 return 0;
32467}
32468_ACEOF
32469if ac_fn_c_try_link "$LINENO"; then :
32470 ac_cv_lib_xml2_xmlSAXVersion=yes
32471else
32472 ac_cv_lib_xml2_xmlSAXVersion=no
32473fi
32474rm -f core conftest.err conftest.$ac_objext \
32475 conftest$ac_exeext conftest.$ac_ext
32476LIBS=$ac_check_lib_save_LIBS
32477fi
32478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32479$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32480if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32481 passed=`expr $passed + 1`
32482else
32483 failed=`expr $failed + 1`
32484fi
32485
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32487$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32488if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32489 $as_echo_n "(cached) " >&6
32490else
32491 ac_check_lib_save_LIBS=$LIBS
32492LIBS="-lxml2 $LIBS"
32493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32494/* end confdefs.h. */
32495
32496/* Override any GCC internal prototype to avoid an error.
32497 Use char because int might match the return type of a GCC
32498 builtin and then its argument prototype would still apply. */
32499#ifdef __cplusplus
32500extern "C"
32501#endif
32502char xmlParseChunk ();
32503int
32504main ()
32505{
32506return xmlParseChunk ();
32507 ;
32508 return 0;
32509}
32510_ACEOF
32511if ac_fn_c_try_link "$LINENO"; then :
32512 ac_cv_lib_xml2_xmlParseChunk=yes
32513else
32514 ac_cv_lib_xml2_xmlParseChunk=no
32515fi
32516rm -f core conftest.err conftest.$ac_objext \
32517 conftest$ac_exeext conftest.$ac_ext
32518LIBS=$ac_check_lib_save_LIBS
32519fi
32520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32521$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32522if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32523 passed=`expr $passed + 1`
32524else
32525 failed=`expr $failed + 1`
32526fi
32527
32528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32529$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32530if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32531 $as_echo_n "(cached) " >&6
32532else
32533 ac_check_lib_save_LIBS=$LIBS
32534LIBS="-lxml2 $LIBS"
32535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536/* end confdefs.h. */
32537
32538/* Override any GCC internal prototype to avoid an error.
32539 Use char because int might match the return type of a GCC
32540 builtin and then its argument prototype would still apply. */
32541#ifdef __cplusplus
32542extern "C"
32543#endif
32544char xmlCreatePushParserCtxt ();
32545int
32546main ()
32547{
32548return xmlCreatePushParserCtxt ();
32549 ;
32550 return 0;
32551}
32552_ACEOF
32553if ac_fn_c_try_link "$LINENO"; then :
32554 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32555else
32556 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32557fi
32558rm -f core conftest.err conftest.$ac_objext \
32559 conftest$ac_exeext conftest.$ac_ext
32560LIBS=$ac_check_lib_save_LIBS
32561fi
32562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32563$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32564if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32565 passed=`expr $passed + 1`
32566else
32567 failed=`expr $failed + 1`
32568fi
32569
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32571$as_echo_n "checking if XML package is complete... " >&6; }
32572 if test $passed -gt 0; then
32573 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32575$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032576 have_xml='no (failed tests)'
32577 LDFLAGS="$PERSIST_LDFLAGS"
32578 CPPFLAGS="$PERSIST_CPPFLAGS"
32579 else
32580 XML_LIBS='-lxml2'
32581 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032582
cristy8b350f62009-11-15 23:12:43 +000032583$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032584
cristy09b53e12011-10-14 12:47:22 +000032585 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32586$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032587 have_xml='yes'
32588 fi
32589 else
cristy09b53e12011-10-14 12:47:22 +000032590 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32591$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032592 fi
32593fi
cristy73bd4a52010-10-05 11:24:23 +000032594 if test "$have_xml" = 'yes'; then
32595 XML_DELEGATE_TRUE=
32596 XML_DELEGATE_FALSE='#'
32597else
32598 XML_DELEGATE_TRUE='#'
32599 XML_DELEGATE_FALSE=
32600fi
32601
cristy3ed852e2009-09-05 21:47:34 +000032602
32603
32604
32605# Substitute compiler name to build/link PerlMagick
32606#
32607
32608
32609#
32610# Configure install Paths
32611#
cristy7def36a2011-10-28 19:04:41 +000032612
cristy2a11bef2011-10-28 18:33:11 +000032613# Path to ImageMagick header files
32614INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032615INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32616DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032617case "${build_os}" in
32618 mingw* )
32619 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32620 ;;
32621esac
32622
32623cat >>confdefs.h <<_ACEOF
32624#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32625_ACEOF
32626
32627
cristy3ed852e2009-09-05 21:47:34 +000032628
32629# Subdirectory under lib to place ImageMagick lib files
32630LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32631
32632cat >>confdefs.h <<_ACEOF
32633#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32634_ACEOF
32635
32636
32637# Path to ImageMagick bin directory
32638EXECUTABLE_PATH="${BIN_DIR}"
32639DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32640case "${build_os}" in
32641 mingw* )
32642 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32643 ;;
32644esac
32645
32646cat >>confdefs.h <<_ACEOF
32647#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32648_ACEOF
32649
32650
32651
32652# Path to ImageMagick lib
32653LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32654DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32655case "${build_os}" in
32656 mingw* )
32657 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32658 ;;
32659esac
32660
32661cat >>confdefs.h <<_ACEOF
32662#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32663_ACEOF
32664
32665
32666
cristy3ed852e2009-09-05 21:47:34 +000032667#
32668# Subdirectory under lib to place ImageMagick coder module files
32669CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32670
32671cat >>confdefs.h <<_ACEOF
32672#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32673_ACEOF
32674
32675CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32676DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32677case "${build_os}" in
32678 mingw* )
32679 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32680 ;;
32681esac
32682
32683cat >>confdefs.h <<_ACEOF
32684#define CODER_PATH "$DEFINE_CODER_PATH"
32685_ACEOF
32686
32687
32688
32689#
32690# Subdirectory under lib to place ImageMagick filter module files
32691FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32692
32693cat >>confdefs.h <<_ACEOF
32694#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32695_ACEOF
32696
32697FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32698DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32699case "${build_os}" in
32700 mingw* )
32701 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32702 ;;
32703esac
32704
32705cat >>confdefs.h <<_ACEOF
32706#define FILTER_PATH "$DEFINE_FILTER_PATH"
32707_ACEOF
32708
32709
32710
32711#
32712# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032713DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032714DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32715DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032716case "${build_os}" in
32717 mingw* )
32718 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32719 ;;
32720esac
32721
32722cat >>confdefs.h <<_ACEOF
32723#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32724_ACEOF
32725
32726
32727
cristy2a11bef2011-10-28 18:33:11 +000032728# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032729CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032730
32731cat >>confdefs.h <<_ACEOF
32732#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32733_ACEOF
32734
cristy7def36a2011-10-28 19:04:41 +000032735CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032736DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32737case "${build_os}" in
32738 mingw* )
32739 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32740 ;;
32741esac
32742
32743cat >>confdefs.h <<_ACEOF
32744#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32745_ACEOF
32746
32747
32748
cristy2a11bef2011-10-28 18:33:11 +000032749# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032750SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032751
32752cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032753#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032754_ACEOF
32755
cristy670aa3c2011-11-03 00:54:00 +000032756SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032757DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032758case "${build_os}" in
32759 mingw* )
cristy4f820712011-04-01 12:35:43 +000032760 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032761 ;;
32762esac
32763
32764cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032765#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032766_ACEOF
32767
32768
32769
cristy408ebcd2011-11-14 01:36:57 +000032770# Subdirectory to place architecture-dependent configuration files
32771SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032772
32773cat >>confdefs.h <<_ACEOF
32774#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32775_ACEOF
32776
cristy408ebcd2011-11-14 01:36:57 +000032777SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32778DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032779case "${build_os}" in
32780 mingw* )
32781 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32782 ;;
32783esac
32784
32785cat >>confdefs.h <<_ACEOF
32786#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32787_ACEOF
32788
32789
32790
cristy3ed852e2009-09-05 21:47:34 +000032791#
32792# program_transform_name is formed for use in a Makefile, so create a
32793# modified version for use in a shell script.
32794configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32795
32796# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032801{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32802$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032803AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032804BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032805BZIPDelegateDefault='bzip2'
32806BrowseDelegateDefault='xdg-open'
32807CGMDecodeDelegateDefault='ralcgm'
32808CatDelegateDefault='cat'
32809DNGDecodeDelegateDefault='ufraw-batch'
32810GVCDecodeDelegateDefault='dot'
32811DVIDecodeDelegateDefault='dvips'
32812EchoDelegateDefault='echo'
32813EditorDelegateDefault='xterm'
32814FIGDecodeDelegateDefault='fig2dev'
32815ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32816DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32817MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32818GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032819HPGLDecodeDelegateDefault='hp2xx'
32820HTMLDecodeDelegateDefault='html2ps'
32821ILBMDecodeDelegateDefault='ilbmtoppm'
32822ILBMEncodeDelegateDefault='ppmtoilbm'
32823LPDelegateDefault='lp'
32824LPRDelegateDefault='lpr'
32825LZWDecodeDelegateDefault='uncompress'
32826LZWEncodeDelegateDefault='compress'
32827LaunchDelegateDefault='gimp'
32828MANDelegateDefault='groff'
32829MPEGDecodeDelegateDefault='ffmpeg'
32830MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032831MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032832MVDelegateDefault='mv'
32833PCLDelegateDefault='pcl6'
32834PGPDecodeDelegateDefault='pgpv'
32835POVDelegateDefault='povray'
32836if test "$native_win32_build" = 'yes'; then
32837 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032838elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032839 PSDelegateDefault='gsc'
32840else
32841 PSDelegateDefault='gs'
32842fi
32843RLEEncodeDelegateDefault='rawtorle'
32844RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032845RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032846SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032847SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032848TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032849UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032850WMFDecodeDelegateDefault='wmf2eps'
32851WWWDecodeDelegateDefault='curl'
32852XPSDelegateDefault='gxps'
32853ZipDelegateDefault='gzip'
32854
32855# Search for delegates
32856# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32857set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032860if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032861 $as_echo_n "(cached) " >&6
32862else
32863 case $AutotraceDecodeDelegate in
32864 [\\/]* | ?:[\\/]*)
32865 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32866 ;;
32867 *)
32868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32869for as_dir in $PATH
32870do
32871 IFS=$as_save_IFS
32872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032875 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877 break 2
32878 fi
32879done
cristy8b350f62009-11-15 23:12:43 +000032880 done
cristy3ed852e2009-09-05 21:47:34 +000032881IFS=$as_save_IFS
32882
32883 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32884 ;;
32885esac
32886fi
32887AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32888if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo "$AutotraceDecodeDelegate" >&6; }
32891else
cristy8b350f62009-11-15 23:12:43 +000032892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo "no" >&6; }
32894fi
32895
32896
cristy3ed852e2009-09-05 21:47:34 +000032897# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32898set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032901if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032902 $as_echo_n "(cached) " >&6
32903else
32904 case $BlenderDecodeDelegate in
32905 [\\/]* | ?:[\\/]*)
32906 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32907 ;;
32908 *)
32909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32910for as_dir in $PATH
32911do
32912 IFS=$as_save_IFS
32913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032916 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918 break 2
32919 fi
32920done
cristy8b350f62009-11-15 23:12:43 +000032921 done
cristy3ed852e2009-09-05 21:47:34 +000032922IFS=$as_save_IFS
32923
32924 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32925 ;;
32926esac
32927fi
32928BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32929if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "$BlenderDecodeDelegate" >&6; }
32932else
cristy8b350f62009-11-15 23:12:43 +000032933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo "no" >&6; }
32935fi
32936
32937
32938# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32939set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032942if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032943 $as_echo_n "(cached) " >&6
32944else
32945 case $BZIPDelegate in
32946 [\\/]* | ?:[\\/]*)
32947 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32948 ;;
32949 *)
32950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32951for as_dir in $PATH
32952do
32953 IFS=$as_save_IFS
32954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032957 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959 break 2
32960 fi
32961done
cristy8b350f62009-11-15 23:12:43 +000032962 done
cristy3ed852e2009-09-05 21:47:34 +000032963IFS=$as_save_IFS
32964
32965 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32966 ;;
32967esac
32968fi
32969BZIPDelegate=$ac_cv_path_BZIPDelegate
32970if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo "$BZIPDelegate" >&6; }
32973else
cristy8b350f62009-11-15 23:12:43 +000032974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975$as_echo "no" >&6; }
32976fi
32977
32978
32979# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32980set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032983if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032984 $as_echo_n "(cached) " >&6
32985else
32986 case $BrowseDelegate in
32987 [\\/]* | ?:[\\/]*)
32988 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32989 ;;
32990 *)
32991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32992for as_dir in $PATH
32993do
32994 IFS=$as_save_IFS
32995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032998 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000 break 2
33001 fi
33002done
cristy8b350f62009-11-15 23:12:43 +000033003 done
cristy3ed852e2009-09-05 21:47:34 +000033004IFS=$as_save_IFS
33005
33006 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
33007 ;;
33008esac
33009fi
33010BrowseDelegate=$ac_cv_path_BrowseDelegate
33011if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo "$BrowseDelegate" >&6; }
33014else
cristy8b350f62009-11-15 23:12:43 +000033015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016$as_echo "no" >&6; }
33017fi
33018
33019
33020# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33021set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033024if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033025 $as_echo_n "(cached) " >&6
33026else
33027 case $CGMDecodeDelegate in
33028 [\\/]* | ?:[\\/]*)
33029 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33030 ;;
33031 *)
33032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33033for as_dir in $PATH
33034do
33035 IFS=$as_save_IFS
33036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033039 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041 break 2
33042 fi
33043done
cristy8b350f62009-11-15 23:12:43 +000033044 done
cristy3ed852e2009-09-05 21:47:34 +000033045IFS=$as_save_IFS
33046
33047 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33048 ;;
33049esac
33050fi
33051CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33052if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo "$CGMDecodeDelegate" >&6; }
33055else
cristy8b350f62009-11-15 23:12:43 +000033056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057$as_echo "no" >&6; }
33058fi
33059
33060
33061# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33062set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033065if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033066 $as_echo_n "(cached) " >&6
33067else
33068 case $CatDelegate in
33069 [\\/]* | ?:[\\/]*)
33070 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33071 ;;
33072 *)
33073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33074for as_dir in $PATH
33075do
33076 IFS=$as_save_IFS
33077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033080 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082 break 2
33083 fi
33084done
cristy8b350f62009-11-15 23:12:43 +000033085 done
cristy3ed852e2009-09-05 21:47:34 +000033086IFS=$as_save_IFS
33087
33088 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33089 ;;
33090esac
33091fi
33092CatDelegate=$ac_cv_path_CatDelegate
33093if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "$CatDelegate" >&6; }
33096else
cristy8b350f62009-11-15 23:12:43 +000033097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo "no" >&6; }
33099fi
33100
33101
33102# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33103set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033106if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033107 $as_echo_n "(cached) " >&6
33108else
33109 case $DNGDecodeDelegate in
33110 [\\/]* | ?:[\\/]*)
33111 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33112 ;;
33113 *)
33114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33115for as_dir in $PATH
33116do
33117 IFS=$as_save_IFS
33118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033121 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123 break 2
33124 fi
33125done
cristy8b350f62009-11-15 23:12:43 +000033126 done
cristy3ed852e2009-09-05 21:47:34 +000033127IFS=$as_save_IFS
33128
33129 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33130 ;;
33131esac
33132fi
33133DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33134if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo "$DNGDecodeDelegate" >&6; }
33137else
cristy8b350f62009-11-15 23:12:43 +000033138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139$as_echo "no" >&6; }
33140fi
33141
33142
33143# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33144set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033147if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033148 $as_echo_n "(cached) " >&6
33149else
33150 case $GVCDecodeDelegate in
33151 [\\/]* | ?:[\\/]*)
33152 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33153 ;;
33154 *)
33155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33156for as_dir in $PATH
33157do
33158 IFS=$as_save_IFS
33159 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033160 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033162 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164 break 2
33165 fi
33166done
cristy8b350f62009-11-15 23:12:43 +000033167 done
cristy3ed852e2009-09-05 21:47:34 +000033168IFS=$as_save_IFS
33169
33170 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33171 ;;
33172esac
33173fi
33174GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33175if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo "$GVCDecodeDelegate" >&6; }
33178else
cristy8b350f62009-11-15 23:12:43 +000033179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180$as_echo "no" >&6; }
33181fi
33182
33183
33184# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33185set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033188if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033189 $as_echo_n "(cached) " >&6
33190else
33191 case $DVIDecodeDelegate in
33192 [\\/]* | ?:[\\/]*)
33193 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33194 ;;
33195 *)
33196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33197for as_dir in $PATH
33198do
33199 IFS=$as_save_IFS
33200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033203 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205 break 2
33206 fi
33207done
cristy8b350f62009-11-15 23:12:43 +000033208 done
cristy3ed852e2009-09-05 21:47:34 +000033209IFS=$as_save_IFS
33210
33211 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33212 ;;
33213esac
33214fi
33215DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33216if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033218$as_echo "$DVIDecodeDelegate" >&6; }
33219else
cristy8b350f62009-11-15 23:12:43 +000033220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221$as_echo "no" >&6; }
33222fi
33223
33224
33225# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33226set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033229if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033230 $as_echo_n "(cached) " >&6
33231else
33232 case $EchoDelegate in
33233 [\\/]* | ?:[\\/]*)
33234 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33235 ;;
33236 *)
33237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33238for as_dir in $PATH
33239do
33240 IFS=$as_save_IFS
33241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033244 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246 break 2
33247 fi
33248done
cristy8b350f62009-11-15 23:12:43 +000033249 done
cristy3ed852e2009-09-05 21:47:34 +000033250IFS=$as_save_IFS
33251
33252 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33253 ;;
33254esac
33255fi
33256EchoDelegate=$ac_cv_path_EchoDelegate
33257if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033259$as_echo "$EchoDelegate" >&6; }
33260else
cristy8b350f62009-11-15 23:12:43 +000033261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262$as_echo "no" >&6; }
33263fi
33264
33265
33266# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33267set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033270if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033271 $as_echo_n "(cached) " >&6
33272else
33273 case $EditorDelegate in
33274 [\\/]* | ?:[\\/]*)
33275 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33276 ;;
33277 *)
33278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33279for as_dir in $PATH
33280do
33281 IFS=$as_save_IFS
33282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033285 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287 break 2
33288 fi
33289done
cristy8b350f62009-11-15 23:12:43 +000033290 done
cristy3ed852e2009-09-05 21:47:34 +000033291IFS=$as_save_IFS
33292
33293 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33294 ;;
33295esac
33296fi
33297EditorDelegate=$ac_cv_path_EditorDelegate
33298if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033300$as_echo "$EditorDelegate" >&6; }
33301else
cristy8b350f62009-11-15 23:12:43 +000033302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303$as_echo "no" >&6; }
33304fi
33305
33306
33307# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33308set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033311if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033312 $as_echo_n "(cached) " >&6
33313else
33314 case $FIGDecodeDelegate in
33315 [\\/]* | ?:[\\/]*)
33316 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33317 ;;
33318 *)
33319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33320for as_dir in $PATH
33321do
33322 IFS=$as_save_IFS
33323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033326 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328 break 2
33329 fi
33330done
cristy8b350f62009-11-15 23:12:43 +000033331 done
cristy3ed852e2009-09-05 21:47:34 +000033332IFS=$as_save_IFS
33333
33334 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33335 ;;
33336esac
33337fi
33338FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33339if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033341$as_echo "$FIGDecodeDelegate" >&6; }
33342else
cristy8b350f62009-11-15 23:12:43 +000033343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344$as_echo "no" >&6; }
33345fi
33346
33347
33348# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33349set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033352if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033353 $as_echo_n "(cached) " >&6
33354else
33355 case $ConvertDelegate in
33356 [\\/]* | ?:[\\/]*)
33357 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33358 ;;
33359 *)
33360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361for as_dir in $PATH
33362do
33363 IFS=$as_save_IFS
33364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033367 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369 break 2
33370 fi
33371done
cristy8b350f62009-11-15 23:12:43 +000033372 done
cristy3ed852e2009-09-05 21:47:34 +000033373IFS=$as_save_IFS
33374
33375 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33376 ;;
33377esac
33378fi
33379ConvertDelegate=$ac_cv_path_ConvertDelegate
33380if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033382$as_echo "$ConvertDelegate" >&6; }
33383else
cristy8b350f62009-11-15 23:12:43 +000033384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385$as_echo "no" >&6; }
33386fi
33387
33388
33389# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33390set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033393if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033394 $as_echo_n "(cached) " >&6
33395else
33396 case $DisplayDelegate in
33397 [\\/]* | ?:[\\/]*)
33398 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33399 ;;
33400 *)
33401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33402for as_dir in $PATH
33403do
33404 IFS=$as_save_IFS
33405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033408 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410 break 2
33411 fi
33412done
cristy8b350f62009-11-15 23:12:43 +000033413 done
cristy3ed852e2009-09-05 21:47:34 +000033414IFS=$as_save_IFS
33415
33416 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33417 ;;
33418esac
33419fi
33420DisplayDelegate=$ac_cv_path_DisplayDelegate
33421if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033423$as_echo "$DisplayDelegate" >&6; }
33424else
cristy8b350f62009-11-15 23:12:43 +000033425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426$as_echo "no" >&6; }
33427fi
33428
33429
33430# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33431set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033434if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033435 $as_echo_n "(cached) " >&6
33436else
33437 case $MogrifyDelegate in
33438 [\\/]* | ?:[\\/]*)
33439 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33440 ;;
33441 *)
33442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33443for as_dir in $PATH
33444do
33445 IFS=$as_save_IFS
33446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033449 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451 break 2
33452 fi
33453done
cristy8b350f62009-11-15 23:12:43 +000033454 done
cristy3ed852e2009-09-05 21:47:34 +000033455IFS=$as_save_IFS
33456
33457 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33458 ;;
33459esac
33460fi
33461MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33462if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033464$as_echo "$MogrifyDelegate" >&6; }
33465else
cristy8b350f62009-11-15 23:12:43 +000033466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033467$as_echo "no" >&6; }
33468fi
33469
33470
33471# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33472set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033475if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033476 $as_echo_n "(cached) " >&6
33477else
33478 case $GnuplotDecodeDelegate in
33479 [\\/]* | ?:[\\/]*)
33480 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33481 ;;
33482 *)
33483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33484for as_dir in $PATH
33485do
33486 IFS=$as_save_IFS
33487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033490 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492 break 2
33493 fi
33494done
cristy8b350f62009-11-15 23:12:43 +000033495 done
cristy3ed852e2009-09-05 21:47:34 +000033496IFS=$as_save_IFS
33497
33498 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33499 ;;
33500esac
33501fi
33502GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33503if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505$as_echo "$GnuplotDecodeDelegate" >&6; }
33506else
cristy8b350f62009-11-15 23:12:43 +000033507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508$as_echo "no" >&6; }
33509fi
33510
33511
cristy3ed852e2009-09-05 21:47:34 +000033512# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33513set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033516if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033517 $as_echo_n "(cached) " >&6
33518else
33519 case $HPGLDecodeDelegate in
33520 [\\/]* | ?:[\\/]*)
33521 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33522 ;;
33523 *)
33524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33525for as_dir in $PATH
33526do
33527 IFS=$as_save_IFS
33528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033531 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533 break 2
33534 fi
33535done
cristy8b350f62009-11-15 23:12:43 +000033536 done
cristy3ed852e2009-09-05 21:47:34 +000033537IFS=$as_save_IFS
33538
33539 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33540 ;;
33541esac
33542fi
33543HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33544if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033546$as_echo "$HPGLDecodeDelegate" >&6; }
33547else
cristy8b350f62009-11-15 23:12:43 +000033548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549$as_echo "no" >&6; }
33550fi
33551
33552
33553# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33554set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033557if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033558 $as_echo_n "(cached) " >&6
33559else
33560 case $HTMLDecodeDelegate in
33561 [\\/]* | ?:[\\/]*)
33562 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33563 ;;
33564 *)
33565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33566for as_dir in $PATH
33567do
33568 IFS=$as_save_IFS
33569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033570 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033572 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574 break 2
33575 fi
33576done
cristy8b350f62009-11-15 23:12:43 +000033577 done
cristy3ed852e2009-09-05 21:47:34 +000033578IFS=$as_save_IFS
33579
33580 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33581 ;;
33582esac
33583fi
33584HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33585if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587$as_echo "$HTMLDecodeDelegate" >&6; }
33588else
cristy8b350f62009-11-15 23:12:43 +000033589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590$as_echo "no" >&6; }
33591fi
33592
33593
33594# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33595set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033598if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033599 $as_echo_n "(cached) " >&6
33600else
33601 case $ILBMDecodeDelegate in
33602 [\\/]* | ?:[\\/]*)
33603 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33604 ;;
33605 *)
33606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33607for as_dir in $PATH
33608do
33609 IFS=$as_save_IFS
33610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033613 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615 break 2
33616 fi
33617done
cristy8b350f62009-11-15 23:12:43 +000033618 done
cristy3ed852e2009-09-05 21:47:34 +000033619IFS=$as_save_IFS
33620
33621 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33622 ;;
33623esac
33624fi
33625ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33626if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628$as_echo "$ILBMDecodeDelegate" >&6; }
33629else
cristy8b350f62009-11-15 23:12:43 +000033630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631$as_echo "no" >&6; }
33632fi
33633
33634
33635# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33636set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033639if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033640 $as_echo_n "(cached) " >&6
33641else
33642 case $ILBMEncodeDelegate in
33643 [\\/]* | ?:[\\/]*)
33644 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33645 ;;
33646 *)
33647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33648for as_dir in $PATH
33649do
33650 IFS=$as_save_IFS
33651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033654 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656 break 2
33657 fi
33658done
cristy8b350f62009-11-15 23:12:43 +000033659 done
cristy3ed852e2009-09-05 21:47:34 +000033660IFS=$as_save_IFS
33661
33662 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33663 ;;
33664esac
33665fi
33666ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33667if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669$as_echo "$ILBMEncodeDelegate" >&6; }
33670else
cristy8b350f62009-11-15 23:12:43 +000033671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672$as_echo "no" >&6; }
33673fi
33674
33675
33676# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33677set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033680if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033681 $as_echo_n "(cached) " >&6
33682else
33683 case $LPDelegate in
33684 [\\/]* | ?:[\\/]*)
33685 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33686 ;;
33687 *)
33688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33689for as_dir in $PATH
33690do
33691 IFS=$as_save_IFS
33692 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033695 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697 break 2
33698 fi
33699done
cristy8b350f62009-11-15 23:12:43 +000033700 done
cristy3ed852e2009-09-05 21:47:34 +000033701IFS=$as_save_IFS
33702
33703 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33704 ;;
33705esac
33706fi
33707LPDelegate=$ac_cv_path_LPDelegate
33708if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033710$as_echo "$LPDelegate" >&6; }
33711else
cristy8b350f62009-11-15 23:12:43 +000033712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033713$as_echo "no" >&6; }
33714fi
33715
33716
33717# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33718set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033721if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033722 $as_echo_n "(cached) " >&6
33723else
33724 case $LPRDelegate in
33725 [\\/]* | ?:[\\/]*)
33726 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33727 ;;
33728 *)
33729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33730for as_dir in $PATH
33731do
33732 IFS=$as_save_IFS
33733 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033736 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738 break 2
33739 fi
33740done
cristy8b350f62009-11-15 23:12:43 +000033741 done
cristy3ed852e2009-09-05 21:47:34 +000033742IFS=$as_save_IFS
33743
33744 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33745 ;;
33746esac
33747fi
33748LPRDelegate=$ac_cv_path_LPRDelegate
33749if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033751$as_echo "$LPRDelegate" >&6; }
33752else
cristy8b350f62009-11-15 23:12:43 +000033753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754$as_echo "no" >&6; }
33755fi
33756
33757
33758# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33759set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033762if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033763 $as_echo_n "(cached) " >&6
33764else
33765 case $LZWDecodeDelegate in
33766 [\\/]* | ?:[\\/]*)
33767 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33768 ;;
33769 *)
33770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33771for as_dir in $PATH
33772do
33773 IFS=$as_save_IFS
33774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033777 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779 break 2
33780 fi
33781done
cristy8b350f62009-11-15 23:12:43 +000033782 done
cristy3ed852e2009-09-05 21:47:34 +000033783IFS=$as_save_IFS
33784
33785 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33786 ;;
33787esac
33788fi
33789LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33790if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "$LZWDecodeDelegate" >&6; }
33793else
cristy8b350f62009-11-15 23:12:43 +000033794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795$as_echo "no" >&6; }
33796fi
33797
33798
33799# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33800set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033803if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033804 $as_echo_n "(cached) " >&6
33805else
33806 case $LZWEncodeDelegate in
33807 [\\/]* | ?:[\\/]*)
33808 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33809 ;;
33810 *)
33811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33812for as_dir in $PATH
33813do
33814 IFS=$as_save_IFS
33815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033818 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820 break 2
33821 fi
33822done
cristy8b350f62009-11-15 23:12:43 +000033823 done
cristy3ed852e2009-09-05 21:47:34 +000033824IFS=$as_save_IFS
33825
33826 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33827 ;;
33828esac
33829fi
33830LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33831if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "$LZWEncodeDelegate" >&6; }
33834else
cristy8b350f62009-11-15 23:12:43 +000033835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "no" >&6; }
33837fi
33838
33839
33840# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33841set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033844if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033845 $as_echo_n "(cached) " >&6
33846else
33847 case $LaunchDelegate in
33848 [\\/]* | ?:[\\/]*)
33849 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33850 ;;
33851 *)
33852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33853for as_dir in $PATH
33854do
33855 IFS=$as_save_IFS
33856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033859 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861 break 2
33862 fi
33863done
cristy8b350f62009-11-15 23:12:43 +000033864 done
cristy3ed852e2009-09-05 21:47:34 +000033865IFS=$as_save_IFS
33866
33867 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33868 ;;
33869esac
33870fi
33871LaunchDelegate=$ac_cv_path_LaunchDelegate
33872if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "$LaunchDelegate" >&6; }
33875else
cristy8b350f62009-11-15 23:12:43 +000033876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877$as_echo "no" >&6; }
33878fi
33879
33880
33881# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33882set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033885if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033886 $as_echo_n "(cached) " >&6
33887else
33888 case $MANDelegate in
33889 [\\/]* | ?:[\\/]*)
33890 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33891 ;;
33892 *)
33893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33894for as_dir in $PATH
33895do
33896 IFS=$as_save_IFS
33897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033900 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902 break 2
33903 fi
33904done
cristy8b350f62009-11-15 23:12:43 +000033905 done
cristy3ed852e2009-09-05 21:47:34 +000033906IFS=$as_save_IFS
33907
33908 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33909 ;;
33910esac
33911fi
33912MANDelegate=$ac_cv_path_MANDelegate
33913if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "$MANDelegate" >&6; }
33916else
cristy8b350f62009-11-15 23:12:43 +000033917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918$as_echo "no" >&6; }
33919fi
33920
33921
33922# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33923set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033926if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033927 $as_echo_n "(cached) " >&6
33928else
33929 case $MPEGDecodeDelegate in
33930 [\\/]* | ?:[\\/]*)
33931 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33932 ;;
33933 *)
33934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33935for as_dir in $PATH
33936do
33937 IFS=$as_save_IFS
33938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033941 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943 break 2
33944 fi
33945done
cristy8b350f62009-11-15 23:12:43 +000033946 done
cristy3ed852e2009-09-05 21:47:34 +000033947IFS=$as_save_IFS
33948
33949 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33950 ;;
33951esac
33952fi
33953MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33954if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo "$MPEGDecodeDelegate" >&6; }
33957else
cristy8b350f62009-11-15 23:12:43 +000033958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033959$as_echo "no" >&6; }
33960fi
33961
33962
33963# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33964set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033967if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033968 $as_echo_n "(cached) " >&6
33969else
33970 case $MPEGEncodeDelegate in
33971 [\\/]* | ?:[\\/]*)
33972 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33973 ;;
33974 *)
33975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33976for as_dir in $PATH
33977do
33978 IFS=$as_save_IFS
33979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033982 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984 break 2
33985 fi
33986done
cristy8b350f62009-11-15 23:12:43 +000033987 done
cristy3ed852e2009-09-05 21:47:34 +000033988IFS=$as_save_IFS
33989
33990 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33991 ;;
33992esac
33993fi
33994MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33995if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997$as_echo "$MPEGEncodeDelegate" >&6; }
33998else
cristy8b350f62009-11-15 23:12:43 +000033999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034000$as_echo "no" >&6; }
34001fi
34002
34003
cristy935c86e2010-06-05 23:50:07 +000034004# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34005set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034008if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034009 $as_echo_n "(cached) " >&6
34010else
34011 case $MrSIDDecodeDelegate in
34012 [\\/]* | ?:[\\/]*)
34013 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34014 ;;
34015 *)
34016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34017for as_dir in $PATH
34018do
34019 IFS=$as_save_IFS
34020 test -z "$as_dir" && as_dir=.
34021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034023 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34025 break 2
34026 fi
34027done
34028 done
34029IFS=$as_save_IFS
34030
34031 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34032 ;;
34033esac
34034fi
34035MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34036if test -n "$MrSIDDecodeDelegate"; then
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34038$as_echo "$MrSIDDecodeDelegate" >&6; }
34039else
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34041$as_echo "no" >&6; }
34042fi
34043
34044
cristy3ed852e2009-09-05 21:47:34 +000034045# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34046set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034049if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034050 $as_echo_n "(cached) " >&6
34051else
34052 case $MVDelegate in
34053 [\\/]* | ?:[\\/]*)
34054 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34055 ;;
34056 *)
34057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34058for as_dir in $PATH
34059do
34060 IFS=$as_save_IFS
34061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034064 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066 break 2
34067 fi
34068done
cristy8b350f62009-11-15 23:12:43 +000034069 done
cristy3ed852e2009-09-05 21:47:34 +000034070IFS=$as_save_IFS
34071
34072 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34073 ;;
34074esac
34075fi
34076MVDelegate=$ac_cv_path_MVDelegate
34077if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034079$as_echo "$MVDelegate" >&6; }
34080else
cristy8b350f62009-11-15 23:12:43 +000034081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034082$as_echo "no" >&6; }
34083fi
34084
34085
34086# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34087set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034090if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034091 $as_echo_n "(cached) " >&6
34092else
34093 case $PCLDelegate in
34094 [\\/]* | ?:[\\/]*)
34095 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34096 ;;
34097 *)
34098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34099for as_dir in $PATH
34100do
34101 IFS=$as_save_IFS
34102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034105 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107 break 2
34108 fi
34109done
cristy8b350f62009-11-15 23:12:43 +000034110 done
cristy3ed852e2009-09-05 21:47:34 +000034111IFS=$as_save_IFS
34112
34113 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34114 ;;
34115esac
34116fi
34117PCLDelegate=$ac_cv_path_PCLDelegate
34118if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034120$as_echo "$PCLDelegate" >&6; }
34121else
cristy8b350f62009-11-15 23:12:43 +000034122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123$as_echo "no" >&6; }
34124fi
34125
34126
34127# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34128set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034131if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034132 $as_echo_n "(cached) " >&6
34133else
34134 case $PGPDecodeDelegate in
34135 [\\/]* | ?:[\\/]*)
34136 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34137 ;;
34138 *)
34139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34140for as_dir in $PATH
34141do
34142 IFS=$as_save_IFS
34143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034146 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148 break 2
34149 fi
34150done
cristy8b350f62009-11-15 23:12:43 +000034151 done
cristy3ed852e2009-09-05 21:47:34 +000034152IFS=$as_save_IFS
34153
34154 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34155 ;;
34156esac
34157fi
34158PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34159if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo "$PGPDecodeDelegate" >&6; }
34162else
cristy8b350f62009-11-15 23:12:43 +000034163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034164$as_echo "no" >&6; }
34165fi
34166
34167
34168# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34169set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034172if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034173 $as_echo_n "(cached) " >&6
34174else
34175 case $POVDelegate in
34176 [\\/]* | ?:[\\/]*)
34177 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34178 ;;
34179 *)
34180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34181for as_dir in $PATH
34182do
34183 IFS=$as_save_IFS
34184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034187 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189 break 2
34190 fi
34191done
cristy8b350f62009-11-15 23:12:43 +000034192 done
cristy3ed852e2009-09-05 21:47:34 +000034193IFS=$as_save_IFS
34194
34195 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34196 ;;
34197esac
34198fi
34199POVDelegate=$ac_cv_path_POVDelegate
34200if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo "$POVDelegate" >&6; }
34203else
cristy8b350f62009-11-15 23:12:43 +000034204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo "no" >&6; }
34206fi
34207
34208
34209for ac_prog in gsx gsc "$PSDelegateDefault"
34210do
34211 # Extract the first word of "$ac_prog", so it can be a program name with args.
34212set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034215if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034216 $as_echo_n "(cached) " >&6
34217else
34218 case $PSDelegate in
34219 [\\/]* | ?:[\\/]*)
34220 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34221 ;;
34222 *)
34223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34224for as_dir in $PATH
34225do
34226 IFS=$as_save_IFS
34227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034230 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232 break 2
34233 fi
34234done
cristy8b350f62009-11-15 23:12:43 +000034235 done
cristy3ed852e2009-09-05 21:47:34 +000034236IFS=$as_save_IFS
34237
34238 ;;
34239esac
34240fi
34241PSDelegate=$ac_cv_path_PSDelegate
34242if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244$as_echo "$PSDelegate" >&6; }
34245else
cristy8b350f62009-11-15 23:12:43 +000034246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034247$as_echo "no" >&6; }
34248fi
34249
34250
34251 test -n "$PSDelegate" && break
34252done
34253test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34254
34255# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34256set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034259if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034260 $as_echo_n "(cached) " >&6
34261else
34262 case $RLEEncodeDelegate in
34263 [\\/]* | ?:[\\/]*)
34264 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34265 ;;
34266 *)
34267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34268for as_dir in $PATH
34269do
34270 IFS=$as_save_IFS
34271 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034274 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276 break 2
34277 fi
34278done
cristy8b350f62009-11-15 23:12:43 +000034279 done
cristy3ed852e2009-09-05 21:47:34 +000034280IFS=$as_save_IFS
34281
34282 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34283 ;;
34284esac
34285fi
34286RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34287if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289$as_echo "$RLEEncodeDelegate" >&6; }
34290else
cristy8b350f62009-11-15 23:12:43 +000034291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034292$as_echo "no" >&6; }
34293fi
34294
34295
34296# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34297set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034300if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034301 $as_echo_n "(cached) " >&6
34302else
34303 case $RMDelegate in
34304 [\\/]* | ?:[\\/]*)
34305 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34306 ;;
34307 *)
34308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34309for as_dir in $PATH
34310do
34311 IFS=$as_save_IFS
34312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034315 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317 break 2
34318 fi
34319done
cristy8b350f62009-11-15 23:12:43 +000034320 done
cristy3ed852e2009-09-05 21:47:34 +000034321IFS=$as_save_IFS
34322
34323 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34324 ;;
34325esac
34326fi
34327RMDelegate=$ac_cv_path_RMDelegate
34328if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034330$as_echo "$RMDelegate" >&6; }
34331else
cristy8b350f62009-11-15 23:12:43 +000034332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333$as_echo "no" >&6; }
34334fi
34335
34336
cristy4689cf02010-02-17 21:15:45 +000034337# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34338set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34340$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034341if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034342 $as_echo_n "(cached) " >&6
34343else
34344 case $RSVGDecodeDelegate in
34345 [\\/]* | ?:[\\/]*)
34346 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34347 ;;
34348 *)
34349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34350for as_dir in $PATH
34351do
34352 IFS=$as_save_IFS
34353 test -z "$as_dir" && as_dir=.
34354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034356 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34358 break 2
34359 fi
34360done
34361 done
34362IFS=$as_save_IFS
34363
34364 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34365 ;;
34366esac
34367fi
34368RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34369if test -n "$RSVGDecodeDelegate"; then
34370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34371$as_echo "$RSVGDecodeDelegate" >&6; }
34372else
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374$as_echo "no" >&6; }
34375fi
34376
34377
cristy3ed852e2009-09-05 21:47:34 +000034378# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34379set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034382if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034383 $as_echo_n "(cached) " >&6
34384else
34385 case $SCANDecodeDelegate in
34386 [\\/]* | ?:[\\/]*)
34387 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34388 ;;
34389 *)
34390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34391for as_dir in $PATH
34392do
34393 IFS=$as_save_IFS
34394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034397 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399 break 2
34400 fi
34401done
cristy8b350f62009-11-15 23:12:43 +000034402 done
cristy3ed852e2009-09-05 21:47:34 +000034403IFS=$as_save_IFS
34404
34405 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34406 ;;
34407esac
34408fi
34409SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34410if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo "$SCANDecodeDelegate" >&6; }
34413else
cristy8b350f62009-11-15 23:12:43 +000034414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034415$as_echo "no" >&6; }
34416fi
34417
34418
cristyec6934f2012-08-14 18:38:40 +000034419# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34420set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34422$as_echo_n "checking for $ac_word... " >&6; }
34423if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34424 $as_echo_n "(cached) " >&6
34425else
34426 case $SVGDecodeDelegate in
34427 [\\/]* | ?:[\\/]*)
34428 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34429 ;;
34430 *)
34431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432for as_dir in $PATH
34433do
34434 IFS=$as_save_IFS
34435 test -z "$as_dir" && as_dir=.
34436 for ac_exec_ext in '' $ac_executable_extensions; do
34437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34438 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34440 break 2
34441 fi
34442done
34443 done
34444IFS=$as_save_IFS
34445
34446 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34447 ;;
34448esac
34449fi
34450SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34451if test -n "$SVGDecodeDelegate"; then
34452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34453$as_echo "$SVGDecodeDelegate" >&6; }
34454else
34455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34456$as_echo "no" >&6; }
34457fi
34458
34459
cristy3ed852e2009-09-05 21:47:34 +000034460# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34461set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034464if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034465 $as_echo_n "(cached) " >&6
34466else
34467 case $TXTDelegate in
34468 [\\/]* | ?:[\\/]*)
34469 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34470 ;;
34471 *)
34472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34473for as_dir in $PATH
34474do
34475 IFS=$as_save_IFS
34476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034479 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481 break 2
34482 fi
34483done
cristy8b350f62009-11-15 23:12:43 +000034484 done
cristy3ed852e2009-09-05 21:47:34 +000034485IFS=$as_save_IFS
34486
34487 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34488 ;;
34489esac
34490fi
34491TXTDelegate=$ac_cv_path_TXTDelegate
34492if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494$as_echo "$TXTDelegate" >&6; }
34495else
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo "no" >&6; }
34498fi
34499
34500
cristy5ac9ac82010-07-29 13:24:24 +000034501# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34502set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034505if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034506 $as_echo_n "(cached) " >&6
34507else
34508 case $UniconvertorDelegate in
34509 [\\/]* | ?:[\\/]*)
34510 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34511 ;;
34512 *)
34513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34514for as_dir in $PATH
34515do
34516 IFS=$as_save_IFS
34517 test -z "$as_dir" && as_dir=.
34518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034520 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34522 break 2
34523 fi
34524done
34525 done
34526IFS=$as_save_IFS
34527
34528 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34529 ;;
34530esac
34531fi
34532UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34533if test -n "$UniconvertorDelegate"; then
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34535$as_echo "$UniconvertorDelegate" >&6; }
34536else
34537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34538$as_echo "no" >&6; }
34539fi
34540
34541
cristy3ed852e2009-09-05 21:47:34 +000034542# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34543set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034546if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034547 $as_echo_n "(cached) " >&6
34548else
34549 case $WMFDecodeDelegate in
34550 [\\/]* | ?:[\\/]*)
34551 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34552 ;;
34553 *)
34554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34555for as_dir in $PATH
34556do
34557 IFS=$as_save_IFS
34558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034561 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563 break 2
34564 fi
34565done
cristy8b350f62009-11-15 23:12:43 +000034566 done
cristy3ed852e2009-09-05 21:47:34 +000034567IFS=$as_save_IFS
34568
34569 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34570 ;;
34571esac
34572fi
34573WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34574if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034576$as_echo "$WMFDecodeDelegate" >&6; }
34577else
cristy8b350f62009-11-15 23:12:43 +000034578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579$as_echo "no" >&6; }
34580fi
34581
34582
34583# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34584set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034587if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034588 $as_echo_n "(cached) " >&6
34589else
34590 case $WWWDecodeDelegate in
34591 [\\/]* | ?:[\\/]*)
34592 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34593 ;;
34594 *)
34595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34596for as_dir in $PATH
34597do
34598 IFS=$as_save_IFS
34599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034602 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604 break 2
34605 fi
34606done
cristy8b350f62009-11-15 23:12:43 +000034607 done
cristy3ed852e2009-09-05 21:47:34 +000034608IFS=$as_save_IFS
34609
34610 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34611 ;;
34612esac
34613fi
34614WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34615if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617$as_echo "$WWWDecodeDelegate" >&6; }
34618else
cristy8b350f62009-11-15 23:12:43 +000034619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034620$as_echo "no" >&6; }
34621fi
34622
34623
34624# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34625set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034628if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034629 $as_echo_n "(cached) " >&6
34630else
34631 case $XPSDelegate in
34632 [\\/]* | ?:[\\/]*)
34633 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34634 ;;
34635 *)
34636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34637for as_dir in $PATH
34638do
34639 IFS=$as_save_IFS
34640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034643 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034645 break 2
34646 fi
34647done
cristy8b350f62009-11-15 23:12:43 +000034648 done
cristy3ed852e2009-09-05 21:47:34 +000034649IFS=$as_save_IFS
34650
34651 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34652 ;;
34653esac
34654fi
34655XPSDelegate=$ac_cv_path_XPSDelegate
34656if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo "$XPSDelegate" >&6; }
34659else
cristy8b350f62009-11-15 23:12:43 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo "no" >&6; }
34662fi
34663
34664
34665# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34666set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034669if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034670 $as_echo_n "(cached) " >&6
34671else
34672 case $ZipDelegate in
34673 [\\/]* | ?:[\\/]*)
34674 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34675 ;;
34676 *)
34677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34678for as_dir in $PATH
34679do
34680 IFS=$as_save_IFS
34681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034684 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686 break 2
34687 fi
34688done
cristy8b350f62009-11-15 23:12:43 +000034689 done
cristy3ed852e2009-09-05 21:47:34 +000034690IFS=$as_save_IFS
34691
34692 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34693 ;;
34694esac
34695fi
34696ZipDelegate=$ac_cv_path_ZipDelegate
34697if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034699$as_echo "$ZipDelegate" >&6; }
34700else
cristy8b350f62009-11-15 23:12:43 +000034701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo "no" >&6; }
34703fi
34704
34705
34706
34707# Prefer lpr to lp; lp needs options tacked on.
34708if test "$LPRDelegate" != no; then
34709 PrintDelegate="$LPRDelegate"
34710else
34711 PrintDelegate="$LPDelegate -c -s"
34712fi
34713
34714
34715# Installed ImageMagick utiltity paths
34716ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34717DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34718MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34719
34720# Set delegate booleans
34721have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34722have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34723have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34724have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34725have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034726have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034727have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34728have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034729have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34730have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34731
34732#
34733# Test for font directories
34734#
34735type_include_files=''
34736
cristy430a7312010-01-21 20:44:04 +000034737# Dejavu fonts.
34738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34739$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34740dejavu_font_dir=''
34741if test "${with_dejavu_font_dir}" != 'default'; then
34742 dejavu_font_dir="${with_dejavu_font_dir}/"
34743else
34744 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34745 if test -f "${font_dir}DejaVuSerif.ttf"; then
34746 dejavu_font_dir="${font_dir}"
34747 break 1
34748 fi
34749 done
34750fi
34751if test "${dejavu_font_dir}x" != 'x'; then
34752 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034753 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34754$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034755else
cristy09b53e12011-10-14 12:47:22 +000034756 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34757$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034758fi
34759
34760
cristy3ed852e2009-09-05 21:47:34 +000034761# Windows
34762windows_font_dir=''
34763if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34764 windows_font_dir="${with_windows_font_dir}/"
34765fi
cristy430a7312010-01-21 20:44:04 +000034766if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034767 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34768 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34769 fi
34770 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34771 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34772 fi
34773 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34774 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34775 fi
34776fi
cristy430a7312010-01-21 20:44:04 +000034777if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034778 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34779fi
34780
34781
34782# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34785ghostscript_font_dir=''
34786if test "${with_gs_font_dir}" != 'default'; then
34787 ghostscript_font_dir="${with_gs_font_dir}/"
34788else
34789 if test "${native_win32_build}" = 'yes'; then
34790 # Native Windows Build
34791 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34792 if test -f "${font_dir}a010013l.pfb"; then
34793 ghostscript_font_dir="$font_dir"
34794 break 1
34795 fi
34796 done
34797 if test "${PSDelegate}" != 'gswin32c'; then
34798 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34799 fi
34800 else
34801 # Linux / Mac OS X / Unix Build
34802 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
34803 if test -f "${font_dir}a010013l.pfb"; then
34804 ghostscript_font_dir="${font_dir}"
34805 break 1
34806 fi
34807 done
34808 if test "${ghostscript_font_dir}x" = 'x'; then
34809 if test "$PSDelegate" != 'gs'; then
34810 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34811 fi
34812 fi
34813 fi
34814fi
34815if test "${ghostscript_font_dir}x" != 'x'; then
34816 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34818$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034819else
cristy09b53e12011-10-14 12:47:22 +000034820 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34821$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034822fi
34823
34824case "${build_os}" in
34825 mingw* )
34826 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34827 ;;
34828esac
34829
34830
34831
34832#
34833# Handle case where user doesn't want frozen paths
34834#
34835if test "$with_frozenpaths" != 'yes'; then
34836 # Re-set delegate definitions to default (no paths)
34837 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034838 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34839 BZIPDelegate="$BZIPDelegateDefault"
34840 BrowseDelegate="$BrowseDelegateDefault"
34841 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34842 CatDelegate="$CatDelegateDefault"
34843 ConvertDelegate="$ConvertDelegateDefault"
34844 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34845 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34846 EchoDelegate="$EchoDelegateDefault"
34847 EditorDelegate="$EditorDelegateDefault"
34848 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34849 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34850 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34851 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34852 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34853 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34854 LPDelegate="$LPDelegateDefault"
34855 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34856 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34857 LaunchDelegate="$LaunchDelegateDefault"
34858 MANDelegate="$MANDelegateDefault"
34859 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34860 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034861 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034862 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34863 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034864 PCLDelegate="$PCLDelegateDefault"
34865 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34866 POVDelegate="$POVDelegateDefault"
34867 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034868 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34869 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034870 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034871 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034872 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034873 ShowImageDelegate="$ShowImageDelegateDefault"
34874 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034875 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034876 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34877 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34878 XPSDelegate="$XPSDelegateDefault"
34879 ZipDelegate="$ZipDelegateDefault"
34880fi
34881
34882# Delegate substitutions
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925#
34926# RPM support.
34927#
34928RPM=''
34929for ac_prog in gnutar gtar tar
34930do
34931 # Extract the first word of "$ac_prog", so it can be a program name with args.
34932set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034935if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034936 $as_echo_n "(cached) " >&6
34937else
34938 if test -n "$TAR"; then
34939 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34940else
34941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34942for as_dir in $PATH
34943do
34944 IFS=$as_save_IFS
34945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034948 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034950 break 2
34951 fi
34952done
cristy8b350f62009-11-15 23:12:43 +000034953 done
cristy3ed852e2009-09-05 21:47:34 +000034954IFS=$as_save_IFS
34955
34956fi
34957fi
34958TAR=$ac_cv_prog_TAR
34959if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961$as_echo "$TAR" >&6; }
34962else
cristy8b350f62009-11-15 23:12:43 +000034963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034964$as_echo "no" >&6; }
34965fi
34966
34967
34968 test -n "$TAR" && break
34969done
34970
34971for ac_prog in perl
34972do
34973 # Extract the first word of "$ac_prog", so it can be a program name with args.
34974set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034977if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034978 $as_echo_n "(cached) " >&6
34979else
34980 if test -n "$PERL"; then
34981 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34982else
34983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34984for as_dir in $PATH
34985do
34986 IFS=$as_save_IFS
34987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034990 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034992 break 2
34993 fi
34994done
cristy8b350f62009-11-15 23:12:43 +000034995 done
cristy3ed852e2009-09-05 21:47:34 +000034996IFS=$as_save_IFS
34997
34998fi
34999fi
35000PERL=$ac_cv_prog_PERL
35001if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo "$PERL" >&6; }
35004else
cristy8b350f62009-11-15 23:12:43 +000035005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035006$as_echo "no" >&6; }
35007fi
35008
35009
35010 test -n "$PERL" && break
35011done
35012
35013for ac_prog in rpmbuild rpm
35014do
35015 # Extract the first word of "$ac_prog", so it can be a program name with args.
35016set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035019if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035020 $as_echo_n "(cached) " >&6
35021else
35022 if test -n "$RPM"; then
35023 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35024else
35025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35026for as_dir in $PATH
35027do
35028 IFS=$as_save_IFS
35029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035032 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034 break 2
35035 fi
35036done
cristy8b350f62009-11-15 23:12:43 +000035037 done
cristy3ed852e2009-09-05 21:47:34 +000035038IFS=$as_save_IFS
35039
35040fi
35041fi
35042RPM=$ac_cv_prog_RPM
35043if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035045$as_echo "$RPM" >&6; }
35046else
cristy8b350f62009-11-15 23:12:43 +000035047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035048$as_echo "no" >&6; }
35049fi
35050
35051
35052 test -n "$RPM" && break
35053done
35054
35055
cristy73bd4a52010-10-05 11:24:23 +000035056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35057
35058
35059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35060
35061
35062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35063
35064
35065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35066
35067
35068 if test "x$RPM" != "x" ; then
35069 RPM_DELEGATE_TRUE=
35070 RPM_DELEGATE_FALSE='#'
35071else
35072 RPM_DELEGATE_TRUE='#'
35073 RPM_DELEGATE_FALSE=
35074fi
35075
cristy3ed852e2009-09-05 21:47:34 +000035076
35077#
35078# 7ZIP support (http://p7zip.sourceforge.net/)
35079#
35080P7ZIP=''
35081for ac_prog in 7za
35082do
35083 # Extract the first word of "$ac_prog", so it can be a program name with args.
35084set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035087if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035088 $as_echo_n "(cached) " >&6
35089else
35090 if test -n "$P7ZIP"; then
35091 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35092else
35093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35094for as_dir in $PATH
35095do
35096 IFS=$as_save_IFS
35097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035100 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035102 break 2
35103 fi
35104done
cristy8b350f62009-11-15 23:12:43 +000035105 done
cristy3ed852e2009-09-05 21:47:34 +000035106IFS=$as_save_IFS
35107
35108fi
35109fi
35110P7ZIP=$ac_cv_prog_P7ZIP
35111if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035113$as_echo "$P7ZIP" >&6; }
35114else
cristy8b350f62009-11-15 23:12:43 +000035115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035116$as_echo "no" >&6; }
35117fi
35118
35119
35120 test -n "$P7ZIP" && break
35121done
35122
35123
cristy73bd4a52010-10-05 11:24:23 +000035124 if test "x$P7ZIP" != "x" ; then
35125 P7ZIP_DELEGATE_TRUE=
35126 P7ZIP_DELEGATE_FALSE='#'
35127else
35128 P7ZIP_DELEGATE_TRUE='#'
35129 P7ZIP_DELEGATE_FALSE=
35130fi
35131
cristy3ed852e2009-09-05 21:47:34 +000035132
35133#
35134# ZIP support (http://www.info-zip.org/Zip.html)
35135#
35136ZIP=''
35137for ac_prog in zip
35138do
35139 # Extract the first word of "$ac_prog", so it can be a program name with args.
35140set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035143if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035144 $as_echo_n "(cached) " >&6
35145else
35146 if test -n "$ZIP"; then
35147 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35148else
35149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35150for as_dir in $PATH
35151do
35152 IFS=$as_save_IFS
35153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035156 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035158 break 2
35159 fi
35160done
cristy8b350f62009-11-15 23:12:43 +000035161 done
cristy3ed852e2009-09-05 21:47:34 +000035162IFS=$as_save_IFS
35163
35164fi
35165fi
35166ZIP=$ac_cv_prog_ZIP
35167if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035169$as_echo "$ZIP" >&6; }
35170else
cristy8b350f62009-11-15 23:12:43 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035172$as_echo "no" >&6; }
35173fi
35174
35175
35176 test -n "$ZIP" && break
35177done
35178
35179
cristy73bd4a52010-10-05 11:24:23 +000035180 if test "x$ZIP" != "x" ; then
35181 ZIP_DELEGATE_TRUE=
35182 ZIP_DELEGATE_FALSE='#'
35183else
35184 ZIP_DELEGATE_TRUE='#'
35185 ZIP_DELEGATE_FALSE=
35186fi
35187
cristy3ed852e2009-09-05 21:47:34 +000035188
35189#
35190# GhostPCL related configuration.
35191#
35192PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035193PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035194PCLMonoDevice=pbmraw
35195if test -z "$PCLVersion"; then
35196 PCLVersion='unknown'
35197fi
35198if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35200$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35204$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035205 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo_n "checking for pcl color device... " >&6; }
35208 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35209 :
35210 else
35211 PCLColorDevice=ppmraw
35212 fi
cristy09b53e12011-10-14 12:47:22 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35214$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035215
35216 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035218$as_echo_n "checking for pcl CMYK device... " >&6; }
35219 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35220 :
35221 else
35222 PCLCMYKDevice=$PCLColorDevice
35223 fi
cristy09b53e12011-10-14 12:47:22 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35225$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035226
35227 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035229$as_echo_n "checking for pcl mono device... " >&6; }
35230 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35231 :
35232 else
35233 PCLMonoDevice=$PCLColorDevice
35234 fi
cristy09b53e12011-10-14 12:47:22 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35236$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035237fi
35238
35239
35240
35241
35242
35243
35244#
35245# GhostXPS related configuration.
35246#
35247XPSColorDevice=ppmraw
35248XPSCMYKDevice=bmpsep8
35249XPSMonoDevice=pbmraw
35250if test -z "$XPSVersion"; then
35251 XPSVersion='unknown'
35252fi
35253if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35255$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035257$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035258 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35259$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035260 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035262$as_echo_n "checking for xps color device... " >&6; }
35263 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35264 :
35265 else
35266 XPSColorDevice=ppmraw
35267 fi
cristy09b53e12011-10-14 12:47:22 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35269$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035270
35271 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035273$as_echo_n "checking for xps CMYK device... " >&6; }
35274 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35275 :
35276 else
35277 XPSCMYKDevice=$XPSColorDevice
35278 fi
cristy09b53e12011-10-14 12:47:22 +000035279 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35280$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035281
35282 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035284$as_echo_n "checking for xps mono device... " >&6; }
35285 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35286 :
35287 else
35288 XPSMonoDevice=$XPSColorDevice
35289 fi
cristy09b53e12011-10-14 12:47:22 +000035290 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35291$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035292fi
35293
35294
35295
35296
35297
35298
35299#
35300# Ghostscript related configuration.
35301#
cristya97426c2011-02-04 01:41:27 +000035302GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035303GSColorDevice=pnmraw
35304GSCMYKDevice=pam
35305GSMonoDevice=pbmraw
35306GSPDFDevice=pdfwrite
35307GSPSDevice=pswrite
35308GSEPSDevice=epswrite
35309GSVersion='unknown'
35310if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035311 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35312$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035314$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035315 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35316$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo_n "checking for Ghostscript version... " >&6; }
35319 if GSVersion=`$PSDelegate --version`; then
35320 :
35321 else
35322 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35323 fi
cristy09b53e12011-10-14 12:47:22 +000035324 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35325$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035326
35327 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo_n "checking for gs alpha device... " >&6; }
35330 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35331 :
35332 else
35333 GSAlphaDevice=pnmraw
35334 fi
cristy09b53e12011-10-14 12:47:22 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35336$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035337
35338 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035340$as_echo_n "checking for gs color device... " >&6; }
35341 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35342 :
35343 else
35344 GSColorDevice=pnmraw
35345 fi
cristy09b53e12011-10-14 12:47:22 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35347$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035348
35349 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo_n "checking for gs CMYK device... " >&6; }
35352 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35353 :
35354 else
35355 GSCMYKDevice=bmpsep8
35356 fi
cristy09b53e12011-10-14 12:47:22 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35358$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035359
35360 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035362$as_echo_n "checking for gs mono device... " >&6; }
35363 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35364 :
35365 else
35366 GSMonoDevice=$GSColorDevice
35367 fi
cristy09b53e12011-10-14 12:47:22 +000035368 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35369$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035370
35371 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035373$as_echo_n "checking for gs PDF writing device... " >&6; }
35374 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35375 :
35376 else
35377 GSPDFDevice=nodevice
35378 fi
cristy09b53e12011-10-14 12:47:22 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35380$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035381
35382 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035384$as_echo_n "checking for gs PS writing device... " >&6; }
35385 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35386 :
35387 else
35388 GSPSDevice=nodevice
35389 fi
cristy09b53e12011-10-14 12:47:22 +000035390 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35391$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035392
35393 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035395$as_echo_n "checking for gs EPS writing device... " >&6; }
35396 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35397 :
35398 else
35399 GSEPSDevice=nodevice
35400 fi
cristy09b53e12011-10-14 12:47:22 +000035401 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35402$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035403fi
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414#
35415# PerlMagick-related configuration
35416#
35417
35418# Look for PERL if PerlMagick requested
35419# If name/path of desired PERL interpreter is specified, look for that one first
35420have_perl='no'
35421if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035422 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35423$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035425$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035426 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35427$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035428 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035430$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035431if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035432 $as_echo_n "(cached) " >&6
35433else
35434 ac_cv_path_PERL="$with_perl"
35435fi
cristy8b350f62009-11-15 23:12:43 +000035436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo "$ac_cv_path_PERL" >&6; };
35438 PERL=$ac_cv_path_PERL
35439 have_perl="$ac_cv_path_PERL"
35440 else
35441 for ac_prog in perl perl5
35442do
35443 # Extract the first word of "$ac_prog", so it can be a program name with args.
35444set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035447if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035448 $as_echo_n "(cached) " >&6
35449else
35450 case $PERL in
35451 [\\/]* | ?:[\\/]*)
35452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35453 ;;
35454 *)
35455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35456for as_dir in $PATH
35457do
35458 IFS=$as_save_IFS
35459 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035464 break 2
35465 fi
35466done
cristy8b350f62009-11-15 23:12:43 +000035467 done
cristy3ed852e2009-09-05 21:47:34 +000035468IFS=$as_save_IFS
35469
35470 ;;
35471esac
35472fi
35473PERL=$ac_cv_path_PERL
35474if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035476$as_echo "$PERL" >&6; }
35477else
cristy8b350f62009-11-15 23:12:43 +000035478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035479$as_echo "no" >&6; }
35480fi
35481
35482
35483 test -n "$PERL" && break
35484done
35485 if test "$ac_cv_path_PERL"; then
35486 have_perl="$ac_cv_path_PERL"
35487 fi
35488 fi
35489fi
35490
cristy949301e2010-01-06 01:38:40 +000035491if test "$with_perl" != 'yes' ; then
35492 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35493fi
35494
35495PERL_SUPPORTS_DESTDIR='no'
35496
cristy3ed852e2009-09-05 21:47:34 +000035497with_perl_static='no'
35498with_perl_dynamic='no'
35499if test "$have_perl" != 'no'; then
35500 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35501 with_perl_static='yes'
35502 fi
35503 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35504 with_perl_dynamic='yes'
35505 fi
35506 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035507
35508
35509
35510
35511 if test -n "$PERL"; then :
35512
35513 ax_perl_version="5.8.1"
35514
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35516$as_echo_n "checking for perl version... " >&6; }
35517
35518 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35519
35520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35521$as_echo "$perl_version" >&6; }
35522
35523 PERL_VERSION=$perl_version
35524
35525
35526
35527
35528
35529 # Used to indicate true or false condition
35530 ax_compare_version=false
35531
35532 # Convert the two version strings to be compared into a format that
35533 # allows a simple string comparison. The end result is that a version
35534 # string of the form 1.12.5-r617 will be converted to the form
35535 # 0001001200050617. In other words, each number is zero padded to four
35536 # digits, and non digits are removed.
35537
35538 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35539 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35540 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35541 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35542 -e 's/[^0-9]//g'`
35543
35544
35545 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35546 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35547 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35548 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35549 -e 's/[^0-9]//g'`
35550
35551
35552 ax_compare_version=`echo "x$ax_compare_version_A
35553x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35554
35555
35556
35557 if test "$ax_compare_version" = "true" ; then
35558
35559 :
35560 PERL_SUPPORTS_DESTDIR='yes'
35561
35562 else
35563 :
35564 PERL_SUPPORTS_DESTDIR='no'
35565
35566 fi
35567
35568
35569else
35570
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35572$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35573 PERL_SUPPORTS_DESTDIR='no'
35574
cristy3ed852e2009-09-05 21:47:34 +000035575fi
cristy73bd4a52010-10-05 11:24:23 +000035576
35577fi
35578 if test "$have_perl" != 'no'; then
35579 WITH_PERL_TRUE=
35580 WITH_PERL_FALSE='#'
35581else
35582 WITH_PERL_TRUE='#'
35583 WITH_PERL_FALSE=
35584fi
35585
35586 if test $with_perl_static = 'yes'; then
35587 WITH_PERL_STATIC_TRUE=
35588 WITH_PERL_STATIC_FALSE='#'
35589else
35590 WITH_PERL_STATIC_TRUE='#'
35591 WITH_PERL_STATIC_FALSE=
35592fi
35593
35594 if test $with_perl_dynamic = 'yes'; then
35595 WITH_PERL_DYNAMIC_TRUE=
35596 WITH_PERL_DYNAMIC_FALSE='#'
35597else
35598 WITH_PERL_DYNAMIC_TRUE='#'
35599 WITH_PERL_DYNAMIC_FALSE=
35600fi
35601
cristy3ed852e2009-09-05 21:47:34 +000035602
35603
35604# Determine path to pick up MagickCore library from for use with building PerlMagick
35605MAGICKCORE_PATH="${LIB_DIR}"
35606if test $with_perl_static = 'yes'; then
35607 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35608 libtool_objdir=$objdir
35609
35610 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035611 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035612fi
35613
35614
35615# Create a simple string containing format names for all delegate libraries
35616DELEGATES=''
35617if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35618if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35619if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35620if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35621if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35622if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35623if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35624if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35625if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35626if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35627if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35628if test "$have_jpeg" = 'yes'; then
35629 DELEGATES="$DELEGATES jpeg";
35630 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35631fi
35632if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035633if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035634if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35635if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035636if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035637if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35638if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035639if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035640if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35641if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35642if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35643if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35644if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35645if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35646if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35647
35648
35649
35650#
35651# Handle special compiler flags
35652#
35653
35654# Add '-p' if prof source profiling support enabled
35655if test "$enable_prof" = 'yes'; then
35656 CFLAGS="-p $CFLAGS"
35657 CXXFLAGS="-p $CXXFLAGS"
35658 LDFLAGS="-p $LDFLAGS"
35659fi
35660
35661# Add '-pg' if gprof source profiling support enabled
35662if test "$enable_gprof" = 'yes'; then
35663 CFLAGS="-pg $CFLAGS"
35664 CXXFLAGS="-pg $CXXFLAGS"
35665 LDFLAGS="-pg $LDFLAGS"
35666fi
35667
35668# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35669# This is a gcc-specific feature
35670if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035672$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035673if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035674 $as_echo_n "(cached) " >&6
35675else
35676 ac_check_lib_save_LIBS=$LIBS
35677LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035679/* end confdefs.h. */
35680
35681/* Override any GCC internal prototype to avoid an error.
35682 Use char because int might match the return type of a GCC
35683 builtin and then its argument prototype would still apply. */
35684#ifdef __cplusplus
35685extern "C"
35686#endif
35687char _gcov_init ();
35688int
35689main ()
35690{
35691return _gcov_init ();
35692 ;
35693 return 0;
35694}
35695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035697 ac_cv_lib_gcov__gcov_init=yes
35698else
cristy8b350f62009-11-15 23:12:43 +000035699 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035700fi
cristy8b350f62009-11-15 23:12:43 +000035701rm -f core conftest.err conftest.$ac_objext \
35702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035703LIBS=$ac_check_lib_save_LIBS
35704fi
cristy8b350f62009-11-15 23:12:43 +000035705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035706$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035707if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035708 cat >>confdefs.h <<_ACEOF
35709#define HAVE_LIBGCOV 1
35710_ACEOF
35711
35712 LIBS="-lgcov $LIBS"
35713
35714fi
35715
cristy8b350f62009-11-15 23:12:43 +000035716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035717$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035718if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035719 $as_echo_n "(cached) " >&6
35720else
35721 ac_check_lib_save_LIBS=$LIBS
35722LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035724/* end confdefs.h. */
35725
35726/* Override any GCC internal prototype to avoid an error.
35727 Use char because int might match the return type of a GCC
35728 builtin and then its argument prototype would still apply. */
35729#ifdef __cplusplus
35730extern "C"
35731#endif
35732char __gcov_init ();
35733int
35734main ()
35735{
35736return __gcov_init ();
35737 ;
35738 return 0;
35739}
35740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035742 ac_cv_lib_gcov___gcov_init=yes
35743else
cristy8b350f62009-11-15 23:12:43 +000035744 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035745fi
cristy8b350f62009-11-15 23:12:43 +000035746rm -f core conftest.err conftest.$ac_objext \
35747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035748LIBS=$ac_check_lib_save_LIBS
35749fi
cristy8b350f62009-11-15 23:12:43 +000035750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035751$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035752if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035753 cat >>confdefs.h <<_ACEOF
35754#define HAVE_LIBGCOV 1
35755_ACEOF
35756
35757 LIBS="-lgcov $LIBS"
35758
35759fi
35760
35761 case "$target_os" in
35762 darwin*)
35763 OSX_GCOV_LDFLAG="-Wl,-single_module"
35764 ;;
35765 *)
35766 OSX_GCOV_LDFLAG=""
35767 ;;
35768 esac
35769
35770 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35771 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35772 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35773fi
35774
35775#
35776# Build library dependency list for libMagickCore
35777#
35778
35779MAGICK_LIBLTDL='' # Libltdl for build
35780MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35781MAGICK_LTDLDEPS='' # extra libltdl dependencies
35782if test "$with_ltdl" != 'no'
35783then
35784 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35785 MAGICK_API_LIBLTDL='-lltdl'
35786 fi
35787 MAGICK_LIBLTDL=${LIBLTDL}
35788 MAGICK_LTDLDEPS=${LTDLDEPS}
35789fi
35790
35791
35792
35793if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035794 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 +000035795else
cristy41cbe8a2011-10-27 01:35:18 +000035796 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 +000035797fi
35798
35799
35800#
35801# Remove extraneous spaces from output variables (asthetic)
35802#
35803X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35804X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35805X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35806X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35807
35808CC=`echo $CC | sed -e 's/ */ /g'`
35809CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35810CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35811CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35812DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35813DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35814LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35815TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35816MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35817#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35818
35819# Pass only user-provided LIBS as "global" libraries
35820LIBS=$USER_LIBS
35821
35822#AC_SUBST(CPPFLAGS)
35823
35824#AC_SUBST(LDFLAGS)
35825#AC_SUBST(X_PRE_LIBS)
35826#AC_SUBST(X_LIBS)
35827#AC_SUBST(X_EXTRA_LIBS)
35828
35829MAGICK_CFLAGS=$CFLAGS
35830MAGICK_CXXFLAGS="$CXXFLAGS"
35831MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35832MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35833MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35834MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35835
35836
35837
35838
35839
35840
35841
35842
cristyfd9dcd42010-08-08 18:07:02 +000035843
cristy3ed852e2009-09-05 21:47:34 +000035844# Set configured scripts to executable.
35845ac_config_commands="$ac_config_commands default"
35846
cristy2bd4b6e2012-07-22 15:29:11 +000035847ac_config_commands="$ac_config_commands magick.sh.in"
35848
cristy3ed852e2009-09-05 21:47:34 +000035849ac_config_commands="$ac_config_commands MagickCore-config.in"
35850
cristy3ed852e2009-09-05 21:47:34 +000035851ac_config_commands="$ac_config_commands MagickWand-config.in"
35852
cristy3ed852e2009-09-05 21:47:34 +000035853ac_config_commands="$ac_config_commands Magick++-config.in"
35854
35855ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35856
35857
cristy09b53e12011-10-14 12:47:22 +000035858{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35859$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35860{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35861$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035862cat >confcache <<\_ACEOF
35863# This file is a shell script that caches the results of configure
35864# tests run on this system so they can be shared between configure
35865# scripts and configure runs, see configure's option --config-cache.
35866# It is not useful on other systems. If it contains results you don't
35867# want to keep, you may remove or edit it.
35868#
35869# config.status only pays attention to the cache file if you give it
35870# the --recheck option to rerun configure.
35871#
35872# `ac_cv_env_foo' variables (set or unset) will be overridden when
35873# loading this file, other *unset* `ac_cv_foo' will be assigned the
35874# following values.
35875
35876_ACEOF
35877
35878# The following way of writing the cache mishandles newlines in values,
35879# but we know of no workaround that is simple, portable, and efficient.
35880# So, we kill variables containing newlines.
35881# Ultrix sh set writes to stderr and can't be redirected directly,
35882# and sets the high bit in the cache file unless we assign to the vars.
35883(
35884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35885 eval ac_val=\$$ac_var
35886 case $ac_val in #(
35887 *${as_nl}*)
35888 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35891 esac
35892 case $ac_var in #(
35893 _ | IFS | as_nl) ;; #(
35894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035895 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035896 esac ;;
35897 esac
35898 done
35899
35900 (set) 2>&1 |
35901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35902 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035903 # `set' does not quote correctly, so add quotes: double-quote
35904 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035905 sed -n \
35906 "s/'/'\\\\''/g;
35907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35908 ;; #(
35909 *)
35910 # `set' quotes correctly as required by POSIX, so do not add quotes.
35911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35912 ;;
35913 esac |
35914 sort
35915) |
35916 sed '
35917 /^ac_cv_env_/b end
35918 t clear
35919 :clear
35920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35921 t end
35922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35923 :end' >>confcache
35924if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35925 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035926 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035928$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035929 if test ! -f "$cache_file" || test -h "$cache_file"; then
35930 cat confcache >"$cache_file"
35931 else
35932 case $cache_file in #(
35933 */* | ?:*)
35934 mv -f confcache "$cache_file"$$ &&
35935 mv -f "$cache_file"$$ "$cache_file" ;; #(
35936 *)
35937 mv -f confcache "$cache_file" ;;
35938 esac
35939 fi
35940 fi
cristy3ed852e2009-09-05 21:47:34 +000035941 else
cristy8b350f62009-11-15 23:12:43 +000035942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035943$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35944 fi
35945fi
35946rm -f confcache
35947
35948test "x$prefix" = xNONE && prefix=$ac_default_prefix
35949# Let make expand exec_prefix.
35950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35951
35952DEFS=-DHAVE_CONFIG_H
35953
35954ac_libobjs=
35955ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035956U=
cristy3ed852e2009-09-05 21:47:34 +000035957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35958 # 1. Remove the extension, and $U if already installed.
35959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35960 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35962 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035963 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35964 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035965done
35966LIBOBJS=$ac_libobjs
35967
35968LTLIBOBJS=$ac_ltlibobjs
35969
35970
cristyc0890a62012-07-19 00:18:20 +000035971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35972$as_echo_n "checking that generated files are newer than configure... " >&6; }
35973 if test -n "$am_sleep_pid"; then
35974 # Hide warnings about reused PIDs.
35975 wait $am_sleep_pid 2>/dev/null
35976 fi
35977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35978$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035979 if test -n "$EXEEXT"; then
35980 am__EXEEXT_TRUE=
35981 am__EXEEXT_FALSE='#'
35982else
35983 am__EXEEXT_TRUE='#'
35984 am__EXEEXT_FALSE=
35985fi
cristy3ed852e2009-09-05 21:47:34 +000035986
cristy73bd4a52010-10-05 11:24:23 +000035987if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
cristy73bd4a52010-10-05 11:24:23 +000036019if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027LT_CONFIG_H=config/config.h
36028
36029 _ltdl_libobjs=
36030 _ltdl_ltlibobjs=
36031 if test -n "$_LT_LIBOBJS"; then
36032 # Remove the extension.
36033 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36034 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36035 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36036 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36037 done
36038 fi
36039 ltdl_LIBOBJS=$_ltdl_libobjs
36040
36041 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36042
36043
36044if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036053 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
cristy71d8c202012-03-20 17:05:01 +000036060if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36061 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
cristy73bd4a52010-10-05 11:24:23 +000036064
36065if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
36069if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036070 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
36073if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036074 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
36077if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036086 as_fn_error $? "conditional \"ZLIB_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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036094 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036098 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
36101if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036102 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036110 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
36137if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036138 as_fn_error $? "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
cristyfbb0ef02010-12-19 02:32:11 +000036145if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36146 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
cristy73bd4a52010-10-05 11:24:23 +000036149if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
cristy41cbe8a2011-10-27 01:35:18 +000036153if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36154 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
cristya054b762012-03-26 23:16:00 +000036157if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36158 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
cristy73bd4a52010-10-05 11:24:23 +000036161if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
36169if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036170 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
cristyb1860752011-03-14 00:27:46 +000036177if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36178 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
cristy73bd4a52010-10-05 11:24:23 +000036181if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036194 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036206 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
36209if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036210 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
cristy3ed852e2009-09-05 21:47:34 +000036213
cristyda16f162011-02-19 23:52:17 +000036214: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036215ac_write_fail=0
36216ac_clean_files_save=$ac_clean_files
36217ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036218{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036219$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036220as_write_fail=0
36221cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036222#! $SHELL
36223# Generated by $as_me.
36224# Run this file to recreate the current configuration.
36225# Compiler output produced by configure, useful for debugging
36226# configure, is in config.log if it exists.
36227
36228debug=false
36229ac_cs_recheck=false
36230ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036231
cristy8b350f62009-11-15 23:12:43 +000036232SHELL=\${CONFIG_SHELL-$SHELL}
36233export SHELL
36234_ASEOF
36235cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36236## -------------------- ##
36237## M4sh Initialization. ##
36238## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036239
36240# Be more Bourne compatible
36241DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036243 emulate sh
36244 NULLCMD=:
36245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36246 # is contrary to our usage. Disable this feature.
36247 alias -g '${1+"$@"}'='"$@"'
36248 setopt NO_GLOB_SUBST
36249else
cristy8b350f62009-11-15 23:12:43 +000036250 case `(set -o) 2>/dev/null` in #(
36251 *posix*) :
36252 set -o posix ;; #(
36253 *) :
36254 ;;
cristy3ed852e2009-09-05 21:47:34 +000036255esac
cristy3ed852e2009-09-05 21:47:34 +000036256fi
36257
36258
cristy3ed852e2009-09-05 21:47:34 +000036259as_nl='
36260'
36261export as_nl
36262# Printing a long string crashes Solaris 7 /usr/bin/printf.
36263as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036266# Prefer a ksh shell builtin over an external printf program on Solaris,
36267# but without wasting forks for bash or zsh.
36268if test -z "$BASH_VERSION$ZSH_VERSION" \
36269 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36270 as_echo='print -r --'
36271 as_echo_n='print -rn --'
36272elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036273 as_echo='printf %s\n'
36274 as_echo_n='printf %s'
36275else
36276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36278 as_echo_n='/usr/ucb/echo -n'
36279 else
36280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36281 as_echo_n_body='eval
36282 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036283 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036284 *"$as_nl"*)
36285 expr "X$arg" : "X\\(.*\\)$as_nl";
36286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36287 esac;
36288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36289 '
36290 export as_echo_n_body
36291 as_echo_n='sh -c $as_echo_n_body as_echo'
36292 fi
36293 export as_echo_body
36294 as_echo='sh -c $as_echo_body as_echo'
36295fi
36296
36297# The user is always right.
36298if test "${PATH_SEPARATOR+set}" != set; then
36299 PATH_SEPARATOR=:
36300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36302 PATH_SEPARATOR=';'
36303 }
36304fi
36305
cristy3ed852e2009-09-05 21:47:34 +000036306
36307# IFS
36308# We need space, tab and new line, in precisely that order. Quoting is
36309# there to prevent editors from complaining about space-tab.
36310# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36311# splitting by setting IFS to empty value.)
36312IFS=" "" $as_nl"
36313
36314# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036315as_myself=
cristy8b350f62009-11-15 23:12:43 +000036316case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036317 *[\\/]* ) as_myself=$0 ;;
36318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36319for as_dir in $PATH
36320do
36321 IFS=$as_save_IFS
36322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36324 done
cristy3ed852e2009-09-05 21:47:34 +000036325IFS=$as_save_IFS
36326
36327 ;;
36328esac
36329# We did not find ourselves, most probably we were run as `sh COMMAND'
36330# in which case we are not to be found in the path.
36331if test "x$as_myself" = x; then
36332 as_myself=$0
36333fi
36334if test ! -f "$as_myself"; then
36335 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036336 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036337fi
36338
cristy8b350f62009-11-15 23:12:43 +000036339# Unset variables that we do not need and which cause bugs (e.g. in
36340# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36341# suppresses any "Segmentation fault" message there. '((' could
36342# trigger a bug in pdksh 5.2.14.
36343for as_var in BASH_ENV ENV MAIL MAILPATH
36344do eval test x\${$as_var+set} = xset \
36345 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036346done
36347PS1='$ '
36348PS2='> '
36349PS4='+ '
36350
36351# NLS nuisances.
36352LC_ALL=C
36353export LC_ALL
36354LANGUAGE=C
36355export LANGUAGE
36356
cristy8b350f62009-11-15 23:12:43 +000036357# CDPATH.
36358(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36359
36360
cristy98dddb52010-11-04 00:30:15 +000036361# as_fn_error STATUS ERROR [LINENO LOG_FD]
36362# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036365# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036366as_fn_error ()
36367{
cristy98dddb52010-11-04 00:30:15 +000036368 as_status=$1; test $as_status -eq 0 && as_status=1
36369 if test "$4"; then
36370 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036372 fi
cristy98dddb52010-11-04 00:30:15 +000036373 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036374 as_fn_exit $as_status
36375} # as_fn_error
36376
36377
36378# as_fn_set_status STATUS
36379# -----------------------
36380# Set $? to STATUS, without forking.
36381as_fn_set_status ()
36382{
36383 return $1
36384} # as_fn_set_status
36385
36386# as_fn_exit STATUS
36387# -----------------
36388# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36389as_fn_exit ()
36390{
36391 set +e
36392 as_fn_set_status $1
36393 exit $1
36394} # as_fn_exit
36395
36396# as_fn_unset VAR
36397# ---------------
36398# Portably unset VAR.
36399as_fn_unset ()
36400{
36401 { eval $1=; unset $1;}
36402}
36403as_unset=as_fn_unset
36404# as_fn_append VAR VALUE
36405# ----------------------
36406# Append the text in VALUE to the end of the definition contained in VAR. Take
36407# advantage of any shell optimizations that allow amortized linear growth over
36408# repeated appends, instead of the typical quadratic growth present in naive
36409# implementations.
36410if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36411 eval 'as_fn_append ()
36412 {
36413 eval $1+=\$2
36414 }'
36415else
36416 as_fn_append ()
36417 {
36418 eval $1=\$$1\$2
36419 }
36420fi # as_fn_append
36421
36422# as_fn_arith ARG...
36423# ------------------
36424# Perform arithmetic evaluation on the ARGs, and store the result in the
36425# global $as_val. Take advantage of shells that can avoid forks. The arguments
36426# must be portable across $(()) and expr.
36427if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36428 eval 'as_fn_arith ()
36429 {
36430 as_val=$(( $* ))
36431 }'
36432else
36433 as_fn_arith ()
36434 {
36435 as_val=`expr "$@" || test $? -eq 1`
36436 }
36437fi # as_fn_arith
36438
36439
cristy3ed852e2009-09-05 21:47:34 +000036440if expr a : '\(a\)' >/dev/null 2>&1 &&
36441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36442 as_expr=expr
36443else
36444 as_expr=false
36445fi
36446
36447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36448 as_basename=basename
36449else
36450 as_basename=false
36451fi
36452
cristy8b350f62009-11-15 23:12:43 +000036453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36454 as_dirname=dirname
36455else
36456 as_dirname=false
36457fi
cristy3ed852e2009-09-05 21:47:34 +000036458
cristy3ed852e2009-09-05 21:47:34 +000036459as_me=`$as_basename -- "$0" ||
36460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36461 X"$0" : 'X\(//\)$' \| \
36462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36463$as_echo X/"$0" |
36464 sed '/^.*\/\([^/][^/]*\)\/*$/{
36465 s//\1/
36466 q
36467 }
36468 /^X\/\(\/\/\)$/{
36469 s//\1/
36470 q
36471 }
36472 /^X\/\(\/\).*/{
36473 s//\1/
36474 q
36475 }
36476 s/.*/./; q'`
36477
cristy8b350f62009-11-15 23:12:43 +000036478# Avoid depending upon Character Ranges.
36479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36482as_cr_digits='0123456789'
36483as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036484
36485ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036486case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036487-n*)
cristy8b350f62009-11-15 23:12:43 +000036488 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036490 xy) ECHO_C='\c';;
36491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36492 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036493 esac;;
36494*)
36495 ECHO_N='-n';;
36496esac
cristy3ed852e2009-09-05 21:47:34 +000036497
36498rm -f conf$$ conf$$.exe conf$$.file
36499if test -d conf$$.dir; then
36500 rm -f conf$$.dir/conf$$.file
36501else
36502 rm -f conf$$.dir
36503 mkdir conf$$.dir 2>/dev/null
36504fi
36505if (echo >conf$$.file) 2>/dev/null; then
36506 if ln -s conf$$.file conf$$ 2>/dev/null; then
36507 as_ln_s='ln -s'
36508 # ... but there are two gotchas:
36509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036511 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036513 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036514 elif ln conf$$.file conf$$ 2>/dev/null; then
36515 as_ln_s=ln
36516 else
cristy14fefe52012-05-21 00:59:18 +000036517 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036518 fi
36519else
cristy14fefe52012-05-21 00:59:18 +000036520 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036521fi
36522rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36523rmdir conf$$.dir 2>/dev/null
36524
cristy8b350f62009-11-15 23:12:43 +000036525
36526# as_fn_mkdir_p
36527# -------------
36528# Create "$as_dir" as a directory, including parents if necessary.
36529as_fn_mkdir_p ()
36530{
36531
36532 case $as_dir in #(
36533 -*) as_dir=./$as_dir;;
36534 esac
36535 test -d "$as_dir" || eval $as_mkdir_p || {
36536 as_dirs=
36537 while :; do
36538 case $as_dir in #(
36539 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36540 *) as_qdir=$as_dir;;
36541 esac
36542 as_dirs="'$as_qdir' $as_dirs"
36543 as_dir=`$as_dirname -- "$as_dir" ||
36544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36545 X"$as_dir" : 'X\(//\)[^/]' \| \
36546 X"$as_dir" : 'X\(//\)$' \| \
36547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36548$as_echo X"$as_dir" |
36549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36550 s//\1/
36551 q
36552 }
36553 /^X\(\/\/\)[^/].*/{
36554 s//\1/
36555 q
36556 }
36557 /^X\(\/\/\)$/{
36558 s//\1/
36559 q
36560 }
36561 /^X\(\/\).*/{
36562 s//\1/
36563 q
36564 }
36565 s/.*/./; q'`
36566 test -d "$as_dir" && break
36567 done
36568 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036569 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036570
36571
36572} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036573if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036574 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036575else
36576 test -d ./-p && rmdir ./-p
36577 as_mkdir_p=false
36578fi
36579
cristy14fefe52012-05-21 00:59:18 +000036580
36581# as_fn_executable_p FILE
36582# -----------------------
36583# Test if FILE is an executable regular file.
36584as_fn_executable_p ()
36585{
36586 test -f "$1" && test -x "$1"
36587} # as_fn_executable_p
36588as_test_x='test -x'
36589as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036590
36591# Sed expression to map a string onto a valid CPP name.
36592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36593
36594# Sed expression to map a string onto a valid variable name.
36595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36596
36597
36598exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036599## ----------------------------------- ##
36600## Main body of $CONFIG_STATUS script. ##
36601## ----------------------------------- ##
36602_ASEOF
36603test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036604
cristy8b350f62009-11-15 23:12:43 +000036605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36606# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036607# report actual input values of CONFIG_FILES etc. instead of their
36608# values after options handling.
36609ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036610This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036611generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036612
36613 CONFIG_FILES = $CONFIG_FILES
36614 CONFIG_HEADERS = $CONFIG_HEADERS
36615 CONFIG_LINKS = $CONFIG_LINKS
36616 CONFIG_COMMANDS = $CONFIG_COMMANDS
36617 $ $0 $@
36618
36619on `(hostname || uname -n) 2>/dev/null | sed 1q`
36620"
36621
36622_ACEOF
36623
36624case $ac_config_files in *"
36625"*) set x $ac_config_files; shift; ac_config_files=$*;;
36626esac
36627
36628case $ac_config_headers in *"
36629"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36630esac
36631
36632
36633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36634# Files that config.status was made for.
36635config_files="$ac_config_files"
36636config_headers="$ac_config_headers"
36637config_commands="$ac_config_commands"
36638
36639_ACEOF
36640
36641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36642ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036643\`$as_me' instantiates files and other configuration actions
36644from templates according to the current configuration. Unless the files
36645and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036646
cristy8b350f62009-11-15 23:12:43 +000036647Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036648
36649 -h, --help print this help, then exit
36650 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036651 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036652 -q, --quiet, --silent
36653 do not print progress messages
36654 -d, --debug don't remove temporary files
36655 --recheck update $as_me by reconfiguring in the same conditions
36656 --file=FILE[:TEMPLATE]
36657 instantiate the configuration file FILE
36658 --header=FILE[:TEMPLATE]
36659 instantiate the configuration header FILE
36660
36661Configuration files:
36662$config_files
36663
36664Configuration headers:
36665$config_headers
36666
36667Configuration commands:
36668$config_commands
36669
cristy8b350f62009-11-15 23:12:43 +000036670Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036671
36672_ACEOF
36673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036674ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036675ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036676ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036677configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036678 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036679
cristy14fefe52012-05-21 00:59:18 +000036680Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036681This config.status script is free software; the Free Software Foundation
36682gives unlimited permission to copy, distribute and modify it."
36683
36684ac_pwd='$ac_pwd'
36685srcdir='$srcdir'
36686INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036687MKDIR_P='$MKDIR_P'
36688AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036689test -n "\$AWK" || AWK=awk
36690_ACEOF
36691
36692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36693# The default lists apply if the user does not specify any file.
36694ac_need_defaults=:
36695while test $# != 0
36696do
36697 case $1 in
cristyda16f162011-02-19 23:52:17 +000036698 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036699 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36700 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36701 ac_shift=:
36702 ;;
cristyda16f162011-02-19 23:52:17 +000036703 --*=)
36704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36705 ac_optarg=
36706 ac_shift=:
36707 ;;
cristy3ed852e2009-09-05 21:47:34 +000036708 *)
36709 ac_option=$1
36710 ac_optarg=$2
36711 ac_shift=shift
36712 ;;
36713 esac
36714
36715 case $ac_option in
36716 # Handling of the options.
36717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36718 ac_cs_recheck=: ;;
36719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36720 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036721 --config | --confi | --conf | --con | --co | --c )
36722 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036723 --debug | --debu | --deb | --de | --d | -d )
36724 debug=: ;;
36725 --file | --fil | --fi | --f )
36726 $ac_shift
36727 case $ac_optarg in
36728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036729 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036730 esac
cristy8b350f62009-11-15 23:12:43 +000036731 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036732 ac_need_defaults=false;;
36733 --header | --heade | --head | --hea )
36734 $ac_shift
36735 case $ac_optarg in
36736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36737 esac
cristy8b350f62009-11-15 23:12:43 +000036738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036739 ac_need_defaults=false;;
36740 --he | --h)
36741 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036742 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036743Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036744 --help | --hel | -h )
36745 $as_echo "$ac_cs_usage"; exit ;;
36746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36748 ac_cs_silent=: ;;
36749
36750 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036751 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036752Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036753
cristy8b350f62009-11-15 23:12:43 +000036754 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036755 ac_need_defaults=false ;;
36756
36757 esac
36758 shift
36759done
36760
36761ac_configure_extra_args=
36762
36763if $ac_cs_silent; then
36764 exec 6>/dev/null
36765 ac_configure_extra_args="$ac_configure_extra_args --silent"
36766fi
36767
36768_ACEOF
36769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36770if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036771 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036772 shift
36773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36774 CONFIG_SHELL='$SHELL'
36775 export CONFIG_SHELL
36776 exec "\$@"
36777fi
36778
36779_ACEOF
36780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36781exec 5>>config.log
36782{
36783 echo
36784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36785## Running $as_me. ##
36786_ASBOX
36787 $as_echo "$ac_log"
36788} >&5
36789
36790_ACEOF
36791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036792#
36793# INIT-COMMANDS
36794#
36795PACKAGE="$PACKAGE"
36796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36797
36798
36799# The HP-UX ksh and POSIX shell print the target directory to stdout
36800# if CDPATH is set.
36801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36802
36803sed_quote_subst='$sed_quote_subst'
36804double_quote_subst='$double_quote_subst'
36805delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036806SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36807Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36808GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36809EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36810FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36811SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36812ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36814macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36815macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36816AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36817DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36819enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36820enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36821pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36822enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036823PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036824host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36825host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36826host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36827build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36828build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36829build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36830NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36831LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36832max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36833ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36834exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36835lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36836lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36837lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036838lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36839lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036840reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36841reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36842deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36843file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036844file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36845want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36846sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036847AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36848AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036849archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036850STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36851RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36852old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36853old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36854old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36855lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36856CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36857CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36858compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36859GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36860lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36861lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36862lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36863lt_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 +000036864nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36865lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036866objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36867MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36868lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036869lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036870lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036871lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36872lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36873need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036874MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036875DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36876NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36877LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36878OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36879OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36880libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36881shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36882extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36883archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36884enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36885export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36886whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36887compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36888old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36889old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36890archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36891archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36892module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36893module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36894with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36895allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36896no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36897hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036898hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36899hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36900hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36901hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36902hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36903hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36904inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36905link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036906always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36907export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36908exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36909include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36910prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036911postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036912file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36913variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36914need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36915need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36916version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36917runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36918shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36919shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36920libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36921library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36922soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36923install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36924postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36925postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36926finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36927finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36928hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36929sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36930sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36931hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36932enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36933enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36934enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36935old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36936striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36937compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36938predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36939postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36940predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36941postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36942compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36943LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36944reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36945reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36946old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36947compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36948GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36949lt_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 +000036950lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036951lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036952lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36953lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36954archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36955enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36956export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36957whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36958compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36959old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36960old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36961archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36962archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36963module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36964module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36965with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36966allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36967no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36968hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036969hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36970hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36971hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36972hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36973hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36974hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36975inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36976link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036977always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36978export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36979exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36980include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36981prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036982postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036983file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36984hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36985compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36986predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36987postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36988predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36989postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36990compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036991
36992LTCC='$LTCC'
36993LTCFLAGS='$LTCFLAGS'
36994compiler='$compiler_DEFAULT'
36995
cristy0c60a692010-11-04 01:09:47 +000036996# A function that is used when there is no print builtin or printf.
36997func_fallback_echo ()
36998{
36999 eval 'cat <<_LTECHO_EOF
37000\$1
37001_LTECHO_EOF'
37002}
37003
cristy73bd4a52010-10-05 11:24:23 +000037004# Quote evaled strings.
37005for var in SED \
37006GREP \
37007EGREP \
37008FGREP \
cristy0c60a692010-11-04 01:09:47 +000037009SHELL \
37010ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037011LD \
cristy0c60a692010-11-04 01:09:47 +000037012AS \
37013DLLTOOL \
37014OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037015PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037016NM \
37017LN_S \
37018lt_SP2NL \
37019lt_NL2SP \
37020reload_flag \
37021deplibs_check_method \
37022file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037023file_magic_glob \
37024want_nocaseglob \
37025sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037026AR \
37027AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037028archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037029STRIP \
37030RANLIB \
37031CC \
37032CFLAGS \
37033compiler \
37034lt_cv_sys_global_symbol_pipe \
37035lt_cv_sys_global_symbol_to_cdecl \
37036lt_cv_sys_global_symbol_to_c_name_address \
37037lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037038nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037039lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037040lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037041lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037042lt_prog_compiler_static \
37043lt_cv_prog_compiler_c_o \
37044need_locks \
cristyda16f162011-02-19 23:52:17 +000037045MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037046DSYMUTIL \
37047NMEDIT \
37048LIPO \
37049OTOOL \
37050OTOOL64 \
37051shrext_cmds \
37052export_dynamic_flag_spec \
37053whole_archive_flag_spec \
37054compiler_needs_object \
37055with_gnu_ld \
37056allow_undefined_flag \
37057no_undefined_flag \
37058hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037059hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037060exclude_expsyms \
37061include_expsyms \
37062file_list_spec \
37063variables_saved_for_relink \
37064libname_spec \
37065library_names_spec \
37066soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037067install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037068finish_eval \
37069old_striplib \
37070striplib \
37071compiler_lib_search_dirs \
37072predep_objects \
37073postdep_objects \
37074predeps \
37075postdeps \
37076compiler_lib_search_path \
37077LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037078reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037079compiler_CXX \
37080lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037081lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037082lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037083lt_prog_compiler_static_CXX \
37084lt_cv_prog_compiler_c_o_CXX \
37085export_dynamic_flag_spec_CXX \
37086whole_archive_flag_spec_CXX \
37087compiler_needs_object_CXX \
37088with_gnu_ld_CXX \
37089allow_undefined_flag_CXX \
37090no_undefined_flag_CXX \
37091hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037092hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037093exclude_expsyms_CXX \
37094include_expsyms_CXX \
37095file_list_spec_CXX \
37096compiler_lib_search_dirs_CXX \
37097predep_objects_CXX \
37098postdep_objects_CXX \
37099predeps_CXX \
37100postdeps_CXX \
37101compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037102 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037103 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037104 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037105 ;;
37106 *)
37107 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37108 ;;
37109 esac
37110done
37111
37112# Double-quote double-evaled strings.
37113for var in reload_cmds \
37114old_postinstall_cmds \
37115old_postuninstall_cmds \
37116old_archive_cmds \
37117extract_expsyms_cmds \
37118old_archive_from_new_cmds \
37119old_archive_from_expsyms_cmds \
37120archive_cmds \
37121archive_expsym_cmds \
37122module_cmds \
37123module_expsym_cmds \
37124export_symbols_cmds \
37125prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037126postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037127postinstall_cmds \
37128postuninstall_cmds \
37129finish_cmds \
37130sys_lib_search_path_spec \
37131sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037132reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037133old_archive_cmds_CXX \
37134old_archive_from_new_cmds_CXX \
37135old_archive_from_expsyms_cmds_CXX \
37136archive_cmds_CXX \
37137archive_expsym_cmds_CXX \
37138module_cmds_CXX \
37139module_expsym_cmds_CXX \
37140export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037141prelink_cmds_CXX \
37142postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037143 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037144 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037145 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037146 ;;
37147 *)
37148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37149 ;;
37150 esac
37151done
37152
cristy73bd4a52010-10-05 11:24:23 +000037153ac_aux_dir='$ac_aux_dir'
37154xsi_shell='$xsi_shell'
37155lt_shell_append='$lt_shell_append'
37156
37157# See if we are running on zsh, and set the options which allow our
37158# commands through without removal of \ escapes INIT.
37159if test -n "\${ZSH_VERSION+set}" ; then
37160 setopt NO_GLOB_SUBST
37161fi
37162
37163
37164 PACKAGE='$PACKAGE'
37165 VERSION='$VERSION'
37166 TIMESTAMP='$TIMESTAMP'
37167 RM='$RM'
37168 ofile='$ofile'
37169
37170
37171
37172
37173
37174
cristy3ed852e2009-09-05 21:47:34 +000037175_ACEOF
37176
37177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37178
37179# Handling of arguments.
37180for ac_config_target in $ac_config_targets
37181do
37182 case $ac_config_target in
37183 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037184 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037185 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37186 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37187 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37188 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37189 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037190 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037191 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37192 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37193 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37194 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37195 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037196 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037197 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37198 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037199 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37200 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37201 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37203 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37204 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37205 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37206 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37207 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37208 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37209 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37210 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37211 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37212 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37213 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37214 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37215 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37216 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37217 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37218 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037219 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37220 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037223 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037224 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037225 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037226 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037227 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37228 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37229
cristy98dddb52010-11-04 00:30:15 +000037230 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037231 esac
37232done
37233
37234
37235# If the user did not use the arguments to specify the items to instantiate,
37236# then the envvar interface is used. Set only those that are not.
37237# We use the long form for the default assignment because of an extremely
37238# bizarre bug on SunOS 4.1.3.
37239if $ac_need_defaults; then
37240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37243fi
37244
37245# Have a temporary directory for convenience. Make it in the build tree
37246# simply because there is no reason against having it here, and in addition,
37247# creating and moving files from /tmp can sometimes cause problems.
37248# Hook for its removal unless debugging.
37249# Note that there is a small window in which the directory will not be cleaned:
37250# after its creation but before its name has been assigned to `$tmp'.
37251$debug ||
37252{
cristyda16f162011-02-19 23:52:17 +000037253 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037254 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037255 : "${ac_tmp:=$tmp}"
37256 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037257' 0
cristy8b350f62009-11-15 23:12:43 +000037258 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037259}
37260# Create a (secure) tmp directory for tmp files.
37261
37262{
37263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037264 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037265} ||
37266{
37267 tmp=./conf$$-$RANDOM
37268 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037269} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037270ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037271
37272# Set up the scripts for CONFIG_FILES section.
37273# No need to generate them if there are no CONFIG_FILES.
37274# This happens for instance with `./config.status config.h'.
37275if test -n "$CONFIG_FILES"; then
37276
37277
cristy8b350f62009-11-15 23:12:43 +000037278ac_cr=`echo X | tr X '\015'`
37279# On cygwin, bash can eat \r inside `` if the user requested igncr.
37280# But we know of no other shell where ac_cr would be empty at this
37281# point, so we can use a bashism as a fallback.
37282if test "x$ac_cr" = x; then
37283 eval ac_cr=\$\'\\r\'
37284fi
cristy3ed852e2009-09-05 21:47:34 +000037285ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37286if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037287 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037288else
37289 ac_cs_awk_cr=$ac_cr
37290fi
37291
cristyda16f162011-02-19 23:52:17 +000037292echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037293_ACEOF
37294
37295
37296{
37297 echo "cat >conf$$subs.awk <<_ACEOF" &&
37298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37299 echo "_ACEOF"
37300} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37302ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037303ac_delim='%!_!# '
37304for ac_last_try in false false false false false :; do
37305 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037307
37308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37309 if test $ac_delim_n = $ac_delim_num; then
37310 break
37311 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037313 else
37314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37315 fi
37316done
37317rm -f conf$$subs.sh
37318
37319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037320cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037321_ACEOF
37322sed -n '
37323h
37324s/^/S["/; s/!.*/"]=/
37325p
37326g
37327s/^[^!]*!//
37328:repl
37329t repl
37330s/'"$ac_delim"'$//
37331t delim
37332:nl
37333h
cristycd4c5312009-11-22 01:19:08 +000037334s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037335t more1
37336s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37337p
37338n
37339b repl
37340:more1
37341s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37342p
37343g
37344s/.\{148\}//
37345t nl
37346:delim
37347h
cristycd4c5312009-11-22 01:19:08 +000037348s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037349t more2
37350s/["\\]/\\&/g; s/^/"/; s/$/"/
37351p
37352b
37353:more2
37354s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37355p
37356g
37357s/.\{148\}//
37358t delim
37359' <conf$$subs.awk | sed '
37360/^[^""]/{
37361 N
37362 s/\n//
37363}
37364' >>$CONFIG_STATUS || ac_write_fail=1
37365rm -f conf$$subs.awk
37366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37367_ACAWK
cristyda16f162011-02-19 23:52:17 +000037368cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037369 for (key in S) S_is_set[key] = 1
37370 FS = ""
37371
37372}
37373{
37374 line = $ 0
37375 nfields = split(line, field, "@")
37376 substed = 0
37377 len = length(field[1])
37378 for (i = 2; i < nfields; i++) {
37379 key = field[i]
37380 keylen = length(key)
37381 if (S_is_set[key]) {
37382 value = S[key]
37383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37384 len += length(value) + length(field[++i])
37385 substed = 1
37386 } else
37387 len += 1 + keylen
37388 }
37389
37390 print line
37391}
37392
37393_ACAWK
37394_ACEOF
37395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37398else
37399 cat
cristyda16f162011-02-19 23:52:17 +000037400fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037402_ACEOF
37403
cristy98dddb52010-11-04 00:30:15 +000037404# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37405# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037406# trailing colons and then remove the whole line if VPATH becomes empty
37407# (actually we leave an empty line to preserve line numbers).
37408if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37410h
37411s///
37412s/^/:/
37413s/[ ]*$/:/
37414s/:\$(srcdir):/:/g
37415s/:\${srcdir}:/:/g
37416s/:@srcdir@:/:/g
37417s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037418s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037419x
37420s/\(=[ ]*\).*/\1/
37421G
37422s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037423s/^[^=]*=[ ]*$//
37424}'
37425fi
37426
37427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37428fi # test -n "$CONFIG_FILES"
37429
37430# Set up the scripts for CONFIG_HEADERS section.
37431# No need to generate them if there are no CONFIG_HEADERS.
37432# This happens for instance with `./config.status Makefile'.
37433if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037434cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037435BEGIN {
37436_ACEOF
37437
37438# Transform confdefs.h into an awk script `defines.awk', embedded as
37439# here-document in config.status, that substitutes the proper values into
37440# config.h.in to produce config.h.
37441
37442# Create a delimiter string that does not exist in confdefs.h, to ease
37443# handling of long lines.
37444ac_delim='%!_!# '
37445for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37447 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037448 break
37449 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037451 else
37452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37453 fi
37454done
37455
37456# For the awk script, D is an array of macro values keyed by name,
37457# likewise P contains macro parameters if any. Preserve backslash
37458# newline sequences.
37459
37460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37461sed -n '
37462s/.\{148\}/&'"$ac_delim"'/g
37463t rset
37464:rset
37465s/^[ ]*#[ ]*define[ ][ ]*/ /
37466t def
37467d
37468:def
37469s/\\$//
37470t bsnl
37471s/["\\]/\\&/g
37472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37473D["\1"]=" \3"/p
37474s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37475d
37476:bsnl
37477s/["\\]/\\&/g
37478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37479D["\1"]=" \3\\\\\\n"\\/p
37480t cont
37481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37482t cont
37483d
37484:cont
37485n
37486s/.\{148\}/&'"$ac_delim"'/g
37487t clear
37488:clear
37489s/\\$//
37490t bsnlc
37491s/["\\]/\\&/g; s/^/"/; s/$/"/p
37492d
37493:bsnlc
37494s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37495b cont
37496' <confdefs.h | sed '
37497s/'"$ac_delim"'/"\\\
37498"/g' >>$CONFIG_STATUS || ac_write_fail=1
37499
37500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37501 for (key in D) D_is_set[key] = 1
37502 FS = ""
37503}
37504/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37505 line = \$ 0
37506 split(line, arg, " ")
37507 if (arg[1] == "#") {
37508 defundef = arg[2]
37509 mac1 = arg[3]
37510 } else {
37511 defundef = substr(arg[1], 2)
37512 mac1 = arg[2]
37513 }
37514 split(mac1, mac2, "(") #)
37515 macro = mac2[1]
37516 prefix = substr(line, 1, index(line, defundef) - 1)
37517 if (D_is_set[macro]) {
37518 # Preserve the white space surrounding the "#".
37519 print prefix "define", macro P[macro] D[macro]
37520 next
37521 } else {
37522 # Replace #undef with comments. This is necessary, for example,
37523 # in the case of _POSIX_SOURCE, which is predefined and required
37524 # on some systems where configure will not decide to define it.
37525 if (defundef == "undef") {
37526 print "/*", prefix defundef, macro, "*/"
37527 next
37528 }
37529 }
37530}
37531{ print }
37532_ACAWK
37533_ACEOF
37534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037536fi # test -n "$CONFIG_HEADERS"
37537
37538
37539eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37540shift
37541for ac_tag
37542do
37543 case $ac_tag in
37544 :[FHLC]) ac_mode=$ac_tag; continue;;
37545 esac
37546 case $ac_mode$ac_tag in
37547 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037549 :[FH]-) ac_tag=-:-;;
37550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37551 esac
37552 ac_save_IFS=$IFS
37553 IFS=:
37554 set x $ac_tag
37555 IFS=$ac_save_IFS
37556 shift
37557 ac_file=$1
37558 shift
37559
37560 case $ac_mode in
37561 :L) ac_source=$1;;
37562 :[FH])
37563 ac_file_inputs=
37564 for ac_f
37565 do
37566 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037567 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037568 *) # Look for the file first in the build tree, then in the source tree
37569 # (if the path is not absolute). The absolute path cannot be DOS-style,
37570 # because $ac_f cannot contain `:'.
37571 test -f "$ac_f" ||
37572 case $ac_f in
37573 [\\/$]*) false;;
37574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37575 esac ||
cristy98dddb52010-11-04 00:30:15 +000037576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037577 esac
37578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037579 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037580 done
37581
37582 # Let's still pretend it is `configure' which instantiates (i.e., don't
37583 # use $as_me), people would be surprised to read:
37584 # /* config.h. Generated by config.status. */
37585 configure_input='Generated from '`
37586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37587 `' by configure.'
37588 if test x"$ac_file" != x-; then
37589 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037591$as_echo "$as_me: creating $ac_file" >&6;}
37592 fi
37593 # Neutralize special characters interpreted by sed in replacement strings.
37594 case $configure_input in #(
37595 *\&* | *\|* | *\\* )
37596 ac_sed_conf_input=`$as_echo "$configure_input" |
37597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37598 *) ac_sed_conf_input=$configure_input;;
37599 esac
37600
37601 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037604 esac
37605 ;;
37606 esac
37607
37608 ac_dir=`$as_dirname -- "$ac_file" ||
37609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37610 X"$ac_file" : 'X\(//\)[^/]' \| \
37611 X"$ac_file" : 'X\(//\)$' \| \
37612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37613$as_echo X"$ac_file" |
37614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37615 s//\1/
37616 q
37617 }
37618 /^X\(\/\/\)[^/].*/{
37619 s//\1/
37620 q
37621 }
37622 /^X\(\/\/\)$/{
37623 s//\1/
37624 q
37625 }
37626 /^X\(\/\).*/{
37627 s//\1/
37628 q
37629 }
37630 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037631 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037632 ac_builddir=.
37633
37634case "$ac_dir" in
37635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37636*)
37637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37638 # A ".." for each directory in $ac_dir_suffix.
37639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37640 case $ac_top_builddir_sub in
37641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37643 esac ;;
37644esac
37645ac_abs_top_builddir=$ac_pwd
37646ac_abs_builddir=$ac_pwd$ac_dir_suffix
37647# for backward compatibility:
37648ac_top_builddir=$ac_top_build_prefix
37649
37650case $srcdir in
37651 .) # We are building in place.
37652 ac_srcdir=.
37653 ac_top_srcdir=$ac_top_builddir_sub
37654 ac_abs_top_srcdir=$ac_pwd ;;
37655 [\\/]* | ?:[\\/]* ) # Absolute name.
37656 ac_srcdir=$srcdir$ac_dir_suffix;
37657 ac_top_srcdir=$srcdir
37658 ac_abs_top_srcdir=$srcdir ;;
37659 *) # Relative name.
37660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37661 ac_top_srcdir=$ac_top_build_prefix$srcdir
37662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37663esac
37664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37665
37666
37667 case $ac_mode in
37668 :F)
37669 #
37670 # CONFIG_FILE
37671 #
37672
37673 case $INSTALL in
37674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37676 esac
cristy73bd4a52010-10-05 11:24:23 +000037677 ac_MKDIR_P=$MKDIR_P
37678 case $MKDIR_P in
37679 [\\/$]* | ?:[\\/]* ) ;;
37680 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37681 esac
cristy3ed852e2009-09-05 21:47:34 +000037682_ACEOF
37683
37684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37685# If the template does not know about datarootdir, expand it.
37686# FIXME: This hack should be removed a few years after 2.60.
37687ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037688ac_sed_dataroot='
37689/datarootdir/ {
37690 p
37691 q
37692}
37693/@datadir@/p
37694/@docdir@/p
37695/@infodir@/p
37696/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037697/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037698case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37699*datarootdir*) ac_datarootdir_seen=yes;;
37700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037702$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37703_ACEOF
37704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37705 ac_datarootdir_hack='
37706 s&@datadir@&$datadir&g
37707 s&@docdir@&$docdir&g
37708 s&@infodir@&$infodir&g
37709 s&@localedir@&$localedir&g
37710 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037711 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037712esac
37713_ACEOF
37714
37715# Neutralize VPATH when `$srcdir' = `.'.
37716# Shell code in configure.ac might set extrasub.
37717# FIXME: do we really want to maintain this feature?
37718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37719ac_sed_extra="$ac_vpsub
37720$extrasub
37721_ACEOF
37722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37723:t
37724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37725s|@configure_input@|$ac_sed_conf_input|;t t
37726s&@top_builddir@&$ac_top_builddir_sub&;t t
37727s&@top_build_prefix@&$ac_top_build_prefix&;t t
37728s&@srcdir@&$ac_srcdir&;t t
37729s&@abs_srcdir@&$ac_abs_srcdir&;t t
37730s&@top_srcdir@&$ac_top_srcdir&;t t
37731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37732s&@builddir@&$ac_builddir&;t t
37733s&@abs_builddir@&$ac_abs_builddir&;t t
37734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37735s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037736s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037737$ac_datarootdir_hack
37738"
cristyda16f162011-02-19 23:52:17 +000037739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037741
37742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037747which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037748$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037749which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037750
cristyda16f162011-02-19 23:52:17 +000037751 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037752 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037755 esac \
cristy98dddb52010-11-04 00:30:15 +000037756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037757 ;;
37758 :H)
37759 #
37760 # CONFIG_HEADER
37761 #
37762 if test x"$ac_file" != x-; then
37763 {
37764 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37766 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037770$as_echo "$as_me: $ac_file is unchanged" >&6;}
37771 else
37772 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037773 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037775 fi
37776 else
37777 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037779 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037780 fi
cristy73bd4a52010-10-05 11:24:23 +000037781# Compute "$ac_file"'s index in $config_headers.
37782_am_arg="$ac_file"
37783_am_stamp_count=1
37784for _am_header in $config_headers :; do
37785 case $_am_header in
37786 $_am_arg | $_am_arg:* )
37787 break ;;
37788 * )
37789 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37790 esac
37791done
37792echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37793$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37794 X"$_am_arg" : 'X\(//\)[^/]' \| \
37795 X"$_am_arg" : 'X\(//\)$' \| \
37796 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37797$as_echo X"$_am_arg" |
37798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37799 s//\1/
37800 q
37801 }
37802 /^X\(\/\/\)[^/].*/{
37803 s//\1/
37804 q
37805 }
37806 /^X\(\/\/\)$/{
37807 s//\1/
37808 q
37809 }
37810 /^X\(\/\).*/{
37811 s//\1/
37812 q
37813 }
37814 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037815 ;;
37816
cristy8b350f62009-11-15 23:12:43 +000037817 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037818$as_echo "$as_me: executing $ac_file commands" >&6;}
37819 ;;
37820 esac
37821
37822
37823 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037824 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037825ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37826ac_prefix_conf_PKG=`echo MagickCore`
37827ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37828ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37829ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37830if test ".$ac_prefix_conf_INP" = "."; then
37831 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37832 case "$ac_file" in
37833 *.h) ac_prefix_conf_INP=$ac_file ;;
37834 *)
37835 esac
37836 test ".$ac_prefix_conf_INP" != "." && break
37837 done
37838fi
37839if test ".$ac_prefix_conf_INP" = "."; then
37840 case "$ac_prefix_conf_OUT" in
37841 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37842 ;;
37843 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37844 ;;
37845 *) ac_prefix_conf_INP=config.h
37846 ;;
37847 esac
37848fi
37849if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037850 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037851else
37852 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37853 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37854 fi fi
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37856$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37857 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037858 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37859 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37860 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37861 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37862 $as_echo "#endif/" >> conftest.prefix
37863 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37864 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37865 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037866 # now executing _script on _DEF input to create _OUT output file
37867 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37868 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37869 echo ' ' >>$tmp/pconfig.h
37870 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37871
37872 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37873 echo ' ' >>$tmp/pconfig.h
37874 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37875 echo "#endif" >>$tmp/pconfig.h
37876 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37878$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37879 else
37880 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37881$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37882 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37883 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37884 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37885$as_echo X"$ac_prefix_conf_OUT" |
37886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37887 s//\1/
37888 q
37889 }
37890 /^X\(\/\/\)[^/].*/{
37891 s//\1/
37892 q
37893 }
37894 /^X\(\/\/\)$/{
37895 s//\1/
37896 q
37897 }
37898 /^X\(\/\).*/{
37899 s//\1/
37900 q
37901 }
37902 s/.*/./; q'`
37903 as_dir="$ac_dir"; as_fn_mkdir_p
37904 rm -f "$ac_prefix_conf_OUT"
37905 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37906 fi
37907 cp conftest.prefix _configs.sed
37908 else
cristy98dddb52010-11-04 00:30:15 +000037909 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 +000037910 fi
37911 rm -f conftest.*
37912fi
37913 ;;
37914 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37915 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37916 # are listed without --file. Let's play safe and only enable the eval
37917 # if we detect the quoting.
37918 case $CONFIG_FILES in
37919 *\'*) eval set x "$CONFIG_FILES" ;;
37920 *) set x $CONFIG_FILES ;;
37921 esac
37922 shift
37923 for mf
37924 do
37925 # Strip MF so we end up with the name of the file.
37926 mf=`echo "$mf" | sed -e 's/:.*$//'`
37927 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037928 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037929 # some people rename them; so instead we look at the file content.
37930 # Grep'ing the first line is not enough: some people post-process
37931 # each Makefile.in and add a new line on top of each file to say so.
37932 # Grep'ing the whole file is not good either: AIX grep has a line
37933 # limit of 2048, but all sed's we know have understand at least 4000.
37934 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37935 dirpart=`$as_dirname -- "$mf" ||
37936$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37937 X"$mf" : 'X\(//\)[^/]' \| \
37938 X"$mf" : 'X\(//\)$' \| \
37939 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37940$as_echo X"$mf" |
37941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37942 s//\1/
37943 q
37944 }
37945 /^X\(\/\/\)[^/].*/{
37946 s//\1/
37947 q
37948 }
37949 /^X\(\/\/\)$/{
37950 s//\1/
37951 q
37952 }
37953 /^X\(\/\).*/{
37954 s//\1/
37955 q
37956 }
37957 s/.*/./; q'`
37958 else
37959 continue
37960 fi
37961 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037962 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037963 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37964 test -z "$DEPDIR" && continue
37965 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37966 test -z "am__include" && continue
37967 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037968 # Find all dependency output files, they are included files with
37969 # $(DEPDIR) in their names. We invoke sed twice because it is the
37970 # simplest approach to changing $(DEPDIR) to its actual value in the
37971 # expansion.
37972 for file in `sed -n "
37973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037975 # Make sure the directory exists.
37976 test -f "$dirpart/$file" && continue
37977 fdir=`$as_dirname -- "$file" ||
37978$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37979 X"$file" : 'X\(//\)[^/]' \| \
37980 X"$file" : 'X\(//\)$' \| \
37981 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37982$as_echo X"$file" |
37983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37984 s//\1/
37985 q
37986 }
37987 /^X\(\/\/\)[^/].*/{
37988 s//\1/
37989 q
37990 }
37991 /^X\(\/\/\)$/{
37992 s//\1/
37993 q
37994 }
37995 /^X\(\/\).*/{
37996 s//\1/
37997 q
37998 }
37999 s/.*/./; q'`
38000 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38001 # echo "creating $dirpart/$file"
38002 echo '# dummy' > "$dirpart/$file"
38003 done
38004 done
38005}
38006 ;;
38007 "libtool":C)
38008
38009 # See if we are running on zsh, and set the options which allow our
38010 # commands through without removal of \ escapes.
38011 if test -n "${ZSH_VERSION+set}" ; then
38012 setopt NO_GLOB_SUBST
38013 fi
38014
38015 cfgfile="${ofile}T"
38016 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38017 $RM "$cfgfile"
38018
38019 cat <<_LT_EOF >> "$cfgfile"
38020#! $SHELL
38021
38022# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38023# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38025# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38026#
38027# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038028# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38029# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038030# Written by Gordon Matzigkeit, 1996
38031#
38032# This file is part of GNU Libtool.
38033#
38034# GNU Libtool is free software; you can redistribute it and/or
38035# modify it under the terms of the GNU General Public License as
38036# published by the Free Software Foundation; either version 2 of
38037# the License, or (at your option) any later version.
38038#
38039# As a special exception to the GNU General Public License,
38040# if you distribute this file as part of a program or library that
38041# is built using GNU Libtool, you may include this file under the
38042# same distribution terms that you use for the rest of that program.
38043#
38044# GNU Libtool is distributed in the hope that it will be useful,
38045# but WITHOUT ANY WARRANTY; without even the implied warranty of
38046# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38047# GNU General Public License for more details.
38048#
38049# You should have received a copy of the GNU General Public License
38050# along with GNU Libtool; see the file COPYING. If not, a copy
38051# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38052# obtained by writing to the Free Software Foundation, Inc.,
38053# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38054
38055
38056# The names of the tagged configurations supported by this script.
38057available_tags="CXX "
38058
38059# ### BEGIN LIBTOOL CONFIG
38060
38061# A sed program that does not truncate output.
38062SED=$lt_SED
38063
38064# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38065Xsed="\$SED -e 1s/^X//"
38066
38067# A grep program that handles long lines.
38068GREP=$lt_GREP
38069
38070# An ERE matcher.
38071EGREP=$lt_EGREP
38072
38073# A literal string matcher.
38074FGREP=$lt_FGREP
38075
cristy0c60a692010-11-04 01:09:47 +000038076# Shell to use when invoking shell scripts.
38077SHELL=$lt_SHELL
38078
38079# An echo program that protects backslashes.
38080ECHO=$lt_ECHO
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# Which release of libtool.m4 was used?
38083macro_version=$macro_version
38084macro_revision=$macro_revision
38085
38086# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038087AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038088
38089# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038090DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038091
38092# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038093OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038094
38095# Whether or not to build shared libraries.
38096build_libtool_libs=$enable_shared
38097
38098# Whether or not to build static libraries.
38099build_old_libs=$enable_static
38100
38101# What type of objects to build.
38102pic_mode=$pic_mode
38103
38104# Whether or not to optimize for fast installation.
38105fast_install=$enable_fast_install
38106
cristy99bd5232011-12-07 14:38:20 +000038107# The PATH separator for the build system.
38108PATH_SEPARATOR=$lt_PATH_SEPARATOR
38109
cristy73bd4a52010-10-05 11:24:23 +000038110# The host system.
38111host_alias=$host_alias
38112host=$host
38113host_os=$host_os
38114
38115# The build system.
38116build_alias=$build_alias
38117build=$build
38118build_os=$build_os
38119
38120# A BSD- or MS-compatible name lister.
38121NM=$lt_NM
38122
38123# Whether we need soft or hard links.
38124LN_S=$lt_LN_S
38125
38126# What is the maximum length of a command?
38127max_cmd_len=$max_cmd_len
38128
38129# Object file suffix (normally "o").
38130objext=$ac_objext
38131
38132# Executable file suffix (normally "").
38133exeext=$exeext
38134
38135# whether the shell understands "unset".
38136lt_unset=$lt_unset
38137
38138# turn spaces into newlines.
38139SP2NL=$lt_lt_SP2NL
38140
38141# turn newlines into spaces.
38142NL2SP=$lt_lt_NL2SP
38143
cristyda16f162011-02-19 23:52:17 +000038144# convert \$build file names to \$host format.
38145to_host_file_cmd=$lt_cv_to_host_file_cmd
38146
38147# convert \$build files to toolchain format.
38148to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38149
cristy73bd4a52010-10-05 11:24:23 +000038150# Method to check whether dependent libraries are shared objects.
38151deplibs_check_method=$lt_deplibs_check_method
38152
cristyda16f162011-02-19 23:52:17 +000038153# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038154file_magic_cmd=$lt_file_magic_cmd
38155
cristyda16f162011-02-19 23:52:17 +000038156# How to find potential files when deplibs_check_method = "file_magic".
38157file_magic_glob=$lt_file_magic_glob
38158
38159# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38160want_nocaseglob=$lt_want_nocaseglob
38161
38162# Command to associate shared and link libraries.
38163sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38164
cristy73bd4a52010-10-05 11:24:23 +000038165# The archiver.
38166AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038167
38168# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038169AR_FLAGS=$lt_AR_FLAGS
38170
cristyda16f162011-02-19 23:52:17 +000038171# How to feed a file listing to the archiver.
38172archiver_list_spec=$lt_archiver_list_spec
38173
cristy73bd4a52010-10-05 11:24:23 +000038174# A symbol stripping program.
38175STRIP=$lt_STRIP
38176
38177# Commands used to install an old-style archive.
38178RANLIB=$lt_RANLIB
38179old_postinstall_cmds=$lt_old_postinstall_cmds
38180old_postuninstall_cmds=$lt_old_postuninstall_cmds
38181
cristy0c60a692010-11-04 01:09:47 +000038182# Whether to use a lock for old archive extraction.
38183lock_old_archive_extraction=$lock_old_archive_extraction
38184
cristy73bd4a52010-10-05 11:24:23 +000038185# A C compiler.
38186LTCC=$lt_CC
38187
38188# LTCC compiler flags.
38189LTCFLAGS=$lt_CFLAGS
38190
38191# Take the output of nm and produce a listing of raw symbols and C names.
38192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38193
38194# Transform the output of nm in a proper C declaration.
38195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38196
38197# Transform the output of nm in a C name address pair.
38198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38199
38200# Transform the output of nm in a C name address pair when lib prefix is needed.
38201global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38202
cristyda16f162011-02-19 23:52:17 +000038203# Specify filename containing input files for \$NM.
38204nm_file_list_spec=$lt_nm_file_list_spec
38205
38206# The root where to search for dependent libraries,and in which our libraries should be installed.
38207lt_sysroot=$lt_sysroot
38208
cristy73bd4a52010-10-05 11:24:23 +000038209# The name of the directory that contains temporary libtool files.
38210objdir=$objdir
38211
cristy73bd4a52010-10-05 11:24:23 +000038212# Used to examine libraries when file_magic_cmd begins with "file".
38213MAGIC_CMD=$MAGIC_CMD
38214
38215# Must we lock files when doing compilation?
38216need_locks=$lt_need_locks
38217
cristyda16f162011-02-19 23:52:17 +000038218# Manifest tool.
38219MANIFEST_TOOL=$lt_MANIFEST_TOOL
38220
cristy73bd4a52010-10-05 11:24:23 +000038221# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38222DSYMUTIL=$lt_DSYMUTIL
38223
38224# Tool to change global to local symbols on Mac OS X.
38225NMEDIT=$lt_NMEDIT
38226
38227# Tool to manipulate fat objects and archives on Mac OS X.
38228LIPO=$lt_LIPO
38229
38230# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38231OTOOL=$lt_OTOOL
38232
38233# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38234OTOOL64=$lt_OTOOL64
38235
38236# Old archive suffix (normally "a").
38237libext=$libext
38238
38239# Shared library suffix (normally ".so").
38240shrext_cmds=$lt_shrext_cmds
38241
38242# The commands to extract the exported symbol list from a shared archive.
38243extract_expsyms_cmds=$lt_extract_expsyms_cmds
38244
38245# Variables whose values should be saved in libtool wrapper scripts and
38246# restored at link time.
38247variables_saved_for_relink=$lt_variables_saved_for_relink
38248
38249# Do we need the "lib" prefix for modules?
38250need_lib_prefix=$need_lib_prefix
38251
38252# Do we need a version for libraries?
38253need_version=$need_version
38254
38255# Library versioning type.
38256version_type=$version_type
38257
38258# Shared library runtime path variable.
38259runpath_var=$runpath_var
38260
38261# Shared library path variable.
38262shlibpath_var=$shlibpath_var
38263
38264# Is shlibpath searched before the hard-coded library search path?
38265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38266
38267# Format of library name prefix.
38268libname_spec=$lt_libname_spec
38269
38270# List of archive names. First name is the real one, the rest are links.
38271# The last name is the one that the linker finds with -lNAME
38272library_names_spec=$lt_library_names_spec
38273
38274# The coded name of the library, if different from the real name.
38275soname_spec=$lt_soname_spec
38276
cristy0c60a692010-11-04 01:09:47 +000038277# Permission mode override for installation of shared libraries.
38278install_override_mode=$lt_install_override_mode
38279
cristy73bd4a52010-10-05 11:24:23 +000038280# Command to use after installation of a shared archive.
38281postinstall_cmds=$lt_postinstall_cmds
38282
38283# Command to use after uninstallation of a shared archive.
38284postuninstall_cmds=$lt_postuninstall_cmds
38285
38286# Commands used to finish a libtool library installation in a directory.
38287finish_cmds=$lt_finish_cmds
38288
38289# As "finish_cmds", except a single script fragment to be evaled but
38290# not shown.
38291finish_eval=$lt_finish_eval
38292
38293# Whether we should hardcode library paths into libraries.
38294hardcode_into_libs=$hardcode_into_libs
38295
38296# Compile-time system search path for libraries.
38297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38298
38299# Run-time system search path for libraries.
38300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38301
38302# Whether dlopen is supported.
38303dlopen_support=$enable_dlopen
38304
38305# Whether dlopen of programs is supported.
38306dlopen_self=$enable_dlopen_self
38307
38308# Whether dlopen of statically linked programs is supported.
38309dlopen_self_static=$enable_dlopen_self_static
38310
38311# Commands to strip libraries.
38312old_striplib=$lt_old_striplib
38313striplib=$lt_striplib
38314
38315
38316# The linker used to build libraries.
38317LD=$lt_LD
38318
cristy0c60a692010-11-04 01:09:47 +000038319# How to create reloadable object files.
38320reload_flag=$lt_reload_flag
38321reload_cmds=$lt_reload_cmds
38322
cristy73bd4a52010-10-05 11:24:23 +000038323# Commands used to build an old-style archive.
38324old_archive_cmds=$lt_old_archive_cmds
38325
38326# A language specific compiler.
38327CC=$lt_compiler
38328
38329# Is the compiler the GNU compiler?
38330with_gcc=$GCC
38331
38332# Compiler flag to turn off builtin functions.
38333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38334
cristy73bd4a52010-10-05 11:24:23 +000038335# Additional compiler flags for building library objects.
38336pic_flag=$lt_lt_prog_compiler_pic
38337
cristyda16f162011-02-19 23:52:17 +000038338# How to pass a linker flag through the compiler.
38339wl=$lt_lt_prog_compiler_wl
38340
cristy73bd4a52010-10-05 11:24:23 +000038341# Compiler flag to prevent dynamic linking.
38342link_static_flag=$lt_lt_prog_compiler_static
38343
38344# Does compiler simultaneously support -c and -o options?
38345compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38346
38347# Whether or not to add -lc for building shared libraries.
38348build_libtool_need_lc=$archive_cmds_need_lc
38349
38350# Whether or not to disallow shared libs when runtime libs are static.
38351allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38352
38353# Compiler flag to allow reflexive dlopens.
38354export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38355
38356# Compiler flag to generate shared objects directly from archives.
38357whole_archive_flag_spec=$lt_whole_archive_flag_spec
38358
38359# Whether the compiler copes with passing no objects directly.
38360compiler_needs_object=$lt_compiler_needs_object
38361
38362# Create an old-style archive from a shared archive.
38363old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38364
38365# Create a temporary old-style archive to link instead of a shared archive.
38366old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38367
38368# Commands used to build a shared archive.
38369archive_cmds=$lt_archive_cmds
38370archive_expsym_cmds=$lt_archive_expsym_cmds
38371
38372# Commands used to build a loadable module if different from building
38373# a shared archive.
38374module_cmds=$lt_module_cmds
38375module_expsym_cmds=$lt_module_expsym_cmds
38376
38377# Whether we are building with GNU ld or not.
38378with_gnu_ld=$lt_with_gnu_ld
38379
38380# Flag that allows shared libraries with undefined symbols to be built.
38381allow_undefined_flag=$lt_allow_undefined_flag
38382
38383# Flag that enforces no undefined symbols.
38384no_undefined_flag=$lt_no_undefined_flag
38385
38386# Flag to hardcode \$libdir into a binary during linking.
38387# This must work even if \$libdir does not exist
38388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38389
cristy73bd4a52010-10-05 11:24:23 +000038390# Whether we need a single "-rpath" flag with a separated argument.
38391hardcode_libdir_separator=$lt_hardcode_libdir_separator
38392
38393# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38394# DIR into the resulting binary.
38395hardcode_direct=$hardcode_direct
38396
38397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38398# DIR into the resulting binary and the resulting library dependency is
38399# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38400# library is relocated.
38401hardcode_direct_absolute=$hardcode_direct_absolute
38402
38403# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38404# into the resulting binary.
38405hardcode_minus_L=$hardcode_minus_L
38406
38407# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38408# into the resulting binary.
38409hardcode_shlibpath_var=$hardcode_shlibpath_var
38410
38411# Set to "yes" if building a shared library automatically hardcodes DIR
38412# into the library and all subsequent libraries and executables linked
38413# against it.
38414hardcode_automatic=$hardcode_automatic
38415
38416# Set to yes if linker adds runtime paths of dependent libraries
38417# to runtime path list.
38418inherit_rpath=$inherit_rpath
38419
38420# Whether libtool must link a program against all its dependency libraries.
38421link_all_deplibs=$link_all_deplibs
38422
cristy73bd4a52010-10-05 11:24:23 +000038423# Set to "yes" if exported symbols are required.
38424always_export_symbols=$always_export_symbols
38425
38426# The commands to list exported symbols.
38427export_symbols_cmds=$lt_export_symbols_cmds
38428
38429# Symbols that should not be listed in the preloaded symbols.
38430exclude_expsyms=$lt_exclude_expsyms
38431
38432# Symbols that must always be exported.
38433include_expsyms=$lt_include_expsyms
38434
38435# Commands necessary for linking programs (against libraries) with templates.
38436prelink_cmds=$lt_prelink_cmds
38437
cristyda16f162011-02-19 23:52:17 +000038438# Commands necessary for finishing linking programs.
38439postlink_cmds=$lt_postlink_cmds
38440
cristy73bd4a52010-10-05 11:24:23 +000038441# Specify filename containing input files.
38442file_list_spec=$lt_file_list_spec
38443
38444# How to hardcode a shared library path into an executable.
38445hardcode_action=$hardcode_action
38446
38447# The directories searched by this compiler when creating a shared library.
38448compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38449
38450# Dependencies to place before and after the objects being linked to
38451# create a shared library.
38452predep_objects=$lt_predep_objects
38453postdep_objects=$lt_postdep_objects
38454predeps=$lt_predeps
38455postdeps=$lt_postdeps
38456
38457# The library search path used internally by the compiler when linking
38458# a shared library.
38459compiler_lib_search_path=$lt_compiler_lib_search_path
38460
38461# ### END LIBTOOL CONFIG
38462
38463_LT_EOF
38464
38465 case $host_os in
38466 aix3*)
38467 cat <<\_LT_EOF >> "$cfgfile"
38468# AIX sometimes has problems with the GCC collect2 program. For some
38469# reason, if we set the COLLECT_NAMES environment variable, the problems
38470# vanish in a puff of smoke.
38471if test "X${COLLECT_NAMES+set}" != Xset; then
38472 COLLECT_NAMES=
38473 export COLLECT_NAMES
38474fi
38475_LT_EOF
38476 ;;
38477 esac
38478
38479
38480ltmain="$ac_aux_dir/ltmain.sh"
38481
38482
38483 # We use sed instead of cat because bash on DJGPP gets confused if
38484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38485 # text mode, it properly converts lines to CR/LF. This bash problem
38486 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038487 sed '$q' "$ltmain" >> "$cfgfile" \
38488 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038489
cristyda16f162011-02-19 23:52:17 +000038490 if test x"$xsi_shell" = xyes; then
38491 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38492func_dirname ()\
38493{\
38494\ case ${1} in\
38495\ */*) func_dirname_result="${1%/*}${2}" ;;\
38496\ * ) func_dirname_result="${3}" ;;\
38497\ esac\
38498} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38499 && mv -f "$cfgfile.tmp" "$cfgfile" \
38500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38501test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038502
38503
cristyda16f162011-02-19 23:52:17 +000038504 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38505func_basename ()\
38506{\
38507\ func_basename_result="${1##*/}"\
38508} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38509 && mv -f "$cfgfile.tmp" "$cfgfile" \
38510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38511test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038512
38513
cristyda16f162011-02-19 23:52:17 +000038514 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38515func_dirname_and_basename ()\
38516{\
38517\ case ${1} in\
38518\ */*) func_dirname_result="${1%/*}${2}" ;;\
38519\ * ) func_dirname_result="${3}" ;;\
38520\ esac\
38521\ func_basename_result="${1##*/}"\
38522} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38523 && mv -f "$cfgfile.tmp" "$cfgfile" \
38524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38525test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038526
cristyda16f162011-02-19 23:52:17 +000038527
38528 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38529func_stripname ()\
38530{\
38531\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38532\ # positional parameters, so assign one to ordinary parameter first.\
38533\ func_stripname_result=${3}\
38534\ func_stripname_result=${func_stripname_result#"${1}"}\
38535\ func_stripname_result=${func_stripname_result%"${2}"}\
38536} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38537 && mv -f "$cfgfile.tmp" "$cfgfile" \
38538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38539test 0 -eq $? || _lt_function_replace_fail=:
38540
38541
38542 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38543func_split_long_opt ()\
38544{\
38545\ func_split_long_opt_name=${1%%=*}\
38546\ func_split_long_opt_arg=${1#*=}\
38547} # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
38554func_split_short_opt ()\
38555{\
38556\ func_split_short_opt_arg=${1#??}\
38557\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38558} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38559 && mv -f "$cfgfile.tmp" "$cfgfile" \
38560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38561test 0 -eq $? || _lt_function_replace_fail=:
38562
38563
38564 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38565func_lo2o ()\
38566{\
38567\ case ${1} in\
38568\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38569\ *) func_lo2o_result=${1} ;;\
38570\ esac\
38571} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38572 && mv -f "$cfgfile.tmp" "$cfgfile" \
38573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38574test 0 -eq $? || _lt_function_replace_fail=:
38575
38576
38577 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38578func_xform ()\
38579{\
38580 func_xform_result=${1%.*}.lo\
38581} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38582 && mv -f "$cfgfile.tmp" "$cfgfile" \
38583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38584test 0 -eq $? || _lt_function_replace_fail=:
38585
38586
38587 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38588func_arith ()\
38589{\
38590 func_arith_result=$(( $* ))\
38591} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38592 && mv -f "$cfgfile.tmp" "$cfgfile" \
38593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38594test 0 -eq $? || _lt_function_replace_fail=:
38595
38596
38597 sed -e '/^func_len ()$/,/^} # func_len /c\
38598func_len ()\
38599{\
38600 func_len_result=${#1}\
38601} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38602 && mv -f "$cfgfile.tmp" "$cfgfile" \
38603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38604test 0 -eq $? || _lt_function_replace_fail=:
38605
38606fi
38607
38608if test x"$lt_shell_append" = xyes; then
38609 sed -e '/^func_append ()$/,/^} # func_append /c\
38610func_append ()\
38611{\
38612 eval "${1}+=\\${2}"\
38613} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38614 && mv -f "$cfgfile.tmp" "$cfgfile" \
38615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38616test 0 -eq $? || _lt_function_replace_fail=:
38617
38618
38619 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38620func_append_quoted ()\
38621{\
38622\ func_quote_for_eval "${2}"\
38623\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38624} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38625 && mv -f "$cfgfile.tmp" "$cfgfile" \
38626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38627test 0 -eq $? || _lt_function_replace_fail=:
38628
38629
38630 # Save a `func_append' function call where possible by direct use of '+='
38631 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38632 && mv -f "$cfgfile.tmp" "$cfgfile" \
38633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38634 test 0 -eq $? || _lt_function_replace_fail=:
38635else
38636 # Save a `func_append' function call even when '+=' is not available
38637 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38638 && mv -f "$cfgfile.tmp" "$cfgfile" \
38639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38640 test 0 -eq $? || _lt_function_replace_fail=:
38641fi
38642
38643if test x"$_lt_function_replace_fail" = x":"; then
38644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38645$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38646fi
38647
38648
38649 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38651 chmod +x "$ofile"
38652
38653
38654 cat <<_LT_EOF >> "$ofile"
38655
38656# ### BEGIN LIBTOOL TAG CONFIG: CXX
38657
38658# The linker used to build libraries.
38659LD=$lt_LD_CXX
38660
cristy0c60a692010-11-04 01:09:47 +000038661# How to create reloadable object files.
38662reload_flag=$lt_reload_flag_CXX
38663reload_cmds=$lt_reload_cmds_CXX
38664
cristy73bd4a52010-10-05 11:24:23 +000038665# Commands used to build an old-style archive.
38666old_archive_cmds=$lt_old_archive_cmds_CXX
38667
38668# A language specific compiler.
38669CC=$lt_compiler_CXX
38670
38671# Is the compiler the GNU compiler?
38672with_gcc=$GCC_CXX
38673
38674# Compiler flag to turn off builtin functions.
38675no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38676
cristy73bd4a52010-10-05 11:24:23 +000038677# Additional compiler flags for building library objects.
38678pic_flag=$lt_lt_prog_compiler_pic_CXX
38679
cristyda16f162011-02-19 23:52:17 +000038680# How to pass a linker flag through the compiler.
38681wl=$lt_lt_prog_compiler_wl_CXX
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# Compiler flag to prevent dynamic linking.
38684link_static_flag=$lt_lt_prog_compiler_static_CXX
38685
38686# Does compiler simultaneously support -c and -o options?
38687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38688
38689# Whether or not to add -lc for building shared libraries.
38690build_libtool_need_lc=$archive_cmds_need_lc_CXX
38691
38692# Whether or not to disallow shared libs when runtime libs are static.
38693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38694
38695# Compiler flag to allow reflexive dlopens.
38696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38697
38698# Compiler flag to generate shared objects directly from archives.
38699whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38700
38701# Whether the compiler copes with passing no objects directly.
38702compiler_needs_object=$lt_compiler_needs_object_CXX
38703
38704# Create an old-style archive from a shared archive.
38705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38706
38707# Create a temporary old-style archive to link instead of a shared archive.
38708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38709
38710# Commands used to build a shared archive.
38711archive_cmds=$lt_archive_cmds_CXX
38712archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38713
38714# Commands used to build a loadable module if different from building
38715# a shared archive.
38716module_cmds=$lt_module_cmds_CXX
38717module_expsym_cmds=$lt_module_expsym_cmds_CXX
38718
38719# Whether we are building with GNU ld or not.
38720with_gnu_ld=$lt_with_gnu_ld_CXX
38721
38722# Flag that allows shared libraries with undefined symbols to be built.
38723allow_undefined_flag=$lt_allow_undefined_flag_CXX
38724
38725# Flag that enforces no undefined symbols.
38726no_undefined_flag=$lt_no_undefined_flag_CXX
38727
38728# Flag to hardcode \$libdir into a binary during linking.
38729# This must work even if \$libdir does not exist
38730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38731
cristy73bd4a52010-10-05 11:24:23 +000038732# Whether we need a single "-rpath" flag with a separated argument.
38733hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38734
38735# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38736# DIR into the resulting binary.
38737hardcode_direct=$hardcode_direct_CXX
38738
38739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38740# DIR into the resulting binary and the resulting library dependency is
38741# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38742# library is relocated.
38743hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38744
38745# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38746# into the resulting binary.
38747hardcode_minus_L=$hardcode_minus_L_CXX
38748
38749# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38750# into the resulting binary.
38751hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38752
38753# Set to "yes" if building a shared library automatically hardcodes DIR
38754# into the library and all subsequent libraries and executables linked
38755# against it.
38756hardcode_automatic=$hardcode_automatic_CXX
38757
38758# Set to yes if linker adds runtime paths of dependent libraries
38759# to runtime path list.
38760inherit_rpath=$inherit_rpath_CXX
38761
38762# Whether libtool must link a program against all its dependency libraries.
38763link_all_deplibs=$link_all_deplibs_CXX
38764
cristy73bd4a52010-10-05 11:24:23 +000038765# Set to "yes" if exported symbols are required.
38766always_export_symbols=$always_export_symbols_CXX
38767
38768# The commands to list exported symbols.
38769export_symbols_cmds=$lt_export_symbols_cmds_CXX
38770
38771# Symbols that should not be listed in the preloaded symbols.
38772exclude_expsyms=$lt_exclude_expsyms_CXX
38773
38774# Symbols that must always be exported.
38775include_expsyms=$lt_include_expsyms_CXX
38776
38777# Commands necessary for linking programs (against libraries) with templates.
38778prelink_cmds=$lt_prelink_cmds_CXX
38779
cristyda16f162011-02-19 23:52:17 +000038780# Commands necessary for finishing linking programs.
38781postlink_cmds=$lt_postlink_cmds_CXX
38782
cristy73bd4a52010-10-05 11:24:23 +000038783# Specify filename containing input files.
38784file_list_spec=$lt_file_list_spec_CXX
38785
38786# How to hardcode a shared library path into an executable.
38787hardcode_action=$hardcode_action_CXX
38788
38789# The directories searched by this compiler when creating a shared library.
38790compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38791
38792# Dependencies to place before and after the objects being linked to
38793# create a shared library.
38794predep_objects=$lt_predep_objects_CXX
38795postdep_objects=$lt_postdep_objects_CXX
38796predeps=$lt_predeps_CXX
38797postdeps=$lt_postdeps_CXX
38798
38799# The library search path used internally by the compiler when linking
38800# a shared library.
38801compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38802
38803# ### END LIBTOOL TAG CONFIG: CXX
38804_LT_EOF
38805
38806 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038807 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038808 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038809 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038810 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38811 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38812
38813 esac
38814done # for ac_tag
38815
38816
cristy8b350f62009-11-15 23:12:43 +000038817as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038818_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038819ac_clean_files=$ac_clean_files_save
38820
38821test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038823
38824
38825# configure is writing to config.log, and then calls config.status.
38826# config.status does its own redirection, appending to config.log.
38827# Unfortunately, on DOS this fails, as config.log is still kept open
38828# by configure, so config.status won't be able to write to it; its
38829# output is simply discarded. So we exec the FD to /dev/null,
38830# effectively closing config.log, so it can be properly (re)opened and
38831# appended to by config.status. When coming back to configure, we
38832# need to make the FD available again.
38833if test "$no_create" != yes; then
38834 ac_cs_success=:
38835 ac_config_status_args=
38836 test "$silent" = yes &&
38837 ac_config_status_args="$ac_config_status_args --quiet"
38838 exec 5>/dev/null
38839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38840 exec 5>>config.log
38841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38842 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038843 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038844fi
38845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038847$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38848fi
38849
38850
38851rm -f magick-version
38852
cristy430a7312010-01-21 20:44:04 +000038853result_dejavu_font_dir='none'
38854if test "${dejavu_font_dir}x" != 'x'; then
38855 result_dejavu_font_dir=$dejavu_font_dir
38856fi
38857
cristy3ed852e2009-09-05 21:47:34 +000038858result_ghostscript_font_dir='none'
38859if test "${ghostscript_font_dir}x" != 'x'; then
38860 result_ghostscript_font_dir=$ghostscript_font_dir
38861fi
38862
38863result_windows_font_dir='none'
38864if test "${windows_font_dir}x" != 'x'; then
38865 result_windows_font_dir=${windows_font_dir}
38866fi
38867
cristy09b53e12011-10-14 12:47:22 +000038868{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038869ImageMagick is configured as follows. Please verify that this configuration
38870matches your expectations.
38871
38872Host system type: $host
38873Build system type: $build
38874
38875 Option Value
38876-------------------------------------------------------------------------------
38877Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38878Static libraries --enable-static=$enable_static $libtool_build_static_libs
38879Module support --with-modules=$with_modules $with_modules
38880GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38881Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38882High Dynamic Range Imagery
38883 --enable-hdri=$enable_hdri $enable_hdri
38884
38885Delegate Configuration:
38886BZLIB --with-bzlib=$with_bzlib $have_bzlib
38887Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038888Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038889DJVU --with-djvu=$with_djvu $have_djvu
38890DPS --with-dps=$with_dps $have_dps
38891FFTW --with-fftw=$with_fftw $have_fftw
38892FlashPIX --with-fpx=$with_fpx $have_fpx
38893FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38894FreeType --with-freetype=$with_freetype $have_freetype
38895GhostPCL None $PCLDelegate ($PCLVersion)
38896GhostXPS None $XPSDelegate ($XPSVersion)
38897Ghostscript None $PSDelegate ($GSVersion)
38898Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38899Ghostscript lib --with-gslib=$with_gslib $have_gslib
38900Graphviz --with-gvc=$with_gvc $have_gvc
38901JBIG --with-jbig=$with_jbig $have_jbig
38902JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38903JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038904LCMS v1 --with-lcms=$with_lcms $have_lcms
38905LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038906LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038907LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038908Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38909OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038910PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038911PERL --with-perl=$with_perl $have_perl
38912PNG --with-png=$with_png $have_png
38913RSVG --with-rsvg=$with_rsvg $have_rsvg
38914TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038915WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038916Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38917WMF --with-wmf=$with_wmf $have_wmf
38918X11 --with-x=$with_x $have_x
38919XML --with-xml=$with_xml $have_xml
38920ZLIB --with-zlib=$with_zlib $have_zlib
38921
38922X11 Configuration:
38923 X_CFLAGS = $X_CFLAGS
38924 X_PRE_LIBS = $X_PRE_LIBS
38925 X_LIBS = $X_LIBS
38926 X_EXTRA_LIBS = $X_EXTRA_LIBS
38927
38928Options used to compile and link:
38929 PREFIX = $PREFIX_DIR
38930 EXEC-PREFIX = $EXEC_PREFIX_DIR
38931 VERSION = $PACKAGE_VERSION
38932 CC = $CC
38933 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038934 CPPFLAGS = $MAGICK_CPPFLAGS
38935 PCFLAGS = $MAGICK_PCFLAGS
38936 DEFS = $DEFS
38937 LDFLAGS = $LDFLAGS
38938 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38939 LIBS = $MAGICK_LIBS
38940 CXX = $CXX
38941 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038942 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038943" >&5
cristy09b53e12011-10-14 12:47:22 +000038944$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038945ImageMagick is configured as follows. Please verify that this configuration
38946matches your expectations.
38947
38948Host system type: $host
38949Build system type: $build
38950
38951 Option Value
38952-------------------------------------------------------------------------------
38953Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38954Static libraries --enable-static=$enable_static $libtool_build_static_libs
38955Module support --with-modules=$with_modules $with_modules
38956GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38957Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38958High Dynamic Range Imagery
38959 --enable-hdri=$enable_hdri $enable_hdri
38960
38961Delegate Configuration:
38962BZLIB --with-bzlib=$with_bzlib $have_bzlib
38963Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038964Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038965DJVU --with-djvu=$with_djvu $have_djvu
38966DPS --with-dps=$with_dps $have_dps
38967FFTW --with-fftw=$with_fftw $have_fftw
38968FlashPIX --with-fpx=$with_fpx $have_fpx
38969FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38970FreeType --with-freetype=$with_freetype $have_freetype
38971GhostPCL None $PCLDelegate ($PCLVersion)
38972GhostXPS None $XPSDelegate ($XPSVersion)
38973Ghostscript None $PSDelegate ($GSVersion)
38974Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38975Ghostscript lib --with-gslib=$with_gslib $have_gslib
38976Graphviz --with-gvc=$with_gvc $have_gvc
38977JBIG --with-jbig=$with_jbig $have_jbig
38978JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38979JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038980LCMS v1 --with-lcms=$with_lcms $have_lcms
38981LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038982LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038983LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038984Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38985OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038986PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038987PERL --with-perl=$with_perl $have_perl
38988PNG --with-png=$with_png $have_png
38989RSVG --with-rsvg=$with_rsvg $have_rsvg
38990TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038991WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038992Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38993WMF --with-wmf=$with_wmf $have_wmf
38994X11 --with-x=$with_x $have_x
38995XML --with-xml=$with_xml $have_xml
38996ZLIB --with-zlib=$with_zlib $have_zlib
38997
38998X11 Configuration:
38999 X_CFLAGS = $X_CFLAGS
39000 X_PRE_LIBS = $X_PRE_LIBS
39001 X_LIBS = $X_LIBS
39002 X_EXTRA_LIBS = $X_EXTRA_LIBS
39003
39004Options used to compile and link:
39005 PREFIX = $PREFIX_DIR
39006 EXEC-PREFIX = $EXEC_PREFIX_DIR
39007 VERSION = $PACKAGE_VERSION
39008 CC = $CC
39009 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039010 CPPFLAGS = $MAGICK_CPPFLAGS
39011 PCFLAGS = $MAGICK_PCFLAGS
39012 DEFS = $DEFS
39013 LDFLAGS = $LDFLAGS
39014 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39015 LIBS = $MAGICK_LIBS
39016 CXX = $CXX
39017 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039018 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039019" >&6;}