blob: 7cc1acd79196b1d3b53378365cd9bc5bce91fa85 [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
cristy1164d5f2012-08-15 00:58:25 +00001948 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001949 --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
cristybc556452012-08-17 19:44:03 +00003498
cristy3ed852e2009-09-05 21:47:34 +00003499ac_config_headers="$ac_config_headers config/config.h"
3500
cristy24fc1fe2010-10-23 21:13:01 +00003501
cristy4c08aed2011-07-01 19:47:50 +00003502ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003503
cristy4c08aed2011-07-01 19:47:50 +00003504ac_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 +00003505
3506
3507#
3508# Save initial user-tunable values
3509#
3510USER_LIBS=$LIBS
3511for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3512 eval isset=\${$var+set}
3513 if test "$isset" = 'set'; then
3514 eval val=$`echo $var`
3515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3516 fi
3517done
3518
3519
3520CONFIGURE_ARGS="$0 ${ac_configure_args}"
3521
3522
3523# Source file containing package/library versioning information.
3524. ${srcdir}/version.sh
3525
cristy15a88782010-01-31 23:24:49 +00003526echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003527# Make sure we can run config.sub.
3528$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003529 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003530
cristy8b350f62009-11-15 23:12:43 +00003531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003532$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003533if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003534 $as_echo_n "(cached) " >&6
3535else
3536 ac_build_alias=$build_alias
3537test "x$ac_build_alias" = x &&
3538 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3539test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543
3544fi
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo "$ac_cv_build" >&6; }
3547case $ac_cv_build in
3548*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003549*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003550esac
3551build=$ac_cv_build
3552ac_save_IFS=$IFS; IFS='-'
3553set x $ac_cv_build
3554shift
3555build_cpu=$1
3556build_vendor=$2
3557shift; shift
3558# Remember, the first character of IFS is used to create $*,
3559# except with old shells:
3560build_os=$*
3561IFS=$ac_save_IFS
3562case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3563
3564
cristy8b350f62009-11-15 23:12:43 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003566$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003567if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003568 $as_echo_n "(cached) " >&6
3569else
3570 if test "x$host_alias" = x; then
3571 ac_cv_host=$ac_cv_build
3572else
3573 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003575fi
3576
3577fi
cristy8b350f62009-11-15 23:12:43 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003579$as_echo "$ac_cv_host" >&6; }
3580case $ac_cv_host in
3581*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003582*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003583esac
3584host=$ac_cv_host
3585ac_save_IFS=$IFS; IFS='-'
3586set x $ac_cv_host
3587shift
3588host_cpu=$1
3589host_vendor=$2
3590shift; shift
3591# Remember, the first character of IFS is used to create $*,
3592# except with old shells:
3593host_os=$*
3594IFS=$ac_save_IFS
3595case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3596
3597
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003600if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003601 $as_echo_n "(cached) " >&6
3602else
3603 if test "x$target_alias" = x; then
3604 ac_cv_target=$ac_cv_host
3605else
3606 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608fi
3609
3610fi
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo "$ac_cv_target" >&6; }
3613case $ac_cv_target in
3614*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003615*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003616esac
3617target=$ac_cv_target
3618ac_save_IFS=$IFS; IFS='-'
3619set x $ac_cv_target
3620shift
3621target_cpu=$1
3622target_vendor=$2
3623shift; shift
3624# Remember, the first character of IFS is used to create $*,
3625# except with old shells:
3626target_os=$*
3627IFS=$ac_save_IFS
3628case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3629
3630
3631# The aliases save the names the user supplied, while $host etc.
3632# will get canonicalized.
3633test -n "$target_alias" &&
3634 test "$program_prefix$program_suffix$program_transform_name" = \
3635 NONENONEs,x,x, &&
3636 program_prefix=${target_alias}-
3637
cristy837d6dc2010-02-27 01:16:57 +00003638
3639
3640
cristy8be34142012-06-17 14:07:18 +00003641
cristy19615b82011-04-13 20:02:01 +00003642MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003643
3644
cristy27d53d62012-07-29 23:30:07 +00003645cat >>confdefs.h <<_ACEOF
3646#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3647_ACEOF
3648
3649
cristy19615b82011-04-13 20:02:01 +00003650MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003651
3652
cristy27d53d62012-07-29 23:30:07 +00003653cat >>confdefs.h <<_ACEOF
3654#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3655_ACEOF
3656
3657
cristy19615b82011-04-13 20:02:01 +00003658MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003659
3660
cristy27d53d62012-07-29 23:30:07 +00003661cat >>confdefs.h <<_ACEOF
3662#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3663_ACEOF
3664
3665
cristy3ed852e2009-09-05 21:47:34 +00003666# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003667MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3668
3669MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3670
cristybc556452012-08-17 19:44:03 +00003671MAGICK_SVN_REVISION=8980:8995M
cristyd694ca32011-03-27 21:42:54 +00003672
cristy3ed852e2009-09-05 21:47:34 +00003673
3674
3675# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3677$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003678# Reject unsafe characters in $srcdir or the absolute working directory
3679# name. Accept space and tab only in the latter.
3680am_lf='
3681'
3682case `pwd` in
3683 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003684 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003685esac
3686case $srcdir in
3687 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003688 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003689esac
cristy3ed852e2009-09-05 21:47:34 +00003690
cristyc0890a62012-07-19 00:18:20 +00003691# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003692# arguments. Must try -L first in case configure is actually a
3693# symlink; some systems play weird games with the mod time of symlinks
3694# (eg FreeBSD returns the mod time of the symlink's containing
3695# directory).
3696if (
cristyc0890a62012-07-19 00:18:20 +00003697 am_has_slept=no
3698 for am_try in 1 2; do
3699 echo "timestamp, slept: $am_has_slept" > conftest.file
3700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3701 if test "$*" = "X"; then
3702 # -L didn't work.
3703 set X `ls -t "$srcdir/configure" conftest.file`
3704 fi
3705 if test "$*" != "X $srcdir/configure conftest.file" \
3706 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003707
cristyc0890a62012-07-19 00:18:20 +00003708 # If neither matched, then we have a broken ls. This can happen
3709 # if, for instance, CONFIG_SHELL is bash and it inherits a
3710 # broken ls alias from the environment. This has actually
3711 # happened. Such a system could not be considered "sane".
3712 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3713 alias in your environment" "$LINENO" 5
3714 fi
3715 if test "$2" = conftest.file || test $am_try -eq 2; then
3716 break
3717 fi
3718 # Just in case.
3719 sleep 1
3720 am_has_slept=yes
3721 done
cristy73bd4a52010-10-05 11:24:23 +00003722 test "$2" = conftest.file
3723 )
3724then
3725 # Ok.
3726 :
3727else
cristy98dddb52010-11-04 00:30:15 +00003728 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003729Check your system clock" "$LINENO" 5
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003733# If we didn't sleep, we still need to ensure time stamps of config.status and
3734# generated files are strictly newer.
3735am_sleep_pid=
3736if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3737 ( sleep 1 ) &
3738 am_sleep_pid=$!
3739fi
cristy73bd4a52010-10-05 11:24:23 +00003740
cristyc0890a62012-07-19 00:18:20 +00003741rm -f conftest.file
3742
3743
3744am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003745
3746# Find a good install program. We prefer a C program (faster),
3747# so one script is as good as another. But avoid the broken or
3748# incompatible versions:
3749# SysV /etc/install, /usr/sbin/install
3750# SunOS /usr/etc/install
3751# IRIX /sbin/install
3752# AIX /bin/install
3753# AmigaOS /C/install, which installs bootblocks on floppy discs
3754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3757# OS/2's system install, which has a completely different semantic
3758# ./install, which can be erroneously created by make from ./install.sh.
3759# Reject install programs that cannot install multiple files.
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3761$as_echo_n "checking for a BSD-compatible install... " >&6; }
3762if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003763if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003764 $as_echo_n "(cached) " >&6
3765else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 # Account for people who put trailing slashes in PATH elements.
3772case $as_dir/ in #((
3773 ./ | .// | /[cC]/* | \
3774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3775 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3776 /usr/ucb/* ) ;;
3777 *)
3778 # OSF1 and SCO ODT 3.0 have their own names for install.
3779 # Don't use installbsd from OSF since it installs stuff as root
3780 # by default.
3781 for ac_prog in ginstall scoinst install; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003783 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003784 if test $ac_prog = install &&
3785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3786 # AIX install. It has an incompatible calling convention.
3787 :
3788 elif test $ac_prog = install &&
3789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790 # program-specific install script used by HP pwplus--don't use.
3791 :
3792 else
3793 rm -rf conftest.one conftest.two conftest.dir
3794 echo one > conftest.one
3795 echo two > conftest.two
3796 mkdir conftest.dir
3797 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3798 test -s conftest.one && test -s conftest.two &&
3799 test -s conftest.dir/conftest.one &&
3800 test -s conftest.dir/conftest.two
3801 then
3802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3803 break 3
3804 fi
3805 fi
3806 fi
3807 done
3808 done
3809 ;;
3810esac
3811
3812 done
3813IFS=$as_save_IFS
3814
3815rm -rf conftest.one conftest.two conftest.dir
3816
3817fi
3818 if test "${ac_cv_path_install+set}" = set; then
3819 INSTALL=$ac_cv_path_install
3820 else
3821 # As a last resort, use the slow shell script. Don't cache a
3822 # value for INSTALL within a source directory, because that will
3823 # break other packages using the cache if that directory is
3824 # removed, or if the value is a relative name.
3825 INSTALL=$ac_install_sh
3826 fi
3827fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3829$as_echo "$INSTALL" >&6; }
3830
3831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3832# It thinks the first close brace ends the variable substitution.
3833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3834
3835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3836
3837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3838
3839test "$program_prefix" != NONE &&
3840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3841# Use a double $ so make ignores it.
3842test "$program_suffix" != NONE &&
3843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3844# Double any \ or $.
3845# By default was `s,x,x', remove it if useless.
3846ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3847program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3848
3849# expand $ac_aux_dir to an absolute path
3850am_aux_dir=`cd $ac_aux_dir && pwd`
3851
3852if test x"${MISSING+set}" != xset; then
3853 case $am_aux_dir in
3854 *\ * | *\ *)
3855 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3856 *)
3857 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3858 esac
3859fi
3860# Use eval to expand $SHELL
3861if eval "$MISSING --run true"; then
3862 am_missing_run="$MISSING --run "
3863else
3864 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3866$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003867fi
3868
3869if test x"${install_sh}" != xset; then
3870 case $am_aux_dir in
3871 *\ * | *\ *)
3872 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3873 *)
3874 install_sh="\${SHELL} $am_aux_dir/install-sh"
3875 esac
3876fi
3877
cristyc0890a62012-07-19 00:18:20 +00003878# Installed binaries are usually stripped using 'strip' when the user
3879# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003880# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003881# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003882if test "$cross_compiling" != no; then
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3885set dummy ${ac_tool_prefix}strip; ac_word=$2
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003888if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003889 $as_echo_n "(cached) " >&6
3890else
3891 if test -n "$STRIP"; then
3892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906 done
3907IFS=$as_save_IFS
3908
3909fi
3910fi
3911STRIP=$ac_cv_prog_STRIP
3912if test -n "$STRIP"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3914$as_echo "$STRIP" >&6; }
3915else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917$as_echo "no" >&6; }
3918fi
3919
3920
3921fi
3922if test -z "$ac_cv_prog_STRIP"; then
3923 ac_ct_STRIP=$STRIP
3924 # Extract the first word of "strip", so it can be a program name with args.
3925set dummy strip; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003928if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003929 $as_echo_n "(cached) " >&6
3930else
3931 if test -n "$ac_ct_STRIP"; then
3932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003941 ac_cv_prog_ac_ct_STRIP="strip"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946 done
3947IFS=$as_save_IFS
3948
3949fi
3950fi
3951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3952if test -n "$ac_ct_STRIP"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3954$as_echo "$ac_ct_STRIP" >&6; }
3955else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960 if test "x$ac_ct_STRIP" = x; then
3961 STRIP=":"
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964yes:)
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967ac_tool_warned=yes ;;
3968esac
3969 STRIP=$ac_ct_STRIP
3970 fi
3971else
3972 STRIP="$ac_cv_prog_STRIP"
3973fi
3974
3975fi
3976INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3979$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3980if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003981 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003982 $as_echo_n "(cached) " >&6
3983else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in mkdir gmkdir; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003991 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3993 'mkdir (GNU coreutils) '* | \
3994 'mkdir (coreutils) '* | \
3995 'mkdir (fileutils) '4.1*)
3996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3997 break 3;;
3998 esac
3999 done
4000 done
4001 done
4002IFS=$as_save_IFS
4003
4004fi
4005
4006 test -d ./--version && rmdir ./--version
4007 if test "${ac_cv_path_mkdir+set}" = set; then
4008 MKDIR_P="$ac_cv_path_mkdir -p"
4009 else
4010 # As a last resort, use the slow shell script. Don't cache a
4011 # value for MKDIR_P within a source directory, because that will
4012 # break other packages using the cache if that directory is
4013 # removed, or if the value is a relative name.
4014 MKDIR_P="$ac_install_sh -d"
4015 fi
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4018$as_echo "$MKDIR_P" >&6; }
4019
cristy73bd4a52010-10-05 11:24:23 +00004020for ac_prog in gawk mawk nawk awk
4021do
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023set dummy $ac_prog; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004026if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$AWK"; then
4030 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004039 ac_cv_prog_AWK="$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044 done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049AWK=$ac_cv_prog_AWK
4050if test -n "$AWK"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4052$as_echo "$AWK" >&6; }
4053else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058
4059 test -n "$AWK" && break
4060done
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4063$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4064set x ${MAKE-make}
4065ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004066if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004067 $as_echo_n "(cached) " >&6
4068else
4069 cat >conftest.make <<\_ACEOF
4070SHELL = /bin/sh
4071all:
4072 @echo '@@@%%%=$(MAKE)=@@@%%%'
4073_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004074# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004075case `${MAKE-make} -f conftest.make 2>/dev/null` in
4076 *@@@%%%=?*=@@@%%%*)
4077 eval ac_cv_prog_make_${ac_make}_set=yes;;
4078 *)
4079 eval ac_cv_prog_make_${ac_make}_set=no;;
4080esac
4081rm -f conftest.make
4082fi
4083if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085$as_echo "yes" >&6; }
4086 SET_MAKE=
4087else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090 SET_MAKE="MAKE=${MAKE-make}"
4091fi
4092
4093rm -rf .tst 2>/dev/null
4094mkdir .tst 2>/dev/null
4095if test -d .tst; then
4096 am__leading_dot=.
4097else
4098 am__leading_dot=_
4099fi
4100rmdir .tst 2>/dev/null
4101
cristya448bd22011-10-14 12:38:13 +00004102# Check whether --enable-silent-rules was given.
4103if test "${enable_silent_rules+set}" = set; then :
4104 enableval=$enable_silent_rules;
4105fi
4106
cristyc0890a62012-07-19 00:18:20 +00004107case $enable_silent_rules in # (((
4108 yes) AM_DEFAULT_VERBOSITY=0;;
4109 no) AM_DEFAULT_VERBOSITY=1;;
4110 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004111esac
cristyc3fb77b2012-02-06 01:49:41 +00004112am_make=${MAKE-make}
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4114$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4115if ${am_cv_make_support_nested_variables+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 if $as_echo 'TRUE=$(BAR$(V))
4119BAR0=false
4120BAR1=true
4121V=1
4122am__doit:
4123 @$(TRUE)
4124.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4125 am_cv_make_support_nested_variables=yes
4126else
4127 am_cv_make_support_nested_variables=no
4128fi
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4131$as_echo "$am_cv_make_support_nested_variables" >&6; }
4132if test $am_cv_make_support_nested_variables = yes; then
4133 AM_V='$(V)'
4134 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4135else
4136 AM_V=$AM_DEFAULT_VERBOSITY
4137 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4138fi
cristya448bd22011-10-14 12:38:13 +00004139AM_BACKSLASH='\'
4140
cristy73bd4a52010-10-05 11:24:23 +00004141if test "`cd $srcdir && pwd`" != "`pwd`"; then
4142 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4143 # is not polluted with repeated "-I."
4144 am__isrc=' -I$(srcdir)'
4145 # test to see if srcdir already configured
4146 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004147 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004148 fi
4149fi
4150
4151# test whether we have cygpath
4152if test -z "$CYGPATH_W"; then
4153 if (cygpath --version) >/dev/null 2>/dev/null; then
4154 CYGPATH_W='cygpath -w'
4155 else
4156 CYGPATH_W=echo
4157 fi
4158fi
4159
4160
4161# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004162 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004163 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004164
4165
cristya448bd22011-10-14 12:38:13 +00004166cat >>confdefs.h <<_ACEOF
4167#define PACKAGE "$PACKAGE"
4168_ACEOF
4169
4170
4171cat >>confdefs.h <<_ACEOF
4172#define VERSION "$VERSION"
4173_ACEOF
4174
cristy73bd4a52010-10-05 11:24:23 +00004175# Some tools Automake needs.
4176
4177ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4178
4179
4180AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4181
4182
4183AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4184
4185
4186AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4187
4188
4189MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4190
cristyc0890a62012-07-19 00:18:20 +00004191# For better backward compatibility. To be removed once Automake 1.9.x
4192# dies out for good. For more background, see:
4193# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4194# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4195mkdir_p='$(MKDIR_P)'
4196
cristy73bd4a52010-10-05 11:24:23 +00004197# We need awk for the "check" target. The system "awk" is bad on
4198# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004199# Always define AMTAR for backward compatibility. Yes, it's still used
4200# in the wild :-( We should find a proper way to deprecate it ...
4201AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004202
cristyc3fb77b2012-02-06 01:49:41 +00004203am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004204
4205
4206
4207
4208
cristy3ed852e2009-09-05 21:47:34 +00004209
4210# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004211# Check whether --enable-silent-rules was given.
4212if test "${enable_silent_rules+set}" = set; then :
4213 enableval=$enable_silent_rules;
4214fi
4215
cristyc0890a62012-07-19 00:18:20 +00004216case $enable_silent_rules in # (((
4217 yes) AM_DEFAULT_VERBOSITY=0;;
4218 no) AM_DEFAULT_VERBOSITY=1;;
4219 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004220esac
cristyc3fb77b2012-02-06 01:49:41 +00004221am_make=${MAKE-make}
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4223$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4224if ${am_cv_make_support_nested_variables+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226else
4227 if $as_echo 'TRUE=$(BAR$(V))
4228BAR0=false
4229BAR1=true
4230V=1
4231am__doit:
4232 @$(TRUE)
4233.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4234 am_cv_make_support_nested_variables=yes
4235else
4236 am_cv_make_support_nested_variables=no
4237fi
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4240$as_echo "$am_cv_make_support_nested_variables" >&6; }
4241if test $am_cv_make_support_nested_variables = yes; then
4242 AM_V='$(V)'
4243 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4244else
4245 AM_V=$AM_DEFAULT_VERBOSITY
4246 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4247fi
cristy73bd4a52010-10-05 11:24:23 +00004248AM_BACKSLASH='\'
4249
cristy3ed852e2009-09-05 21:47:34 +00004250
4251MAGICK_LIB_VERSION="0x"
4252if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4253 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4254fi
4255MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4256if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4257 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4258fi
4259MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4260if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4261 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4262fi
4263MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4264
4265
4266# Definition used to define MagickLibVersionText in version.h
4267MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4268
4269
4270# Definition used to define MagickLibVersionNumber in version.h
4271MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4272
4273
4274# Regenerate config.status if ChangeLog or version.sh is updated.
4275CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4276
4277
4278PERLMAINCC=$CC
4279
4280MAGICK_CFLAGS=''
4281MAGICK_CPPFLAGS=$CPPFLAGS_USER
4282MAGICK_PCFLAGS=$CPPFLAGS_USER
4283MAGICK_LDFLAGS=''
4284MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004285MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004286
4287#
4288# Evaluate shell variable equivalents to Makefile directory variables
4289#
4290if test "x$prefix" = xNONE; then
4291 prefix=$ac_default_prefix
4292fi
4293# Let make expand exec_prefix.
4294if test "x$exec_prefix" = xNONE; then
4295 exec_prefix='${prefix}'
4296fi
4297
4298#
4299eval "eval PREFIX_DIR=${prefix}"
4300
4301eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4302
4303eval "eval BIN_DIR=$bindir"
4304
4305eval "eval SBIN_DIR=$sbindir"
4306
4307eval "eval LIBEXEC_DIR=$libexecdir"
4308
4309eval "eval DATA_DIR=$datadir"
4310
cristy4e65ec22012-04-08 01:33:27 +00004311eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004312
cristy3ed852e2009-09-05 21:47:34 +00004313eval "eval SYSCONF_DIR=$sysconfdir"
4314
4315eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4316
4317eval "eval LOCALSTATE_DIR=$localstatedir"
4318
4319eval "eval LIB_DIR=$libdir"
4320
4321eval "eval INCLUDE_DIR=$includedir"
4322
4323eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4324
4325eval "eval INFO_DIR=$infodir"
4326
4327eval "eval MAN_DIR=$mandir"
4328
4329
4330# Get full paths to source and build directories
4331srcdirfull="`cd $srcdir && pwd`"
4332builddir="`pwd`"
4333
4334#
4335# Compute variables useful for running uninstalled software.
4336#
4337MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4338MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4339MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4340MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4341DIRSEP=':'
4342case "${build_os}" in
4343 mingw* )
4344 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4345 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4346 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4347 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4348 DIRSEP=';'
4349 ;;
4350esac
4351case "${host_os}" in
4352 mingw* )
4353 DIRSEP=';'
4354 ;;
4355esac
4356
4357
4358
4359
4360
4361
cristya0b81c32010-01-22 02:54:33 +00004362
4363#
4364# Enable OS features.
4365#
cristy73bd4a52010-10-05 11:24:23 +00004366DEPDIR="${am__leading_dot}deps"
4367
4368ac_config_commands="$ac_config_commands depfiles"
4369
4370
4371am_make=${MAKE-make}
4372cat > confinc << 'END'
4373am__doit:
4374 @echo this is the am__doit target
4375.PHONY: am__doit
4376END
4377# If we don't find an include directive, just comment out the code.
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4379$as_echo_n "checking for style of include used by $am_make... " >&6; }
4380am__include="#"
4381am__quote=
4382_am_result=none
4383# First try GNU make style include.
4384echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004385# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004386case `$am_make -s -f confmf 2> /dev/null` in #(
4387*the\ am__doit\ target*)
4388 am__include=include
4389 am__quote=
4390 _am_result=GNU
4391 ;;
4392esac
4393# Now try BSD make style include.
4394if test "$am__include" = "#"; then
4395 echo '.include "confinc"' > confmf
4396 case `$am_make -s -f confmf 2> /dev/null` in #(
4397 *the\ am__doit\ target*)
4398 am__include=.include
4399 am__quote="\""
4400 _am_result=BSD
4401 ;;
4402 esac
4403fi
4404
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4407$as_echo "$_am_result" >&6; }
4408rm -f confinc confmf
4409
4410# Check whether --enable-dependency-tracking was given.
4411if test "${enable_dependency_tracking+set}" = set; then :
4412 enableval=$enable_dependency_tracking;
4413fi
4414
4415if test "x$enable_dependency_tracking" != xno; then
4416 am_depcomp="$ac_aux_dir/depcomp"
4417 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004418 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004419fi
4420 if test "x$enable_dependency_tracking" != xno; then
4421 AMDEP_TRUE=
4422 AMDEP_FALSE='#'
4423else
4424 AMDEP_TRUE='#'
4425 AMDEP_FALSE=
4426fi
4427
4428
cristy3ed852e2009-09-05 21:47:34 +00004429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434if test -n "$ac_tool_prefix"; then
4435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4436set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004439if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004440 $as_echo_n "(cached) " >&6
4441else
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004454 break 2
4455 fi
4456done
cristy8b350f62009-11-15 23:12:43 +00004457 done
cristy3ed852e2009-09-05 21:47:34 +00004458IFS=$as_save_IFS
4459
4460fi
4461fi
4462CC=$ac_cv_prog_CC
4463if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465$as_echo "$CC" >&6; }
4466else
cristy8b350f62009-11-15 23:12:43 +00004467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004468$as_echo "no" >&6; }
4469fi
4470
4471
4472fi
4473if test -z "$ac_cv_prog_CC"; then
4474 ac_ct_CC=$CC
4475 # Extract the first word of "gcc", so it can be a program name with args.
4476set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004479if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004480 $as_echo_n "(cached) " >&6
4481else
4482 if test -n "$ac_ct_CC"; then
4483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004492 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494 break 2
4495 fi
4496done
cristy8b350f62009-11-15 23:12:43 +00004497 done
cristy3ed852e2009-09-05 21:47:34 +00004498IFS=$as_save_IFS
4499
4500fi
4501fi
4502ac_ct_CC=$ac_cv_prog_ac_ct_CC
4503if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$ac_ct_CC" >&6; }
4506else
cristy8b350f62009-11-15 23:12:43 +00004507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004508$as_echo "no" >&6; }
4509fi
4510
4511 if test "x$ac_ct_CC" = x; then
4512 CC=""
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515yes:)
cristy8b350f62009-11-15 23:12:43 +00004516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518ac_tool_warned=yes ;;
4519esac
4520 CC=$ac_ct_CC
4521 fi
4522else
4523 CC="$ac_cv_prog_CC"
4524fi
4525
4526if test -z "$CC"; then
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4529set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004532if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 $as_echo_n "(cached) " >&6
4534else
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004545 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004547 break 2
4548 fi
4549done
cristy8b350f62009-11-15 23:12:43 +00004550 done
cristy3ed852e2009-09-05 21:47:34 +00004551IFS=$as_save_IFS
4552
4553fi
4554fi
4555CC=$ac_cv_prog_CC
4556if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004558$as_echo "$CC" >&6; }
4559else
cristy8b350f62009-11-15 23:12:43 +00004560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004561$as_echo "no" >&6; }
4562fi
4563
4564
4565 fi
4566fi
4567if test -z "$CC"; then
4568 # Extract the first word of "cc", so it can be a program name with args.
4569set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004572if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004573 $as_echo_n "(cached) " >&6
4574else
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4577else
4578 ac_prog_rejected=no
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4587 ac_prog_rejected=yes
4588 continue
4589 fi
4590 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004592 break 2
4593 fi
4594done
cristy8b350f62009-11-15 23:12:43 +00004595 done
cristy3ed852e2009-09-05 21:47:34 +00004596IFS=$as_save_IFS
4597
4598if test $ac_prog_rejected = yes; then
4599 # We found a bogon in the path, so make sure we never use it.
4600 set dummy $ac_cv_prog_CC
4601 shift
4602 if test $# != 0; then
4603 # We chose a different compiler from the bogus one.
4604 # However, it has the same basename, so the bogon will be chosen
4605 # first if we set CC to just the basename; use the full file name.
4606 shift
4607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4608 fi
4609fi
4610fi
4611fi
4612CC=$ac_cv_prog_CC
4613if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004615$as_echo "$CC" >&6; }
4616else
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "no" >&6; }
4619fi
4620
4621
4622fi
4623if test -z "$CC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 for ac_prog in cl.exe
4626 do
4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004631if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004632 $as_echo_n "(cached) " >&6
4633else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004646 break 2
4647 fi
4648done
cristy8b350f62009-11-15 23:12:43 +00004649 done
cristy3ed852e2009-09-05 21:47:34 +00004650IFS=$as_save_IFS
4651
4652fi
4653fi
4654CC=$ac_cv_prog_CC
4655if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004657$as_echo "$CC" >&6; }
4658else
cristy8b350f62009-11-15 23:12:43 +00004659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004660$as_echo "no" >&6; }
4661fi
4662
4663
4664 test -n "$CC" && break
4665 done
4666fi
4667if test -z "$CC"; then
4668 ac_ct_CC=$CC
4669 for ac_prog in cl.exe
4670do
4671 # Extract the first word of "$ac_prog", so it can be a program name with args.
4672set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004675if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004676 $as_echo_n "(cached) " >&6
4677else
4678 if test -n "$ac_ct_CC"; then
4679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4680else
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004688 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690 break 2
4691 fi
4692done
cristy8b350f62009-11-15 23:12:43 +00004693 done
cristy3ed852e2009-09-05 21:47:34 +00004694IFS=$as_save_IFS
4695
4696fi
4697fi
4698ac_ct_CC=$ac_cv_prog_ac_ct_CC
4699if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$ac_ct_CC" >&6; }
4702else
cristy8b350f62009-11-15 23:12:43 +00004703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704$as_echo "no" >&6; }
4705fi
4706
4707
4708 test -n "$ac_ct_CC" && break
4709done
4710
4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715yes:)
cristy8b350f62009-11-15 23:12:43 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718ac_tool_warned=yes ;;
4719esac
4720 CC=$ac_ct_CC
4721 fi
4722fi
4723
4724fi
4725
4726
cristy8b350f62009-11-15 23:12:43 +00004727test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004729as_fn_error $? "no acceptable C compiler found in \$PATH
4730See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004731
4732# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004733$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734set X $ac_compile
4735ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004736for ac_option in --version -v -V -qversion; do
4737 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004738case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741esac
cristy8b350f62009-11-15 23:12:43 +00004742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4743$as_echo "$ac_try_echo"; } >&5
4744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004745 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004746 if test -s conftest.err; then
4747 sed '10a\
4748... rest of stderr output deleted ...
4749 10q' conftest.err >conftest.er1
4750 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004751 fi
cristycd4c5312009-11-22 01:19:08 +00004752 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4754 test $ac_status = 0; }
4755done
cristy3ed852e2009-09-05 21:47:34 +00004756
cristy8b350f62009-11-15 23:12:43 +00004757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004758/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004759
cristy3ed852e2009-09-05 21:47:34 +00004760int
4761main ()
4762{
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004769ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004770# Try to create an executable without -o first, disregard a.out.
4771# It will help us diagnose broken compilers, and finding out an intuition
4772# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4774$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004775ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4776
4777# The possible output files:
4778ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4779
4780ac_rmfiles=
4781for ac_file in $ac_files
4782do
4783 case $ac_file in
4784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4786 esac
4787done
4788rm -f $ac_rmfiles
4789
cristy8b350f62009-11-15 23:12:43 +00004790if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
cristy8b350f62009-11-15 23:12:43 +00004795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004797 (eval "$ac_link_default") 2>&5
4798 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4803# in a Makefile. We should not override ac_cv_exeext if it was cached,
4804# so that the user can short-circuit this test for compilers unknown to
4805# Autoconf.
4806for ac_file in $ac_files ''
4807do
4808 test -f "$ac_file" || continue
4809 case $ac_file in
4810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4811 ;;
4812 [ab].out )
4813 # We found the default executable, but exeext='' is most
4814 # certainly right.
4815 break;;
4816 *.* )
cristy8b350f62009-11-15 23:12:43 +00004817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004818 then :; else
4819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4820 fi
4821 # We set ac_cv_exeext here because the later test for it is not
4822 # safe: cross compilers may not add the suffix if given an `-o'
4823 # argument, so we may need to know it at that point already.
4824 # Even if this section looks crufty: it has the advantage of
4825 # actually working.
4826 break;;
4827 * )
4828 break;;
4829 esac
4830done
4831test "$ac_cv_exeext" = no && ac_cv_exeext=
4832
4833else
4834 ac_file=''
4835fi
cristy8b350f62009-11-15 23:12:43 +00004836if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
4839$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840sed 's/^/| /' conftest.$ac_ext >&5
4841
cristy8b350f62009-11-15 23:12:43 +00004842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004844as_fn_error 77 "C compiler cannot create executables
4845See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004846else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004849fi
cristycd4c5312009-11-22 01:19:08 +00004850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4851$as_echo_n "checking for C compiler default output file name... " >&6; }
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4853$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004854ac_exeext=$ac_cv_exeext
4855
cristycd4c5312009-11-22 01:19:08 +00004856rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004857ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004859$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004860if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004861case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864esac
cristy8b350f62009-11-15 23:12:43 +00004865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4866$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004867 (eval "$ac_link") 2>&5
4868 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4870 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4872# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4873# work properly (i.e., refer to `conftest.exe'), while it won't with
4874# `rm'.
4875for ac_file in conftest.exe conftest conftest.*; do
4876 test -f "$ac_file" || continue
4877 case $ac_file in
4878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4880 break;;
4881 * ) break;;
4882 esac
4883done
4884else
cristy8b350f62009-11-15 23:12:43 +00004885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004887as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4888See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004889fi
cristycd4c5312009-11-22 01:19:08 +00004890rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004892$as_echo "$ac_cv_exeext" >&6; }
4893
4894rm -f conftest.$ac_ext
4895EXEEXT=$ac_cv_exeext
4896ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h. */
4899#include <stdio.h>
4900int
4901main ()
4902{
4903FILE *f = fopen ("conftest.out", "w");
4904 return ferror (f) || fclose (f) != 0;
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
4910ac_clean_files="$ac_clean_files conftest.out"
4911# Check that the compiler produces executables we can run. If not, either
4912# the compiler is broken, or we cross compile.
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4914$as_echo_n "checking whether we are cross compiling... " >&6; }
4915if test "$cross_compiling" != yes; then
4916 { { ac_try="$ac_link"
4917case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920esac
4921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922$as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_link") 2>&5
4924 ac_status=$?
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }
4927 if { ac_try='./conftest$ac_cv_exeext'
4928 { { case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933$as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_try") 2>&5
4935 ac_status=$?
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }; }; then
4938 cross_compiling=no
4939 else
4940 if test "$cross_compiling" = maybe; then
4941 cross_compiling=yes
4942 else
4943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004945as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004946If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004947See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004948 fi
4949 fi
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4952$as_echo "$cross_compiling" >&6; }
4953
4954rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4955ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004957$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004958if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004959 $as_echo_n "(cached) " >&6
4960else
cristy8b350f62009-11-15 23:12:43 +00004961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004962/* end confdefs.h. */
4963
4964int
4965main ()
4966{
4967
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004973if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004974case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977esac
cristy8b350f62009-11-15 23:12:43 +00004978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004980 (eval "$ac_compile") 2>&5
4981 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004984 for ac_file in conftest.o conftest.obj conftest.*; do
4985 test -f "$ac_file" || continue;
4986 case $ac_file in
4987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4989 break;;
4990 esac
4991done
4992else
4993 $as_echo "$as_me: failed program was:" >&5
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
cristy8b350f62009-11-15 23:12:43 +00004996{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004998as_fn_error $? "cannot compute suffix of object files: cannot compile
4999See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005000fi
cristy3ed852e2009-09-05 21:47:34 +00005001rm -f conftest.$ac_cv_objext conftest.$ac_ext
5002fi
cristy8b350f62009-11-15 23:12:43 +00005003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005004$as_echo "$ac_cv_objext" >&6; }
5005OBJEXT=$ac_cv_objext
5006ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005008$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005009if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005010 $as_echo_n "(cached) " >&6
5011else
cristy8b350f62009-11-15 23:12:43 +00005012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005013/* end confdefs.h. */
5014
5015int
5016main ()
5017{
5018#ifndef __GNUC__
5019 choke me
5020#endif
5021
5022 ;
5023 return 0;
5024}
5025_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005026if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005027 ac_compiler_gnu=yes
5028else
cristy8b350f62009-11-15 23:12:43 +00005029 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005030fi
cristy3ed852e2009-09-05 21:47:34 +00005031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032ac_cv_c_compiler_gnu=$ac_compiler_gnu
5033
5034fi
cristy8b350f62009-11-15 23:12:43 +00005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5037if test $ac_compiler_gnu = yes; then
5038 GCC=yes
5039else
5040 GCC=
5041fi
5042ac_test_CFLAGS=${CFLAGS+set}
5043ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005045$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005046if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005047 $as_echo_n "(cached) " >&6
5048else
5049 ac_save_c_werror_flag=$ac_c_werror_flag
5050 ac_c_werror_flag=yes
5051 ac_cv_prog_cc_g=no
5052 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005054/* end confdefs.h. */
5055
5056int
5057main ()
5058{
5059
5060 ;
5061 return 0;
5062}
5063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005065 ac_cv_prog_cc_g=yes
5066else
cristy8b350f62009-11-15 23:12:43 +00005067 CFLAGS=""
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005069/* end confdefs.h. */
5070
5071int
5072main ()
5073{
5074
5075 ;
5076 return 0;
5077}
5078_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005080
cristy8b350f62009-11-15 23:12:43 +00005081else
5082 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005083 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005085/* end confdefs.h. */
5086
5087int
5088main ()
5089{
5090
5091 ;
5092 return 0;
5093}
5094_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005096 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005097fi
cristy3ed852e2009-09-05 21:47:34 +00005098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
cristy3ed852e2009-09-05 21:47:34 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
cristy3ed852e2009-09-05 21:47:34 +00005102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 ac_c_werror_flag=$ac_save_c_werror_flag
5104fi
cristy8b350f62009-11-15 23:12:43 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005106$as_echo "$ac_cv_prog_cc_g" >&6; }
5107if test "$ac_test_CFLAGS" = set; then
5108 CFLAGS=$ac_save_CFLAGS
5109elif test $ac_cv_prog_cc_g = yes; then
5110 if test "$GCC" = yes; then
5111 CFLAGS="-g -O2"
5112 else
5113 CFLAGS="-g"
5114 fi
5115else
5116 if test "$GCC" = yes; then
5117 CFLAGS="-O2"
5118 else
5119 CFLAGS=
5120 fi
5121fi
cristy8b350f62009-11-15 23:12:43 +00005122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005123$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005124if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005125 $as_echo_n "(cached) " >&6
5126else
5127 ac_cv_prog_cc_c89=no
5128ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005130/* end confdefs.h. */
5131#include <stdarg.h>
5132#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005133struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005134/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5135struct buf { int x; };
5136FILE * (*rcsopen) (struct buf *, struct stat *, int);
5137static char *e (p, i)
5138 char **p;
5139 int i;
5140{
5141 return p[i];
5142}
5143static char *f (char * (*g) (char **, int), char **p, ...)
5144{
5145 char *s;
5146 va_list v;
5147 va_start (v,p);
5148 s = g (p, va_arg (v,int));
5149 va_end (v);
5150 return s;
5151}
5152
5153/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5154 function prototypes and stuff, but not '\xHH' hex character constants.
5155 These don't provoke an error unfortunately, instead are silently treated
5156 as 'x'. The following induces an error, until -std is added to get
5157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5158 array size at least. It's necessary to write '\x00'==0 to get something
5159 that's true only with -std. */
5160int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5161
5162/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5163 inside strings and character constants. */
5164#define FOO(x) 'x'
5165int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5166
5167int test (int i, double x);
5168struct s1 {int (*f) (int a);};
5169struct s2 {int (*f) (double a);};
5170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5171int argc;
5172char **argv;
5173int
5174main ()
5175{
5176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5182 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5183do
5184 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005185 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005186 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005187fi
cristy3ed852e2009-09-05 21:47:34 +00005188rm -f core conftest.err conftest.$ac_objext
5189 test "x$ac_cv_prog_cc_c89" != "xno" && break
5190done
5191rm -f conftest.$ac_ext
5192CC=$ac_save_CC
5193
5194fi
5195# AC_CACHE_VAL
5196case "x$ac_cv_prog_cc_c89" in
5197 x)
cristy8b350f62009-11-15 23:12:43 +00005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005199$as_echo "none needed" >&6; } ;;
5200 xno)
cristy8b350f62009-11-15 23:12:43 +00005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005202$as_echo "unsupported" >&6; } ;;
5203 *)
5204 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005206$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5207esac
cristy8b350f62009-11-15 23:12:43 +00005208if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005209
cristy8b350f62009-11-15 23:12:43 +00005210fi
cristy3ed852e2009-09-05 21:47:34 +00005211
5212ac_ext=c
5213ac_cpp='$CPP $CPPFLAGS'
5214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005217
cristy73bd4a52010-10-05 11:24:23 +00005218depcc="$CC" am_compiler_list=
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5221$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005222if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005223 $as_echo_n "(cached) " >&6
5224else
5225 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5226 # We make a subdir and do the tests there. Otherwise we can end up
5227 # making bogus files that we don't know about and never remove. For
5228 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005229 # making a dummy file named 'D' -- because '-MD' means "put the output
5230 # in D".
cristy7247bba2012-02-05 16:37:27 +00005231 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005232 mkdir conftest.dir
5233 # Copy depcomp to subdir because otherwise we won't find it if we're
5234 # using a relative directory.
5235 cp "$am_depcomp" conftest.dir
5236 cd conftest.dir
5237 # We will build objects and dependencies in a subdirectory because
5238 # it helps to detect inapplicable dependency modes. For instance
5239 # both Tru64's cc and ICC support -MD to output dependencies as a
5240 # side effect of compilation, but ICC will put the dependencies in
5241 # the current directory while Tru64 will put them in the object
5242 # directory.
5243 mkdir sub
5244
5245 am_cv_CC_dependencies_compiler_type=none
5246 if test "$am_compiler_list" = ""; then
5247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5248 fi
5249 am__universal=false
5250 case " $depcc " in #(
5251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5252 esac
5253
5254 for depmode in $am_compiler_list; do
5255 # Setup a source with many dependencies, because some compilers
5256 # like to wrap large dependency lists on column 80 (with \), and
5257 # we should not choose a depcomp mode which is confused by this.
5258 #
5259 # We need to recreate these files for each test, as the compiler may
5260 # overwrite some of them when testing with obscure command lines.
5261 # This happens at least with the AIX C compiler.
5262 : > sub/conftest.c
5263 for i in 1 2 3 4 5 6; do
5264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005265 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5266 # Solaris 10 /bin/sh.
5267 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005268 done
5269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5270
cristyc0890a62012-07-19 00:18:20 +00005271 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005272 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005273 # handle '-M -o', and we need to detect this. Also, some Intel
5274 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005275 am__obj=sub/conftest.${OBJEXT-o}
5276 am__minus_obj="-o $am__obj"
5277 case $depmode in
5278 gcc)
5279 # This depmode causes a compiler race in universal mode.
5280 test "$am__universal" = false || continue
5281 ;;
5282 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005283 # After this tag, mechanisms are not by side-effect, so they'll
5284 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005285 if test "x$enable_dependency_tracking" = xyes; then
5286 continue
5287 else
5288 break
5289 fi
5290 ;;
cristy7247bba2012-02-05 16:37:27 +00005291 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005292 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005293 # not run yet. These depmodes are late enough in the game, and
5294 # so weak that their functioning should not be impacted.
5295 am__obj=conftest.${OBJEXT-o}
5296 am__minus_obj=
5297 ;;
5298 none) break ;;
5299 esac
5300 if depmode=$depmode \
5301 source=sub/conftest.c object=$am__obj \
5302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5304 >/dev/null 2>conftest.err &&
5305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5309 # icc doesn't choke on unknown options, it will just issue warnings
5310 # or remarks (even with -Werror). So we grep stderr for any message
5311 # that says an option was ignored or not supported.
5312 # When given -MP, icc 7.0 and 7.1 complain thusly:
5313 # icc: Command line warning: ignoring option '-M'; no argument required
5314 # The diagnosis changed in icc 8.0:
5315 # icc: Command line remark: option '-MP' not supported
5316 if (grep 'ignoring option' conftest.err ||
5317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5318 am_cv_CC_dependencies_compiler_type=$depmode
5319 break
5320 fi
5321 fi
5322 done
5323
5324 cd ..
5325 rm -rf conftest.dir
5326else
5327 am_cv_CC_dependencies_compiler_type=none
5328fi
5329
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5332$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5333CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5334
5335 if
5336 test "x$enable_dependency_tracking" != xno \
5337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5338 am__fastdepCC_TRUE=
5339 am__fastdepCC_FALSE='#'
5340else
5341 am__fastdepCC_TRUE='#'
5342 am__fastdepCC_FALSE=
5343fi
5344
5345
cristy3ed852e2009-09-05 21:47:34 +00005346
cristya0b81c32010-01-22 02:54:33 +00005347ac_ext=c
5348ac_cpp='$CPP $CPPFLAGS'
5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5353$as_echo_n "checking how to run the C preprocessor... " >&6; }
5354# On Suns, sometimes $CPP names a directory.
5355if test -n "$CPP" && test -d "$CPP"; then
5356 CPP=
5357fi
5358if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005359 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005360 $as_echo_n "(cached) " >&6
5361else
5362 # Double quotes because CPP needs to be expanded
5363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5364 do
5365 ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#ifdef __STDC__
5377# include <limits.h>
5378#else
5379# include <assert.h>
5380#endif
5381 Syntax error
5382_ACEOF
5383if ac_fn_c_try_cpp "$LINENO"; then :
5384
5385else
5386 # Broken: fails on valid input.
5387continue
5388fi
cristyda16f162011-02-19 23:52:17 +00005389rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005390
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <ac_nonexistent.h>
5396_ACEOF
5397if ac_fn_c_try_cpp "$LINENO"; then :
5398 # Broken: success on invalid input.
5399continue
5400else
5401 # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
cristyda16f162011-02-19 23:52:17 +00005405rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005406
5407done
5408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005409rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005410if $ac_preproc_ok; then :
5411 break
5412fi
5413
5414 done
5415 ac_cv_prog_CPP=$CPP
5416
5417fi
5418 CPP=$ac_cv_prog_CPP
5419else
5420 ac_cv_prog_CPP=$CPP
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5423$as_echo "$CPP" >&6; }
5424ac_preproc_ok=false
5425for ac_c_preproc_warn_flag in '' yes
5426do
5427 # Use a header file that comes with gcc, so configuring glibc
5428 # with a fresh cross-compiler works.
5429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430 # <limits.h> exists even on freestanding compilers.
5431 # On the NeXT, cc -E runs the code through the compiler's parser,
5432 # not just through cpp. "Syntax error" is here to catch this case.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435#ifdef __STDC__
5436# include <limits.h>
5437#else
5438# include <assert.h>
5439#endif
5440 Syntax error
5441_ACEOF
5442if ac_fn_c_try_cpp "$LINENO"; then :
5443
5444else
5445 # Broken: fails on valid input.
5446continue
5447fi
cristyda16f162011-02-19 23:52:17 +00005448rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454#include <ac_nonexistent.h>
5455_ACEOF
5456if ac_fn_c_try_cpp "$LINENO"; then :
5457 # Broken: success on invalid input.
5458continue
5459else
5460 # Passes both tests.
5461ac_preproc_ok=:
5462break
5463fi
cristyda16f162011-02-19 23:52:17 +00005464rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005465
5466done
5467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005468rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005469if $ac_preproc_ok; then :
5470
5471else
5472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005474as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5475See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005476fi
5477
5478ac_ext=c
5479ac_cpp='$CPP $CPPFLAGS'
5480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482ac_compiler_gnu=$ac_cv_c_compiler_gnu
5483
5484
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5486$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005487if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005488 $as_echo_n "(cached) " >&6
5489else
5490 if test -z "$GREP"; then
5491 ac_path_GREP_found=false
5492 # Loop through the user's path and test for each of PROGNAME-LIST
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_prog in grep ggrep; do
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005501 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005502# Check for GNU ac_path_GREP and select it if it is found.
5503 # Check for GNU $ac_path_GREP
5504case `"$ac_path_GREP" --version 2>&1` in
5505*GNU*)
5506 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5507*)
5508 ac_count=0
5509 $as_echo_n 0123456789 >"conftest.in"
5510 while :
5511 do
5512 cat "conftest.in" "conftest.in" >"conftest.tmp"
5513 mv "conftest.tmp" "conftest.in"
5514 cp "conftest.in" "conftest.nl"
5515 $as_echo 'GREP' >> "conftest.nl"
5516 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518 as_fn_arith $ac_count + 1 && ac_count=$as_val
5519 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5520 # Best one so far, save it but keep looking for a better one
5521 ac_cv_path_GREP="$ac_path_GREP"
5522 ac_path_GREP_max=$ac_count
5523 fi
5524 # 10*(2^10) chars as input seems more than enough
5525 test $ac_count -gt 10 && break
5526 done
5527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528esac
5529
5530 $ac_path_GREP_found && break 3
5531 done
5532 done
5533 done
5534IFS=$as_save_IFS
5535 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005536 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005537 fi
5538else
5539 ac_cv_path_GREP=$GREP
5540fi
5541
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5544$as_echo "$ac_cv_path_GREP" >&6; }
5545 GREP="$ac_cv_path_GREP"
5546
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5549$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005550if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005551 $as_echo_n "(cached) " >&6
5552else
5553 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5554 then ac_cv_path_EGREP="$GREP -E"
5555 else
5556 if test -z "$EGREP"; then
5557 ac_path_EGREP_found=false
5558 # Loop through the user's path and test for each of PROGNAME-LIST
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_prog in egrep; do
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005567 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005568# Check for GNU ac_path_EGREP and select it if it is found.
5569 # Check for GNU $ac_path_EGREP
5570case `"$ac_path_EGREP" --version 2>&1` in
5571*GNU*)
5572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5573*)
5574 ac_count=0
5575 $as_echo_n 0123456789 >"conftest.in"
5576 while :
5577 do
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 $as_echo 'EGREP' >> "conftest.nl"
5582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5584 as_fn_arith $ac_count + 1 && ac_count=$as_val
5585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_EGREP="$ac_path_EGREP"
5588 ac_path_EGREP_max=$ac_count
5589 fi
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5592 done
5593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594esac
5595
5596 $ac_path_EGREP_found && break 3
5597 done
5598 done
5599 done
5600IFS=$as_save_IFS
5601 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005602 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005603 fi
5604else
5605 ac_cv_path_EGREP=$EGREP
5606fi
5607
5608 fi
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5611$as_echo "$ac_cv_path_EGREP" >&6; }
5612 EGREP="$ac_cv_path_EGREP"
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5616$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005617if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005618 $as_echo_n "(cached) " >&6
5619else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h. */
5622#include <stdlib.h>
5623#include <stdarg.h>
5624#include <string.h>
5625#include <float.h>
5626
5627int
5628main ()
5629{
5630
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_header_stdc=yes
5637else
5638 ac_cv_header_stdc=no
5639fi
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641
5642if test $ac_cv_header_stdc = yes; then
5643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h. */
5646#include <string.h>
5647
5648_ACEOF
5649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5650 $EGREP "memchr" >/dev/null 2>&1; then :
5651
5652else
5653 ac_cv_header_stdc=no
5654fi
5655rm -f conftest*
5656
5657fi
5658
5659if test $ac_cv_header_stdc = yes; then
5660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <stdlib.h>
5664
5665_ACEOF
5666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5667 $EGREP "free" >/dev/null 2>&1; then :
5668
5669else
5670 ac_cv_header_stdc=no
5671fi
5672rm -f conftest*
5673
5674fi
5675
5676if test $ac_cv_header_stdc = yes; then
5677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5678 if test "$cross_compiling" = yes; then :
5679 :
5680else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h. */
5683#include <ctype.h>
5684#include <stdlib.h>
5685#if ((' ' & 0x0FF) == 0x020)
5686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5688#else
5689# define ISLOWER(c) \
5690 (('a' <= (c) && (c) <= 'i') \
5691 || ('j' <= (c) && (c) <= 'r') \
5692 || ('s' <= (c) && (c) <= 'z'))
5693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5694#endif
5695
5696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5697int
5698main ()
5699{
5700 int i;
5701 for (i = 0; i < 256; i++)
5702 if (XOR (islower (i), ISLOWER (i))
5703 || toupper (i) != TOUPPER (i))
5704 return 2;
5705 return 0;
5706}
5707_ACEOF
5708if ac_fn_c_try_run "$LINENO"; then :
5709
5710else
5711 ac_cv_header_stdc=no
5712fi
5713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5714 conftest.$ac_objext conftest.beam conftest.$ac_ext
5715fi
5716
5717fi
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5720$as_echo "$ac_cv_header_stdc" >&6; }
5721if test $ac_cv_header_stdc = yes; then
5722
5723$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5724
5725fi
5726
5727# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5728for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5729 inttypes.h stdint.h unistd.h
5730do :
5731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5732ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5733"
cristy98dddb52010-11-04 00:30:15 +00005734if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005735 cat >>confdefs.h <<_ACEOF
5736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737_ACEOF
5738
5739fi
5740
5741done
5742
5743
5744
5745 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 +00005746if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005747 MINIX=yes
5748else
5749 MINIX=
5750fi
5751
5752
5753 if test "$MINIX" = yes; then
5754
5755$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5756
5757
5758$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5759
5760
5761$as_echo "#define _MINIX 1" >>confdefs.h
5762
5763 fi
5764
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5767$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005768if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005769 $as_echo_n "(cached) " >&6
5770else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h. */
5773
cristy14fefe52012-05-21 00:59:18 +00005774# define __EXTENSIONS__ 1
5775 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005776int
5777main ()
5778{
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_safe_to_define___extensions__=yes
5786else
5787 ac_cv_safe_to_define___extensions__=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5792$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5793 test $ac_cv_safe_to_define___extensions__ = yes &&
5794 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5795
5796 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5797
5798 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5799
5800 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5801
5802 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5803
5804
5805
5806# Check for programs
5807ac_ext=c
5808ac_cpp='$CPP $CPPFLAGS'
5809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812if test -n "$ac_tool_prefix"; then
5813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5814set dummy ${ac_tool_prefix}gcc; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005817if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$CC"; then
5821 ac_cv_prog_CC="$CC" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835 done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840CC=$ac_cv_prog_CC
5841if test -n "$CC"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5843$as_echo "$CC" >&6; }
5844else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850fi
5851if test -z "$ac_cv_prog_CC"; then
5852 ac_ct_CC=$CC
5853 # Extract the first word of "gcc", so it can be a program name with args.
5854set dummy gcc; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005857if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005858 $as_echo_n "(cached) " >&6
5859else
5860 if test -n "$ac_ct_CC"; then
5861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005870 ac_cv_prog_ac_ct_CC="gcc"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875 done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880ac_ct_CC=$ac_cv_prog_ac_ct_CC
5881if test -n "$ac_ct_CC"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5883$as_echo "$ac_ct_CC" >&6; }
5884else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889 if test "x$ac_ct_CC" = x; then
5890 CC=""
5891 else
5892 case $cross_compiling:$ac_tool_warned in
5893yes:)
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896ac_tool_warned=yes ;;
5897esac
5898 CC=$ac_ct_CC
5899 fi
5900else
5901 CC="$ac_cv_prog_CC"
5902fi
5903
5904if test -z "$CC"; then
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}cc; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005910if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005911 $as_echo_n "(cached) " >&6
5912else
5913 if test -n "$CC"; then
5914 ac_cv_prog_CC="$CC" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005923 ac_cv_prog_CC="${ac_tool_prefix}cc"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928 done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933CC=$ac_cv_prog_CC
5934if test -n "$CC"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5936$as_echo "$CC" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942
5943 fi
5944fi
5945if test -z "$CC"; then
5946 # Extract the first word of "cc", so it can be a program name with args.
5947set dummy cc; ac_word=$2
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005950if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005951 $as_echo_n "(cached) " >&6
5952else
5953 if test -n "$CC"; then
5954 ac_cv_prog_CC="$CC" # Let the user override the test.
5955else
5956 ac_prog_rejected=no
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5965 ac_prog_rejected=yes
5966 continue
5967 fi
5968 ac_cv_prog_CC="cc"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973 done
5974IFS=$as_save_IFS
5975
5976if test $ac_prog_rejected = yes; then
5977 # We found a bogon in the path, so make sure we never use it.
5978 set dummy $ac_cv_prog_CC
5979 shift
5980 if test $# != 0; then
5981 # We chose a different compiler from the bogus one.
5982 # However, it has the same basename, so the bogon will be chosen
5983 # first if we set CC to just the basename; use the full file name.
5984 shift
5985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5986 fi
5987fi
5988fi
5989fi
5990CC=$ac_cv_prog_CC
5991if test -n "$CC"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5993$as_echo "$CC" >&6; }
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997fi
5998
5999
6000fi
6001if test -z "$CC"; then
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in cl.exe
6004 do
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006009if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006010 $as_echo_n "(cached) " >&6
6011else
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC="$CC" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027 done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032CC=$ac_cv_prog_CC
6033if test -n "$CC"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6035$as_echo "$CC" >&6; }
6036else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041
6042 test -n "$CC" && break
6043 done
6044fi
6045if test -z "$CC"; then
6046 ac_ct_CC=$CC
6047 for ac_prog in cl.exe
6048do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050set dummy $ac_prog; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006053if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006054 $as_echo_n "(cached) " >&6
6055else
6056 if test -n "$ac_ct_CC"; then
6057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006066 ac_cv_prog_ac_ct_CC="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071 done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_CC=$ac_cv_prog_ac_ct_CC
6077if test -n "$ac_ct_CC"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6079$as_echo "$ac_ct_CC" >&6; }
6080else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086 test -n "$ac_ct_CC" && break
6087done
6088
6089 if test "x$ac_ct_CC" = x; then
6090 CC=""
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 CC=$ac_ct_CC
6099 fi
6100fi
6101
6102fi
6103
6104
6105test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006107as_fn_error $? "no acceptable C compiler found in \$PATH
6108See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006109
6110# Provide some information about the compiler.
6111$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6112set X $ac_compile
6113ac_compiler=$2
6114for ac_option in --version -v -V -qversion; do
6115 { { ac_try="$ac_compiler $ac_option >&5"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6121$as_echo "$ac_try_echo"; } >&5
6122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6123 ac_status=$?
6124 if test -s conftest.err; then
6125 sed '10a\
6126... rest of stderr output deleted ...
6127 10q' conftest.err >conftest.er1
6128 cat conftest.er1 >&5
6129 fi
6130 rm -f conftest.er1 conftest.err
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }
6133done
6134
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006137if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006138 $as_echo_n "(cached) " >&6
6139else
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h. */
6142
6143int
6144main ()
6145{
6146#ifndef __GNUC__
6147 choke me
6148#endif
6149
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155 ac_compiler_gnu=yes
6156else
6157 ac_compiler_gnu=no
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160ac_cv_c_compiler_gnu=$ac_compiler_gnu
6161
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6164$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6165if test $ac_compiler_gnu = yes; then
6166 GCC=yes
6167else
6168 GCC=
6169fi
6170ac_test_CFLAGS=${CFLAGS+set}
6171ac_save_CFLAGS=$CFLAGS
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6173$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006174if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006175 $as_echo_n "(cached) " >&6
6176else
6177 ac_save_c_werror_flag=$ac_c_werror_flag
6178 ac_c_werror_flag=yes
6179 ac_cv_prog_cc_g=no
6180 CFLAGS="-g"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h. */
6183
6184int
6185main ()
6186{
6187
6188 ;
6189 return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_prog_cc_g=yes
6194else
6195 CFLAGS=""
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h. */
6198
6199int
6200main ()
6201{
6202
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208
6209else
6210 ac_c_werror_flag=$ac_save_c_werror_flag
6211 CFLAGS="-g"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h. */
6214
6215int
6216main ()
6217{
6218
6219 ;
6220 return 0;
6221}
6222_ACEOF
6223if ac_fn_c_try_compile "$LINENO"; then :
6224 ac_cv_prog_cc_g=yes
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 ac_c_werror_flag=$ac_save_c_werror_flag
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6234$as_echo "$ac_cv_prog_cc_g" >&6; }
6235if test "$ac_test_CFLAGS" = set; then
6236 CFLAGS=$ac_save_CFLAGS
6237elif test $ac_cv_prog_cc_g = yes; then
6238 if test "$GCC" = yes; then
6239 CFLAGS="-g -O2"
6240 else
6241 CFLAGS="-g"
6242 fi
6243else
6244 if test "$GCC" = yes; then
6245 CFLAGS="-O2"
6246 else
6247 CFLAGS=
6248 fi
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006252if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006253 $as_echo_n "(cached) " >&6
6254else
6255 ac_cv_prog_cc_c89=no
6256ac_save_CC=$CC
6257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258/* end confdefs.h. */
6259#include <stdarg.h>
6260#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006261struct stat;
cristya0b81c32010-01-22 02:54:33 +00006262/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6263struct buf { int x; };
6264FILE * (*rcsopen) (struct buf *, struct stat *, int);
6265static char *e (p, i)
6266 char **p;
6267 int i;
6268{
6269 return p[i];
6270}
6271static char *f (char * (*g) (char **, int), char **p, ...)
6272{
6273 char *s;
6274 va_list v;
6275 va_start (v,p);
6276 s = g (p, va_arg (v,int));
6277 va_end (v);
6278 return s;
6279}
6280
6281/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6282 function prototypes and stuff, but not '\xHH' hex character constants.
6283 These don't provoke an error unfortunately, instead are silently treated
6284 as 'x'. The following induces an error, until -std is added to get
6285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6286 array size at least. It's necessary to write '\x00'==0 to get something
6287 that's true only with -std. */
6288int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6289
6290/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6291 inside strings and character constants. */
6292#define FOO(x) 'x'
6293int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6294
6295int test (int i, double x);
6296struct s1 {int (*f) (int a);};
6297struct s2 {int (*f) (double a);};
6298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6299int argc;
6300char **argv;
6301int
6302main ()
6303{
6304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6311do
6312 CC="$ac_save_CC $ac_arg"
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 ac_cv_prog_cc_c89=$ac_arg
6315fi
6316rm -f core conftest.err conftest.$ac_objext
6317 test "x$ac_cv_prog_cc_c89" != "xno" && break
6318done
6319rm -f conftest.$ac_ext
6320CC=$ac_save_CC
6321
6322fi
6323# AC_CACHE_VAL
6324case "x$ac_cv_prog_cc_c89" in
6325 x)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6327$as_echo "none needed" >&6; } ;;
6328 xno)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6330$as_echo "unsupported" >&6; } ;;
6331 *)
6332 CC="$CC $ac_cv_prog_cc_c89"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6334$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6335esac
6336if test "x$ac_cv_prog_cc_c89" != xno; then :
6337
6338fi
6339
6340ac_ext=c
6341ac_cpp='$CPP $CPPFLAGS'
6342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345
cristy73bd4a52010-10-05 11:24:23 +00006346depcc="$CC" am_compiler_list=
6347
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6349$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006350if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006351 $as_echo_n "(cached) " >&6
6352else
6353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6354 # We make a subdir and do the tests there. Otherwise we can end up
6355 # making bogus files that we don't know about and never remove. For
6356 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006357 # making a dummy file named 'D' -- because '-MD' means "put the output
6358 # in D".
cristy7247bba2012-02-05 16:37:27 +00006359 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006360 mkdir conftest.dir
6361 # Copy depcomp to subdir because otherwise we won't find it if we're
6362 # using a relative directory.
6363 cp "$am_depcomp" conftest.dir
6364 cd conftest.dir
6365 # We will build objects and dependencies in a subdirectory because
6366 # it helps to detect inapplicable dependency modes. For instance
6367 # both Tru64's cc and ICC support -MD to output dependencies as a
6368 # side effect of compilation, but ICC will put the dependencies in
6369 # the current directory while Tru64 will put them in the object
6370 # directory.
6371 mkdir sub
6372
6373 am_cv_CC_dependencies_compiler_type=none
6374 if test "$am_compiler_list" = ""; then
6375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6376 fi
6377 am__universal=false
6378 case " $depcc " in #(
6379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6380 esac
6381
6382 for depmode in $am_compiler_list; do
6383 # Setup a source with many dependencies, because some compilers
6384 # like to wrap large dependency lists on column 80 (with \), and
6385 # we should not choose a depcomp mode which is confused by this.
6386 #
6387 # We need to recreate these files for each test, as the compiler may
6388 # overwrite some of them when testing with obscure command lines.
6389 # This happens at least with the AIX C compiler.
6390 : > sub/conftest.c
6391 for i in 1 2 3 4 5 6; do
6392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006393 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6394 # Solaris 10 /bin/sh.
6395 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006396 done
6397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6398
cristyc0890a62012-07-19 00:18:20 +00006399 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006400 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006401 # handle '-M -o', and we need to detect this. Also, some Intel
6402 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006403 am__obj=sub/conftest.${OBJEXT-o}
6404 am__minus_obj="-o $am__obj"
6405 case $depmode in
6406 gcc)
6407 # This depmode causes a compiler race in universal mode.
6408 test "$am__universal" = false || continue
6409 ;;
6410 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006411 # After this tag, mechanisms are not by side-effect, so they'll
6412 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006413 if test "x$enable_dependency_tracking" = xyes; then
6414 continue
6415 else
6416 break
6417 fi
6418 ;;
cristy7247bba2012-02-05 16:37:27 +00006419 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006420 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006421 # not run yet. These depmodes are late enough in the game, and
6422 # so weak that their functioning should not be impacted.
6423 am__obj=conftest.${OBJEXT-o}
6424 am__minus_obj=
6425 ;;
6426 none) break ;;
6427 esac
6428 if depmode=$depmode \
6429 source=sub/conftest.c object=$am__obj \
6430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6432 >/dev/null 2>conftest.err &&
6433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6437 # icc doesn't choke on unknown options, it will just issue warnings
6438 # or remarks (even with -Werror). So we grep stderr for any message
6439 # that says an option was ignored or not supported.
6440 # When given -MP, icc 7.0 and 7.1 complain thusly:
6441 # icc: Command line warning: ignoring option '-M'; no argument required
6442 # The diagnosis changed in icc 8.0:
6443 # icc: Command line remark: option '-MP' not supported
6444 if (grep 'ignoring option' conftest.err ||
6445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6446 am_cv_CC_dependencies_compiler_type=$depmode
6447 break
6448 fi
6449 fi
6450 done
6451
6452 cd ..
6453 rm -rf conftest.dir
6454else
6455 am_cv_CC_dependencies_compiler_type=none
6456fi
6457
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6460$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6461CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6462
6463 if
6464 test "x$enable_dependency_tracking" != xno \
6465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6466 am__fastdepCC_TRUE=
6467 am__fastdepCC_FALSE='#'
6468else
6469 am__fastdepCC_TRUE='#'
6470 am__fastdepCC_FALSE=
6471fi
6472
6473
cristy95646052009-11-28 23:05:30 +00006474ac_ext=cpp
6475ac_cpp='$CXXCPP $CPPFLAGS'
6476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6479if test -z "$CXX"; then
6480 if test -n "$CCC"; then
6481 CXX=$CCC
6482 else
6483 if test -n "$ac_tool_prefix"; then
6484 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6485 do
6486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006490if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006491 $as_echo_n "(cached) " >&6
6492else
6493 if test -n "$CXX"; then
6494 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006503 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508 done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513CXX=$ac_cv_prog_CXX
6514if test -n "$CXX"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6516$as_echo "$CXX" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522
6523 test -n "$CXX" && break
6524 done
6525fi
6526if test -z "$CXX"; then
6527 ac_ct_CXX=$CXX
6528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6529do
6530 # Extract the first word of "$ac_prog", so it can be a program name with args.
6531set dummy $ac_prog; ac_word=$2
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006534if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006535 $as_echo_n "(cached) " >&6
6536else
6537 if test -n "$ac_ct_CXX"; then
6538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006547 ac_cv_prog_ac_ct_CXX="$ac_prog"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551done
6552 done
6553IFS=$as_save_IFS
6554
6555fi
6556fi
6557ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6558if test -n "$ac_ct_CXX"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6560$as_echo "$ac_ct_CXX" >&6; }
6561else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564fi
6565
6566
6567 test -n "$ac_ct_CXX" && break
6568done
6569
6570 if test "x$ac_ct_CXX" = x; then
6571 CXX="g++"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574yes:)
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577ac_tool_warned=yes ;;
6578esac
6579 CXX=$ac_ct_CXX
6580 fi
6581fi
6582
6583 fi
6584fi
6585# Provide some information about the compiler.
6586$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6587set X $ac_compile
6588ac_compiler=$2
6589for ac_option in --version -v -V -qversion; do
6590 { { ac_try="$ac_compiler $ac_option >&5"
6591case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594esac
6595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6596$as_echo "$ac_try_echo"; } >&5
6597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6598 ac_status=$?
6599 if test -s conftest.err; then
6600 sed '10a\
6601... rest of stderr output deleted ...
6602 10q' conftest.err >conftest.er1
6603 cat conftest.er1 >&5
6604 fi
6605 rm -f conftest.er1 conftest.err
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }
6608done
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6611$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006612if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006613 $as_echo_n "(cached) " >&6
6614else
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h. */
6617
6618int
6619main ()
6620{
6621#ifndef __GNUC__
6622 choke me
6623#endif
6624
6625 ;
6626 return 0;
6627}
6628_ACEOF
6629if ac_fn_cxx_try_compile "$LINENO"; then :
6630 ac_compiler_gnu=yes
6631else
6632 ac_compiler_gnu=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6639$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6640if test $ac_compiler_gnu = yes; then
6641 GXX=yes
6642else
6643 GXX=
6644fi
6645ac_test_CXXFLAGS=${CXXFLAGS+set}
6646ac_save_CXXFLAGS=$CXXFLAGS
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6648$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006649if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006650 $as_echo_n "(cached) " >&6
6651else
6652 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6653 ac_cxx_werror_flag=yes
6654 ac_cv_prog_cxx_g=no
6655 CXXFLAGS="-g"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h. */
6658
6659int
6660main ()
6661{
6662
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667if ac_fn_cxx_try_compile "$LINENO"; then :
6668 ac_cv_prog_cxx_g=yes
6669else
6670 CXXFLAGS=""
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h. */
6673
6674int
6675main ()
6676{
6677
6678 ;
6679 return 0;
6680}
6681_ACEOF
6682if ac_fn_cxx_try_compile "$LINENO"; then :
6683
6684else
6685 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6686 CXXFLAGS="-g"
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h. */
6689
6690int
6691main ()
6692{
6693
6694 ;
6695 return 0;
6696}
6697_ACEOF
6698if ac_fn_cxx_try_compile "$LINENO"; then :
6699 ac_cv_prog_cxx_g=yes
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6709$as_echo "$ac_cv_prog_cxx_g" >&6; }
6710if test "$ac_test_CXXFLAGS" = set; then
6711 CXXFLAGS=$ac_save_CXXFLAGS
6712elif test $ac_cv_prog_cxx_g = yes; then
6713 if test "$GXX" = yes; then
6714 CXXFLAGS="-g -O2"
6715 else
6716 CXXFLAGS="-g"
6717 fi
6718else
6719 if test "$GXX" = yes; then
6720 CXXFLAGS="-O2"
6721 else
6722 CXXFLAGS=
6723 fi
6724fi
6725ac_ext=c
6726ac_cpp='$CPP $CPPFLAGS'
6727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730
cristy73bd4a52010-10-05 11:24:23 +00006731depcc="$CXX" am_compiler_list=
6732
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6734$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006735if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006736 $as_echo_n "(cached) " >&6
6737else
6738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6739 # We make a subdir and do the tests there. Otherwise we can end up
6740 # making bogus files that we don't know about and never remove. For
6741 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006742 # making a dummy file named 'D' -- because '-MD' means "put the output
6743 # in D".
cristy7247bba2012-02-05 16:37:27 +00006744 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006745 mkdir conftest.dir
6746 # Copy depcomp to subdir because otherwise we won't find it if we're
6747 # using a relative directory.
6748 cp "$am_depcomp" conftest.dir
6749 cd conftest.dir
6750 # We will build objects and dependencies in a subdirectory because
6751 # it helps to detect inapplicable dependency modes. For instance
6752 # both Tru64's cc and ICC support -MD to output dependencies as a
6753 # side effect of compilation, but ICC will put the dependencies in
6754 # the current directory while Tru64 will put them in the object
6755 # directory.
6756 mkdir sub
6757
6758 am_cv_CXX_dependencies_compiler_type=none
6759 if test "$am_compiler_list" = ""; then
6760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6761 fi
6762 am__universal=false
6763 case " $depcc " in #(
6764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6765 esac
6766
6767 for depmode in $am_compiler_list; do
6768 # Setup a source with many dependencies, because some compilers
6769 # like to wrap large dependency lists on column 80 (with \), and
6770 # we should not choose a depcomp mode which is confused by this.
6771 #
6772 # We need to recreate these files for each test, as the compiler may
6773 # overwrite some of them when testing with obscure command lines.
6774 # This happens at least with the AIX C compiler.
6775 : > sub/conftest.c
6776 for i in 1 2 3 4 5 6; do
6777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006778 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6779 # Solaris 10 /bin/sh.
6780 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006781 done
6782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6783
cristyc0890a62012-07-19 00:18:20 +00006784 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006785 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006786 # handle '-M -o', and we need to detect this. Also, some Intel
6787 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006788 am__obj=sub/conftest.${OBJEXT-o}
6789 am__minus_obj="-o $am__obj"
6790 case $depmode in
6791 gcc)
6792 # This depmode causes a compiler race in universal mode.
6793 test "$am__universal" = false || continue
6794 ;;
6795 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006796 # After this tag, mechanisms are not by side-effect, so they'll
6797 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006798 if test "x$enable_dependency_tracking" = xyes; then
6799 continue
6800 else
6801 break
6802 fi
6803 ;;
cristy7247bba2012-02-05 16:37:27 +00006804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006805 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006806 # not run yet. These depmodes are late enough in the game, and
6807 # so weak that their functioning should not be impacted.
6808 am__obj=conftest.${OBJEXT-o}
6809 am__minus_obj=
6810 ;;
6811 none) break ;;
6812 esac
6813 if depmode=$depmode \
6814 source=sub/conftest.c object=$am__obj \
6815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6817 >/dev/null 2>conftest.err &&
6818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6822 # icc doesn't choke on unknown options, it will just issue warnings
6823 # or remarks (even with -Werror). So we grep stderr for any message
6824 # that says an option was ignored or not supported.
6825 # When given -MP, icc 7.0 and 7.1 complain thusly:
6826 # icc: Command line warning: ignoring option '-M'; no argument required
6827 # The diagnosis changed in icc 8.0:
6828 # icc: Command line remark: option '-MP' not supported
6829 if (grep 'ignoring option' conftest.err ||
6830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6831 am_cv_CXX_dependencies_compiler_type=$depmode
6832 break
6833 fi
6834 fi
6835 done
6836
6837 cd ..
6838 rm -rf conftest.dir
6839else
6840 am_cv_CXX_dependencies_compiler_type=none
6841fi
6842
6843fi
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6845$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6846CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6847
6848 if
6849 test "x$enable_dependency_tracking" != xno \
6850 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6851 am__fastdepCXX_TRUE=
6852 am__fastdepCXX_FALSE='#'
6853else
6854 am__fastdepCXX_TRUE='#'
6855 am__fastdepCXX_FALSE=
6856fi
6857
6858
cristy8b350f62009-11-15 23:12:43 +00006859 case $ac_cv_prog_cc_stdc in #(
6860 no) :
6861 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6862 *) :
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006864$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006865if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006866 $as_echo_n "(cached) " >&6
6867else
6868 ac_cv_prog_cc_c99=no
6869ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006871/* end confdefs.h. */
6872#include <stdarg.h>
6873#include <stdbool.h>
6874#include <stdlib.h>
6875#include <wchar.h>
6876#include <stdio.h>
6877
6878// Check varargs macros. These examples are taken from C99 6.10.3.5.
6879#define debug(...) fprintf (stderr, __VA_ARGS__)
6880#define showlist(...) puts (#__VA_ARGS__)
6881#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6882static void
6883test_varargs_macros (void)
6884{
6885 int x = 1234;
6886 int y = 5678;
6887 debug ("Flag");
6888 debug ("X = %d\n", x);
6889 showlist (The first, second, and third items.);
6890 report (x>y, "x is %d but y is %d", x, y);
6891}
6892
6893// Check long long types.
6894#define BIG64 18446744073709551615ull
6895#define BIG32 4294967295ul
6896#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6897#if !BIG_OK
6898 your preprocessor is broken;
6899#endif
6900#if BIG_OK
6901#else
6902 your preprocessor is broken;
6903#endif
6904static long long int bignum = -9223372036854775807LL;
6905static unsigned long long int ubignum = BIG64;
6906
6907struct incomplete_array
6908{
6909 int datasize;
6910 double data[];
6911};
6912
6913struct named_init {
6914 int number;
6915 const wchar_t *name;
6916 double average;
6917};
6918
6919typedef const char *ccp;
6920
6921static inline int
6922test_restrict (ccp restrict text)
6923{
6924 // See if C++-style comments work.
6925 // Iterate through items via the restricted pointer.
6926 // Also check for declarations in for loops.
6927 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6928 continue;
6929 return 0;
6930}
6931
6932// Check varargs and va_copy.
6933static void
6934test_varargs (const char *format, ...)
6935{
6936 va_list args;
6937 va_start (args, format);
6938 va_list args_copy;
6939 va_copy (args_copy, args);
6940
6941 const char *str;
6942 int number;
6943 float fnumber;
6944
6945 while (*format)
6946 {
6947 switch (*format++)
6948 {
6949 case 's': // string
6950 str = va_arg (args_copy, const char *);
6951 break;
6952 case 'd': // int
6953 number = va_arg (args_copy, int);
6954 break;
6955 case 'f': // float
6956 fnumber = va_arg (args_copy, double);
6957 break;
6958 default:
6959 break;
6960 }
6961 }
6962 va_end (args_copy);
6963 va_end (args);
6964}
6965
6966int
6967main ()
6968{
6969
6970 // Check bool.
6971 _Bool success = false;
6972
6973 // Check restrict.
6974 if (test_restrict ("String literal") == 0)
6975 success = true;
6976 char *restrict newvar = "Another string";
6977
6978 // Check varargs.
6979 test_varargs ("s, d' f .", "string", 65, 34.234);
6980 test_varargs_macros ();
6981
6982 // Check flexible array members.
6983 struct incomplete_array *ia =
6984 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6985 ia->datasize = 10;
6986 for (int i = 0; i < ia->datasize; ++i)
6987 ia->data[i] = i * 1.234;
6988
6989 // Check named initializers.
6990 struct named_init ni = {
6991 .number = 34,
6992 .name = L"Test wide string",
6993 .average = 543.34343,
6994 };
6995
6996 ni.number = 58;
6997
6998 int dynamic_array[ni.number];
6999 dynamic_array[ni.number - 1] = 543;
7000
7001 // work around unused variable warnings
7002 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7003 || dynamic_array[ni.number - 1] != 543);
7004
7005 ;
7006 return 0;
7007}
7008_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007009for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007010do
7011 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007012 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007013 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007014fi
cristy3ed852e2009-09-05 21:47:34 +00007015rm -f core conftest.err conftest.$ac_objext
7016 test "x$ac_cv_prog_cc_c99" != "xno" && break
7017done
7018rm -f conftest.$ac_ext
7019CC=$ac_save_CC
7020
7021fi
7022# AC_CACHE_VAL
7023case "x$ac_cv_prog_cc_c99" in
7024 x)
cristy8b350f62009-11-15 23:12:43 +00007025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007026$as_echo "none needed" >&6; } ;;
7027 xno)
cristy8b350f62009-11-15 23:12:43 +00007028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007029$as_echo "unsupported" >&6; } ;;
7030 *)
7031 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007033$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7034esac
cristy8b350f62009-11-15 23:12:43 +00007035if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007036 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7037else
cristy8b350f62009-11-15 23:12:43 +00007038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007039$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007040if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007041 $as_echo_n "(cached) " >&6
7042else
7043 ac_cv_prog_cc_c89=no
7044ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007046/* end confdefs.h. */
7047#include <stdarg.h>
7048#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007049struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7051struct buf { int x; };
7052FILE * (*rcsopen) (struct buf *, struct stat *, int);
7053static char *e (p, i)
7054 char **p;
7055 int i;
7056{
7057 return p[i];
7058}
7059static char *f (char * (*g) (char **, int), char **p, ...)
7060{
7061 char *s;
7062 va_list v;
7063 va_start (v,p);
7064 s = g (p, va_arg (v,int));
7065 va_end (v);
7066 return s;
7067}
7068
7069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7070 function prototypes and stuff, but not '\xHH' hex character constants.
7071 These don't provoke an error unfortunately, instead are silently treated
7072 as 'x'. The following induces an error, until -std is added to get
7073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7074 array size at least. It's necessary to write '\x00'==0 to get something
7075 that's true only with -std. */
7076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7077
7078/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7079 inside strings and character constants. */
7080#define FOO(x) 'x'
7081int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7082
7083int test (int i, double x);
7084struct s1 {int (*f) (int a);};
7085struct s2 {int (*f) (double a);};
7086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7087int argc;
7088char **argv;
7089int
7090main ()
7091{
7092return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7093 ;
7094 return 0;
7095}
7096_ACEOF
7097for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7099do
7100 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007101 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007102 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007103fi
cristy3ed852e2009-09-05 21:47:34 +00007104rm -f core conftest.err conftest.$ac_objext
7105 test "x$ac_cv_prog_cc_c89" != "xno" && break
7106done
7107rm -f conftest.$ac_ext
7108CC=$ac_save_CC
7109
7110fi
7111# AC_CACHE_VAL
7112case "x$ac_cv_prog_cc_c89" in
7113 x)
cristy8b350f62009-11-15 23:12:43 +00007114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007115$as_echo "none needed" >&6; } ;;
7116 xno)
cristy8b350f62009-11-15 23:12:43 +00007117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007118$as_echo "unsupported" >&6; } ;;
7119 *)
7120 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007122$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7123esac
cristy8b350f62009-11-15 23:12:43 +00007124if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007125 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7126else
7127 ac_cv_prog_cc_stdc=no
7128fi
7129
cristy3ed852e2009-09-05 21:47:34 +00007130fi
cristy3ed852e2009-09-05 21:47:34 +00007131 ;;
7132esac
cristy8b350f62009-11-15 23:12:43 +00007133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007134$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007135 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007136 $as_echo_n "(cached) " >&6
7137fi
7138
cristy8b350f62009-11-15 23:12:43 +00007139 case $ac_cv_prog_cc_stdc in #(
7140 no) :
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7142$as_echo "unsupported" >&6; } ;; #(
7143 '') :
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7145$as_echo "none needed" >&6; } ;; #(
7146 *) :
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007148$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7149esac
7150
cristy3ed852e2009-09-05 21:47:34 +00007151ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007157$as_echo_n "checking how to run the C preprocessor... " >&6; }
7158# On Suns, sometimes $CPP names a directory.
7159if test -n "$CPP" && test -d "$CPP"; then
7160 CPP=
7161fi
7162if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007163 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007164 $as_echo_n "(cached) " >&6
7165else
7166 # Double quotes because CPP needs to be expanded
7167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7168 do
7169 ac_preproc_ok=false
7170for ac_c_preproc_warn_flag in '' yes
7171do
7172 # Use a header file that comes with gcc, so configuring glibc
7173 # with a fresh cross-compiler works.
7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7175 # <limits.h> exists even on freestanding compilers.
7176 # On the NeXT, cc -E runs the code through the compiler's parser,
7177 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007179/* end confdefs.h. */
7180#ifdef __STDC__
7181# include <limits.h>
7182#else
7183# include <assert.h>
7184#endif
7185 Syntax error
7186_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007187if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007188
cristy8b350f62009-11-15 23:12:43 +00007189else
cristy3ed852e2009-09-05 21:47:34 +00007190 # Broken: fails on valid input.
7191continue
7192fi
cristyda16f162011-02-19 23:52:17 +00007193rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007194
7195 # OK, works on sane cases. Now check whether nonexistent headers
7196 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007198/* end confdefs.h. */
7199#include <ac_nonexistent.h>
7200_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007201if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007202 # Broken: success on invalid input.
7203continue
7204else
cristy3ed852e2009-09-05 21:47:34 +00007205 # Passes both tests.
7206ac_preproc_ok=:
7207break
7208fi
cristyda16f162011-02-19 23:52:17 +00007209rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007210
7211done
7212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007213rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007214if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007215 break
7216fi
7217
7218 done
7219 ac_cv_prog_CPP=$CPP
7220
7221fi
7222 CPP=$ac_cv_prog_CPP
7223else
7224 ac_cv_prog_CPP=$CPP
7225fi
cristy8b350f62009-11-15 23:12:43 +00007226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007227$as_echo "$CPP" >&6; }
7228ac_preproc_ok=false
7229for ac_c_preproc_warn_flag in '' yes
7230do
7231 # Use a header file that comes with gcc, so configuring glibc
7232 # with a fresh cross-compiler works.
7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7234 # <limits.h> exists even on freestanding compilers.
7235 # On the NeXT, cc -E runs the code through the compiler's parser,
7236 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007238/* end confdefs.h. */
7239#ifdef __STDC__
7240# include <limits.h>
7241#else
7242# include <assert.h>
7243#endif
7244 Syntax error
7245_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007246if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007247
cristy8b350f62009-11-15 23:12:43 +00007248else
cristy3ed852e2009-09-05 21:47:34 +00007249 # Broken: fails on valid input.
7250continue
7251fi
cristyda16f162011-02-19 23:52:17 +00007252rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007253
7254 # OK, works on sane cases. Now check whether nonexistent headers
7255 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007257/* end confdefs.h. */
7258#include <ac_nonexistent.h>
7259_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007260if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007261 # Broken: success on invalid input.
7262continue
7263else
cristy3ed852e2009-09-05 21:47:34 +00007264 # Passes both tests.
7265ac_preproc_ok=:
7266break
7267fi
cristyda16f162011-02-19 23:52:17 +00007268rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007269
7270done
7271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007272rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007273if $ac_preproc_ok; then :
7274
cristy3ed852e2009-09-05 21:47:34 +00007275else
cristy8b350f62009-11-15 23:12:43 +00007276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007278as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7279See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007280fi
7281
7282ac_ext=c
7283ac_cpp='$CPP $CPPFLAGS'
7284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
cristy73bd4a52010-10-05 11:24:23 +00007288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7289$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007290if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007291 $as_echo_n "(cached) " >&6
7292else
7293 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7294 for ac_i in 1 2 3 4 5 6 7; do
7295 ac_script="$ac_script$as_nl$ac_script"
7296 done
7297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7298 { ac_script=; unset ac_script;}
7299 if test -z "$SED"; then
7300 ac_path_SED_found=false
7301 # Loop through the user's path and test for each of PROGNAME-LIST
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_prog in sed gsed; do
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007310 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007311# Check for GNU ac_path_SED and select it if it is found.
7312 # Check for GNU $ac_path_SED
7313case `"$ac_path_SED" --version 2>&1` in
7314*GNU*)
7315 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7316*)
7317 ac_count=0
7318 $as_echo_n 0123456789 >"conftest.in"
7319 while :
7320 do
7321 cat "conftest.in" "conftest.in" >"conftest.tmp"
7322 mv "conftest.tmp" "conftest.in"
7323 cp "conftest.in" "conftest.nl"
7324 $as_echo '' >> "conftest.nl"
7325 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7327 as_fn_arith $ac_count + 1 && ac_count=$as_val
7328 if test $ac_count -gt ${ac_path_SED_max-0}; then
7329 # Best one so far, save it but keep looking for a better one
7330 ac_cv_path_SED="$ac_path_SED"
7331 ac_path_SED_max=$ac_count
7332 fi
7333 # 10*(2^10) chars as input seems more than enough
7334 test $ac_count -gt 10 && break
7335 done
7336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7337esac
7338
7339 $ac_path_SED_found && break 3
7340 done
7341 done
7342 done
7343IFS=$as_save_IFS
7344 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007345 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007346 fi
7347else
7348 ac_cv_path_SED=$SED
7349fi
7350
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7353$as_echo "$ac_cv_path_SED" >&6; }
7354 SED="$ac_cv_path_SED"
7355 rm -f conftest.sed
7356
7357test -z "$SED" && SED=sed
7358Xsed="$SED -e 1s/^X//"
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7371$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007372if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007373 $as_echo_n "(cached) " >&6
7374else
7375 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7376 then ac_cv_path_FGREP="$GREP -F"
7377 else
7378 if test -z "$FGREP"; then
7379 ac_path_FGREP_found=false
7380 # Loop through the user's path and test for each of PROGNAME-LIST
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7383do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_prog in fgrep; do
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007389 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007390# Check for GNU ac_path_FGREP and select it if it is found.
7391 # Check for GNU $ac_path_FGREP
7392case `"$ac_path_FGREP" --version 2>&1` in
7393*GNU*)
7394 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7395*)
7396 ac_count=0
7397 $as_echo_n 0123456789 >"conftest.in"
7398 while :
7399 do
7400 cat "conftest.in" "conftest.in" >"conftest.tmp"
7401 mv "conftest.tmp" "conftest.in"
7402 cp "conftest.in" "conftest.nl"
7403 $as_echo 'FGREP' >> "conftest.nl"
7404 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7406 as_fn_arith $ac_count + 1 && ac_count=$as_val
7407 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7408 # Best one so far, save it but keep looking for a better one
7409 ac_cv_path_FGREP="$ac_path_FGREP"
7410 ac_path_FGREP_max=$ac_count
7411 fi
7412 # 10*(2^10) chars as input seems more than enough
7413 test $ac_count -gt 10 && break
7414 done
7415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7416esac
7417
7418 $ac_path_FGREP_found && break 3
7419 done
7420 done
7421 done
7422IFS=$as_save_IFS
7423 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007424 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007425 fi
7426else
7427 ac_cv_path_FGREP=$FGREP
7428fi
7429
7430 fi
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7433$as_echo "$ac_cv_path_FGREP" >&6; }
7434 FGREP="$ac_cv_path_FGREP"
7435
7436
7437test -z "$GREP" && GREP=grep
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
cristy0c60a692010-11-04 01:09:47 +00007455ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7456ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7458
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7460$as_echo_n "checking how to print strings... " >&6; }
7461# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007462if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7464 ECHO='print -r --'
7465elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7466 ECHO='printf %s\n'
7467else
7468 # Use this function as a fallback that always works.
7469 func_fallback_echo ()
7470 {
7471 eval 'cat <<_LTECHO_EOF
7472$1
7473_LTECHO_EOF'
7474 }
7475 ECHO='func_fallback_echo'
7476fi
7477
7478# func_echo_all arg...
7479# Invoke $ECHO with all args, space-separated.
7480func_echo_all ()
7481{
7482 $ECHO ""
7483}
7484
7485case "$ECHO" in
7486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7487$as_echo "printf" >&6; } ;;
7488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7489$as_echo "print -r" >&6; } ;;
7490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7491$as_echo "cat" >&6; } ;;
7492esac
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
cristy73bd4a52010-10-05 11:24:23 +00007507
7508
7509# Check whether --with-gnu-ld was given.
7510if test "${with_gnu_ld+set}" = set; then :
7511 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7512else
7513 with_gnu_ld=no
7514fi
7515
7516ac_prog=ld
7517if test "$GCC" = yes; then
7518 # Check if gcc -print-prog-name=ld gives a path.
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7520$as_echo_n "checking for ld used by $CC... " >&6; }
7521 case $host in
7522 *-*-mingw*)
7523 # gcc leaves a trailing carriage return which upsets mingw
7524 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7525 *)
7526 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7527 esac
7528 case $ac_prog in
7529 # Accept absolute paths.
7530 [\\/]* | ?:[\\/]*)
7531 re_direlt='/[^/][^/]*/\.\./'
7532 # Canonicalize the pathname of ld
7533 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7534 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7535 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7536 done
7537 test -z "$LD" && LD="$ac_prog"
7538 ;;
7539 "")
7540 # If it fails, then pretend we aren't using GCC.
7541 ac_prog=ld
7542 ;;
7543 *)
7544 # If it is relative, then search for the first ld in PATH.
7545 with_gnu_ld=unknown
7546 ;;
7547 esac
7548elif test "$with_gnu_ld" = yes; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7550$as_echo_n "checking for GNU ld... " >&6; }
7551else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7553$as_echo_n "checking for non-GNU ld... " >&6; }
7554fi
cristyda16f162011-02-19 23:52:17 +00007555if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007556 $as_echo_n "(cached) " >&6
7557else
7558 if test -z "$LD"; then
7559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7560 for ac_dir in $PATH; do
7561 IFS="$lt_save_ifs"
7562 test -z "$ac_dir" && ac_dir=.
7563 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7564 lt_cv_path_LD="$ac_dir/$ac_prog"
7565 # Check to see if the program is GNU ld. I'd rather use --version,
7566 # but apparently some variants of GNU ld only accept -v.
7567 # Break only if it was the GNU/non-GNU ld that we prefer.
7568 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7569 *GNU* | *'with BFD'*)
7570 test "$with_gnu_ld" != no && break
7571 ;;
7572 *)
7573 test "$with_gnu_ld" != yes && break
7574 ;;
7575 esac
7576 fi
7577 done
7578 IFS="$lt_save_ifs"
7579else
7580 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7581fi
7582fi
7583
7584LD="$lt_cv_path_LD"
7585if test -n "$LD"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7587$as_echo "$LD" >&6; }
7588else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590$as_echo "no" >&6; }
7591fi
cristy98dddb52010-11-04 00:30:15 +00007592test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7594$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007595if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007596 $as_echo_n "(cached) " >&6
7597else
7598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7599case `$LD -v 2>&1 </dev/null` in
7600*GNU* | *'with BFD'*)
7601 lt_cv_prog_gnu_ld=yes
7602 ;;
7603*)
7604 lt_cv_prog_gnu_ld=no
7605 ;;
7606esac
7607fi
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7609$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7610with_gnu_ld=$lt_cv_prog_gnu_ld
7611
7612
7613
7614
7615
7616
7617
7618
7619
cristy3ed852e2009-09-05 21:47:34 +00007620
cristy837d6dc2010-02-27 01:16:57 +00007621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7622$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007623if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007624 $as_echo_n "(cached) " >&6
7625else
7626 ac_cv_prog_cc_c99=no
7627ac_save_CC=$CC
7628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630#include <stdarg.h>
7631#include <stdbool.h>
7632#include <stdlib.h>
7633#include <wchar.h>
7634#include <stdio.h>
7635
7636// Check varargs macros. These examples are taken from C99 6.10.3.5.
7637#define debug(...) fprintf (stderr, __VA_ARGS__)
7638#define showlist(...) puts (#__VA_ARGS__)
7639#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7640static void
7641test_varargs_macros (void)
7642{
7643 int x = 1234;
7644 int y = 5678;
7645 debug ("Flag");
7646 debug ("X = %d\n", x);
7647 showlist (The first, second, and third items.);
7648 report (x>y, "x is %d but y is %d", x, y);
7649}
7650
7651// Check long long types.
7652#define BIG64 18446744073709551615ull
7653#define BIG32 4294967295ul
7654#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7655#if !BIG_OK
7656 your preprocessor is broken;
7657#endif
7658#if BIG_OK
7659#else
7660 your preprocessor is broken;
7661#endif
7662static long long int bignum = -9223372036854775807LL;
7663static unsigned long long int ubignum = BIG64;
7664
7665struct incomplete_array
7666{
7667 int datasize;
7668 double data[];
7669};
7670
7671struct named_init {
7672 int number;
7673 const wchar_t *name;
7674 double average;
7675};
7676
7677typedef const char *ccp;
7678
7679static inline int
7680test_restrict (ccp restrict text)
7681{
7682 // See if C++-style comments work.
7683 // Iterate through items via the restricted pointer.
7684 // Also check for declarations in for loops.
7685 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7686 continue;
7687 return 0;
7688}
7689
7690// Check varargs and va_copy.
7691static void
7692test_varargs (const char *format, ...)
7693{
7694 va_list args;
7695 va_start (args, format);
7696 va_list args_copy;
7697 va_copy (args_copy, args);
7698
7699 const char *str;
7700 int number;
7701 float fnumber;
7702
7703 while (*format)
7704 {
7705 switch (*format++)
7706 {
7707 case 's': // string
7708 str = va_arg (args_copy, const char *);
7709 break;
7710 case 'd': // int
7711 number = va_arg (args_copy, int);
7712 break;
7713 case 'f': // float
7714 fnumber = va_arg (args_copy, double);
7715 break;
7716 default:
7717 break;
7718 }
7719 }
7720 va_end (args_copy);
7721 va_end (args);
7722}
7723
7724int
7725main ()
7726{
7727
7728 // Check bool.
7729 _Bool success = false;
7730
7731 // Check restrict.
7732 if (test_restrict ("String literal") == 0)
7733 success = true;
7734 char *restrict newvar = "Another string";
7735
7736 // Check varargs.
7737 test_varargs ("s, d' f .", "string", 65, 34.234);
7738 test_varargs_macros ();
7739
7740 // Check flexible array members.
7741 struct incomplete_array *ia =
7742 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7743 ia->datasize = 10;
7744 for (int i = 0; i < ia->datasize; ++i)
7745 ia->data[i] = i * 1.234;
7746
7747 // Check named initializers.
7748 struct named_init ni = {
7749 .number = 34,
7750 .name = L"Test wide string",
7751 .average = 543.34343,
7752 };
7753
7754 ni.number = 58;
7755
7756 int dynamic_array[ni.number];
7757 dynamic_array[ni.number - 1] = 543;
7758
7759 // work around unused variable warnings
7760 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7761 || dynamic_array[ni.number - 1] != 543);
7762
7763 ;
7764 return 0;
7765}
7766_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007767for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007768do
7769 CC="$ac_save_CC $ac_arg"
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771 ac_cv_prog_cc_c99=$ac_arg
7772fi
7773rm -f core conftest.err conftest.$ac_objext
7774 test "x$ac_cv_prog_cc_c99" != "xno" && break
7775done
7776rm -f conftest.$ac_ext
7777CC=$ac_save_CC
7778
7779fi
7780# AC_CACHE_VAL
7781case "x$ac_cv_prog_cc_c99" in
7782 x)
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7784$as_echo "none needed" >&6; } ;;
7785 xno)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7787$as_echo "unsupported" >&6; } ;;
7788 *)
7789 CC="$CC $ac_cv_prog_cc_c99"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7791$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7792esac
7793if test "x$ac_cv_prog_cc_c99" != xno; then :
7794
7795fi
7796
7797
cristy73bd4a52010-10-05 11:24:23 +00007798if test "x$CC" != xcc; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7800$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7801else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7803$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7804fi
7805set dummy $CC; ac_cc=`$as_echo "$2" |
7806 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007807if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 $as_echo_n "(cached) " >&6
7809else
cristy73bd4a52010-10-05 11:24:23 +00007810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h. */
7812
7813int
7814main ()
7815{
7816
7817 ;
7818 return 0;
7819}
7820_ACEOF
7821# Make sure it works both with $CC and with simple cc.
7822# We do the test twice because some compilers refuse to overwrite an
7823# existing .o file with -o, though they will create one.
7824ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7825rm -f conftest2.*
7826if { { case "(($ac_try" in
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7829esac
7830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7831$as_echo "$ac_try_echo"; } >&5
7832 (eval "$ac_try") 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; } &&
7836 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7839esac
7840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7841$as_echo "$ac_try_echo"; } >&5
7842 (eval "$ac_try") 2>&5
7843 ac_status=$?
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; };
7846then
7847 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7848 if test "x$CC" != xcc; then
7849 # Test first that cc exists at all.
7850 if { ac_try='cc -c conftest.$ac_ext >&5'
7851 { { case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856$as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; }; then
7861 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7862 rm -f conftest2.*
7863 if { { case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7868$as_echo "$ac_try_echo"; } >&5
7869 (eval "$ac_try") 2>&5
7870 ac_status=$?
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; } &&
7873 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7878$as_echo "$ac_try_echo"; } >&5
7879 (eval "$ac_try") 2>&5
7880 ac_status=$?
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; };
7883 then
7884 # cc works too.
7885 :
7886 else
7887 # cc exists but doesn't like -o.
7888 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7889 fi
7890 fi
7891 fi
7892else
7893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7894fi
7895rm -f core conftest*
7896
7897fi
7898if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900$as_echo "yes" >&6; }
7901else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
7904
7905$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7906
7907fi
7908
7909# FIXME: we rely on the cache variable name because
7910# there is no other way.
7911set dummy $CC
7912am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7913eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7914if test "$am_t" != yes; then
7915 # Losing compiler, so override with the script.
7916 # FIXME: It is wrong to rewrite CC.
7917 # But if we don't then we get into trouble of one sort or another.
7918 # A longer-term fix would be to have automake use am__CC in this case,
7919 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7920 CC="$am_aux_dir/compile $CC"
7921fi
7922
7923
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7925$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007926if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007927 $as_echo_n "(cached) " >&6
7928else
7929 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007930 ac_ext=c
7931ac_cpp='$CPP $CPPFLAGS'
7932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
7936 ac_save_CFLAGS="$CFLAGS"
7937for 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" #
7938do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h. */
7941
7942int
7943main ()
7944{
cristy24fc1fe2010-10-23 21:13:01 +00007945
cristy73bd4a52010-10-05 11:24:23 +00007946 ;
7947 return 0;
7948}
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"; then :
7951 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7952fi
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954done
7955 CFLAGS="$ac_save_CFLAGS"
7956 ac_ext=c
7957ac_cpp='$CPP $CPPFLAGS'
7958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961
7962
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7965$as_echo "$ac_cv_cflags_warn_all" >&6; }
7966case ".$ac_cv_cflags_warn_all" in
7967 .ok|.ok,*) ;;
7968 .|.no|.no,*)
7969 ;;
7970 *)
7971 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7972 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7973 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7974 ac_status=$?
7975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7976 test $ac_status = 0; }
7977 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7978 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7979 ac_status=$?
7980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7981 test $ac_status = 0; }
7982 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7983 fi
7984 ;;
nicolas6237c462010-10-05 06:11:49 +00007985esac
cristy3ed852e2009-09-05 21:47:34 +00007986
cristy568c2d42012-07-27 01:41:20 +00007987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7988$as_echo_n "checking for C compiler vendor... " >&6; }
7989if ${ax_cv_c_compiler_vendor+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991else
7992 # note: don't check for gcc first since some other compilers define __GNUC__
7993 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7994 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7995 pathscale: __PATHCC__,__PATHSCALE__
7996 clang: __clang__
7997 gnu: __GNUC__
7998 sun: __SUNPRO_C,__SUNPRO_CC
7999 hp: __HP_cc,__HP_aCC
8000 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8001 borland: __BORLANDC__,__TURBOC__
8002 comeau: __COMO__
8003 cray: _CRAYC
8004 kai: __KCC
8005 lcc: __LCC__
8006 sgi: __sgi,sgi
8007 microsoft: _MSC_VER
8008 metrowerks: __MWERKS__
8009 watcom: __WATCOMC__
8010 portland: __PGI
8011 unknown: UNKNOWN"
8012 for ventest in $vendors; do
8013 case $ventest in
8014 *:) vendor=$ventest; continue ;;
8015 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8016 esac
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h. */
8019
8020int
8021main ()
8022{
8023
8024 #if !($vencpp)
8025 thisisanerror;
8026 #endif
8027
8028 ;
8029 return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"; then :
8033 break
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 done
8037 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8038
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8041$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8042
cristya0b81c32010-01-22 02:54:33 +00008043
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8045$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8046set x ${MAKE-make}
8047ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008048if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008049 $as_echo_n "(cached) " >&6
8050else
8051 cat >conftest.make <<\_ACEOF
8052SHELL = /bin/sh
8053all:
8054 @echo '@@@%%%=$(MAKE)=@@@%%%'
8055_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008056# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008057case `${MAKE-make} -f conftest.make 2>/dev/null` in
8058 *@@@%%%=?*=@@@%%%*)
8059 eval ac_cv_prog_make_${ac_make}_set=yes;;
8060 *)
8061 eval ac_cv_prog_make_${ac_make}_set=no;;
8062esac
8063rm -f conftest.make
8064fi
8065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8067$as_echo "yes" >&6; }
8068 SET_MAKE=
8069else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072 SET_MAKE="MAKE=${MAKE-make}"
8073fi
8074
cristy8b350f62009-11-15 23:12:43 +00008075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008076$as_echo_n "checking whether ln -s works... " >&6; }
8077LN_S=$as_ln_s
8078if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008080$as_echo "yes" >&6; }
8081else
cristy8b350f62009-11-15 23:12:43 +00008082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008083$as_echo "no, using $LN_S" >&6; }
8084fi
8085
cristybc556452012-08-17 19:44:03 +00008086for ac_prog in gawk mawk nawk awk
8087do
8088 # Extract the first word of "$ac_prog", so it can be a program name with args.
8089set dummy $ac_prog; ac_word=$2
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if ${ac_cv_prog_AWK+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094else
8095 if test -n "$AWK"; then
8096 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_AWK="$ac_prog"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109done
8110 done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115AWK=$ac_cv_prog_AWK
8116if test -n "$AWK"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8118$as_echo "$AWK" >&6; }
8119else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125 test -n "$AWK" && break
8126done
8127
cristy73bd4a52010-10-05 11:24:23 +00008128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8129$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8130
8131# Check whether --with-dmalloc was given.
8132if test "${with_dmalloc+set}" = set; then :
8133 withval=$with_dmalloc; if test "$withval" = yes; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8135$as_echo "yes" >&6; }
8136
8137$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8138
8139 LIBS="$LIBS -ldmalloc"
8140 LDFLAGS="$LDFLAGS -g"
8141else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143$as_echo "no" >&6; }
8144fi
8145else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8153$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008154if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008155 $as_echo_n "(cached) " >&6
8156else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h. */
8159#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008160 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008161 static void
8162 foo(void) {
8163 exit(1);
8164 }
8165
8166int
8167main ()
8168{
8169
8170 ;
8171 return 0;
8172}
8173_ACEOF
8174if ac_fn_c_try_compile "$LINENO"; then :
8175 ax_cv___attribute__=yes
8176else
8177 ax_cv___attribute__=no
8178
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181
8182fi
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8184$as_echo "$ax_cv___attribute__" >&6; }
8185 if test "$ax_cv___attribute__" = "yes"; then
8186
8187$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8188
8189 fi
8190
8191
8192
cristy37110d62012-03-01 18:38:20 +00008193
8194
8195# Check whether --with-gcc-arch was given.
8196if test "${with_gcc_arch+set}" = set; then :
8197 withval=$with_gcc_arch; ax_gcc_arch=$withval
8198else
cristya32d1812012-03-02 19:24:21 +00008199 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008200fi
8201
8202
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8204$as_echo_n "checking for gcc architecture flag... " >&6; }
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8206$as_echo "" >&6; }
8207if ${ax_cv_gcc_archflag+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210
8211ax_cv_gcc_archflag="unknown"
8212
8213if test "$GCC" = yes; then
8214
8215if test "x$ax_gcc_arch" = xyes; then
8216ax_gcc_arch=""
8217if test "$cross_compiling" = no; then
8218case $host_cpu in
8219 i[3456]86*|x86_64*) # use cpuid codes
8220
8221ac_ext=c
8222ac_cpp='$CPP $CPPFLAGS'
8223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225ac_compiler_gnu=$ac_cv_c_compiler_gnu
8226
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8228$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8229if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231else
8232 if test "$cross_compiling" = yes; then :
8233 ax_cv_gcc_x86_cpuid_0=unknown
8234else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h. */
8237#include <stdio.h>
8238int
8239main ()
8240{
8241
8242 int op = 0, eax, ebx, ecx, edx;
8243 FILE *f;
8244 __asm__("cpuid"
8245 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8246 : "a" (op));
8247 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8248 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8249 fclose(f);
8250 return 0;
8251
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_run "$LINENO"; then :
8257 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8258else
8259 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8260fi
8261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8262 conftest.$ac_objext conftest.beam conftest.$ac_ext
8263fi
8264
8265fi
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8267$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8268ac_ext=c
8269ac_cpp='$CPP $CPPFLAGS'
8270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273
8274
8275
8276ac_ext=c
8277ac_cpp='$CPP $CPPFLAGS'
8278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8283$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8284if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286else
8287 if test "$cross_compiling" = yes; then :
8288 ax_cv_gcc_x86_cpuid_1=unknown
8289else
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292#include <stdio.h>
8293int
8294main ()
8295{
8296
8297 int op = 1, eax, ebx, ecx, edx;
8298 FILE *f;
8299 __asm__("cpuid"
8300 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8301 : "a" (op));
8302 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8303 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8304 fclose(f);
8305 return 0;
8306
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_run "$LINENO"; then :
8312 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8313else
8314 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8315fi
8316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8317 conftest.$ac_objext conftest.beam conftest.$ac_ext
8318fi
8319
8320fi
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8322$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8323ac_ext=c
8324ac_cpp='$CPP $CPPFLAGS'
8325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8327ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328
8329
8330 case $ax_cv_gcc_x86_cpuid_0 in
8331 *:756e6547:*:*) # Intel
8332 case $ax_cv_gcc_x86_cpuid_1 in
8333 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8334 *5??:*:*:*) ax_gcc_arch=pentium ;;
8335 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8336 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8337 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8338 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8339 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8340 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8341 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8342 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8343 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8344 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8345 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8346 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8347 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8348 case $host_cpu in
8349 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8350 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8351 esac ;;
8352 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8353 esac ;;
8354 *:68747541:*:*) # AMD
8355 case $ax_cv_gcc_x86_cpuid_1 in
8356 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8357 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8358 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8359 *60?:*:*:*) ax_gcc_arch=k7 ;;
8360 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8361 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8362 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8363 *6[68a]?:*:*:*)
8364
8365ac_ext=c
8366ac_cpp='$CPP $CPPFLAGS'
8367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8372$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8373if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375else
8376 if test "$cross_compiling" = yes; then :
8377 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8378else
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h. */
8381#include <stdio.h>
8382int
8383main ()
8384{
8385
8386 int op = 0x80000006, eax, ebx, ecx, edx;
8387 FILE *f;
8388 __asm__("cpuid"
8389 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8390 : "a" (op));
8391 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8392 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8393 fclose(f);
8394 return 0;
8395
8396 ;
8397 return 0;
8398}
8399_ACEOF
8400if ac_fn_c_try_run "$LINENO"; then :
8401 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8402else
8403 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8404fi
8405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8406 conftest.$ac_objext conftest.beam conftest.$ac_ext
8407fi
8408
8409fi
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8411$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8412ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418 # L2 cache size
8419 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8420 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8421 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8422 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8423 esac ;;
8424 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8425 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8426 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8427 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8428 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8429 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8430 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8431 esac ;;
8432 *:746e6543:*:*) # IDT
8433 case $ax_cv_gcc_x86_cpuid_1 in
8434 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8435 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8436 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8437 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8438 esac ;;
8439 esac
8440 if test x"$ax_gcc_arch" = x; then # fallback
8441 case $host_cpu in
8442 i586*) ax_gcc_arch=pentium ;;
8443 i686*) ax_gcc_arch=pentiumpro ;;
8444 esac
8445 fi
8446 ;;
8447
8448 sparc*)
8449 # Extract the first word of "prtdiag", so it can be a program name with args.
8450set dummy prtdiag; ac_word=$2
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452$as_echo_n "checking for $ac_word... " >&6; }
8453if ${ac_cv_path_PRTDIAG+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455else
8456 case $PRTDIAG in
8457 [\\/]* | ?:[\\/]*)
8458 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8459 ;;
8460 *)
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8463for as_dir in $as_dummy
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008469 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8472 fi
8473done
8474 done
8475IFS=$as_save_IFS
8476
8477 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8478 ;;
8479esac
8480fi
8481PRTDIAG=$ac_cv_path_PRTDIAG
8482if test -n "$PRTDIAG"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8484$as_echo "$PRTDIAG" >&6; }
8485else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
8488fi
8489
8490
8491 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`
8492 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8493 case $cputype in
8494 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8495 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8496 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8497 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8498 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8499 *cypress*) ax_gcc_arch=cypress ;;
8500 esac ;;
8501
8502 alphaev5) ax_gcc_arch=ev5 ;;
8503 alphaev56) ax_gcc_arch=ev56 ;;
8504 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8505 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8506 alphaev6) ax_gcc_arch=ev6 ;;
8507 alphaev67) ax_gcc_arch=ev67 ;;
8508 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8509 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8510 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8511 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8512
8513 powerpc*)
8514 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`
8515 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8516 case $cputype in
8517 *750*) ax_gcc_arch="750 G3" ;;
8518 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8519 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8520 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8521 *970*) ax_gcc_arch="970 G5 power4";;
8522 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8523 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8524 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8525 *) ax_gcc_arch=$cputype ;;
8526 esac
8527 ax_gcc_arch="$ax_gcc_arch powerpc"
8528 ;;
8529esac
8530fi # not cross-compiling
8531fi # guess arch
8532
8533if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8534for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008535 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008536 flags="-mtune=$arch"
8537 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8538 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8539 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8540 else
8541 flags="-march=$arch -mcpu=$arch -m$arch"
8542 fi
8543 for flag in $flags; do
8544 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8546$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8547if eval \${$as_CACHEVAR+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549else
8550
8551 ax_check_save_flags=$CFLAGS
8552 CFLAGS="$CFLAGS $flag"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h. */
8555
8556int
8557main ()
8558{
8559
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_compile "$LINENO"; then :
8565 eval "$as_CACHEVAR=yes"
8566else
8567 eval "$as_CACHEVAR=no"
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 CFLAGS=$ax_check_save_flags
8571fi
8572eval ac_res=\$$as_CACHEVAR
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8574$as_echo "$ac_res" >&6; }
8575if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8576 ax_cv_gcc_archflag=$flag; break
8577else
8578 :
8579fi
8580
8581 done
8582 test "x$ax_cv_gcc_archflag" = xunknown || break
8583done
8584fi
8585
8586fi # $GCC=yes
8587
8588fi
8589
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8591$as_echo_n "checking for gcc architecture flag... " >&6; }
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8593$as_echo "$ax_cv_gcc_archflag" >&6; }
8594if test "x$ax_cv_gcc_archflag" = xunknown; then
8595 :
8596else
8597 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8598fi
8599
8600
8601
cristy73bd4a52010-10-05 11:24:23 +00008602if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8605set dummy ${ac_tool_prefix}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_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008609 $as_echo_n "(cached) " >&6
8610else
8611 case $PKG_CONFIG in
8612 [\\/]* | ?:[\\/]*)
8613 ac_cv_path_PKG_CONFIG="$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_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
8634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8635if test -n "$PKG_CONFIG"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8637$as_echo "$PKG_CONFIG" >&6; }
8638else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
8641fi
8642
8643
8644fi
8645if test -z "$ac_cv_path_PKG_CONFIG"; then
8646 ac_pt_PKG_CONFIG=$PKG_CONFIG
8647 # Extract the first word of "pkg-config", so it can be a program name with args.
8648set dummy pkg-config; ac_word=$2
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008651if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008652 $as_echo_n "(cached) " >&6
8653else
8654 case $ac_pt_PKG_CONFIG in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8657 ;;
8658 *)
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670done
8671 done
8672IFS=$as_save_IFS
8673
8674 ;;
8675esac
8676fi
8677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8678if test -n "$ac_pt_PKG_CONFIG"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8680$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8681else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
8684fi
8685
8686 if test "x$ac_pt_PKG_CONFIG" = x; then
8687 PKG_CONFIG=""
8688 else
8689 case $cross_compiling:$ac_tool_warned in
8690yes:)
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8693ac_tool_warned=yes ;;
8694esac
8695 PKG_CONFIG=$ac_pt_PKG_CONFIG
8696 fi
8697else
8698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8699fi
8700
8701fi
8702if test -n "$PKG_CONFIG"; then
8703 _pkg_min_version=0.9.0
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8705$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8708$as_echo "yes" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712 PKG_CONFIG=""
8713 fi
8714
8715fi
cristy3ed852e2009-09-05 21:47:34 +00008716
8717#
cristy3ed852e2009-09-05 21:47:34 +00008718# Enable run-time checking.
8719#
8720# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008721if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008722 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8723else
8724 enable_bounds_checking='no'
8725fi
8726
8727
8728if test "$enable_bounds_checking" = yes; then
8729
cristy8b350f62009-11-15 23:12:43 +00008730$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008731
8732fi
8733
8734#
8735# Tests for Windows
8736#
8737
8738
8739
8740GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008741native_win32_build='no'
8742cygwin_build='no'
8743case "${host_os}" in
8744 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008745 cygwin_build='yes'
8746 GDI32_LIBS='-lgdi32'
8747 ;;
8748 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008749 native_win32_build='yes'
8750 GDI32_LIBS='-lgdi32'
8751 ;;
8752esac
8753if test "${GDI32_LIBS}x" != 'x'; then
8754
cristy8b350f62009-11-15 23:12:43 +00008755$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008756
8757fi
8758
cristy73bd4a52010-10-05 11:24:23 +00008759 if test "${GDI32_LIBS}x" != 'x' ; then
8760 WINGDI32_DELEGATE_TRUE=
8761 WINGDI32_DELEGATE_FALSE='#'
8762else
8763 WINGDI32_DELEGATE_TRUE='#'
8764 WINGDI32_DELEGATE_FALSE=
8765fi
8766
8767 if test "${native_win32_build}" = 'yes' ; then
8768 WIN32_NATIVE_BUILD_TRUE=
8769 WIN32_NATIVE_BUILD_FALSE='#'
8770else
8771 WIN32_NATIVE_BUILD_TRUE='#'
8772 WIN32_NATIVE_BUILD_FALSE=
8773fi
8774
8775 if test "${cygwin_build}" = 'yes' ; then
8776 CYGWIN_BUILD_TRUE=
8777 CYGWIN_BUILD_FALSE='#'
8778else
8779 CYGWIN_BUILD_TRUE='#'
8780 CYGWIN_BUILD_FALSE=
8781fi
8782
8783 if test "x${CC}" = 'xcl.exe' ; then
8784 USING_CL_TRUE=
8785 USING_CL_FALSE='#'
8786else
8787 USING_CL_TRUE='#'
8788 USING_CL_FALSE=
8789fi
8790
cristy3ed852e2009-09-05 21:47:34 +00008791
8792WinPathScript="${srcdirfull}/winpath.sh"
8793
8794
8795#
8796# Compiler flags tweaks
8797#
8798if test "${GCC}" != "yes"; then
8799 case "${host}" in
8800 *-*-hpux* )
8801 # aCC: HP ANSI C++ B3910B A.03.34
8802 CFLAGS="${CFLAGS} -Wp,-H30000"
8803 if test -n "${CXXFLAGS}"; then
8804 CXXFLAGS='-AA'
8805 else
8806 CXXFLAGS="${CXXFLAGS} -AA"
8807 fi
8808 ;;
8809 *-dec-osf5.* )
8810 # Compaq alphaev68-dec-osf5.1 compiler
8811 if test -n "${CXXFLAGS}"; then
8812 CXXFLAGS='-std strict_ansi -noimplicit_include'
8813 else
8814 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8815 fi
8816 esac
8817fi
8818
8819# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008821$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008822if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008823 $as_echo_n "(cached) " >&6
8824else
8825
8826im_cv_ld_lazyload='none'
8827case "${host}" in
8828 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8829 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8830 im_cv_ld_lazyload='-Wl,-zlazyload'
8831 fi
8832 ;;
8833esac
8834
8835fi
cristy8b350f62009-11-15 23:12:43 +00008836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008837$as_echo "$im_cv_ld_lazyload" >&6; }
8838if test "${im_cv_ld_lazyload}" != 'none' ; then
8839 if test -z "${LDFLAGS}" ; then
8840 LDFLAGS="${im_cv_ld_lazyload}"
8841 else
8842 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8843 fi
8844fi
8845
8846case "$host" in
8847*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008848 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008849if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008850 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8851else
8852 build_osxuniversal=no
8853fi
8854
8855
8856 if test "${build_osxuniversal}" != no ; then
8857 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008858 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008859Please re-run configure with these options:
8860 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008861 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008862 fi
8863 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8864 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8865 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866 fi
8867 ;;
8868esac
8869
cristy0151ae12011-10-28 16:32:29 +00008870#
8871# ARCH specific include directory
8872#
8873
cristy670aa3c2011-11-03 00:54:00 +00008874# Check whether --with-includearch-dir was given.
8875if test "${with_includearch_dir+set}" = set; then :
8876 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008877else
cristy670aa3c2011-11-03 00:54:00 +00008878 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008879fi
8880
8881
cristy670aa3c2011-11-03 00:54:00 +00008882eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008883
cristy0151ae12011-10-28 16:32:29 +00008884
8885#
8886# ARCH specific configuration directory
8887#
8888
cristy670aa3c2011-11-03 00:54:00 +00008889# Check whether --with-sharearch-dir was given.
8890if test "${with_sharearch_dir+set}" = set; then :
8891 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008892else
cristy408ebcd2011-11-14 01:36:57 +00008893 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008894fi
8895
8896
cristy670aa3c2011-11-03 00:54:00 +00008897eval "eval SHAREARCH_DIR=$sharearch_dir"
8898SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008899
cristy0151ae12011-10-28 16:32:29 +00008900
8901#
cristy3ed852e2009-09-05 21:47:34 +00008902# Enable support for threads
8903
8904# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008905if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008906 withval=$with_threads; with_threads=$withval
8907else
8908 with_threads='yes'
8909fi
8910
8911
8912have_threads=no
8913if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008914
8915
cristy73bd4a52010-10-05 11:24:23 +00008916ac_ext=c
8917ac_cpp='$CPP $CPPFLAGS'
8918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8920ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921
8922ax_pthread_ok=no
8923
8924# We used to check for pthread.h first, but this fails if pthread.h
8925# requires special compiler flags (e.g. on True64 or Sequent).
8926# It gets checked for in the link test anyway.
8927
8928# First of all, check if the user has set any of the PTHREAD_LIBS,
8929# etcetera environment variables, and if threads linking works using
8930# them:
8931if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8932 save_CFLAGS="$CFLAGS"
8933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8934 save_LIBS="$LIBS"
8935 LIBS="$PTHREAD_LIBS $LIBS"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8937$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h. */
8940
8941/* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944#ifdef __cplusplus
8945extern "C"
8946#endif
8947char pthread_join ();
8948int
8949main ()
8950{
8951return pthread_join ();
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_link "$LINENO"; then :
8957 ax_pthread_ok=yes
8958fi
8959rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8962$as_echo "$ax_pthread_ok" >&6; }
8963 if test x"$ax_pthread_ok" = xno; then
8964 PTHREAD_LIBS=""
8965 PTHREAD_CFLAGS=""
8966 fi
8967 LIBS="$save_LIBS"
8968 CFLAGS="$save_CFLAGS"
8969fi
8970
8971# We must check for the threads library under a number of different
8972# names; the ordering is very important because some systems
8973# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8974# libraries is broken (non-POSIX).
8975
8976# Create a list of thread flags to try. Items starting with a "-" are
8977# C compiler flags, and other items are library names, except for "none"
8978# which indicates that we try without any flags at all, and "pthread-config"
8979# which is a program returning the flags for the Pth emulation library.
8980
cristy18307f12011-12-30 01:20:16 +00008981ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008982
8983# The ordering *is* (sometimes) important. Some notes on the
8984# individual items follow:
8985
8986# pthreads: AIX (must check this before -lpthread)
8987# none: in case threads are in libc; should be tried before -Kthread and
8988# other compiler flags to prevent continual compiler warnings
8989# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8990# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8991# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8992# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8993# -pthreads: Solaris/gcc
8994# -mthreads: Mingw32/gcc, Lynx/gcc
8995# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8996# doesn't hurt to check since this sometimes defines pthreads too;
8997# also defines -D_REENTRANT)
8998# ... -mt is also the pthreads flag for HP/aCC
8999# pthread: Linux, etcetera
9000# --thread-safe: KAI C++
9001# pthread-config: use pthread-config program (for GNU Pth library)
9002
9003case "${host_cpu}-${host_os}" in
9004 *solaris*)
9005
9006 # On Solaris (at least, for some versions), libc contains stubbed
9007 # (non-functional) versions of the pthreads routines, so link-based
9008 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9009 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9010 # a function called by this macro, so we could check for that, but
9011 # who knows whether they'll stub that too in a future libc.) So,
9012 # we'll just look for -pthreads and -lpthread first:
9013
9014 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9015 ;;
9016
cristya316db12011-10-24 00:49:45 +00009017 *-darwin*)
9018 ax_pthread_flags="-pthread $ax_pthread_flags"
9019 ;;
cristy73bd4a52010-10-05 11:24:23 +00009020esac
9021
9022if test x"$ax_pthread_ok" = xno; then
9023for flag in $ax_pthread_flags; do
9024
9025 case $flag in
9026 none)
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9028$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9029 ;;
9030
9031 -*)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9033$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9034 PTHREAD_CFLAGS="$flag"
9035 ;;
9036
cristya316db12011-10-24 00:49:45 +00009037 pthread-config)
9038 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009039set dummy pthread-config; ac_word=$2
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009042if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009043 $as_echo_n "(cached) " >&6
9044else
9045 if test -n "$ax_pthread_config"; then
9046 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009055 ac_cv_prog_ax_pthread_config="yes"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060 done
9061IFS=$as_save_IFS
9062
9063 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9064fi
9065fi
9066ax_pthread_config=$ac_cv_prog_ax_pthread_config
9067if test -n "$ax_pthread_config"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9069$as_echo "$ax_pthread_config" >&6; }
9070else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072$as_echo "no" >&6; }
9073fi
9074
9075
cristya316db12011-10-24 00:49:45 +00009076 if test x"$ax_pthread_config" = xno; then continue; fi
9077 PTHREAD_CFLAGS="`pthread-config --cflags`"
9078 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9079 ;;
cristy73bd4a52010-10-05 11:24:23 +00009080
9081 *)
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9083$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9084 PTHREAD_LIBS="-l$flag"
9085 ;;
9086 esac
9087
9088 save_LIBS="$LIBS"
9089 save_CFLAGS="$CFLAGS"
9090 LIBS="$PTHREAD_LIBS $LIBS"
9091 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9092
9093 # Check for various functions. We must include pthread.h,
9094 # since some functions may be macros. (On the Sequent, we
9095 # need a special flag -Kthread to make this header compile.)
9096 # We check for pthread_join because it is in -lpthread on IRIX
9097 # while pthread_create is in libc. We check for pthread_attr_init
9098 # due to DEC craziness with -lpthreads. We check for
9099 # pthread_cleanup_push because it is one of the few pthread
9100 # functions on Solaris that doesn't have a non-functional libc stub.
9101 # We try pthread_create on general principles.
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h. */
9104#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009105 static void routine(void *a) { a = 0; }
9106 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009107int
9108main ()
9109{
9110pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009111 pthread_create(&th, 0, start_routine, 0);
9112 pthread_join(th, 0);
9113 pthread_attr_init(&attr);
9114 pthread_cleanup_push(routine, 0);
9115 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009116 ;
9117 return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121 ax_pthread_ok=yes
9122fi
9123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125
9126 LIBS="$save_LIBS"
9127 CFLAGS="$save_CFLAGS"
9128
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9130$as_echo "$ax_pthread_ok" >&6; }
9131 if test "x$ax_pthread_ok" = xyes; then
9132 break;
9133 fi
9134
9135 PTHREAD_LIBS=""
9136 PTHREAD_CFLAGS=""
9137done
9138fi
9139
9140# Various other checks:
9141if test "x$ax_pthread_ok" = xyes; then
9142 save_LIBS="$LIBS"
9143 LIBS="$PTHREAD_LIBS $LIBS"
9144 save_CFLAGS="$CFLAGS"
9145 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9146
9147 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009149$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009150 attr_name=unknown
9151 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009153/* end confdefs.h. */
9154#include <pthread.h>
9155int
9156main ()
9157{
cristya316db12011-10-24 00:49:45 +00009158int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009159 ;
9160 return 0;
9161}
9162_ACEOF
9163if ac_fn_c_try_link "$LINENO"; then :
9164 attr_name=$attr; break
9165fi
9166rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009168 done
cristy73bd4a52010-10-05 11:24:23 +00009169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9170$as_echo "$attr_name" >&6; }
9171 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9172
9173cat >>confdefs.h <<_ACEOF
9174#define PTHREAD_CREATE_JOINABLE $attr_name
9175_ACEOF
9176
9177 fi
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9180$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9181 flag=no
9182 case "${host_cpu}-${host_os}" in
9183 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9184 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9185 esac
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9187$as_echo "${flag}" >&6; }
9188 if test "x$flag" != xno; then
9189 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9190 fi
9191
cristya316db12011-10-24 00:49:45 +00009192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9193$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9194if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196else
9197
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h. */
9200
9201 #include <pthread.h>
9202int
9203main ()
9204{
9205int i = PTHREAD_PRIO_INHERIT;
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210if ac_fn_c_try_link "$LINENO"; then :
9211 ax_cv_PTHREAD_PRIO_INHERIT=yes
9212else
9213 ax_cv_PTHREAD_PRIO_INHERIT=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9220$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9221 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9222
9223$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9224
9225fi
9226
cristy73bd4a52010-10-05 11:24:23 +00009227 LIBS="$save_LIBS"
9228 CFLAGS="$save_CFLAGS"
9229
9230 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009231 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009232 for ac_prog in xlc_r cc_r
9233do
9234 # Extract the first word of "$ac_prog", so it can be a program name with args.
9235set dummy $ac_prog; ac_word=$2
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009238if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009239 $as_echo_n "(cached) " >&6
9240else
9241 if test -n "$PTHREAD_CC"; then
9242 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9243else
9244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245for as_dir in $PATH
9246do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009251 ac_cv_prog_PTHREAD_CC="$ac_prog"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255done
9256 done
9257IFS=$as_save_IFS
9258
9259fi
9260fi
9261PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9262if test -n "$PTHREAD_CC"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9264$as_echo "$PTHREAD_CC" >&6; }
9265else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267$as_echo "no" >&6; }
9268fi
9269
9270
9271 test -n "$PTHREAD_CC" && break
9272done
9273test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9274
9275 else
9276 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009277 fi
cristy73bd4a52010-10-05 11:24:23 +00009278else
9279 PTHREAD_CC="$CC"
9280fi
9281
9282
9283
9284
9285
9286# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9287if test x"$ax_pthread_ok" = xyes; then
9288
9289$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9290
9291 :
9292else
9293 ax_pthread_ok=no
9294
9295fi
9296ac_ext=c
9297ac_cpp='$CPP $CPPFLAGS'
9298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301
9302
cristy7acf8fb2010-09-23 19:58:53 +00009303 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009304 have_threads=yes
9305 DEF_THREAD="$PTHREAD_CFLAGS"
9306 CFLAGS="$CFLAGS $DEF_THREAD"
9307 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9308 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009309 { $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 +00009310$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9311 CC="$PTHREAD_CC"
9312 fi
cristy55bf91c2010-09-24 00:29:41 +00009313
9314$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9315
cristy3ed852e2009-09-05 21:47:34 +00009316 fi
9317fi
9318
9319# Enable support for OpenMP
9320if test "$have_threads" != 'yes'; then
9321 ac_cv_prog_c_openmp=unsupported
9322fi
9323
9324 OPENMP_CFLAGS=
9325 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009326if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009327 enableval=$enable_openmp;
9328fi
9329
9330 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009333if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009334 $as_echo_n "(cached) " >&6
9335else
cristy8b350f62009-11-15 23:12:43 +00009336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009338
9339#ifndef _OPENMP
9340 choke me
9341#endif
9342#include <omp.h>
9343int main () { return omp_get_num_threads (); }
9344
9345_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009347 ac_cv_prog_c_openmp='none needed'
9348else
cristy8b350f62009-11-15 23:12:43 +00009349 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009350 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9351 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_save_CFLAGS=$CFLAGS
9353 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009356
9357#ifndef _OPENMP
9358 choke me
9359#endif
9360#include <omp.h>
9361int main () { return omp_get_num_threads (); }
9362
9363_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009365 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009366fi
cristy8b350f62009-11-15 23:12:43 +00009367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009369 CFLAGS=$ac_save_CFLAGS
9370 if test "$ac_cv_prog_c_openmp" != unsupported; then
9371 break
9372 fi
9373 done
9374fi
cristy8b350f62009-11-15 23:12:43 +00009375rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009377fi
cristy8b350f62009-11-15 23:12:43 +00009378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009379$as_echo "$ac_cv_prog_c_openmp" >&6; }
9380 case $ac_cv_prog_c_openmp in #(
9381 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009382 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009383 *)
cristy8b350f62009-11-15 23:12:43 +00009384 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009385 esac
9386 fi
9387
9388
9389CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9390MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9391
cristy391f1ce2010-09-09 17:23:28 +00009392if test "$enable_openmp" != no; then
9393 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9394 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9395 fi
9396fi
cristy3ed852e2009-09-05 21:47:34 +00009397
cristy736173a2009-09-20 21:18:22 +00009398# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009399
9400
cristy73bd4a52010-10-05 11:24:23 +00009401ac_ext=c
9402ac_cpp='$CPP $CPPFLAGS'
9403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9405ac_compiler_gnu=$ac_cv_c_compiler_gnu
9406
9407ax_pthread_ok=no
9408
9409# We used to check for pthread.h first, but this fails if pthread.h
9410# requires special compiler flags (e.g. on True64 or Sequent).
9411# It gets checked for in the link test anyway.
9412
9413# First of all, check if the user has set any of the PTHREAD_LIBS,
9414# etcetera environment variables, and if threads linking works using
9415# them:
9416if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9417 save_CFLAGS="$CFLAGS"
9418 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9419 save_LIBS="$LIBS"
9420 LIBS="$PTHREAD_LIBS $LIBS"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9422$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h. */
9425
9426/* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
9429#ifdef __cplusplus
9430extern "C"
9431#endif
9432char pthread_join ();
9433int
9434main ()
9435{
9436return pthread_join ();
9437 ;
9438 return 0;
9439}
9440_ACEOF
9441if ac_fn_c_try_link "$LINENO"; then :
9442 ax_pthread_ok=yes
9443fi
9444rm -f core conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9447$as_echo "$ax_pthread_ok" >&6; }
9448 if test x"$ax_pthread_ok" = xno; then
9449 PTHREAD_LIBS=""
9450 PTHREAD_CFLAGS=""
9451 fi
9452 LIBS="$save_LIBS"
9453 CFLAGS="$save_CFLAGS"
9454fi
9455
9456# We must check for the threads library under a number of different
9457# names; the ordering is very important because some systems
9458# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9459# libraries is broken (non-POSIX).
9460
9461# Create a list of thread flags to try. Items starting with a "-" are
9462# C compiler flags, and other items are library names, except for "none"
9463# which indicates that we try without any flags at all, and "pthread-config"
9464# which is a program returning the flags for the Pth emulation library.
9465
cristy18307f12011-12-30 01:20:16 +00009466ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009467
9468# The ordering *is* (sometimes) important. Some notes on the
9469# individual items follow:
9470
9471# pthreads: AIX (must check this before -lpthread)
9472# none: in case threads are in libc; should be tried before -Kthread and
9473# other compiler flags to prevent continual compiler warnings
9474# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9475# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9476# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9477# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9478# -pthreads: Solaris/gcc
9479# -mthreads: Mingw32/gcc, Lynx/gcc
9480# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9481# doesn't hurt to check since this sometimes defines pthreads too;
9482# also defines -D_REENTRANT)
9483# ... -mt is also the pthreads flag for HP/aCC
9484# pthread: Linux, etcetera
9485# --thread-safe: KAI C++
9486# pthread-config: use pthread-config program (for GNU Pth library)
9487
9488case "${host_cpu}-${host_os}" in
9489 *solaris*)
9490
9491 # On Solaris (at least, for some versions), libc contains stubbed
9492 # (non-functional) versions of the pthreads routines, so link-based
9493 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9494 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9495 # a function called by this macro, so we could check for that, but
9496 # who knows whether they'll stub that too in a future libc.) So,
9497 # we'll just look for -pthreads and -lpthread first:
9498
9499 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9500 ;;
9501
cristya316db12011-10-24 00:49:45 +00009502 *-darwin*)
9503 ax_pthread_flags="-pthread $ax_pthread_flags"
9504 ;;
cristy73bd4a52010-10-05 11:24:23 +00009505esac
9506
9507if test x"$ax_pthread_ok" = xno; then
9508for flag in $ax_pthread_flags; do
9509
9510 case $flag in
9511 none)
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9513$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9514 ;;
9515
9516 -*)
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9518$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9519 PTHREAD_CFLAGS="$flag"
9520 ;;
9521
cristya316db12011-10-24 00:49:45 +00009522 pthread-config)
9523 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009524set dummy pthread-config; ac_word=$2
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009527if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009528 $as_echo_n "(cached) " >&6
9529else
9530 if test -n "$ax_pthread_config"; then
9531 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009540 ac_cv_prog_ax_pthread_config="yes"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544done
9545 done
9546IFS=$as_save_IFS
9547
9548 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9549fi
9550fi
9551ax_pthread_config=$ac_cv_prog_ax_pthread_config
9552if test -n "$ax_pthread_config"; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9554$as_echo "$ax_pthread_config" >&6; }
9555else
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557$as_echo "no" >&6; }
9558fi
9559
9560
cristya316db12011-10-24 00:49:45 +00009561 if test x"$ax_pthread_config" = xno; then continue; fi
9562 PTHREAD_CFLAGS="`pthread-config --cflags`"
9563 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9564 ;;
cristy73bd4a52010-10-05 11:24:23 +00009565
9566 *)
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9568$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9569 PTHREAD_LIBS="-l$flag"
9570 ;;
9571 esac
9572
9573 save_LIBS="$LIBS"
9574 save_CFLAGS="$CFLAGS"
9575 LIBS="$PTHREAD_LIBS $LIBS"
9576 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9577
9578 # Check for various functions. We must include pthread.h,
9579 # since some functions may be macros. (On the Sequent, we
9580 # need a special flag -Kthread to make this header compile.)
9581 # We check for pthread_join because it is in -lpthread on IRIX
9582 # while pthread_create is in libc. We check for pthread_attr_init
9583 # due to DEC craziness with -lpthreads. We check for
9584 # pthread_cleanup_push because it is one of the few pthread
9585 # functions on Solaris that doesn't have a non-functional libc stub.
9586 # We try pthread_create on general principles.
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h. */
9589#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009590 static void routine(void *a) { a = 0; }
9591 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009592int
9593main ()
9594{
9595pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009596 pthread_create(&th, 0, start_routine, 0);
9597 pthread_join(th, 0);
9598 pthread_attr_init(&attr);
9599 pthread_cleanup_push(routine, 0);
9600 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009601 ;
9602 return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606 ax_pthread_ok=yes
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610
9611 LIBS="$save_LIBS"
9612 CFLAGS="$save_CFLAGS"
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9615$as_echo "$ax_pthread_ok" >&6; }
9616 if test "x$ax_pthread_ok" = xyes; then
9617 break;
9618 fi
9619
9620 PTHREAD_LIBS=""
9621 PTHREAD_CFLAGS=""
9622done
9623fi
9624
9625# Various other checks:
9626if test "x$ax_pthread_ok" = xyes; then
9627 save_LIBS="$LIBS"
9628 LIBS="$PTHREAD_LIBS $LIBS"
9629 save_CFLAGS="$CFLAGS"
9630 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9631
9632 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009634$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009635 attr_name=unknown
9636 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009638/* end confdefs.h. */
9639#include <pthread.h>
9640int
9641main ()
9642{
cristya316db12011-10-24 00:49:45 +00009643int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009644 ;
9645 return 0;
9646}
9647_ACEOF
9648if ac_fn_c_try_link "$LINENO"; then :
9649 attr_name=$attr; break
9650fi
9651rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009653 done
cristy73bd4a52010-10-05 11:24:23 +00009654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9655$as_echo "$attr_name" >&6; }
9656 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9657
9658cat >>confdefs.h <<_ACEOF
9659#define PTHREAD_CREATE_JOINABLE $attr_name
9660_ACEOF
9661
9662 fi
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9665$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9666 flag=no
9667 case "${host_cpu}-${host_os}" in
9668 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9669 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9670 esac
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9672$as_echo "${flag}" >&6; }
9673 if test "x$flag" != xno; then
9674 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9675 fi
9676
cristya316db12011-10-24 00:49:45 +00009677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9678$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9679if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681else
9682
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h. */
9685
9686 #include <pthread.h>
9687int
9688main ()
9689{
9690int i = PTHREAD_PRIO_INHERIT;
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695if ac_fn_c_try_link "$LINENO"; then :
9696 ax_cv_PTHREAD_PRIO_INHERIT=yes
9697else
9698 ax_cv_PTHREAD_PRIO_INHERIT=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9705$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9706 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9707
9708$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9709
9710fi
9711
cristy73bd4a52010-10-05 11:24:23 +00009712 LIBS="$save_LIBS"
9713 CFLAGS="$save_CFLAGS"
9714
9715 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009716 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009717 for ac_prog in xlc_r cc_r
9718do
9719 # Extract the first word of "$ac_prog", so it can be a program name with args.
9720set dummy $ac_prog; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009723if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$PTHREAD_CC"; then
9727 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009736 ac_cv_prog_PTHREAD_CC="$ac_prog"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9747if test -n "$PTHREAD_CC"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9749$as_echo "$PTHREAD_CC" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 test -n "$PTHREAD_CC" && break
9757done
9758test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9759
9760 else
9761 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009762 fi
cristy73bd4a52010-10-05 11:24:23 +00009763else
9764 PTHREAD_CC="$CC"
9765fi
9766
9767
9768
9769
9770
9771# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9772if test x"$ax_pthread_ok" = xyes; then
9773
9774$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9775
9776 :
9777else
9778 ax_pthread_ok=no
9779
9780fi
9781ac_ext=c
9782ac_cpp='$CPP $CPPFLAGS'
9783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786
9787
9788
9789# Check whether --enable-opencl was given.
9790if test "${enable_opencl+set}" = set; then :
9791 enableval=$enable_opencl; disable_opencl=$enableval
9792else
9793 disable_opencl='yes'
9794fi
9795
9796
9797if test "$disable_opencl" = 'yes'; then
9798 ac_ext=c
9799ac_cpp='$CPP $CPPFLAGS'
9800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9802ac_compiler_gnu=$ac_cv_c_compiler_gnu
9803
cristy568c2d42012-07-27 01:41:20 +00009804 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009805 if test X$ax_compiler_ms = Xno; then :
9806 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9807fi
9808
9809 ax_save_CPPFLAGS=$CPPFLAGS
9810 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9811 for ac_header in CL/cl.h OpenCL/cl.h
9812do :
9813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9814ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009816 cat >>confdefs.h <<_ACEOF
9817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9818_ACEOF
9819
9820fi
9821
9822done
9823
9824 CPPFLAGS=$ax_save_CPPFLAGS
9825
9826 for ac_header in windows.h
9827do :
9828 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009829if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009830 cat >>confdefs.h <<_ACEOF
9831#define HAVE_WINDOWS_H 1
9832_ACEOF
9833
9834fi
9835
9836done
9837
9838
9839
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9842$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009843if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009844 $as_echo_n "(cached) " >&6
9845else
9846 ax_cv_check_cl_libcl=no
9847 case $host_cpu in
9848 x86_64) ax_check_cl_libdir=lib64 ;;
9849 *) ax_check_cl_libdir=lib ;;
9850 esac
9851 ax_save_CPPFLAGS=$CPPFLAGS
9852 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9853 ax_save_LIBS=$LIBS
9854 LIBS=""
9855 ax_check_libs="-lOpenCL -lCL -lclparser"
9856 for ax_lib in $ax_check_libs; do
9857 if test X$ax_compiler_ms = Xyes; then :
9858 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9859else
9860 ax_try_lib=$ax_lib
9861fi
9862 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h. */
9865
9866 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9867 # include <windows.h>
9868 # endif
9869 # ifdef HAVE_CL_CL_H
9870 # include <CL/cl.h>
9871 # elif defined(HAVE_OPENCL_CL_H)
9872 # include <OpenCL/cl.h>
9873 # else
9874 # error no CL.h
9875 # endif
9876int
9877main ()
9878{
9879clCreateContextFromType(0,0,0,0,0)
9880 ;
9881 return 0;
9882}
9883_ACEOF
9884if ac_fn_c_try_link "$LINENO"; then :
9885 ax_cv_check_cl_libcl=$ax_try_lib; break
9886else
9887 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"
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h. */
9890
9891 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9892 # include <windows.h>
9893 # endif
9894 # ifdef HAVE_CL_CL_H
9895 # include <CL/cl.h>
9896 # elif defined(HAVE_OPENCL_CL_H)
9897 # include <OpenCL/cl.h>
9898 # else
9899 # error no CL.h
9900 # endif
9901int
9902main ()
9903{
9904clCreateContextFromType(0,0,0,0,0)
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"; then :
9910 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9911else
cristy78c5a0c2010-12-04 20:00:59 +00009912 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 +00009913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h. */
9915
9916 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9917 # include <windows.h>
9918 # endif
9919 # ifdef HAVE_CL_CL_H
9920 # include <CL/cl.h>
9921 # elif defined(HAVE_OPENCL_CL_H)
9922 # include <OpenCL/cl.h>
9923 # else
9924 # error no CL.h
9925 # endif
9926int
9927main ()
9928{
9929clCreateContextFromType(0,0,0,0,0)
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934if ac_fn_c_try_link "$LINENO"; then :
9935 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9936fi
9937rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939fi
9940rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942fi
9943rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 done
9946
cristyc3f8b8e2011-12-22 14:55:16 +00009947 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009948 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h. */
9951
9952 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9953 # include <windows.h>
9954 # endif
9955 # ifdef HAVE_CL_CL_H
9956 # include <CL/cl.h>
9957 # elif defined(HAVE_OPENCL_CL_H)
9958 # include <OpenCL/cl.h>
9959 # else
9960 # error no CL.h
9961 # endif
9962int
9963main ()
9964{
9965clCreateContextFromType(0,0,0,0,0)
9966 ;
9967 return 0;
9968}
9969_ACEOF
9970if ac_fn_c_try_link "$LINENO"; then :
9971 ax_cv_check_cl_libcl=$LIBS
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975fi
9976
9977 LIBS=$ax_save_LIBS
9978 CPPFLAGS=$ax_save_CPPFLAGS
9979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9981$as_echo "$ax_cv_check_cl_libcl" >&6; }
9982
9983 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9984 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9985else
9986 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9987$as_echo "#define _OPENCL 1" >>confdefs.h
9988
9989fi
9990 ac_ext=c
9991ac_cpp='$CPP $CPPFLAGS'
9992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994ac_compiler_gnu=$ac_cv_c_compiler_gnu
9995
9996fi
9997
9998
9999
10000
cristyc7083c12009-10-14 03:16:55 +000010001CFLAGS="$CL_CFLAGS $CFLAGS"
10002LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010003
cristy391f1ce2010-09-09 17:23:28 +000010004if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010005 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010006 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10007 fi
cristyfd9dcd42010-08-08 18:07:02 +000010008fi
cristy2e8b51d2009-10-17 18:26:15 +000010009
cristy3ed852e2009-09-05 21:47:34 +000010010########
10011#
10012# Check for large file support
10013#
10014########
10015# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010016if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010017 enableval=$enable_largefile;
10018fi
10019
10020if test "$enable_largefile" != no; then
10021
cristy8b350f62009-11-15 23:12:43 +000010022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010023$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010024if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010025 $as_echo_n "(cached) " >&6
10026else
10027 ac_cv_sys_largefile_CC=no
10028 if test "$GCC" != yes; then
10029 ac_save_CC=$CC
10030 while :; do
10031 # IRIX 6.2 and later do not support large files by default,
10032 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010034/* end confdefs.h. */
10035#include <sys/types.h>
10036 /* Check that off_t can represent 2**63 - 1 correctly.
10037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10038 since some C++ compilers masquerading as C compilers
10039 incorrectly reject 9223372036854775807. */
10040#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10042 && LARGE_OFF_T % 2147483647 == 1)
10043 ? 1 : -1];
10044int
10045main ()
10046{
10047
10048 ;
10049 return 0;
10050}
10051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010052 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010053 break
cristy3ed852e2009-09-05 21:47:34 +000010054fi
cristy3ed852e2009-09-05 21:47:34 +000010055rm -f core conftest.err conftest.$ac_objext
10056 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010057 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010058 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010059fi
cristy3ed852e2009-09-05 21:47:34 +000010060rm -f core conftest.err conftest.$ac_objext
10061 break
10062 done
10063 CC=$ac_save_CC
10064 rm -f conftest.$ac_ext
10065 fi
10066fi
cristy8b350f62009-11-15 23:12:43 +000010067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010068$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10069 if test "$ac_cv_sys_largefile_CC" != no; then
10070 CC=$CC$ac_cv_sys_largefile_CC
10071 fi
10072
cristy8b350f62009-11-15 23:12:43 +000010073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010074$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010075if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010076 $as_echo_n "(cached) " >&6
10077else
10078 while :; do
cristy8b350f62009-11-15 23:12:43 +000010079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010080/* end confdefs.h. */
10081#include <sys/types.h>
10082 /* Check that off_t can represent 2**63 - 1 correctly.
10083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10084 since some C++ compilers masquerading as C compilers
10085 incorrectly reject 9223372036854775807. */
10086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10088 && LARGE_OFF_T % 2147483647 == 1)
10089 ? 1 : -1];
10090int
10091main ()
10092{
10093
10094 ;
10095 return 0;
10096}
10097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010099 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010100fi
cristy3ed852e2009-09-05 21:47:34 +000010101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010103/* end confdefs.h. */
10104#define _FILE_OFFSET_BITS 64
10105#include <sys/types.h>
10106 /* Check that off_t can represent 2**63 - 1 correctly.
10107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10108 since some C++ compilers masquerading as C compilers
10109 incorrectly reject 9223372036854775807. */
10110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10112 && LARGE_OFF_T % 2147483647 == 1)
10113 ? 1 : -1];
10114int
10115main ()
10116{
10117
10118 ;
10119 return 0;
10120}
10121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010122if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010123 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010124fi
cristy3ed852e2009-09-05 21:47:34 +000010125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 ac_cv_sys_file_offset_bits=unknown
10127 break
10128done
10129fi
cristy8b350f62009-11-15 23:12:43 +000010130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010131$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10132case $ac_cv_sys_file_offset_bits in #(
10133 no | unknown) ;;
10134 *)
10135cat >>confdefs.h <<_ACEOF
10136#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10137_ACEOF
10138;;
10139esac
10140rm -rf conftest*
10141 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010143$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010144if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010145 $as_echo_n "(cached) " >&6
10146else
10147 while :; do
cristy8b350f62009-11-15 23:12:43 +000010148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010149/* end confdefs.h. */
10150#include <sys/types.h>
10151 /* Check that off_t can represent 2**63 - 1 correctly.
10152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10153 since some C++ compilers masquerading as C compilers
10154 incorrectly reject 9223372036854775807. */
10155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10157 && LARGE_OFF_T % 2147483647 == 1)
10158 ? 1 : -1];
10159int
10160main ()
10161{
10162
10163 ;
10164 return 0;
10165}
10166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010167if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010168 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010169fi
cristy3ed852e2009-09-05 21:47:34 +000010170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010172/* end confdefs.h. */
10173#define _LARGE_FILES 1
10174#include <sys/types.h>
10175 /* Check that off_t can represent 2**63 - 1 correctly.
10176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10177 since some C++ compilers masquerading as C compilers
10178 incorrectly reject 9223372036854775807. */
10179#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10181 && LARGE_OFF_T % 2147483647 == 1)
10182 ? 1 : -1];
10183int
10184main ()
10185{
10186
10187 ;
10188 return 0;
10189}
10190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010192 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010193fi
cristy3ed852e2009-09-05 21:47:34 +000010194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 ac_cv_sys_large_files=unknown
10196 break
10197done
10198fi
cristy8b350f62009-11-15 23:12:43 +000010199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010200$as_echo "$ac_cv_sys_large_files" >&6; }
10201case $ac_cv_sys_large_files in #(
10202 no | unknown) ;;
10203 *)
10204cat >>confdefs.h <<_ACEOF
10205#define _LARGE_FILES $ac_cv_sys_large_files
10206_ACEOF
10207;;
10208esac
10209rm -rf conftest*
10210 fi
cristy14fefe52012-05-21 00:59:18 +000010211
10212
cristy3ed852e2009-09-05 21:47:34 +000010213fi
10214
cristy8b350f62009-11-15 23:12:43 +000010215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010216$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010217if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010218 $as_echo_n "(cached) " >&6
10219else
10220 while :; do
cristy8b350f62009-11-15 23:12:43 +000010221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010222/* end confdefs.h. */
10223#include <sys/types.h> /* for off_t */
10224 #include <stdio.h>
10225int
10226main ()
10227{
10228int (*fp) (FILE *, off_t, int) = fseeko;
10229 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10230 ;
10231 return 0;
10232}
10233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010235 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010236fi
cristy8b350f62009-11-15 23:12:43 +000010237rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010240/* end confdefs.h. */
10241#define _LARGEFILE_SOURCE 1
10242#include <sys/types.h> /* for off_t */
10243 #include <stdio.h>
10244int
10245main ()
10246{
10247int (*fp) (FILE *, off_t, int) = fseeko;
10248 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10249 ;
10250 return 0;
10251}
10252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010254 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010255fi
cristy8b350f62009-11-15 23:12:43 +000010256rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010258 ac_cv_sys_largefile_source=unknown
10259 break
10260done
10261fi
cristy8b350f62009-11-15 23:12:43 +000010262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010263$as_echo "$ac_cv_sys_largefile_source" >&6; }
10264case $ac_cv_sys_largefile_source in #(
10265 no | unknown) ;;
10266 *)
10267cat >>confdefs.h <<_ACEOF
10268#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10269_ACEOF
10270;;
10271esac
10272rm -rf conftest*
10273
10274# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10275# in glibc 2.1.3, but that breaks too many other things.
10276# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10277if test $ac_cv_sys_largefile_source != unknown; then
10278
cristy8b350f62009-11-15 23:12:43 +000010279$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010280
10281fi
10282
10283LFS_CPPFLAGS=''
10284if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010285 case $ac_cv_sys_file_offset_bits in
10286 no)
10287 # nothing to do here as the host supports LFS fine
10288 ;;
10289 unknown)
cristy8b350f62009-11-15 23:12:43 +000010290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010291$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010292 if test "$cross_compiling" = yes; then :
10293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010295as_fn_error $? "cannot run test program while cross compiling
10296See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010297else
cristy8b350f62009-11-15 23:12:43 +000010298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010300#include <unistd.h>
10301 main () {
10302 exit(!(sizeof(off_t) == 8));
10303 }
cristyda16f162011-02-19 23:52:17 +000010304int
10305main ()
10306{
10307
10308 ;
10309 return 0;
10310}
cristy3ed852e2009-09-05 21:47:34 +000010311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010312if ac_fn_c_try_run "$LINENO"; then :
10313 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010314
cristy09b53e12011-10-14 12:47:22 +000010315 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10316$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010317else
cristy09b53e12011-10-14 12:47:22 +000010318 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10319$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010320fi
cristy8b350f62009-11-15 23:12:43 +000010321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10322 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010323fi
10324
cristyc1e0cc12011-09-21 16:41:16 +000010325 ;;
10326 *)
10327 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10328 ;;
10329 esac
cristy3ed852e2009-09-05 21:47:34 +000010330 if test "$ac_cv_sys_large_files" != 'no'; then
10331 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10332 fi
10333 if test "$ac_cv_sys_largefile_source" != 'no'; then
10334 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10335 fi
10336fi
10337
10338
cristy3ed852e2009-09-05 21:47:34 +000010339# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010340enable_dlopen=yes
10341
10342
10343
10344case `pwd` in
10345 *\ * | *\ *)
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10347$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10348esac
10349
10350
10351
cristy99bd5232011-12-07 14:38:20 +000010352macro_version='2.4.2'
10353macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367ltmain="$ac_aux_dir/ltmain.sh"
10368
cristy0c60a692010-11-04 01:09:47 +000010369# Backslashify metacharacters that are still active within
10370# double-quoted strings.
10371sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10372
10373# Same as above, but do not quote variable references.
10374double_quote_subst='s/\(["`\\]\)/\\\1/g'
10375
10376# Sed substitution to delay expansion of an escaped shell variable in a
10377# double_quote_subst'ed string.
10378delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10379
10380# Sed substitution to delay expansion of an escaped single quote.
10381delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10382
10383# Sed substitution to avoid accidental globbing in evaled expressions
10384no_glob_subst='s/\*/\\\*/g'
10385
cristy73bd4a52010-10-05 11:24:23 +000010386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10387$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010388if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010389 $as_echo_n "(cached) " >&6
10390else
10391 if test -n "$NM"; then
10392 # Let the user override the test.
10393 lt_cv_path_NM="$NM"
10394else
10395 lt_nm_to_check="${ac_tool_prefix}nm"
10396 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10397 lt_nm_to_check="$lt_nm_to_check nm"
10398 fi
10399 for lt_tmp_nm in $lt_nm_to_check; do
10400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10401 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10402 IFS="$lt_save_ifs"
10403 test -z "$ac_dir" && ac_dir=.
10404 tmp_nm="$ac_dir/$lt_tmp_nm"
10405 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10406 # Check to see if the nm accepts a BSD-compat flag.
10407 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10408 # nm: unknown option "B" ignored
10409 # Tru64's nm complains that /dev/null is an invalid object file
10410 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10411 */dev/null* | *'Invalid file or object type'*)
10412 lt_cv_path_NM="$tmp_nm -B"
10413 break
10414 ;;
10415 *)
10416 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10417 */dev/null*)
10418 lt_cv_path_NM="$tmp_nm -p"
10419 break
10420 ;;
10421 *)
10422 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10423 continue # so that we can try to find one that supports BSD flags
10424 ;;
10425 esac
10426 ;;
10427 esac
10428 fi
10429 done
10430 IFS="$lt_save_ifs"
10431 done
10432 : ${lt_cv_path_NM=no}
10433fi
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10436$as_echo "$lt_cv_path_NM" >&6; }
10437if test "$lt_cv_path_NM" != "no"; then
10438 NM="$lt_cv_path_NM"
10439else
10440 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010441 if test -n "$DUMPBIN"; then :
10442 # Let the user override the test.
10443 else
10444 if test -n "$ac_tool_prefix"; then
10445 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010446 do
10447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10448set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010451if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010452 $as_echo_n "(cached) " >&6
10453else
10454 if test -n "$DUMPBIN"; then
10455 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10456else
10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $PATH
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010464 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10467 fi
10468done
10469 done
10470IFS=$as_save_IFS
10471
10472fi
10473fi
10474DUMPBIN=$ac_cv_prog_DUMPBIN
10475if test -n "$DUMPBIN"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10477$as_echo "$DUMPBIN" >&6; }
10478else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480$as_echo "no" >&6; }
10481fi
10482
10483
10484 test -n "$DUMPBIN" && break
10485 done
10486fi
10487if test -z "$DUMPBIN"; then
10488 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010489 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010490do
10491 # Extract the first word of "$ac_prog", so it can be a program name with args.
10492set dummy $ac_prog; ac_word=$2
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010495if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010496 $as_echo_n "(cached) " >&6
10497else
10498 if test -n "$ac_ct_DUMPBIN"; then
10499 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010508 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513 done
10514IFS=$as_save_IFS
10515
10516fi
10517fi
10518ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10519if test -n "$ac_ct_DUMPBIN"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10521$as_echo "$ac_ct_DUMPBIN" >&6; }
10522else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
10525fi
10526
10527
10528 test -n "$ac_ct_DUMPBIN" && break
10529done
10530
10531 if test "x$ac_ct_DUMPBIN" = x; then
10532 DUMPBIN=":"
10533 else
10534 case $cross_compiling:$ac_tool_warned in
10535yes:)
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10538ac_tool_warned=yes ;;
10539esac
10540 DUMPBIN=$ac_ct_DUMPBIN
10541 fi
10542fi
10543
cristy0c60a692010-11-04 01:09:47 +000010544 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10545 *COFF*)
10546 DUMPBIN="$DUMPBIN -symbols"
10547 ;;
10548 *)
10549 DUMPBIN=:
10550 ;;
10551 esac
10552 fi
cristy73bd4a52010-10-05 11:24:23 +000010553
10554 if test "$DUMPBIN" != ":"; then
10555 NM="$DUMPBIN"
10556 fi
10557fi
10558test -z "$NM" && NM=nm
10559
10560
10561
10562
10563
10564
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10566$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010567if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010568 $as_echo_n "(cached) " >&6
10569else
10570 lt_cv_nm_interface="BSD nm"
10571 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010572 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010573 (eval "$ac_compile" 2>conftest.err)
10574 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010575 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010576 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10577 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010578 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010579 cat conftest.out >&5
10580 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10581 lt_cv_nm_interface="MS dumpbin"
10582 fi
10583 rm -f conftest*
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10586$as_echo "$lt_cv_nm_interface" >&6; }
10587
10588# find the maximum length of command line arguments
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10590$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010591if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010592 $as_echo_n "(cached) " >&6
10593else
10594 i=0
10595 teststring="ABCD"
10596
10597 case $build_os in
10598 msdosdjgpp*)
10599 # On DJGPP, this test can blow up pretty badly due to problems in libc
10600 # (any single argument exceeding 2000 bytes causes a buffer overrun
10601 # during glob expansion). Even if it were fixed, the result of this
10602 # check would be larger than it should be.
10603 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10604 ;;
10605
10606 gnu*)
10607 # Under GNU Hurd, this test is not required because there is
10608 # no limit to the length of command line arguments.
10609 # Libtool will interpret -1 as no limit whatsoever
10610 lt_cv_sys_max_cmd_len=-1;
10611 ;;
10612
10613 cygwin* | mingw* | cegcc*)
10614 # On Win9x/ME, this test blows up -- it succeeds, but takes
10615 # about 5 minutes as the teststring grows exponentially.
10616 # Worse, since 9x/ME are not pre-emptively multitasking,
10617 # you end up with a "frozen" computer, even though with patience
10618 # the test eventually succeeds (with a max line length of 256k).
10619 # Instead, let's just punt: use the minimum linelength reported by
10620 # all of the supported platforms: 8192 (on NT/2K/XP).
10621 lt_cv_sys_max_cmd_len=8192;
10622 ;;
10623
cristy0c60a692010-11-04 01:09:47 +000010624 mint*)
10625 # On MiNT this can take a long time and run out of memory.
10626 lt_cv_sys_max_cmd_len=8192;
10627 ;;
10628
cristy73bd4a52010-10-05 11:24:23 +000010629 amigaos*)
10630 # On AmigaOS with pdksh, this test takes hours, literally.
10631 # So we just punt and use a minimum line length of 8192.
10632 lt_cv_sys_max_cmd_len=8192;
10633 ;;
10634
10635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10636 # This has been around since 386BSD, at least. Likely further.
10637 if test -x /sbin/sysctl; then
10638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10639 elif test -x /usr/sbin/sysctl; then
10640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10641 else
10642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10643 fi
10644 # And add a safety zone
10645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10647 ;;
10648
10649 interix*)
10650 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10651 lt_cv_sys_max_cmd_len=196608
10652 ;;
10653
cristy99bd5232011-12-07 14:38:20 +000010654 os2*)
10655 # The test takes a long time on OS/2.
10656 lt_cv_sys_max_cmd_len=8192
10657 ;;
10658
cristy73bd4a52010-10-05 11:24:23 +000010659 osf*)
10660 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10661 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10662 # nice to cause kernel panics so lets avoid the loop below.
10663 # First set a reasonable default.
10664 lt_cv_sys_max_cmd_len=16384
10665 #
10666 if test -x /sbin/sysconfig; then
10667 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10668 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10669 esac
10670 fi
10671 ;;
10672 sco3.2v5*)
10673 lt_cv_sys_max_cmd_len=102400
10674 ;;
10675 sysv5* | sco5v6* | sysv4.2uw2*)
10676 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10677 if test -n "$kargmax"; then
10678 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10679 else
10680 lt_cv_sys_max_cmd_len=32768
10681 fi
10682 ;;
10683 *)
10684 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10685 if test -n "$lt_cv_sys_max_cmd_len"; then
10686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10688 else
10689 # Make teststring a little bigger before we do anything with it.
10690 # a 1K string should be a reasonable start.
10691 for i in 1 2 3 4 5 6 7 8 ; do
10692 teststring=$teststring$teststring
10693 done
10694 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10695 # If test is not a shell built-in, we'll probably end up computing a
10696 # maximum length that is only half of the actual maximum length, but
10697 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010698 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010699 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010700 test $i != 17 # 1/2 MB should be enough
10701 do
10702 i=`expr $i + 1`
10703 teststring=$teststring$teststring
10704 done
10705 # Only check the string length outside the loop.
10706 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10707 teststring=
10708 # Add a significant safety factor because C++ compilers can tack on
10709 # massive amounts of additional arguments before passing them to the
10710 # linker. It appears as though 1/2 is a usable value.
10711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10712 fi
10713 ;;
10714 esac
10715
10716fi
10717
10718if test -n $lt_cv_sys_max_cmd_len ; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10720$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10721else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10723$as_echo "none" >&6; }
10724fi
10725max_cmd_len=$lt_cv_sys_max_cmd_len
10726
10727
10728
10729
10730
10731
10732: ${CP="cp -f"}
10733: ${MV="mv -f"}
10734: ${RM="rm -f"}
10735
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10737$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10738# Try some XSI features
10739xsi_shell=no
10740( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010741 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10742 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010743 && eval 'test $(( 1 + 1 )) -eq 2 \
10744 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10745 && xsi_shell=yes
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10747$as_echo "$xsi_shell" >&6; }
10748
10749
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10751$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10752lt_shell_append=no
10753( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10754 >/dev/null 2>&1 \
10755 && lt_shell_append=yes
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10757$as_echo "$lt_shell_append" >&6; }
10758
10759
10760if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10761 lt_unset=unset
10762else
10763 lt_unset=false
10764fi
10765
10766
10767
10768
10769
10770# test EBCDIC or ASCII
10771case `echo X|tr X '\101'` in
10772 A) # ASCII based system
10773 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10774 lt_SP2NL='tr \040 \012'
10775 lt_NL2SP='tr \015\012 \040\040'
10776 ;;
10777 *) # EBCDIC based system
10778 lt_SP2NL='tr \100 \n'
10779 lt_NL2SP='tr \r\n \100\100'
10780 ;;
10781esac
10782
10783
10784
10785
10786
10787
10788
10789
10790
cristyda16f162011-02-19 23:52:17 +000010791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10792$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10793if ${lt_cv_to_host_file_cmd+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796 case $host in
10797 *-*-mingw* )
10798 case $build in
10799 *-*-mingw* ) # actually msys
10800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10801 ;;
10802 *-*-cygwin* )
10803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10804 ;;
10805 * ) # otherwise, assume *nix
10806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10807 ;;
10808 esac
10809 ;;
10810 *-*-cygwin* )
10811 case $build in
10812 *-*-mingw* ) # actually msys
10813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10814 ;;
10815 *-*-cygwin* )
10816 lt_cv_to_host_file_cmd=func_convert_file_noop
10817 ;;
10818 * ) # otherwise, assume *nix
10819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10820 ;;
10821 esac
10822 ;;
10823 * ) # unhandled hosts (and "normal" native builds)
10824 lt_cv_to_host_file_cmd=func_convert_file_noop
10825 ;;
10826esac
10827
10828fi
10829
10830to_host_file_cmd=$lt_cv_to_host_file_cmd
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10832$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10833
10834
10835
10836
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10839$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10840if ${lt_cv_to_tool_file_cmd+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842else
10843 #assume ordinary cross tools, or native build.
10844lt_cv_to_tool_file_cmd=func_convert_file_noop
10845case $host in
10846 *-*-mingw* )
10847 case $build in
10848 *-*-mingw* ) # actually msys
10849 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10850 ;;
10851 esac
10852 ;;
10853esac
10854
10855fi
10856
10857to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10859$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10860
10861
10862
10863
10864
cristy73bd4a52010-10-05 11:24:23 +000010865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10866$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010867if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010868 $as_echo_n "(cached) " >&6
10869else
10870 lt_cv_ld_reload_flag='-r'
10871fi
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10873$as_echo "$lt_cv_ld_reload_flag" >&6; }
10874reload_flag=$lt_cv_ld_reload_flag
10875case $reload_flag in
10876"" | " "*) ;;
10877*) reload_flag=" $reload_flag" ;;
10878esac
10879reload_cmds='$LD$reload_flag -o $output$reload_objs'
10880case $host_os in
cristyda16f162011-02-19 23:52:17 +000010881 cygwin* | mingw* | pw32* | cegcc*)
10882 if test "$GCC" != yes; then
10883 reload_cmds=false
10884 fi
10885 ;;
cristy73bd4a52010-10-05 11:24:23 +000010886 darwin*)
10887 if test "$GCC" = yes; then
10888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10889 else
10890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10891 fi
10892 ;;
10893esac
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903if test -n "$ac_tool_prefix"; then
10904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10905set dummy ${ac_tool_prefix}objdump; ac_word=$2
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010908if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010909 $as_echo_n "(cached) " >&6
10910else
10911 if test -n "$OBJDUMP"; then
10912 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10913else
10914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $PATH
10916do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010921 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10924 fi
10925done
10926 done
10927IFS=$as_save_IFS
10928
10929fi
10930fi
10931OBJDUMP=$ac_cv_prog_OBJDUMP
10932if test -n "$OBJDUMP"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10934$as_echo "$OBJDUMP" >&6; }
10935else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
10938fi
10939
10940
10941fi
10942if test -z "$ac_cv_prog_OBJDUMP"; then
10943 ac_ct_OBJDUMP=$OBJDUMP
10944 # Extract the first word of "objdump", so it can be a program name with args.
10945set dummy objdump; ac_word=$2
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010948if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010949 $as_echo_n "(cached) " >&6
10950else
10951 if test -n "$ac_ct_OBJDUMP"; then
10952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010961 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966 done
10967IFS=$as_save_IFS
10968
10969fi
10970fi
10971ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10972if test -n "$ac_ct_OBJDUMP"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10974$as_echo "$ac_ct_OBJDUMP" >&6; }
10975else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977$as_echo "no" >&6; }
10978fi
10979
10980 if test "x$ac_ct_OBJDUMP" = x; then
10981 OBJDUMP="false"
10982 else
10983 case $cross_compiling:$ac_tool_warned in
10984yes:)
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10987ac_tool_warned=yes ;;
10988esac
10989 OBJDUMP=$ac_ct_OBJDUMP
10990 fi
10991else
10992 OBJDUMP="$ac_cv_prog_OBJDUMP"
10993fi
10994
10995test -z "$OBJDUMP" && OBJDUMP=objdump
10996
10997
10998
10999
11000
11001
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11003$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011004if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011005 $as_echo_n "(cached) " >&6
11006else
11007 lt_cv_file_magic_cmd='$MAGIC_CMD'
11008lt_cv_file_magic_test_file=
11009lt_cv_deplibs_check_method='unknown'
11010# Need to set the preceding variable on all platforms that support
11011# interlibrary dependencies.
11012# 'none' -- dependencies not supported.
11013# `unknown' -- same as none, but documents that we really don't know.
11014# 'pass_all' -- all dependencies passed with no checks.
11015# 'test_compile' -- check by making test program.
11016# 'file_magic [[regex]]' -- check by looking for files in library path
11017# which responds to the $file_magic_cmd with a given extended regex.
11018# If you have `file' or equivalent on your system and you're not sure
11019# whether `pass_all' will *always* work, you probably want this one.
11020
11021case $host_os in
11022aix[4-9]*)
11023 lt_cv_deplibs_check_method=pass_all
11024 ;;
11025
11026beos*)
11027 lt_cv_deplibs_check_method=pass_all
11028 ;;
11029
11030bsdi[45]*)
11031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11032 lt_cv_file_magic_cmd='/usr/bin/file -L'
11033 lt_cv_file_magic_test_file=/shlib/libc.so
11034 ;;
11035
11036cygwin*)
11037 # func_win32_libid is a shell function defined in ltmain.sh
11038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11039 lt_cv_file_magic_cmd='func_win32_libid'
11040 ;;
11041
11042mingw* | pw32*)
11043 # Base MSYS/MinGW do not provide the 'file' command needed by
11044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11045 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11049 lt_cv_file_magic_cmd='func_win32_libid'
11050 else
cristy0c60a692010-11-04 01:09:47 +000011051 # Keep this pattern in sync with the one in func_win32_libid.
11052 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 +000011053 lt_cv_file_magic_cmd='$OBJDUMP -f'
11054 fi
11055 ;;
11056
cristy0c60a692010-11-04 01:09:47 +000011057cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011058 # use the weaker test based on 'objdump'. See mingw*.
11059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11060 lt_cv_file_magic_cmd='$OBJDUMP -f'
11061 ;;
11062
11063darwin* | rhapsody*)
11064 lt_cv_deplibs_check_method=pass_all
11065 ;;
11066
11067freebsd* | dragonfly*)
11068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11069 case $host_cpu in
11070 i*86 )
11071 # Not sure whether the presence of OpenBSD here was a mistake.
11072 # Let's accept both of them until this is cleared up.
11073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11074 lt_cv_file_magic_cmd=/usr/bin/file
11075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11076 ;;
11077 esac
11078 else
11079 lt_cv_deplibs_check_method=pass_all
11080 fi
11081 ;;
11082
11083gnu*)
11084 lt_cv_deplibs_check_method=pass_all
11085 ;;
11086
cristy0c60a692010-11-04 01:09:47 +000011087haiku*)
11088 lt_cv_deplibs_check_method=pass_all
11089 ;;
11090
cristy73bd4a52010-10-05 11:24:23 +000011091hpux10.20* | hpux11*)
11092 lt_cv_file_magic_cmd=/usr/bin/file
11093 case $host_cpu in
11094 ia64*)
11095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11097 ;;
11098 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011099 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 +000011100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11101 ;;
11102 *)
cristy0c60a692010-11-04 01:09:47 +000011103 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 +000011104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11105 ;;
11106 esac
11107 ;;
11108
11109interix[3-9]*)
11110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11112 ;;
11113
11114irix5* | irix6* | nonstopux*)
11115 case $LD in
11116 *-32|*"-32 ") libmagic=32-bit;;
11117 *-n32|*"-n32 ") libmagic=N32;;
11118 *-64|*"-64 ") libmagic=64-bit;;
11119 *) libmagic=never-match;;
11120 esac
11121 lt_cv_deplibs_check_method=pass_all
11122 ;;
11123
cristy99bd5232011-12-07 14:38:20 +000011124# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011125linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011126 lt_cv_deplibs_check_method=pass_all
11127 ;;
11128
11129netbsd*)
11130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11132 else
11133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11134 fi
11135 ;;
11136
11137newos6*)
11138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11139 lt_cv_file_magic_cmd=/usr/bin/file
11140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11141 ;;
11142
11143*nto* | *qnx*)
11144 lt_cv_deplibs_check_method=pass_all
11145 ;;
11146
11147openbsd*)
11148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11150 else
11151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11152 fi
11153 ;;
11154
11155osf3* | osf4* | osf5*)
11156 lt_cv_deplibs_check_method=pass_all
11157 ;;
11158
11159rdos*)
11160 lt_cv_deplibs_check_method=pass_all
11161 ;;
11162
11163solaris*)
11164 lt_cv_deplibs_check_method=pass_all
11165 ;;
11166
11167sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11168 lt_cv_deplibs_check_method=pass_all
11169 ;;
11170
11171sysv4 | sysv4.3*)
11172 case $host_vendor in
11173 motorola)
11174 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]'
11175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11176 ;;
11177 ncr)
11178 lt_cv_deplibs_check_method=pass_all
11179 ;;
11180 sequent)
11181 lt_cv_file_magic_cmd='/bin/file'
11182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11183 ;;
11184 sni)
11185 lt_cv_file_magic_cmd='/bin/file'
11186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11187 lt_cv_file_magic_test_file=/lib/libc.so
11188 ;;
11189 siemens)
11190 lt_cv_deplibs_check_method=pass_all
11191 ;;
11192 pc)
11193 lt_cv_deplibs_check_method=pass_all
11194 ;;
11195 esac
11196 ;;
11197
11198tpf*)
11199 lt_cv_deplibs_check_method=pass_all
11200 ;;
11201esac
11202
11203fi
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11205$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011206
11207file_magic_glob=
11208want_nocaseglob=no
11209if test "$build" = "$host"; then
11210 case $host_os in
11211 mingw* | pw32*)
11212 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11213 want_nocaseglob=yes
11214 else
11215 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11216 fi
11217 ;;
11218 esac
11219fi
11220
cristy73bd4a52010-10-05 11:24:23 +000011221file_magic_cmd=$lt_cv_file_magic_cmd
11222deplibs_check_method=$lt_cv_deplibs_check_method
11223test -z "$deplibs_check_method" && deplibs_check_method=unknown
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
cristyda16f162011-02-19 23:52:17 +000011236
11237
11238
11239
11240
11241
11242
11243
11244
11245
cristy73bd4a52010-10-05 11:24:23 +000011246if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11248set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011251if ${ac_cv_prog_DLLTOOL+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253else
11254 if test -n "$DLLTOOL"; then
11255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 break 2
11267 fi
11268done
11269 done
11270IFS=$as_save_IFS
11271
11272fi
11273fi
11274DLLTOOL=$ac_cv_prog_DLLTOOL
11275if test -n "$DLLTOOL"; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11277$as_echo "$DLLTOOL" >&6; }
11278else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
11281fi
11282
11283
11284fi
11285if test -z "$ac_cv_prog_DLLTOOL"; then
11286 ac_ct_DLLTOOL=$DLLTOOL
11287 # Extract the first word of "dlltool", so it can be a program name with args.
11288set dummy dlltool; ac_word=$2
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290$as_echo_n "checking for $ac_word... " >&6; }
11291if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293else
11294 if test -n "$ac_ct_DLLTOOL"; then
11295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11296else
11297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298for as_dir in $PATH
11299do
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11307 fi
11308done
11309 done
11310IFS=$as_save_IFS
11311
11312fi
11313fi
11314ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11315if test -n "$ac_ct_DLLTOOL"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11317$as_echo "$ac_ct_DLLTOOL" >&6; }
11318else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
11321fi
11322
11323 if test "x$ac_ct_DLLTOOL" = x; then
11324 DLLTOOL="false"
11325 else
11326 case $cross_compiling:$ac_tool_warned in
11327yes:)
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11330ac_tool_warned=yes ;;
11331esac
11332 DLLTOOL=$ac_ct_DLLTOOL
11333 fi
11334else
11335 DLLTOOL="$ac_cv_prog_DLLTOOL"
11336fi
11337
11338test -z "$DLLTOOL" && DLLTOOL=dlltool
11339
11340
11341
11342
11343
11344
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11347$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11348if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350else
11351 lt_cv_sharedlib_from_linklib_cmd='unknown'
11352
11353case $host_os in
11354cygwin* | mingw* | pw32* | cegcc*)
11355 # two different shell functions defined in ltmain.sh
11356 # decide which to use based on capabilities of $DLLTOOL
11357 case `$DLLTOOL --help 2>&1` in
11358 *--identify-strict*)
11359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11360 ;;
11361 *)
11362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11363 ;;
11364 esac
11365 ;;
11366*)
11367 # fallback: assume linklib IS sharedlib
11368 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11369 ;;
11370esac
11371
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11374$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11375sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11376test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11377
11378
11379
11380
11381
11382
11383
11384if test -n "$ac_tool_prefix"; then
11385 for ac_prog in ar
11386 do
11387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
11391if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011392 $as_echo_n "(cached) " >&6
11393else
11394 if test -n "$AR"; then
11395 ac_cv_prog_AR="$AR" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011404 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408done
11409 done
11410IFS=$as_save_IFS
11411
11412fi
11413fi
11414AR=$ac_cv_prog_AR
11415if test -n "$AR"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11417$as_echo "$AR" >&6; }
11418else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421fi
11422
11423
cristyda16f162011-02-19 23:52:17 +000011424 test -n "$AR" && break
11425 done
cristy73bd4a52010-10-05 11:24:23 +000011426fi
cristyda16f162011-02-19 23:52:17 +000011427if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011428 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011429 for ac_prog in ar
11430do
11431 # Extract the first word of "$ac_prog", so it can be a program name with args.
11432set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011435if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011436 $as_echo_n "(cached) " >&6
11437else
11438 if test -n "$ac_ct_AR"; then
11439 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011448 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11451 fi
11452done
11453 done
11454IFS=$as_save_IFS
11455
11456fi
11457fi
11458ac_ct_AR=$ac_cv_prog_ac_ct_AR
11459if test -n "$ac_ct_AR"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11461$as_echo "$ac_ct_AR" >&6; }
11462else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
11465fi
11466
cristyda16f162011-02-19 23:52:17 +000011467
11468 test -n "$ac_ct_AR" && break
11469done
11470
cristy73bd4a52010-10-05 11:24:23 +000011471 if test "x$ac_ct_AR" = x; then
11472 AR="false"
11473 else
11474 case $cross_compiling:$ac_tool_warned in
11475yes:)
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11478ac_tool_warned=yes ;;
11479esac
11480 AR=$ac_ct_AR
11481 fi
cristy73bd4a52010-10-05 11:24:23 +000011482fi
11483
cristyda16f162011-02-19 23:52:17 +000011484: ${AR=ar}
11485: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
cristyda16f162011-02-19 23:52:17 +000011497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11498$as_echo_n "checking for archiver @FILE support... " >&6; }
11499if ${lt_cv_ar_at_file+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501else
11502 lt_cv_ar_at_file=no
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504/* end confdefs.h. */
11505
11506int
11507main ()
11508{
11509
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514if ac_fn_c_try_compile "$LINENO"; then :
11515 echo conftest.$ac_objext > conftest.lst
11516 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11518 (eval $lt_ar_try) 2>&5
11519 ac_status=$?
11520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11521 test $ac_status = 0; }
11522 if test "$ac_status" -eq 0; then
11523 # Ensure the archiver fails upon bogus file names.
11524 rm -f conftest.$ac_objext libconftest.a
11525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11526 (eval $lt_ar_try) 2>&5
11527 ac_status=$?
11528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11529 test $ac_status = 0; }
11530 if test "$ac_status" -ne 0; then
11531 lt_cv_ar_at_file=@
11532 fi
11533 fi
11534 rm -f conftest.* libconftest.a
11535
11536fi
11537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11541$as_echo "$lt_cv_ar_at_file" >&6; }
11542
11543if test "x$lt_cv_ar_at_file" = xno; then
11544 archiver_list_spec=
11545else
11546 archiver_list_spec=$lt_cv_ar_at_file
11547fi
11548
11549
11550
11551
11552
11553
11554
cristy73bd4a52010-10-05 11:24:23 +000011555if test -n "$ac_tool_prefix"; then
11556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11557set dummy ${ac_tool_prefix}strip; ac_word=$2
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011560if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011561 $as_echo_n "(cached) " >&6
11562else
11563 if test -n "$STRIP"; then
11564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577done
11578 done
11579IFS=$as_save_IFS
11580
11581fi
11582fi
11583STRIP=$ac_cv_prog_STRIP
11584if test -n "$STRIP"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11586$as_echo "$STRIP" >&6; }
11587else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590fi
11591
11592
11593fi
11594if test -z "$ac_cv_prog_STRIP"; then
11595 ac_ct_STRIP=$STRIP
11596 # Extract the first word of "strip", so it can be a program name with args.
11597set dummy strip; ac_word=$2
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011600if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011601 $as_echo_n "(cached) " >&6
11602else
11603 if test -n "$ac_ct_STRIP"; then
11604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11605else
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011613 ac_cv_prog_ac_ct_STRIP="strip"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617done
11618 done
11619IFS=$as_save_IFS
11620
11621fi
11622fi
11623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11624if test -n "$ac_ct_STRIP"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11626$as_echo "$ac_ct_STRIP" >&6; }
11627else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630fi
11631
11632 if test "x$ac_ct_STRIP" = x; then
11633 STRIP=":"
11634 else
11635 case $cross_compiling:$ac_tool_warned in
11636yes:)
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11639ac_tool_warned=yes ;;
11640esac
11641 STRIP=$ac_ct_STRIP
11642 fi
11643else
11644 STRIP="$ac_cv_prog_STRIP"
11645fi
11646
11647test -z "$STRIP" && STRIP=:
11648
11649
11650
11651
11652
11653
11654if test -n "$ac_tool_prefix"; then
11655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11656set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011659if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011660 $as_echo_n "(cached) " >&6
11661else
11662 if test -n "$RANLIB"; then
11663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11664else
11665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11675 fi
11676done
11677 done
11678IFS=$as_save_IFS
11679
11680fi
11681fi
11682RANLIB=$ac_cv_prog_RANLIB
11683if test -n "$RANLIB"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11685$as_echo "$RANLIB" >&6; }
11686else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
11689fi
11690
11691
11692fi
11693if test -z "$ac_cv_prog_RANLIB"; then
11694 ac_ct_RANLIB=$RANLIB
11695 # Extract the first word of "ranlib", so it can be a program name with args.
11696set dummy ranlib; ac_word=$2
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011699if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011700 $as_echo_n "(cached) " >&6
11701else
11702 if test -n "$ac_ct_RANLIB"; then
11703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11704else
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011712 ac_cv_prog_ac_ct_RANLIB="ranlib"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11715 fi
11716done
11717 done
11718IFS=$as_save_IFS
11719
11720fi
11721fi
11722ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11723if test -n "$ac_ct_RANLIB"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11725$as_echo "$ac_ct_RANLIB" >&6; }
11726else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
11729fi
11730
11731 if test "x$ac_ct_RANLIB" = x; then
11732 RANLIB=":"
11733 else
11734 case $cross_compiling:$ac_tool_warned in
11735yes:)
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11738ac_tool_warned=yes ;;
11739esac
11740 RANLIB=$ac_ct_RANLIB
11741 fi
11742else
11743 RANLIB="$ac_cv_prog_RANLIB"
11744fi
11745
11746test -z "$RANLIB" && RANLIB=:
11747
11748
11749
11750
11751
11752
11753# Determine commands to create old-style static archives.
11754old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11755old_postinstall_cmds='chmod 644 $oldlib'
11756old_postuninstall_cmds=
11757
11758if test -n "$RANLIB"; then
11759 case $host_os in
11760 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011761 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011762 ;;
11763 *)
cristy99bd5232011-12-07 14:38:20 +000011764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011765 ;;
11766 esac
cristy99bd5232011-12-07 14:38:20 +000011767 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011768fi
11769
cristy0c60a692010-11-04 01:09:47 +000011770case $host_os in
11771 darwin*)
11772 lock_old_archive_extraction=yes ;;
11773 *)
11774 lock_old_archive_extraction=no ;;
11775esac
11776
11777
11778
11779
11780
11781
cristy73bd4a52010-10-05 11:24:23 +000011782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815# If no C compiler was specified, use CC.
11816LTCC=${LTCC-"$CC"}
11817
11818# If no C compiler flags were specified, use CFLAGS.
11819LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11820
11821# Allow CC to be a program name with arguments.
11822compiler=$CC
11823
11824
11825# Check for command to grab the raw symbol name followed by C symbol from nm.
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11827$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011828if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011829 $as_echo_n "(cached) " >&6
11830else
11831
11832# These are sane defaults that work on at least a few old systems.
11833# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11834
11835# Character class describing NM global symbol codes.
11836symcode='[BCDEGRST]'
11837
11838# Regexp to match symbols that can be accessed directly from C.
11839sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11840
11841# Define system-specific variables.
11842case $host_os in
11843aix*)
11844 symcode='[BCDT]'
11845 ;;
11846cygwin* | mingw* | pw32* | cegcc*)
11847 symcode='[ABCDGISTW]'
11848 ;;
11849hpux*)
11850 if test "$host_cpu" = ia64; then
11851 symcode='[ABCDEGRST]'
11852 fi
11853 ;;
11854irix* | nonstopux*)
11855 symcode='[BCDEGRST]'
11856 ;;
11857osf*)
11858 symcode='[BCDEGQRST]'
11859 ;;
11860solaris*)
11861 symcode='[BDRT]'
11862 ;;
11863sco3.2v5*)
11864 symcode='[DT]'
11865 ;;
11866sysv4.2uw2*)
11867 symcode='[DT]'
11868 ;;
11869sysv5* | sco5v6* | unixware* | OpenUNIX*)
11870 symcode='[ABDT]'
11871 ;;
11872sysv4)
11873 symcode='[DFNSTU]'
11874 ;;
11875esac
11876
11877# If we're using GNU nm, then use its standard symbol codes.
11878case `$NM -V 2>&1` in
11879*GNU* | *'with BFD'*)
11880 symcode='[ABCDGIRSTW]' ;;
11881esac
11882
11883# Transform an extracted symbol line into a proper C declaration.
11884# Some systems (esp. on ia64) link data and code symbols differently,
11885# so use this general approach.
11886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11887
11888# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011889lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11890lt_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 +000011891
11892# Handle CRLF in mingw tool chain
11893opt_cr=
11894case $build_os in
11895mingw*)
11896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11897 ;;
11898esac
11899
11900# Try without a prefix underscore, then with it.
11901for ac_symprfx in "" "_"; do
11902
11903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11904 symxfrm="\\1 $ac_symprfx\\2 \\2"
11905
11906 # Write the raw and C identifiers.
11907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11908 # Fake it for dumpbin and say T for any non-static function
11909 # and D for any global variable.
11910 # Also find C++ and __fastcall symbols from MSVC++,
11911 # which start with @ or ?.
11912 lt_cv_sys_global_symbol_pipe="$AWK '"\
11913" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011914" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011915" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11916" \$ 0!~/External *\|/{next};"\
11917" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11918" {if(hide[section]) next};"\
11919" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11920" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11921" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11922" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11923" ' prfx=^$ac_symprfx"
11924 else
11925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11926 fi
cristyda16f162011-02-19 23:52:17 +000011927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011928
11929 # Check to see that the pipe works correctly.
11930 pipe_works=no
11931
11932 rm -f conftest*
11933 cat > conftest.$ac_ext <<_LT_EOF
11934#ifdef __cplusplus
11935extern "C" {
11936#endif
11937char nm_test_var;
11938void nm_test_func(void);
11939void nm_test_func(void){}
11940#ifdef __cplusplus
11941}
11942#endif
11943int main(){nm_test_var='a';nm_test_func();return(0);}
11944_LT_EOF
11945
11946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11947 (eval $ac_compile) 2>&5
11948 ac_status=$?
11949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950 test $ac_status = 0; }; then
11951 # Now try to grab the symbols.
11952 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11954 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011955 ac_status=$?
11956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957 test $ac_status = 0; } && test -s "$nlist"; then
11958 # Try sorting and uniquifying the output.
11959 if sort "$nlist" | uniq > "$nlist"T; then
11960 mv -f "$nlist"T "$nlist"
11961 else
11962 rm -f "$nlist"T
11963 fi
11964
11965 # Make sure that we snagged all the symbols we need.
11966 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11967 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11968 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011969/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11970#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11971/* DATA imports from DLLs on WIN32 con't be const, because runtime
11972 relocations are performed -- see ld's documentation on pseudo-relocs. */
11973# define LT_DLSYM_CONST
11974#elif defined(__osf__)
11975/* This system does not cope well with relocations in const data. */
11976# define LT_DLSYM_CONST
11977#else
11978# define LT_DLSYM_CONST const
11979#endif
11980
cristy73bd4a52010-10-05 11:24:23 +000011981#ifdef __cplusplus
11982extern "C" {
11983#endif
11984
11985_LT_EOF
11986 # Now generate the symbol file.
11987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11988
11989 cat <<_LT_EOF >> conftest.$ac_ext
11990
11991/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011992LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011993 const char *name;
11994 void *address;
11995}
11996lt__PROGRAM__LTX_preloaded_symbols[] =
11997{
11998 { "@PROGRAM@", (void *) 0 },
11999_LT_EOF
12000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12001 cat <<\_LT_EOF >> conftest.$ac_ext
12002 {0, (void *) 0}
12003};
12004
12005/* This works around a problem in FreeBSD linker */
12006#ifdef FREEBSD_WORKAROUND
12007static const void *lt_preloaded_setup() {
12008 return lt__PROGRAM__LTX_preloaded_symbols;
12009}
12010#endif
12011
12012#ifdef __cplusplus
12013}
12014#endif
12015_LT_EOF
12016 # Now try linking the two files.
12017 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012018 lt_globsym_save_LIBS=$LIBS
12019 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012020 LIBS="conftstm.$ac_objext"
12021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12023 (eval $ac_link) 2>&5
12024 ac_status=$?
12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12027 pipe_works=yes
12028 fi
cristyda16f162011-02-19 23:52:17 +000012029 LIBS=$lt_globsym_save_LIBS
12030 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012031 else
12032 echo "cannot find nm_test_func in $nlist" >&5
12033 fi
12034 else
12035 echo "cannot find nm_test_var in $nlist" >&5
12036 fi
12037 else
12038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12039 fi
12040 else
12041 echo "$progname: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12043 fi
12044 rm -rf conftest* conftst*
12045
12046 # Do not use the global_symbol_pipe unless it works.
12047 if test "$pipe_works" = yes; then
12048 break
12049 else
12050 lt_cv_sys_global_symbol_pipe=
12051 fi
12052done
12053
12054fi
12055
12056if test -z "$lt_cv_sys_global_symbol_pipe"; then
12057 lt_cv_sys_global_symbol_to_cdecl=
12058fi
12059if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12061$as_echo "failed" >&6; }
12062else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12064$as_echo "ok" >&6; }
12065fi
12066
cristyda16f162011-02-19 23:52:17 +000012067# Response file support.
12068if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12069 nm_file_list_spec='@'
12070elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12071 nm_file_list_spec='@'
12072fi
cristy73bd4a52010-10-05 11:24:23 +000012073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
cristyda16f162011-02-19 23:52:17 +000012094
12095
12096
12097
12098
12099
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12101$as_echo_n "checking for sysroot... " >&6; }
12102
12103# Check whether --with-sysroot was given.
12104if test "${with_sysroot+set}" = set; then :
12105 withval=$with_sysroot;
12106else
12107 with_sysroot=no
12108fi
12109
12110
12111lt_sysroot=
12112case ${with_sysroot} in #(
12113 yes)
12114 if test "$GCC" = yes; then
12115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12116 fi
12117 ;; #(
12118 /*)
12119 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12120 ;; #(
12121 no|'')
12122 ;; #(
12123 *)
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12125$as_echo "${with_sysroot}" >&6; }
12126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12127 ;;
12128esac
12129
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12131$as_echo "${lt_sysroot:-no}" >&6; }
12132
12133
12134
12135
12136
cristy73bd4a52010-10-05 11:24:23 +000012137# Check whether --enable-libtool-lock was given.
12138if test "${enable_libtool_lock+set}" = set; then :
12139 enableval=$enable_libtool_lock;
12140fi
12141
12142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12143
12144# Some flags need to be propagated to the compiler or linker for good
12145# libtool support.
12146case $host in
12147ia64-*-hpux*)
12148 # Find out which ABI we are using.
12149 echo 'int i;' > conftest.$ac_ext
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12151 (eval $ac_compile) 2>&5
12152 ac_status=$?
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; }; then
12155 case `/usr/bin/file conftest.$ac_objext` in
12156 *ELF-32*)
12157 HPUX_IA64_MODE="32"
12158 ;;
12159 *ELF-64*)
12160 HPUX_IA64_MODE="64"
12161 ;;
12162 esac
12163 fi
12164 rm -rf conftest*
12165 ;;
12166*-*-irix6*)
12167 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012168 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12170 (eval $ac_compile) 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173 test $ac_status = 0; }; then
12174 if test "$lt_cv_prog_gnu_ld" = yes; then
12175 case `/usr/bin/file conftest.$ac_objext` in
12176 *32-bit*)
12177 LD="${LD-ld} -melf32bsmip"
12178 ;;
12179 *N32*)
12180 LD="${LD-ld} -melf32bmipn32"
12181 ;;
12182 *64-bit*)
12183 LD="${LD-ld} -melf64bmip"
12184 ;;
12185 esac
12186 else
12187 case `/usr/bin/file conftest.$ac_objext` in
12188 *32-bit*)
12189 LD="${LD-ld} -32"
12190 ;;
12191 *N32*)
12192 LD="${LD-ld} -n32"
12193 ;;
12194 *64-bit*)
12195 LD="${LD-ld} -64"
12196 ;;
12197 esac
12198 fi
12199 fi
12200 rm -rf conftest*
12201 ;;
12202
12203x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12204s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12205 # Find out which ABI we are using.
12206 echo 'int i;' > conftest.$ac_ext
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12208 (eval $ac_compile) 2>&5
12209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; }; then
12212 case `/usr/bin/file conftest.o` in
12213 *32-bit*)
12214 case $host in
12215 x86_64-*kfreebsd*-gnu)
12216 LD="${LD-ld} -m elf_i386_fbsd"
12217 ;;
12218 x86_64-*linux*)
12219 LD="${LD-ld} -m elf_i386"
12220 ;;
12221 ppc64-*linux*|powerpc64-*linux*)
12222 LD="${LD-ld} -m elf32ppclinux"
12223 ;;
12224 s390x-*linux*)
12225 LD="${LD-ld} -m elf_s390"
12226 ;;
12227 sparc64-*linux*)
12228 LD="${LD-ld} -m elf32_sparc"
12229 ;;
12230 esac
12231 ;;
12232 *64-bit*)
12233 case $host in
12234 x86_64-*kfreebsd*-gnu)
12235 LD="${LD-ld} -m elf_x86_64_fbsd"
12236 ;;
12237 x86_64-*linux*)
12238 LD="${LD-ld} -m elf_x86_64"
12239 ;;
12240 ppc*-*linux*|powerpc*-*linux*)
12241 LD="${LD-ld} -m elf64ppc"
12242 ;;
12243 s390*-*linux*|s390*-*tpf*)
12244 LD="${LD-ld} -m elf64_s390"
12245 ;;
12246 sparc*-*linux*)
12247 LD="${LD-ld} -m elf64_sparc"
12248 ;;
12249 esac
12250 ;;
12251 esac
12252 fi
12253 rm -rf conftest*
12254 ;;
12255
12256*-*-sco3.2v5*)
12257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12258 SAVE_CFLAGS="$CFLAGS"
12259 CFLAGS="$CFLAGS -belf"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12261$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012262if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012263 $as_echo_n "(cached) " >&6
12264else
12265 ac_ext=c
12266ac_cpp='$CPP $CPPFLAGS'
12267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269ac_compiler_gnu=$ac_cv_c_compiler_gnu
12270
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h. */
12273
12274int
12275main ()
12276{
12277
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_link "$LINENO"; then :
12283 lt_cv_cc_needs_belf=yes
12284else
12285 lt_cv_cc_needs_belf=no
12286fi
12287rm -f core conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289 ac_ext=c
12290ac_cpp='$CPP $CPPFLAGS'
12291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12293ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12297$as_echo "$lt_cv_cc_needs_belf" >&6; }
12298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12300 CFLAGS="$SAVE_CFLAGS"
12301 fi
12302 ;;
cristy99bd5232011-12-07 14:38:20 +000012303*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012304 # Find out which ABI we are using.
12305 echo 'int i;' > conftest.$ac_ext
12306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12307 (eval $ac_compile) 2>&5
12308 ac_status=$?
12309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12310 test $ac_status = 0; }; then
12311 case `/usr/bin/file conftest.o` in
12312 *64-bit*)
12313 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012314 yes*)
12315 case $host in
12316 i?86-*-solaris*)
12317 LD="${LD-ld} -m elf_x86_64"
12318 ;;
12319 sparc*-*-solaris*)
12320 LD="${LD-ld} -m elf64_sparc"
12321 ;;
12322 esac
12323 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12324 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12325 LD="${LD-ld}_sol2"
12326 fi
12327 ;;
cristy73bd4a52010-10-05 11:24:23 +000012328 *)
12329 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12330 LD="${LD-ld} -64"
12331 fi
12332 ;;
12333 esac
12334 ;;
12335 esac
12336 fi
12337 rm -rf conftest*
12338 ;;
12339esac
12340
12341need_locks="$enable_libtool_lock"
12342
cristyda16f162011-02-19 23:52:17 +000012343if test -n "$ac_tool_prefix"; then
12344 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12345set dummy ${ac_tool_prefix}mt; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 if test -n "$MANIFEST_TOOL"; then
12352 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12353else
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012361 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12364 fi
12365done
12366 done
12367IFS=$as_save_IFS
12368
12369fi
12370fi
12371MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12372if test -n "$MANIFEST_TOOL"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12374$as_echo "$MANIFEST_TOOL" >&6; }
12375else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
12378fi
12379
12380
12381fi
12382if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12383 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12384 # Extract the first word of "mt", so it can be a program name with args.
12385set dummy mt; ac_word=$2
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387$as_echo_n "checking for $ac_word... " >&6; }
12388if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390else
12391 if test -n "$ac_ct_MANIFEST_TOOL"; then
12392 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12393else
12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395for as_dir in $PATH
12396do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012401 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12404 fi
12405done
12406 done
12407IFS=$as_save_IFS
12408
12409fi
12410fi
12411ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12412if test -n "$ac_ct_MANIFEST_TOOL"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12414$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12415else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
12418fi
12419
12420 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12421 MANIFEST_TOOL=":"
12422 else
12423 case $cross_compiling:$ac_tool_warned in
12424yes:)
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12427ac_tool_warned=yes ;;
12428esac
12429 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12430 fi
12431else
12432 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12433fi
12434
12435test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12437$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12438if ${lt_cv_path_mainfest_tool+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440else
12441 lt_cv_path_mainfest_tool=no
12442 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12443 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12444 cat conftest.err >&5
12445 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12446 lt_cv_path_mainfest_tool=yes
12447 fi
12448 rm -f conftest*
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12451$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12452if test "x$lt_cv_path_mainfest_tool" != xyes; then
12453 MANIFEST_TOOL=:
12454fi
12455
12456
12457
12458
12459
cristy73bd4a52010-10-05 11:24:23 +000012460
12461 case $host_os in
12462 rhapsody* | darwin*)
12463 if test -n "$ac_tool_prefix"; then
12464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12465set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012468if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012469 $as_echo_n "(cached) " >&6
12470else
12471 if test -n "$DSYMUTIL"; then
12472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12473else
12474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475for as_dir in $PATH
12476do
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12484 fi
12485done
12486 done
12487IFS=$as_save_IFS
12488
12489fi
12490fi
12491DSYMUTIL=$ac_cv_prog_DSYMUTIL
12492if test -n "$DSYMUTIL"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12494$as_echo "$DSYMUTIL" >&6; }
12495else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497$as_echo "no" >&6; }
12498fi
12499
12500
12501fi
12502if test -z "$ac_cv_prog_DSYMUTIL"; then
12503 ac_ct_DSYMUTIL=$DSYMUTIL
12504 # Extract the first word of "dsymutil", so it can be a program name with args.
12505set dummy dsymutil; ac_word=$2
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012508if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012509 $as_echo_n "(cached) " >&6
12510else
12511 if test -n "$ac_ct_DSYMUTIL"; then
12512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12513else
12514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525done
12526 done
12527IFS=$as_save_IFS
12528
12529fi
12530fi
12531ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12532if test -n "$ac_ct_DSYMUTIL"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12534$as_echo "$ac_ct_DSYMUTIL" >&6; }
12535else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
12538fi
12539
12540 if test "x$ac_ct_DSYMUTIL" = x; then
12541 DSYMUTIL=":"
12542 else
12543 case $cross_compiling:$ac_tool_warned in
12544yes:)
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12547ac_tool_warned=yes ;;
12548esac
12549 DSYMUTIL=$ac_ct_DSYMUTIL
12550 fi
12551else
12552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12553fi
12554
12555 if test -n "$ac_tool_prefix"; then
12556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12557set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012560if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012561 $as_echo_n "(cached) " >&6
12562else
12563 if test -n "$NMEDIT"; then
12564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12565else
12566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12576 fi
12577done
12578 done
12579IFS=$as_save_IFS
12580
12581fi
12582fi
12583NMEDIT=$ac_cv_prog_NMEDIT
12584if test -n "$NMEDIT"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12586$as_echo "$NMEDIT" >&6; }
12587else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589$as_echo "no" >&6; }
12590fi
12591
12592
12593fi
12594if test -z "$ac_cv_prog_NMEDIT"; then
12595 ac_ct_NMEDIT=$NMEDIT
12596 # Extract the first word of "nmedit", so it can be a program name with args.
12597set dummy nmedit; ac_word=$2
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012600if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012601 $as_echo_n "(cached) " >&6
12602else
12603 if test -n "$ac_ct_NMEDIT"; then
12604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12605else
12606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607for as_dir in $PATH
12608do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617done
12618 done
12619IFS=$as_save_IFS
12620
12621fi
12622fi
12623ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12624if test -n "$ac_ct_NMEDIT"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12626$as_echo "$ac_ct_NMEDIT" >&6; }
12627else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630fi
12631
12632 if test "x$ac_ct_NMEDIT" = x; then
12633 NMEDIT=":"
12634 else
12635 case $cross_compiling:$ac_tool_warned in
12636yes:)
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12639ac_tool_warned=yes ;;
12640esac
12641 NMEDIT=$ac_ct_NMEDIT
12642 fi
12643else
12644 NMEDIT="$ac_cv_prog_NMEDIT"
12645fi
12646
12647 if test -n "$ac_tool_prefix"; then
12648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12649set dummy ${ac_tool_prefix}lipo; ac_word=$2
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012652if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012653 $as_echo_n "(cached) " >&6
12654else
12655 if test -n "$LIPO"; then
12656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12657else
12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659for as_dir in $PATH
12660do
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 break 2
12668 fi
12669done
12670 done
12671IFS=$as_save_IFS
12672
12673fi
12674fi
12675LIPO=$ac_cv_prog_LIPO
12676if test -n "$LIPO"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12678$as_echo "$LIPO" >&6; }
12679else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682fi
12683
12684
12685fi
12686if test -z "$ac_cv_prog_LIPO"; then
12687 ac_ct_LIPO=$LIPO
12688 # Extract the first word of "lipo", so it can be a program name with args.
12689set dummy lipo; ac_word=$2
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012692if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012693 $as_echo_n "(cached) " >&6
12694else
12695 if test -n "$ac_ct_LIPO"; then
12696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12697else
12698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699for as_dir in $PATH
12700do
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012705 ac_cv_prog_ac_ct_LIPO="lipo"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12708 fi
12709done
12710 done
12711IFS=$as_save_IFS
12712
12713fi
12714fi
12715ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12716if test -n "$ac_ct_LIPO"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12718$as_echo "$ac_ct_LIPO" >&6; }
12719else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722fi
12723
12724 if test "x$ac_ct_LIPO" = x; then
12725 LIPO=":"
12726 else
12727 case $cross_compiling:$ac_tool_warned in
12728yes:)
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12731ac_tool_warned=yes ;;
12732esac
12733 LIPO=$ac_ct_LIPO
12734 fi
12735else
12736 LIPO="$ac_cv_prog_LIPO"
12737fi
12738
12739 if test -n "$ac_tool_prefix"; then
12740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12741set dummy ${ac_tool_prefix}otool; ac_word=$2
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012744if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012745 $as_echo_n "(cached) " >&6
12746else
12747 if test -n "$OTOOL"; then
12748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12749else
12750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751for as_dir in $PATH
12752do
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12760 fi
12761done
12762 done
12763IFS=$as_save_IFS
12764
12765fi
12766fi
12767OTOOL=$ac_cv_prog_OTOOL
12768if test -n "$OTOOL"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12770$as_echo "$OTOOL" >&6; }
12771else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
12774fi
12775
12776
12777fi
12778if test -z "$ac_cv_prog_OTOOL"; then
12779 ac_ct_OTOOL=$OTOOL
12780 # Extract the first word of "otool", so it can be a program name with args.
12781set dummy otool; ac_word=$2
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012784if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012785 $as_echo_n "(cached) " >&6
12786else
12787 if test -n "$ac_ct_OTOOL"; then
12788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12789else
12790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012797 ac_cv_prog_ac_ct_OTOOL="otool"
12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 break 2
12800 fi
12801done
12802 done
12803IFS=$as_save_IFS
12804
12805fi
12806fi
12807ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12808if test -n "$ac_ct_OTOOL"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12810$as_echo "$ac_ct_OTOOL" >&6; }
12811else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
12814fi
12815
12816 if test "x$ac_ct_OTOOL" = x; then
12817 OTOOL=":"
12818 else
12819 case $cross_compiling:$ac_tool_warned in
12820yes:)
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12823ac_tool_warned=yes ;;
12824esac
12825 OTOOL=$ac_ct_OTOOL
12826 fi
12827else
12828 OTOOL="$ac_cv_prog_OTOOL"
12829fi
12830
12831 if test -n "$ac_tool_prefix"; then
12832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12833set dummy ${ac_tool_prefix}otool64; ac_word=$2
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012836if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012837 $as_echo_n "(cached) " >&6
12838else
12839 if test -n "$OTOOL64"; then
12840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853done
12854 done
12855IFS=$as_save_IFS
12856
12857fi
12858fi
12859OTOOL64=$ac_cv_prog_OTOOL64
12860if test -n "$OTOOL64"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12862$as_echo "$OTOOL64" >&6; }
12863else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866fi
12867
12868
12869fi
12870if test -z "$ac_cv_prog_OTOOL64"; then
12871 ac_ct_OTOOL64=$OTOOL64
12872 # Extract the first word of "otool64", so it can be a program name with args.
12873set dummy otool64; ac_word=$2
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012876if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012877 $as_echo_n "(cached) " >&6
12878else
12879 if test -n "$ac_ct_OTOOL64"; then
12880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12881else
12882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883for as_dir in $PATH
12884do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012889 ac_cv_prog_ac_ct_OTOOL64="otool64"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893done
12894 done
12895IFS=$as_save_IFS
12896
12897fi
12898fi
12899ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12900if test -n "$ac_ct_OTOOL64"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12902$as_echo "$ac_ct_OTOOL64" >&6; }
12903else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
12906fi
12907
12908 if test "x$ac_ct_OTOOL64" = x; then
12909 OTOOL64=":"
12910 else
12911 case $cross_compiling:$ac_tool_warned in
12912yes:)
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12915ac_tool_warned=yes ;;
12916esac
12917 OTOOL64=$ac_ct_OTOOL64
12918 fi
12919else
12920 OTOOL64="$ac_cv_prog_OTOOL64"
12921fi
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12950$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012951if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012952 $as_echo_n "(cached) " >&6
12953else
12954 lt_cv_apple_cc_single_mod=no
12955 if test -z "${LT_MULTI_MODULE}"; then
12956 # By default we will add the -single_module flag. You can override
12957 # by either setting the environment variable LT_MULTI_MODULE
12958 # non-empty at configure time, or by adding -multi_module to the
12959 # link flags.
12960 rm -rf libconftest.dylib*
12961 echo "int foo(void){return 1;}" > conftest.c
12962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12963-dynamiclib -Wl,-single_module conftest.c" >&5
12964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12966 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012967 # If there is a non-empty error log, and "single_module"
12968 # appears in it, assume the flag caused a linker warning
12969 if test -s conftest.err && $GREP single_module conftest.err; then
12970 cat conftest.err >&5
12971 # Otherwise, if the output was created with a 0 exit code from
12972 # the compiler, it worked.
12973 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012974 lt_cv_apple_cc_single_mod=yes
12975 else
12976 cat conftest.err >&5
12977 fi
12978 rm -rf libconftest.dylib*
12979 rm -f conftest.*
12980 fi
12981fi
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12983$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012984
cristy73bd4a52010-10-05 11:24:23 +000012985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12986$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012987if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012988 $as_echo_n "(cached) " >&6
12989else
12990 lt_cv_ld_exported_symbols_list=no
12991 save_LDFLAGS=$LDFLAGS
12992 echo "_main" > conftest.sym
12993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h. */
12996
12997int
12998main ()
12999{
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005if ac_fn_c_try_link "$LINENO"; then :
13006 lt_cv_ld_exported_symbols_list=yes
13007else
13008 lt_cv_ld_exported_symbols_list=no
13009fi
13010rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LDFLAGS="$save_LDFLAGS"
13013
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13016$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013017
cristy0c60a692010-11-04 01:09:47 +000013018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13019$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013020if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013021 $as_echo_n "(cached) " >&6
13022else
13023 lt_cv_ld_force_load=no
13024 cat > conftest.c << _LT_EOF
13025int forced_loaded() { return 2;}
13026_LT_EOF
13027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13029 echo "$AR cru libconftest.a conftest.o" >&5
13030 $AR cru libconftest.a conftest.o 2>&5
13031 echo "$RANLIB libconftest.a" >&5
13032 $RANLIB libconftest.a 2>&5
13033 cat > conftest.c << _LT_EOF
13034int main() { return 0;}
13035_LT_EOF
13036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13038 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013039 if test -s conftest.err && $GREP force_load conftest.err; then
13040 cat conftest.err >&5
13041 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013042 lt_cv_ld_force_load=yes
13043 else
13044 cat conftest.err >&5
13045 fi
13046 rm -f conftest.err libconftest.a conftest conftest.c
13047 rm -rf conftest.dSYM
13048
13049fi
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13051$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013052 case $host_os in
13053 rhapsody* | darwin1.[012])
13054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13055 darwin1.*)
13056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13057 darwin*) # darwin 5.x on
13058 # if running on 10.5 or later, the deployment target defaults
13059 # to the OS version, if on x86, and 10.4, the deployment
13060 # target defaults to 10.4. Don't you love it?
13061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13064 10.[012]*)
13065 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13066 10.*)
13067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13068 esac
13069 ;;
13070 esac
13071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13072 _lt_dar_single_mod='$single_module'
13073 fi
13074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13076 else
13077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13078 fi
cristy0c60a692010-11-04 01:09:47 +000013079 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013080 _lt_dsymutil='~$DSYMUTIL $lib || :'
13081 else
13082 _lt_dsymutil=
13083 fi
13084 ;;
13085 esac
13086
13087for ac_header in dlfcn.h
13088do :
13089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13090"
cristyda16f162011-02-19 23:52:17 +000013091if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013092 cat >>confdefs.h <<_ACEOF
13093#define HAVE_DLFCN_H 1
13094_ACEOF
13095
13096fi
13097
13098done
13099
13100
13101
cristy73bd4a52010-10-05 11:24:23 +000013102
cristyda16f162011-02-19 23:52:17 +000013103func_stripname_cnf ()
13104{
13105 case ${2} in
13106 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13107 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13108 esac
13109} # func_stripname_cnf
13110
13111
13112
cristy73bd4a52010-10-05 11:24:23 +000013113
13114
13115# Set options
13116enable_win32_dll=yes
13117
13118case $host in
cristy0c60a692010-11-04 01:09:47 +000013119*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013120 if test -n "$ac_tool_prefix"; then
13121 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13122set dummy ${ac_tool_prefix}as; ac_word=$2
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013125if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013126 $as_echo_n "(cached) " >&6
13127else
13128 if test -n "$AS"; then
13129 ac_cv_prog_AS="$AS" # Let the user override the test.
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013138 ac_cv_prog_AS="${ac_tool_prefix}as"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13141 fi
13142done
13143 done
13144IFS=$as_save_IFS
13145
13146fi
13147fi
13148AS=$ac_cv_prog_AS
13149if test -n "$AS"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13151$as_echo "$AS" >&6; }
13152else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
13155fi
13156
13157
13158fi
13159if test -z "$ac_cv_prog_AS"; then
13160 ac_ct_AS=$AS
13161 # Extract the first word of "as", so it can be a program name with args.
13162set dummy as; ac_word=$2
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013165if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013166 $as_echo_n "(cached) " >&6
13167else
13168 if test -n "$ac_ct_AS"; then
13169 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13170else
13171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172for as_dir in $PATH
13173do
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013178 ac_cv_prog_ac_ct_AS="as"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13181 fi
13182done
13183 done
13184IFS=$as_save_IFS
13185
13186fi
13187fi
13188ac_ct_AS=$ac_cv_prog_ac_ct_AS
13189if test -n "$ac_ct_AS"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13191$as_echo "$ac_ct_AS" >&6; }
13192else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194$as_echo "no" >&6; }
13195fi
13196
13197 if test "x$ac_ct_AS" = x; then
13198 AS="false"
13199 else
13200 case $cross_compiling:$ac_tool_warned in
13201yes:)
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13204ac_tool_warned=yes ;;
13205esac
13206 AS=$ac_ct_AS
13207 fi
13208else
13209 AS="$ac_cv_prog_AS"
13210fi
13211
13212 if test -n "$ac_tool_prefix"; then
13213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13214set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013217if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013218 $as_echo_n "(cached) " >&6
13219else
13220 if test -n "$DLLTOOL"; then
13221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13222else
13223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013230 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13233 fi
13234done
13235 done
13236IFS=$as_save_IFS
13237
13238fi
13239fi
13240DLLTOOL=$ac_cv_prog_DLLTOOL
13241if test -n "$DLLTOOL"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13243$as_echo "$DLLTOOL" >&6; }
13244else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246$as_echo "no" >&6; }
13247fi
13248
13249
13250fi
13251if test -z "$ac_cv_prog_DLLTOOL"; then
13252 ac_ct_DLLTOOL=$DLLTOOL
13253 # Extract the first word of "dlltool", so it can be a program name with args.
13254set dummy dlltool; ac_word=$2
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013257if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013258 $as_echo_n "(cached) " >&6
13259else
13260 if test -n "$ac_ct_DLLTOOL"; then
13261 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13262else
13263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264for as_dir in $PATH
13265do
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013270 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13273 fi
13274done
13275 done
13276IFS=$as_save_IFS
13277
13278fi
13279fi
13280ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13281if test -n "$ac_ct_DLLTOOL"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13283$as_echo "$ac_ct_DLLTOOL" >&6; }
13284else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
13287fi
13288
13289 if test "x$ac_ct_DLLTOOL" = x; then
13290 DLLTOOL="false"
13291 else
13292 case $cross_compiling:$ac_tool_warned in
13293yes:)
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296ac_tool_warned=yes ;;
13297esac
13298 DLLTOOL=$ac_ct_DLLTOOL
13299 fi
13300else
13301 DLLTOOL="$ac_cv_prog_DLLTOOL"
13302fi
13303
13304 if test -n "$ac_tool_prefix"; then
13305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13306set dummy ${ac_tool_prefix}objdump; ac_word=$2
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013309if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013310 $as_echo_n "(cached) " >&6
13311else
13312 if test -n "$OBJDUMP"; then
13313 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13314else
13315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $PATH
13317do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13325 fi
13326done
13327 done
13328IFS=$as_save_IFS
13329
13330fi
13331fi
13332OBJDUMP=$ac_cv_prog_OBJDUMP
13333if test -n "$OBJDUMP"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13335$as_echo "$OBJDUMP" >&6; }
13336else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
13339fi
13340
13341
13342fi
13343if test -z "$ac_cv_prog_OBJDUMP"; then
13344 ac_ct_OBJDUMP=$OBJDUMP
13345 # Extract the first word of "objdump", so it can be a program name with args.
13346set dummy objdump; ac_word=$2
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013349if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013350 $as_echo_n "(cached) " >&6
13351else
13352 if test -n "$ac_ct_OBJDUMP"; then
13353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13354else
13355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356for as_dir in $PATH
13357do
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013362 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13365 fi
13366done
13367 done
13368IFS=$as_save_IFS
13369
13370fi
13371fi
13372ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13373if test -n "$ac_ct_OBJDUMP"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13375$as_echo "$ac_ct_OBJDUMP" >&6; }
13376else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378$as_echo "no" >&6; }
13379fi
13380
13381 if test "x$ac_ct_OBJDUMP" = x; then
13382 OBJDUMP="false"
13383 else
13384 case $cross_compiling:$ac_tool_warned in
13385yes:)
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13388ac_tool_warned=yes ;;
13389esac
13390 OBJDUMP=$ac_ct_OBJDUMP
13391 fi
13392else
13393 OBJDUMP="$ac_cv_prog_OBJDUMP"
13394fi
13395
13396 ;;
13397esac
13398
13399test -z "$AS" && AS=as
13400
13401
13402
13403
13404
13405test -z "$DLLTOOL" && DLLTOOL=dlltool
13406
13407
13408
13409
13410
13411test -z "$OBJDUMP" && OBJDUMP=objdump
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421 # Check whether --enable-shared was given.
13422if test "${enable_shared+set}" = set; then :
13423 enableval=$enable_shared; p=${PACKAGE-default}
13424 case $enableval in
13425 yes) enable_shared=yes ;;
13426 no) enable_shared=no ;;
13427 *)
13428 enable_shared=no
13429 # Look at the argument we got. We use all the common list separators.
13430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13431 for pkg in $enableval; do
13432 IFS="$lt_save_ifs"
13433 if test "X$pkg" = "X$p"; then
13434 enable_shared=yes
13435 fi
13436 done
13437 IFS="$lt_save_ifs"
13438 ;;
13439 esac
13440else
13441 enable_shared=yes
13442fi
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452 # Check whether --enable-static was given.
13453if test "${enable_static+set}" = set; then :
13454 enableval=$enable_static; p=${PACKAGE-default}
13455 case $enableval in
13456 yes) enable_static=yes ;;
13457 no) enable_static=no ;;
13458 *)
13459 enable_static=no
13460 # Look at the argument we got. We use all the common list separators.
13461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13462 for pkg in $enableval; do
13463 IFS="$lt_save_ifs"
13464 if test "X$pkg" = "X$p"; then
13465 enable_static=yes
13466 fi
13467 done
13468 IFS="$lt_save_ifs"
13469 ;;
13470 esac
13471else
13472 enable_static=yes
13473fi
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484# Check whether --with-pic was given.
13485if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013486 withval=$with_pic; lt_p=${PACKAGE-default}
13487 case $withval in
13488 yes|no) pic_mode=$withval ;;
13489 *)
13490 pic_mode=default
13491 # Look at the argument we got. We use all the common list separators.
13492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13493 for lt_pkg in $withval; do
13494 IFS="$lt_save_ifs"
13495 if test "X$lt_pkg" = "X$lt_p"; then
13496 pic_mode=yes
13497 fi
13498 done
13499 IFS="$lt_save_ifs"
13500 ;;
13501 esac
cristy73bd4a52010-10-05 11:24:23 +000013502else
13503 pic_mode=default
13504fi
13505
13506
13507test -z "$pic_mode" && pic_mode=default
13508
13509
13510
13511
13512
13513
13514
13515 # Check whether --enable-fast-install was given.
13516if test "${enable_fast_install+set}" = set; then :
13517 enableval=$enable_fast_install; p=${PACKAGE-default}
13518 case $enableval in
13519 yes) enable_fast_install=yes ;;
13520 no) enable_fast_install=no ;;
13521 *)
13522 enable_fast_install=no
13523 # Look at the argument we got. We use all the common list separators.
13524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13525 for pkg in $enableval; do
13526 IFS="$lt_save_ifs"
13527 if test "X$pkg" = "X$p"; then
13528 enable_fast_install=yes
13529 fi
13530 done
13531 IFS="$lt_save_ifs"
13532 ;;
13533 esac
13534else
13535 enable_fast_install=yes
13536fi
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548# This can be used to rebuild libtool when needed
13549LIBTOOL_DEPS="$ltmain"
13550
13551# Always use our own libtool.
13552LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
cristy0c60a692010-11-04 01:09:47 +000013578
cristy99bd5232011-12-07 14:38:20 +000013579
13580
13581
13582
cristy73bd4a52010-10-05 11:24:23 +000013583test -z "$LN_S" && LN_S="ln -s"
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598if test -n "${ZSH_VERSION+set}" ; then
13599 setopt NO_GLOB_SUBST
13600fi
13601
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13603$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013604if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013605 $as_echo_n "(cached) " >&6
13606else
13607 rm -f .libs 2>/dev/null
13608mkdir .libs 2>/dev/null
13609if test -d .libs; then
13610 lt_cv_objdir=.libs
13611else
13612 # MS-DOS does not allow filenames that begin with a dot.
13613 lt_cv_objdir=_libs
13614fi
13615rmdir .libs 2>/dev/null
13616fi
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13618$as_echo "$lt_cv_objdir" >&6; }
13619objdir=$lt_cv_objdir
13620
13621
13622
13623
13624
13625cat >>confdefs.h <<_ACEOF
13626#define LT_OBJDIR "$lt_cv_objdir/"
13627_ACEOF
13628
13629
13630
13631
cristy73bd4a52010-10-05 11:24:23 +000013632case $host_os in
13633aix3*)
13634 # AIX sometimes has problems with the GCC collect2 program. For some
13635 # reason, if we set the COLLECT_NAMES environment variable, the problems
13636 # vanish in a puff of smoke.
13637 if test "X${COLLECT_NAMES+set}" != Xset; then
13638 COLLECT_NAMES=
13639 export COLLECT_NAMES
13640 fi
13641 ;;
13642esac
13643
cristy73bd4a52010-10-05 11:24:23 +000013644# Global variables:
13645ofile=libtool
13646can_build_shared=yes
13647
13648# All known linkers require a `.a' archive for static linking (except MSVC,
13649# which needs '.lib').
13650libext=a
13651
13652with_gnu_ld="$lt_cv_prog_gnu_ld"
13653
13654old_CC="$CC"
13655old_CFLAGS="$CFLAGS"
13656
13657# Set sane defaults for various variables
13658test -z "$CC" && CC=cc
13659test -z "$LTCC" && LTCC=$CC
13660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13661test -z "$LD" && LD=ld
13662test -z "$ac_objext" && ac_objext=o
13663
13664for cc_temp in $compiler""; do
13665 case $cc_temp in
13666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13668 \-*) ;;
13669 *) break;;
13670 esac
13671done
cristy0c60a692010-11-04 01:09:47 +000013672cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013673
13674
13675# Only perform the check for file, if the check method requires it
13676test -z "$MAGIC_CMD" && MAGIC_CMD=file
13677case $deplibs_check_method in
13678file_magic*)
13679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13681$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013682if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013683 $as_echo_n "(cached) " >&6
13684else
13685 case $MAGIC_CMD in
13686[\\/*] | ?:[\\/]*)
13687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13688 ;;
13689*)
13690 lt_save_MAGIC_CMD="$MAGIC_CMD"
13691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13693 for ac_dir in $ac_dummy; do
13694 IFS="$lt_save_ifs"
13695 test -z "$ac_dir" && ac_dir=.
13696 if test -f $ac_dir/${ac_tool_prefix}file; then
13697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13698 if test -n "$file_magic_test_file"; then
13699 case $deplibs_check_method in
13700 "file_magic "*)
13701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13704 $EGREP "$file_magic_regex" > /dev/null; then
13705 :
13706 else
13707 cat <<_LT_EOF 1>&2
13708
13709*** Warning: the command libtool uses to detect shared libraries,
13710*** $file_magic_cmd, produces output that libtool cannot recognize.
13711*** The result is that libtool may fail to recognize shared libraries
13712*** as such. This will affect the creation of libtool libraries that
13713*** depend on shared libraries, but programs linked with such libtool
13714*** libraries will work regardless of this problem. Nevertheless, you
13715*** may want to report the problem to your system manager and/or to
13716*** bug-libtool@gnu.org
13717
13718_LT_EOF
13719 fi ;;
13720 esac
13721 fi
13722 break
13723 fi
13724 done
13725 IFS="$lt_save_ifs"
13726 MAGIC_CMD="$lt_save_MAGIC_CMD"
13727 ;;
13728esac
13729fi
13730
13731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13732if test -n "$MAGIC_CMD"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13734$as_echo "$MAGIC_CMD" >&6; }
13735else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
13738fi
13739
13740
13741
13742
13743
13744if test -z "$lt_cv_path_MAGIC_CMD"; then
13745 if test -n "$ac_tool_prefix"; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13747$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013748if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013749 $as_echo_n "(cached) " >&6
13750else
13751 case $MAGIC_CMD in
13752[\\/*] | ?:[\\/]*)
13753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13754 ;;
13755*)
13756 lt_save_MAGIC_CMD="$MAGIC_CMD"
13757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13759 for ac_dir in $ac_dummy; do
13760 IFS="$lt_save_ifs"
13761 test -z "$ac_dir" && ac_dir=.
13762 if test -f $ac_dir/file; then
13763 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13764 if test -n "$file_magic_test_file"; then
13765 case $deplibs_check_method in
13766 "file_magic "*)
13767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13770 $EGREP "$file_magic_regex" > /dev/null; then
13771 :
13772 else
13773 cat <<_LT_EOF 1>&2
13774
13775*** Warning: the command libtool uses to detect shared libraries,
13776*** $file_magic_cmd, produces output that libtool cannot recognize.
13777*** The result is that libtool may fail to recognize shared libraries
13778*** as such. This will affect the creation of libtool libraries that
13779*** depend on shared libraries, but programs linked with such libtool
13780*** libraries will work regardless of this problem. Nevertheless, you
13781*** may want to report the problem to your system manager and/or to
13782*** bug-libtool@gnu.org
13783
13784_LT_EOF
13785 fi ;;
13786 esac
13787 fi
13788 break
13789 fi
13790 done
13791 IFS="$lt_save_ifs"
13792 MAGIC_CMD="$lt_save_MAGIC_CMD"
13793 ;;
13794esac
13795fi
13796
13797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13798if test -n "$MAGIC_CMD"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13800$as_echo "$MAGIC_CMD" >&6; }
13801else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803$as_echo "no" >&6; }
13804fi
13805
13806
13807 else
13808 MAGIC_CMD=:
13809 fi
13810fi
13811
13812 fi
13813 ;;
13814esac
13815
13816# Use C for the default configuration in the libtool script
13817
13818lt_save_CC="$CC"
13819ac_ext=c
13820ac_cpp='$CPP $CPPFLAGS'
13821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823ac_compiler_gnu=$ac_cv_c_compiler_gnu
13824
13825
13826# Source file extension for C test sources.
13827ac_ext=c
13828
13829# Object file extension for compiled C test sources.
13830objext=o
13831objext=$objext
13832
13833# Code to be used in simple compile tests
13834lt_simple_compile_test_code="int some_variable = 0;"
13835
13836# Code to be used in simple link tests
13837lt_simple_link_test_code='int main(){return(0);}'
13838
13839
13840
13841
13842
13843
13844
13845# If no C compiler was specified, use CC.
13846LTCC=${LTCC-"$CC"}
13847
13848# If no C compiler flags were specified, use CFLAGS.
13849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13850
13851# Allow CC to be a program name with arguments.
13852compiler=$CC
13853
13854# Save the default compiler, since it gets overwritten when the other
13855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13856compiler_DEFAULT=$CC
13857
13858# save warnings/boilerplate of simple test code
13859ac_outfile=conftest.$ac_objext
13860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13862_lt_compiler_boilerplate=`cat conftest.err`
13863$RM conftest*
13864
13865ac_outfile=conftest.$ac_objext
13866echo "$lt_simple_link_test_code" >conftest.$ac_ext
13867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13868_lt_linker_boilerplate=`cat conftest.err`
13869$RM -r conftest*
13870
13871
13872## CAVEAT EMPTOR:
13873## There is no encapsulation within the following macros, do not change
13874## the running order or otherwise move them around unless you know exactly
13875## what you are doing...
13876if test -n "$compiler"; then
13877
13878lt_prog_compiler_no_builtin_flag=
13879
13880if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013881 case $cc_basename in
13882 nvcc*)
13883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13884 *)
13885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13886 esac
cristy73bd4a52010-10-05 11:24:23 +000013887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13889$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013890if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013891 $as_echo_n "(cached) " >&6
13892else
13893 lt_cv_prog_compiler_rtti_exceptions=no
13894 ac_outfile=conftest.$ac_objext
13895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13896 lt_compiler_flag="-fno-rtti -fno-exceptions"
13897 # Insert the option either (1) after the last *FLAGS variable, or
13898 # (2) before a word containing "conftest.", or (3) at the end.
13899 # Note that $ac_compile itself does not contain backslashes and begins
13900 # with a dollar sign (not a hyphen), so the echo should work correctly.
13901 # The option is referenced via a variable to avoid confusing sed.
13902 lt_compile=`echo "$ac_compile" | $SED \
13903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13905 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013907 (eval "$lt_compile" 2>conftest.err)
13908 ac_status=$?
13909 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013911 if (exit $ac_status) && test -s "$ac_outfile"; then
13912 # The compiler can only warn and ignore the option if not recognized
13913 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13917 lt_cv_prog_compiler_rtti_exceptions=yes
13918 fi
13919 fi
13920 $RM conftest*
13921
13922fi
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13924$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13925
13926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13928else
13929 :
13930fi
13931
13932fi
13933
13934
13935
13936
13937
13938
13939 lt_prog_compiler_wl=
13940lt_prog_compiler_pic=
13941lt_prog_compiler_static=
13942
cristy73bd4a52010-10-05 11:24:23 +000013943
13944 if test "$GCC" = yes; then
13945 lt_prog_compiler_wl='-Wl,'
13946 lt_prog_compiler_static='-static'
13947
13948 case $host_os in
13949 aix*)
13950 # All AIX code is PIC.
13951 if test "$host_cpu" = ia64; then
13952 # AIX 5 now supports IA64 processor
13953 lt_prog_compiler_static='-Bstatic'
13954 fi
13955 ;;
13956
13957 amigaos*)
13958 case $host_cpu in
13959 powerpc)
13960 # see comment about AmigaOS4 .so support
13961 lt_prog_compiler_pic='-fPIC'
13962 ;;
13963 m68k)
13964 # FIXME: we need at least 68020 code to build shared libraries, but
13965 # adding the `-m68020' flag to GCC prevents building anything better,
13966 # like `-m68040'.
13967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13968 ;;
13969 esac
13970 ;;
13971
13972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13973 # PIC is the default for these OSes.
13974 ;;
13975
13976 mingw* | cygwin* | pw32* | os2* | cegcc*)
13977 # This hack is so that the source file can tell whether it is being
13978 # built for inclusion in a dll (and should export symbols for example).
13979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13980 # (--disable-auto-import) libraries
13981 lt_prog_compiler_pic='-DDLL_EXPORT'
13982 ;;
13983
13984 darwin* | rhapsody*)
13985 # PIC is the default on this platform
13986 # Common symbols not allowed in MH_DYLIB files
13987 lt_prog_compiler_pic='-fno-common'
13988 ;;
13989
cristy0c60a692010-11-04 01:09:47 +000013990 haiku*)
13991 # PIC is the default for Haiku.
13992 # The "-static" flag exists, but is broken.
13993 lt_prog_compiler_static=
13994 ;;
13995
cristy73bd4a52010-10-05 11:24:23 +000013996 hpux*)
13997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13999 # sets the default TLS model and affects inlining.
14000 case $host_cpu in
14001 hppa*64*)
14002 # +Z the default
14003 ;;
14004 *)
14005 lt_prog_compiler_pic='-fPIC'
14006 ;;
14007 esac
14008 ;;
14009
14010 interix[3-9]*)
14011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14012 # Instead, we relocate shared libraries at runtime.
14013 ;;
14014
14015 msdosdjgpp*)
14016 # Just because we use GCC doesn't mean we suddenly get shared libraries
14017 # on systems that don't support them.
14018 lt_prog_compiler_can_build_shared=no
14019 enable_shared=no
14020 ;;
14021
14022 *nto* | *qnx*)
14023 # QNX uses GNU C++, but need to define -shared option too, otherwise
14024 # it will coredump.
14025 lt_prog_compiler_pic='-fPIC -shared'
14026 ;;
14027
14028 sysv4*MP*)
14029 if test -d /usr/nec; then
14030 lt_prog_compiler_pic=-Kconform_pic
14031 fi
14032 ;;
14033
14034 *)
14035 lt_prog_compiler_pic='-fPIC'
14036 ;;
14037 esac
cristy0c60a692010-11-04 01:09:47 +000014038
14039 case $cc_basename in
14040 nvcc*) # Cuda Compiler Driver 2.2
14041 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014042 if test -n "$lt_prog_compiler_pic"; then
14043 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14044 fi
cristy0c60a692010-11-04 01:09:47 +000014045 ;;
14046 esac
cristy73bd4a52010-10-05 11:24:23 +000014047 else
14048 # PORTME Check for flag to pass linker flags through the system compiler.
14049 case $host_os in
14050 aix*)
14051 lt_prog_compiler_wl='-Wl,'
14052 if test "$host_cpu" = ia64; then
14053 # AIX 5 now supports IA64 processor
14054 lt_prog_compiler_static='-Bstatic'
14055 else
14056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14057 fi
14058 ;;
14059
14060 mingw* | cygwin* | pw32* | os2* | cegcc*)
14061 # This hack is so that the source file can tell whether it is being
14062 # built for inclusion in a dll (and should export symbols for example).
14063 lt_prog_compiler_pic='-DDLL_EXPORT'
14064 ;;
14065
14066 hpux9* | hpux10* | hpux11*)
14067 lt_prog_compiler_wl='-Wl,'
14068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14069 # not for PA HP-UX.
14070 case $host_cpu in
14071 hppa*64*|ia64*)
14072 # +Z the default
14073 ;;
14074 *)
14075 lt_prog_compiler_pic='+Z'
14076 ;;
14077 esac
14078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14079 lt_prog_compiler_static='${wl}-a ${wl}archive'
14080 ;;
14081
14082 irix5* | irix6* | nonstopux*)
14083 lt_prog_compiler_wl='-Wl,'
14084 # PIC (with -KPIC) is the default.
14085 lt_prog_compiler_static='-non_shared'
14086 ;;
14087
cristy0c60a692010-11-04 01:09:47 +000014088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014089 case $cc_basename in
14090 # old Intel for x86_64 which still supported -KPIC.
14091 ecc*)
14092 lt_prog_compiler_wl='-Wl,'
14093 lt_prog_compiler_pic='-KPIC'
14094 lt_prog_compiler_static='-static'
14095 ;;
14096 # icc used to be incompatible with GCC.
14097 # ICC 10 doesn't accept -KPIC any more.
14098 icc* | ifort*)
14099 lt_prog_compiler_wl='-Wl,'
14100 lt_prog_compiler_pic='-fPIC'
14101 lt_prog_compiler_static='-static'
14102 ;;
14103 # Lahey Fortran 8.1.
14104 lf95*)
14105 lt_prog_compiler_wl='-Wl,'
14106 lt_prog_compiler_pic='--shared'
14107 lt_prog_compiler_static='--static'
14108 ;;
cristyda16f162011-02-19 23:52:17 +000014109 nagfor*)
14110 # NAG Fortran compiler
14111 lt_prog_compiler_wl='-Wl,-Wl,,'
14112 lt_prog_compiler_pic='-PIC'
14113 lt_prog_compiler_static='-Bstatic'
14114 ;;
cristy0c60a692010-11-04 01:09:47 +000014115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014116 # Portland Group compilers (*not* the Pentium gcc compiler,
14117 # which looks to be a dead project)
14118 lt_prog_compiler_wl='-Wl,'
14119 lt_prog_compiler_pic='-fpic'
14120 lt_prog_compiler_static='-Bstatic'
14121 ;;
14122 ccc*)
14123 lt_prog_compiler_wl='-Wl,'
14124 # All Alpha code is PIC.
14125 lt_prog_compiler_static='-non_shared'
14126 ;;
cristy0c60a692010-11-04 01:09:47 +000014127 xl* | bgxl* | bgf* | mpixl*)
14128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014129 lt_prog_compiler_wl='-Wl,'
14130 lt_prog_compiler_pic='-qpic'
14131 lt_prog_compiler_static='-qstaticlink'
14132 ;;
14133 *)
14134 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014135 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014136 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14137 lt_prog_compiler_pic='-KPIC'
14138 lt_prog_compiler_static='-Bstatic'
14139 lt_prog_compiler_wl=''
14140 ;;
cristy99bd5232011-12-07 14:38:20 +000014141 *Sun\ F* | *Sun*Fortran*)
14142 lt_prog_compiler_pic='-KPIC'
14143 lt_prog_compiler_static='-Bstatic'
14144 lt_prog_compiler_wl='-Qoption ld '
14145 ;;
cristy73bd4a52010-10-05 11:24:23 +000014146 *Sun\ C*)
14147 # Sun C 5.9
14148 lt_prog_compiler_pic='-KPIC'
14149 lt_prog_compiler_static='-Bstatic'
14150 lt_prog_compiler_wl='-Wl,'
14151 ;;
cristy99bd5232011-12-07 14:38:20 +000014152 *Intel*\ [CF]*Compiler*)
14153 lt_prog_compiler_wl='-Wl,'
14154 lt_prog_compiler_pic='-fPIC'
14155 lt_prog_compiler_static='-static'
14156 ;;
14157 *Portland\ Group*)
14158 lt_prog_compiler_wl='-Wl,'
14159 lt_prog_compiler_pic='-fpic'
14160 lt_prog_compiler_static='-Bstatic'
14161 ;;
cristy73bd4a52010-10-05 11:24:23 +000014162 esac
14163 ;;
14164 esac
14165 ;;
14166
14167 newsos6)
14168 lt_prog_compiler_pic='-KPIC'
14169 lt_prog_compiler_static='-Bstatic'
14170 ;;
14171
14172 *nto* | *qnx*)
14173 # QNX uses GNU C++, but need to define -shared option too, otherwise
14174 # it will coredump.
14175 lt_prog_compiler_pic='-fPIC -shared'
14176 ;;
14177
14178 osf3* | osf4* | osf5*)
14179 lt_prog_compiler_wl='-Wl,'
14180 # All OSF/1 code is PIC.
14181 lt_prog_compiler_static='-non_shared'
14182 ;;
14183
14184 rdos*)
14185 lt_prog_compiler_static='-non_shared'
14186 ;;
14187
14188 solaris*)
14189 lt_prog_compiler_pic='-KPIC'
14190 lt_prog_compiler_static='-Bstatic'
14191 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014192 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014193 lt_prog_compiler_wl='-Qoption ld ';;
14194 *)
14195 lt_prog_compiler_wl='-Wl,';;
14196 esac
14197 ;;
14198
14199 sunos4*)
14200 lt_prog_compiler_wl='-Qoption ld '
14201 lt_prog_compiler_pic='-PIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 ;;
14204
14205 sysv4 | sysv4.2uw2* | sysv4.3*)
14206 lt_prog_compiler_wl='-Wl,'
14207 lt_prog_compiler_pic='-KPIC'
14208 lt_prog_compiler_static='-Bstatic'
14209 ;;
14210
14211 sysv4*MP*)
14212 if test -d /usr/nec ;then
14213 lt_prog_compiler_pic='-Kconform_pic'
14214 lt_prog_compiler_static='-Bstatic'
14215 fi
14216 ;;
14217
14218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14219 lt_prog_compiler_wl='-Wl,'
14220 lt_prog_compiler_pic='-KPIC'
14221 lt_prog_compiler_static='-Bstatic'
14222 ;;
14223
14224 unicos*)
14225 lt_prog_compiler_wl='-Wl,'
14226 lt_prog_compiler_can_build_shared=no
14227 ;;
14228
14229 uts4*)
14230 lt_prog_compiler_pic='-pic'
14231 lt_prog_compiler_static='-Bstatic'
14232 ;;
14233
14234 *)
14235 lt_prog_compiler_can_build_shared=no
14236 ;;
14237 esac
14238 fi
14239
14240case $host_os in
14241 # For platforms which do not support PIC, -DPIC is meaningless:
14242 *djgpp*)
14243 lt_prog_compiler_pic=
14244 ;;
14245 *)
14246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14247 ;;
14248esac
cristy73bd4a52010-10-05 11:24:23 +000014249
cristyda16f162011-02-19 23:52:17 +000014250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14251$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14252if ${lt_cv_prog_compiler_pic+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254else
14255 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14258$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14259lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014260
14261#
14262# Check to make sure the PIC flag actually works.
14263#
14264if test -n "$lt_prog_compiler_pic"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14266$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014267if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014268 $as_echo_n "(cached) " >&6
14269else
14270 lt_cv_prog_compiler_pic_works=no
14271 ac_outfile=conftest.$ac_objext
14272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14273 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14274 # Insert the option either (1) after the last *FLAGS variable, or
14275 # (2) before a word containing "conftest.", or (3) at the end.
14276 # Note that $ac_compile itself does not contain backslashes and begins
14277 # with a dollar sign (not a hyphen), so the echo should work correctly.
14278 # The option is referenced via a variable to avoid confusing sed.
14279 lt_compile=`echo "$ac_compile" | $SED \
14280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14282 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014284 (eval "$lt_compile" 2>conftest.err)
14285 ac_status=$?
14286 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014288 if (exit $ac_status) && test -s "$ac_outfile"; then
14289 # The compiler can only warn and ignore the option if not recognized
14290 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14294 lt_cv_prog_compiler_pic_works=yes
14295 fi
14296 fi
14297 $RM conftest*
14298
14299fi
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14301$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14302
14303if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14304 case $lt_prog_compiler_pic in
14305 "" | " "*) ;;
14306 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14307 esac
14308else
14309 lt_prog_compiler_pic=
14310 lt_prog_compiler_can_build_shared=no
14311fi
14312
14313fi
14314
14315
14316
14317
14318
14319
cristyda16f162011-02-19 23:52:17 +000014320
14321
14322
14323
14324
cristy73bd4a52010-10-05 11:24:23 +000014325#
14326# Check to make sure the static flag actually works.
14327#
14328wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14330$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014331if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014332 $as_echo_n "(cached) " >&6
14333else
14334 lt_cv_prog_compiler_static_works=no
14335 save_LDFLAGS="$LDFLAGS"
14336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14337 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14339 # The linker can only warn and ignore the option if not recognized
14340 # So say no if there are warnings
14341 if test -s conftest.err; then
14342 # Append any errors to the config.log.
14343 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014344 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14346 if diff conftest.exp conftest.er2 >/dev/null; then
14347 lt_cv_prog_compiler_static_works=yes
14348 fi
14349 else
14350 lt_cv_prog_compiler_static_works=yes
14351 fi
14352 fi
14353 $RM -r conftest*
14354 LDFLAGS="$save_LDFLAGS"
14355
14356fi
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14358$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14359
14360if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14361 :
14362else
14363 lt_prog_compiler_static=
14364fi
14365
14366
14367
14368
14369
14370
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014374if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014375 $as_echo_n "(cached) " >&6
14376else
14377 lt_cv_prog_compiler_c_o=no
14378 $RM -r conftest 2>/dev/null
14379 mkdir conftest
14380 cd conftest
14381 mkdir out
14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14383
14384 lt_compiler_flag="-o out/conftest2.$ac_objext"
14385 # Insert the option either (1) after the last *FLAGS variable, or
14386 # (2) before a word containing "conftest.", or (3) at the end.
14387 # Note that $ac_compile itself does not contain backslashes and begins
14388 # with a dollar sign (not a hyphen), so the echo should work correctly.
14389 lt_compile=`echo "$ac_compile" | $SED \
14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14392 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014394 (eval "$lt_compile" 2>out/conftest.err)
14395 ac_status=$?
14396 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14399 then
14400 # The compiler can only warn and ignore the option if not recognized
14401 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14405 lt_cv_prog_compiler_c_o=yes
14406 fi
14407 fi
14408 chmod u+w . 2>&5
14409 $RM conftest*
14410 # SGI C++ compiler will create directory out/ii_files/ for
14411 # template instantiation
14412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14413 $RM out/* && rmdir out
14414 cd ..
14415 $RM -r conftest
14416 $RM conftest*
14417
14418fi
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14420$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14421
14422
14423
14424
14425
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14428$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014429if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014430 $as_echo_n "(cached) " >&6
14431else
14432 lt_cv_prog_compiler_c_o=no
14433 $RM -r conftest 2>/dev/null
14434 mkdir conftest
14435 cd conftest
14436 mkdir out
14437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438
14439 lt_compiler_flag="-o out/conftest2.$ac_objext"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 lt_compile=`echo "$ac_compile" | $SED \
14445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014449 (eval "$lt_compile" 2>out/conftest.err)
14450 ac_status=$?
14451 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14454 then
14455 # The compiler can only warn and ignore the option if not recognized
14456 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_c_o=yes
14461 fi
14462 fi
14463 chmod u+w . 2>&5
14464 $RM conftest*
14465 # SGI C++ compiler will create directory out/ii_files/ for
14466 # template instantiation
14467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14468 $RM out/* && rmdir out
14469 cd ..
14470 $RM -r conftest
14471 $RM conftest*
14472
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14475$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14476
14477
14478
14479
14480hard_links="nottested"
14481if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14482 # do not overwrite the value of need_locks provided by the user
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14484$as_echo_n "checking if we can lock with hard links... " >&6; }
14485 hard_links=yes
14486 $RM conftest*
14487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14488 touch conftest.a
14489 ln conftest.a conftest.b 2>&5 || hard_links=no
14490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14492$as_echo "$hard_links" >&6; }
14493 if test "$hard_links" = no; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14495$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14496 need_locks=warn
14497 fi
14498else
14499 need_locks=no
14500fi
14501
14502
14503
14504
14505
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14508$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14509
14510 runpath_var=
14511 allow_undefined_flag=
14512 always_export_symbols=no
14513 archive_cmds=
14514 archive_expsym_cmds=
14515 compiler_needs_object=no
14516 enable_shared_with_static_runtimes=no
14517 export_dynamic_flag_spec=
14518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14519 hardcode_automatic=no
14520 hardcode_direct=no
14521 hardcode_direct_absolute=no
14522 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014523 hardcode_libdir_separator=
14524 hardcode_minus_L=no
14525 hardcode_shlibpath_var=unsupported
14526 inherit_rpath=no
14527 link_all_deplibs=unknown
14528 module_cmds=
14529 module_expsym_cmds=
14530 old_archive_from_new_cmds=
14531 old_archive_from_expsyms_cmds=
14532 thread_safe_flag_spec=
14533 whole_archive_flag_spec=
14534 # include_expsyms should be a list of space-separated symbols to be *always*
14535 # included in the symbol list
14536 include_expsyms=
14537 # exclude_expsyms can be an extended regexp of symbols to exclude
14538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14540 # as well as any symbol that contains `d'.
14541 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14543 # platforms (ab)use it in PIC code, but their linkers get confused if
14544 # the symbol is explicitly referenced. Since portable code cannot
14545 # rely on this symbol name, it's probably fine to never include it in
14546 # preloaded symbol tables.
14547 # Exclude shared library initialization/finalization symbols.
14548 extract_expsyms_cmds=
14549
14550 case $host_os in
14551 cygwin* | mingw* | pw32* | cegcc*)
14552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14553 # When not using gcc, we currently assume that we are using
14554 # Microsoft Visual C++.
14555 if test "$GCC" != yes; then
14556 with_gnu_ld=no
14557 fi
14558 ;;
14559 interix*)
14560 # we just hope/assume this is gcc and not c89 (= MSVC++)
14561 with_gnu_ld=yes
14562 ;;
14563 openbsd*)
14564 with_gnu_ld=no
14565 ;;
14566 esac
14567
14568 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014569
14570 # On some targets, GNU ld is compatible enough with the native linker
14571 # that we're better off using the native interface for both.
14572 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014573 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014574 case $host_os in
14575 aix*)
14576 # The AIX port of GNU ld has always aspired to compatibility
14577 # with the native linker. However, as the warning in the GNU ld
14578 # block says, versions before 2.19.5* couldn't really create working
14579 # shared libraries, regardless of the interface used.
14580 case `$LD -v 2>&1` in
14581 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14582 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14583 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14584 *)
14585 lt_use_gnu_ld_interface=yes
14586 ;;
14587 esac
14588 ;;
14589 *)
14590 lt_use_gnu_ld_interface=yes
14591 ;;
14592 esac
14593 fi
14594
14595 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014596 # If archive_cmds runs LD, not CC, wlarc should be empty
14597 wlarc='${wl}'
14598
14599 # Set some defaults for GNU ld with shared library support. These
14600 # are reset later if shared libraries are not supported. Putting them
14601 # here allows them to be overridden if necessary.
14602 runpath_var=LD_RUN_PATH
14603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14604 export_dynamic_flag_spec='${wl}--export-dynamic'
14605 # ancient GNU ld didn't support --whole-archive et. al.
14606 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14607 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14608 else
14609 whole_archive_flag_spec=
14610 fi
14611 supports_anon_versioning=no
14612 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014613 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14617 *\ 2.11.*) ;; # other 2.11 versions
14618 *) supports_anon_versioning=yes ;;
14619 esac
14620
14621 # See if GNU ld supports shared libraries.
14622 case $host_os in
14623 aix[3-9]*)
14624 # On AIX/PPC, the GNU linker is very broken
14625 if test "$host_cpu" != ia64; then
14626 ld_shlibs=no
14627 cat <<_LT_EOF 1>&2
14628
cristy0c60a692010-11-04 01:09:47 +000014629*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014630*** to be unable to reliably create shared libraries on AIX.
14631*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014632*** really care for shared libraries, you may want to install binutils
14633*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14634*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014635
14636_LT_EOF
14637 fi
14638 ;;
14639
14640 amigaos*)
14641 case $host_cpu in
14642 powerpc)
14643 # see comment about AmigaOS4 .so support
14644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645 archive_expsym_cmds=''
14646 ;;
14647 m68k)
14648 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)'
14649 hardcode_libdir_flag_spec='-L$libdir'
14650 hardcode_minus_L=yes
14651 ;;
14652 esac
14653 ;;
14654
14655 beos*)
14656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14657 allow_undefined_flag=unsupported
14658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14659 # support --undefined. This deserves some investigation. FIXME
14660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14661 else
14662 ld_shlibs=no
14663 fi
14664 ;;
14665
14666 cygwin* | mingw* | pw32* | cegcc*)
14667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14668 # as there is no search path for DLLs.
14669 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014670 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014671 allow_undefined_flag=unsupported
14672 always_export_symbols=no
14673 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014674 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'
14675 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 +000014676
14677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14679 # If the export-symbols file already is a .def file (1st line
14680 # is EXPORTS), use it as is; otherwise, prepend...
14681 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14682 cp $export_symbols $output_objdir/$soname.def;
14683 else
14684 echo EXPORTS > $output_objdir/$soname.def;
14685 cat $export_symbols >> $output_objdir/$soname.def;
14686 fi~
14687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14688 else
14689 ld_shlibs=no
14690 fi
14691 ;;
14692
cristy0c60a692010-11-04 01:09:47 +000014693 haiku*)
14694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695 link_all_deplibs=yes
14696 ;;
14697
cristy73bd4a52010-10-05 11:24:23 +000014698 interix[3-9]*)
14699 hardcode_direct=no
14700 hardcode_shlibpath_var=no
14701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14702 export_dynamic_flag_spec='${wl}-E'
14703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14704 # Instead, shared libraries are loaded at an image base (0x10000000 by
14705 # default) and relocated if they conflict, which is a slow very memory
14706 # consuming and fragmenting process. To avoid this, we pick a random,
14707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14710 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'
14711 ;;
14712
cristy0c60a692010-11-04 01:09:47 +000014713 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014714 tmp_diet=no
14715 if test "$host_os" = linux-dietlibc; then
14716 case $cc_basename in
14717 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14718 esac
14719 fi
14720 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14721 && test "$tmp_diet" = no
14722 then
cristyda16f162011-02-19 23:52:17 +000014723 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014724 tmp_sharedflag='-shared'
14725 case $cc_basename,$host_cpu in
14726 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014727 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 +000014728 tmp_addflag=' $pic_flag'
14729 ;;
cristy0c60a692010-11-04 01:09:47 +000014730 pgf77* | pgf90* | pgf95* | pgfortran*)
14731 # Portland Group f77 and f90 compilers
14732 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 +000014733 tmp_addflag=' $pic_flag -Mnomain' ;;
14734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14735 tmp_addflag=' -i_dynamic' ;;
14736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14737 tmp_addflag=' -i_dynamic -nofor_main' ;;
14738 ifc* | ifort*) # Intel Fortran compiler
14739 tmp_addflag=' -nofor_main' ;;
14740 lf95*) # Lahey Fortran 8.1
14741 whole_archive_flag_spec=
14742 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014743 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014744 tmp_sharedflag='-qmkshrobj'
14745 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014746 nvcc*) # Cuda Compiler Driver 2.2
14747 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'
14748 compiler_needs_object=yes
14749 ;;
cristy73bd4a52010-10-05 11:24:23 +000014750 esac
14751 case `$CC -V 2>&1 | sed 5q` in
14752 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014753 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 +000014754 compiler_needs_object=yes
14755 tmp_sharedflag='-G' ;;
14756 *Sun\ F*) # Sun Fortran 8.3
14757 tmp_sharedflag='-G' ;;
14758 esac
14759 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14760
14761 if test "x$supports_anon_versioning" = xyes; then
14762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14764 echo "local: *; };" >> $output_objdir/$libname.ver~
14765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14766 fi
14767
14768 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014769 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014770 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14771 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014773 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014774 if test "x$supports_anon_versioning" = xyes; then
14775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14777 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014778 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014779 fi
14780 ;;
14781 esac
14782 else
14783 ld_shlibs=no
14784 fi
14785 ;;
14786
14787 netbsd*)
14788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14790 wlarc=
14791 else
cristyda16f162011-02-19 23:52:17 +000014792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793 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 +000014794 fi
14795 ;;
14796
14797 solaris*)
14798 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14799 ld_shlibs=no
14800 cat <<_LT_EOF 1>&2
14801
14802*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14803*** create shared libraries on Solaris systems. Therefore, libtool
14804*** is disabling shared libraries support. We urge you to upgrade GNU
14805*** binutils to release 2.9.1 or newer. Another option is to modify
14806*** your PATH or compiler configuration so that the native linker is
14807*** used, and then restart.
14808
14809_LT_EOF
14810 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812 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 +000014813 else
14814 ld_shlibs=no
14815 fi
14816 ;;
14817
14818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14819 case `$LD -v 2>&1` in
14820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14821 ld_shlibs=no
14822 cat <<_LT_EOF 1>&2
14823
14824*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14825*** reliably create shared libraries on SCO systems. Therefore, libtool
14826*** is disabling shared libraries support. We urge you to upgrade GNU
14827*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14828*** your PATH or compiler configuration so that the native linker is
14829*** used, and then restart.
14830
14831_LT_EOF
14832 ;;
14833 *)
14834 # For security reasons, it is highly recommended that you always
14835 # use absolute paths for naming shared libraries, and exclude the
14836 # DT_RUNPATH tag from executables and libraries. But doing so
14837 # requires that you compile everything twice, which is a pain.
14838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842 else
14843 ld_shlibs=no
14844 fi
14845 ;;
14846 esac
14847 ;;
14848
14849 sunos4*)
14850 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14851 wlarc=
14852 hardcode_direct=yes
14853 hardcode_shlibpath_var=no
14854 ;;
14855
14856 *)
14857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859 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 +000014860 else
14861 ld_shlibs=no
14862 fi
14863 ;;
14864 esac
14865
14866 if test "$ld_shlibs" = no; then
14867 runpath_var=
14868 hardcode_libdir_flag_spec=
14869 export_dynamic_flag_spec=
14870 whole_archive_flag_spec=
14871 fi
14872 else
14873 # PORTME fill in a description of your system's linker (not GNU ld)
14874 case $host_os in
14875 aix3*)
14876 allow_undefined_flag=unsupported
14877 always_export_symbols=yes
14878 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'
14879 # Note: this linker hardcodes the directories in LIBPATH if there
14880 # are no directories specified by -L.
14881 hardcode_minus_L=yes
14882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14883 # Neither direct hardcoding nor static linking is supported with a
14884 # broken collect2.
14885 hardcode_direct=unsupported
14886 fi
14887 ;;
14888
14889 aix[4-9]*)
14890 if test "$host_cpu" = ia64; then
14891 # On IA64, the linker does run time linking by default, so we don't
14892 # have to do anything special.
14893 aix_use_runtimelinking=no
14894 exp_sym_flag='-Bexport'
14895 no_entry_flag=""
14896 else
14897 # If we're using GNU nm, then we don't want the "-C" option.
14898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014899 # Also, AIX nm treats weak defined symbols like other global
14900 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014901 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014902 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 +000014903 else
14904 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'
14905 fi
14906 aix_use_runtimelinking=no
14907
14908 # Test if we are trying to use run time linking or normal
14909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14910 # need to do runtime linking.
14911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14912 for ld_flag in $LDFLAGS; do
14913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14914 aix_use_runtimelinking=yes
14915 break
14916 fi
14917 done
14918 ;;
14919 esac
14920
14921 exp_sym_flag='-bexport'
14922 no_entry_flag='-bnoentry'
14923 fi
14924
14925 # When large executables or shared objects are built, AIX ld can
14926 # have problems creating the table of contents. If linking a library
14927 # or program results in "error TOC overflow" add -mminimal-toc to
14928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14930
14931 archive_cmds=''
14932 hardcode_direct=yes
14933 hardcode_direct_absolute=yes
14934 hardcode_libdir_separator=':'
14935 link_all_deplibs=yes
14936 file_list_spec='${wl}-f,'
14937
14938 if test "$GCC" = yes; then
14939 case $host_os in aix4.[012]|aix4.[012].*)
14940 # We only want to do this on AIX 4.2 and lower, the check
14941 # below for broken collect2 doesn't work under 4.3+
14942 collect2name=`${CC} -print-prog-name=collect2`
14943 if test -f "$collect2name" &&
14944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14945 then
14946 # We have reworked collect2
14947 :
14948 else
14949 # We have old collect2
14950 hardcode_direct=unsupported
14951 # It fails to find uninstalled libraries when the uninstalled
14952 # path is not listed in the libpath. Setting hardcode_minus_L
14953 # to unsupported forces relinking
14954 hardcode_minus_L=yes
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 hardcode_libdir_separator=
14957 fi
14958 ;;
14959 esac
14960 shared_flag='-shared'
14961 if test "$aix_use_runtimelinking" = yes; then
14962 shared_flag="$shared_flag "'${wl}-G'
14963 fi
14964 else
14965 # not using gcc
14966 if test "$host_cpu" = ia64; then
14967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968 # chokes on -Wl,-G. The following line is correct:
14969 shared_flag='-G'
14970 else
14971 if test "$aix_use_runtimelinking" = yes; then
14972 shared_flag='${wl}-G'
14973 else
14974 shared_flag='${wl}-bM:SRE'
14975 fi
14976 fi
14977 fi
14978
14979 export_dynamic_flag_spec='${wl}-bexpall'
14980 # It seems that -bexpall does not export symbols beginning with
14981 # underscore (_), so it is better to generate a list of symbols to export.
14982 always_export_symbols=yes
14983 if test "$aix_use_runtimelinking" = yes; then
14984 # Warning - without using the other runtime loading flags (-brtl),
14985 # -berok will link without error, but may produce a broken library.
14986 allow_undefined_flag='-berok'
14987 # Determine the default libpath from the value encoded in an
14988 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014989 if test "${lt_cv_aix_libpath+set}" = set; then
14990 aix_libpath=$lt_cv_aix_libpath
14991else
14992 if ${lt_cv_aix_libpath_+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994else
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014996/* end confdefs.h. */
14997
14998int
14999main ()
15000{
15001
15002 ;
15003 return 0;
15004}
15005_ACEOF
15006if ac_fn_c_try_link "$LINENO"; then :
15007
cristyda16f162011-02-19 23:52:17 +000015008 lt_aix_libpath_sed='
15009 /Import File Strings/,/^$/ {
15010 /^0/ {
15011 s/^0 *\([^ ]*\) *$/\1/
15012 p
15013 }
15014 }'
15015 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15016 # Check for a 64-bit object if we didn't find anything.
15017 if test -z "$lt_cv_aix_libpath_"; then
15018 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15019 fi
cristy73bd4a52010-10-05 11:24:23 +000015020fi
15021rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015023 if test -z "$lt_cv_aix_libpath_"; then
15024 lt_cv_aix_libpath_="/usr/lib:/lib"
15025 fi
15026
15027fi
15028
15029 aix_libpath=$lt_cv_aix_libpath_
15030fi
cristy73bd4a52010-10-05 11:24:23 +000015031
15032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015033 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 +000015034 else
15035 if test "$host_cpu" = ia64; then
15036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15037 allow_undefined_flag="-z nodefs"
15038 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"
15039 else
15040 # Determine the default libpath from the value encoded in an
15041 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015042 if test "${lt_cv_aix_libpath+set}" = set; then
15043 aix_libpath=$lt_cv_aix_libpath
15044else
15045 if ${lt_cv_aix_libpath_+:} false; then :
15046 $as_echo_n "(cached) " >&6
15047else
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015049/* end confdefs.h. */
15050
15051int
15052main ()
15053{
15054
15055 ;
15056 return 0;
15057}
15058_ACEOF
15059if ac_fn_c_try_link "$LINENO"; then :
15060
cristyda16f162011-02-19 23:52:17 +000015061 lt_aix_libpath_sed='
15062 /Import File Strings/,/^$/ {
15063 /^0/ {
15064 s/^0 *\([^ ]*\) *$/\1/
15065 p
15066 }
15067 }'
15068 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15069 # Check for a 64-bit object if we didn't find anything.
15070 if test -z "$lt_cv_aix_libpath_"; then
15071 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15072 fi
cristy73bd4a52010-10-05 11:24:23 +000015073fi
15074rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015076 if test -z "$lt_cv_aix_libpath_"; then
15077 lt_cv_aix_libpath_="/usr/lib:/lib"
15078 fi
15079
15080fi
15081
15082 aix_libpath=$lt_cv_aix_libpath_
15083fi
cristy73bd4a52010-10-05 11:24:23 +000015084
15085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15086 # Warning - without using the other run time loading flags,
15087 # -berok will link without error, but may produce a broken library.
15088 no_undefined_flag=' ${wl}-bernotok'
15089 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015090 if test "$with_gnu_ld" = yes; then
15091 # We only use this code for GNU lds that support --whole-archive.
15092 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15093 else
15094 # Exported symbols can be pulled into shared objects from archives
15095 whole_archive_flag_spec='$convenience'
15096 fi
cristy73bd4a52010-10-05 11:24:23 +000015097 archive_cmds_need_lc=yes
15098 # This is similar to how AIX traditionally builds its shared libraries.
15099 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'
15100 fi
15101 fi
15102 ;;
15103
15104 amigaos*)
15105 case $host_cpu in
15106 powerpc)
15107 # see comment about AmigaOS4 .so support
15108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109 archive_expsym_cmds=''
15110 ;;
15111 m68k)
15112 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)'
15113 hardcode_libdir_flag_spec='-L$libdir'
15114 hardcode_minus_L=yes
15115 ;;
15116 esac
15117 ;;
15118
15119 bsdi[45]*)
15120 export_dynamic_flag_spec=-rdynamic
15121 ;;
15122
15123 cygwin* | mingw* | pw32* | cegcc*)
15124 # When not using gcc, we currently assume that we are using
15125 # Microsoft Visual C++.
15126 # hardcode_libdir_flag_spec is actually meaningless, as there is
15127 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015128 case $cc_basename in
15129 cl*)
15130 # Native MSVC
15131 hardcode_libdir_flag_spec=' '
15132 allow_undefined_flag=unsupported
15133 always_export_symbols=yes
15134 file_list_spec='@'
15135 # Tell ltmain to make .lib files, not .a files.
15136 libext=lib
15137 # Tell ltmain to make .dll files, not .so files.
15138 shrext_cmds=".dll"
15139 # FIXME: Setting linknames here is a bad hack.
15140 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15142 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15143 else
15144 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15145 fi~
15146 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15147 linknames='
15148 # The linker will not automatically build a static lib if we build a DLL.
15149 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15150 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015151 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15153 # Don't use ranlib
15154 old_postinstall_cmds='chmod 644 $oldlib'
15155 postlink_cmds='lt_outputfile="@OUTPUT@"~
15156 lt_tool_outputfile="@TOOL_OUTPUT@"~
15157 case $lt_outputfile in
15158 *.exe|*.EXE) ;;
15159 *)
15160 lt_outputfile="$lt_outputfile.exe"
15161 lt_tool_outputfile="$lt_tool_outputfile.exe"
15162 ;;
15163 esac~
15164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15166 $RM "$lt_outputfile.manifest";
15167 fi'
15168 ;;
15169 *)
15170 # Assume MSVC wrapper
15171 hardcode_libdir_flag_spec=' '
15172 allow_undefined_flag=unsupported
15173 # Tell ltmain to make .lib files, not .a files.
15174 libext=lib
15175 # Tell ltmain to make .dll files, not .so files.
15176 shrext_cmds=".dll"
15177 # FIXME: Setting linknames here is a bad hack.
15178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15179 # The linker will automatically build a .lib file if we build a DLL.
15180 old_archive_from_new_cmds='true'
15181 # FIXME: Should let the user specify the lib program.
15182 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15183 enable_shared_with_static_runtimes=yes
15184 ;;
15185 esac
cristy73bd4a52010-10-05 11:24:23 +000015186 ;;
15187
15188 darwin* | rhapsody*)
15189
15190
15191 archive_cmds_need_lc=no
15192 hardcode_direct=no
15193 hardcode_automatic=yes
15194 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015195 if test "$lt_cv_ld_force_load" = "yes"; then
15196 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 +000015197
cristy0c60a692010-11-04 01:09:47 +000015198 else
15199 whole_archive_flag_spec=''
15200 fi
cristy73bd4a52010-10-05 11:24:23 +000015201 link_all_deplibs=yes
15202 allow_undefined_flag="$_lt_dar_allow_undefined"
15203 case $cc_basename in
15204 ifort*) _lt_dar_can_shared=yes ;;
15205 *) _lt_dar_can_shared=$GCC ;;
15206 esac
15207 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015208 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015209 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15210 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15211 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}"
15212 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}"
15213
15214 else
15215 ld_shlibs=no
15216 fi
15217
15218 ;;
15219
15220 dgux*)
15221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15222 hardcode_libdir_flag_spec='-L$libdir'
15223 hardcode_shlibpath_var=no
15224 ;;
15225
cristy73bd4a52010-10-05 11:24:23 +000015226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15227 # support. Future versions do this automatically, but an explicit c++rt0.o
15228 # does not break anything, and helps significantly (at the cost of a little
15229 # extra space).
15230 freebsd2.2*)
15231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15232 hardcode_libdir_flag_spec='-R$libdir'
15233 hardcode_direct=yes
15234 hardcode_shlibpath_var=no
15235 ;;
15236
15237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015238 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15240 hardcode_direct=yes
15241 hardcode_minus_L=yes
15242 hardcode_shlibpath_var=no
15243 ;;
15244
15245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15246 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015248 hardcode_libdir_flag_spec='-R$libdir'
15249 hardcode_direct=yes
15250 hardcode_shlibpath_var=no
15251 ;;
15252
15253 hpux9*)
15254 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015255 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 +000015256 else
15257 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'
15258 fi
15259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15260 hardcode_libdir_separator=:
15261 hardcode_direct=yes
15262
15263 # hardcode_minus_L: Not really in the search PATH,
15264 # but as the default location of the library.
15265 hardcode_minus_L=yes
15266 export_dynamic_flag_spec='${wl}-E'
15267 ;;
15268
15269 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015271 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 +000015272 else
15273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15274 fi
15275 if test "$with_gnu_ld" = no; then
15276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015277 hardcode_libdir_separator=:
15278 hardcode_direct=yes
15279 hardcode_direct_absolute=yes
15280 export_dynamic_flag_spec='${wl}-E'
15281 # hardcode_minus_L: Not really in the search PATH,
15282 # but as the default location of the library.
15283 hardcode_minus_L=yes
15284 fi
15285 ;;
15286
15287 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015288 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015289 case $host_cpu in
15290 hppa*64*)
15291 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15292 ;;
15293 ia64*)
cristyda16f162011-02-19 23:52:17 +000015294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015295 ;;
15296 *)
cristyda16f162011-02-19 23:52:17 +000015297 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 +000015298 ;;
15299 esac
15300 else
15301 case $host_cpu in
15302 hppa*64*)
15303 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15304 ;;
15305 ia64*)
15306 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15307 ;;
15308 *)
cristy0c60a692010-11-04 01:09:47 +000015309
15310 # Older versions of the 11.00 compiler do not understand -b yet
15311 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15313$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015314if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015315 $as_echo_n "(cached) " >&6
15316else
15317 lt_cv_prog_compiler__b=no
15318 save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="$LDFLAGS -b"
15320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15322 # The linker can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test -s conftest.err; then
15325 # Append any errors to the config.log.
15326 cat conftest.err 1>&5
15327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15329 if diff conftest.exp conftest.er2 >/dev/null; then
15330 lt_cv_prog_compiler__b=yes
15331 fi
15332 else
15333 lt_cv_prog_compiler__b=yes
15334 fi
15335 fi
15336 $RM -r conftest*
15337 LDFLAGS="$save_LDFLAGS"
15338
15339fi
15340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15341$as_echo "$lt_cv_prog_compiler__b" >&6; }
15342
15343if test x"$lt_cv_prog_compiler__b" = xyes; then
15344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345else
15346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15347fi
15348
cristy73bd4a52010-10-05 11:24:23 +000015349 ;;
15350 esac
15351 fi
15352 if test "$with_gnu_ld" = no; then
15353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354 hardcode_libdir_separator=:
15355
15356 case $host_cpu in
15357 hppa*64*|ia64*)
15358 hardcode_direct=no
15359 hardcode_shlibpath_var=no
15360 ;;
15361 *)
15362 hardcode_direct=yes
15363 hardcode_direct_absolute=yes
15364 export_dynamic_flag_spec='${wl}-E'
15365
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L=yes
15369 ;;
15370 esac
15371 fi
15372 ;;
15373
15374 irix5* | irix6* | nonstopux*)
15375 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015376 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 +000015377 # Try to use the -exported_symbol ld option, if it does not
15378 # work, assume that -exports_file does not work either and
15379 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015380 # This should be the same for all languages, so no per-tag cache variable.
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15382$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15383if ${lt_cv_irix_exported_symbol+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385else
15386 save_LDFLAGS="$LDFLAGS"
15387 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015389/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015390int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015391_ACEOF
15392if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015393 lt_cv_irix_exported_symbol=yes
15394else
15395 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015396fi
15397rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015399 LDFLAGS="$save_LDFLAGS"
15400fi
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15402$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15403 if test "$lt_cv_irix_exported_symbol" = yes; then
15404 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'
15405 fi
cristy73bd4a52010-10-05 11:24:23 +000015406 else
cristy0c60a692010-11-04 01:09:47 +000015407 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'
15408 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 +000015409 fi
15410 archive_cmds_need_lc='no'
15411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15412 hardcode_libdir_separator=:
15413 inherit_rpath=yes
15414 link_all_deplibs=yes
15415 ;;
15416
15417 netbsd*)
15418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15420 else
15421 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15422 fi
15423 hardcode_libdir_flag_spec='-R$libdir'
15424 hardcode_direct=yes
15425 hardcode_shlibpath_var=no
15426 ;;
15427
15428 newsos6)
15429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_direct=yes
15431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15432 hardcode_libdir_separator=:
15433 hardcode_shlibpath_var=no
15434 ;;
15435
15436 *nto* | *qnx*)
15437 ;;
15438
15439 openbsd*)
15440 if test -f /usr/libexec/ld.so; then
15441 hardcode_direct=yes
15442 hardcode_shlibpath_var=no
15443 hardcode_direct_absolute=yes
15444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15448 export_dynamic_flag_spec='${wl}-E'
15449 else
15450 case $host_os in
15451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_libdir_flag_spec='-R$libdir'
15454 ;;
15455 *)
15456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15458 ;;
15459 esac
15460 fi
15461 else
15462 ld_shlibs=no
15463 fi
15464 ;;
15465
15466 os2*)
15467 hardcode_libdir_flag_spec='-L$libdir'
15468 hardcode_minus_L=yes
15469 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015470 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 +000015471 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15472 ;;
15473
15474 osf3*)
15475 if test "$GCC" = yes; then
15476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015477 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 +000015478 else
15479 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015480 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 +000015481 fi
15482 archive_cmds_need_lc='no'
15483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15484 hardcode_libdir_separator=:
15485 ;;
15486
15487 osf4* | osf5*) # as osf3* with the addition of -msym flag
15488 if test "$GCC" = yes; then
15489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015490 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 +000015491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15492 else
15493 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015494 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 +000015495 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 +000015496 $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 +000015497
15498 # Both c and cxx compiler support -rpath directly
15499 hardcode_libdir_flag_spec='-rpath $libdir'
15500 fi
15501 archive_cmds_need_lc='no'
15502 hardcode_libdir_separator=:
15503 ;;
15504
15505 solaris*)
15506 no_undefined_flag=' -z defs'
15507 if test "$GCC" = yes; then
15508 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015509 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 +000015510 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 +000015511 $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 +000015512 else
15513 case `$CC -V 2>&1` in
15514 *"Compilers 5.0"*)
15515 wlarc=''
15516 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15518 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15519 ;;
15520 *)
15521 wlarc='${wl}'
15522 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15524 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15525 ;;
15526 esac
15527 fi
15528 hardcode_libdir_flag_spec='-R$libdir'
15529 hardcode_shlibpath_var=no
15530 case $host_os in
15531 solaris2.[0-5] | solaris2.[0-5].*) ;;
15532 *)
15533 # The compiler driver will combine and reorder linker options,
15534 # but understands `-z linker_flag'. GCC discards it without `$wl',
15535 # but is careful enough not to reorder.
15536 # Supported since Solaris 2.6 (maybe 2.5.1?)
15537 if test "$GCC" = yes; then
15538 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15539 else
15540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15541 fi
15542 ;;
15543 esac
15544 link_all_deplibs=yes
15545 ;;
15546
15547 sunos4*)
15548 if test "x$host_vendor" = xsequent; then
15549 # Use $CC to link under sequent, because it throws in some extra .o
15550 # files that make .init and .fini sections work.
15551 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15552 else
15553 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15554 fi
15555 hardcode_libdir_flag_spec='-L$libdir'
15556 hardcode_direct=yes
15557 hardcode_minus_L=yes
15558 hardcode_shlibpath_var=no
15559 ;;
15560
15561 sysv4)
15562 case $host_vendor in
15563 sni)
15564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_direct=yes # is this really true???
15566 ;;
15567 siemens)
15568 ## LD is ld it makes a PLAMLIB
15569 ## CC just makes a GrossModule.
15570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15571 reload_cmds='$CC -r -o $output$reload_objs'
15572 hardcode_direct=no
15573 ;;
15574 motorola)
15575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15577 ;;
15578 esac
15579 runpath_var='LD_RUN_PATH'
15580 hardcode_shlibpath_var=no
15581 ;;
15582
15583 sysv4.3*)
15584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_shlibpath_var=no
15586 export_dynamic_flag_spec='-Bexport'
15587 ;;
15588
15589 sysv4*MP*)
15590 if test -d /usr/nec; then
15591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_shlibpath_var=no
15593 runpath_var=LD_RUN_PATH
15594 hardcode_runpath_var=yes
15595 ld_shlibs=yes
15596 fi
15597 ;;
15598
15599 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15600 no_undefined_flag='${wl}-z,text'
15601 archive_cmds_need_lc=no
15602 hardcode_shlibpath_var=no
15603 runpath_var='LD_RUN_PATH'
15604
15605 if test "$GCC" = yes; then
15606 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 else
15609 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15611 fi
15612 ;;
15613
15614 sysv5* | sco3.2v5* | sco5v6*)
15615 # Note: We can NOT use -z defs as we might desire, because we do not
15616 # link with -lc, and that would cause any symbols used from libc to
15617 # always be unresolved, which means just about no library would
15618 # ever link correctly. If we're not using GNU ld we use -z text
15619 # though, which does catch some bad symbols but isn't as heavy-handed
15620 # as -z defs.
15621 no_undefined_flag='${wl}-z,text'
15622 allow_undefined_flag='${wl}-z,nodefs'
15623 archive_cmds_need_lc=no
15624 hardcode_shlibpath_var=no
15625 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15626 hardcode_libdir_separator=':'
15627 link_all_deplibs=yes
15628 export_dynamic_flag_spec='${wl}-Bexport'
15629 runpath_var='LD_RUN_PATH'
15630
15631 if test "$GCC" = yes; then
15632 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 else
15635 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 fi
15638 ;;
15639
15640 uts4*)
15641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_libdir_flag_spec='-L$libdir'
15643 hardcode_shlibpath_var=no
15644 ;;
15645
15646 *)
15647 ld_shlibs=no
15648 ;;
15649 esac
15650
15651 if test x$host_vendor = xsni; then
15652 case $host in
15653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15654 export_dynamic_flag_spec='${wl}-Blargedynsym'
15655 ;;
15656 esac
15657 fi
15658 fi
15659
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15661$as_echo "$ld_shlibs" >&6; }
15662test "$ld_shlibs" = no && can_build_shared=no
15663
15664with_gnu_ld=$with_gnu_ld
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680#
15681# Do we need to explicitly link libc?
15682#
15683case "x$archive_cmds_need_lc" in
15684x|xyes)
15685 # Assume -lc should be added
15686 archive_cmds_need_lc=yes
15687
15688 if test "$enable_shared" = yes && test "$GCC" = yes; then
15689 case $archive_cmds in
15690 *'~'*)
15691 # FIXME: we may have to deal with multi-command sequences.
15692 ;;
15693 '$CC '*)
15694 # Test whether the compiler implicitly links with -lc since on some
15695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15696 # to ld, don't add -lc before -lgcc.
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15698$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015699if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015700 $as_echo_n "(cached) " >&6
15701else
15702 $RM conftest*
15703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015704
cristy0c60a692010-11-04 01:09:47 +000015705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015706 (eval $ac_compile) 2>&5
15707 ac_status=$?
15708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15709 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015710 soname=conftest
15711 lib=conftest
15712 libobjs=conftest.$ac_objext
15713 deplibs=
15714 wl=$lt_prog_compiler_wl
15715 pic_flag=$lt_prog_compiler_pic
15716 compiler_flags=-v
15717 linker_flags=-v
15718 verstring=
15719 output_objdir=.
15720 libname=conftest
15721 lt_save_allow_undefined_flag=$allow_undefined_flag
15722 allow_undefined_flag=
15723 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 +000015724 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15725 ac_status=$?
15726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15727 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015728 then
15729 lt_cv_archive_cmds_need_lc=no
15730 else
15731 lt_cv_archive_cmds_need_lc=yes
15732 fi
15733 allow_undefined_flag=$lt_save_allow_undefined_flag
15734 else
15735 cat conftest.err 1>&5
15736 fi
15737 $RM conftest*
15738
15739fi
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15741$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15742 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015743 ;;
15744 esac
15745 fi
15746 ;;
15747esac
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
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
cristy73bd4a52010-10-05 11:24:23 +000015900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15901$as_echo_n "checking dynamic linker characteristics... " >&6; }
15902
15903if test "$GCC" = yes; then
15904 case $host_os in
15905 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15906 *) lt_awk_arg="/^libraries:/" ;;
15907 esac
cristy0c60a692010-11-04 01:09:47 +000015908 case $host_os in
15909 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15910 *) lt_sed_strip_eq="s,=/,/,g" ;;
15911 esac
15912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15913 case $lt_search_path_spec in
15914 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015915 # if the path contains ";" then we assume it to be the separator
15916 # otherwise default to the standard path separator (i.e. ":") - it is
15917 # assumed that no part of a normal pathname contains ";" but that should
15918 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15920 ;;
15921 *)
15922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15923 ;;
15924 esac
cristy73bd4a52010-10-05 11:24:23 +000015925 # Ok, now we have the path, separated by spaces, we can step through it
15926 # and add multilib dir if necessary.
15927 lt_tmp_lt_search_path_spec=
15928 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15929 for lt_sys_path in $lt_search_path_spec; do
15930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15932 else
15933 test -d "$lt_sys_path" && \
15934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15935 fi
15936 done
cristy0c60a692010-11-04 01:09:47 +000015937 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015938BEGIN {RS=" "; FS="/|\n";} {
15939 lt_foo="";
15940 lt_count=0;
15941 for (lt_i = NF; lt_i > 0; lt_i--) {
15942 if ($lt_i != "" && $lt_i != ".") {
15943 if ($lt_i == "..") {
15944 lt_count++;
15945 } else {
15946 if (lt_count == 0) {
15947 lt_foo="/" $lt_i lt_foo;
15948 } else {
15949 lt_count--;
15950 }
15951 }
15952 }
15953 }
15954 if (lt_foo != "") { lt_freq[lt_foo]++; }
15955 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15956}'`
cristy0c60a692010-11-04 01:09:47 +000015957 # AWK program above erroneously prepends '/' to C:/dos/paths
15958 # for these hosts.
15959 case $host_os in
15960 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15961 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15962 esac
15963 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015964else
15965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15966fi
15967library_names_spec=
15968libname_spec='lib$name'
15969soname_spec=
15970shrext_cmds=".so"
15971postinstall_cmds=
15972postuninstall_cmds=
15973finish_cmds=
15974finish_eval=
15975shlibpath_var=
15976shlibpath_overrides_runpath=unknown
15977version_type=none
15978dynamic_linker="$host_os ld.so"
15979sys_lib_dlsearch_path_spec="/lib /usr/lib"
15980need_lib_prefix=unknown
15981hardcode_into_libs=no
15982
15983# when you set need_version to no, make sure it does not cause -set_version
15984# flags to be left without arguments
15985need_version=unknown
15986
15987case $host_os in
15988aix3*)
cristy99bd5232011-12-07 14:38:20 +000015989 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15991 shlibpath_var=LIBPATH
15992
15993 # AIX 3 has no versioning support, so we append a major version to the name.
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 ;;
15996
15997aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015998 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015999 need_lib_prefix=no
16000 need_version=no
16001 hardcode_into_libs=yes
16002 if test "$host_cpu" = ia64; then
16003 # AIX 5 supports IA64
16004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 else
16007 # With GCC up to 2.95.x, collect2 would create an import file
16008 # for dependence libraries. The import file would start with
16009 # the line `#! .'. This would cause the generated library to
16010 # depend on `.', always an invalid library. This was fixed in
16011 # development snapshots of GCC prior to 3.0.
16012 case $host_os in
16013 aix4 | aix4.[01] | aix4.[01].*)
16014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16015 echo ' yes '
16016 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16017 :
16018 else
16019 can_build_shared=no
16020 fi
16021 ;;
16022 esac
16023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16024 # soname into executable. Probably we can add versioning support to
16025 # collect2, so additional links can be useful in future.
16026 if test "$aix_use_runtimelinking" = yes; then
16027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16028 # instead of lib<name>.a to let people know that these are not
16029 # typical AIX shared libraries.
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16031 else
16032 # We preserve .a as extension for shared libraries through AIX4.2
16033 # and later when we are not doing run time linking.
16034 library_names_spec='${libname}${release}.a $libname.a'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 fi
16037 shlibpath_var=LIBPATH
16038 fi
16039 ;;
16040
16041amigaos*)
16042 case $host_cpu in
16043 powerpc)
16044 # Since July 2007 AmigaOS4 officially supports .so libraries.
16045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 ;;
16048 m68k)
16049 library_names_spec='$libname.ixlibrary $libname.a'
16050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016051 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 +000016052 ;;
16053 esac
16054 ;;
16055
16056beos*)
16057 library_names_spec='${libname}${shared_ext}'
16058 dynamic_linker="$host_os ld.so"
16059 shlibpath_var=LIBRARY_PATH
16060 ;;
16061
16062bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016063 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016064 need_version=no
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16071 # the default ld.so.conf also contains /usr/contrib/lib and
16072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16073 # libtool to hard-code these into programs
16074 ;;
16075
16076cygwin* | mingw* | pw32* | cegcc*)
16077 version_type=windows
16078 shrext_cmds=".dll"
16079 need_version=no
16080 need_lib_prefix=no
16081
cristyda16f162011-02-19 23:52:17 +000016082 case $GCC,$cc_basename in
16083 yes,*)
16084 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016085 library_names_spec='$libname.dll.a'
16086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16087 postinstall_cmds='base_file=`basename \${file}`~
16088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16089 dldir=$destdir/`dirname \$dlpath`~
16090 test -d \$dldir || mkdir -p \$dldir~
16091 $install_prog $dir/$dlname \$dldir/$dlname~
16092 chmod a+x \$dldir/$dlname~
16093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16095 fi'
16096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16097 dlpath=$dir/\$dldll~
16098 $RM \$dlpath'
16099 shlibpath_overrides_runpath=yes
16100
16101 case $host_os in
16102 cygwin*)
16103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016105
16106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016107 ;;
16108 mingw* | cegcc*)
16109 # MinGW DLLs use traditional 'lib' prefix
16110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016111 ;;
16112 pw32*)
16113 # pw32 DLLs use 'pw' prefix rather than 'lib'
16114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16115 ;;
16116 esac
cristyda16f162011-02-19 23:52:17 +000016117 dynamic_linker='Win32 ld.exe'
16118 ;;
16119
16120 *,cl*)
16121 # Native MSVC
16122 libname_spec='$name'
16123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 library_names_spec='${libname}.dll.lib'
16125
16126 case $build_os in
16127 mingw*)
16128 sys_lib_search_path_spec=
16129 lt_save_ifs=$IFS
16130 IFS=';'
16131 for lt_path in $LIB
16132 do
16133 IFS=$lt_save_ifs
16134 # Let DOS variable expansion print the short 8.3 style file name.
16135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16137 done
16138 IFS=$lt_save_ifs
16139 # Convert to MSYS style.
16140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16141 ;;
16142 cygwin*)
16143 # Convert to unix form, then to dos form, then back to unix form
16144 # but this time dos style (no spaces!) so that the unix form looks
16145 # like /cygdrive/c/PROGRA~1:/cygdr...
16146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16149 ;;
16150 *)
16151 sys_lib_search_path_spec="$LIB"
16152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16153 # It is most probably a Windows format PATH.
16154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16155 else
16156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16157 fi
16158 # FIXME: find the short name or the path components, as spaces are
16159 # common. (e.g. "Program Files" -> "PROGRA~1")
16160 ;;
16161 esac
16162
16163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16164 postinstall_cmds='base_file=`basename \${file}`~
16165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16166 dldir=$destdir/`dirname \$dlpath`~
16167 test -d \$dldir || mkdir -p \$dldir~
16168 $install_prog $dir/$dlname \$dldir/$dlname'
16169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16170 dlpath=$dir/\$dldll~
16171 $RM \$dlpath'
16172 shlibpath_overrides_runpath=yes
16173 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016174 ;;
16175
16176 *)
cristyda16f162011-02-19 23:52:17 +000016177 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016179 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016180 ;;
16181 esac
cristy73bd4a52010-10-05 11:24:23 +000016182 # FIXME: first we should search . and the directory the executable is in
16183 shlibpath_var=PATH
16184 ;;
16185
16186darwin* | rhapsody*)
16187 dynamic_linker="$host_os dyld"
16188 version_type=darwin
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16192 soname_spec='${libname}${release}${major}$shared_ext'
16193 shlibpath_overrides_runpath=yes
16194 shlibpath_var=DYLD_LIBRARY_PATH
16195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16196
16197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16199 ;;
16200
16201dgux*)
cristy99bd5232011-12-07 14:38:20 +000016202 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 ;;
16209
cristy73bd4a52010-10-05 11:24:23 +000016210freebsd* | dragonfly*)
16211 # DragonFly does not have aout. When/if they implement a new
16212 # versioning mechanism, adjust this.
16213 if test -x /usr/bin/objformat; then
16214 objformat=`/usr/bin/objformat`
16215 else
16216 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016217 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016218 *) objformat=elf ;;
16219 esac
16220 fi
16221 version_type=freebsd-$objformat
16222 case $version_type in
16223 freebsd-elf*)
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16225 need_version=no
16226 need_lib_prefix=no
16227 ;;
16228 freebsd-*)
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16230 need_version=yes
16231 ;;
16232 esac
16233 shlibpath_var=LD_LIBRARY_PATH
16234 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016235 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016236 shlibpath_overrides_runpath=yes
16237 ;;
16238 freebsd3.[01]* | freebsdelf3.[01]*)
16239 shlibpath_overrides_runpath=yes
16240 hardcode_into_libs=yes
16241 ;;
16242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16244 shlibpath_overrides_runpath=no
16245 hardcode_into_libs=yes
16246 ;;
16247 *) # from 4.6 on, and DragonFly
16248 shlibpath_overrides_runpath=yes
16249 hardcode_into_libs=yes
16250 ;;
16251 esac
16252 ;;
16253
16254gnu*)
cristy99bd5232011-12-07 14:38:20 +000016255 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016256 need_lib_prefix=no
16257 need_version=no
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016261 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016262 hardcode_into_libs=yes
16263 ;;
16264
cristy0c60a692010-11-04 01:09:47 +000016265haiku*)
cristy99bd5232011-12-07 14:38:20 +000016266 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016267 need_lib_prefix=no
16268 need_version=no
16269 dynamic_linker="$host_os runtime_loader"
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 shlibpath_var=LIBRARY_PATH
16273 shlibpath_overrides_runpath=yes
16274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16275 hardcode_into_libs=yes
16276 ;;
16277
cristy73bd4a52010-10-05 11:24:23 +000016278hpux9* | hpux10* | hpux11*)
16279 # Give a soname corresponding to the major version so that dld.sl refuses to
16280 # link against other versions.
16281 version_type=sunos
16282 need_lib_prefix=no
16283 need_version=no
16284 case $host_cpu in
16285 ia64*)
16286 shrext_cmds='.so'
16287 hardcode_into_libs=yes
16288 dynamic_linker="$host_os dld.so"
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 if test "X$HPUX_IA64_MODE" = X32; then
16294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16295 else
16296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16297 fi
16298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16299 ;;
16300 hppa*64*)
16301 shrext_cmds='.sl'
16302 hardcode_into_libs=yes
16303 dynamic_linker="$host_os dld.sl"
16304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16310 ;;
16311 *)
16312 shrext_cmds='.sl'
16313 dynamic_linker="$host_os dld.sl"
16314 shlibpath_var=SHLIB_PATH
16315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 ;;
16319 esac
cristy0c60a692010-11-04 01:09:47 +000016320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016321 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016322 # or fails outright, so override atomically:
16323 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016324 ;;
16325
16326interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016327 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=no
16335 hardcode_into_libs=yes
16336 ;;
16337
16338irix5* | irix6* | nonstopux*)
16339 case $host_os in
16340 nonstopux*) version_type=nonstopux ;;
16341 *)
16342 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016343 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016344 else
16345 version_type=irix
16346 fi ;;
16347 esac
16348 need_lib_prefix=no
16349 need_version=no
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16352 case $host_os in
16353 irix5* | nonstopux*)
16354 libsuff= shlibsuff=
16355 ;;
16356 *)
16357 case $LD in # libtool.m4 will add one of these switches to LD
16358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16359 libsuff= shlibsuff= libmagic=32-bit;;
16360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16361 libsuff=32 shlibsuff=N32 libmagic=N32;;
16362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16364 *) libsuff= shlibsuff= libmagic=never-match;;
16365 esac
16366 ;;
16367 esac
16368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16369 shlibpath_overrides_runpath=no
16370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16372 hardcode_into_libs=yes
16373 ;;
16374
16375# No shared lib support for Linux oldld, aout, or coff.
16376linux*oldld* | linux*aout* | linux*coff*)
16377 dynamic_linker=no
16378 ;;
16379
cristy99bd5232011-12-07 14:38:20 +000016380# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016381linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016390
cristy73bd4a52010-10-05 11:24:23 +000016391 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016392 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016393 $as_echo_n "(cached) " >&6
16394else
16395 lt_cv_shlibpath_overrides_runpath=no
16396 save_LDFLAGS=$LDFLAGS
16397 save_libdir=$libdir
16398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016401/* end confdefs.h. */
16402
16403int
16404main ()
16405{
16406
16407 ;
16408 return 0;
16409}
16410_ACEOF
16411if ac_fn_c_try_link "$LINENO"; then :
16412 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016413 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016414fi
16415fi
16416rm -f core conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016418 LDFLAGS=$save_LDFLAGS
16419 libdir=$save_libdir
16420
16421fi
16422
16423 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016424
16425 # This implies no fast_install, which is unacceptable.
16426 # Some rework will be needed to allow for fast_install
16427 # before this can be enabled.
16428 hardcode_into_libs=yes
16429
16430 # Add ABI-specific directories to the system library path.
16431 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16432
16433 # Append ld.so.conf contents to the search path
16434 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016435 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 +000016436 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016437
cristy73bd4a52010-10-05 11:24:23 +000016438 fi
16439
16440 # We used to test for /lib/ld.so.1 and disable shared libraries on
16441 # powerpc, because MkLinux only supported shared libraries with the
16442 # GNU dynamic linker. Since this was broken with cross compilers,
16443 # most powerpc-linux boxes support dynamic linking these days and
16444 # people can always --disable-shared, the test was removed, and we
16445 # assume the GNU/Linux dynamic linker is in use.
16446 dynamic_linker='GNU/Linux ld.so'
16447 ;;
16448
16449netbsd*)
16450 version_type=sunos
16451 need_lib_prefix=no
16452 need_version=no
16453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16456 dynamic_linker='NetBSD (a.out) ld.so'
16457 else
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 dynamic_linker='NetBSD ld.elf_so'
16461 fi
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 hardcode_into_libs=yes
16465 ;;
16466
16467newsos6)
cristy99bd5232011-12-07 14:38:20 +000016468 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 shlibpath_overrides_runpath=yes
16472 ;;
16473
16474*nto* | *qnx*)
16475 version_type=qnx
16476 need_lib_prefix=no
16477 need_version=no
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=no
16482 hardcode_into_libs=yes
16483 dynamic_linker='ldqnx.so'
16484 ;;
16485
16486openbsd*)
16487 version_type=sunos
16488 sys_lib_dlsearch_path_spec="/usr/lib"
16489 need_lib_prefix=no
16490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16491 case $host_os in
16492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16493 *) need_version=no ;;
16494 esac
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16499 case $host_os in
16500 openbsd2.[89] | openbsd2.[89].*)
16501 shlibpath_overrides_runpath=no
16502 ;;
16503 *)
16504 shlibpath_overrides_runpath=yes
16505 ;;
16506 esac
16507 else
16508 shlibpath_overrides_runpath=yes
16509 fi
16510 ;;
16511
16512os2*)
16513 libname_spec='$name'
16514 shrext_cmds=".dll"
16515 need_lib_prefix=no
16516 library_names_spec='$libname${shared_ext} $libname.a'
16517 dynamic_linker='OS/2 ld.exe'
16518 shlibpath_var=LIBPATH
16519 ;;
16520
16521osf3* | osf4* | osf5*)
16522 version_type=osf
16523 need_lib_prefix=no
16524 need_version=no
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16530 ;;
16531
16532rdos*)
16533 dynamic_linker=no
16534 ;;
16535
16536solaris*)
cristy99bd5232011-12-07 14:38:20 +000016537 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=yes
16544 hardcode_into_libs=yes
16545 # ldd complains unless libraries are executable
16546 postinstall_cmds='chmod +x $lib'
16547 ;;
16548
16549sunos4*)
16550 version_type=sunos
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16555 if test "$with_gnu_ld" = yes; then
16556 need_lib_prefix=no
16557 fi
16558 need_version=yes
16559 ;;
16560
16561sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016562 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 case $host_vendor in
16567 sni)
16568 shlibpath_overrides_runpath=no
16569 need_lib_prefix=no
16570 runpath_var=LD_RUN_PATH
16571 ;;
16572 siemens)
16573 need_lib_prefix=no
16574 ;;
16575 motorola)
16576 need_lib_prefix=no
16577 need_version=no
16578 shlibpath_overrides_runpath=no
16579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16580 ;;
16581 esac
16582 ;;
16583
16584sysv4*MP*)
16585 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016586 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16588 soname_spec='$libname${shared_ext}.$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 fi
16591 ;;
16592
16593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16594 version_type=freebsd-elf
16595 need_lib_prefix=no
16596 need_version=no
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16602 if test "$with_gnu_ld" = yes; then
16603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16604 else
16605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16606 case $host_os in
16607 sco3.2v5*)
16608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16609 ;;
16610 esac
16611 fi
16612 sys_lib_dlsearch_path_spec='/usr/lib'
16613 ;;
16614
16615tpf*)
16616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016617 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016618 need_lib_prefix=no
16619 need_version=no
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=no
16623 hardcode_into_libs=yes
16624 ;;
16625
16626uts4*)
cristy99bd5232011-12-07 14:38:20 +000016627 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 ;;
16632
16633*)
16634 dynamic_linker=no
16635 ;;
16636esac
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16638$as_echo "$dynamic_linker" >&6; }
16639test "$dynamic_linker" = no && can_build_shared=no
16640
16641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16642if test "$GCC" = yes; then
16643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16644fi
16645
16646if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16648fi
16649if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16651fi
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
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
cristy0c60a692010-11-04 01:09:47 +000016739
16740
16741
16742
16743
cristy73bd4a52010-10-05 11:24:23 +000016744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16745$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16746hardcode_action=
16747if test -n "$hardcode_libdir_flag_spec" ||
16748 test -n "$runpath_var" ||
16749 test "X$hardcode_automatic" = "Xyes" ; then
16750
16751 # We can hardcode non-existent directories.
16752 if test "$hardcode_direct" != no &&
16753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16754 # have to relink, otherwise we might link with an installed library
16755 # when we should be linking with a yet-to-be-installed one
16756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16757 test "$hardcode_minus_L" != no; then
16758 # Linking always hardcodes the temporary library directory.
16759 hardcode_action=relink
16760 else
16761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16762 hardcode_action=immediate
16763 fi
16764else
16765 # We cannot hardcode anything, or else we can only hardcode existing
16766 # directories.
16767 hardcode_action=unsupported
16768fi
16769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16770$as_echo "$hardcode_action" >&6; }
16771
16772if test "$hardcode_action" = relink ||
16773 test "$inherit_rpath" = yes; then
16774 # Fast installation is not supported
16775 enable_fast_install=no
16776elif test "$shlibpath_overrides_runpath" = yes ||
16777 test "$enable_shared" = no; then
16778 # Fast installation is not necessary
16779 enable_fast_install=needless
16780fi
16781
16782
16783
16784
16785
16786
16787 if test "x$enable_dlopen" != xyes; then
16788 enable_dlopen=unknown
16789 enable_dlopen_self=unknown
16790 enable_dlopen_self_static=unknown
16791else
16792 lt_cv_dlopen=no
16793 lt_cv_dlopen_libs=
16794
16795 case $host_os in
16796 beos*)
16797 lt_cv_dlopen="load_add_on"
16798 lt_cv_dlopen_libs=
16799 lt_cv_dlopen_self=yes
16800 ;;
16801
16802 mingw* | pw32* | cegcc*)
16803 lt_cv_dlopen="LoadLibrary"
16804 lt_cv_dlopen_libs=
16805 ;;
16806
16807 cygwin*)
16808 lt_cv_dlopen="dlopen"
16809 lt_cv_dlopen_libs=
16810 ;;
16811
16812 darwin*)
16813 # if libdl is installed we need to link against it
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16815$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016816if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016817 $as_echo_n "(cached) " >&6
16818else
16819 ac_check_lib_save_LIBS=$LIBS
16820LIBS="-ldl $LIBS"
16821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822/* end confdefs.h. */
16823
16824/* Override any GCC internal prototype to avoid an error.
16825 Use char because int might match the return type of a GCC
16826 builtin and then its argument prototype would still apply. */
16827#ifdef __cplusplus
16828extern "C"
16829#endif
16830char dlopen ();
16831int
16832main ()
16833{
16834return dlopen ();
16835 ;
16836 return 0;
16837}
16838_ACEOF
16839if ac_fn_c_try_link "$LINENO"; then :
16840 ac_cv_lib_dl_dlopen=yes
16841else
16842 ac_cv_lib_dl_dlopen=no
16843fi
16844rm -f core conftest.err conftest.$ac_objext \
16845 conftest$ac_exeext conftest.$ac_ext
16846LIBS=$ac_check_lib_save_LIBS
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16849$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016850if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16852else
16853
16854 lt_cv_dlopen="dyld"
16855 lt_cv_dlopen_libs=
16856 lt_cv_dlopen_self=yes
16857
16858fi
16859
16860 ;;
16861
16862 *)
16863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016864if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016865 lt_cv_dlopen="shl_load"
16866else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16868$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016869if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016870 $as_echo_n "(cached) " >&6
16871else
16872 ac_check_lib_save_LIBS=$LIBS
16873LIBS="-ldld $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 shl_load ();
16884int
16885main ()
16886{
16887return shl_load ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892if ac_fn_c_try_link "$LINENO"; then :
16893 ac_cv_lib_dld_shl_load=yes
16894else
16895 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
16902$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016903if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16905else
16906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016907if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016908 lt_cv_dlopen="dlopen"
16909else
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16911$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016912if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016913 $as_echo_n "(cached) " >&6
16914else
16915 ac_check_lib_save_LIBS=$LIBS
16916LIBS="-ldl $LIBS"
16917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918/* end confdefs.h. */
16919
16920/* Override any GCC internal prototype to avoid an error.
16921 Use char because int might match the return type of a GCC
16922 builtin and then its argument prototype would still apply. */
16923#ifdef __cplusplus
16924extern "C"
16925#endif
16926char dlopen ();
16927int
16928main ()
16929{
16930return dlopen ();
16931 ;
16932 return 0;
16933}
16934_ACEOF
16935if ac_fn_c_try_link "$LINENO"; then :
16936 ac_cv_lib_dl_dlopen=yes
16937else
16938 ac_cv_lib_dl_dlopen=no
16939fi
16940rm -f core conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16942LIBS=$ac_check_lib_save_LIBS
16943fi
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16945$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016946if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16948else
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16950$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016951if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016952 $as_echo_n "(cached) " >&6
16953else
16954 ac_check_lib_save_LIBS=$LIBS
16955LIBS="-lsvld $LIBS"
16956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h. */
16958
16959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962#ifdef __cplusplus
16963extern "C"
16964#endif
16965char dlopen ();
16966int
16967main ()
16968{
16969return dlopen ();
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974if ac_fn_c_try_link "$LINENO"; then :
16975 ac_cv_lib_svld_dlopen=yes
16976else
16977 ac_cv_lib_svld_dlopen=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext \
16980 conftest$ac_exeext conftest.$ac_ext
16981LIBS=$ac_check_lib_save_LIBS
16982fi
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16984$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016985if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16987else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16989$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016990if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016991 $as_echo_n "(cached) " >&6
16992else
16993 ac_check_lib_save_LIBS=$LIBS
16994LIBS="-ldld $LIBS"
16995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996/* end confdefs.h. */
16997
16998/* Override any GCC internal prototype to avoid an error.
16999 Use char because int might match the return type of a GCC
17000 builtin and then its argument prototype would still apply. */
17001#ifdef __cplusplus
17002extern "C"
17003#endif
17004char dld_link ();
17005int
17006main ()
17007{
17008return dld_link ();
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013if ac_fn_c_try_link "$LINENO"; then :
17014 ac_cv_lib_dld_dld_link=yes
17015else
17016 ac_cv_lib_dld_dld_link=no
17017fi
17018rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020LIBS=$ac_check_lib_save_LIBS
17021fi
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17023$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017024if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17026fi
17027
17028
17029fi
17030
17031
17032fi
17033
17034
17035fi
17036
17037
17038fi
17039
17040
17041fi
17042
17043 ;;
17044 esac
17045
17046 if test "x$lt_cv_dlopen" != xno; then
17047 enable_dlopen=yes
17048 else
17049 enable_dlopen=no
17050 fi
17051
17052 case $lt_cv_dlopen in
17053 dlopen)
17054 save_CPPFLAGS="$CPPFLAGS"
17055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17056
17057 save_LDFLAGS="$LDFLAGS"
17058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17059
17060 save_LIBS="$LIBS"
17061 LIBS="$lt_cv_dlopen_libs $LIBS"
17062
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17064$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017065if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017066 $as_echo_n "(cached) " >&6
17067else
17068 if test "$cross_compiling" = yes; then :
17069 lt_cv_dlopen_self=cross
17070else
17071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17072 lt_status=$lt_dlunknown
17073 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017074#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017075#include "confdefs.h"
17076
17077#if HAVE_DLFCN_H
17078#include <dlfcn.h>
17079#endif
17080
17081#include <stdio.h>
17082
17083#ifdef RTLD_GLOBAL
17084# define LT_DLGLOBAL RTLD_GLOBAL
17085#else
17086# ifdef DL_GLOBAL
17087# define LT_DLGLOBAL DL_GLOBAL
17088# else
17089# define LT_DLGLOBAL 0
17090# endif
17091#endif
17092
17093/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17094 find out it does not work in some platform. */
17095#ifndef LT_DLLAZY_OR_NOW
17096# ifdef RTLD_LAZY
17097# define LT_DLLAZY_OR_NOW RTLD_LAZY
17098# else
17099# ifdef DL_LAZY
17100# define LT_DLLAZY_OR_NOW DL_LAZY
17101# else
17102# ifdef RTLD_NOW
17103# define LT_DLLAZY_OR_NOW RTLD_NOW
17104# else
17105# ifdef DL_NOW
17106# define LT_DLLAZY_OR_NOW DL_NOW
17107# else
17108# define LT_DLLAZY_OR_NOW 0
17109# endif
17110# endif
17111# endif
17112# endif
17113#endif
17114
cristy0c60a692010-11-04 01:09:47 +000017115/* When -fvisbility=hidden is used, assume the code has been annotated
17116 correspondingly for the symbols needed. */
17117#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017118int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017119#endif
17120
cristyda16f162011-02-19 23:52:17 +000017121int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017122int main ()
17123{
17124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17125 int status = $lt_dlunknown;
17126
17127 if (self)
17128 {
17129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017130 else
17131 {
17132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17133 else puts (dlerror ());
17134 }
cristy73bd4a52010-10-05 11:24:23 +000017135 /* dlclose (self); */
17136 }
17137 else
17138 puts (dlerror ());
17139
17140 return status;
17141}
17142_LT_EOF
17143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17144 (eval $ac_link) 2>&5
17145 ac_status=$?
17146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17148 (./conftest; exit; ) >&5 2>/dev/null
17149 lt_status=$?
17150 case x$lt_status in
17151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17154 esac
17155 else :
17156 # compilation failed
17157 lt_cv_dlopen_self=no
17158 fi
17159fi
17160rm -fr conftest*
17161
17162
17163fi
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17165$as_echo "$lt_cv_dlopen_self" >&6; }
17166
17167 if test "x$lt_cv_dlopen_self" = xyes; then
17168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17170$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017171if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017172 $as_echo_n "(cached) " >&6
17173else
17174 if test "$cross_compiling" = yes; then :
17175 lt_cv_dlopen_self_static=cross
17176else
17177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17178 lt_status=$lt_dlunknown
17179 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017180#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017181#include "confdefs.h"
17182
17183#if HAVE_DLFCN_H
17184#include <dlfcn.h>
17185#endif
17186
17187#include <stdio.h>
17188
17189#ifdef RTLD_GLOBAL
17190# define LT_DLGLOBAL RTLD_GLOBAL
17191#else
17192# ifdef DL_GLOBAL
17193# define LT_DLGLOBAL DL_GLOBAL
17194# else
17195# define LT_DLGLOBAL 0
17196# endif
17197#endif
17198
17199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17200 find out it does not work in some platform. */
17201#ifndef LT_DLLAZY_OR_NOW
17202# ifdef RTLD_LAZY
17203# define LT_DLLAZY_OR_NOW RTLD_LAZY
17204# else
17205# ifdef DL_LAZY
17206# define LT_DLLAZY_OR_NOW DL_LAZY
17207# else
17208# ifdef RTLD_NOW
17209# define LT_DLLAZY_OR_NOW RTLD_NOW
17210# else
17211# ifdef DL_NOW
17212# define LT_DLLAZY_OR_NOW DL_NOW
17213# else
17214# define LT_DLLAZY_OR_NOW 0
17215# endif
17216# endif
17217# endif
17218# endif
17219#endif
17220
cristy0c60a692010-11-04 01:09:47 +000017221/* When -fvisbility=hidden is used, assume the code has been annotated
17222 correspondingly for the symbols needed. */
17223#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017224int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017225#endif
17226
cristyda16f162011-02-19 23:52:17 +000017227int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017228int main ()
17229{
17230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17231 int status = $lt_dlunknown;
17232
17233 if (self)
17234 {
17235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017236 else
17237 {
17238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17239 else puts (dlerror ());
17240 }
cristy73bd4a52010-10-05 11:24:23 +000017241 /* dlclose (self); */
17242 }
17243 else
17244 puts (dlerror ());
17245
17246 return status;
17247}
17248_LT_EOF
17249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17250 (eval $ac_link) 2>&5
17251 ac_status=$?
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17254 (./conftest; exit; ) >&5 2>/dev/null
17255 lt_status=$?
17256 case x$lt_status in
17257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17260 esac
17261 else :
17262 # compilation failed
17263 lt_cv_dlopen_self_static=no
17264 fi
17265fi
17266rm -fr conftest*
17267
17268
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17271$as_echo "$lt_cv_dlopen_self_static" >&6; }
17272 fi
17273
17274 CPPFLAGS="$save_CPPFLAGS"
17275 LDFLAGS="$save_LDFLAGS"
17276 LIBS="$save_LIBS"
17277 ;;
17278 esac
17279
17280 case $lt_cv_dlopen_self in
17281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17282 *) enable_dlopen_self=unknown ;;
17283 esac
17284
17285 case $lt_cv_dlopen_self_static in
17286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17287 *) enable_dlopen_self_static=unknown ;;
17288 esac
17289fi
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307striplib=
17308old_striplib=
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17310$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17311if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17315$as_echo "yes" >&6; }
17316else
17317# FIXME - insert some real tests, host_os isn't really good enough
17318 case $host_os in
17319 darwin*)
17320 if test -n "$STRIP" ; then
17321 striplib="$STRIP -x"
17322 old_striplib="$STRIP -S"
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17324$as_echo "yes" >&6; }
17325 else
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327$as_echo "no" >&6; }
17328 fi
17329 ;;
17330 *)
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17332$as_echo "no" >&6; }
17333 ;;
17334 esac
17335fi
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348 # Report which library types will actually be built
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17350$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17352$as_echo "$can_build_shared" >&6; }
17353
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17355$as_echo_n "checking whether to build shared libraries... " >&6; }
17356 test "$can_build_shared" = "no" && enable_shared=no
17357
17358 # On AIX, shared libraries and static libraries use the same namespace, and
17359 # are all built from PIC.
17360 case $host_os in
17361 aix3*)
17362 test "$enable_shared" = yes && enable_static=no
17363 if test -n "$RANLIB"; then
17364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17365 postinstall_cmds='$RANLIB $lib'
17366 fi
17367 ;;
17368
17369 aix[4-9]*)
17370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17371 test "$enable_shared" = yes && enable_static=no
17372 fi
17373 ;;
17374 esac
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17376$as_echo "$enable_shared" >&6; }
17377
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17379$as_echo_n "checking whether to build static libraries... " >&6; }
17380 # Make sure either enable_shared or enable_static is yes.
17381 test "$enable_shared" = yes || enable_static=yes
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17383$as_echo "$enable_static" >&6; }
17384
17385
17386
17387
17388fi
17389ac_ext=c
17390ac_cpp='$CPP $CPPFLAGS'
17391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17393ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394
17395CC="$lt_save_CC"
17396
cristy0c60a692010-11-04 01:09:47 +000017397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17398 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17399 (test "X$CXX" != "Xg++"))) ; then
17400 ac_ext=cpp
17401ac_cpp='$CXXCPP $CPPFLAGS'
17402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17406$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17407if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017408 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017409 $as_echo_n "(cached) " >&6
17410else
17411 # Double quotes because CXXCPP needs to be expanded
17412 for CXXCPP in "$CXX -E" "/lib/cpp"
17413 do
17414 ac_preproc_ok=false
17415for ac_cxx_preproc_warn_flag in '' yes
17416do
17417 # Use a header file that comes with gcc, so configuring glibc
17418 # with a fresh cross-compiler works.
17419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17420 # <limits.h> exists even on freestanding compilers.
17421 # On the NeXT, cc -E runs the code through the compiler's parser,
17422 # not just through cpp. "Syntax error" is here to catch this case.
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424/* end confdefs.h. */
17425#ifdef __STDC__
17426# include <limits.h>
17427#else
17428# include <assert.h>
17429#endif
17430 Syntax error
17431_ACEOF
17432if ac_fn_cxx_try_cpp "$LINENO"; then :
17433
17434else
17435 # Broken: fails on valid input.
17436continue
17437fi
cristyda16f162011-02-19 23:52:17 +000017438rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017439
17440 # OK, works on sane cases. Now check whether nonexistent headers
17441 # can be detected and how.
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h. */
17444#include <ac_nonexistent.h>
17445_ACEOF
17446if ac_fn_cxx_try_cpp "$LINENO"; then :
17447 # Broken: success on invalid input.
17448continue
17449else
17450 # Passes both tests.
17451ac_preproc_ok=:
17452break
17453fi
cristyda16f162011-02-19 23:52:17 +000017454rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017455
17456done
17457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017458rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017459if $ac_preproc_ok; then :
17460 break
17461fi
17462
17463 done
17464 ac_cv_prog_CXXCPP=$CXXCPP
17465
17466fi
17467 CXXCPP=$ac_cv_prog_CXXCPP
17468else
17469 ac_cv_prog_CXXCPP=$CXXCPP
17470fi
17471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17472$as_echo "$CXXCPP" >&6; }
17473ac_preproc_ok=false
17474for ac_cxx_preproc_warn_flag in '' yes
17475do
17476 # Use a header file that comes with gcc, so configuring glibc
17477 # with a fresh cross-compiler works.
17478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 # <limits.h> exists even on freestanding compilers.
17480 # On the NeXT, cc -E runs the code through the compiler's parser,
17481 # not just through cpp. "Syntax error" is here to catch this case.
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483/* end confdefs.h. */
17484#ifdef __STDC__
17485# include <limits.h>
17486#else
17487# include <assert.h>
17488#endif
17489 Syntax error
17490_ACEOF
17491if ac_fn_cxx_try_cpp "$LINENO"; then :
17492
17493else
17494 # Broken: fails on valid input.
17495continue
17496fi
cristyda16f162011-02-19 23:52:17 +000017497rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017498
17499 # OK, works on sane cases. Now check whether nonexistent headers
17500 # can be detected and how.
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502/* end confdefs.h. */
17503#include <ac_nonexistent.h>
17504_ACEOF
17505if ac_fn_cxx_try_cpp "$LINENO"; then :
17506 # Broken: success on invalid input.
17507continue
17508else
17509 # Passes both tests.
17510ac_preproc_ok=:
17511break
17512fi
cristyda16f162011-02-19 23:52:17 +000017513rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017514
17515done
17516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017517rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017518if $ac_preproc_ok; then :
17519
17520else
17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17523as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17524See \`config.log' for more details" "$LINENO" 5; }
17525fi
17526
17527ac_ext=c
17528ac_cpp='$CPP $CPPFLAGS'
17529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17531ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532
17533else
17534 _lt_caught_CXX_error=yes
17535fi
cristy73bd4a52010-10-05 11:24:23 +000017536
17537ac_ext=cpp
17538ac_cpp='$CXXCPP $CPPFLAGS'
17539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17542
17543archive_cmds_need_lc_CXX=no
17544allow_undefined_flag_CXX=
17545always_export_symbols_CXX=no
17546archive_expsym_cmds_CXX=
17547compiler_needs_object_CXX=no
17548export_dynamic_flag_spec_CXX=
17549hardcode_direct_CXX=no
17550hardcode_direct_absolute_CXX=no
17551hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017552hardcode_libdir_separator_CXX=
17553hardcode_minus_L_CXX=no
17554hardcode_shlibpath_var_CXX=unsupported
17555hardcode_automatic_CXX=no
17556inherit_rpath_CXX=no
17557module_cmds_CXX=
17558module_expsym_cmds_CXX=
17559link_all_deplibs_CXX=unknown
17560old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017561reload_flag_CXX=$reload_flag
17562reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017563no_undefined_flag_CXX=
17564whole_archive_flag_spec_CXX=
17565enable_shared_with_static_runtimes_CXX=no
17566
17567# Source file extension for C++ test sources.
17568ac_ext=cpp
17569
17570# Object file extension for compiled C++ test sources.
17571objext=o
17572objext_CXX=$objext
17573
17574# No sense in running all these tests if we already determined that
17575# the CXX compiler isn't working. Some variables (like enable_shared)
17576# are currently assumed to apply to all compilers on this platform,
17577# and will be corrupted by setting them based on a non-working compiler.
17578if test "$_lt_caught_CXX_error" != yes; then
17579 # Code to be used in simple compile tests
17580 lt_simple_compile_test_code="int some_variable = 0;"
17581
17582 # Code to be used in simple link tests
17583 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17584
17585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17586
17587
17588
17589
17590
17591
17592# If no C compiler was specified, use CC.
17593LTCC=${LTCC-"$CC"}
17594
17595# If no C compiler flags were specified, use CFLAGS.
17596LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17597
17598# Allow CC to be a program name with arguments.
17599compiler=$CC
17600
17601
17602 # save warnings/boilerplate of simple test code
17603 ac_outfile=conftest.$ac_objext
17604echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17605eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17606_lt_compiler_boilerplate=`cat conftest.err`
17607$RM conftest*
17608
17609 ac_outfile=conftest.$ac_objext
17610echo "$lt_simple_link_test_code" >conftest.$ac_ext
17611eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17612_lt_linker_boilerplate=`cat conftest.err`
17613$RM -r conftest*
17614
17615
17616 # Allow CC to be a program name with arguments.
17617 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017618 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017619 lt_save_LD=$LD
17620 lt_save_GCC=$GCC
17621 GCC=$GXX
17622 lt_save_with_gnu_ld=$with_gnu_ld
17623 lt_save_path_LD=$lt_cv_path_LD
17624 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17625 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17626 else
17627 $as_unset lt_cv_prog_gnu_ld
17628 fi
17629 if test -n "${lt_cv_path_LDCXX+set}"; then
17630 lt_cv_path_LD=$lt_cv_path_LDCXX
17631 else
17632 $as_unset lt_cv_path_LD
17633 fi
17634 test -z "${LDCXX+set}" || LD=$LDCXX
17635 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017636 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017637 compiler=$CC
17638 compiler_CXX=$CC
17639 for cc_temp in $compiler""; do
17640 case $cc_temp in
17641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17643 \-*) ;;
17644 *) break;;
17645 esac
17646done
cristy0c60a692010-11-04 01:09:47 +000017647cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017648
17649
17650 if test -n "$compiler"; then
17651 # We don't want -fno-exception when compiling C++ code, so set the
17652 # no_builtin_flag separately
17653 if test "$GXX" = yes; then
17654 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17655 else
17656 lt_prog_compiler_no_builtin_flag_CXX=
17657 fi
17658
17659 if test "$GXX" = yes; then
17660 # Set up default GNU C++ configuration
17661
17662
17663
17664# Check whether --with-gnu-ld was given.
17665if test "${with_gnu_ld+set}" = set; then :
17666 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17667else
17668 with_gnu_ld=no
17669fi
17670
17671ac_prog=ld
17672if test "$GCC" = yes; then
17673 # Check if gcc -print-prog-name=ld gives a path.
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17675$as_echo_n "checking for ld used by $CC... " >&6; }
17676 case $host in
17677 *-*-mingw*)
17678 # gcc leaves a trailing carriage return which upsets mingw
17679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17680 *)
17681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17682 esac
17683 case $ac_prog in
17684 # Accept absolute paths.
17685 [\\/]* | ?:[\\/]*)
17686 re_direlt='/[^/][^/]*/\.\./'
17687 # Canonicalize the pathname of ld
17688 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17689 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17690 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17691 done
17692 test -z "$LD" && LD="$ac_prog"
17693 ;;
17694 "")
17695 # If it fails, then pretend we aren't using GCC.
17696 ac_prog=ld
17697 ;;
17698 *)
17699 # If it is relative, then search for the first ld in PATH.
17700 with_gnu_ld=unknown
17701 ;;
17702 esac
17703elif test "$with_gnu_ld" = yes; then
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17705$as_echo_n "checking for GNU ld... " >&6; }
17706else
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17708$as_echo_n "checking for non-GNU ld... " >&6; }
17709fi
cristyda16f162011-02-19 23:52:17 +000017710if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017711 $as_echo_n "(cached) " >&6
17712else
17713 if test -z "$LD"; then
17714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17715 for ac_dir in $PATH; do
17716 IFS="$lt_save_ifs"
17717 test -z "$ac_dir" && ac_dir=.
17718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17719 lt_cv_path_LD="$ac_dir/$ac_prog"
17720 # Check to see if the program is GNU ld. I'd rather use --version,
17721 # but apparently some variants of GNU ld only accept -v.
17722 # Break only if it was the GNU/non-GNU ld that we prefer.
17723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17724 *GNU* | *'with BFD'*)
17725 test "$with_gnu_ld" != no && break
17726 ;;
17727 *)
17728 test "$with_gnu_ld" != yes && break
17729 ;;
17730 esac
17731 fi
17732 done
17733 IFS="$lt_save_ifs"
17734else
17735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17736fi
17737fi
17738
17739LD="$lt_cv_path_LD"
17740if test -n "$LD"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17742$as_echo "$LD" >&6; }
17743else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745$as_echo "no" >&6; }
17746fi
cristy98dddb52010-11-04 00:30:15 +000017747test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17749$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017750if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017751 $as_echo_n "(cached) " >&6
17752else
17753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17754case `$LD -v 2>&1 </dev/null` in
17755*GNU* | *'with BFD'*)
17756 lt_cv_prog_gnu_ld=yes
17757 ;;
17758*)
17759 lt_cv_prog_gnu_ld=no
17760 ;;
17761esac
17762fi
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17764$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17765with_gnu_ld=$lt_cv_prog_gnu_ld
17766
17767
17768
17769
17770
17771
17772
17773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17774 # archiving commands below assume that GNU ld is being used.
17775 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017776 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17777 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 +000017778
17779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17781
17782 # If archive_cmds runs LD, not CC, wlarc should be empty
17783 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17784 # investigate it a little bit more. (MM)
17785 wlarc='${wl}'
17786
17787 # ancient GNU ld didn't support --whole-archive et. al.
17788 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17789 $GREP 'no-whole-archive' > /dev/null; then
17790 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17791 else
17792 whole_archive_flag_spec_CXX=
17793 fi
17794 else
17795 with_gnu_ld=no
17796 wlarc=
17797
17798 # A generic and very simple default shared library creation
17799 # command for GNU C++ for the case where it uses the native
17800 # linker, instead of GNU ld. If possible, this setting should
17801 # overridden to take advantage of the native linker features on
17802 # the platform it is being used on.
17803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17804 fi
17805
17806 # Commands to make compiler produce verbose output that lists
17807 # what "hidden" libraries, object files and flags are used when
17808 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017810
17811 else
17812 GXX=no
17813 with_gnu_ld=no
17814 wlarc=
17815 fi
17816
17817 # PORTME: fill in a description of your system's C++ link characteristics
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17819$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17820 ld_shlibs_CXX=yes
17821 case $host_os in
17822 aix3*)
17823 # FIXME: insert proper C++ library support
17824 ld_shlibs_CXX=no
17825 ;;
17826 aix[4-9]*)
17827 if test "$host_cpu" = ia64; then
17828 # On IA64, the linker does run time linking by default, so we don't
17829 # have to do anything special.
17830 aix_use_runtimelinking=no
17831 exp_sym_flag='-Bexport'
17832 no_entry_flag=""
17833 else
17834 aix_use_runtimelinking=no
17835
17836 # Test if we are trying to use run time linking or normal
17837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17838 # need to do runtime linking.
17839 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17840 for ld_flag in $LDFLAGS; do
17841 case $ld_flag in
17842 *-brtl*)
17843 aix_use_runtimelinking=yes
17844 break
17845 ;;
17846 esac
17847 done
17848 ;;
17849 esac
17850
17851 exp_sym_flag='-bexport'
17852 no_entry_flag='-bnoentry'
17853 fi
17854
17855 # When large executables or shared objects are built, AIX ld can
17856 # have problems creating the table of contents. If linking a library
17857 # or program results in "error TOC overflow" add -mminimal-toc to
17858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17860
17861 archive_cmds_CXX=''
17862 hardcode_direct_CXX=yes
17863 hardcode_direct_absolute_CXX=yes
17864 hardcode_libdir_separator_CXX=':'
17865 link_all_deplibs_CXX=yes
17866 file_list_spec_CXX='${wl}-f,'
17867
17868 if test "$GXX" = yes; then
17869 case $host_os in aix4.[012]|aix4.[012].*)
17870 # We only want to do this on AIX 4.2 and lower, the check
17871 # below for broken collect2 doesn't work under 4.3+
17872 collect2name=`${CC} -print-prog-name=collect2`
17873 if test -f "$collect2name" &&
17874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17875 then
17876 # We have reworked collect2
17877 :
17878 else
17879 # We have old collect2
17880 hardcode_direct_CXX=unsupported
17881 # It fails to find uninstalled libraries when the uninstalled
17882 # path is not listed in the libpath. Setting hardcode_minus_L
17883 # to unsupported forces relinking
17884 hardcode_minus_L_CXX=yes
17885 hardcode_libdir_flag_spec_CXX='-L$libdir'
17886 hardcode_libdir_separator_CXX=
17887 fi
17888 esac
17889 shared_flag='-shared'
17890 if test "$aix_use_runtimelinking" = yes; then
17891 shared_flag="$shared_flag "'${wl}-G'
17892 fi
17893 else
17894 # not using gcc
17895 if test "$host_cpu" = ia64; then
17896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17897 # chokes on -Wl,-G. The following line is correct:
17898 shared_flag='-G'
17899 else
17900 if test "$aix_use_runtimelinking" = yes; then
17901 shared_flag='${wl}-G'
17902 else
17903 shared_flag='${wl}-bM:SRE'
17904 fi
17905 fi
17906 fi
17907
17908 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17909 # It seems that -bexpall does not export symbols beginning with
17910 # underscore (_), so it is better to generate a list of symbols to
17911 # export.
17912 always_export_symbols_CXX=yes
17913 if test "$aix_use_runtimelinking" = yes; then
17914 # Warning - without using the other runtime loading flags (-brtl),
17915 # -berok will link without error, but may produce a broken library.
17916 allow_undefined_flag_CXX='-berok'
17917 # Determine the default libpath from the value encoded in an empty
17918 # executable.
cristyda16f162011-02-19 23:52:17 +000017919 if test "${lt_cv_aix_libpath+set}" = set; then
17920 aix_libpath=$lt_cv_aix_libpath
17921else
17922 if ${lt_cv_aix_libpath__CXX+:} false; then :
17923 $as_echo_n "(cached) " >&6
17924else
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017926/* end confdefs.h. */
17927
17928int
17929main ()
17930{
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936if ac_fn_cxx_try_link "$LINENO"; then :
17937
cristyda16f162011-02-19 23:52:17 +000017938 lt_aix_libpath_sed='
17939 /Import File Strings/,/^$/ {
17940 /^0/ {
17941 s/^0 *\([^ ]*\) *$/\1/
17942 p
17943 }
17944 }'
17945 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17946 # Check for a 64-bit object if we didn't find anything.
17947 if test -z "$lt_cv_aix_libpath__CXX"; then
17948 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17949 fi
cristy73bd4a52010-10-05 11:24:23 +000017950fi
17951rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017953 if test -z "$lt_cv_aix_libpath__CXX"; then
17954 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17955 fi
17956
17957fi
17958
17959 aix_libpath=$lt_cv_aix_libpath__CXX
17960fi
cristy73bd4a52010-10-05 11:24:23 +000017961
17962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17963
cristy0c60a692010-11-04 01:09:47 +000017964 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 +000017965 else
17966 if test "$host_cpu" = ia64; then
17967 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17968 allow_undefined_flag_CXX="-z nodefs"
17969 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"
17970 else
17971 # Determine the default libpath from the value encoded in an
17972 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017973 if test "${lt_cv_aix_libpath+set}" = set; then
17974 aix_libpath=$lt_cv_aix_libpath
17975else
17976 if ${lt_cv_aix_libpath__CXX+:} false; then :
17977 $as_echo_n "(cached) " >&6
17978else
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017980/* end confdefs.h. */
17981
17982int
17983main ()
17984{
17985
17986 ;
17987 return 0;
17988}
17989_ACEOF
17990if ac_fn_cxx_try_link "$LINENO"; then :
17991
cristyda16f162011-02-19 23:52:17 +000017992 lt_aix_libpath_sed='
17993 /Import File Strings/,/^$/ {
17994 /^0/ {
17995 s/^0 *\([^ ]*\) *$/\1/
17996 p
17997 }
17998 }'
17999 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18000 # Check for a 64-bit object if we didn't find anything.
18001 if test -z "$lt_cv_aix_libpath__CXX"; then
18002 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18003 fi
cristy73bd4a52010-10-05 11:24:23 +000018004fi
18005rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018007 if test -z "$lt_cv_aix_libpath__CXX"; then
18008 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18009 fi
18010
18011fi
18012
18013 aix_libpath=$lt_cv_aix_libpath__CXX
18014fi
cristy73bd4a52010-10-05 11:24:23 +000018015
18016 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18017 # Warning - without using the other run time loading flags,
18018 # -berok will link without error, but may produce a broken library.
18019 no_undefined_flag_CXX=' ${wl}-bernotok'
18020 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018021 if test "$with_gnu_ld" = yes; then
18022 # We only use this code for GNU lds that support --whole-archive.
18023 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18024 else
18025 # Exported symbols can be pulled into shared objects from archives
18026 whole_archive_flag_spec_CXX='$convenience'
18027 fi
cristy73bd4a52010-10-05 11:24:23 +000018028 archive_cmds_need_lc_CXX=yes
18029 # This is similar to how AIX traditionally builds its shared
18030 # libraries.
18031 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'
18032 fi
18033 fi
18034 ;;
18035
18036 beos*)
18037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18038 allow_undefined_flag_CXX=unsupported
18039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18040 # support --undefined. This deserves some investigation. FIXME
18041 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042 else
18043 ld_shlibs_CXX=no
18044 fi
18045 ;;
18046
18047 chorus*)
18048 case $cc_basename in
18049 *)
18050 # FIXME: insert proper C++ library support
18051 ld_shlibs_CXX=no
18052 ;;
18053 esac
18054 ;;
18055
18056 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018057 case $GXX,$cc_basename in
18058 ,cl* | no,cl*)
18059 # Native MSVC
18060 # hardcode_libdir_flag_spec is actually meaningless, as there is
18061 # no search path for DLLs.
18062 hardcode_libdir_flag_spec_CXX=' '
18063 allow_undefined_flag_CXX=unsupported
18064 always_export_symbols_CXX=yes
18065 file_list_spec_CXX='@'
18066 # Tell ltmain to make .lib files, not .a files.
18067 libext=lib
18068 # Tell ltmain to make .dll files, not .so files.
18069 shrext_cmds=".dll"
18070 # FIXME: Setting linknames here is a bad hack.
18071 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18072 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18073 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18074 else
18075 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18076 fi~
18077 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18078 linknames='
18079 # The linker will not automatically build a static lib if we build a DLL.
18080 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18081 enable_shared_with_static_runtimes_CXX=yes
18082 # Don't use ranlib
18083 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18084 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18085 lt_tool_outputfile="@TOOL_OUTPUT@"~
18086 case $lt_outputfile in
18087 *.exe|*.EXE) ;;
18088 *)
18089 lt_outputfile="$lt_outputfile.exe"
18090 lt_tool_outputfile="$lt_tool_outputfile.exe"
18091 ;;
18092 esac~
18093 func_to_tool_file "$lt_outputfile"~
18094 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18095 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18096 $RM "$lt_outputfile.manifest";
18097 fi'
18098 ;;
18099 *)
18100 # g++
18101 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18102 # as there is no search path for DLLs.
18103 hardcode_libdir_flag_spec_CXX='-L$libdir'
18104 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18105 allow_undefined_flag_CXX=unsupported
18106 always_export_symbols_CXX=no
18107 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018108
cristyda16f162011-02-19 23:52:17 +000018109 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18110 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'
18111 # If the export-symbols file already is a .def file (1st line
18112 # is EXPORTS), use it as is; otherwise, prepend...
18113 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18114 cp $export_symbols $output_objdir/$soname.def;
18115 else
18116 echo EXPORTS > $output_objdir/$soname.def;
18117 cat $export_symbols >> $output_objdir/$soname.def;
18118 fi~
18119 $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'
18120 else
18121 ld_shlibs_CXX=no
18122 fi
18123 ;;
18124 esac
18125 ;;
cristy73bd4a52010-10-05 11:24:23 +000018126 darwin* | rhapsody*)
18127
18128
18129 archive_cmds_need_lc_CXX=no
18130 hardcode_direct_CXX=no
18131 hardcode_automatic_CXX=yes
18132 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018133 if test "$lt_cv_ld_force_load" = "yes"; then
18134 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 +000018135
cristy0c60a692010-11-04 01:09:47 +000018136 else
18137 whole_archive_flag_spec_CXX=''
18138 fi
cristy73bd4a52010-10-05 11:24:23 +000018139 link_all_deplibs_CXX=yes
18140 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18141 case $cc_basename in
18142 ifort*) _lt_dar_can_shared=yes ;;
18143 *) _lt_dar_can_shared=$GCC ;;
18144 esac
18145 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018146 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018147 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}"
18148 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18149 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}"
18150 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}"
18151 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18152 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}"
18153 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}"
18154 fi
18155
18156 else
18157 ld_shlibs_CXX=no
18158 fi
18159
18160 ;;
18161
18162 dgux*)
18163 case $cc_basename in
18164 ec++*)
18165 # FIXME: insert proper C++ library support
18166 ld_shlibs_CXX=no
18167 ;;
18168 ghcx*)
18169 # Green Hills C++ Compiler
18170 # FIXME: insert proper C++ library support
18171 ld_shlibs_CXX=no
18172 ;;
18173 *)
18174 # FIXME: insert proper C++ library support
18175 ld_shlibs_CXX=no
18176 ;;
18177 esac
18178 ;;
18179
cristy99bd5232011-12-07 14:38:20 +000018180 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018181 # C++ shared libraries reported to be fairly broken before
18182 # switch to ELF
18183 ld_shlibs_CXX=no
18184 ;;
18185
18186 freebsd-elf*)
18187 archive_cmds_need_lc_CXX=no
18188 ;;
18189
18190 freebsd* | dragonfly*)
18191 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18192 # conventions
18193 ld_shlibs_CXX=yes
18194 ;;
18195
18196 gnu*)
18197 ;;
18198
cristy0c60a692010-11-04 01:09:47 +000018199 haiku*)
18200 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18201 link_all_deplibs_CXX=yes
18202 ;;
18203
cristy73bd4a52010-10-05 11:24:23 +000018204 hpux9*)
18205 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18206 hardcode_libdir_separator_CXX=:
18207 export_dynamic_flag_spec_CXX='${wl}-E'
18208 hardcode_direct_CXX=yes
18209 hardcode_minus_L_CXX=yes # Not in the search PATH,
18210 # but as the default
18211 # location of the library.
18212
18213 case $cc_basename in
18214 CC*)
18215 # FIXME: insert proper C++ library support
18216 ld_shlibs_CXX=no
18217 ;;
18218 aCC*)
18219 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'
18220 # Commands to make compiler produce verbose output that lists
18221 # what "hidden" libraries, object files and flags are used when
18222 # linking a shared library.
18223 #
18224 # There doesn't appear to be a way to prevent this compiler from
18225 # explicitly linking system object files so we need to strip them
18226 # from the output so that they don't get included in the library
18227 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018228 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 +000018229 ;;
18230 *)
18231 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018232 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 +000018233 else
18234 # FIXME: insert proper C++ library support
18235 ld_shlibs_CXX=no
18236 fi
18237 ;;
18238 esac
18239 ;;
18240
18241 hpux10*|hpux11*)
18242 if test $with_gnu_ld = no; then
18243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18244 hardcode_libdir_separator_CXX=:
18245
18246 case $host_cpu in
18247 hppa*64*|ia64*)
18248 ;;
18249 *)
18250 export_dynamic_flag_spec_CXX='${wl}-E'
18251 ;;
18252 esac
18253 fi
18254 case $host_cpu in
18255 hppa*64*|ia64*)
18256 hardcode_direct_CXX=no
18257 hardcode_shlibpath_var_CXX=no
18258 ;;
18259 *)
18260 hardcode_direct_CXX=yes
18261 hardcode_direct_absolute_CXX=yes
18262 hardcode_minus_L_CXX=yes # Not in the search PATH,
18263 # but as the default
18264 # location of the library.
18265 ;;
18266 esac
18267
18268 case $cc_basename in
18269 CC*)
18270 # FIXME: insert proper C++ library support
18271 ld_shlibs_CXX=no
18272 ;;
18273 aCC*)
18274 case $host_cpu in
18275 hppa*64*)
18276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18277 ;;
18278 ia64*)
18279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18280 ;;
18281 *)
18282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18283 ;;
18284 esac
18285 # Commands to make compiler produce verbose output that lists
18286 # what "hidden" libraries, object files and flags are used when
18287 # linking a shared library.
18288 #
18289 # There doesn't appear to be a way to prevent this compiler from
18290 # explicitly linking system object files so we need to strip them
18291 # from the output so that they don't get included in the library
18292 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018293 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 +000018294 ;;
18295 *)
18296 if test "$GXX" = yes; then
18297 if test $with_gnu_ld = no; then
18298 case $host_cpu in
18299 hppa*64*)
18300 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18301 ;;
18302 ia64*)
cristyda16f162011-02-19 23:52:17 +000018303 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 +000018304 ;;
18305 *)
cristyda16f162011-02-19 23:52:17 +000018306 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 +000018307 ;;
18308 esac
18309 fi
18310 else
18311 # FIXME: insert proper C++ library support
18312 ld_shlibs_CXX=no
18313 fi
18314 ;;
18315 esac
18316 ;;
18317
18318 interix[3-9]*)
18319 hardcode_direct_CXX=no
18320 hardcode_shlibpath_var_CXX=no
18321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18322 export_dynamic_flag_spec_CXX='${wl}-E'
18323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18324 # Instead, shared libraries are loaded at an image base (0x10000000 by
18325 # default) and relocated if they conflict, which is a slow very memory
18326 # consuming and fragmenting process. To avoid this, we pick a random,
18327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18329 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'
18330 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'
18331 ;;
18332 irix5* | irix6*)
18333 case $cc_basename in
18334 CC*)
18335 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018336 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 +000018337
18338 # Archives containing C++ object files must be created using
18339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18340 # necessary to make sure instantiated templates are included
18341 # in the archive.
18342 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18343 ;;
18344 *)
18345 if test "$GXX" = yes; then
18346 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018347 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 +000018348 else
cristyda16f162011-02-19 23:52:17 +000018349 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 +000018350 fi
18351 fi
18352 link_all_deplibs_CXX=yes
18353 ;;
18354 esac
18355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18356 hardcode_libdir_separator_CXX=:
18357 inherit_rpath_CXX=yes
18358 ;;
18359
cristy0c60a692010-11-04 01:09:47 +000018360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018361 case $cc_basename in
18362 KCC*)
18363 # Kuck and Associates, Inc. (KAI) C++ Compiler
18364
18365 # KCC will only create a shared library if the output file
18366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18367 # to its proper name (with version) after linking.
18368 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'
18369 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'
18370 # Commands to make compiler produce verbose output that lists
18371 # what "hidden" libraries, object files and flags are used when
18372 # linking a shared library.
18373 #
18374 # There doesn't appear to be a way to prevent this compiler from
18375 # explicitly linking system object files so we need to strip them
18376 # from the output so that they don't get included in the library
18377 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018378 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 +000018379
18380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18382
18383 # Archives containing C++ object files must be created using
18384 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18385 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18386 ;;
18387 icpc* | ecpc* )
18388 # Intel C++
18389 with_gnu_ld=yes
18390 # version 8.0 and above of icpc choke on multiply defined symbols
18391 # if we add $predep_objects and $postdep_objects, however 7.1 and
18392 # earlier do not add the objects themselves.
18393 case `$CC -V 2>&1` in
18394 *"Version 7."*)
18395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18396 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'
18397 ;;
18398 *) # Version 8.0 or newer
18399 tmp_idyn=
18400 case $host_cpu in
18401 ia64*) tmp_idyn=' -i_dynamic';;
18402 esac
18403 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18404 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'
18405 ;;
18406 esac
18407 archive_cmds_need_lc_CXX=no
18408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18410 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18411 ;;
18412 pgCC* | pgcpp*)
18413 # Portland Group C++ compiler
18414 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018415 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018416 prelink_cmds_CXX='tpldir=Template.dir~
18417 rm -rf $tpldir~
18418 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018419 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018420 old_archive_cmds_CXX='tpldir=Template.dir~
18421 rm -rf $tpldir~
18422 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018423 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018424 $RANLIB $oldlib'
18425 archive_cmds_CXX='tpldir=Template.dir~
18426 rm -rf $tpldir~
18427 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018428 $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 +000018429 archive_expsym_cmds_CXX='tpldir=Template.dir~
18430 rm -rf $tpldir~
18431 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018432 $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 +000018433 ;;
cristy0c60a692010-11-04 01:09:47 +000018434 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18436 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'
18437 ;;
18438 esac
18439
18440 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18441 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018442 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 +000018443 ;;
18444 cxx*)
18445 # Compaq C++
18446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18447 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'
18448
18449 runpath_var=LD_RUN_PATH
18450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18451 hardcode_libdir_separator_CXX=:
18452
18453 # Commands to make compiler produce verbose output that lists
18454 # what "hidden" libraries, object files and flags are used when
18455 # linking a shared library.
18456 #
18457 # There doesn't appear to be a way to prevent this compiler from
18458 # explicitly linking system object files so we need to strip them
18459 # from the output so that they don't get included in the library
18460 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018461 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 +000018462 ;;
cristy0c60a692010-11-04 01:09:47 +000018463 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018464 # IBM XL 8.0 on PPC, with GNU ld
18465 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18467 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468 if test "x$supports_anon_versioning" = xyes; then
18469 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18471 echo "local: *; };" >> $output_objdir/$libname.ver~
18472 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18473 fi
18474 ;;
18475 *)
18476 case `$CC -V 2>&1 | sed 5q` in
18477 *Sun\ C*)
18478 # Sun C++ 5.9
18479 no_undefined_flag_CXX=' -zdefs'
18480 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18481 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'
18482 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018483 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 +000018484 compiler_needs_object_CXX=yes
18485
18486 # Not sure whether something based on
18487 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18488 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018489 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018490
18491 # Archives containing C++ object files must be created using
18492 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18493 # necessary to make sure instantiated templates are included
18494 # in the archive.
18495 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18496 ;;
18497 esac
18498 ;;
18499 esac
18500 ;;
18501
18502 lynxos*)
18503 # FIXME: insert proper C++ library support
18504 ld_shlibs_CXX=no
18505 ;;
18506
18507 m88k*)
18508 # FIXME: insert proper C++ library support
18509 ld_shlibs_CXX=no
18510 ;;
18511
18512 mvs*)
18513 case $cc_basename in
18514 cxx*)
18515 # FIXME: insert proper C++ library support
18516 ld_shlibs_CXX=no
18517 ;;
18518 *)
18519 # FIXME: insert proper C++ library support
18520 ld_shlibs_CXX=no
18521 ;;
18522 esac
18523 ;;
18524
18525 netbsd*)
18526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18527 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18528 wlarc=
18529 hardcode_libdir_flag_spec_CXX='-R$libdir'
18530 hardcode_direct_CXX=yes
18531 hardcode_shlibpath_var_CXX=no
18532 fi
18533 # Workaround some broken pre-1.5 toolchains
18534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18535 ;;
18536
18537 *nto* | *qnx*)
18538 ld_shlibs_CXX=yes
18539 ;;
18540
18541 openbsd2*)
18542 # C++ shared libraries are fairly broken
18543 ld_shlibs_CXX=no
18544 ;;
18545
18546 openbsd*)
18547 if test -f /usr/libexec/ld.so; then
18548 hardcode_direct_CXX=yes
18549 hardcode_shlibpath_var_CXX=no
18550 hardcode_direct_absolute_CXX=yes
18551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18554 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18555 export_dynamic_flag_spec_CXX='${wl}-E'
18556 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18557 fi
cristy0c60a692010-11-04 01:09:47 +000018558 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018559 else
18560 ld_shlibs_CXX=no
18561 fi
18562 ;;
18563
18564 osf3* | osf4* | osf5*)
18565 case $cc_basename in
18566 KCC*)
18567 # Kuck and Associates, Inc. (KAI) C++ Compiler
18568
18569 # KCC will only create a shared library if the output file
18570 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18571 # to its proper name (with version) after linking.
18572 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'
18573
18574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18575 hardcode_libdir_separator_CXX=:
18576
18577 # Archives containing C++ object files must be created using
18578 # the KAI C++ compiler.
18579 case $host in
18580 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18581 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18582 esac
18583 ;;
18584 RCC*)
18585 # Rational C++ 2.4.1
18586 # FIXME: insert proper C++ library support
18587 ld_shlibs_CXX=no
18588 ;;
18589 cxx*)
18590 case $host in
18591 osf3*)
18592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018593 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 +000018594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18595 ;;
18596 *)
18597 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018598 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 +000018599 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18600 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018601 $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 +000018602 $RM $lib.exp'
18603 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18604 ;;
18605 esac
18606
18607 hardcode_libdir_separator_CXX=:
18608
18609 # Commands to make compiler produce verbose output that lists
18610 # what "hidden" libraries, object files and flags are used when
18611 # linking a shared library.
18612 #
18613 # There doesn't appear to be a way to prevent this compiler from
18614 # explicitly linking system object files so we need to strip them
18615 # from the output so that they don't get included in the library
18616 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018617 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 +000018618 ;;
18619 *)
18620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18621 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18622 case $host in
18623 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018624 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 +000018625 ;;
18626 *)
cristyda16f162011-02-19 23:52:17 +000018627 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 +000018628 ;;
18629 esac
18630
18631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18632 hardcode_libdir_separator_CXX=:
18633
18634 # Commands to make compiler produce verbose output that lists
18635 # what "hidden" libraries, object files and flags are used when
18636 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018638
18639 else
18640 # FIXME: insert proper C++ library support
18641 ld_shlibs_CXX=no
18642 fi
18643 ;;
18644 esac
18645 ;;
18646
18647 psos*)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18650 ;;
18651
18652 sunos4*)
18653 case $cc_basename in
18654 CC*)
18655 # Sun C++ 4.x
18656 # FIXME: insert proper C++ library support
18657 ld_shlibs_CXX=no
18658 ;;
18659 lcc*)
18660 # Lucid
18661 # FIXME: insert proper C++ library support
18662 ld_shlibs_CXX=no
18663 ;;
18664 *)
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 esac
18669 ;;
18670
18671 solaris*)
18672 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018673 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018674 # Sun C++ 4.2, 5.x and Centerline C++
18675 archive_cmds_need_lc_CXX=yes
18676 no_undefined_flag_CXX=' -zdefs'
18677 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18678 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18679 $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'
18680
18681 hardcode_libdir_flag_spec_CXX='-R$libdir'
18682 hardcode_shlibpath_var_CXX=no
18683 case $host_os in
18684 solaris2.[0-5] | solaris2.[0-5].*) ;;
18685 *)
18686 # The compiler driver will combine and reorder linker options,
18687 # but understands `-z linker_flag'.
18688 # Supported since Solaris 2.6 (maybe 2.5.1?)
18689 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18690 ;;
18691 esac
18692 link_all_deplibs_CXX=yes
18693
cristy0c60a692010-11-04 01:09:47 +000018694 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018695
18696 # Archives containing C++ object files must be created using
18697 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18698 # necessary to make sure instantiated templates are included
18699 # in the archive.
18700 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18701 ;;
18702 gcx*)
18703 # Green Hills C++ Compiler
18704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18705
18706 # The C++ compiler must be used to create the archive.
18707 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18708 ;;
18709 *)
18710 # GNU C++ compiler with Solaris linker
18711 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18712 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18713 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018714 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 +000018715 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 +000018716 $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 +000018717
18718 # Commands to make compiler produce verbose output that lists
18719 # what "hidden" libraries, object files and flags are used when
18720 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018722 else
18723 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18724 # platform.
18725 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18726 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18727 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18728
18729 # Commands to make compiler produce verbose output that lists
18730 # what "hidden" libraries, object files and flags are used when
18731 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018732 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018733 fi
18734
18735 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18736 case $host_os in
18737 solaris2.[0-5] | solaris2.[0-5].*) ;;
18738 *)
18739 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18740 ;;
18741 esac
18742 fi
18743 ;;
18744 esac
18745 ;;
18746
18747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18748 no_undefined_flag_CXX='${wl}-z,text'
18749 archive_cmds_need_lc_CXX=no
18750 hardcode_shlibpath_var_CXX=no
18751 runpath_var='LD_RUN_PATH'
18752
18753 case $cc_basename in
18754 CC*)
18755 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18756 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 ;;
18758 *)
18759 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18760 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18761 ;;
18762 esac
18763 ;;
18764
18765 sysv5* | sco3.2v5* | sco5v6*)
18766 # Note: We can NOT use -z defs as we might desire, because we do not
18767 # link with -lc, and that would cause any symbols used from libc to
18768 # always be unresolved, which means just about no library would
18769 # ever link correctly. If we're not using GNU ld we use -z text
18770 # though, which does catch some bad symbols but isn't as heavy-handed
18771 # as -z defs.
18772 no_undefined_flag_CXX='${wl}-z,text'
18773 allow_undefined_flag_CXX='${wl}-z,nodefs'
18774 archive_cmds_need_lc_CXX=no
18775 hardcode_shlibpath_var_CXX=no
18776 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18777 hardcode_libdir_separator_CXX=':'
18778 link_all_deplibs_CXX=yes
18779 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18780 runpath_var='LD_RUN_PATH'
18781
18782 case $cc_basename in
18783 CC*)
18784 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18785 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 +000018786 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18787 '"$old_archive_cmds_CXX"
18788 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18789 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018790 ;;
18791 *)
18792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 ;;
18795 esac
18796 ;;
18797
18798 tandem*)
18799 case $cc_basename in
18800 NCC*)
18801 # NonStop-UX NCC 3.20
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 ;;
18805 *)
18806 # FIXME: insert proper C++ library support
18807 ld_shlibs_CXX=no
18808 ;;
18809 esac
18810 ;;
18811
18812 vxworks*)
18813 # FIXME: insert proper C++ library support
18814 ld_shlibs_CXX=no
18815 ;;
18816
18817 *)
18818 # FIXME: insert proper C++ library support
18819 ld_shlibs_CXX=no
18820 ;;
18821 esac
18822
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18824$as_echo "$ld_shlibs_CXX" >&6; }
18825 test "$ld_shlibs_CXX" = no && can_build_shared=no
18826
18827 GCC_CXX="$GXX"
18828 LD_CXX="$LD"
18829
18830 ## CAVEAT EMPTOR:
18831 ## There is no encapsulation within the following macros, do not change
18832 ## the running order or otherwise move them around unless you know exactly
18833 ## what you are doing...
18834 # Dependencies to place before and after the object being linked:
18835predep_objects_CXX=
18836postdep_objects_CXX=
18837predeps_CXX=
18838postdeps_CXX=
18839compiler_lib_search_path_CXX=
18840
18841cat > conftest.$ac_ext <<_LT_EOF
18842class Foo
18843{
18844public:
18845 Foo (void) { a = 0; }
18846private:
18847 int a;
18848};
18849_LT_EOF
18850
cristyda16f162011-02-19 23:52:17 +000018851
18852_lt_libdeps_save_CFLAGS=$CFLAGS
18853case "$CC $CFLAGS " in #(
18854*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18855*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018856*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018857esac
18858
cristy73bd4a52010-10-05 11:24:23 +000018859if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18860 (eval $ac_compile) 2>&5
18861 ac_status=$?
18862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18863 test $ac_status = 0; }; then
18864 # Parse the compiler output and extract the necessary
18865 # objects, libraries and library flags.
18866
18867 # Sentinel used to keep track of whether or not we are before
18868 # the conftest object file.
18869 pre_test_object_deps_done=no
18870
18871 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018872 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018873
18874 -L* | -R* | -l*)
18875 # Some compilers place space between "-{L,R}" and the path.
18876 # Remove the space.
18877 if test $p = "-L" ||
18878 test $p = "-R"; then
18879 prev=$p
18880 continue
cristy73bd4a52010-10-05 11:24:23 +000018881 fi
18882
cristyda16f162011-02-19 23:52:17 +000018883 # Expand the sysroot to ease extracting the directories later.
18884 if test -z "$prev"; then
18885 case $p in
18886 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18887 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18888 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18889 esac
18890 fi
18891 case $p in
18892 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18893 esac
cristy73bd4a52010-10-05 11:24:23 +000018894 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018895 case ${prev} in
18896 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018897 # Internal compiler library paths should come after those
18898 # provided the user. The postdeps already come after the
18899 # user supplied libs so there is no need to process them.
18900 if test -z "$compiler_lib_search_path_CXX"; then
18901 compiler_lib_search_path_CXX="${prev}${p}"
18902 else
18903 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18904 fi
18905 ;;
18906 # The "-l" case would never come before the object being
18907 # linked, so don't bother handling this case.
18908 esac
18909 else
18910 if test -z "$postdeps_CXX"; then
18911 postdeps_CXX="${prev}${p}"
18912 else
18913 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18914 fi
18915 fi
cristyda16f162011-02-19 23:52:17 +000018916 prev=
cristy73bd4a52010-10-05 11:24:23 +000018917 ;;
18918
cristyda16f162011-02-19 23:52:17 +000018919 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018920 *.$objext)
18921 # This assumes that the test object file only shows up
18922 # once in the compiler output.
18923 if test "$p" = "conftest.$objext"; then
18924 pre_test_object_deps_done=yes
18925 continue
18926 fi
18927
18928 if test "$pre_test_object_deps_done" = no; then
18929 if test -z "$predep_objects_CXX"; then
18930 predep_objects_CXX="$p"
18931 else
18932 predep_objects_CXX="$predep_objects_CXX $p"
18933 fi
18934 else
18935 if test -z "$postdep_objects_CXX"; then
18936 postdep_objects_CXX="$p"
18937 else
18938 postdep_objects_CXX="$postdep_objects_CXX $p"
18939 fi
18940 fi
18941 ;;
18942
18943 *) ;; # Ignore the rest.
18944
18945 esac
18946 done
18947
18948 # Clean up.
18949 rm -f a.out a.exe
18950else
18951 echo "libtool.m4: error: problem compiling CXX test program"
18952fi
18953
18954$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018955CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018956
18957# PORTME: override above test on systems where it is broken
18958case $host_os in
18959interix[3-9]*)
18960 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18961 # hack all around it, let's just trust "g++" to DTRT.
18962 predep_objects_CXX=
18963 postdep_objects_CXX=
18964 postdeps_CXX=
18965 ;;
18966
18967linux*)
18968 case `$CC -V 2>&1 | sed 5q` in
18969 *Sun\ C*)
18970 # Sun C++ 5.9
18971
18972 # The more standards-conforming stlport4 library is
18973 # incompatible with the Cstd library. Avoid specifying
18974 # it if it's in CXXFLAGS. Ignore libCrun as
18975 # -library=stlport4 depends on it.
18976 case " $CXX $CXXFLAGS " in
18977 *" -library=stlport4 "*)
18978 solaris_use_stlport4=yes
18979 ;;
18980 esac
18981
18982 if test "$solaris_use_stlport4" != yes; then
18983 postdeps_CXX='-library=Cstd -library=Crun'
18984 fi
18985 ;;
18986 esac
18987 ;;
18988
18989solaris*)
18990 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018991 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018992 # The more standards-conforming stlport4 library is
18993 # incompatible with the Cstd library. Avoid specifying
18994 # it if it's in CXXFLAGS. Ignore libCrun as
18995 # -library=stlport4 depends on it.
18996 case " $CXX $CXXFLAGS " in
18997 *" -library=stlport4 "*)
18998 solaris_use_stlport4=yes
18999 ;;
19000 esac
19001
19002 # Adding this requires a known-good setup of shared libraries for
19003 # Sun compiler versions before 5.6, else PIC objects from an old
19004 # archive will be linked into the output, leading to subtle bugs.
19005 if test "$solaris_use_stlport4" != yes; then
19006 postdeps_CXX='-library=Cstd -library=Crun'
19007 fi
19008 ;;
19009 esac
19010 ;;
19011esac
19012
19013
19014case " $postdeps_CXX " in
19015*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19016esac
19017 compiler_lib_search_dirs_CXX=
19018if test -n "${compiler_lib_search_path_CXX}"; then
19019 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19020fi
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052 lt_prog_compiler_wl_CXX=
19053lt_prog_compiler_pic_CXX=
19054lt_prog_compiler_static_CXX=
19055
cristy73bd4a52010-10-05 11:24:23 +000019056
19057 # C++ specific cases for pic, static, wl, etc.
19058 if test "$GXX" = yes; then
19059 lt_prog_compiler_wl_CXX='-Wl,'
19060 lt_prog_compiler_static_CXX='-static'
19061
19062 case $host_os in
19063 aix*)
19064 # All AIX code is PIC.
19065 if test "$host_cpu" = ia64; then
19066 # AIX 5 now supports IA64 processor
19067 lt_prog_compiler_static_CXX='-Bstatic'
19068 fi
19069 ;;
19070
19071 amigaos*)
19072 case $host_cpu in
19073 powerpc)
19074 # see comment about AmigaOS4 .so support
19075 lt_prog_compiler_pic_CXX='-fPIC'
19076 ;;
19077 m68k)
19078 # FIXME: we need at least 68020 code to build shared libraries, but
19079 # adding the `-m68020' flag to GCC prevents building anything better,
19080 # like `-m68040'.
19081 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19082 ;;
19083 esac
19084 ;;
19085
19086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19087 # PIC is the default for these OSes.
19088 ;;
19089 mingw* | cygwin* | os2* | pw32* | cegcc*)
19090 # This hack is so that the source file can tell whether it is being
19091 # built for inclusion in a dll (and should export symbols for example).
19092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19093 # (--disable-auto-import) libraries
19094 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19095 ;;
19096 darwin* | rhapsody*)
19097 # PIC is the default on this platform
19098 # Common symbols not allowed in MH_DYLIB files
19099 lt_prog_compiler_pic_CXX='-fno-common'
19100 ;;
19101 *djgpp*)
19102 # DJGPP does not support shared libraries at all
19103 lt_prog_compiler_pic_CXX=
19104 ;;
cristy0c60a692010-11-04 01:09:47 +000019105 haiku*)
19106 # PIC is the default for Haiku.
19107 # The "-static" flag exists, but is broken.
19108 lt_prog_compiler_static_CXX=
19109 ;;
cristy73bd4a52010-10-05 11:24:23 +000019110 interix[3-9]*)
19111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19112 # Instead, we relocate shared libraries at runtime.
19113 ;;
19114 sysv4*MP*)
19115 if test -d /usr/nec; then
19116 lt_prog_compiler_pic_CXX=-Kconform_pic
19117 fi
19118 ;;
19119 hpux*)
19120 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19121 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19122 # sets the default TLS model and affects inlining.
19123 case $host_cpu in
19124 hppa*64*)
19125 ;;
19126 *)
19127 lt_prog_compiler_pic_CXX='-fPIC'
19128 ;;
19129 esac
19130 ;;
19131 *qnx* | *nto*)
19132 # QNX uses GNU C++, but need to define -shared option too, otherwise
19133 # it will coredump.
19134 lt_prog_compiler_pic_CXX='-fPIC -shared'
19135 ;;
19136 *)
19137 lt_prog_compiler_pic_CXX='-fPIC'
19138 ;;
19139 esac
19140 else
19141 case $host_os in
19142 aix[4-9]*)
19143 # All AIX code is PIC.
19144 if test "$host_cpu" = ia64; then
19145 # AIX 5 now supports IA64 processor
19146 lt_prog_compiler_static_CXX='-Bstatic'
19147 else
19148 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19149 fi
19150 ;;
19151 chorus*)
19152 case $cc_basename in
19153 cxch68*)
19154 # Green Hills C++ Compiler
19155 # _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"
19156 ;;
19157 esac
19158 ;;
cristyda16f162011-02-19 23:52:17 +000019159 mingw* | cygwin* | os2* | pw32* | cegcc*)
19160 # This hack is so that the source file can tell whether it is being
19161 # built for inclusion in a dll (and should export symbols for example).
19162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19163 ;;
cristy73bd4a52010-10-05 11:24:23 +000019164 dgux*)
19165 case $cc_basename in
19166 ec++*)
19167 lt_prog_compiler_pic_CXX='-KPIC'
19168 ;;
19169 ghcx*)
19170 # Green Hills C++ Compiler
19171 lt_prog_compiler_pic_CXX='-pic'
19172 ;;
19173 *)
19174 ;;
19175 esac
19176 ;;
19177 freebsd* | dragonfly*)
19178 # FreeBSD uses GNU C++
19179 ;;
19180 hpux9* | hpux10* | hpux11*)
19181 case $cc_basename in
19182 CC*)
19183 lt_prog_compiler_wl_CXX='-Wl,'
19184 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19185 if test "$host_cpu" != ia64; then
19186 lt_prog_compiler_pic_CXX='+Z'
19187 fi
19188 ;;
19189 aCC*)
19190 lt_prog_compiler_wl_CXX='-Wl,'
19191 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19192 case $host_cpu in
19193 hppa*64*|ia64*)
19194 # +Z the default
19195 ;;
19196 *)
19197 lt_prog_compiler_pic_CXX='+Z'
19198 ;;
19199 esac
19200 ;;
19201 *)
19202 ;;
19203 esac
19204 ;;
19205 interix*)
19206 # This is c89, which is MS Visual C++ (no shared libs)
19207 # Anyone wants to do a port?
19208 ;;
19209 irix5* | irix6* | nonstopux*)
19210 case $cc_basename in
19211 CC*)
19212 lt_prog_compiler_wl_CXX='-Wl,'
19213 lt_prog_compiler_static_CXX='-non_shared'
19214 # CC pic flag -KPIC is the default.
19215 ;;
19216 *)
19217 ;;
19218 esac
19219 ;;
cristy0c60a692010-11-04 01:09:47 +000019220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019221 case $cc_basename in
19222 KCC*)
19223 # KAI C++ Compiler
19224 lt_prog_compiler_wl_CXX='--backend -Wl,'
19225 lt_prog_compiler_pic_CXX='-fPIC'
19226 ;;
19227 ecpc* )
19228 # old Intel C++ for x86_64 which still supported -KPIC.
19229 lt_prog_compiler_wl_CXX='-Wl,'
19230 lt_prog_compiler_pic_CXX='-KPIC'
19231 lt_prog_compiler_static_CXX='-static'
19232 ;;
19233 icpc* )
19234 # Intel C++, used to be incompatible with GCC.
19235 # ICC 10 doesn't accept -KPIC any more.
19236 lt_prog_compiler_wl_CXX='-Wl,'
19237 lt_prog_compiler_pic_CXX='-fPIC'
19238 lt_prog_compiler_static_CXX='-static'
19239 ;;
19240 pgCC* | pgcpp*)
19241 # Portland Group C++ compiler
19242 lt_prog_compiler_wl_CXX='-Wl,'
19243 lt_prog_compiler_pic_CXX='-fpic'
19244 lt_prog_compiler_static_CXX='-Bstatic'
19245 ;;
19246 cxx*)
19247 # Compaq C++
19248 # Make sure the PIC flag is empty. It appears that all Alpha
19249 # Linux and Compaq Tru64 Unix objects are PIC.
19250 lt_prog_compiler_pic_CXX=
19251 lt_prog_compiler_static_CXX='-non_shared'
19252 ;;
cristy0c60a692010-11-04 01:09:47 +000019253 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19254 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019255 lt_prog_compiler_wl_CXX='-Wl,'
19256 lt_prog_compiler_pic_CXX='-qpic'
19257 lt_prog_compiler_static_CXX='-qstaticlink'
19258 ;;
19259 *)
19260 case `$CC -V 2>&1 | sed 5q` in
19261 *Sun\ C*)
19262 # Sun C++ 5.9
19263 lt_prog_compiler_pic_CXX='-KPIC'
19264 lt_prog_compiler_static_CXX='-Bstatic'
19265 lt_prog_compiler_wl_CXX='-Qoption ld '
19266 ;;
19267 esac
19268 ;;
19269 esac
19270 ;;
19271 lynxos*)
19272 ;;
19273 m88k*)
19274 ;;
19275 mvs*)
19276 case $cc_basename in
19277 cxx*)
19278 lt_prog_compiler_pic_CXX='-W c,exportall'
19279 ;;
19280 *)
19281 ;;
19282 esac
19283 ;;
19284 netbsd*)
19285 ;;
19286 *qnx* | *nto*)
19287 # QNX uses GNU C++, but need to define -shared option too, otherwise
19288 # it will coredump.
19289 lt_prog_compiler_pic_CXX='-fPIC -shared'
19290 ;;
19291 osf3* | osf4* | osf5*)
19292 case $cc_basename in
19293 KCC*)
19294 lt_prog_compiler_wl_CXX='--backend -Wl,'
19295 ;;
19296 RCC*)
19297 # Rational C++ 2.4.1
19298 lt_prog_compiler_pic_CXX='-pic'
19299 ;;
19300 cxx*)
19301 # Digital/Compaq C++
19302 lt_prog_compiler_wl_CXX='-Wl,'
19303 # Make sure the PIC flag is empty. It appears that all Alpha
19304 # Linux and Compaq Tru64 Unix objects are PIC.
19305 lt_prog_compiler_pic_CXX=
19306 lt_prog_compiler_static_CXX='-non_shared'
19307 ;;
19308 *)
19309 ;;
19310 esac
19311 ;;
19312 psos*)
19313 ;;
19314 solaris*)
19315 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019316 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019317 # Sun C++ 4.2, 5.x and Centerline C++
19318 lt_prog_compiler_pic_CXX='-KPIC'
19319 lt_prog_compiler_static_CXX='-Bstatic'
19320 lt_prog_compiler_wl_CXX='-Qoption ld '
19321 ;;
19322 gcx*)
19323 # Green Hills C++ Compiler
19324 lt_prog_compiler_pic_CXX='-PIC'
19325 ;;
19326 *)
19327 ;;
19328 esac
19329 ;;
19330 sunos4*)
19331 case $cc_basename in
19332 CC*)
19333 # Sun C++ 4.x
19334 lt_prog_compiler_pic_CXX='-pic'
19335 lt_prog_compiler_static_CXX='-Bstatic'
19336 ;;
19337 lcc*)
19338 # Lucid
19339 lt_prog_compiler_pic_CXX='-pic'
19340 ;;
19341 *)
19342 ;;
19343 esac
19344 ;;
19345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19346 case $cc_basename in
19347 CC*)
19348 lt_prog_compiler_wl_CXX='-Wl,'
19349 lt_prog_compiler_pic_CXX='-KPIC'
19350 lt_prog_compiler_static_CXX='-Bstatic'
19351 ;;
19352 esac
19353 ;;
19354 tandem*)
19355 case $cc_basename in
19356 NCC*)
19357 # NonStop-UX NCC 3.20
19358 lt_prog_compiler_pic_CXX='-KPIC'
19359 ;;
19360 *)
19361 ;;
19362 esac
19363 ;;
19364 vxworks*)
19365 ;;
19366 *)
19367 lt_prog_compiler_can_build_shared_CXX=no
19368 ;;
19369 esac
19370 fi
19371
19372case $host_os in
19373 # For platforms which do not support PIC, -DPIC is meaningless:
19374 *djgpp*)
19375 lt_prog_compiler_pic_CXX=
19376 ;;
19377 *)
19378 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19379 ;;
19380esac
cristy73bd4a52010-10-05 11:24:23 +000019381
cristyda16f162011-02-19 23:52:17 +000019382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19383$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19384if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19385 $as_echo_n "(cached) " >&6
19386else
19387 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19390$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19391lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019392
19393#
19394# Check to make sure the PIC flag actually works.
19395#
19396if test -n "$lt_prog_compiler_pic_CXX"; then
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19398$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019399if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019400 $as_echo_n "(cached) " >&6
19401else
19402 lt_cv_prog_compiler_pic_works_CXX=no
19403 ac_outfile=conftest.$ac_objext
19404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19405 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19406 # Insert the option either (1) after the last *FLAGS variable, or
19407 # (2) before a word containing "conftest.", or (3) at the end.
19408 # Note that $ac_compile itself does not contain backslashes and begins
19409 # with a dollar sign (not a hyphen), so the echo should work correctly.
19410 # The option is referenced via a variable to avoid confusing sed.
19411 lt_compile=`echo "$ac_compile" | $SED \
19412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19414 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019416 (eval "$lt_compile" 2>conftest.err)
19417 ac_status=$?
19418 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019420 if (exit $ac_status) && test -s "$ac_outfile"; then
19421 # The compiler can only warn and ignore the option if not recognized
19422 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19426 lt_cv_prog_compiler_pic_works_CXX=yes
19427 fi
19428 fi
19429 $RM conftest*
19430
19431fi
19432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19433$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19434
19435if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19436 case $lt_prog_compiler_pic_CXX in
19437 "" | " "*) ;;
19438 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19439 esac
19440else
19441 lt_prog_compiler_pic_CXX=
19442 lt_prog_compiler_can_build_shared_CXX=no
19443fi
19444
19445fi
19446
19447
19448
cristyda16f162011-02-19 23:52:17 +000019449
19450
cristy73bd4a52010-10-05 11:24:23 +000019451#
19452# Check to make sure the static flag actually works.
19453#
19454wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19456$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019457if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019458 $as_echo_n "(cached) " >&6
19459else
19460 lt_cv_prog_compiler_static_works_CXX=no
19461 save_LDFLAGS="$LDFLAGS"
19462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19465 # The linker can only warn and ignore the option if not recognized
19466 # So say no if there are warnings
19467 if test -s conftest.err; then
19468 # Append any errors to the config.log.
19469 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19472 if diff conftest.exp conftest.er2 >/dev/null; then
19473 lt_cv_prog_compiler_static_works_CXX=yes
19474 fi
19475 else
19476 lt_cv_prog_compiler_static_works_CXX=yes
19477 fi
19478 fi
19479 $RM -r conftest*
19480 LDFLAGS="$save_LDFLAGS"
19481
19482fi
19483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19484$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19485
19486if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19487 :
19488else
19489 lt_prog_compiler_static_CXX=
19490fi
19491
19492
19493
19494
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019497if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019498 $as_echo_n "(cached) " >&6
19499else
19500 lt_cv_prog_compiler_c_o_CXX=no
19501 $RM -r conftest 2>/dev/null
19502 mkdir conftest
19503 cd conftest
19504 mkdir out
19505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19506
19507 lt_compiler_flag="-o out/conftest2.$ac_objext"
19508 # Insert the option either (1) after the last *FLAGS variable, or
19509 # (2) before a word containing "conftest.", or (3) at the end.
19510 # Note that $ac_compile itself does not contain backslashes and begins
19511 # with a dollar sign (not a hyphen), so the echo should work correctly.
19512 lt_compile=`echo "$ac_compile" | $SED \
19513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19515 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019517 (eval "$lt_compile" 2>out/conftest.err)
19518 ac_status=$?
19519 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19522 then
19523 # The compiler can only warn and ignore the option if not recognized
19524 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19528 lt_cv_prog_compiler_c_o_CXX=yes
19529 fi
19530 fi
19531 chmod u+w . 2>&5
19532 $RM conftest*
19533 # SGI C++ compiler will create directory out/ii_files/ for
19534 # template instantiation
19535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19536 $RM out/* && rmdir out
19537 cd ..
19538 $RM -r conftest
19539 $RM conftest*
19540
19541fi
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19543$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19544
19545
19546
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019549if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019550 $as_echo_n "(cached) " >&6
19551else
19552 lt_cv_prog_compiler_c_o_CXX=no
19553 $RM -r conftest 2>/dev/null
19554 mkdir conftest
19555 cd conftest
19556 mkdir out
19557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19558
19559 lt_compiler_flag="-o out/conftest2.$ac_objext"
19560 # Insert the option either (1) after the last *FLAGS variable, or
19561 # (2) before a word containing "conftest.", or (3) at the end.
19562 # Note that $ac_compile itself does not contain backslashes and begins
19563 # with a dollar sign (not a hyphen), so the echo should work correctly.
19564 lt_compile=`echo "$ac_compile" | $SED \
19565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19567 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019569 (eval "$lt_compile" 2>out/conftest.err)
19570 ac_status=$?
19571 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19574 then
19575 # The compiler can only warn and ignore the option if not recognized
19576 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19580 lt_cv_prog_compiler_c_o_CXX=yes
19581 fi
19582 fi
19583 chmod u+w . 2>&5
19584 $RM conftest*
19585 # SGI C++ compiler will create directory out/ii_files/ for
19586 # template instantiation
19587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19588 $RM out/* && rmdir out
19589 cd ..
19590 $RM -r conftest
19591 $RM conftest*
19592
19593fi
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19595$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19596
19597
19598
19599
19600hard_links="nottested"
19601if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19602 # do not overwrite the value of need_locks provided by the user
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19604$as_echo_n "checking if we can lock with hard links... " >&6; }
19605 hard_links=yes
19606 $RM conftest*
19607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19608 touch conftest.a
19609 ln conftest.a conftest.b 2>&5 || hard_links=no
19610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19612$as_echo "$hard_links" >&6; }
19613 if test "$hard_links" = no; then
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19615$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19616 need_locks=warn
19617 fi
19618else
19619 need_locks=no
19620fi
19621
19622
19623
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19625$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19626
19627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019628 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019629 case $host_os in
19630 aix[4-9]*)
19631 # If we're using GNU nm, then we don't want the "-C" option.
19632 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019633 # Also, AIX nm treats weak defined symbols like other global defined
19634 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019635 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019636 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 +000019637 else
19638 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'
19639 fi
19640 ;;
19641 pw32*)
19642 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019643 ;;
cristy73bd4a52010-10-05 11:24:23 +000019644 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019645 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019646 cl*)
19647 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19648 ;;
cristyda16f162011-02-19 23:52:17 +000019649 *)
19650 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'
19651 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19652 ;;
19653 esac
19654 ;;
cristy73bd4a52010-10-05 11:24:23 +000019655 *)
19656 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019657 ;;
cristy73bd4a52010-10-05 11:24:23 +000019658 esac
cristy73bd4a52010-10-05 11:24:23 +000019659
19660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19661$as_echo "$ld_shlibs_CXX" >&6; }
19662test "$ld_shlibs_CXX" = no && can_build_shared=no
19663
19664with_gnu_ld_CXX=$with_gnu_ld
19665
19666
19667
19668
19669
19670
19671#
19672# Do we need to explicitly link libc?
19673#
19674case "x$archive_cmds_need_lc_CXX" in
19675x|xyes)
19676 # Assume -lc should be added
19677 archive_cmds_need_lc_CXX=yes
19678
19679 if test "$enable_shared" = yes && test "$GCC" = yes; then
19680 case $archive_cmds_CXX in
19681 *'~'*)
19682 # FIXME: we may have to deal with multi-command sequences.
19683 ;;
19684 '$CC '*)
19685 # Test whether the compiler implicitly links with -lc since on some
19686 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19687 # to ld, don't add -lc before -lgcc.
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19689$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019690if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019691 $as_echo_n "(cached) " >&6
19692else
19693 $RM conftest*
19694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019695
cristy0c60a692010-11-04 01:09:47 +000019696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019697 (eval $ac_compile) 2>&5
19698 ac_status=$?
19699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19700 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019701 soname=conftest
19702 lib=conftest
19703 libobjs=conftest.$ac_objext
19704 deplibs=
19705 wl=$lt_prog_compiler_wl_CXX
19706 pic_flag=$lt_prog_compiler_pic_CXX
19707 compiler_flags=-v
19708 linker_flags=-v
19709 verstring=
19710 output_objdir=.
19711 libname=conftest
19712 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19713 allow_undefined_flag_CXX=
19714 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 +000019715 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19716 ac_status=$?
19717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19718 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019719 then
19720 lt_cv_archive_cmds_need_lc_CXX=no
19721 else
19722 lt_cv_archive_cmds_need_lc_CXX=yes
19723 fi
19724 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19725 else
19726 cat conftest.err 1>&5
19727 fi
19728 $RM conftest*
19729
19730fi
19731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19732$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19733 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019734 ;;
19735 esac
19736 fi
19737 ;;
19738esac
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
cristy73bd4a52010-10-05 11:24:23 +000019801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19802$as_echo_n "checking dynamic linker characteristics... " >&6; }
19803
19804library_names_spec=
19805libname_spec='lib$name'
19806soname_spec=
19807shrext_cmds=".so"
19808postinstall_cmds=
19809postuninstall_cmds=
19810finish_cmds=
19811finish_eval=
19812shlibpath_var=
19813shlibpath_overrides_runpath=unknown
19814version_type=none
19815dynamic_linker="$host_os ld.so"
19816sys_lib_dlsearch_path_spec="/lib /usr/lib"
19817need_lib_prefix=unknown
19818hardcode_into_libs=no
19819
19820# when you set need_version to no, make sure it does not cause -set_version
19821# flags to be left without arguments
19822need_version=unknown
19823
19824case $host_os in
19825aix3*)
cristy99bd5232011-12-07 14:38:20 +000019826 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19828 shlibpath_var=LIBPATH
19829
19830 # AIX 3 has no versioning support, so we append a major version to the name.
19831 soname_spec='${libname}${release}${shared_ext}$major'
19832 ;;
19833
19834aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019835 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019836 need_lib_prefix=no
19837 need_version=no
19838 hardcode_into_libs=yes
19839 if test "$host_cpu" = ia64; then
19840 # AIX 5 supports IA64
19841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 else
19844 # With GCC up to 2.95.x, collect2 would create an import file
19845 # for dependence libraries. The import file would start with
19846 # the line `#! .'. This would cause the generated library to
19847 # depend on `.', always an invalid library. This was fixed in
19848 # development snapshots of GCC prior to 3.0.
19849 case $host_os in
19850 aix4 | aix4.[01] | aix4.[01].*)
19851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19852 echo ' yes '
19853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19854 :
19855 else
19856 can_build_shared=no
19857 fi
19858 ;;
19859 esac
19860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19861 # soname into executable. Probably we can add versioning support to
19862 # collect2, so additional links can be useful in future.
19863 if test "$aix_use_runtimelinking" = yes; then
19864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19865 # instead of lib<name>.a to let people know that these are not
19866 # typical AIX shared libraries.
19867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19868 else
19869 # We preserve .a as extension for shared libraries through AIX4.2
19870 # and later when we are not doing run time linking.
19871 library_names_spec='${libname}${release}.a $libname.a'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 fi
19874 shlibpath_var=LIBPATH
19875 fi
19876 ;;
19877
19878amigaos*)
19879 case $host_cpu in
19880 powerpc)
19881 # Since July 2007 AmigaOS4 officially supports .so libraries.
19882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19884 ;;
19885 m68k)
19886 library_names_spec='$libname.ixlibrary $libname.a'
19887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019888 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 +000019889 ;;
19890 esac
19891 ;;
19892
19893beos*)
19894 library_names_spec='${libname}${shared_ext}'
19895 dynamic_linker="$host_os ld.so"
19896 shlibpath_var=LIBRARY_PATH
19897 ;;
19898
19899bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019900 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019901 need_version=no
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19903 soname_spec='${libname}${release}${shared_ext}$major'
19904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19905 shlibpath_var=LD_LIBRARY_PATH
19906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19908 # the default ld.so.conf also contains /usr/contrib/lib and
19909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19910 # libtool to hard-code these into programs
19911 ;;
19912
19913cygwin* | mingw* | pw32* | cegcc*)
19914 version_type=windows
19915 shrext_cmds=".dll"
19916 need_version=no
19917 need_lib_prefix=no
19918
cristyda16f162011-02-19 23:52:17 +000019919 case $GCC,$cc_basename in
19920 yes,*)
19921 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019922 library_names_spec='$libname.dll.a'
19923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19924 postinstall_cmds='base_file=`basename \${file}`~
19925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19926 dldir=$destdir/`dirname \$dlpath`~
19927 test -d \$dldir || mkdir -p \$dldir~
19928 $install_prog $dir/$dlname \$dldir/$dlname~
19929 chmod a+x \$dldir/$dlname~
19930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19932 fi'
19933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19934 dlpath=$dir/\$dldll~
19935 $RM \$dlpath'
19936 shlibpath_overrides_runpath=yes
19937
19938 case $host_os in
19939 cygwin*)
19940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019942
cristy73bd4a52010-10-05 11:24:23 +000019943 ;;
19944 mingw* | cegcc*)
19945 # MinGW DLLs use traditional 'lib' prefix
19946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019947 ;;
19948 pw32*)
19949 # pw32 DLLs use 'pw' prefix rather than 'lib'
19950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19951 ;;
19952 esac
cristyda16f162011-02-19 23:52:17 +000019953 dynamic_linker='Win32 ld.exe'
19954 ;;
19955
19956 *,cl*)
19957 # Native MSVC
19958 libname_spec='$name'
19959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19960 library_names_spec='${libname}.dll.lib'
19961
19962 case $build_os in
19963 mingw*)
19964 sys_lib_search_path_spec=
19965 lt_save_ifs=$IFS
19966 IFS=';'
19967 for lt_path in $LIB
19968 do
19969 IFS=$lt_save_ifs
19970 # Let DOS variable expansion print the short 8.3 style file name.
19971 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19972 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19973 done
19974 IFS=$lt_save_ifs
19975 # Convert to MSYS style.
19976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19977 ;;
19978 cygwin*)
19979 # Convert to unix form, then to dos form, then back to unix form
19980 # but this time dos style (no spaces!) so that the unix form looks
19981 # like /cygdrive/c/PROGRA~1:/cygdr...
19982 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19983 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19984 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19985 ;;
19986 *)
19987 sys_lib_search_path_spec="$LIB"
19988 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19989 # It is most probably a Windows format PATH.
19990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19991 else
19992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19993 fi
19994 # FIXME: find the short name or the path components, as spaces are
19995 # common. (e.g. "Program Files" -> "PROGRA~1")
19996 ;;
19997 esac
19998
19999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20000 postinstall_cmds='base_file=`basename \${file}`~
20001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20002 dldir=$destdir/`dirname \$dlpath`~
20003 test -d \$dldir || mkdir -p \$dldir~
20004 $install_prog $dir/$dlname \$dldir/$dlname'
20005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20006 dlpath=$dir/\$dldll~
20007 $RM \$dlpath'
20008 shlibpath_overrides_runpath=yes
20009 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020010 ;;
20011
20012 *)
cristyda16f162011-02-19 23:52:17 +000020013 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020015 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020016 ;;
20017 esac
cristy73bd4a52010-10-05 11:24:23 +000020018 # FIXME: first we should search . and the directory the executable is in
20019 shlibpath_var=PATH
20020 ;;
20021
20022darwin* | rhapsody*)
20023 dynamic_linker="$host_os dyld"
20024 version_type=darwin
20025 need_lib_prefix=no
20026 need_version=no
20027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20028 soname_spec='${libname}${release}${major}$shared_ext'
20029 shlibpath_overrides_runpath=yes
20030 shlibpath_var=DYLD_LIBRARY_PATH
20031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20032
20033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20034 ;;
20035
20036dgux*)
cristy99bd5232011-12-07 14:38:20 +000020037 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020038 need_lib_prefix=no
20039 need_version=no
20040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20041 soname_spec='${libname}${release}${shared_ext}$major'
20042 shlibpath_var=LD_LIBRARY_PATH
20043 ;;
20044
cristy73bd4a52010-10-05 11:24:23 +000020045freebsd* | dragonfly*)
20046 # DragonFly does not have aout. When/if they implement a new
20047 # versioning mechanism, adjust this.
20048 if test -x /usr/bin/objformat; then
20049 objformat=`/usr/bin/objformat`
20050 else
20051 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020052 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020053 *) objformat=elf ;;
20054 esac
20055 fi
20056 version_type=freebsd-$objformat
20057 case $version_type in
20058 freebsd-elf*)
20059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20060 need_version=no
20061 need_lib_prefix=no
20062 ;;
20063 freebsd-*)
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20065 need_version=yes
20066 ;;
20067 esac
20068 shlibpath_var=LD_LIBRARY_PATH
20069 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020070 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020071 shlibpath_overrides_runpath=yes
20072 ;;
20073 freebsd3.[01]* | freebsdelf3.[01]*)
20074 shlibpath_overrides_runpath=yes
20075 hardcode_into_libs=yes
20076 ;;
20077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20079 shlibpath_overrides_runpath=no
20080 hardcode_into_libs=yes
20081 ;;
20082 *) # from 4.6 on, and DragonFly
20083 shlibpath_overrides_runpath=yes
20084 hardcode_into_libs=yes
20085 ;;
20086 esac
20087 ;;
20088
20089gnu*)
cristy99bd5232011-12-07 14:38:20 +000020090 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020091 need_lib_prefix=no
20092 need_version=no
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020096 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020097 hardcode_into_libs=yes
20098 ;;
20099
cristy0c60a692010-11-04 01:09:47 +000020100haiku*)
cristy99bd5232011-12-07 14:38:20 +000020101 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020102 need_lib_prefix=no
20103 need_version=no
20104 dynamic_linker="$host_os runtime_loader"
20105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20106 soname_spec='${libname}${release}${shared_ext}$major'
20107 shlibpath_var=LIBRARY_PATH
20108 shlibpath_overrides_runpath=yes
20109 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20110 hardcode_into_libs=yes
20111 ;;
20112
cristy73bd4a52010-10-05 11:24:23 +000020113hpux9* | hpux10* | hpux11*)
20114 # Give a soname corresponding to the major version so that dld.sl refuses to
20115 # link against other versions.
20116 version_type=sunos
20117 need_lib_prefix=no
20118 need_version=no
20119 case $host_cpu in
20120 ia64*)
20121 shrext_cmds='.so'
20122 hardcode_into_libs=yes
20123 dynamic_linker="$host_os dld.so"
20124 shlibpath_var=LD_LIBRARY_PATH
20125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 if test "X$HPUX_IA64_MODE" = X32; then
20129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20130 else
20131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20132 fi
20133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20134 ;;
20135 hppa*64*)
20136 shrext_cmds='.sl'
20137 hardcode_into_libs=yes
20138 dynamic_linker="$host_os dld.sl"
20139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20145 ;;
20146 *)
20147 shrext_cmds='.sl'
20148 dynamic_linker="$host_os dld.sl"
20149 shlibpath_var=SHLIB_PATH
20150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 ;;
20154 esac
cristy0c60a692010-11-04 01:09:47 +000020155 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020156 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020157 # or fails outright, so override atomically:
20158 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020159 ;;
20160
20161interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020162 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020163 need_lib_prefix=no
20164 need_version=no
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=no
20170 hardcode_into_libs=yes
20171 ;;
20172
20173irix5* | irix6* | nonstopux*)
20174 case $host_os in
20175 nonstopux*) version_type=nonstopux ;;
20176 *)
20177 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020178 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020179 else
20180 version_type=irix
20181 fi ;;
20182 esac
20183 need_lib_prefix=no
20184 need_version=no
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20187 case $host_os in
20188 irix5* | nonstopux*)
20189 libsuff= shlibsuff=
20190 ;;
20191 *)
20192 case $LD in # libtool.m4 will add one of these switches to LD
20193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20194 libsuff= shlibsuff= libmagic=32-bit;;
20195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20196 libsuff=32 shlibsuff=N32 libmagic=N32;;
20197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20199 *) libsuff= shlibsuff= libmagic=never-match;;
20200 esac
20201 ;;
20202 esac
20203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20204 shlibpath_overrides_runpath=no
20205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20207 hardcode_into_libs=yes
20208 ;;
20209
20210# No shared lib support for Linux oldld, aout, or coff.
20211linux*oldld* | linux*aout* | linux*coff*)
20212 dynamic_linker=no
20213 ;;
20214
cristy99bd5232011-12-07 14:38:20 +000020215# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020216linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020217 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020218 need_lib_prefix=no
20219 need_version=no
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020225
cristy73bd4a52010-10-05 11:24:23 +000020226 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020227 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020228 $as_echo_n "(cached) " >&6
20229else
20230 lt_cv_shlibpath_overrides_runpath=no
20231 save_LDFLAGS=$LDFLAGS
20232 save_libdir=$libdir
20233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020236/* end confdefs.h. */
20237
20238int
20239main ()
20240{
20241
20242 ;
20243 return 0;
20244}
20245_ACEOF
20246if ac_fn_cxx_try_link "$LINENO"; then :
20247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020248 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020249fi
20250fi
20251rm -f core conftest.err conftest.$ac_objext \
20252 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020253 LDFLAGS=$save_LDFLAGS
20254 libdir=$save_libdir
20255
20256fi
20257
20258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020259
20260 # This implies no fast_install, which is unacceptable.
20261 # Some rework will be needed to allow for fast_install
20262 # before this can be enabled.
20263 hardcode_into_libs=yes
20264
20265 # Add ABI-specific directories to the system library path.
20266 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20267
20268 # Append ld.so.conf contents to the search path
20269 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020270 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 +000020271 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020272
cristy73bd4a52010-10-05 11:24:23 +000020273 fi
20274
20275 # We used to test for /lib/ld.so.1 and disable shared libraries on
20276 # powerpc, because MkLinux only supported shared libraries with the
20277 # GNU dynamic linker. Since this was broken with cross compilers,
20278 # most powerpc-linux boxes support dynamic linking these days and
20279 # people can always --disable-shared, the test was removed, and we
20280 # assume the GNU/Linux dynamic linker is in use.
20281 dynamic_linker='GNU/Linux ld.so'
20282 ;;
20283
20284netbsd*)
20285 version_type=sunos
20286 need_lib_prefix=no
20287 need_version=no
20288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20291 dynamic_linker='NetBSD (a.out) ld.so'
20292 else
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 dynamic_linker='NetBSD ld.elf_so'
20296 fi
20297 shlibpath_var=LD_LIBRARY_PATH
20298 shlibpath_overrides_runpath=yes
20299 hardcode_into_libs=yes
20300 ;;
20301
20302newsos6)
cristy99bd5232011-12-07 14:38:20 +000020303 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath=yes
20307 ;;
20308
20309*nto* | *qnx*)
20310 version_type=qnx
20311 need_lib_prefix=no
20312 need_version=no
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=no
20317 hardcode_into_libs=yes
20318 dynamic_linker='ldqnx.so'
20319 ;;
20320
20321openbsd*)
20322 version_type=sunos
20323 sys_lib_dlsearch_path_spec="/usr/lib"
20324 need_lib_prefix=no
20325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20326 case $host_os in
20327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20328 *) need_version=no ;;
20329 esac
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20334 case $host_os in
20335 openbsd2.[89] | openbsd2.[89].*)
20336 shlibpath_overrides_runpath=no
20337 ;;
20338 *)
20339 shlibpath_overrides_runpath=yes
20340 ;;
20341 esac
20342 else
20343 shlibpath_overrides_runpath=yes
20344 fi
20345 ;;
20346
20347os2*)
20348 libname_spec='$name'
20349 shrext_cmds=".dll"
20350 need_lib_prefix=no
20351 library_names_spec='$libname${shared_ext} $libname.a'
20352 dynamic_linker='OS/2 ld.exe'
20353 shlibpath_var=LIBPATH
20354 ;;
20355
20356osf3* | osf4* | osf5*)
20357 version_type=osf
20358 need_lib_prefix=no
20359 need_version=no
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20362 shlibpath_var=LD_LIBRARY_PATH
20363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20365 ;;
20366
20367rdos*)
20368 dynamic_linker=no
20369 ;;
20370
20371solaris*)
cristy99bd5232011-12-07 14:38:20 +000020372 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020373 need_lib_prefix=no
20374 need_version=no
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20379 hardcode_into_libs=yes
20380 # ldd complains unless libraries are executable
20381 postinstall_cmds='chmod +x $lib'
20382 ;;
20383
20384sunos4*)
20385 version_type=sunos
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20388 shlibpath_var=LD_LIBRARY_PATH
20389 shlibpath_overrides_runpath=yes
20390 if test "$with_gnu_ld" = yes; then
20391 need_lib_prefix=no
20392 fi
20393 need_version=yes
20394 ;;
20395
20396sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020397 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 case $host_vendor in
20402 sni)
20403 shlibpath_overrides_runpath=no
20404 need_lib_prefix=no
20405 runpath_var=LD_RUN_PATH
20406 ;;
20407 siemens)
20408 need_lib_prefix=no
20409 ;;
20410 motorola)
20411 need_lib_prefix=no
20412 need_version=no
20413 shlibpath_overrides_runpath=no
20414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20415 ;;
20416 esac
20417 ;;
20418
20419sysv4*MP*)
20420 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020421 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20423 soname_spec='$libname${shared_ext}.$major'
20424 shlibpath_var=LD_LIBRARY_PATH
20425 fi
20426 ;;
20427
20428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20429 version_type=freebsd-elf
20430 need_lib_prefix=no
20431 need_version=no
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20435 shlibpath_overrides_runpath=yes
20436 hardcode_into_libs=yes
20437 if test "$with_gnu_ld" = yes; then
20438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20439 else
20440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20441 case $host_os in
20442 sco3.2v5*)
20443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20444 ;;
20445 esac
20446 fi
20447 sys_lib_dlsearch_path_spec='/usr/lib'
20448 ;;
20449
20450tpf*)
20451 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020452 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020453 need_lib_prefix=no
20454 need_version=no
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 shlibpath_overrides_runpath=no
20458 hardcode_into_libs=yes
20459 ;;
20460
20461uts4*)
cristy99bd5232011-12-07 14:38:20 +000020462 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 ;;
20467
20468*)
20469 dynamic_linker=no
20470 ;;
20471esac
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20473$as_echo "$dynamic_linker" >&6; }
20474test "$dynamic_linker" = no && can_build_shared=no
20475
20476variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20477if test "$GCC" = yes; then
20478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20479fi
20480
20481if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20482 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20483fi
20484if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20485 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20486fi
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
cristy0c60a692010-11-04 01:09:47 +000020523
20524
cristy73bd4a52010-10-05 11:24:23 +000020525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20526$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20527hardcode_action_CXX=
20528if test -n "$hardcode_libdir_flag_spec_CXX" ||
20529 test -n "$runpath_var_CXX" ||
20530 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20531
20532 # We can hardcode non-existent directories.
20533 if test "$hardcode_direct_CXX" != no &&
20534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20535 # have to relink, otherwise we might link with an installed library
20536 # when we should be linking with a yet-to-be-installed one
20537 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20538 test "$hardcode_minus_L_CXX" != no; then
20539 # Linking always hardcodes the temporary library directory.
20540 hardcode_action_CXX=relink
20541 else
20542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20543 hardcode_action_CXX=immediate
20544 fi
20545else
20546 # We cannot hardcode anything, or else we can only hardcode existing
20547 # directories.
20548 hardcode_action_CXX=unsupported
20549fi
20550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20551$as_echo "$hardcode_action_CXX" >&6; }
20552
20553if test "$hardcode_action_CXX" = relink ||
20554 test "$inherit_rpath_CXX" = yes; then
20555 # Fast installation is not supported
20556 enable_fast_install=no
20557elif test "$shlibpath_overrides_runpath" = yes ||
20558 test "$enable_shared" = no; then
20559 # Fast installation is not necessary
20560 enable_fast_install=needless
20561fi
20562
20563
20564
20565
20566
20567
20568
20569 fi # test -n "$compiler"
20570
20571 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020572 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020573 LDCXX=$LD
20574 LD=$lt_save_LD
20575 GCC=$lt_save_GCC
20576 with_gnu_ld=$lt_save_with_gnu_ld
20577 lt_cv_path_LDCXX=$lt_cv_path_LD
20578 lt_cv_path_LD=$lt_save_path_LD
20579 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20580 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20581fi # test "$_lt_caught_CXX_error" != yes
20582
20583ac_ext=c
20584ac_cpp='$CPP $CPPFLAGS'
20585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
cristy99bd5232011-12-07 14:38:20 +000020601
20602
cristy73bd4a52010-10-05 11:24:23 +000020603 ac_config_commands="$ac_config_commands libtool"
20604
20605
20606
20607
20608# Only expand once:
20609
20610
20611
cristy3ed852e2009-09-05 21:47:34 +000020612
20613
20614# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020615
20616
20617
20618
20619
20620
20621
cristy73bd4a52010-10-05 11:24:23 +000020622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20623$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020624if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020625 $as_echo_n "(cached) " >&6
20626else
20627
20628module=yes
20629eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020630module=no
20631eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020632
20633fi
20634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20635$as_echo "$libltdl_cv_shlibext" >&6; }
20636if test -n "$libltdl_cv_shlibext"; then
20637
20638cat >>confdefs.h <<_ACEOF
20639#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20640_ACEOF
20641
20642fi
cristy99bd5232011-12-07 14:38:20 +000020643if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20644
20645cat >>confdefs.h <<_ACEOF
20646#define LT_SHARED_EXT "$libltdl_cv_shrext"
20647_ACEOF
20648
20649fi
cristy73bd4a52010-10-05 11:24:23 +000020650
20651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20652$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020653if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020654 $as_echo_n "(cached) " >&6
20655else
20656 lt_cv_module_path_var="$shlibpath_var"
20657fi
20658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20659$as_echo "$lt_cv_module_path_var" >&6; }
20660if test -n "$lt_cv_module_path_var"; then
20661
20662cat >>confdefs.h <<_ACEOF
20663#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20664_ACEOF
20665
20666fi
20667
20668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20669$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020670if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020671 $as_echo_n "(cached) " >&6
20672else
20673 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20674fi
20675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20676$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20677if test -n "$lt_cv_sys_dlsearch_path"; then
20678 sys_dlsearch_path=
20679 for dir in $lt_cv_sys_dlsearch_path; do
20680 if test -z "$sys_dlsearch_path"; then
20681 sys_dlsearch_path="$dir"
20682 else
20683 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20684 fi
20685 done
20686
20687cat >>confdefs.h <<_ACEOF
20688#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20689_ACEOF
20690
20691fi
20692
20693
20694LT_DLLOADERS=
20695
20696
20697ac_ext=c
20698ac_cpp='$CPP $CPPFLAGS'
20699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20701ac_compiler_gnu=$ac_cv_c_compiler_gnu
20702
20703
20704LIBADD_DLOPEN=
20705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20706$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020707if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020708 $as_echo_n "(cached) " >&6
20709else
20710 ac_func_search_save_LIBS=$LIBS
20711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712/* end confdefs.h. */
20713
20714/* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20717#ifdef __cplusplus
20718extern "C"
20719#endif
20720char dlopen ();
20721int
20722main ()
20723{
20724return dlopen ();
20725 ;
20726 return 0;
20727}
20728_ACEOF
20729for ac_lib in '' dl; do
20730 if test -z "$ac_lib"; then
20731 ac_res="none required"
20732 else
20733 ac_res=-l$ac_lib
20734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20735 fi
20736 if ac_fn_c_try_link "$LINENO"; then :
20737 ac_cv_search_dlopen=$ac_res
20738fi
20739rm -f core conftest.err conftest.$ac_objext \
20740 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020741 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020742 break
20743fi
20744done
cristyda16f162011-02-19 23:52:17 +000020745if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020746
20747else
20748 ac_cv_search_dlopen=no
20749fi
20750rm conftest.$ac_ext
20751LIBS=$ac_func_search_save_LIBS
20752fi
20753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20754$as_echo "$ac_cv_search_dlopen" >&6; }
20755ac_res=$ac_cv_search_dlopen
20756if test "$ac_res" != no; then :
20757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20758
20759$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20760
20761 if test "$ac_cv_search_dlopen" != "none required" ; then
20762 LIBADD_DLOPEN="-ldl"
20763 fi
20764 libltdl_cv_lib_dl_dlopen="yes"
20765 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20766else
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768/* end confdefs.h. */
20769#if HAVE_DLFCN_H
20770# include <dlfcn.h>
20771#endif
20772
20773int
20774main ()
20775{
20776dlopen(0, 0);
20777 ;
20778 return 0;
20779}
20780_ACEOF
20781if ac_fn_c_try_link "$LINENO"; then :
20782
20783$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20784
20785 libltdl_cv_func_dlopen="yes"
20786 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20787else
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20789$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020790if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020791 $as_echo_n "(cached) " >&6
20792else
20793 ac_check_lib_save_LIBS=$LIBS
20794LIBS="-lsvld $LIBS"
20795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796/* end confdefs.h. */
20797
20798/* Override any GCC internal prototype to avoid an error.
20799 Use char because int might match the return type of a GCC
20800 builtin and then its argument prototype would still apply. */
20801#ifdef __cplusplus
20802extern "C"
20803#endif
20804char dlopen ();
20805int
20806main ()
20807{
20808return dlopen ();
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813if ac_fn_c_try_link "$LINENO"; then :
20814 ac_cv_lib_svld_dlopen=yes
20815else
20816 ac_cv_lib_svld_dlopen=no
20817fi
20818rm -f core conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
20820LIBS=$ac_check_lib_save_LIBS
20821fi
20822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20823$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020824if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020825
20826$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20827
20828 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20829 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20830fi
20831
20832fi
20833rm -f core conftest.err conftest.$ac_objext \
20834 conftest$ac_exeext conftest.$ac_ext
20835fi
20836
20837if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20838then
20839 lt_save_LIBS="$LIBS"
20840 LIBS="$LIBS $LIBADD_DLOPEN"
20841 for ac_func in dlerror
20842do :
20843 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020844if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020845 cat >>confdefs.h <<_ACEOF
20846#define HAVE_DLERROR 1
20847_ACEOF
20848
20849fi
20850done
20851
20852 LIBS="$lt_save_LIBS"
20853fi
20854
20855
20856LIBADD_SHL_LOAD=
20857ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020858if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020859
20860$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20861
20862 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20863else
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20865$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020866if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020867 $as_echo_n "(cached) " >&6
20868else
20869 ac_check_lib_save_LIBS=$LIBS
20870LIBS="-ldld $LIBS"
20871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872/* end confdefs.h. */
20873
20874/* Override any GCC internal prototype to avoid an error.
20875 Use char because int might match the return type of a GCC
20876 builtin and then its argument prototype would still apply. */
20877#ifdef __cplusplus
20878extern "C"
20879#endif
20880char shl_load ();
20881int
20882main ()
20883{
20884return shl_load ();
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889if ac_fn_c_try_link "$LINENO"; then :
20890 ac_cv_lib_dld_shl_load=yes
20891else
20892 ac_cv_lib_dld_shl_load=no
20893fi
20894rm -f core conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
20896LIBS=$ac_check_lib_save_LIBS
20897fi
20898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20899$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020900if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020901
20902$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20903
20904 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20905 LIBADD_SHL_LOAD="-ldld"
20906fi
20907
20908fi
20909
20910
20911
20912case $host_os in
20913darwin[1567].*)
20914# We only want this for pre-Mac OS X 10.4.
20915 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020916if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020917
20918$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20919
20920 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20921fi
20922
20923 ;;
20924beos*)
20925 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20926 ;;
20927cygwin* | mingw* | os2* | pw32*)
20928 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20929"
cristyda16f162011-02-19 23:52:17 +000020930if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020931 ac_have_decl=1
20932else
20933 ac_have_decl=0
20934fi
20935
20936cat >>confdefs.h <<_ACEOF
20937#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20938_ACEOF
20939
20940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20941 ;;
20942esac
20943
20944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20945$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020946if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020947 $as_echo_n "(cached) " >&6
20948else
20949 ac_check_lib_save_LIBS=$LIBS
20950LIBS="-ldld $LIBS"
20951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952/* end confdefs.h. */
20953
20954/* Override any GCC internal prototype to avoid an error.
20955 Use char because int might match the return type of a GCC
20956 builtin and then its argument prototype would still apply. */
20957#ifdef __cplusplus
20958extern "C"
20959#endif
20960char dld_link ();
20961int
20962main ()
20963{
20964return dld_link ();
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969if ac_fn_c_try_link "$LINENO"; then :
20970 ac_cv_lib_dld_dld_link=yes
20971else
20972 ac_cv_lib_dld_dld_link=no
20973fi
20974rm -f core conftest.err conftest.$ac_objext \
20975 conftest$ac_exeext conftest.$ac_ext
20976LIBS=$ac_check_lib_save_LIBS
20977fi
20978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20979$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020980if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020981
20982$as_echo "#define HAVE_DLD 1" >>confdefs.h
20983
20984 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20985fi
20986
20987
20988
20989
20990LT_DLPREOPEN=
20991if test -n "$LT_DLLOADERS"
20992then
20993 for lt_loader in $LT_DLLOADERS; do
20994 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20995 done
20996
20997$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20998
20999fi
21000
21001
21002LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21003
21004
21005ac_ext=c
21006ac_cpp='$CPP $CPPFLAGS'
21007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010
21011
21012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21013$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021014if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021015 $as_echo_n "(cached) " >&6
21016else
21017 lt_cv_sys_symbol_underscore=no
21018 cat > conftest.$ac_ext <<_LT_EOF
21019void nm_test_func(){}
21020int main(){nm_test_func;return 0;}
21021_LT_EOF
21022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21023 (eval $ac_compile) 2>&5
21024 ac_status=$?
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; }; then
21027 # Now try to grab the symbols.
21028 ac_nlist=conftest.nm
21029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21030 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21031 ac_status=$?
21032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21033 test $ac_status = 0; } && test -s "$ac_nlist"; then
21034 # See whether the symbols have a leading underscore.
21035 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21036 lt_cv_sys_symbol_underscore=yes
21037 else
21038 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21039 :
21040 else
21041 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21042 fi
21043 fi
21044 else
21045 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21046 fi
21047 else
21048 echo "configure: failed program was:" >&5
21049 cat conftest.c >&5
21050 fi
21051 rm -rf conftest*
21052
21053fi
21054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21055$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21056 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21057
21058
21059if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21060 if test x"$libltdl_cv_func_dlopen" = xyes ||
21061 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21063$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021064if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021065 $as_echo_n "(cached) " >&6
21066else
21067 libltdl_cv_need_uscore=unknown
21068 save_LIBS="$LIBS"
21069 LIBS="$LIBS $LIBADD_DLOPEN"
21070 if test "$cross_compiling" = yes; then :
21071 libltdl_cv_need_uscore=cross
21072else
21073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21074 lt_status=$lt_dlunknown
21075 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021076#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021077#include "confdefs.h"
21078
21079#if HAVE_DLFCN_H
21080#include <dlfcn.h>
21081#endif
21082
21083#include <stdio.h>
21084
21085#ifdef RTLD_GLOBAL
21086# define LT_DLGLOBAL RTLD_GLOBAL
21087#else
21088# ifdef DL_GLOBAL
21089# define LT_DLGLOBAL DL_GLOBAL
21090# else
21091# define LT_DLGLOBAL 0
21092# endif
21093#endif
21094
21095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21096 find out it does not work in some platform. */
21097#ifndef LT_DLLAZY_OR_NOW
21098# ifdef RTLD_LAZY
21099# define LT_DLLAZY_OR_NOW RTLD_LAZY
21100# else
21101# ifdef DL_LAZY
21102# define LT_DLLAZY_OR_NOW DL_LAZY
21103# else
21104# ifdef RTLD_NOW
21105# define LT_DLLAZY_OR_NOW RTLD_NOW
21106# else
21107# ifdef DL_NOW
21108# define LT_DLLAZY_OR_NOW DL_NOW
21109# else
21110# define LT_DLLAZY_OR_NOW 0
21111# endif
21112# endif
21113# endif
21114# endif
21115#endif
21116
cristy0c60a692010-11-04 01:09:47 +000021117/* When -fvisbility=hidden is used, assume the code has been annotated
21118 correspondingly for the symbols needed. */
21119#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021120int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021121#endif
21122
cristyda16f162011-02-19 23:52:17 +000021123int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021124int main ()
21125{
21126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21127 int status = $lt_dlunknown;
21128
21129 if (self)
21130 {
21131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021132 else
21133 {
21134 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21135 else puts (dlerror ());
21136 }
cristy73bd4a52010-10-05 11:24:23 +000021137 /* dlclose (self); */
21138 }
21139 else
21140 puts (dlerror ());
21141
21142 return status;
21143}
21144_LT_EOF
21145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21146 (eval $ac_link) 2>&5
21147 ac_status=$?
21148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21149 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21150 (./conftest; exit; ) >&5 2>/dev/null
21151 lt_status=$?
21152 case x$lt_status in
21153 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21154 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21155 x$lt_dlunknown|x*) ;;
21156 esac
21157 else :
21158 # compilation failed
21159
21160 fi
21161fi
21162rm -fr conftest*
21163
21164 LIBS="$save_LIBS"
21165
21166fi
21167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21168$as_echo "$libltdl_cv_need_uscore" >&6; }
21169 fi
21170fi
21171
21172if test x"$libltdl_cv_need_uscore" = xyes; then
21173
21174$as_echo "#define NEED_USCORE 1" >>confdefs.h
21175
21176fi
21177
21178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21179$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021180if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021181 $as_echo_n "(cached) " >&6
21182else
21183 # PORTME does your system automatically load deplibs for dlopen?
21184 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21185 # For now, we just catch OSes we know something about -- in the
21186 # future, we'll try test this programmatically.
21187 lt_cv_sys_dlopen_deplibs=unknown
21188 case $host_os in
21189 aix3*|aix4.1.*|aix4.2.*)
21190 # Unknown whether this is true for these versions of AIX, but
21191 # we want this `case' here to explicitly catch those versions.
21192 lt_cv_sys_dlopen_deplibs=unknown
21193 ;;
21194 aix[4-9]*)
21195 lt_cv_sys_dlopen_deplibs=yes
21196 ;;
21197 amigaos*)
21198 case $host_cpu in
21199 powerpc)
21200 lt_cv_sys_dlopen_deplibs=no
21201 ;;
21202 esac
21203 ;;
21204 darwin*)
21205 # Assuming the user has installed a libdl from somewhere, this is true
21206 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21207 lt_cv_sys_dlopen_deplibs=yes
21208 ;;
21209 freebsd* | dragonfly*)
21210 lt_cv_sys_dlopen_deplibs=yes
21211 ;;
cristy0c60a692010-11-04 01:09:47 +000021212 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021213 # GNU and its variants, using gnu ld.so (Glibc)
21214 lt_cv_sys_dlopen_deplibs=yes
21215 ;;
21216 hpux10*|hpux11*)
21217 lt_cv_sys_dlopen_deplibs=yes
21218 ;;
21219 interix*)
21220 lt_cv_sys_dlopen_deplibs=yes
21221 ;;
21222 irix[12345]*|irix6.[01]*)
21223 # Catch all versions of IRIX before 6.2, and indicate that we don't
21224 # know how it worked for any of those versions.
21225 lt_cv_sys_dlopen_deplibs=unknown
21226 ;;
21227 irix*)
21228 # The case above catches anything before 6.2, and it's known that
21229 # at 6.2 and later dlopen does load deplibs.
21230 lt_cv_sys_dlopen_deplibs=yes
21231 ;;
21232 netbsd*)
21233 lt_cv_sys_dlopen_deplibs=yes
21234 ;;
21235 openbsd*)
21236 lt_cv_sys_dlopen_deplibs=yes
21237 ;;
21238 osf[1234]*)
21239 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21240 # it did *not* use an RPATH in a shared library to find objects the
21241 # library depends on, so we explicitly say `no'.
21242 lt_cv_sys_dlopen_deplibs=no
21243 ;;
21244 osf5.0|osf5.0a|osf5.1)
21245 # dlopen *does* load deplibs and with the right loader patch applied
21246 # it even uses RPATH in a shared library to search for shared objects
21247 # that the library depends on, but there's no easy way to know if that
21248 # patch is installed. Since this is the case, all we can really
21249 # say is unknown -- it depends on the patch being installed. If
21250 # it is, this changes to `yes'. Without it, it would be `no'.
21251 lt_cv_sys_dlopen_deplibs=unknown
21252 ;;
21253 osf*)
21254 # the two cases above should catch all versions of osf <= 5.1. Read
21255 # the comments above for what we know about them.
21256 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21257 # is used to find them so we can finally say `yes'.
21258 lt_cv_sys_dlopen_deplibs=yes
21259 ;;
21260 qnx*)
21261 lt_cv_sys_dlopen_deplibs=yes
21262 ;;
21263 solaris*)
21264 lt_cv_sys_dlopen_deplibs=yes
21265 ;;
21266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21267 libltdl_cv_sys_dlopen_deplibs=yes
21268 ;;
21269 esac
21270
21271fi
21272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21273$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21274if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21275
21276$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21277
21278fi
21279
21280:
21281
21282for ac_header in argz.h
21283do :
21284 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21285"
cristyda16f162011-02-19 23:52:17 +000021286if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021287 cat >>confdefs.h <<_ACEOF
21288#define HAVE_ARGZ_H 1
21289_ACEOF
21290
21291fi
21292
21293done
21294
21295
21296ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21297# include <argz.h>
21298#endif
21299"
cristyda16f162011-02-19 23:52:17 +000021300if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021301
21302cat >>confdefs.h <<_ACEOF
21303#define HAVE_ERROR_T 1
21304_ACEOF
21305
21306
21307else
21308
21309$as_echo "#define error_t int" >>confdefs.h
21310
21311
21312$as_echo "#define __error_t_defined 1" >>confdefs.h
21313
21314fi
21315
21316
21317ARGZ_H=
21318for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21319 argz_next argz_stringify
21320do :
21321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021323if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021324 cat >>confdefs.h <<_ACEOF
21325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21326_ACEOF
21327
21328else
21329 ARGZ_H=argz.h;
21330
21331 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21332
21333fi
21334done
21335
21336
21337if test -z "$ARGZ_H"; then :
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21339$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021340if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021341 $as_echo_n "(cached) " >&6
21342else
21343 case $host_os in #(
21344 *cygwin*)
21345 lt_cv_sys_argz_works=no
21346 if test "$cross_compiling" != no; then
21347 lt_cv_sys_argz_works="guessing no"
21348 else
21349 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21350 save_IFS=$IFS
21351 IFS=-.
21352 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21353 IFS=$save_IFS
21354 lt_os_major=${2-0}
21355 lt_os_minor=${3-0}
21356 lt_os_micro=${4-0}
21357 if test "$lt_os_major" -gt 1 \
21358 || { test "$lt_os_major" -eq 1 \
21359 && { test "$lt_os_minor" -gt 5 \
21360 || { test "$lt_os_minor" -eq 5 \
21361 && test "$lt_os_micro" -gt 24; }; }; }; then
21362 lt_cv_sys_argz_works=yes
21363 fi
21364 fi
21365 ;; #(
21366 *) lt_cv_sys_argz_works=yes ;;
21367 esac
21368fi
21369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21370$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021371 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021372
21373$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21374
21375else
21376 ARGZ_H=argz.h
21377
21378
21379 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21380
21381fi
21382fi
21383
21384
21385
21386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21387$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021388if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021389 $as_echo_n "(cached) " >&6
21390else
21391 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21392 libltdl_cv_preloaded_symbols=yes
21393 else
21394 libltdl_cv_preloaded_symbols=no
21395 fi
21396
21397fi
21398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21399$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21400if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21401
21402$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21403
21404fi
21405
21406# Set options
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418# Check whether --with-included_ltdl was given.
21419if test "${with_included_ltdl+set}" = set; then :
21420 withval=$with_included_ltdl;
21421fi
21422
21423
21424if test "x$with_included_ltdl" != xyes; then
21425 # We are not being forced to use the included libltdl sources, so
21426 # decide whether there is a useful installed version we can use.
21427 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21428
21429"
cristyda16f162011-02-19 23:52:17 +000021430if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021431 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21432 #include <ltdl.h>
21433"
cristyda16f162011-02-19 23:52:17 +000021434if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21436$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021437if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021438 $as_echo_n "(cached) " >&6
21439else
21440 ac_check_lib_save_LIBS=$LIBS
21441LIBS="-lltdl $LIBS"
21442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443/* end confdefs.h. */
21444
21445/* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char lt_dladvise_preload ();
21452int
21453main ()
21454{
21455return lt_dladvise_preload ();
21456 ;
21457 return 0;
21458}
21459_ACEOF
21460if ac_fn_c_try_link "$LINENO"; then :
21461 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21462else
21463 ac_cv_lib_ltdl_lt_dladvise_preload=no
21464fi
21465rm -f core conftest.err conftest.$ac_objext \
21466 conftest$ac_exeext conftest.$ac_ext
21467LIBS=$ac_check_lib_save_LIBS
21468fi
21469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21470$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021471if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021472 with_included_ltdl=no
21473else
21474 with_included_ltdl=yes
21475fi
21476
21477else
21478 with_included_ltdl=yes
21479fi
21480
21481else
21482 with_included_ltdl=yes
21483fi
21484
21485
21486fi
21487
21488
21489
21490
21491# Check whether --with-ltdl_include was given.
21492if test "${with_ltdl_include+set}" = set; then :
21493 withval=$with_ltdl_include;
21494fi
21495
21496
21497if test -n "$with_ltdl_include"; then
21498 if test -f "$with_ltdl_include/ltdl.h"; then :
21499 else
cristy98dddb52010-11-04 00:30:15 +000021500 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021501 fi
21502else
21503 with_ltdl_include=no
21504fi
21505
21506
21507# Check whether --with-ltdl_lib was given.
21508if test "${with_ltdl_lib+set}" = set; then :
21509 withval=$with_ltdl_lib;
21510fi
21511
21512
21513if test -n "$with_ltdl_lib"; then
21514 if test -f "$with_ltdl_lib/libltdl.la"; then :
21515 else
cristy98dddb52010-11-04 00:30:15 +000021516 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021517 fi
21518else
21519 with_ltdl_lib=no
21520fi
21521
21522case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21523 ,yes,no,no,)
21524 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021525 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021526 "") enable_ltdl_convenience=yes
21527 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21528esac
21529LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21530LTDLDEPS=$LIBLTDL
21531LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21532
21533
21534
21535
21536
21537# For backwards non-gettext consistent compatibility...
21538INCLTDL="$LTDLINCL"
21539
21540
21541 ;;
21542 ,no,no,no,)
21543 # If the included ltdl is not to be used, then use the
21544 # preinstalled libltdl we found.
21545
21546$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21547
21548 LIBLTDL=-lltdl
21549 LTDLDEPS=
21550 LTDLINCL=
21551 ;;
21552 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021553 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021554 ;;
21555 *) with_included_ltdl=no
21556 LIBLTDL="-L$with_ltdl_lib -lltdl"
21557 LTDLDEPS=
21558 LTDLINCL="-I$with_ltdl_include"
21559 ;;
21560esac
21561INCLTDL="$LTDLINCL"
21562
21563# Report our decision...
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21565$as_echo_n "checking where to find libltdl headers... " >&6; }
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21567$as_echo "$LTDLINCL" >&6; }
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21569$as_echo_n "checking where to find libltdl library... " >&6; }
21570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21571$as_echo "$LIBLTDL" >&6; }
21572
21573
21574
21575# Check whether --enable-ltdl-install was given.
21576if test "${enable_ltdl_install+set}" = set; then :
21577 enableval=$enable_ltdl_install;
21578fi
21579
21580
21581case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21582 *yes*) ;;
21583 *) enable_ltdl_convenience=yes ;;
21584esac
21585
21586 if test x"${enable_ltdl_install-no}" != xno; then
21587 INSTALL_LTDL_TRUE=
21588 INSTALL_LTDL_FALSE='#'
21589else
21590 INSTALL_LTDL_TRUE='#'
21591 INSTALL_LTDL_FALSE=
21592fi
21593
21594 if test x"${enable_ltdl_convenience-no}" != xno; then
21595 CONVENIENCE_LTDL_TRUE=
21596 CONVENIENCE_LTDL_FALSE='#'
21597else
21598 CONVENIENCE_LTDL_TRUE='#'
21599 CONVENIENCE_LTDL_FALSE=
21600fi
21601
21602
21603
21604
21605
21606
cristy73bd4a52010-10-05 11:24:23 +000021607# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21608# the user used. This is so that ltdl.h can pick up the parent projects
21609# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21610# definitions required by ltdl.c.
21611# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21612
21613
21614
21615for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21616do :
21617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21618ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21619"
cristy98dddb52010-11-04 00:30:15 +000021620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021621 cat >>confdefs.h <<_ACEOF
21622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21623_ACEOF
21624
21625fi
21626
21627done
21628
21629
21630for ac_func in closedir opendir readdir
21631do :
21632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21633ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021634if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021635 cat >>confdefs.h <<_ACEOF
21636#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21637_ACEOF
21638
21639else
21640
21641
21642 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21643
21644fi
21645done
21646
21647for ac_func in strlcat strlcpy
21648do :
21649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21650ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021651if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021652 cat >>confdefs.h <<_ACEOF
21653#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21654_ACEOF
21655
21656else
21657
21658
21659 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21660
21661fi
21662done
21663
21664
21665
21666cat >>confdefs.h <<_ACEOF
21667#define LT_LIBEXT "$libext"
21668_ACEOF
21669
21670
cristyda16f162011-02-19 23:52:17 +000021671name=
21672eval "lt_libprefix=\"$libname_spec\""
21673
21674cat >>confdefs.h <<_ACEOF
21675#define LT_LIBPREFIX "$lt_libprefix"
21676_ACEOF
21677
21678
cristy73bd4a52010-10-05 11:24:23 +000021679name=ltdl
cristyda16f162011-02-19 23:52:17 +000021680eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021681
21682
21683
21684
21685
21686
21687
21688
21689# Only expand once:
21690
21691
cristy3ed852e2009-09-05 21:47:34 +000021692
21693# Check to see if building shared libraries
21694libtool_build_shared_libs='no'
21695if test "$enable_shared" = 'yes'; then
21696 libtool_build_shared_libs='yes'
21697fi
21698
21699# Check to see if building static libraries
21700libtool_build_static_libs='no'
21701if test "$enable_static" = 'yes'; then
21702 libtool_build_static_libs='yes'
21703fi
21704
cristy73bd4a52010-10-05 11:24:23 +000021705 if test "${libtool_build_shared_libs}" = 'yes'; then
21706 WITH_SHARED_LIBS_TRUE=
21707 WITH_SHARED_LIBS_FALSE='#'
21708else
21709 WITH_SHARED_LIBS_TRUE='#'
21710 WITH_SHARED_LIBS_FALSE=
21711fi
21712
cristy3ed852e2009-09-05 21:47:34 +000021713#
21714# Enable support for building loadable modules
21715#
21716
21717# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021718if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 withval=$with_modules; with_modules=$withval
21720else
cristy5a1cefd2010-01-06 20:42:35 +000021721 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021722fi
21723
21724
21725# Only allow building loadable modules if we are building shared libraries
21726if test "$with_modules" != 'no' ; then
21727 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021728 { $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 +000021729$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21730 with_modules='no'
21731 fi
21732fi
21733if test "$with_modules" != 'no'; then
21734
cristy8b350f62009-11-15 23:12:43 +000021735$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021736
21737fi
cristy73bd4a52010-10-05 11:24:23 +000021738 if test "$with_modules" != 'no'; then
21739 WITH_MODULES_TRUE=
21740 WITH_MODULES_FALSE='#'
21741else
21742 WITH_MODULES_TRUE='#'
21743 WITH_MODULES_FALSE=
21744fi
21745
cristy3ed852e2009-09-05 21:47:34 +000021746
21747# Enable building/use of libltdl if we are building shared libraries regardless
21748# of whether modules are built or not.
21749with_ltdl='no'
21750if test "$libtool_build_shared_libs" != 'no'; then
21751 with_ltdl='yes'
21752fi
21753
cristy73bd4a52010-10-05 11:24:23 +000021754 if test "$with_ltdl" != 'no'; then
21755 WITH_LTDL_TRUE=
21756 WITH_LTDL_FALSE='#'
21757else
21758 WITH_LTDL_TRUE='#'
21759 WITH_LTDL_FALSE=
21760fi
21761
cristy3ed852e2009-09-05 21:47:34 +000021762if test "$with_ltdl" != 'no'; then
21763
cristy8b350f62009-11-15 23:12:43 +000021764$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021765
21766
21767 # Set DLLDFLAGS
21768 if test X"$enable_shared" = Xyes; then
21769 DLLDFLAGS=-export-dynamic
21770
21771 fi
21772fi
21773
21774# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021775# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021776# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021777if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21779else
21780 enable_delegate_build='no'
21781fi
21782
21783
21784# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021785if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021786 enableval=$enable_deprecated; enable_deprecated=$enableval
21787else
21788 enable_deprecated='no'
21789fi
21790
21791
21792if test "$enable_deprecated" = 'yes'; then
21793
cristy8b350f62009-11-15 23:12:43 +000021794$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021795
21796else
21797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21798fi
21799
21800# Build a version of ImageMagick which operates uninstalled.
21801# Used to build distributions located via MAGICK_HOME / executable path
21802# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021803if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021804 enableval=$enable_installed; enable_installed=$enableval
21805else
21806 enable_installed='yes'
21807fi
21808
21809
21810if test "$enable_installed" = 'yes'; then
21811
cristy8b350f62009-11-15 23:12:43 +000021812$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021813
21814else
21815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21816fi
21817
21818# Permit enciphering and deciphering image pixels.
21819# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021820if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 enableval=$enable_cipher; enable_cipher=$enableval
21822else
21823 enable_cipher='yes'
21824fi
21825
21826
21827if test "$enable_cipher" = 'yes'; then
21828
cristy8b350f62009-11-15 23:12:43 +000021829$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021830
21831fi
21832
cristy6e3607c2011-09-13 13:59:17 +000021833# Build a zero-configuration version of ImageMagick.
21834# Check whether --enable-zero-configuration was given.
21835if test "${enable_zero_configuration+set}" = set; then :
21836 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021837else
cristy6e3607c2011-09-13 13:59:17 +000021838 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021839fi
21840
21841
cristy6e3607c2011-09-13 13:59:17 +000021842if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021843
cristy6e3607c2011-09-13 13:59:17 +000021844$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021845
cristy81af5702011-09-13 14:20:58 +000021846 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021847fi
21848
21849# Build a high dynamic range version of ImageMagick.
21850# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021851if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 enableval=$enable_hdri; enable_hdri=$enableval
21853else
cristy191c0b72012-08-12 16:29:52 +000021854 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021855fi
21856
21857
21858MAGICK_HDRI=""
21859if test "$enable_hdri" = 'yes'; then
21860 MAGICK_HDRI="HDRI"
21861
cristy8b350f62009-11-15 23:12:43 +000021862$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021863
cristyfd9dcd42010-08-08 18:07:02 +000021864 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021865fi
21866
cristy3ed852e2009-09-05 21:47:34 +000021867# Build a version of ImageMagick with assert statements.
21868# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021869if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 enableval=$enable_assert; enable_assert=$enableval
21871else
21872 enable_assert='yes'
21873fi
21874
21875
21876if test "$enable_assert" = 'no'; then
21877
cristy8b350f62009-11-15 23:12:43 +000021878$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021879
21880fi
21881
cristya448bd22011-10-14 12:38:13 +000021882# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021883
21884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21885$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21886 # Check whether --enable-maintainer-mode was given.
21887if test "${enable_maintainer_mode+set}" = set; then :
21888 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21889else
21890 USE_MAINTAINER_MODE=no
21891fi
21892
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21894$as_echo "$USE_MAINTAINER_MODE" >&6; }
21895 if test $USE_MAINTAINER_MODE = yes; then
21896 MAINTAINER_MODE_TRUE=
21897 MAINTAINER_MODE_FALSE='#'
21898else
21899 MAINTAINER_MODE_TRUE='#'
21900 MAINTAINER_MODE_FALSE=
21901fi
21902
21903 MAINT=$MAINTAINER_MODE_TRUE
21904
21905
cristy3ed852e2009-09-05 21:47:34 +000021906
cristy3ed852e2009-09-05 21:47:34 +000021907# Enable ccmalloc memory debugging support
21908# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021909if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21911else
21912 enable_ccmalloc='no'
21913fi
21914
21915
21916# Enable Electric Fence memory debugging support
21917# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021918if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021919 enableval=$enable_efence; enable_efence=$enableval
21920else
21921 enable_efence='no'
21922fi
21923
21924
21925# Enable prof-based profiling support
21926# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021927if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021928 enableval=$enable_prof; enable_prof=$enableval
21929else
21930 enable_prof='no'
21931fi
21932
21933
21934# Enable gprof-based profiling support
21935# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021936if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021937 enableval=$enable_gprof; enable_gprof=$enableval
21938else
21939 enable_gprof='no'
21940fi
21941
21942
21943# Enable gcov-based profiling support
21944# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021945if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 enableval=$enable_gcov; enable_gcov=$enableval
21947else
21948 enable_gcov='no'
21949fi
21950
21951
21952enable_profiling='no'
21953if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21954 enable_profiling='yes'
21955 if test "$libtool_build_shared_libs" = 'yes'; then
21956 echo "Warning: Can not profile code using shared libraries"
21957 fi
21958fi
21959
21960# Magick API method prefix
21961
21962# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021963if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021964 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021965else
cristyfc3d0222012-02-07 15:05:57 +000021966 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021967fi
21968
21969
cristyfc3d0222012-02-07 15:05:57 +000021970if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021971
21972cat >>confdefs.h <<_ACEOF
21973#define NAMESPACE_PREFIX $with_method_prefix
21974_ACEOF
21975
cristyfc3d0222012-02-07 15:05:57 +000021976 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021977fi
21978
cristy71d8c202012-03-20 17:05:01 +000021979# Enable legacy support (default no)
21980# Check whether --enable-legacy-support was given.
21981if test "${enable_legacy_support+set}" = set; then :
21982 enableval=$enable_legacy_support; with_legacy_support=$enableval
21983else
21984 with_legacy_support='no'
21985fi
21986
21987 if test "$with_legacy_support" != 'no'; then
21988 LEGACY_SUPPORT_TRUE=
21989 LEGACY_SUPPORT_FALSE='#'
21990else
21991 LEGACY_SUPPORT_TRUE='#'
21992 LEGACY_SUPPORT_FALSE=
21993fi
21994
21995
cristy3ed852e2009-09-05 21:47:34 +000021996# Number of bits in a Quantum
21997
21998# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021999if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022000 withval=$with_quantum_depth; with_quantum_depth=$withval
22001else
22002 with_quantum_depth=16
22003fi
22004
22005
22006if test "$with_quantum_depth" != '8'; then
22007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22008fi
22009
22010case "${with_quantum_depth}" in
22011 8 ) ;;
22012 16 ) ;;
22013 32 ) ;;
22014 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022015 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022016esac
22017QUANTUM_DEPTH="$with_quantum_depth"
22018
22019cat >>confdefs.h <<_ACEOF
22020#define QUANTUM_DEPTH $QUANTUM_DEPTH
22021_ACEOF
22022
22023
22024# Set pixel cache threshold
22025
22026# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022027if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 withval=$with_cache; with_cache=$withval
22029else
22030 with_cache=''
22031fi
22032
22033
22034if test "$with_cache" != ''; then
22035
22036cat >>confdefs.h <<_ACEOF
22037#define PixelCacheThreshold $with_cache
22038_ACEOF
22039
22040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22041fi
22042
22043# Disable/Enable support for full delegate paths
22044
22045# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022046if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 withval=$with_frozenpaths; with_frozenpaths=$withval
22048else
22049 with_frozenpaths='no'
22050fi
22051
22052
22053# Enable build/install of Magick++
22054
22055# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022056if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022057 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22058else
22059 with_magick_plus_plus='yes'
22060fi
22061
22062
22063# Disable build/install of PerlMagick.
22064
22065# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022066if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022067 withval=$with_perl; with_perl=$withval
22068else
cristyb5f4e2f2010-04-25 00:49:11 +000022069 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022070fi
22071
22072
22073# Options to pass when configuring PerlMagick
22074
22075# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022076if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022077 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022078fi
22079
22080
cristy3ed852e2009-09-05 21:47:34 +000022081
22082# Enable umem, object-caching memory allocation library.
22083
22084# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022085if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 withval=$with_umem; with_umem=$withval
22087else
22088 with_umem='no'
22089fi
22090
22091if test "$with_umem" != 'yes' ; then
22092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22093fi
22094
22095#
22096# Specify path to shared libstdc++ if not in normal location
22097#
22098
22099# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022100if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 withval=$with_libstdc; with_libstdc=$withval
22102else
22103 with_libstdc=''
22104fi
22105
22106
22107if test "$with_libstdc" != ''; then
22108 if test -d "$with_libstdc"; then
22109 LIBSTDCLDFLAGS="-L$with_libstdc"
22110 fi
22111fi
22112
22113
22114# Does gcc required -traditional?
22115if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022117$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022118if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022119 $as_echo_n "(cached) " >&6
22120else
22121 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123/* end confdefs.h. */
22124#include <sgtty.h>
22125Autoconf TIOCGETP
22126_ACEOF
22127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022128 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022129 ac_cv_prog_gcc_traditional=yes
22130else
22131 ac_cv_prog_gcc_traditional=no
22132fi
22133rm -f conftest*
22134
22135
22136 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022138/* end confdefs.h. */
22139#include <termio.h>
22140Autoconf TCGETA
22141_ACEOF
22142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022143 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 ac_cv_prog_gcc_traditional=yes
22145fi
22146rm -f conftest*
22147
22148 fi
22149fi
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22152 if test $ac_cv_prog_gcc_traditional = yes; then
22153 CC="$CC -traditional"
22154 fi
22155fi
22156
22157
22158########
22159#
22160# Set defines required to build DLLs and modules using MinGW
22161#
22162########
22163# These options are set for multi-thread DLL module build
22164# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22165# module: _DLL
22166# executable/Magick++: _DLL _MAGICKMOD_
22167MODULE_EXTRA_CPPFLAGS=''
22168LIBRARY_EXTRA_CPPFLAGS=''
22169if test "${native_win32_build}" = 'yes'; then
22170 if test "${libtool_build_shared_libs}" = 'yes'; then
22171 CPPFLAGS="$CPPFLAGS -D_DLL"
22172 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22173 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22174 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22175 if test "$with_modules" = 'yes'; then
22176 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22177 else
22178 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22179 fi
22180 else
22181 CPPFLAGS="$CPPFLAGS -D_LIB"
22182 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22183 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22184 fi
22185 if test "$with_threads" = 'yes'; then
22186 CPPFLAGS="$CPPFLAGS -D_MT"
22187 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22188 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22189 fi
22190fi
22191
22192
22193
22194# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022197if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022198 $as_echo_n "(cached) " >&6
22199else
cristy8b350f62009-11-15 23:12:43 +000022200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022201/* end confdefs.h. */
22202#include <stdlib.h>
22203#include <stdarg.h>
22204#include <string.h>
22205#include <float.h>
22206
22207int
22208main ()
22209{
22210
22211 ;
22212 return 0;
22213}
22214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022215if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 ac_cv_header_stdc=yes
22217else
cristy8b350f62009-11-15 23:12:43 +000022218 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022219fi
cristy3ed852e2009-09-05 21:47:34 +000022220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221
22222if test $ac_cv_header_stdc = yes; then
22223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022225/* end confdefs.h. */
22226#include <string.h>
22227
22228_ACEOF
22229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022230 $EGREP "memchr" >/dev/null 2>&1; then :
22231
cristy3ed852e2009-09-05 21:47:34 +000022232else
22233 ac_cv_header_stdc=no
22234fi
22235rm -f conftest*
22236
22237fi
22238
22239if test $ac_cv_header_stdc = yes; then
22240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022242/* end confdefs.h. */
22243#include <stdlib.h>
22244
22245_ACEOF
22246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022247 $EGREP "free" >/dev/null 2>&1; then :
22248
cristy3ed852e2009-09-05 21:47:34 +000022249else
22250 ac_cv_header_stdc=no
22251fi
22252rm -f conftest*
22253
22254fi
22255
22256if test $ac_cv_header_stdc = yes; then
22257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022258 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 :
22260else
cristy8b350f62009-11-15 23:12:43 +000022261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022262/* end confdefs.h. */
22263#include <ctype.h>
22264#include <stdlib.h>
22265#if ((' ' & 0x0FF) == 0x020)
22266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22268#else
22269# define ISLOWER(c) \
22270 (('a' <= (c) && (c) <= 'i') \
22271 || ('j' <= (c) && (c) <= 'r') \
22272 || ('s' <= (c) && (c) <= 'z'))
22273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22274#endif
22275
22276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22277int
22278main ()
22279{
22280 int i;
22281 for (i = 0; i < 256; i++)
22282 if (XOR (islower (i), ISLOWER (i))
22283 || toupper (i) != TOUPPER (i))
22284 return 2;
22285 return 0;
22286}
22287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022288if ac_fn_c_try_run "$LINENO"; then :
22289
cristy3ed852e2009-09-05 21:47:34 +000022290else
cristy8b350f62009-11-15 23:12:43 +000022291 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022292fi
cristy8b350f62009-11-15 23:12:43 +000022293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22294 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022295fi
22296
cristy3ed852e2009-09-05 21:47:34 +000022297fi
22298fi
cristy8b350f62009-11-15 23:12:43 +000022299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo "$ac_cv_header_stdc" >&6; }
22301if test $ac_cv_header_stdc = yes; then
22302
cristy8b350f62009-11-15 23:12:43 +000022303$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022304
22305fi
22306
22307if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022308 { $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 +000022309 header files. Compilation cannot proceed. Please install the ANSI C
22310 headers and rerun this script." >&5
22311$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22312 header files. Compilation cannot proceed. Please install the ANSI C
22313 headers and rerun this script." >&2;};
22314fi
cristya0b81c32010-01-22 02:54:33 +000022315
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22317$as_echo_n "checking whether to enable assertions... " >&6; }
22318 # Check whether --enable-assert was given.
22319if test "${enable_assert+set}" = set; then :
22320 enableval=$enable_assert; ac_enable_assert=$enableval
22321 if test "x$enableval" = xno; then :
22322
22323$as_echo "#define NDEBUG 1" >>confdefs.h
22324
22325elif test "x$enableval" != xyes; then :
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22327$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22328 ac_enable_assert=yes
22329fi
22330else
22331 ac_enable_assert=yes
22332fi
22333
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22335$as_echo "$ac_enable_assert" >&6; }
22336
cristy3ed852e2009-09-05 21:47:34 +000022337ac_header_dirent=no
22338for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22339 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022341$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022342if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022343 $as_echo_n "(cached) " >&6
22344else
cristy8b350f62009-11-15 23:12:43 +000022345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022346/* end confdefs.h. */
22347#include <sys/types.h>
22348#include <$ac_hdr>
22349
22350int
22351main ()
22352{
22353if ((DIR *) 0)
22354return 0;
22355 ;
22356 return 0;
22357}
22358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022359if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 eval "$as_ac_Header=yes"
22361else
cristy8b350f62009-11-15 23:12:43 +000022362 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022363fi
cristy3ed852e2009-09-05 21:47:34 +000022364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365fi
cristy8b350f62009-11-15 23:12:43 +000022366eval ac_res=\$$as_ac_Header
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022368$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022370 cat >>confdefs.h <<_ACEOF
22371#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22372_ACEOF
22373
22374ac_header_dirent=$ac_hdr; break
22375fi
22376
22377done
22378# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22379if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022381$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022382if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022383 $as_echo_n "(cached) " >&6
22384else
22385 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022387/* end confdefs.h. */
22388
22389/* Override any GCC internal prototype to avoid an error.
22390 Use char because int might match the return type of a GCC
22391 builtin and then its argument prototype would still apply. */
22392#ifdef __cplusplus
22393extern "C"
22394#endif
22395char opendir ();
22396int
22397main ()
22398{
22399return opendir ();
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404for ac_lib in '' dir; do
22405 if test -z "$ac_lib"; then
22406 ac_res="none required"
22407 else
22408 ac_res=-l$ac_lib
22409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22410 fi
cristy8b350f62009-11-15 23:12:43 +000022411 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022412 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy8b350f62009-11-15 23:12:43 +000022414rm -f core conftest.err conftest.$ac_objext \
22415 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022416 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022417 break
22418fi
22419done
cristyda16f162011-02-19 23:52:17 +000022420if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022421
cristy3ed852e2009-09-05 21:47:34 +000022422else
22423 ac_cv_search_opendir=no
22424fi
22425rm conftest.$ac_ext
22426LIBS=$ac_func_search_save_LIBS
22427fi
cristy8b350f62009-11-15 23:12:43 +000022428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022429$as_echo "$ac_cv_search_opendir" >&6; }
22430ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022431if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22433
22434fi
22435
22436else
cristy8b350f62009-11-15 23:12:43 +000022437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022438$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022439if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022440 $as_echo_n "(cached) " >&6
22441else
22442 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445
22446/* Override any GCC internal prototype to avoid an error.
22447 Use char because int might match the return type of a GCC
22448 builtin and then its argument prototype would still apply. */
22449#ifdef __cplusplus
22450extern "C"
22451#endif
22452char opendir ();
22453int
22454main ()
22455{
22456return opendir ();
22457 ;
22458 return 0;
22459}
22460_ACEOF
22461for ac_lib in '' x; do
22462 if test -z "$ac_lib"; then
22463 ac_res="none required"
22464 else
22465 ac_res=-l$ac_lib
22466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22467 fi
cristy8b350f62009-11-15 23:12:43 +000022468 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022469 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022470fi
cristy8b350f62009-11-15 23:12:43 +000022471rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022473 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 break
22475fi
22476done
cristyda16f162011-02-19 23:52:17 +000022477if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022478
cristy3ed852e2009-09-05 21:47:34 +000022479else
22480 ac_cv_search_opendir=no
22481fi
22482rm conftest.$ac_ext
22483LIBS=$ac_func_search_save_LIBS
22484fi
cristy8b350f62009-11-15 23:12:43 +000022485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022486$as_echo "$ac_cv_search_opendir" >&6; }
22487ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022488if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22490
22491fi
22492
22493fi
22494
22495
22496# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022497for 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 +000022498do :
22499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22500ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022501if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 cat >>confdefs.h <<_ACEOF
22503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22504_ACEOF
22505
22506fi
22507
22508done
22509
22510
22511########
22512#
22513# Checks for typedefs, structures, and compiler characteristics.
22514#
22515########
22516
cristy8b350f62009-11-15 23:12:43 +000022517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022518$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022519if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 $as_echo_n "(cached) " >&6
22521else
cristy8b350f62009-11-15 23:12:43 +000022522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022523/* end confdefs.h. */
22524
cristy14fefe52012-05-21 00:59:18 +000022525 #include <stdbool.h>
22526 #ifndef bool
22527 "error: bool is not defined"
22528 #endif
22529 #ifndef false
22530 "error: false is not defined"
22531 #endif
22532 #if false
22533 "error: false is not 0"
22534 #endif
22535 #ifndef true
22536 "error: true is not defined"
22537 #endif
22538 #if true != 1
22539 "error: true is not 1"
22540 #endif
22541 #ifndef __bool_true_false_are_defined
22542 "error: __bool_true_false_are_defined is not defined"
22543 #endif
cristy3ed852e2009-09-05 21:47:34 +000022544
cristy14fefe52012-05-21 00:59:18 +000022545 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022546
cristy14fefe52012-05-21 00:59:18 +000022547 char a[true == 1 ? 1 : -1];
22548 char b[false == 0 ? 1 : -1];
22549 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22550 char d[(bool) 0.5 == true ? 1 : -1];
22551 /* See body of main program for 'e'. */
22552 char f[(_Bool) 0.0 == false ? 1 : -1];
22553 char g[true];
22554 char h[sizeof (_Bool)];
22555 char i[sizeof s.t];
22556 enum { j = false, k = true, l = false * true, m = true * 256 };
22557 /* The following fails for
22558 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22559 _Bool n[m];
22560 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22561 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22562 /* Catch a bug in an HP-UX C compiler. See
22563 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22564 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22565 */
22566 _Bool q = true;
22567 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022568
22569int
22570main ()
22571{
22572
cristy14fefe52012-05-21 00:59:18 +000022573 bool e = &s;
22574 *pq |= q;
22575 *pq |= ! q;
22576 /* Refer to every declared value, to avoid compiler optimizations. */
22577 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22578 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022579
22580 ;
22581 return 0;
22582}
22583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022584if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022585 ac_cv_header_stdbool_h=yes
22586else
cristy8b350f62009-11-15 23:12:43 +000022587 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022588fi
cristy3ed852e2009-09-05 21:47:34 +000022589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590fi
cristy8b350f62009-11-15 23:12:43 +000022591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022593 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022594if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022595
22596cat >>confdefs.h <<_ACEOF
22597#define HAVE__BOOL 1
22598_ACEOF
22599
22600
22601fi
22602
cristy14fefe52012-05-21 00:59:18 +000022603
cristy3ed852e2009-09-05 21:47:34 +000022604if test $ac_cv_header_stdbool_h = yes; then
22605
cristy8b350f62009-11-15 23:12:43 +000022606$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022607
22608fi
22609
cristy8b350f62009-11-15 23:12:43 +000022610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022611$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022612if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 $as_echo_n "(cached) " >&6
22614else
cristy8b350f62009-11-15 23:12:43 +000022615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022616/* end confdefs.h. */
22617
22618int
22619main ()
22620{
22621
22622volatile int x;
22623int * volatile y = (int *) 0;
22624return !x && !y;
22625 ;
22626 return 0;
22627}
22628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022629if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022630 ac_cv_c_volatile=yes
22631else
cristy8b350f62009-11-15 23:12:43 +000022632 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022633fi
cristy3ed852e2009-09-05 21:47:34 +000022634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635fi
cristy8b350f62009-11-15 23:12:43 +000022636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022637$as_echo "$ac_cv_c_volatile" >&6; }
22638if test $ac_cv_c_volatile = no; then
22639
cristy8b350f62009-11-15 23:12:43 +000022640$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022641
22642fi
22643
cristy8b350f62009-11-15 23:12:43 +000022644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022645$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022646if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 $as_echo_n "(cached) " >&6
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022650/* end confdefs.h. */
22651#define x(y) #y
22652
22653char *s = x(teststring);
22654_ACEOF
22655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022656 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 ac_cv_c_stringize=no
22658else
22659 ac_cv_c_stringize=yes
22660fi
22661rm -f conftest*
22662
22663fi
cristy8b350f62009-11-15 23:12:43 +000022664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022665$as_echo "$ac_cv_c_stringize" >&6; }
22666if test $ac_cv_c_stringize = yes; then
22667
cristy8b350f62009-11-15 23:12:43 +000022668$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022669
22670fi
22671
cristy8b350f62009-11-15 23:12:43 +000022672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022673$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022674if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022675 $as_echo_n "(cached) " >&6
22676else
cristy8b350f62009-11-15 23:12:43 +000022677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022678/* end confdefs.h. */
22679#include <sys/types.h>
22680#include <sys/stat.h>
22681
22682#if defined S_ISBLK && defined S_IFDIR
22683extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22684#endif
22685
22686#if defined S_ISBLK && defined S_IFCHR
22687extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22688#endif
22689
22690#if defined S_ISLNK && defined S_IFREG
22691extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22692#endif
22693
22694#if defined S_ISSOCK && defined S_IFREG
22695extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22696#endif
22697
22698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022700 ac_cv_header_stat_broken=no
22701else
cristy8b350f62009-11-15 23:12:43 +000022702 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022703fi
cristy3ed852e2009-09-05 21:47:34 +000022704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705fi
cristy8b350f62009-11-15 23:12:43 +000022706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022707$as_echo "$ac_cv_header_stat_broken" >&6; }
22708if test $ac_cv_header_stat_broken = yes; then
22709
cristy8b350f62009-11-15 23:12:43 +000022710$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022711
22712fi
22713
cristy8b350f62009-11-15 23:12:43 +000022714{ $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 +000022715$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022716if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022717 $as_echo_n "(cached) " >&6
22718else
cristy8b350f62009-11-15 23:12:43 +000022719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022720/* end confdefs.h. */
22721#include <sys/types.h>
22722#include <sys/time.h>
22723#include <time.h>
22724
22725int
22726main ()
22727{
22728if ((struct tm *) 0)
22729return 0;
22730 ;
22731 return 0;
22732}
22733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022734if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022735 ac_cv_header_time=yes
22736else
cristy8b350f62009-11-15 23:12:43 +000022737 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022738fi
cristy3ed852e2009-09-05 21:47:34 +000022739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740fi
cristy8b350f62009-11-15 23:12:43 +000022741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022742$as_echo "$ac_cv_header_time" >&6; }
22743if test $ac_cv_header_time = yes; then
22744
cristy8b350f62009-11-15 23:12:43 +000022745$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022746
22747fi
22748
cristy8b350f62009-11-15 23:12:43 +000022749{ $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 +000022750$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022751if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022752 $as_echo_n "(cached) " >&6
22753else
cristy8b350f62009-11-15 23:12:43 +000022754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022755/* end confdefs.h. */
22756#include <sys/types.h>
22757#include <time.h>
22758
22759int
22760main ()
22761{
22762struct tm tm;
22763 int *p = &tm.tm_sec;
22764 return !p;
22765 ;
22766 return 0;
22767}
22768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 ac_cv_struct_tm=time.h
22771else
cristy8b350f62009-11-15 23:12:43 +000022772 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022773fi
cristy3ed852e2009-09-05 21:47:34 +000022774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775fi
cristy8b350f62009-11-15 23:12:43 +000022776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022777$as_echo "$ac_cv_struct_tm" >&6; }
22778if test $ac_cv_struct_tm = sys/time.h; then
22779
cristy8b350f62009-11-15 23:12:43 +000022780$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022781
22782fi
22783
cristy92703d82010-04-26 00:18:18 +000022784ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22785#include <$ac_cv_struct_tm>
22786
22787"
cristyda16f162011-02-19 23:52:17 +000022788if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022789
22790cat >>confdefs.h <<_ACEOF
22791#define HAVE_STRUCT_TM_TM_ZONE 1
22792_ACEOF
22793
22794
22795fi
22796
22797if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22798
22799$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22800
22801else
22802 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22803"
cristyda16f162011-02-19 23:52:17 +000022804if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022805 ac_have_decl=1
22806else
22807 ac_have_decl=0
22808fi
22809
22810cat >>confdefs.h <<_ACEOF
22811#define HAVE_DECL_TZNAME $ac_have_decl
22812_ACEOF
22813
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22815$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022816if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022817 $as_echo_n "(cached) " >&6
22818else
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h. */
22821#include <time.h>
22822#if !HAVE_DECL_TZNAME
22823extern char *tzname[];
22824#endif
22825
22826int
22827main ()
22828{
22829return tzname[0][0];
22830 ;
22831 return 0;
22832}
22833_ACEOF
22834if ac_fn_c_try_link "$LINENO"; then :
22835 ac_cv_var_tzname=yes
22836else
22837 ac_cv_var_tzname=no
22838fi
22839rm -f core conftest.err conftest.$ac_objext \
22840 conftest$ac_exeext conftest.$ac_ext
22841fi
22842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22843$as_echo "$ac_cv_var_tzname" >&6; }
22844 if test $ac_cv_var_tzname = yes; then
22845
22846$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22847
22848 fi
22849fi
22850
cristy8b350f62009-11-15 23:12:43 +000022851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022852$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022853if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022854 $as_echo_n "(cached) " >&6
22855else
22856 echo '#! /bin/cat
22857exit 69
22858' >conftest
22859chmod u+x conftest
22860(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22861if test $? -ne 69; then
22862 ac_cv_sys_interpreter=yes
22863else
22864 ac_cv_sys_interpreter=no
22865fi
22866rm -f conftest
22867fi
cristy8b350f62009-11-15 23:12:43 +000022868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022869$as_echo "$ac_cv_sys_interpreter" >&6; }
22870interpval=$ac_cv_sys_interpreter
22871
22872
cristy3ed852e2009-09-05 21:47:34 +000022873# If the C compiler supports the keyword inline, do nothing. Otherwise
22874# define inline to __inline__ or __inline if it accepts one of those,
22875# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022877$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022878if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022879 $as_echo_n "(cached) " >&6
22880else
22881 ac_cv_c_inline=no
22882for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022884/* end confdefs.h. */
22885#ifndef __cplusplus
22886typedef int foo_t;
22887static $ac_kw foo_t static_foo () {return 0; }
22888$ac_kw foo_t foo () {return 0; }
22889#endif
22890
22891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022892if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022893 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022894fi
cristy3ed852e2009-09-05 21:47:34 +000022895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 test "$ac_cv_c_inline" != no && break
22897done
22898
22899fi
cristy8b350f62009-11-15 23:12:43 +000022900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022901$as_echo "$ac_cv_c_inline" >&6; }
22902
cristy3ed852e2009-09-05 21:47:34 +000022903case $ac_cv_c_inline in
22904 inline | yes) ;;
22905 *)
22906 case $ac_cv_c_inline in
22907 no) ac_val=;;
22908 *) ac_val=$ac_cv_c_inline;;
22909 esac
22910 cat >>confdefs.h <<_ACEOF
22911#ifndef __cplusplus
22912#define inline $ac_val
22913#endif
22914_ACEOF
22915 ;;
22916esac
22917
22918
22919# If the C compiler supports the keyword restrict, do nothing. Otherwise
22920# define restrict to __restrict__ or __restrict if it accepts one of those,
22921# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022923$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022924if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022925 $as_echo_n "(cached) " >&6
22926else
22927 ac_cv_c_restrict=no
22928 # The order here caters to the fact that C++ does not require restrict.
22929 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022931/* end confdefs.h. */
22932typedef int * int_ptr;
22933 int foo (int_ptr $ac_kw ip) {
22934 return ip[0];
22935 }
22936int
22937main ()
22938{
22939int s[1];
22940 int * $ac_kw t = s;
22941 t[0] = 0;
22942 return foo(t)
22943 ;
22944 return 0;
22945}
22946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022947if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022948 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022949fi
cristy3ed852e2009-09-05 21:47:34 +000022950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 test "$ac_cv_c_restrict" != no && break
22952 done
22953
22954fi
cristy8b350f62009-11-15 23:12:43 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo "$ac_cv_c_restrict" >&6; }
22957
cristy3ed852e2009-09-05 21:47:34 +000022958 case $ac_cv_c_restrict in
22959 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022960 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022961 ;;
22962 *) cat >>confdefs.h <<_ACEOF
22963#define restrict $ac_cv_c_restrict
22964_ACEOF
22965 ;;
22966 esac
22967
22968
22969# If words are stored with the most significant byte first (like
22970# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022972$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022973if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 $as_echo_n "(cached) " >&6
22975else
22976 ac_cv_c_bigendian=unknown
22977 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022979/* end confdefs.h. */
22980#ifndef __APPLE_CC__
22981 not a universal capable compiler
22982 #endif
22983 typedef int dummy;
22984
22985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022986if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022987
22988 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022989 # there are at least two -arch flags with different values.
22990 ac_arch=
22991 ac_prev=
22992 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22993 if test -n "$ac_prev"; then
22994 case $ac_word in
22995 i?86 | x86_64 | ppc | ppc64)
22996 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22997 ac_arch=$ac_word
22998 else
22999 ac_cv_c_bigendian=universal
23000 break
23001 fi
23002 ;;
23003 esac
23004 ac_prev=
23005 elif test "x$ac_word" = "x-arch"; then
23006 ac_prev=arch
23007 fi
23008 done
cristy3ed852e2009-09-05 21:47:34 +000023009fi
cristy3ed852e2009-09-05 21:47:34 +000023010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 if test $ac_cv_c_bigendian = unknown; then
23012 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023014/* end confdefs.h. */
23015#include <sys/types.h>
23016 #include <sys/param.h>
23017
23018int
23019main ()
23020{
23021#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23023 && LITTLE_ENDIAN)
23024 bogus endian macros
23025 #endif
23026
23027 ;
23028 return 0;
23029}
23030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023031if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023034/* end confdefs.h. */
23035#include <sys/types.h>
23036 #include <sys/param.h>
23037
23038int
23039main ()
23040{
23041#if BYTE_ORDER != 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 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023061/* end confdefs.h. */
23062#include <limits.h>
23063
23064int
23065main ()
23066{
23067#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23068 bogus endian macros
23069 #endif
23070
23071 ;
23072 return 0;
23073}
23074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023075if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023076 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023078/* end confdefs.h. */
23079#include <limits.h>
23080
23081int
23082main ()
23083{
23084#ifndef _BIG_ENDIAN
23085 not big endian
23086 #endif
23087
23088 ;
23089 return 0;
23090}
23091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023093 ac_cv_c_bigendian=yes
23094else
cristy8b350f62009-11-15 23:12:43 +000023095 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023096fi
cristy3ed852e2009-09-05 21:47:34 +000023097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023098fi
cristy3ed852e2009-09-05 21:47:34 +000023099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100 fi
23101 if test $ac_cv_c_bigendian = unknown; then
23102 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023103 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023104 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023106/* end confdefs.h. */
23107short int ascii_mm[] =
23108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23109 short int ascii_ii[] =
23110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23111 int use_ascii (int i) {
23112 return ascii_mm[i] + ascii_ii[i];
23113 }
23114 short int ebcdic_ii[] =
23115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23116 short int ebcdic_mm[] =
23117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23118 int use_ebcdic (int i) {
23119 return ebcdic_mm[i] + ebcdic_ii[i];
23120 }
23121 extern int foo;
23122
23123int
23124main ()
23125{
23126return use_ascii (foo) == use_ebcdic (foo);
23127 ;
23128 return 0;
23129}
23130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23133 ac_cv_c_bigendian=yes
23134 fi
23135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23136 if test "$ac_cv_c_bigendian" = unknown; then
23137 ac_cv_c_bigendian=no
23138 else
23139 # finding both strings is unlikely to happen, but who knows?
23140 ac_cv_c_bigendian=unknown
23141 fi
23142 fi
cristy3ed852e2009-09-05 21:47:34 +000023143fi
cristy3ed852e2009-09-05 21:47:34 +000023144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145else
cristy8b350f62009-11-15 23:12:43 +000023146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023147/* end confdefs.h. */
23148$ac_includes_default
23149int
23150main ()
23151{
23152
23153 /* Are we little or big endian? From Harbison&Steele. */
23154 union
23155 {
23156 long int l;
23157 char c[sizeof (long int)];
23158 } u;
23159 u.l = 1;
23160 return u.c[sizeof (long int) - 1] == 1;
23161
23162 ;
23163 return 0;
23164}
23165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023166if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 ac_cv_c_bigendian=no
23168else
cristy8b350f62009-11-15 23:12:43 +000023169 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023170fi
cristy8b350f62009-11-15 23:12:43 +000023171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23172 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023173fi
23174
cristy3ed852e2009-09-05 21:47:34 +000023175 fi
23176fi
cristy8b350f62009-11-15 23:12:43 +000023177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023178$as_echo "$ac_cv_c_bigendian" >&6; }
23179 case $ac_cv_c_bigendian in #(
23180 yes)
cristy8b350f62009-11-15 23:12:43 +000023181 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023182;; #(
23183 no)
23184 ;; #(
23185 universal)
23186
cristy8b350f62009-11-15 23:12:43 +000023187$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023188
23189 ;; #(
23190 *)
cristy98dddb52010-11-04 00:30:15 +000023191 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023192 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023193 esac
23194
23195
cristy501c8042011-05-26 17:46:28 +000023196# Define to a suitable type, if standard headers do not define it.
23197ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23198case $ac_cv_c_int8_t in #(
23199 no|yes) ;; #(
23200 *)
cristy3ed852e2009-09-05 21:47:34 +000023201
23202cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023203#define int8_t $ac_cv_c_int8_t
23204_ACEOF
23205;;
23206esac
23207
23208ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23209case $ac_cv_c_int16_t in #(
23210 no|yes) ;; #(
23211 *)
23212
23213cat >>confdefs.h <<_ACEOF
23214#define int16_t $ac_cv_c_int16_t
23215_ACEOF
23216;;
23217esac
23218
23219ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23220case $ac_cv_c_int32_t in #(
23221 no|yes) ;; #(
23222 *)
23223
23224cat >>confdefs.h <<_ACEOF
23225#define int32_t $ac_cv_c_int32_t
23226_ACEOF
23227;;
23228esac
23229
23230ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23231case $ac_cv_c_int64_t in #(
23232 no|yes) ;; #(
23233 *)
23234
23235cat >>confdefs.h <<_ACEOF
23236#define int64_t $ac_cv_c_int64_t
23237_ACEOF
23238;;
23239esac
23240
23241
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23243$as_echo_n "checking for long long int... " >&6; }
23244if ${ac_cv_type_long_long_int+:} false; then :
23245 $as_echo_n "(cached) " >&6
23246else
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248/* end confdefs.h. */
23249
23250 /* For now, do not test the preprocessor; as of 2007 there are too many
23251 implementations with broken preprocessors. Perhaps this can
23252 be revisited in 2012. In the meantime, code should not expect
23253 #if to work with literals wider than 32 bits. */
23254 /* Test literals. */
23255 long long int ll = 9223372036854775807ll;
23256 long long int nll = -9223372036854775807LL;
23257 unsigned long long int ull = 18446744073709551615ULL;
23258 /* Test constant expressions. */
23259 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23260 ? 1 : -1)];
23261 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23262 ? 1 : -1)];
23263 int i = 63;
23264int
23265main ()
23266{
23267/* Test availability of runtime routines for shift and division. */
23268 long long int llmax = 9223372036854775807ll;
23269 unsigned long long int ullmax = 18446744073709551615ull;
23270 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23271 | (llmax / ll) | (llmax % ll)
23272 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23273 | (ullmax / ull) | (ullmax % ull));
23274 ;
23275 return 0;
23276}
23277
23278_ACEOF
23279if ac_fn_c_try_link "$LINENO"; then :
23280 if test "$cross_compiling" = yes; then :
23281 ac_cv_type_long_long_int=yes
23282else
23283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284/* end confdefs.h. */
23285#include <limits.h>
23286 #ifndef LLONG_MAX
23287 # define HALF \
23288 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23289 # define LLONG_MAX (HALF - 1 + HALF)
23290 #endif
23291int
23292main ()
23293{
23294long long int n = 1;
23295 int i;
23296 for (i = 0; ; i++)
23297 {
23298 long long int m = n << i;
23299 if (m >> i != n)
23300 return 1;
23301 if (LLONG_MAX / 2 < m)
23302 break;
23303 }
23304 return 0;
23305 ;
23306 return 0;
23307}
23308_ACEOF
23309if ac_fn_c_try_run "$LINENO"; then :
23310 ac_cv_type_long_long_int=yes
23311else
23312 ac_cv_type_long_long_int=no
23313fi
23314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23315 conftest.$ac_objext conftest.beam conftest.$ac_ext
23316fi
23317
23318else
23319 ac_cv_type_long_long_int=no
23320fi
23321rm -f core conftest.err conftest.$ac_objext \
23322 conftest$ac_exeext conftest.$ac_ext
23323fi
23324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23325$as_echo "$ac_cv_type_long_long_int" >&6; }
23326 if test $ac_cv_type_long_long_int = yes; then
23327
23328$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23329
23330 fi
23331
23332
23333
23334 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23335if test "x$ac_cv_type_intmax_t" = xyes; then :
23336
23337$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23338
23339else
23340 test $ac_cv_type_long_long_int = yes \
23341 && ac_type='long long int' \
23342 || ac_type='long int'
23343
23344cat >>confdefs.h <<_ACEOF
23345#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023346_ACEOF
23347
23348fi
23349
23350
cristy501c8042011-05-26 17:46:28 +000023351
23352 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23353if test "x$ac_cv_type_intptr_t" = xyes; then :
23354
23355$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023356
cristy3ed852e2009-09-05 21:47:34 +000023357else
cristy501c8042011-05-26 17:46:28 +000023358 for ac_type in 'int' 'long int' 'long long int'; do
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360/* end confdefs.h. */
23361$ac_includes_default
23362int
23363main ()
23364{
23365static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023366test_array [0] = 0;
23367return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023368
23369 ;
23370 return 0;
23371}
23372_ACEOF
23373if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023374
23375cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023376#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023377_ACEOF
23378
cristy501c8042011-05-26 17:46:28 +000023379 ac_type=
23380fi
23381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 test -z "$ac_type" && break
23383 done
cristy3ed852e2009-09-05 21:47:34 +000023384fi
23385
23386
cristy3ed852e2009-09-05 21:47:34 +000023387
cristy501c8042011-05-26 17:46:28 +000023388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23389$as_echo_n "checking for long double... " >&6; }
23390if ${ac_cv_type_long_double+:} false; then :
23391 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023392else
cristy501c8042011-05-26 17:46:28 +000023393 if test "$GCC" = yes; then
23394 ac_cv_type_long_double=yes
23395 else
23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397/* end confdefs.h. */
23398/* The Stardent Vistra knows sizeof (long double), but does
23399 not support it. */
23400 long double foo = 0.0L;
23401int
23402main ()
23403{
23404static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23405 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023406test_array [0] = 0;
23407return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023408
cristy501c8042011-05-26 17:46:28 +000023409 ;
23410 return 0;
23411}
cristy3ed852e2009-09-05 21:47:34 +000023412_ACEOF
cristy501c8042011-05-26 17:46:28 +000023413if ac_fn_c_try_compile "$LINENO"; then :
23414 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023415else
cristy501c8042011-05-26 17:46:28 +000023416 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023417fi
cristy501c8042011-05-26 17:46:28 +000023418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 fi
cristy3ed852e2009-09-05 21:47:34 +000023420fi
cristy501c8042011-05-26 17:46:28 +000023421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23422$as_echo "$ac_cv_type_long_double" >&6; }
23423 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023424
cristy501c8042011-05-26 17:46:28 +000023425$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023426
cristy501c8042011-05-26 17:46:28 +000023427 fi
23428
cristy3ed852e2009-09-05 21:47:34 +000023429
cristy8b350f62009-11-15 23:12:43 +000023430 { $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 +000023431$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023432if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023433 $as_echo_n "(cached) " >&6
23434else
cristy8b350f62009-11-15 23:12:43 +000023435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023436/* end confdefs.h. */
23437#include <float.h>
23438 long double const a[] =
23439 {
23440 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23441 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23442 };
23443 long double
23444 f (long double x)
23445 {
23446 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23447 + (x ? f (x) : 'c'));
23448 }
23449
23450int
23451main ()
23452{
23453static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23454 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23455 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23456 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23457 && (int) LDBL_EPSILON == 0
23458 )];
cristy14fefe52012-05-21 00:59:18 +000023459test_array [0] = 0;
23460return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023461
23462 ;
23463 return 0;
23464}
23465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023467 ac_cv_type_long_double_wider=yes
23468else
cristy8b350f62009-11-15 23:12:43 +000023469 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023470fi
cristy3ed852e2009-09-05 21:47:34 +000023471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472fi
cristy8b350f62009-11-15 23:12:43 +000023473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023474$as_echo "$ac_cv_type_long_double_wider" >&6; }
23475 if test $ac_cv_type_long_double_wider = yes; then
23476
cristy8b350f62009-11-15 23:12:43 +000023477$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023478
23479 fi
23480
23481
cristy501c8042011-05-26 17:46:28 +000023482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23483$as_echo_n "checking for long long int... " >&6; }
23484if ${ac_cv_type_long_long_int+:} false; then :
23485 $as_echo_n "(cached) " >&6
23486else
23487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488/* end confdefs.h. */
23489
23490 /* For now, do not test the preprocessor; as of 2007 there are too many
23491 implementations with broken preprocessors. Perhaps this can
23492 be revisited in 2012. In the meantime, code should not expect
23493 #if to work with literals wider than 32 bits. */
23494 /* Test literals. */
23495 long long int ll = 9223372036854775807ll;
23496 long long int nll = -9223372036854775807LL;
23497 unsigned long long int ull = 18446744073709551615ULL;
23498 /* Test constant expressions. */
23499 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23500 ? 1 : -1)];
23501 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23502 ? 1 : -1)];
23503 int i = 63;
23504int
23505main ()
23506{
23507/* Test availability of runtime routines for shift and division. */
23508 long long int llmax = 9223372036854775807ll;
23509 unsigned long long int ullmax = 18446744073709551615ull;
23510 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23511 | (llmax / ll) | (llmax % ll)
23512 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23513 | (ullmax / ull) | (ullmax % ull));
23514 ;
23515 return 0;
23516}
23517
23518_ACEOF
23519if ac_fn_c_try_link "$LINENO"; then :
23520 if test "$cross_compiling" = yes; then :
23521 ac_cv_type_long_long_int=yes
23522else
23523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23524/* end confdefs.h. */
23525#include <limits.h>
23526 #ifndef LLONG_MAX
23527 # define HALF \
23528 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23529 # define LLONG_MAX (HALF - 1 + HALF)
23530 #endif
23531int
23532main ()
23533{
23534long long int n = 1;
23535 int i;
23536 for (i = 0; ; i++)
23537 {
23538 long long int m = n << i;
23539 if (m >> i != n)
23540 return 1;
23541 if (LLONG_MAX / 2 < m)
23542 break;
23543 }
23544 return 0;
23545 ;
23546 return 0;
23547}
23548_ACEOF
23549if ac_fn_c_try_run "$LINENO"; then :
23550 ac_cv_type_long_long_int=yes
23551else
23552 ac_cv_type_long_long_int=no
23553fi
23554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23555 conftest.$ac_objext conftest.beam conftest.$ac_ext
23556fi
23557
23558else
23559 ac_cv_type_long_long_int=no
23560fi
23561rm -f core conftest.err conftest.$ac_objext \
23562 conftest$ac_exeext conftest.$ac_ext
23563fi
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23565$as_echo "$ac_cv_type_long_long_int" >&6; }
23566 if test $ac_cv_type_long_long_int = yes; then
23567
23568$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23569
23570 fi
23571
23572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23573$as_echo_n "checking for mbstate_t... " >&6; }
23574if ${ac_cv_type_mbstate_t+:} false; then :
23575 $as_echo_n "(cached) " >&6
23576else
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578/* end confdefs.h. */
23579$ac_includes_default
23580# include <wchar.h>
23581int
23582main ()
23583{
23584mbstate_t x; return sizeof x;
23585 ;
23586 return 0;
23587}
23588_ACEOF
23589if ac_fn_c_try_compile "$LINENO"; then :
23590 ac_cv_type_mbstate_t=yes
23591else
23592 ac_cv_type_mbstate_t=no
23593fi
23594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23595fi
23596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23597$as_echo "$ac_cv_type_mbstate_t" >&6; }
23598 if test $ac_cv_type_mbstate_t = yes; then
23599
23600$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23601
23602 else
23603
23604$as_echo "#define mbstate_t int" >>confdefs.h
23605
23606 fi
23607ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23608if test "x$ac_cv_type_mode_t" = xyes; then :
23609
23610else
23611
23612cat >>confdefs.h <<_ACEOF
23613#define mode_t int
23614_ACEOF
23615
23616fi
23617
23618ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23619if test "x$ac_cv_type_off_t" = xyes; then :
23620
23621else
23622
23623cat >>confdefs.h <<_ACEOF
23624#define off_t long int
23625_ACEOF
23626
23627fi
23628
23629ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23630if test "x$ac_cv_type_pid_t" = xyes; then :
23631
23632else
23633
23634cat >>confdefs.h <<_ACEOF
23635#define pid_t int
23636_ACEOF
23637
23638fi
23639
23640ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23641if test "x$ac_cv_type_size_t" = xyes; then :
23642
23643else
23644
23645cat >>confdefs.h <<_ACEOF
23646#define size_t unsigned int
23647_ACEOF
23648
23649fi
23650
23651ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23652if test "x$ac_cv_type_ssize_t" = xyes; then :
23653
23654else
23655
23656cat >>confdefs.h <<_ACEOF
23657#define ssize_t int
23658_ACEOF
23659
23660fi
23661
23662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23663$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23664if ${ac_cv_type_uid_t+:} false; then :
23665 $as_echo_n "(cached) " >&6
23666else
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668/* end confdefs.h. */
23669#include <sys/types.h>
23670
23671_ACEOF
23672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23673 $EGREP "uid_t" >/dev/null 2>&1; then :
23674 ac_cv_type_uid_t=yes
23675else
23676 ac_cv_type_uid_t=no
23677fi
23678rm -f conftest*
23679
23680fi
23681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23682$as_echo "$ac_cv_type_uid_t" >&6; }
23683if test $ac_cv_type_uid_t = no; then
23684
23685$as_echo "#define uid_t int" >>confdefs.h
23686
23687
23688$as_echo "#define gid_t int" >>confdefs.h
23689
23690fi
23691
23692ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23693case $ac_cv_c_uint8_t in #(
23694 no|yes) ;; #(
23695 *)
23696
23697$as_echo "#define _UINT8_T 1" >>confdefs.h
23698
23699
23700cat >>confdefs.h <<_ACEOF
23701#define uint8_t $ac_cv_c_uint8_t
23702_ACEOF
23703;;
23704 esac
23705
23706ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23707case $ac_cv_c_uint16_t in #(
23708 no|yes) ;; #(
23709 *)
23710
23711
23712cat >>confdefs.h <<_ACEOF
23713#define uint16_t $ac_cv_c_uint16_t
23714_ACEOF
23715;;
23716 esac
23717
23718ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23719case $ac_cv_c_uint32_t in #(
23720 no|yes) ;; #(
23721 *)
23722
23723$as_echo "#define _UINT32_T 1" >>confdefs.h
23724
23725
23726cat >>confdefs.h <<_ACEOF
23727#define uint32_t $ac_cv_c_uint32_t
23728_ACEOF
23729;;
23730 esac
23731
23732ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23733case $ac_cv_c_uint64_t in #(
23734 no|yes) ;; #(
23735 *)
23736
23737$as_echo "#define _UINT64_T 1" >>confdefs.h
23738
23739
23740cat >>confdefs.h <<_ACEOF
23741#define uint64_t $ac_cv_c_uint64_t
23742_ACEOF
23743;;
23744 esac
23745
23746
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23748$as_echo_n "checking for unsigned long long int... " >&6; }
23749if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23750 $as_echo_n "(cached) " >&6
23751else
23752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753/* end confdefs.h. */
23754
23755 /* For now, do not test the preprocessor; as of 2007 there are too many
23756 implementations with broken preprocessors. Perhaps this can
23757 be revisited in 2012. In the meantime, code should not expect
23758 #if to work with literals wider than 32 bits. */
23759 /* Test literals. */
23760 long long int ll = 9223372036854775807ll;
23761 long long int nll = -9223372036854775807LL;
23762 unsigned long long int ull = 18446744073709551615ULL;
23763 /* Test constant expressions. */
23764 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23765 ? 1 : -1)];
23766 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23767 ? 1 : -1)];
23768 int i = 63;
23769int
23770main ()
23771{
23772/* Test availability of runtime routines for shift and division. */
23773 long long int llmax = 9223372036854775807ll;
23774 unsigned long long int ullmax = 18446744073709551615ull;
23775 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23776 | (llmax / ll) | (llmax % ll)
23777 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23778 | (ullmax / ull) | (ullmax % ull));
23779 ;
23780 return 0;
23781}
23782
23783_ACEOF
23784if ac_fn_c_try_link "$LINENO"; then :
23785 ac_cv_type_unsigned_long_long_int=yes
23786else
23787 ac_cv_type_unsigned_long_long_int=no
23788fi
23789rm -f core conftest.err conftest.$ac_objext \
23790 conftest$ac_exeext conftest.$ac_ext
23791fi
23792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23793$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23794 if test $ac_cv_type_unsigned_long_long_int = yes; then
23795
23796$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23797
23798 fi
23799
23800
23801
23802 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23803if test "x$ac_cv_type_uintmax_t" = xyes; then :
23804
23805$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23806
23807else
23808 test $ac_cv_type_unsigned_long_long_int = yes \
23809 && ac_type='unsigned long long int' \
23810 || ac_type='unsigned long int'
23811
23812cat >>confdefs.h <<_ACEOF
23813#define uintmax_t $ac_type
23814_ACEOF
23815
23816fi
23817
23818
23819
23820 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23821if test "x$ac_cv_type_uintptr_t" = xyes; then :
23822
23823$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23824
23825else
23826 for ac_type in 'unsigned int' 'unsigned long int' \
23827 'unsigned long long int'; do
23828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23829/* end confdefs.h. */
23830$ac_includes_default
23831int
23832main ()
23833{
23834static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023835test_array [0] = 0;
23836return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023837
23838 ;
23839 return 0;
23840}
23841_ACEOF
23842if ac_fn_c_try_compile "$LINENO"; then :
23843
23844cat >>confdefs.h <<_ACEOF
23845#define uintptr_t $ac_type
23846_ACEOF
23847
23848 ac_type=
23849fi
23850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851 test -z "$ac_type" && break
23852 done
23853fi
23854
23855
23856
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23858$as_echo_n "checking for unsigned long long int... " >&6; }
23859if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23860 $as_echo_n "(cached) " >&6
23861else
23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863/* end confdefs.h. */
23864
23865 /* For now, do not test the preprocessor; as of 2007 there are too many
23866 implementations with broken preprocessors. Perhaps this can
23867 be revisited in 2012. In the meantime, code should not expect
23868 #if to work with literals wider than 32 bits. */
23869 /* Test literals. */
23870 long long int ll = 9223372036854775807ll;
23871 long long int nll = -9223372036854775807LL;
23872 unsigned long long int ull = 18446744073709551615ULL;
23873 /* Test constant expressions. */
23874 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23875 ? 1 : -1)];
23876 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23877 ? 1 : -1)];
23878 int i = 63;
23879int
23880main ()
23881{
23882/* Test availability of runtime routines for shift and division. */
23883 long long int llmax = 9223372036854775807ll;
23884 unsigned long long int ullmax = 18446744073709551615ull;
23885 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23886 | (llmax / ll) | (llmax % ll)
23887 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23888 | (ullmax / ull) | (ullmax % ull));
23889 ;
23890 return 0;
23891}
23892
23893_ACEOF
23894if ac_fn_c_try_link "$LINENO"; then :
23895 ac_cv_type_unsigned_long_long_int=yes
23896else
23897 ac_cv_type_unsigned_long_long_int=no
23898fi
23899rm -f core conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
23901fi
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23903$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23904 if test $ac_cv_type_unsigned_long_long_int = yes; then
23905
23906$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23907
23908 fi
23909
23910
cristy3ed852e2009-09-05 21:47:34 +000023911# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23912# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023915if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023916 $as_echo_n "(cached) " >&6
23917else
cristy8b350f62009-11-15 23:12:43 +000023918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023919/* end confdefs.h. */
23920$ac_includes_default
23921int
23922main ()
23923{
23924static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023925test_array [0] = 0;
23926return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023927
23928 ;
23929 return 0;
23930}
23931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023933 ac_cv_c_char_unsigned=no
23934else
cristy8b350f62009-11-15 23:12:43 +000023935 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023936fi
cristy3ed852e2009-09-05 21:47:34 +000023937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938fi
cristy8b350f62009-11-15 23:12:43 +000023939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023940$as_echo "$ac_cv_c_char_unsigned" >&6; }
23941if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023942 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023943
23944fi
23945
23946
23947# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23948# The cast to long int works around a bug in the HP C Compiler
23949# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23950# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23951# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023954if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023955 $as_echo_n "(cached) " >&6
23956else
cristy8b350f62009-11-15 23:12:43 +000023957 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 +000023958
cristy3ed852e2009-09-05 21:47:34 +000023959else
cristy8b350f62009-11-15 23:12:43 +000023960 if test "$ac_cv_type_signed_short" = yes; then
23961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023963as_fn_error 77 "cannot compute sizeof (signed short)
23964See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023965 else
23966 ac_cv_sizeof_signed_short=0
23967 fi
23968fi
cristy8b350f62009-11-15 23:12:43 +000023969
cristy3ed852e2009-09-05 21:47:34 +000023970fi
cristy8b350f62009-11-15 23:12:43 +000023971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023972$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23973
23974
23975
23976cat >>confdefs.h <<_ACEOF
23977#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23978_ACEOF
23979
23980
23981
23982# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23983# The cast to long int works around a bug in the HP C Compiler
23984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23986# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023988$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023989if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023990 $as_echo_n "(cached) " >&6
23991else
cristy8b350f62009-11-15 23:12:43 +000023992 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 +000023993
cristy3ed852e2009-09-05 21:47:34 +000023994else
cristy8b350f62009-11-15 23:12:43 +000023995 if test "$ac_cv_type_unsigned_short" = yes; then
23996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023998as_fn_error 77 "cannot compute sizeof (unsigned short)
23999See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024000 else
24001 ac_cv_sizeof_unsigned_short=0
24002 fi
24003fi
cristy8b350f62009-11-15 23:12:43 +000024004
cristy3ed852e2009-09-05 21:47:34 +000024005fi
cristy8b350f62009-11-15 23:12:43 +000024006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024007$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24008
24009
24010
24011cat >>confdefs.h <<_ACEOF
24012#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24013_ACEOF
24014
24015
24016
24017# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24018# The cast to long int works around a bug in the HP C Compiler
24019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24021# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024023$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024024if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024025 $as_echo_n "(cached) " >&6
24026else
cristy8b350f62009-11-15 23:12:43 +000024027 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 +000024028
cristy3ed852e2009-09-05 21:47:34 +000024029else
cristy8b350f62009-11-15 23:12:43 +000024030 if test "$ac_cv_type_signed_int" = yes; then
24031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024033as_fn_error 77 "cannot compute sizeof (signed int)
24034See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024035 else
24036 ac_cv_sizeof_signed_int=0
24037 fi
24038fi
cristy8b350f62009-11-15 23:12:43 +000024039
cristy3ed852e2009-09-05 21:47:34 +000024040fi
cristy8b350f62009-11-15 23:12:43 +000024041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024042$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24043
24044
24045
24046cat >>confdefs.h <<_ACEOF
24047#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24048_ACEOF
24049
24050
24051
24052# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24053# The cast to long int works around a bug in the HP C Compiler
24054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24056# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 $as_echo_n "(cached) " >&6
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 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 +000024063
cristy3ed852e2009-09-05 21:47:34 +000024064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$ac_cv_type_unsigned_int" = yes; then
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024068as_fn_error 77 "cannot compute sizeof (unsigned int)
24069See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024070 else
24071 ac_cv_sizeof_unsigned_int=0
24072 fi
24073fi
cristy8b350f62009-11-15 23:12:43 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24078
24079
24080
24081cat >>confdefs.h <<_ACEOF
24082#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24083_ACEOF
24084
24085
24086
24087# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24088# The cast to long int works around a bug in the HP C Compiler
24089# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24090# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24091# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024094if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 $as_echo_n "(cached) " >&6
24096else
cristy8b350f62009-11-15 23:12:43 +000024097 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 +000024098
cristy3ed852e2009-09-05 21:47:34 +000024099else
cristy8b350f62009-11-15 23:12:43 +000024100 if test "$ac_cv_type_signed_long" = yes; then
24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024103as_fn_error 77 "cannot compute sizeof (signed long)
24104See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024105 else
24106 ac_cv_sizeof_signed_long=0
24107 fi
24108fi
cristy8b350f62009-11-15 23:12:43 +000024109
cristy3ed852e2009-09-05 21:47:34 +000024110fi
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24113
24114
24115
24116cat >>confdefs.h <<_ACEOF
24117#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24118_ACEOF
24119
24120
24121
24122# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24123# The cast to long int works around a bug in the HP C Compiler
24124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24126# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024129if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 $as_echo_n "(cached) " >&6
24131else
cristy8b350f62009-11-15 23:12:43 +000024132 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 +000024133
cristy3ed852e2009-09-05 21:47:34 +000024134else
cristy8b350f62009-11-15 23:12:43 +000024135 if test "$ac_cv_type_unsigned_long" = yes; then
24136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024138as_fn_error 77 "cannot compute sizeof (unsigned long)
24139See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024140 else
24141 ac_cv_sizeof_unsigned_long=0
24142 fi
24143fi
cristy8b350f62009-11-15 23:12:43 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24148
24149
24150
24151cat >>confdefs.h <<_ACEOF
24152#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24153_ACEOF
24154
24155
24156
24157# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24158# 'signed long long' is not supported then the value defined is zero.
24159# The cast to long int works around a bug in the HP C Compiler
24160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24162# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024165if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 $as_echo_n "(cached) " >&6
24167else
cristy8b350f62009-11-15 23:12:43 +000024168 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 +000024169
cristy3ed852e2009-09-05 21:47:34 +000024170else
cristy8b350f62009-11-15 23:12:43 +000024171 if test "$ac_cv_type_signed_long_long" = yes; then
24172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024174as_fn_error 77 "cannot compute sizeof (signed long long)
24175See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024176 else
24177 ac_cv_sizeof_signed_long_long=0
24178 fi
24179fi
cristy8b350f62009-11-15 23:12:43 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181fi
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24184
24185
24186
24187cat >>confdefs.h <<_ACEOF
24188#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24189_ACEOF
24190
24191
24192
24193# Obtain size of a 'unsigned long long' and define as
24194# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24195# supported then the value defined is zero.
24196# The cast to long int works around a bug in the HP C Compiler
24197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24199# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024202if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024203 $as_echo_n "(cached) " >&6
24204else
cristy8b350f62009-11-15 23:12:43 +000024205 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 +000024206
cristy3ed852e2009-09-05 21:47:34 +000024207else
cristy8b350f62009-11-15 23:12:43 +000024208 if test "$ac_cv_type_unsigned_long_long" = yes; then
24209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024211as_fn_error 77 "cannot compute sizeof (unsigned long long)
24212See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024213 else
24214 ac_cv_sizeof_unsigned_long_long=0
24215 fi
24216fi
cristy8b350f62009-11-15 23:12:43 +000024217
cristy3ed852e2009-09-05 21:47:34 +000024218fi
cristy8b350f62009-11-15 23:12:43 +000024219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024220$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24221
24222
24223
24224cat >>confdefs.h <<_ACEOF
24225#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24226_ACEOF
24227
24228
24229
24230# Obtain size of off_t and define as SIZEOF_OFF_T
24231# The cast to long int works around a bug in the HP C Compiler
24232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 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 +000024241
cristy3ed852e2009-09-05 21:47:34 +000024242else
cristy8b350f62009-11-15 23:12:43 +000024243 if test "$ac_cv_type_off_t" = yes; then
24244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024246as_fn_error 77 "cannot compute sizeof (off_t)
24247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024248 else
24249 ac_cv_sizeof_off_t=0
24250 fi
24251fi
cristy8b350f62009-11-15 23:12:43 +000024252
cristy3ed852e2009-09-05 21:47:34 +000024253fi
cristy8b350f62009-11-15 23:12:43 +000024254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "$ac_cv_sizeof_off_t" >&6; }
24256
24257
24258
24259cat >>confdefs.h <<_ACEOF
24260#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24261_ACEOF
24262
24263
24264
24265# Obtain size of size_t and define as SIZEOF_SIZE_T
24266# The cast to long int works around a bug in the HP C Compiler
24267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024272if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 $as_echo_n "(cached) " >&6
24274else
cristy8b350f62009-11-15 23:12:43 +000024275 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 +000024276
cristy3ed852e2009-09-05 21:47:34 +000024277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$ac_cv_type_size_t" = yes; then
24279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024281as_fn_error 77 "cannot compute sizeof (size_t)
24282See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024283 else
24284 ac_cv_sizeof_size_t=0
24285 fi
24286fi
cristy8b350f62009-11-15 23:12:43 +000024287
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "$ac_cv_sizeof_size_t" >&6; }
24291
24292
24293
24294cat >>confdefs.h <<_ACEOF
24295#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24296_ACEOF
24297
24298
24299
cristy330e9352010-06-01 18:42:49 +000024300# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24301# The cast to long int works around a bug in the HP C Compiler
24302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24304# This bug is HP SR number 8606223364.
24305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24306$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024307if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024308 $as_echo_n "(cached) " >&6
24309else
24310 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24311
24312else
24313 if test "$ac_cv_type_ssize_t" = yes; then
24314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024316as_fn_error 77 "cannot compute sizeof (ssize_t)
24317See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024318 else
24319 ac_cv_sizeof_ssize_t=0
24320 fi
24321fi
24322
24323fi
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24325$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24326
24327
24328
24329cat >>confdefs.h <<_ACEOF
24330#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24331_ACEOF
24332
24333
24334
cristy3ed852e2009-09-05 21:47:34 +000024335# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24336# The cast to long int works around a bug in the HP C Compiler
24337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24339# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024341$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024342if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024343 $as_echo_n "(cached) " >&6
24344else
cristy8b350f62009-11-15 23:12:43 +000024345 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 +000024346
cristy3ed852e2009-09-05 21:47:34 +000024347else
cristy8b350f62009-11-15 23:12:43 +000024348 if test "$ac_cv_type_unsigned_intp" = yes; then
24349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024351as_fn_error 77 "cannot compute sizeof (unsigned int*)
24352See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024353 else
24354 ac_cv_sizeof_unsigned_intp=0
24355 fi
24356fi
cristy8b350f62009-11-15 23:12:43 +000024357
cristy3ed852e2009-09-05 21:47:34 +000024358fi
cristy8b350f62009-11-15 23:12:43 +000024359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024360$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24361
24362
24363
24364cat >>confdefs.h <<_ACEOF
24365#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24366_ACEOF
24367
24368
24369
24370#
24371# Compute sized types for current CPU and compiler options.
24372#
24373
cristy8b350f62009-11-15 23:12:43 +000024374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking for signed 8-bit type... " >&6; }
24376INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024377{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24378$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024379
24380
cristy8b350f62009-11-15 23:12:43 +000024381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024382$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24383UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024384{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24385$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024386
24387
cristy8b350f62009-11-15 23:12:43 +000024388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024389$as_echo_n "checking for signed 16-bit type... " >&6; }
24390INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24392$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024393
24394
cristy8b350f62009-11-15 23:12:43 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024396$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24397UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024398{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24399$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024400
24401
cristy8b350f62009-11-15 23:12:43 +000024402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024403$as_echo_n "checking for signed 32-bit type... " >&6; }
24404INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024405INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024406if test $ac_cv_sizeof_signed_int -eq 4; then
24407 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024408 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024409elif test $ac_cv_sizeof_signed_long -eq 4; then
24410 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024411 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024412fi
cristy09b53e12011-10-14 12:47:22 +000024413{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24414$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024415
24416
cristy6d5e20f2011-04-25 13:48:54 +000024417
cristy8b350f62009-11-15 23:12:43 +000024418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024419$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24420UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024421UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024422if test $ac_cv_sizeof_unsigned_int -eq 4; then
24423 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024424 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024425elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24426 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024427 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy09b53e12011-10-14 12:47:22 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24430$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024431
24432
cristy6d5e20f2011-04-25 13:48:54 +000024433
cristy8b350f62009-11-15 23:12:43 +000024434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking for signed 64-bit type... " >&6; }
24436INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024437INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024438if test $ac_cv_sizeof_signed_long -eq 8; then
24439 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024440 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024441elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24442 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024443 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024444fi
cristy3a99dcf2011-12-17 01:29:40 +000024445case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024446 mingw* )
24447 INT64_F='"I64"'
24448 ;;
24449esac
cristy09b53e12011-10-14 12:47:22 +000024450{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24451$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024452
24453
cristy6d5e20f2011-04-25 13:48:54 +000024454
cristy8b350f62009-11-15 23:12:43 +000024455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024456$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24457UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024458UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024459if test $ac_cv_sizeof_unsigned_long -eq 8; then
24460 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024461 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024462elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24463 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024464 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024465fi
cristy3a99dcf2011-12-17 01:29:40 +000024466case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024467 mingw* )
24468 UINT64_F='"I64"'
24469 ;;
24470esac
cristy09b53e12011-10-14 12:47:22 +000024471{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24472$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024473
24474
cristy6d5e20f2011-04-25 13:48:54 +000024475
cristy8b350f62009-11-15 23:12:43 +000024476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo_n "checking for unsigned maximum type... " >&6; }
24478UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024479UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024480if test "$UINT64_T" != 'none'; then
24481 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024482 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024483elif test "$UINT32_T" != 'none'; then
24484 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024485 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024486fi
cristy09b53e12011-10-14 12:47:22 +000024487{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24488$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024489
24490
cristy6d5e20f2011-04-25 13:48:54 +000024491
cristy8b350f62009-11-15 23:12:43 +000024492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo_n "checking for pointer difference type... " >&6; }
24494UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024495UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024496if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24497 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024498 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024499elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24500 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024501 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024502fi
cristy09b53e12011-10-14 12:47:22 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24504$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024505
24506
cristy6d5e20f2011-04-25 13:48:54 +000024507
cristy8b350f62009-11-15 23:12:43 +000024508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024511/* end confdefs.h. */
24512
24513int
24514main ()
24515{
24516{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24517 ;
24518 return 0;
24519}
24520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024521if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024522 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24523$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024524else
cristy09b53e12011-10-14 12:47:22 +000024525 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24526$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024528$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024530/* end confdefs.h. */
24531
24532int
24533main ()
24534{
24535{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24536 ;
24537 return 0;
24538}
24539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024540if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024541 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24542$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024543
cristy8b350f62009-11-15 23:12:43 +000024544$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024545
24546else
cristy09b53e12011-10-14 12:47:22 +000024547 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24548$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024549
cristy8b350f62009-11-15 23:12:43 +000024550$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024551
24552fi
cristy3ed852e2009-09-05 21:47:34 +000024553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24554fi
cristy3ed852e2009-09-05 21:47:34 +000024555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556
24557########
24558#
24559# Check for functions
24560#
24561########
cristy73bd4a52010-10-05 11:24:23 +000024562for ac_header in stdlib.h unistd.h
24563do :
24564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024567 cat >>confdefs.h <<_ACEOF
24568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24569_ACEOF
24570
24571fi
24572
24573done
24574
24575for ac_func in getpagesize
24576do :
24577 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024578if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024579 cat >>confdefs.h <<_ACEOF
24580#define HAVE_GETPAGESIZE 1
24581_ACEOF
24582
24583fi
24584done
24585
24586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24587$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024588if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024589 $as_echo_n "(cached) " >&6
24590else
24591 if test "$cross_compiling" = yes; then :
24592 magick_cv_func_mmap_fileio=no
24593else
24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595/* end confdefs.h. */
24596$ac_includes_default
24597/* malloc might have been renamed as rpl_malloc. */
24598#undef malloc
24599
24600/*
24601 This test is derived from GNU Autoconf's similar macro.
24602 The purpose of this test is to verify that files may be memory
24603 mapped, and that memory mapping and file I/O are coherent.
24604
24605 The test creates a test file, memory maps the file, updates
24606 the file using the memory map, and then reads the file using
24607 file I/O to verify that the file contains the updates.
24608*/
24609
24610#include <fcntl.h>
24611#include <sys/mman.h>
24612
24613#if !STDC_HEADERS && !HAVE_STDLIB_H
24614char *malloc ();
24615#endif
24616
24617/* This mess was copied from the GNU getpagesize.h. */
24618#if !HAVE_GETPAGESIZE
24619/* Assume that all systems that can run configure have sys/param.h. */
24620# if !HAVE_SYS_PARAM_H
24621# define HAVE_SYS_PARAM_H 1
24622# endif
24623
24624# ifdef _SC_PAGESIZE
24625# define getpagesize() sysconf(_SC_PAGESIZE)
24626# else /* no _SC_PAGESIZE */
24627# if HAVE_SYS_PARAM_H
24628# include <sys/param.h>
24629# ifdef EXEC_PAGESIZE
24630# define getpagesize() EXEC_PAGESIZE
24631# else /* no EXEC_PAGESIZE */
24632# ifdef NBPG
24633# define getpagesize() NBPG * CLSIZE
24634# ifndef CLSIZE
24635# define CLSIZE 1
24636# endif /* no CLSIZE */
24637# else /* no NBPG */
24638# ifdef NBPC
24639# define getpagesize() NBPC
24640# else /* no NBPC */
24641# ifdef PAGESIZE
24642# define getpagesize() PAGESIZE
24643# endif /* PAGESIZE */
24644# endif /* no NBPC */
24645# endif /* no NBPG */
24646# endif /* no EXEC_PAGESIZE */
24647# else /* no HAVE_SYS_PARAM_H */
24648# define getpagesize() 8192 /* punt totally */
24649# endif /* no HAVE_SYS_PARAM_H */
24650# endif /* no _SC_PAGESIZE */
24651
24652#endif /* no HAVE_GETPAGESIZE */
24653
24654int
24655main ()
24656{
24657 char *data, *data2, *data3;
24658 int i, pagesize;
24659 int fd;
24660
24661 pagesize = getpagesize ();
24662
24663 /* First, make a file with some known garbage in it. */
24664 data = (char *) malloc (pagesize);
24665 if (!data)
24666 exit (1);
24667 for (i = 0; i < pagesize; ++i)
24668 *(data + i) = rand ();
24669 umask (0);
24670 fd = creat ("conftest.mmap", 0600);
24671 if (fd < 0)
24672 exit (1);
24673 if (write (fd, data, pagesize) != pagesize)
24674 exit (1);
24675 close (fd);
24676
24677 /* Mmap the file as read/write/shared and verify that we see the
24678 same garbage. */
24679 fd = open ("conftest.mmap", O_RDWR);
24680 if (fd < 0)
24681 exit (1);
24682 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24683 if (data2 == 0)
24684 exit (1);
24685 for (i = 0; i < pagesize; ++i)
24686 if (*(data + i) != *(data2 + i))
24687 exit (1);
24688
24689 /* Finally, make sure that changes to the mapped area
24690 percolate back to the file as seen by read(). */
24691 for (i = 0; i < pagesize; ++i)
24692 *(data2 + i) = *(data2 + i) + 1;
24693 data3 = (char *) malloc (pagesize);
24694 if (!data3)
24695 exit (1);
24696 if (read (fd, data3, pagesize) != pagesize)
24697 exit (1);
24698 for (i = 0; i < pagesize; ++i)
24699 if (*(data2 + i) != *(data3 + i))
24700 exit (1);
24701 close (fd);
24702 exit (0);
24703}
24704_ACEOF
24705if ac_fn_c_try_run "$LINENO"; then :
24706 magick_cv_func_mmap_fileio=yes
24707else
24708 magick_cv_func_mmap_fileio=no
24709fi
24710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24711 conftest.$ac_objext conftest.beam conftest.$ac_ext
24712fi
24713
24714fi
24715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24716$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24717if test $magick_cv_func_mmap_fileio = yes; then
24718
24719$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24720
24721fi
24722rm -f conftest.mmap
24723
cristy8b350f62009-11-15 23:12:43 +000024724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024726if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024727 $as_echo_n "(cached) " >&6
24728else
cristy8b350f62009-11-15 23:12:43 +000024729 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 ac_cv_func_closedir_void=yes
24731else
cristy8b350f62009-11-15 23:12:43 +000024732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024733/* end confdefs.h. */
24734$ac_includes_default
24735#include <$ac_header_dirent>
24736#ifndef __cplusplus
24737int closedir ();
24738#endif
24739
24740int
24741main ()
24742{
24743return closedir (opendir (".")) != 0;
24744 ;
24745 return 0;
24746}
24747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024748if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 ac_cv_func_closedir_void=no
24750else
cristy8b350f62009-11-15 23:12:43 +000024751 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024752fi
cristy8b350f62009-11-15 23:12:43 +000024753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24754 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024755fi
24756
cristy3ed852e2009-09-05 21:47:34 +000024757fi
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo "$ac_cv_func_closedir_void" >&6; }
24760if test $ac_cv_func_closedir_void = yes; then
24761
cristy8b350f62009-11-15 23:12:43 +000024762$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024763
24764fi
24765
cristycd4c5312009-11-22 01:19:08 +000024766
24767
24768
24769 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024770do :
24771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024772ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24773"
cristy98dddb52010-11-04 00:30:15 +000024774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 cat >>confdefs.h <<_ACEOF
24776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24777_ACEOF
24778
24779fi
24780
24781done
24782
cristycd4c5312009-11-22 01:19:08 +000024783
24784
24785
24786
24787
24788
24789
cristy3ed852e2009-09-05 21:47:34 +000024790for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024791do :
24792 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024793if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024795#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024796_ACEOF
24797
24798fi
24799done
24800
cristy8b350f62009-11-15 23:12:43 +000024801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024802$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024803if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 $as_echo_n "(cached) " >&6
24805else
cristy8b350f62009-11-15 23:12:43 +000024806 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024807 ac_cv_func_mmap_fixed_mapped=no
24808else
cristy8b350f62009-11-15 23:12:43 +000024809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024810/* end confdefs.h. */
24811$ac_includes_default
24812/* malloc might have been renamed as rpl_malloc. */
24813#undef malloc
24814
24815/* Thanks to Mike Haertel and Jim Avera for this test.
24816 Here is a matrix of mmap possibilities:
24817 mmap private not fixed
24818 mmap private fixed at somewhere currently unmapped
24819 mmap private fixed at somewhere already mapped
24820 mmap shared not fixed
24821 mmap shared fixed at somewhere currently unmapped
24822 mmap shared fixed at somewhere already mapped
24823 For private mappings, we should verify that changes cannot be read()
24824 back from the file, nor mmap's back from the file at a different
24825 address. (There have been systems where private was not correctly
24826 implemented like the infamous i386 svr4.0, and systems where the
24827 VM page cache was not coherent with the file system buffer cache
24828 like early versions of FreeBSD and possibly contemporary NetBSD.)
24829 For shared mappings, we should conversely verify that changes get
24830 propagated back to all the places they're supposed to be.
24831
24832 Grep wants private fixed already mapped.
24833 The main things grep needs to know about mmap are:
24834 * does it exist and is it safe to write into the mmap'd area
24835 * how to use it (BSD variants) */
24836
24837#include <fcntl.h>
24838#include <sys/mman.h>
24839
24840#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24841char *malloc ();
24842#endif
24843
24844/* This mess was copied from the GNU getpagesize.h. */
24845#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024846# ifdef _SC_PAGESIZE
24847# define getpagesize() sysconf(_SC_PAGESIZE)
24848# else /* no _SC_PAGESIZE */
24849# ifdef HAVE_SYS_PARAM_H
24850# include <sys/param.h>
24851# ifdef EXEC_PAGESIZE
24852# define getpagesize() EXEC_PAGESIZE
24853# else /* no EXEC_PAGESIZE */
24854# ifdef NBPG
24855# define getpagesize() NBPG * CLSIZE
24856# ifndef CLSIZE
24857# define CLSIZE 1
24858# endif /* no CLSIZE */
24859# else /* no NBPG */
24860# ifdef NBPC
24861# define getpagesize() NBPC
24862# else /* no NBPC */
24863# ifdef PAGESIZE
24864# define getpagesize() PAGESIZE
24865# endif /* PAGESIZE */
24866# endif /* no NBPC */
24867# endif /* no NBPG */
24868# endif /* no EXEC_PAGESIZE */
24869# else /* no HAVE_SYS_PARAM_H */
24870# define getpagesize() 8192 /* punt totally */
24871# endif /* no HAVE_SYS_PARAM_H */
24872# endif /* no _SC_PAGESIZE */
24873
24874#endif /* no HAVE_GETPAGESIZE */
24875
24876int
24877main ()
24878{
24879 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024880 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024881 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024882 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024883
24884 pagesize = getpagesize ();
24885
24886 /* First, make a file with some known garbage in it. */
24887 data = (char *) malloc (pagesize);
24888 if (!data)
24889 return 1;
24890 for (i = 0; i < pagesize; ++i)
24891 *(data + i) = rand ();
24892 umask (0);
24893 fd = creat ("conftest.mmap", 0600);
24894 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024895 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024896 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024897 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024898 close (fd);
24899
cristycd4c5312009-11-22 01:19:08 +000024900 /* Next, check that the tail of a page is zero-filled. File must have
24901 non-zero length, otherwise we risk SIGBUS for entire page. */
24902 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24903 if (fd2 < 0)
24904 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024905 cdata2 = "";
24906 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024907 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024908 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024909 if (data2 == MAP_FAILED)
24910 return 6;
24911 for (i = 0; i < pagesize; ++i)
24912 if (*(data2 + i))
24913 return 7;
24914 close (fd2);
24915 if (munmap (data2, pagesize))
24916 return 8;
24917
cristy3ed852e2009-09-05 21:47:34 +000024918 /* Next, try to mmap the file at a fixed address which already has
24919 something else allocated at it. If we can, also make sure that
24920 we see the same garbage. */
24921 fd = open ("conftest.mmap", O_RDWR);
24922 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024923 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024924 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024926 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024927 for (i = 0; i < pagesize; ++i)
24928 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024929 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024930
24931 /* Finally, make sure that changes to the mapped area do not
24932 percolate back to the file as seen by read(). (This is a bug on
24933 some variants of i386 svr4.0.) */
24934 for (i = 0; i < pagesize; ++i)
24935 *(data2 + i) = *(data2 + i) + 1;
24936 data3 = (char *) malloc (pagesize);
24937 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024938 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024939 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024940 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024941 for (i = 0; i < pagesize; ++i)
24942 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024943 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024944 close (fd);
24945 return 0;
24946}
24947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024948if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024949 ac_cv_func_mmap_fixed_mapped=yes
24950else
cristy8b350f62009-11-15 23:12:43 +000024951 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024952fi
cristy8b350f62009-11-15 23:12:43 +000024953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24954 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024955fi
24956
cristy3ed852e2009-09-05 21:47:34 +000024957fi
cristy8b350f62009-11-15 23:12:43 +000024958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024959$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24960if test $ac_cv_func_mmap_fixed_mapped = yes; then
24961
cristy8b350f62009-11-15 23:12:43 +000024962$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024963
24964fi
cristycd4c5312009-11-22 01:19:08 +000024965rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024966
cristy3ed852e2009-09-05 21:47:34 +000024967for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024968do :
24969 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024970if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024972#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024973_ACEOF
24974
24975fi
24976
24977done
24978
cristy3ed852e2009-09-05 21:47:34 +000024979for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024980do :
24981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024983if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 cat >>confdefs.h <<_ACEOF
24985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24986_ACEOF
24987
24988fi
24989done
24990
24991if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024994if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 $as_echo_n "(cached) " >&6
24996else
cristy8b350f62009-11-15 23:12:43 +000024997 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024998 ac_cv_func_fork_works=cross
24999else
cristy8b350f62009-11-15 23:12:43 +000025000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025001/* end confdefs.h. */
25002$ac_includes_default
25003int
25004main ()
25005{
25006
25007 /* By Ruediger Kuhlmann. */
25008 return fork () < 0;
25009
25010 ;
25011 return 0;
25012}
25013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025014if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025015 ac_cv_func_fork_works=yes
25016else
cristy8b350f62009-11-15 23:12:43 +000025017 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025018fi
cristy8b350f62009-11-15 23:12:43 +000025019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25020 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025021fi
25022
cristy3ed852e2009-09-05 21:47:34 +000025023fi
cristy8b350f62009-11-15 23:12:43 +000025024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025025$as_echo "$ac_cv_func_fork_works" >&6; }
25026
25027else
25028 ac_cv_func_fork_works=$ac_cv_func_fork
25029fi
25030if test "x$ac_cv_func_fork_works" = xcross; then
25031 case $host in
25032 *-*-amigaos* | *-*-msdosdjgpp*)
25033 # Override, as these systems have only a dummy fork() stub
25034 ac_cv_func_fork_works=no
25035 ;;
25036 *)
25037 ac_cv_func_fork_works=yes
25038 ;;
25039 esac
cristy8b350f62009-11-15 23:12:43 +000025040 { $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 +000025041$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25042fi
25043ac_cv_func_vfork_works=$ac_cv_func_vfork
25044if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025047if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025048 $as_echo_n "(cached) " >&6
25049else
cristy8b350f62009-11-15 23:12:43 +000025050 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025051 ac_cv_func_vfork_works=cross
25052else
cristy8b350f62009-11-15 23:12:43 +000025053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025054/* end confdefs.h. */
25055/* Thanks to Paul Eggert for this test. */
25056$ac_includes_default
25057#include <sys/wait.h>
25058#ifdef HAVE_VFORK_H
25059# include <vfork.h>
25060#endif
25061/* On some sparc systems, changes by the child to local and incoming
25062 argument registers are propagated back to the parent. The compiler
25063 is told about this with #include <vfork.h>, but some compilers
25064 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25065 static variable whose address is put into a register that is
25066 clobbered by the vfork. */
25067static void
25068#ifdef __cplusplus
25069sparc_address_test (int arg)
25070# else
25071sparc_address_test (arg) int arg;
25072#endif
25073{
25074 static pid_t child;
25075 if (!child) {
25076 child = vfork ();
25077 if (child < 0) {
25078 perror ("vfork");
25079 _exit(2);
25080 }
25081 if (!child) {
25082 arg = getpid();
25083 write(-1, "", 0);
25084 _exit (arg);
25085 }
25086 }
25087}
25088
25089int
25090main ()
25091{
25092 pid_t parent = getpid ();
25093 pid_t child;
25094
25095 sparc_address_test (0);
25096
25097 child = vfork ();
25098
25099 if (child == 0) {
25100 /* Here is another test for sparc vfork register problems. This
25101 test uses lots of local variables, at least as many local
25102 variables as main has allocated so far including compiler
25103 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25104 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25105 reuse the register of parent for one of the local variables,
25106 since it will think that parent can't possibly be used any more
25107 in this routine. Assigning to the local variable will thus
25108 munge parent in the parent process. */
25109 pid_t
25110 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25111 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25112 /* Convince the compiler that p..p7 are live; otherwise, it might
25113 use the same hardware register for all 8 local variables. */
25114 if (p != p1 || p != p2 || p != p3 || p != p4
25115 || p != p5 || p != p6 || p != p7)
25116 _exit(1);
25117
25118 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25119 from child file descriptors. If the child closes a descriptor
25120 before it execs or exits, this munges the parent's descriptor
25121 as well. Test for this by closing stdout in the child. */
25122 _exit(close(fileno(stdout)) != 0);
25123 } else {
25124 int status;
25125 struct stat st;
25126
25127 while (wait(&status) != child)
25128 ;
25129 return (
25130 /* Was there some problem with vforking? */
25131 child < 0
25132
25133 /* Did the child fail? (This shouldn't happen.) */
25134 || status
25135
25136 /* Did the vfork/compiler bug occur? */
25137 || parent != getpid()
25138
25139 /* Did the file descriptor bug occur? */
25140 || fstat(fileno(stdout), &st) != 0
25141 );
25142 }
25143}
25144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025145if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025146 ac_cv_func_vfork_works=yes
25147else
cristy8b350f62009-11-15 23:12:43 +000025148 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025149fi
cristy8b350f62009-11-15 23:12:43 +000025150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25151 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025152fi
25153
cristy3ed852e2009-09-05 21:47:34 +000025154fi
cristy8b350f62009-11-15 23:12:43 +000025155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025156$as_echo "$ac_cv_func_vfork_works" >&6; }
25157
25158fi;
25159if test "x$ac_cv_func_fork_works" = xcross; then
25160 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025161 { $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 +000025162$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25163fi
25164
25165if test "x$ac_cv_func_vfork_works" = xyes; then
25166
cristy8b350f62009-11-15 23:12:43 +000025167$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025168
25169else
25170
cristy8b350f62009-11-15 23:12:43 +000025171$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025172
25173fi
25174if test "x$ac_cv_func_fork_works" = xyes; then
25175
cristy8b350f62009-11-15 23:12:43 +000025176$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025177
25178fi
25179
cristy8b350f62009-11-15 23:12:43 +000025180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025181$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025182if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025183 $as_echo_n "(cached) " >&6
25184else
cristy8b350f62009-11-15 23:12:43 +000025185 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025186 ac_cv_func_memcmp_working=no
25187else
cristy8b350f62009-11-15 23:12:43 +000025188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025189/* end confdefs.h. */
25190$ac_includes_default
25191int
25192main ()
25193{
25194
25195 /* Some versions of memcmp are not 8-bit clean. */
25196 char c0 = '\100', c1 = '\200', c2 = '\201';
25197 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25198 return 1;
25199
25200 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25201 or more and with at least one buffer not starting on a 4-byte boundary.
25202 William Lewis provided this test program. */
25203 {
25204 char foo[21];
25205 char bar[21];
25206 int i;
25207 for (i = 0; i < 4; i++)
25208 {
25209 char *a = foo + i;
25210 char *b = bar + i;
25211 strcpy (a, "--------01111111");
25212 strcpy (b, "--------10000000");
25213 if (memcmp (a, b, 16) >= 0)
25214 return 1;
25215 }
25216 return 0;
25217 }
25218
25219 ;
25220 return 0;
25221}
25222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025223if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025224 ac_cv_func_memcmp_working=yes
25225else
cristy8b350f62009-11-15 23:12:43 +000025226 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025227fi
cristy8b350f62009-11-15 23:12:43 +000025228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25229 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025230fi
25231
cristy3ed852e2009-09-05 21:47:34 +000025232fi
cristy8b350f62009-11-15 23:12:43 +000025233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025234$as_echo "$ac_cv_func_memcmp_working" >&6; }
25235test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25236 *" memcmp.$ac_objext "* ) ;;
25237 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25238 ;;
25239esac
25240
25241
cristy3ed852e2009-09-05 21:47:34 +000025242for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025243do :
25244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25245ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025246if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025247 cat >>confdefs.h <<_ACEOF
25248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25249_ACEOF
25250
25251fi
25252
25253done
25254
cristy8b350f62009-11-15 23:12:43 +000025255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025257if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 $as_echo_n "(cached) " >&6
25259else
25260 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25261 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25262 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264/* end confdefs.h. */
25265$ac_includes_default
25266#ifdef HAVE_SYS_SELECT_H
25267# include <sys/select.h>
25268#endif
25269#ifdef HAVE_SYS_SOCKET_H
25270# include <sys/socket.h>
25271#endif
25272
25273int
25274main ()
25275{
25276extern int select ($ac_arg1,
25277 $ac_arg234, $ac_arg234, $ac_arg234,
25278 $ac_arg5);
25279 ;
25280 return 0;
25281}
25282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025285fi
cristy3ed852e2009-09-05 21:47:34 +000025286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25287 done
25288 done
25289done
25290# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025291: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025292
25293fi
cristy8b350f62009-11-15 23:12:43 +000025294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo "$ac_cv_func_select_args" >&6; }
25296ac_save_IFS=$IFS; IFS=','
25297set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25298IFS=$ac_save_IFS
25299shift
25300
25301cat >>confdefs.h <<_ACEOF
25302#define SELECT_TYPE_ARG1 $1
25303_ACEOF
25304
25305
25306cat >>confdefs.h <<_ACEOF
25307#define SELECT_TYPE_ARG234 ($2)
25308_ACEOF
25309
25310
25311cat >>confdefs.h <<_ACEOF
25312#define SELECT_TYPE_ARG5 ($3)
25313_ACEOF
25314
25315rm -f conftest*
25316
cristyda16f162011-02-19 23:52:17 +000025317if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025318 $as_echo_n "(cached) " >&6
25319else
25320 ac_cv_func_setvbuf_reversed=no
25321fi
25322
25323
cristy8b350f62009-11-15 23:12:43 +000025324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025326if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 $as_echo_n "(cached) " >&6
25328else
cristy8b350f62009-11-15 23:12:43 +000025329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025330/* end confdefs.h. */
25331#include <sys/types.h>
25332#include <signal.h>
25333
25334int
25335main ()
25336{
25337return *(signal (0, 0)) (0) == 1;
25338 ;
25339 return 0;
25340}
25341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025343 ac_cv_type_signal=int
25344else
cristy8b350f62009-11-15 23:12:43 +000025345 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025346fi
cristy3ed852e2009-09-05 21:47:34 +000025347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25348fi
cristy8b350f62009-11-15 23:12:43 +000025349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025350$as_echo "$ac_cv_type_signal" >&6; }
25351
25352cat >>confdefs.h <<_ACEOF
25353#define RETSIGTYPE $ac_cv_type_signal
25354_ACEOF
25355
25356
cristy8b350f62009-11-15 23:12:43 +000025357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025358$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025359if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025360 $as_echo_n "(cached) " >&6
25361else
cristy8b350f62009-11-15 23:12:43 +000025362 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025363 ac_cv_func_strtod=no
25364else
cristy8b350f62009-11-15 23:12:43 +000025365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025366/* end confdefs.h. */
25367
25368$ac_includes_default
25369#ifndef strtod
25370double strtod ();
25371#endif
25372int
25373main()
25374{
25375 {
25376 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25377 char *string = " +69";
25378 char *term;
25379 double value;
25380 value = strtod (string, &term);
25381 if (value != 69 || term != (string + 4))
25382 return 1;
25383 }
25384
25385 {
25386 /* Under Solaris 2.4, strtod returns the wrong value for the
25387 terminating character under some conditions. */
25388 char *string = "NaN";
25389 char *term;
25390 strtod (string, &term);
25391 if (term != string && *(term - 1) == 0)
25392 return 1;
25393 }
25394 return 0;
25395}
25396
25397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025398if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 ac_cv_func_strtod=yes
25400else
cristy8b350f62009-11-15 23:12:43 +000025401 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025402fi
cristy8b350f62009-11-15 23:12:43 +000025403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25404 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025405fi
25406
cristy3ed852e2009-09-05 21:47:34 +000025407fi
cristy8b350f62009-11-15 23:12:43 +000025408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025409$as_echo "$ac_cv_func_strtod" >&6; }
25410if test $ac_cv_func_strtod = no; then
25411 case " $LIBOBJS " in
25412 *" strtod.$ac_objext "* ) ;;
25413 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25414 ;;
25415esac
25416
cristy8b350f62009-11-15 23:12:43 +000025417ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025418if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025419
cristy3ed852e2009-09-05 21:47:34 +000025420fi
25421
cristy3ed852e2009-09-05 21:47:34 +000025422if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025424$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025425if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025426 $as_echo_n "(cached) " >&6
25427else
25428 ac_check_lib_save_LIBS=$LIBS
25429LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025431/* end confdefs.h. */
25432
25433/* Override any GCC internal prototype to avoid an error.
25434 Use char because int might match the return type of a GCC
25435 builtin and then its argument prototype would still apply. */
25436#ifdef __cplusplus
25437extern "C"
25438#endif
25439char pow ();
25440int
25441main ()
25442{
25443return pow ();
25444 ;
25445 return 0;
25446}
25447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025448if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025449 ac_cv_lib_m_pow=yes
25450else
cristy8b350f62009-11-15 23:12:43 +000025451 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025452fi
cristy8b350f62009-11-15 23:12:43 +000025453rm -f core conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025455LIBS=$ac_check_lib_save_LIBS
25456fi
cristy8b350f62009-11-15 23:12:43 +000025457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025459if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 POW_LIB=-lm
25461else
cristy8b350f62009-11-15 23:12:43 +000025462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025463$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25464fi
25465
25466fi
25467
25468fi
25469
cristy7d4a1d62011-10-13 15:54:12 +000025470ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25471if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25472 ac_have_decl=1
25473else
25474 ac_have_decl=0
25475fi
25476
25477cat >>confdefs.h <<_ACEOF
25478#define HAVE_DECL_STRERROR_R $ac_have_decl
25479_ACEOF
25480
25481for ac_func in strerror_r
25482do :
25483 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25484if test "x$ac_cv_func_strerror_r" = xyes; then :
25485 cat >>confdefs.h <<_ACEOF
25486#define HAVE_STRERROR_R 1
25487_ACEOF
25488
25489fi
25490done
25491
25492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25493$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25494if ${ac_cv_func_strerror_r_char_p+:} false; then :
25495 $as_echo_n "(cached) " >&6
25496else
25497
25498 ac_cv_func_strerror_r_char_p=no
25499 if test $ac_cv_have_decl_strerror_r = yes; then
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501/* end confdefs.h. */
25502$ac_includes_default
25503int
25504main ()
25505{
25506
25507 char buf[100];
25508 char x = *strerror_r (0, buf, sizeof buf);
25509 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025510 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025511
25512 ;
25513 return 0;
25514}
25515_ACEOF
25516if ac_fn_c_try_compile "$LINENO"; then :
25517 ac_cv_func_strerror_r_char_p=yes
25518fi
25519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25520 else
25521 # strerror_r is not declared. Choose between
25522 # systems that have relatively inaccessible declarations for the
25523 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25524 # former has a strerror_r that returns char*, while the latter
25525 # has a strerror_r that returns `int'.
25526 # This test should segfault on the DEC system.
25527 if test "$cross_compiling" = yes; then :
25528 :
25529else
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531/* end confdefs.h. */
25532$ac_includes_default
25533 extern char *strerror_r ();
25534int
25535main ()
25536{
25537char buf[100];
25538 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025539 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025540 ;
25541 return 0;
25542}
25543_ACEOF
25544if ac_fn_c_try_run "$LINENO"; then :
25545 ac_cv_func_strerror_r_char_p=yes
25546fi
25547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25548 conftest.$ac_objext conftest.beam conftest.$ac_ext
25549fi
25550
25551 fi
25552
25553fi
25554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25555$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25556if test $ac_cv_func_strerror_r_char_p = yes; then
25557
25558$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25559
25560fi
25561
cristy3ed852e2009-09-05 21:47:34 +000025562for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025563do :
25564 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025565if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025566 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025567#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025568_ACEOF
25569
cristy8b350f62009-11-15 23:12:43 +000025570ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025571if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025572
cristy8b350f62009-11-15 23:12:43 +000025573$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025574
25575fi
25576
25577fi
25578done
25579
25580
25581
cristy161b9262010-03-20 19:34:32 +000025582#
25583# Find math library
25584#
25585MATH_LIBS=''
25586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25587$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025588if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025589 $as_echo_n "(cached) " >&6
25590else
25591 ac_check_lib_save_LIBS=$LIBS
25592LIBS="-lm $LIBS"
25593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594/* end confdefs.h. */
25595
25596/* Override any GCC internal prototype to avoid an error.
25597 Use char because int might match the return type of a GCC
25598 builtin and then its argument prototype would still apply. */
25599#ifdef __cplusplus
25600extern "C"
25601#endif
25602char sqrt ();
25603int
25604main ()
25605{
25606return sqrt ();
25607 ;
25608 return 0;
25609}
25610_ACEOF
25611if ac_fn_c_try_link "$LINENO"; then :
25612 ac_cv_lib_m_sqrt=yes
25613else
25614 ac_cv_lib_m_sqrt=no
25615fi
25616rm -f core conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
25618LIBS=$ac_check_lib_save_LIBS
25619fi
25620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25621$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025622if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025623 MATH_LIBS="-lm"
25624fi
25625
25626LIBS="$MATH_LIBS $LIBS"
25627
25628
cristy568c2d42012-07-27 01:41:20 +000025629for 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 +000025630do :
25631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25632ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025633if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 cat >>confdefs.h <<_ACEOF
25635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25636_ACEOF
25637
25638fi
25639done
25640
25641
cristye43a45e2009-09-28 14:49:00 +000025642#
25643# Check for clock_gettime().
25644#
cristy8b350f62009-11-15 23:12:43 +000025645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025646$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025647if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025648 $as_echo_n "(cached) " >&6
25649else
25650 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025652/* end confdefs.h. */
25653
25654/* Override any GCC internal prototype to avoid an error.
25655 Use char because int might match the return type of a GCC
25656 builtin and then its argument prototype would still apply. */
25657#ifdef __cplusplus
25658extern "C"
25659#endif
25660char clock_gettime ();
25661int
25662main ()
25663{
25664return clock_gettime ();
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669for ac_lib in '' rt; do
25670 if test -z "$ac_lib"; then
25671 ac_res="none required"
25672 else
25673 ac_res=-l$ac_lib
25674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25675 fi
cristy8b350f62009-11-15 23:12:43 +000025676 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025677 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025678fi
cristy8b350f62009-11-15 23:12:43 +000025679rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025681 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025682 break
25683fi
25684done
cristyda16f162011-02-19 23:52:17 +000025685if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025686
cristye43a45e2009-09-28 14:49:00 +000025687else
25688 ac_cv_search_clock_gettime=no
25689fi
25690rm conftest.$ac_ext
25691LIBS=$ac_func_search_save_LIBS
25692fi
cristy8b350f62009-11-15 23:12:43 +000025693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025694$as_echo "$ac_cv_search_clock_gettime" >&6; }
25695ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025696if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25698
25699
cristy8b350f62009-11-15 23:12:43 +000025700$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025701
cristy8b350f62009-11-15 23:12:43 +000025702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025703$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025705/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025706
25707 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025708int
25709main ()
25710{
25711clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025712 ;
25713 return 0;
25714}
25715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025716if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025717
cristy09b53e12011-10-14 12:47:22 +000025718 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25719$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025720
cristy8b350f62009-11-15 23:12:43 +000025721$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025722
25723
25724else
cristy09b53e12011-10-14 12:47:22 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25726$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025727
25728fi
cristye43a45e2009-09-28 14:49:00 +000025729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730
25731else
25732
cristy8b350f62009-11-15 23:12:43 +000025733 for ac_func in gettimeofday ftime
25734do :
25735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025738 cat >>confdefs.h <<_ACEOF
25739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25740_ACEOF
25741 break
25742fi
25743done
25744
25745
25746
25747fi
25748
25749
cristy3ed852e2009-09-05 21:47:34 +000025750########
25751#
25752# Check for function prototypes
25753#
25754########
25755
cristy8b350f62009-11-15 23:12:43 +000025756ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025757#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025758"
cristyda16f162011-02-19 23:52:17 +000025759if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025760 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025761else
cristy8b350f62009-11-15 23:12:43 +000025762 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025763fi
25764
cristy3ed852e2009-09-05 21:47:34 +000025765cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025766#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025768ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025769#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025770"
cristyda16f162011-02-19 23:52:17 +000025771if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025772 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025773else
cristy8b350f62009-11-15 23:12:43 +000025774 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025775fi
25776
cristy3ed852e2009-09-05 21:47:34 +000025777cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025778#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025779_ACEOF
25780
25781
cristy8b350f62009-11-15 23:12:43 +000025782ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025783#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025784"
cristyda16f162011-02-19 23:52:17 +000025785if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025786 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025787else
cristy8b350f62009-11-15 23:12:43 +000025788 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025789fi
25790
cristy3ed852e2009-09-05 21:47:34 +000025791cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025792#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025793_ACEOF
25794
25795
cristy8b350f62009-11-15 23:12:43 +000025796ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025797#include <stdio.h>
25798#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025799"
cristyda16f162011-02-19 23:52:17 +000025800if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025801 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025802else
cristy8b350f62009-11-15 23:12:43 +000025803 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025804fi
25805
cristy3ed852e2009-09-05 21:47:34 +000025806cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025807#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025808_ACEOF
25809
25810
cristy3ed852e2009-09-05 21:47:34 +000025811########
25812#
25813# C++ Support Tests (For Magick++)
25814#
25815########
25816have_magick_plus_plus='no'
25817if test "$with_magick_plus_plus" = 'yes'; then
25818 OLIBS="$LIBS"
25819 LIBS=''
25820 ac_ext=cpp
25821ac_cpp='$CXXCPP $CPPFLAGS'
25822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25825
25826
25827 # Full set of headers used...
25828 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25829 # functional iomanip iosfwd iostream iterator list string strstream utility
25830 ac_ext=cpp
25831ac_cpp='$CXXCPP $CPPFLAGS'
25832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25835
25836 ac_ext=cpp
25837ac_cpp='$CXXCPP $CPPFLAGS'
25838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25841if test -z "$CXX"; then
25842 if test -n "$CCC"; then
25843 CXX=$CCC
25844 else
25845 if test -n "$ac_tool_prefix"; then
25846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25847 do
25848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025852if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025853 $as_echo_n "(cached) " >&6
25854else
25855 if test -n "$CXX"; then
25856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25857else
25858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25859for as_dir in $PATH
25860do
25861 IFS=$as_save_IFS
25862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867 break 2
25868 fi
25869done
cristy8b350f62009-11-15 23:12:43 +000025870 done
cristy3ed852e2009-09-05 21:47:34 +000025871IFS=$as_save_IFS
25872
25873fi
25874fi
25875CXX=$ac_cv_prog_CXX
25876if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo "$CXX" >&6; }
25879else
cristy8b350f62009-11-15 23:12:43 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "no" >&6; }
25882fi
25883
25884
25885 test -n "$CXX" && break
25886 done
25887fi
25888if test -z "$CXX"; then
25889 ac_ct_CXX=$CXX
25890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25891do
25892 # Extract the first word of "$ac_prog", so it can be a program name with args.
25893set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025896if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025897 $as_echo_n "(cached) " >&6
25898else
25899 if test -n "$ac_ct_CXX"; then
25900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25901else
25902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903for as_dir in $PATH
25904do
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025909 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025911 break 2
25912 fi
25913done
cristy8b350f62009-11-15 23:12:43 +000025914 done
cristy3ed852e2009-09-05 21:47:34 +000025915IFS=$as_save_IFS
25916
25917fi
25918fi
25919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25920if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo "$ac_ct_CXX" >&6; }
25923else
cristy8b350f62009-11-15 23:12:43 +000025924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "no" >&6; }
25926fi
25927
25928
25929 test -n "$ac_ct_CXX" && break
25930done
25931
25932 if test "x$ac_ct_CXX" = x; then
25933 CXX="g++"
25934 else
25935 case $cross_compiling:$ac_tool_warned in
25936yes:)
cristy8b350f62009-11-15 23:12:43 +000025937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25939ac_tool_warned=yes ;;
25940esac
25941 CXX=$ac_ct_CXX
25942 fi
25943fi
25944
25945 fi
25946fi
25947# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025948$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025949set X $ac_compile
25950ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025951for ac_option in --version -v -V -qversion; do
25952 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025953case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25956esac
cristy8b350f62009-11-15 23:12:43 +000025957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25958$as_echo "$ac_try_echo"; } >&5
25959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025960 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025961 if test -s conftest.err; then
25962 sed '10a\
25963... rest of stderr output deleted ...
25964 10q' conftest.err >conftest.er1
25965 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025966 fi
cristycd4c5312009-11-22 01:19:08 +000025967 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }
25970done
cristy3ed852e2009-09-05 21:47:34 +000025971
cristy8b350f62009-11-15 23:12:43 +000025972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025974if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025975 $as_echo_n "(cached) " >&6
25976else
cristy8b350f62009-11-15 23:12:43 +000025977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025978/* end confdefs.h. */
25979
25980int
25981main ()
25982{
25983#ifndef __GNUC__
25984 choke me
25985#endif
25986
25987 ;
25988 return 0;
25989}
25990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025991if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 ac_compiler_gnu=yes
25993else
cristy8b350f62009-11-15 23:12:43 +000025994 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025995fi
cristy3ed852e2009-09-05 21:47:34 +000025996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25997ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25998
25999fi
cristy8b350f62009-11-15 23:12:43 +000026000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26002if test $ac_compiler_gnu = yes; then
26003 GXX=yes
26004else
26005 GXX=
26006fi
26007ac_test_CXXFLAGS=${CXXFLAGS+set}
26008ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026010$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026011if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 $as_echo_n "(cached) " >&6
26013else
26014 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26015 ac_cxx_werror_flag=yes
26016 ac_cv_prog_cxx_g=no
26017 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026019/* end confdefs.h. */
26020
26021int
26022main ()
26023{
26024
26025 ;
26026 return 0;
26027}
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_prog_cxx_g=yes
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 CXXFLAGS=""
26033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026034/* end confdefs.h. */
26035
26036int
26037main ()
26038{
26039
26040 ;
26041 return 0;
26042}
26043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026044if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026045
cristy8b350f62009-11-15 23:12:43 +000026046else
26047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026048 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026050/* end confdefs.h. */
26051
26052int
26053main ()
26054{
26055
26056 ;
26057 return 0;
26058}
26059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026060if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026061 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026062fi
cristy3ed852e2009-09-05 21:47:34 +000026063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064fi
cristy3ed852e2009-09-05 21:47:34 +000026065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066fi
cristy3ed852e2009-09-05 21:47:34 +000026067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26069fi
cristy8b350f62009-11-15 23:12:43 +000026070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "$ac_cv_prog_cxx_g" >&6; }
26072if test "$ac_test_CXXFLAGS" = set; then
26073 CXXFLAGS=$ac_save_CXXFLAGS
26074elif test $ac_cv_prog_cxx_g = yes; then
26075 if test "$GXX" = yes; then
26076 CXXFLAGS="-g -O2"
26077 else
26078 CXXFLAGS="-g"
26079 fi
26080else
26081 if test "$GXX" = yes; then
26082 CXXFLAGS="-O2"
26083 else
26084 CXXFLAGS=
26085 fi
26086fi
26087ac_ext=cpp
26088ac_cpp='$CXXCPP $CPPFLAGS'
26089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26092
cristy73bd4a52010-10-05 11:24:23 +000026093depcc="$CXX" am_compiler_list=
26094
26095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26096$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026097if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026098 $as_echo_n "(cached) " >&6
26099else
26100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26101 # We make a subdir and do the tests there. Otherwise we can end up
26102 # making bogus files that we don't know about and never remove. For
26103 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026104 # making a dummy file named 'D' -- because '-MD' means "put the output
26105 # in D".
cristy7247bba2012-02-05 16:37:27 +000026106 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026107 mkdir conftest.dir
26108 # Copy depcomp to subdir because otherwise we won't find it if we're
26109 # using a relative directory.
26110 cp "$am_depcomp" conftest.dir
26111 cd conftest.dir
26112 # We will build objects and dependencies in a subdirectory because
26113 # it helps to detect inapplicable dependency modes. For instance
26114 # both Tru64's cc and ICC support -MD to output dependencies as a
26115 # side effect of compilation, but ICC will put the dependencies in
26116 # the current directory while Tru64 will put them in the object
26117 # directory.
26118 mkdir sub
26119
26120 am_cv_CXX_dependencies_compiler_type=none
26121 if test "$am_compiler_list" = ""; then
26122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26123 fi
26124 am__universal=false
26125 case " $depcc " in #(
26126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26127 esac
26128
26129 for depmode in $am_compiler_list; do
26130 # Setup a source with many dependencies, because some compilers
26131 # like to wrap large dependency lists on column 80 (with \), and
26132 # we should not choose a depcomp mode which is confused by this.
26133 #
26134 # We need to recreate these files for each test, as the compiler may
26135 # overwrite some of them when testing with obscure command lines.
26136 # This happens at least with the AIX C compiler.
26137 : > sub/conftest.c
26138 for i in 1 2 3 4 5 6; do
26139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026140 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26141 # Solaris 10 /bin/sh.
26142 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026143 done
26144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26145
cristyc0890a62012-07-19 00:18:20 +000026146 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026147 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026148 # handle '-M -o', and we need to detect this. Also, some Intel
26149 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026150 am__obj=sub/conftest.${OBJEXT-o}
26151 am__minus_obj="-o $am__obj"
26152 case $depmode in
26153 gcc)
26154 # This depmode causes a compiler race in universal mode.
26155 test "$am__universal" = false || continue
26156 ;;
26157 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026158 # After this tag, mechanisms are not by side-effect, so they'll
26159 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026160 if test "x$enable_dependency_tracking" = xyes; then
26161 continue
26162 else
26163 break
26164 fi
26165 ;;
cristy7247bba2012-02-05 16:37:27 +000026166 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026167 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026168 # not run yet. These depmodes are late enough in the game, and
26169 # so weak that their functioning should not be impacted.
26170 am__obj=conftest.${OBJEXT-o}
26171 am__minus_obj=
26172 ;;
26173 none) break ;;
26174 esac
26175 if depmode=$depmode \
26176 source=sub/conftest.c object=$am__obj \
26177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26179 >/dev/null 2>conftest.err &&
26180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26184 # icc doesn't choke on unknown options, it will just issue warnings
26185 # or remarks (even with -Werror). So we grep stderr for any message
26186 # that says an option was ignored or not supported.
26187 # When given -MP, icc 7.0 and 7.1 complain thusly:
26188 # icc: Command line warning: ignoring option '-M'; no argument required
26189 # The diagnosis changed in icc 8.0:
26190 # icc: Command line remark: option '-MP' not supported
26191 if (grep 'ignoring option' conftest.err ||
26192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26193 am_cv_CXX_dependencies_compiler_type=$depmode
26194 break
26195 fi
26196 fi
26197 done
26198
26199 cd ..
26200 rm -rf conftest.dir
26201else
26202 am_cv_CXX_dependencies_compiler_type=none
26203fi
26204
26205fi
26206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26207$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26208CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26209
26210 if
26211 test "x$enable_dependency_tracking" != xno \
26212 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26213 am__fastdepCXX_TRUE=
26214 am__fastdepCXX_FALSE='#'
26215else
26216 am__fastdepCXX_TRUE='#'
26217 am__fastdepCXX_FALSE=
26218fi
26219
26220
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26222$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026223if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026224 $as_echo_n "(cached) " >&6
26225else
26226
26227 ac_ext=cpp
26228ac_cpp='$CXXCPP $CPPFLAGS'
26229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26232
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234/* end confdefs.h. */
26235
26236int f(int x){return 1;}
26237int f(char x){return 1;}
26238int f(bool x){return 1;}
26239
26240int
26241main ()
26242{
26243bool b = true; return f(b);
26244 ;
26245 return 0;
26246}
26247_ACEOF
26248if ac_fn_cxx_try_compile "$LINENO"; then :
26249 ax_cv_cxx_bool=yes
26250else
26251 ax_cv_cxx_bool=no
26252fi
26253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 ac_ext=cpp
26255ac_cpp='$CXXCPP $CPPFLAGS'
26256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26259
26260
26261fi
26262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26263$as_echo "$ax_cv_cxx_bool" >&6; }
26264if test "$ax_cv_cxx_bool" = yes; then
26265
26266$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26267
26268fi
26269
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26271$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026272if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026273 $as_echo_n "(cached) " >&6
26274else
26275
26276 ac_ext=cpp
26277ac_cpp='$CXXCPP $CPPFLAGS'
26278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26281
26282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283/* end confdefs.h. */
26284namespace Outer { namespace Inner { int i = 0; }}
26285int
26286main ()
26287{
26288using namespace Outer::Inner; return i;
26289 ;
26290 return 0;
26291}
26292_ACEOF
26293if ac_fn_cxx_try_compile "$LINENO"; then :
26294 ax_cv_cxx_namespaces=yes
26295else
26296 ax_cv_cxx_namespaces=no
26297fi
26298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 ac_ext=cpp
26300ac_cpp='$CXXCPP $CPPFLAGS'
26301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26304
26305
26306fi
26307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26308$as_echo "$ax_cv_cxx_namespaces" >&6; }
26309if test "$ax_cv_cxx_namespaces" = yes; then
26310
26311$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26312
26313fi
26314
26315
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26317$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026318if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026319 $as_echo_n "(cached) " >&6
26320else
26321
26322 ac_ext=cpp
26323ac_cpp='$CXXCPP $CPPFLAGS'
26324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26327
26328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329/* end confdefs.h. */
26330#include <iostream>
26331 std::istream& is = std::cin;
26332int
26333main ()
26334{
26335
26336 ;
26337 return 0;
26338}
26339_ACEOF
26340if ac_fn_cxx_try_compile "$LINENO"; then :
26341 ax_cv_cxx_have_std_namespace=yes
26342else
26343 ax_cv_cxx_have_std_namespace=no
26344fi
26345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26346 ac_ext=cpp
26347ac_cpp='$CXXCPP $CPPFLAGS'
26348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26351
26352
26353fi
26354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26355$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26356 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26357
26358$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26359
26360 fi
26361
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26363$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026364if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026365 $as_echo_n "(cached) " >&6
26366else
26367
26368
26369 ac_ext=cpp
26370ac_cpp='$CXXCPP $CPPFLAGS'
26371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26374
26375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376/* end confdefs.h. */
26377#include <iostream>
26378#include <map>
26379#include <iomanip>
26380#include <cmath>
26381#ifdef HAVE_NAMESPACES
26382using namespace std;
26383#endif
26384int
26385main ()
26386{
26387return 0;
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392if ac_fn_cxx_try_compile "$LINENO"; then :
26393 ac_cv_cxx_have_std_libs=yes
26394else
26395 ac_cv_cxx_have_std_libs=no
26396fi
26397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26398 ac_ext=cpp
26399ac_cpp='$CXXCPP $CPPFLAGS'
26400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26403
26404
26405fi
26406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26407$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26408if test "$ac_cv_cxx_have_std_libs" = yes; then
26409
26410$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26411
26412fi
26413
cristy3ed852e2009-09-05 21:47:34 +000026414
26415 OPENMP_CXXFLAGS=
26416 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026417if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 enableval=$enable_openmp;
26419fi
26420
26421 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26423$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026424if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 $as_echo_n "(cached) " >&6
26426else
cristy8b350f62009-11-15 23:12:43 +000026427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026429
26430#ifndef _OPENMP
26431 choke me
26432#endif
26433#include <omp.h>
26434int main () { return omp_get_num_threads (); }
26435
26436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026437if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 ac_cv_prog_cxx_openmp='none needed'
26439else
cristy8b350f62009-11-15 23:12:43 +000026440 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026441 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26442 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026443 ac_save_CXXFLAGS=$CXXFLAGS
26444 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26446/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026447
26448#ifndef _OPENMP
26449 choke me
26450#endif
26451#include <omp.h>
26452int main () { return omp_get_num_threads (); }
26453
26454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026455if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026457fi
cristy8b350f62009-11-15 23:12:43 +000026458rm -f core conftest.err conftest.$ac_objext \
26459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026460 CXXFLAGS=$ac_save_CXXFLAGS
26461 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26462 break
26463 fi
26464 done
26465fi
cristy8b350f62009-11-15 23:12:43 +000026466rm -f core conftest.err conftest.$ac_objext \
26467 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026468fi
cristy8b350f62009-11-15 23:12:43 +000026469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26471 case $ac_cv_prog_cxx_openmp in #(
26472 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026473 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026474 *)
cristy8b350f62009-11-15 23:12:43 +000026475 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026476 esac
26477 fi
26478
26479
26480 ac_ext=c
26481ac_cpp='$CPP $CPPFLAGS'
26482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26484ac_compiler_gnu=$ac_cv_c_compiler_gnu
26485
26486
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26489 if \
cristy964cb7f2010-04-25 23:18:00 +000026490 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026491 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026492 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026493 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026494 have_magick_plus_plus='yes'
26495 else
26496 have_magick_plus_plus='no (failed tests)'
26497 fi
cristy09b53e12011-10-14 12:47:22 +000026498 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26499$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026500 LIBS="$OLIBS"
26501fi
cristy73bd4a52010-10-05 11:24:23 +000026502 if test "$have_magick_plus_plus" = 'yes'; then
26503 WITH_MAGICK_PLUS_PLUS_TRUE=
26504 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26505else
26506 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26507 WITH_MAGICK_PLUS_PLUS_FALSE=
26508fi
26509
cristy3ed852e2009-09-05 21:47:34 +000026510
26511# Only check for delegate libraries in subdirectories if requested.
26512if test "$enable_delegate_build" != 'no'; then
26513 # Check for delegate sub-directories and add -I & -L options as required.
26514 # This presumes that delegates are installed as detailed in the ImageMagick
26515 # README. If delegates are installed in a standard location where the
26516 # compiler will automatically find them then these options should not be
26517 # required.
26518
26519 #
26520 # Most delegates have includes in the same directory as the library, but not all...
26521 #
26522 # Includes
cristy2542fc62011-12-06 17:50:25 +000026523 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 +000026524 if test -d "$builddir/$dir"; then
26525 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26526 else
26527 if test -d "$srcdirfull/$dir"; then
26528 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26529 fi
26530 fi
26531 done
26532
26533 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026534 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 +000026535 if test -d "$builddir/$dir/.libs"; then
26536 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26537 else
26538 if test -d "$srcdirfull/$dir/.libs"; then
26539 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26540 fi
26541 fi
26542 if test -d "$builddir/$dir"; then
26543 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26544 else
26545 if test -d "$srcdirfull/$dir"; then
26546 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26547 fi
26548 fi
26549 done
26550fi
26551
26552# Assume that delegate headers reside under same directory as ImageMagick
26553# installation prefix.
26554MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26555
26556#
26557# Find the X11 RGB database
26558#
cristy8b350f62009-11-15 23:12:43 +000026559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026561if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 $as_echo_n "(cached) " >&6
26563else
26564 # Look for the header file in a standard set of common directories.
26565# Check X11 before X11Rn because it is often a symlink to the current release.
26566 for ac_dir in \
26567 /lib/usr/lib/X11 \
26568 /usr/X11/lib \
26569 /usr/X11R4/lib \
26570 /usr/X11R5/lib \
26571 /usr/X11R6/lib \
26572 /usr/X11R7/lib \
26573 /usr/X386/lib \
26574 /usr/XFree86/lib/X11 \
26575 /usr/athena/lib \
26576 /usr/lib \
26577 /usr/lib/X11 \
26578 /usr/lib/X11R4 \
26579 /usr/lib/X11R5 \
26580 /usr/lib/X11R6 \
26581 /usr/lib/X11R7 \
26582 /usr/local/X11/lib \
26583 /usr/local/X11R4/lib \
26584 /usr/local/X11R5/lib \
26585 /usr/local/X11R6/lib \
26586 /usr/local/lib \
26587 /usr/local/lib/X11 \
26588 /usr/local/lib/X11R4 \
26589 /usr/local/lib/X11R5 \
26590 /usr/local/lib/X11R6 \
26591 /usr/local/lib/X11R7 \
26592 /usr/local/x11r5/lib \
26593 /usr/lpp/Xamples/lib \
26594 /usr/openwin/lib \
26595 /usr/openwin/share/lib \
26596 /usr/unsupported/lib \
26597 /usr/x386/lib \
26598 ; do
26599 if test -f "$ac_dir/X11/rgb.txt"; then
26600 im_cv_x_configure="$ac_dir/X11/"
26601 break
26602 elif test -f "$ac_dir/rgb.txt"; then
26603 im_cv_x_configure="$ac_dir/"
26604 break
26605 fi
26606
26607 done
26608fi
cristy8b350f62009-11-15 23:12:43 +000026609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo "$im_cv_x_configure" >&6; }
26611X11_CONFIGURE_PATH="$im_cv_x_configure"
26612case "${build_os}" in
26613 mingw* )
26614 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26615 ;;
26616esac
26617
26618cat >>confdefs.h <<_ACEOF
26619#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26620_ACEOF
26621
26622
26623#
26624# Find OpenMP library
26625#
26626GOMP_LIBS=''
26627if test "$enable_openmp" != 'no'; then
26628 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026629 # Open64 (passes for GCC but uses different OpenMP implementation)
26630 if test "x$GOMP_LIBS" = x ; then
26631 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26633$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26634if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26635 $as_echo_n "(cached) " >&6
26636else
26637 ac_check_lib_save_LIBS=$LIBS
26638LIBS="-lopenmp $LIBS"
26639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640/* end confdefs.h. */
26641
26642/* Override any GCC internal prototype to avoid an error.
26643 Use char because int might match the return type of a GCC
26644 builtin and then its argument prototype would still apply. */
26645#ifdef __cplusplus
26646extern "C"
26647#endif
26648char omp_get_num_procs ();
26649int
26650main ()
26651{
26652return omp_get_num_procs ();
26653 ;
26654 return 0;
26655}
26656_ACEOF
26657if ac_fn_c_try_link "$LINENO"; then :
26658 ac_cv_lib_openmp_omp_get_num_procs=yes
26659else
26660 ac_cv_lib_openmp_omp_get_num_procs=no
26661fi
26662rm -f core conftest.err conftest.$ac_objext \
26663 conftest$ac_exeext conftest.$ac_ext
26664LIBS=$ac_check_lib_save_LIBS
26665fi
26666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26667$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26668if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26669 GOMP_LIBS="-lopenmp"
26670fi
26671
26672 fi
26673 fi
26674 # GCC
26675 if test "x$GOMP_LIBS" = x ; then
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026678if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026679 $as_echo_n "(cached) " >&6
26680else
26681 ac_check_lib_save_LIBS=$LIBS
26682LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026684/* end confdefs.h. */
26685
26686/* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26689#ifdef __cplusplus
26690extern "C"
26691#endif
26692char GOMP_parallel_start ();
26693int
26694main ()
26695{
26696return GOMP_parallel_start ();
26697 ;
26698 return 0;
26699}
26700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 ac_cv_lib_gomp_GOMP_parallel_start=yes
26703else
cristy8b350f62009-11-15 23:12:43 +000026704 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026705fi
cristy8b350f62009-11-15 23:12:43 +000026706rm -f core conftest.err conftest.$ac_objext \
26707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026708LIBS=$ac_check_lib_save_LIBS
26709fi
cristy8b350f62009-11-15 23:12:43 +000026710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 GOMP_LIBS="-lgomp"
26714fi
cristy18307f12011-12-30 01:20:16 +000026715
26716 fi
cristy3ed852e2009-09-05 21:47:34 +000026717 else
cristy18307f12011-12-30 01:20:16 +000026718 # Sun CC
26719 if test "x$GOMP_LIBS" = x ; then
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026722if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 $as_echo_n "(cached) " >&6
26724else
26725 ac_check_lib_save_LIBS=$LIBS
26726LIBS="-lmtsk $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 sunw_mp_register_warn ();
26737int
26738main ()
26739{
26740return sunw_mp_register_warn ();
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_mtsk_sunw_mp_register_warn=yes
26747else
cristy8b350f62009-11-15 23:12:43 +000026748 ac_cv_lib_mtsk_sunw_mp_register_warn=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_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026756if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 GOMP_LIBS="-lmtsk"
26758fi
cristy18307f12011-12-30 01:20:16 +000026759
26760 fi
26761 # AIX xlc
26762 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026765if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 $as_echo_n "(cached) " >&6
26767else
26768 ac_check_lib_save_LIBS=$LIBS
26769LIBS="-lxlsmp $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 _xlsmpFlush ();
26780int
26781main ()
26782{
26783return _xlsmpFlush ();
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_xlsmp__xlsmpFlush=yes
26790else
cristy8b350f62009-11-15 23:12:43 +000026791 ac_cv_lib_xlsmp__xlsmpFlush=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_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 GOMP_LIBS="-lxlsmp"
26801fi
cristy18307f12011-12-30 01:20:16 +000026802
26803 fi
26804 # SGI IRIX 6.5 MIPSpro C/C++
26805 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026808if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 $as_echo_n "(cached) " >&6
26810else
26811 ac_check_lib_save_LIBS=$LIBS
26812LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026814/* end confdefs.h. */
26815
26816/* Override any GCC internal prototype to avoid an error.
26817 Use char because int might match the return type of a GCC
26818 builtin and then its argument prototype would still apply. */
26819#ifdef __cplusplus
26820extern "C"
26821#endif
26822char mp_destroy ();
26823int
26824main ()
26825{
26826return mp_destroy ();
26827 ;
26828 return 0;
26829}
26830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026832 ac_cv_lib_mp_mp_destroy=yes
26833else
cristy8b350f62009-11-15 23:12:43 +000026834 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026835fi
cristy8b350f62009-11-15 23:12:43 +000026836rm -f core conftest.err conftest.$ac_objext \
26837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026838LIBS=$ac_check_lib_save_LIBS
26839fi
cristy8b350f62009-11-15 23:12:43 +000026840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026841$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026842if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 GOMP_LIBS="-lmp"
26844fi
cristy18307f12011-12-30 01:20:16 +000026845
26846 fi
cristy3ed852e2009-09-05 21:47:34 +000026847 fi
26848 LIBS="$GOMP_LIBS $LIBS"
26849fi
26850
26851
26852#
26853# Find Posix threads library
26854#
26855THREAD_LIBS=''
26856if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26857
26858 if test "x$PTHREAD_LIBS" = "x"; then
26859 case "${host_cpu}-${host_os}" in
26860 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026861
26862
26863
26864ac_ext=c
26865ac_cpp='$CPP $CPPFLAGS'
26866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26868ac_compiler_gnu=$ac_cv_c_compiler_gnu
26869
26870magick_pthread_lib_ok=no
26871
26872LIB=-lc_r
26873save_LIBS="$LIBS"
26874LIBS="$LIBS $LIB"
26875
26876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26877$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879/* end confdefs.h. */
26880#include <pthread.h>
26881int
26882main ()
26883{
26884 pthread_t th;
26885 pthread_join(th, 0);
26886 pthread_attr_init(0);
26887 pthread_cleanup_push(0, 0);
26888 pthread_create(0,0,0,0);
26889 pthread_cleanup_pop(0);
26890 ;
26891 return 0;
26892}
26893_ACEOF
26894if ac_fn_c_try_link "$LINENO"; then :
26895 magick_pthread_lib_ok=yes
26896fi
26897rm -f core conftest.err conftest.$ac_objext \
26898 conftest$ac_exeext conftest.$ac_ext
26899
26900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26901$as_echo "${magick_pthread_lib_ok}" >&6; }
26902if test "$magick_pthread_lib_ok" = yes
26903then
26904 PTHREAD_LIBS=-lc_r
26905 :
26906else
26907
26908 :
26909fi
26910
26911LIBS="$save_LIBS"
26912
26913ac_ext=c
26914ac_cpp='$CPP $CPPFLAGS'
26915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26917ac_compiler_gnu=$ac_cv_c_compiler_gnu
26918
26919 ;;
cristy3ed852e2009-09-05 21:47:34 +000026920 esac
26921 fi
26922
26923 for lib in pthread pthreads; do
26924 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026925
26926
26927
26928ac_ext=c
26929ac_cpp='$CPP $CPPFLAGS'
26930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26932ac_compiler_gnu=$ac_cv_c_compiler_gnu
26933
26934magick_pthread_lib_ok=no
26935
26936LIB=-l$lib
26937save_LIBS="$LIBS"
26938LIBS="$LIBS $LIB"
26939
26940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26941$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26943/* end confdefs.h. */
26944#include <pthread.h>
26945int
26946main ()
26947{
26948 pthread_t th;
26949 pthread_join(th, 0);
26950 pthread_attr_init(0);
26951 pthread_cleanup_push(0, 0);
26952 pthread_create(0,0,0,0);
26953 pthread_cleanup_pop(0);
26954 ;
26955 return 0;
26956}
26957_ACEOF
26958if ac_fn_c_try_link "$LINENO"; then :
26959 magick_pthread_lib_ok=yes
26960fi
26961rm -f core conftest.err conftest.$ac_objext \
26962 conftest$ac_exeext conftest.$ac_ext
26963
26964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26965$as_echo "${magick_pthread_lib_ok}" >&6; }
26966if test "$magick_pthread_lib_ok" = yes
26967then
26968 PTHREAD_LIBS=-l$lib
26969 :
26970else
26971
26972 :
26973fi
26974
26975LIBS="$save_LIBS"
26976
26977ac_ext=c
26978ac_cpp='$CPP $CPPFLAGS'
26979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26981ac_compiler_gnu=$ac_cv_c_compiler_gnu
26982
26983
cristy3ed852e2009-09-05 21:47:34 +000026984 fi
26985 done
26986
26987 THREAD_LIBS="$PTHREAD_LIBS"
26988 LIBS="$LIBS $THREAD_LIBS"
26989fi
26990
26991
26992#
26993# Check for umem.
26994#
26995have_umem='no'
26996UMEM_LIBS=''
26997if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026999$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027000 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27001$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027002 failed=0
27003 passed=0
cristy8b350f62009-11-15 23:12:43 +000027004 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027005if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 passed=`expr $passed + 1`
27007else
27008 failed=`expr $failed + 1`
27009fi
27010
27011
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027014if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 $as_echo_n "(cached) " >&6
27016else
27017 ac_check_lib_save_LIBS=$LIBS
27018LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027020/* end confdefs.h. */
27021
27022/* Override any GCC internal prototype to avoid an error.
27023 Use char because int might match the return type of a GCC
27024 builtin and then its argument prototype would still apply. */
27025#ifdef __cplusplus
27026extern "C"
27027#endif
27028char umem_alloc ();
27029int
27030main ()
27031{
27032return umem_alloc ();
27033 ;
27034 return 0;
27035}
27036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027038 ac_cv_lib_umem_umem_alloc=yes
27039else
cristy8b350f62009-11-15 23:12:43 +000027040 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027041fi
cristy8b350f62009-11-15 23:12:43 +000027042rm -f core conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027044LIBS=$ac_check_lib_save_LIBS
27045fi
cristy8b350f62009-11-15 23:12:43 +000027046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027048if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 passed=`expr $passed + 1`
27050else
27051 failed=`expr $failed + 1`
27052fi
27053
cristy8b350f62009-11-15 23:12:43 +000027054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027055$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027056if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 $as_echo_n "(cached) " >&6
27058else
27059 ac_check_lib_save_LIBS=$LIBS
27060LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027062/* end confdefs.h. */
27063
27064/* Override any GCC internal prototype to avoid an error.
27065 Use char because int might match the return type of a GCC
27066 builtin and then its argument prototype would still apply. */
27067#ifdef __cplusplus
27068extern "C"
27069#endif
27070char umem_free ();
27071int
27072main ()
27073{
27074return umem_free ();
27075 ;
27076 return 0;
27077}
27078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027079if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027080 ac_cv_lib_umem_umem_free=yes
27081else
cristy8b350f62009-11-15 23:12:43 +000027082 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027083fi
cristy8b350f62009-11-15 23:12:43 +000027084rm -f core conftest.err conftest.$ac_objext \
27085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027086LIBS=$ac_check_lib_save_LIBS
27087fi
cristy8b350f62009-11-15 23:12:43 +000027088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027089$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027090if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 passed=`expr $passed + 1`
27092else
27093 failed=`expr $failed + 1`
27094fi
27095
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27098 if test $passed -gt 0; then
27099 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27101$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027102 have_umem='no (failed tests)'
27103 else
27104 UMEM_LIBS='-lumem'
27105 LIBS="$UMEM_LIBS $LIBS"
27106
cristy8b350f62009-11-15 23:12:43 +000027107$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027108
cristy09b53e12011-10-14 12:47:22 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27110$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027111 have_umem='yes'
27112 fi
27113 else
cristy09b53e12011-10-14 12:47:22 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27115$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027116 fi
27117fi
cristy73bd4a52010-10-05 11:24:23 +000027118 if test "$have_umem" = 'yes'; then
27119 HasUMEM_TRUE=
27120 HasUMEM_FALSE='#'
27121else
27122 HasUMEM_TRUE='#'
27123 HasUMEM_FALSE=
27124fi
27125
cristy3ed852e2009-09-05 21:47:34 +000027126
27127
27128#
27129# Add support for ccmalloc memory debugging library if requested
27130#
27131have_ccmalloc='no'
27132CCMALLOC_LIBS=''
27133if test "$enable_ccmalloc" = 'yes'; then
27134 # Extract the first word of "ccmalloc", so it can be a program name with args.
27135set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027138if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 $as_echo_n "(cached) " >&6
27140else
27141 case $CCMALLOCDelegate in
27142 [\\/]* | ?:[\\/]*)
27143 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27144 ;;
27145 *)
27146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27147for as_dir in $PATH
27148do
27149 IFS=$as_save_IFS
27150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027153 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027155 break 2
27156 fi
27157done
cristy8b350f62009-11-15 23:12:43 +000027158 done
cristy3ed852e2009-09-05 21:47:34 +000027159IFS=$as_save_IFS
27160
27161 ;;
27162esac
27163fi
27164CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27165if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "$CCMALLOCDelegate" >&6; }
27168else
cristy8b350f62009-11-15 23:12:43 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "no" >&6; }
27171fi
27172
27173
27174 if test -n "$CCMALLOCDelegate"; then
27175 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27176 OLIBS="$LIBS"
27177 # Assume that gcc is used with ccmalloc.
27178 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027181if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 $as_echo_n "(cached) " >&6
27183else
27184 ac_check_lib_save_LIBS=$LIBS
27185LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187/* end confdefs.h. */
27188
27189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27192#ifdef __cplusplus
27193extern "C"
27194#endif
27195char ccmalloc_malloc ();
27196int
27197main ()
27198{
27199return ccmalloc_malloc ();
27200 ;
27201 return 0;
27202}
27203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027208fi
cristy8b350f62009-11-15 23:12:43 +000027209rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211LIBS=$ac_check_lib_save_LIBS
27212fi
cristy8b350f62009-11-15 23:12:43 +000027213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027215if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27217fi
27218
27219 if test -n "$CCMALLOC_LIBS"; then
27220 LIBS="$OLIBS"
27221 LIBS="$LIBS $CCMALLOC_LIBS"
27222 have_ccmalloc='yes'
27223 else
27224 LIBS="$OLIBS"
27225 fi
27226 fi
27227fi
27228
27229#
27230# Add support for efence memory debugging library if requested
27231#
27232if test "$enable_efence" = 'yes'; then
27233 EFENCE_LIBS='-lefence'
27234 LIBS="$EFENCE_LIBS $LIBS"
27235fi
27236
cristy3ed852e2009-09-05 21:47:34 +000027237
27238#
27239# Check for BZLIB
27240#
27241
27242
27243# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027244if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 withval=$with_bzlib; with_bzlib=$withval
27246else
27247 with_bzlib='yes'
27248fi
27249
27250
27251if test "$with_bzlib" != 'yes'; then
27252 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27253fi
27254
27255have_bzlib='no'
27256if test "$with_bzlib" != 'no'; then
27257 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27259$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27263$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027264 failed=0
27265 passed=0
27266 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027267 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027268if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 passed=`expr $passed + 1`
27270else
27271 failed=`expr $failed + 1`
27272fi
27273
27274
cristy8b350f62009-11-15 23:12:43 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027277if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 $as_echo_n "(cached) " >&6
27279else
27280 ac_check_lib_save_LIBS=$LIBS
27281LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027283/* end confdefs.h. */
27284
27285/* Override any GCC internal prototype to avoid an error.
27286 Use char because int might match the return type of a GCC
27287 builtin and then its argument prototype would still apply. */
27288#ifdef __cplusplus
27289extern "C"
27290#endif
27291char BZ2_bzDecompress ();
27292int
27293main ()
27294{
27295return BZ2_bzDecompress ();
27296 ;
27297 return 0;
27298}
27299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27302else
cristy8b350f62009-11-15 23:12:43 +000027303 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027304fi
cristy8b350f62009-11-15 23:12:43 +000027305rm -f core conftest.err conftest.$ac_objext \
27306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027307LIBS=$ac_check_lib_save_LIBS
27308fi
cristy8b350f62009-11-15 23:12:43 +000027309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027311if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 found_libbz=`expr $found_libbz + 1`
27313fi
27314
27315 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027317$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027318if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 $as_echo_n "(cached) " >&6
27320else
27321 ac_check_lib_save_LIBS=$LIBS
27322LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324/* end confdefs.h. */
27325
27326/* Override any GCC internal prototype to avoid an error.
27327 Use char because int might match the return type of a GCC
27328 builtin and then its argument prototype would still apply. */
27329#ifdef __cplusplus
27330extern "C"
27331#endif
27332char _imp__BZ2_decompress ();
27333int
27334main ()
27335{
27336return _imp__BZ2_decompress ();
27337 ;
27338 return 0;
27339}
27340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27343else
cristy8b350f62009-11-15 23:12:43 +000027344 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027345fi
cristy8b350f62009-11-15 23:12:43 +000027346rm -f core conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027348LIBS=$ac_check_lib_save_LIBS
27349fi
cristy8b350f62009-11-15 23:12:43 +000027350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027352if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 found_libbz=`expr $found_libbz + 1`
27354fi
27355
27356 fi
27357 if test $found_libbz -gt 0; then
27358 passed=`expr $passed + 1`
27359 else
27360 failed=`expr $failed + 1`
27361 fi
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo_n "checking if BZLIB package is complete... " >&6; }
27364 if test $passed -gt 0; then
27365 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27367$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027368 have_bzlib='no (failed tests)'
27369 else
27370 BZLIB_LIBS='-lbz2'
27371 LIBS="$BZLIB_LIBS $LIBS"
27372
cristy8b350f62009-11-15 23:12:43 +000027373$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027374
cristy09b53e12011-10-14 12:47:22 +000027375 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27376$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027377 have_bzlib='yes'
27378 fi
27379 else
cristy09b53e12011-10-14 12:47:22 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27381$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027382 fi
27383fi
cristy73bd4a52010-10-05 11:24:23 +000027384 if test "$have_bzlib" = 'yes'; then
27385 BZLIB_DELEGATE_TRUE=
27386 BZLIB_DELEGATE_FALSE='#'
27387else
27388 BZLIB_DELEGATE_TRUE='#'
27389 BZLIB_DELEGATE_FALSE=
27390fi
27391
cristy3ed852e2009-09-05 21:47:34 +000027392
27393
27394#
27395# Find the X11 include and library directories.
27396#
27397IPC_LIBS=''
27398X11_LIBS=''
27399XEXT_LIBS=''
27400XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027402$as_echo_n "checking for X... " >&6; }
27403
27404
27405# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027406if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027407 withval=$with_x;
27408fi
27409
27410# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27411if test "x$with_x" = xno; then
27412 # The user explicitly disabled X.
27413 have_x=disabled
27414else
27415 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027416 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027417 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027418 $as_echo_n "(cached) " >&6
27419else
27420 # One or both of the vars are not set, and there is no cached value.
27421ac_x_includes=no ac_x_libraries=no
27422rm -f -r conftest.dir
27423if mkdir conftest.dir; then
27424 cd conftest.dir
27425 cat >Imakefile <<'_ACEOF'
27426incroot:
27427 @echo incroot='${INCROOT}'
27428usrlibdir:
27429 @echo usrlibdir='${USRLIBDIR}'
27430libdir:
27431 @echo libdir='${LIBDIR}'
27432_ACEOF
27433 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027435 for ac_var in incroot usrlibdir libdir; do
27436 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27437 done
27438 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27439 for ac_extension in a so sl dylib la dll; do
27440 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27441 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27442 ac_im_usrlibdir=$ac_im_libdir; break
27443 fi
27444 done
27445 # Screen out bogus values from the imake configuration. They are
27446 # bogus both because they are the default anyway, and because
27447 # using them would break gcc on systems where it needs fixed includes.
27448 case $ac_im_incroot in
27449 /usr/include) ac_x_includes= ;;
27450 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27451 esac
27452 case $ac_im_usrlibdir in
27453 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27454 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27455 esac
27456 fi
27457 cd ..
27458 rm -f -r conftest.dir
27459fi
27460
27461# Standard set of common directories for X headers.
27462# Check X11 before X11Rn because it is often a symlink to the current release.
27463ac_x_header_dirs='
27464/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027465/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027466/usr/X11R6/include
27467/usr/X11R5/include
27468/usr/X11R4/include
27469
27470/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027471/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027472/usr/include/X11R6
27473/usr/include/X11R5
27474/usr/include/X11R4
27475
27476/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027477/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027478/usr/local/X11R6/include
27479/usr/local/X11R5/include
27480/usr/local/X11R4/include
27481
27482/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027483/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027484/usr/local/include/X11R6
27485/usr/local/include/X11R5
27486/usr/local/include/X11R4
27487
27488/usr/X386/include
27489/usr/x386/include
27490/usr/XFree86/include/X11
27491
27492/usr/include
27493/usr/local/include
27494/usr/unsupported/include
27495/usr/athena/include
27496/usr/local/x11r5/include
27497/usr/lpp/Xamples/include
27498
27499/usr/openwin/include
27500/usr/openwin/share/include'
27501
27502if test "$ac_x_includes" = no; then
27503 # Guess where to find include files, by looking for Xlib.h.
27504 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027506/* end confdefs.h. */
27507#include <X11/Xlib.h>
27508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027509if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027510 # We can compile using X headers with no special include directory.
27511ac_x_includes=
27512else
cristyc7083c12009-10-14 03:16:55 +000027513 for ac_dir in $ac_x_header_dirs; do
27514 if test -r "$ac_dir/X11/Xlib.h"; then
27515 ac_x_includes=$ac_dir
27516 break
27517 fi
27518done
27519fi
cristyda16f162011-02-19 23:52:17 +000027520rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027521fi # $ac_x_includes = no
27522
27523if test "$ac_x_libraries" = no; then
27524 # Check for the libraries.
27525 # See if we find them without any special options.
27526 # Don't add to $LIBS permanently.
27527 ac_save_LIBS=$LIBS
27528 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027530/* end confdefs.h. */
27531#include <X11/Xlib.h>
27532int
27533main ()
27534{
27535XrmInitialize ()
27536 ;
27537 return 0;
27538}
27539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027540if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027541 LIBS=$ac_save_LIBS
27542# We can link X programs with no special library path.
27543ac_x_libraries=
27544else
cristy8b350f62009-11-15 23:12:43 +000027545 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027546for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27547do
27548 # Don't even attempt the hair of trying to link an X program!
27549 for ac_extension in a so sl dylib la dll; do
27550 if test -r "$ac_dir/libX11.$ac_extension"; then
27551 ac_x_libraries=$ac_dir
27552 break 2
27553 fi
27554 done
27555done
27556fi
cristy8b350f62009-11-15 23:12:43 +000027557rm -f core conftest.err conftest.$ac_objext \
27558 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027559fi # $ac_x_libraries = no
27560
27561case $ac_x_includes,$ac_x_libraries in #(
27562 no,* | *,no | *\'*)
27563 # Didn't find X, or a directory has "'" in its name.
27564 ac_cv_have_x="have_x=no";; #(
27565 *)
27566 # Record where we found X for the cache.
27567 ac_cv_have_x="have_x=yes\
27568 ac_x_includes='$ac_x_includes'\
27569 ac_x_libraries='$ac_x_libraries'"
27570esac
27571fi
27572;; #(
27573 *) have_x=yes;;
27574 esac
27575 eval "$ac_cv_have_x"
27576fi # $with_x != no
27577
27578if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027580$as_echo "$have_x" >&6; }
27581 no_x=yes
27582else
27583 # If each of the values was on the command line, it overrides each guess.
27584 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27585 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27586 # Update the cache value to reflect the command line values.
27587 ac_cv_have_x="have_x=yes\
27588 ac_x_includes='$x_includes'\
27589 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027591$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27592fi
27593
cristy3ed852e2009-09-05 21:47:34 +000027594if test "$no_x" = yes; then
27595 # Not all programs may use this symbol, but it does not hurt to define it.
27596
cristy8b350f62009-11-15 23:12:43 +000027597$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027598
27599 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27600else
27601 if test -n "$x_includes"; then
27602 X_CFLAGS="$X_CFLAGS -I$x_includes"
27603 fi
27604
27605 # It would also be nice to do this for all -L options, not just this one.
27606 if test -n "$x_libraries"; then
27607 X_LIBS="$X_LIBS -L$x_libraries"
27608 # For Solaris; some versions of Sun CC require a space after -R and
27609 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027611$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27612 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27613 ac_xsave_c_werror_flag=$ac_c_werror_flag
27614 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027616/* end confdefs.h. */
27617
27618int
27619main ()
27620{
27621
27622 ;
27623 return 0;
27624}
27625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027626if ac_fn_c_try_link "$LINENO"; then :
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo "no" >&6; }
27629 X_LIBS="$X_LIBS -R$x_libraries"
27630else
cristy8b350f62009-11-15 23:12:43 +000027631 LIBS="$ac_xsave_LIBS -R $x_libraries"
27632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633/* end confdefs.h. */
27634
27635int
27636main ()
27637{
27638
27639 ;
27640 return 0;
27641}
27642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027643if ac_fn_c_try_link "$LINENO"; then :
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo "yes" >&6; }
27646 X_LIBS="$X_LIBS -R $x_libraries"
27647else
cristy8b350f62009-11-15 23:12:43 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo "neither works" >&6; }
27650fi
cristy8b350f62009-11-15 23:12:43 +000027651rm -f core conftest.err conftest.$ac_objext \
27652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653fi
cristy8b350f62009-11-15 23:12:43 +000027654rm -f core conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656 ac_c_werror_flag=$ac_xsave_c_werror_flag
27657 LIBS=$ac_xsave_LIBS
27658 fi
27659
27660 # Check for system-dependent libraries X programs must link with.
27661 # Do this before checking for the system-independent R6 libraries
27662 # (-lICE), since we may need -lsocket or whatever for X linking.
27663
27664 if test "$ISC" = yes; then
27665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27666 else
27667 # Martyn Johnson says this is needed for Ultrix, if the X
27668 # libraries were built with DECnet support. And Karl Berry says
27669 # the Alpha needs dnet_stub (dnet does not exist).
27670 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027672/* end confdefs.h. */
27673
27674/* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27677#ifdef __cplusplus
27678extern "C"
27679#endif
27680char XOpenDisplay ();
27681int
27682main ()
27683{
27684return XOpenDisplay ();
27685 ;
27686 return 0;
27687}
27688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027690
cristy8b350f62009-11-15 23:12:43 +000027691else
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027694if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027695 $as_echo_n "(cached) " >&6
27696else
27697 ac_check_lib_save_LIBS=$LIBS
27698LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027700/* end confdefs.h. */
27701
27702/* Override any GCC internal prototype to avoid an error.
27703 Use char because int might match the return type of a GCC
27704 builtin and then its argument prototype would still apply. */
27705#ifdef __cplusplus
27706extern "C"
27707#endif
27708char dnet_ntoa ();
27709int
27710main ()
27711{
27712return dnet_ntoa ();
27713 ;
27714 return 0;
27715}
27716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027718 ac_cv_lib_dnet_dnet_ntoa=yes
27719else
cristy8b350f62009-11-15 23:12:43 +000027720 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027721fi
cristy8b350f62009-11-15 23:12:43 +000027722rm -f core conftest.err conftest.$ac_objext \
27723 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027724LIBS=$ac_check_lib_save_LIBS
27725fi
cristy8b350f62009-11-15 23:12:43 +000027726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27730fi
27731
27732 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027735if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 $as_echo_n "(cached) " >&6
27737else
27738 ac_check_lib_save_LIBS=$LIBS
27739LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027741/* end confdefs.h. */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char dnet_ntoa ();
27750int
27751main ()
27752{
27753return dnet_ntoa ();
27754 ;
27755 return 0;
27756}
27757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27760else
cristy8b350f62009-11-15 23:12:43 +000027761 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027762fi
cristy8b350f62009-11-15 23:12:43 +000027763rm -f core conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765LIBS=$ac_check_lib_save_LIBS
27766fi
cristy8b350f62009-11-15 23:12:43 +000027767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027769if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27771fi
27772
27773 fi
27774fi
cristy8b350f62009-11-15 23:12:43 +000027775rm -f core conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027777 LIBS="$ac_xsave_LIBS"
27778
27779 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27780 # to get the SysV transport functions.
27781 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27782 # needs -lnsl.
27783 # The nsl library prevents programs from opening the X display
27784 # on Irix 5.2, according to T.E. Dickey.
27785 # The functions gethostbyname, getservbyname, and inet_addr are
27786 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027787 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027788if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027789
cristy3ed852e2009-09-05 21:47:34 +000027790fi
27791
cristy3ed852e2009-09-05 21:47:34 +000027792 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027794$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027795if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 $as_echo_n "(cached) " >&6
27797else
27798 ac_check_lib_save_LIBS=$LIBS
27799LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027801/* end confdefs.h. */
27802
27803/* Override any GCC internal prototype to avoid an error.
27804 Use char because int might match the return type of a GCC
27805 builtin and then its argument prototype would still apply. */
27806#ifdef __cplusplus
27807extern "C"
27808#endif
27809char gethostbyname ();
27810int
27811main ()
27812{
27813return gethostbyname ();
27814 ;
27815 return 0;
27816}
27817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 ac_cv_lib_nsl_gethostbyname=yes
27820else
cristy8b350f62009-11-15 23:12:43 +000027821 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027822fi
cristy8b350f62009-11-15 23:12:43 +000027823rm -f core conftest.err conftest.$ac_objext \
27824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027825LIBS=$ac_check_lib_save_LIBS
27826fi
cristy8b350f62009-11-15 23:12:43 +000027827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027828$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027829if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27831fi
27832
27833 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027836if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027837 $as_echo_n "(cached) " >&6
27838else
27839 ac_check_lib_save_LIBS=$LIBS
27840LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842/* end confdefs.h. */
27843
27844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27847#ifdef __cplusplus
27848extern "C"
27849#endif
27850char gethostbyname ();
27851int
27852main ()
27853{
27854return gethostbyname ();
27855 ;
27856 return 0;
27857}
27858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027859if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 ac_cv_lib_bsd_gethostbyname=yes
27861else
cristy8b350f62009-11-15 23:12:43 +000027862 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027863fi
cristy8b350f62009-11-15 23:12:43 +000027864rm -f core conftest.err conftest.$ac_objext \
27865 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027866LIBS=$ac_check_lib_save_LIBS
27867fi
cristy8b350f62009-11-15 23:12:43 +000027868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027869$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027870if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27872fi
27873
27874 fi
27875 fi
27876
27877 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27878 # socket/setsockopt and other routines are undefined under SCO ODT
27879 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27880 # on later versions), says Simon Leinen: it contains gethostby*
27881 # variants that don't use the name server (or something). -lsocket
27882 # must be given before -lnsl if both are needed. We assume that
27883 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027884 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027885if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027886
cristy3ed852e2009-09-05 21:47:34 +000027887fi
27888
cristy3ed852e2009-09-05 21:47:34 +000027889 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027891$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027892if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027893 $as_echo_n "(cached) " >&6
27894else
27895 ac_check_lib_save_LIBS=$LIBS
27896LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027898/* end confdefs.h. */
27899
27900/* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27903#ifdef __cplusplus
27904extern "C"
27905#endif
27906char connect ();
27907int
27908main ()
27909{
27910return connect ();
27911 ;
27912 return 0;
27913}
27914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 ac_cv_lib_socket_connect=yes
27917else
cristy8b350f62009-11-15 23:12:43 +000027918 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027919fi
cristy8b350f62009-11-15 23:12:43 +000027920rm -f core conftest.err conftest.$ac_objext \
27921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922LIBS=$ac_check_lib_save_LIBS
27923fi
cristy8b350f62009-11-15 23:12:43 +000027924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27928fi
27929
27930 fi
27931
27932 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027933 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027934if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027935
cristy3ed852e2009-09-05 21:47:34 +000027936fi
27937
cristy3ed852e2009-09-05 21:47:34 +000027938 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 $as_echo_n "(cached) " >&6
27943else
27944 ac_check_lib_save_LIBS=$LIBS
27945LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027947/* end confdefs.h. */
27948
27949/* Override any GCC internal prototype to avoid an error.
27950 Use char because int might match the return type of a GCC
27951 builtin and then its argument prototype would still apply. */
27952#ifdef __cplusplus
27953extern "C"
27954#endif
27955char remove ();
27956int
27957main ()
27958{
27959return remove ();
27960 ;
27961 return 0;
27962}
27963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 ac_cv_lib_posix_remove=yes
27966else
cristy8b350f62009-11-15 23:12:43 +000027967 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027968fi
cristy8b350f62009-11-15 23:12:43 +000027969rm -f core conftest.err conftest.$ac_objext \
27970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027971LIBS=$ac_check_lib_save_LIBS
27972fi
cristy8b350f62009-11-15 23:12:43 +000027973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27977fi
27978
27979 fi
27980
27981 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027982 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027983if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027984
cristy3ed852e2009-09-05 21:47:34 +000027985fi
27986
cristy3ed852e2009-09-05 21:47:34 +000027987 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027990if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 $as_echo_n "(cached) " >&6
27992else
27993 ac_check_lib_save_LIBS=$LIBS
27994LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996/* end confdefs.h. */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999 Use char because int might match the return type of a GCC
28000 builtin and then its argument prototype would still apply. */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004char shmat ();
28005int
28006main ()
28007{
28008return shmat ();
28009 ;
28010 return 0;
28011}
28012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 ac_cv_lib_ipc_shmat=yes
28015else
cristy8b350f62009-11-15 23:12:43 +000028016 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028017fi
cristy8b350f62009-11-15 23:12:43 +000028018rm -f core conftest.err conftest.$ac_objext \
28019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028020LIBS=$ac_check_lib_save_LIBS
28021fi
cristy8b350f62009-11-15 23:12:43 +000028022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028024if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28026fi
28027
28028 fi
28029 fi
28030
28031 # Check for libraries that X11R6 Xt/Xaw programs need.
28032 ac_save_LDFLAGS=$LDFLAGS
28033 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28034 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28035 # check for ICE first), but we must link in the order -lSM -lICE or
28036 # we get undefined symbols. So assume we have SM if we have ICE.
28037 # These have to be linked with before -lX11, unlike the other
28038 # libraries we check for below, so use a different variable.
28039 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028041$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028042if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028043 $as_echo_n "(cached) " >&6
28044else
28045 ac_check_lib_save_LIBS=$LIBS
28046LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028048/* end confdefs.h. */
28049
28050/* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28053#ifdef __cplusplus
28054extern "C"
28055#endif
28056char IceConnectionNumber ();
28057int
28058main ()
28059{
28060return IceConnectionNumber ();
28061 ;
28062 return 0;
28063}
28064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 ac_cv_lib_ICE_IceConnectionNumber=yes
28067else
cristy8b350f62009-11-15 23:12:43 +000028068 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028069fi
cristy8b350f62009-11-15 23:12:43 +000028070rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028072LIBS=$ac_check_lib_save_LIBS
28073fi
cristy8b350f62009-11-15 23:12:43 +000028074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28078fi
28079
28080 LDFLAGS=$ac_save_LDFLAGS
28081
28082fi
28083
28084if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028085 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28086$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028088$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28090$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028091 LDFLAGS="$LDFLAGS $X_LIBS"
28092 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28093 LIBS="$X11_LIBS $LIBS"
28094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28095
28096
cristy8b350f62009-11-15 23:12:43 +000028097$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028098
28099 #
28100 # Check for X11 shared memory extension
28101 #
28102 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028103 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028104if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 have_shmctl='yes'
28106fi
28107
28108 if test "$have_shmctl" != 'yes'; then
28109 PERSIST_LIBS=$LIBS
28110 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028112/* end confdefs.h. */
28113
28114/* Override any GCC internal prototype to avoid an error.
28115 Use char because int might match the return type of a GCC
28116 builtin and then its argument prototype would still apply. */
28117#ifdef __cplusplus
28118extern "C"
28119#endif
28120char shmctl ();
28121int
28122main ()
28123{
28124return shmctl ();
28125 ;
28126 return 0;
28127}
28128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028131fi
cristy8b350f62009-11-15 23:12:43 +000028132rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134 LIBS=$PERSIST_LIBS
28135 fi
28136
28137 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028139$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028140if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 $as_echo_n "(cached) " >&6
28142else
28143 ac_check_lib_save_LIBS=$LIBS
28144LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028146/* end confdefs.h. */
28147
28148/* Override any GCC internal prototype to avoid an error.
28149 Use char because int might match the return type of a GCC
28150 builtin and then its argument prototype would still apply. */
28151#ifdef __cplusplus
28152extern "C"
28153#endif
28154char XShmAttach ();
28155int
28156main ()
28157{
28158return XShmAttach ();
28159 ;
28160 return 0;
28161}
28162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 ac_cv_lib_Xext_XShmAttach=yes
28165else
cristy8b350f62009-11-15 23:12:43 +000028166 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028167fi
cristy8b350f62009-11-15 23:12:43 +000028168rm -f core conftest.err conftest.$ac_objext \
28169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028170LIBS=$ac_check_lib_save_LIBS
28171fi
cristy8b350f62009-11-15 23:12:43 +000028172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028176$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028177
28178fi
28179
28180 fi
28181
28182 #
28183 # Check for X11 shape extension
28184 #
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028187if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 $as_echo_n "(cached) " >&6
28189else
28190 ac_check_lib_save_LIBS=$LIBS
28191LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028193/* end confdefs.h. */
28194
28195/* Override any GCC internal prototype to avoid an error.
28196 Use char because int might match the return type of a GCC
28197 builtin and then its argument prototype would still apply. */
28198#ifdef __cplusplus
28199extern "C"
28200#endif
28201char XShapeCombineMask ();
28202int
28203main ()
28204{
28205return XShapeCombineMask ();
28206 ;
28207 return 0;
28208}
28209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 ac_cv_lib_Xext_XShapeCombineMask=yes
28212else
cristy8b350f62009-11-15 23:12:43 +000028213 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028214fi
cristy8b350f62009-11-15 23:12:43 +000028215rm -f core conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028217LIBS=$ac_check_lib_save_LIBS
28218fi
cristy8b350f62009-11-15 23:12:43 +000028219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028221if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028223$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028224
28225fi
28226
cristy8b350f62009-11-15 23:12:43 +000028227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028229if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028230 $as_echo_n "(cached) " >&6
28231else
28232 ac_check_lib_save_LIBS=$LIBS
28233LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028235/* end confdefs.h. */
28236
28237/* Override any GCC internal prototype to avoid an error.
28238 Use char because int might match the return type of a GCC
28239 builtin and then its argument prototype would still apply. */
28240#ifdef __cplusplus
28241extern "C"
28242#endif
28243char XtSetEventDispatcher ();
28244int
28245main ()
28246{
28247return XtSetEventDispatcher ();
28248 ;
28249 return 0;
28250}
28251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028252if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028253 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28254else
cristy8b350f62009-11-15 23:12:43 +000028255 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028256fi
cristy8b350f62009-11-15 23:12:43 +000028257rm -f core conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028259LIBS=$ac_check_lib_save_LIBS
28260fi
cristy8b350f62009-11-15 23:12:43 +000028261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028263if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 XT_LIBS='-lXt'
28265fi
28266
28267 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28268fi
28269if test "$no_x" != 'yes'; then
28270 have_x='yes'
28271else
28272 have_x='no'
28273fi
cristy73bd4a52010-10-05 11:24:23 +000028274 if test "$have_x" = 'yes'; then
28275 X11_DELEGATE_TRUE=
28276 X11_DELEGATE_FALSE='#'
28277else
28278 X11_DELEGATE_TRUE='#'
28279 X11_DELEGATE_FALSE=
28280fi
28281
cristy3ed852e2009-09-05 21:47:34 +000028282
28283
28284
28285
28286#
28287# Check for ZLIB
28288#
28289
28290# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028291if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028292 withval=$with_zlib; with_zlib=$withval
28293else
28294 with_zlib='yes'
28295fi
28296
28297
28298if test "$with_zlib" != 'yes'; then
28299 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28300fi
28301
28302have_zlib='no'
28303ZLIB_LIBS=''
28304if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28306$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28310$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028311 ZLIB_LIBS=''
28312 failed=0
28313 passed=0
cristy8b350f62009-11-15 23:12:43 +000028314 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028315if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 passed=`expr $passed + 1`
28317else
28318 failed=`expr $failed + 1`
28319fi
28320
28321
cristy8b350f62009-11-15 23:12:43 +000028322 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028323if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 passed=`expr $passed + 1`
28325else
28326 failed=`expr $failed + 1`
28327fi
28328
28329
cristy8b350f62009-11-15 23:12:43 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028332if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 $as_echo_n "(cached) " >&6
28334else
28335 ac_check_lib_save_LIBS=$LIBS
28336LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338/* end confdefs.h. */
28339
28340/* Override any GCC internal prototype to avoid an error.
28341 Use char because int might match the return type of a GCC
28342 builtin and then its argument prototype would still apply. */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346char compress ();
28347int
28348main ()
28349{
28350return compress ();
28351 ;
28352 return 0;
28353}
28354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 ac_cv_lib_z_compress=yes
28357else
cristy8b350f62009-11-15 23:12:43 +000028358 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028359fi
cristy8b350f62009-11-15 23:12:43 +000028360rm -f core conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028362LIBS=$ac_check_lib_save_LIBS
28363fi
cristy8b350f62009-11-15 23:12:43 +000028364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028366if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 passed=`expr $passed + 1`
28368else
28369 failed=`expr $failed + 1`
28370fi
28371
cristy8b350f62009-11-15 23:12:43 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028374if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 $as_echo_n "(cached) " >&6
28376else
28377 ac_check_lib_save_LIBS=$LIBS
28378LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028380/* end confdefs.h. */
28381
28382/* Override any GCC internal prototype to avoid an error.
28383 Use char because int might match the return type of a GCC
28384 builtin and then its argument prototype would still apply. */
28385#ifdef __cplusplus
28386extern "C"
28387#endif
28388char uncompress ();
28389int
28390main ()
28391{
28392return uncompress ();
28393 ;
28394 return 0;
28395}
28396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028398 ac_cv_lib_z_uncompress=yes
28399else
cristy8b350f62009-11-15 23:12:43 +000028400 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028401fi
cristy8b350f62009-11-15 23:12:43 +000028402rm -f core conftest.err conftest.$ac_objext \
28403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028404LIBS=$ac_check_lib_save_LIBS
28405fi
cristy8b350f62009-11-15 23:12:43 +000028406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028407$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028408if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 passed=`expr $passed + 1`
28410else
28411 failed=`expr $failed + 1`
28412fi
28413
cristy8b350f62009-11-15 23:12:43 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028416if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028417 $as_echo_n "(cached) " >&6
28418else
28419 ac_check_lib_save_LIBS=$LIBS
28420LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028422/* end confdefs.h. */
28423
28424/* Override any GCC internal prototype to avoid an error.
28425 Use char because int might match the return type of a GCC
28426 builtin and then its argument prototype would still apply. */
28427#ifdef __cplusplus
28428extern "C"
28429#endif
28430char deflate ();
28431int
28432main ()
28433{
28434return deflate ();
28435 ;
28436 return 0;
28437}
28438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028440 ac_cv_lib_z_deflate=yes
28441else
cristy8b350f62009-11-15 23:12:43 +000028442 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028443fi
cristy8b350f62009-11-15 23:12:43 +000028444rm -f core conftest.err conftest.$ac_objext \
28445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028446LIBS=$ac_check_lib_save_LIBS
28447fi
cristy8b350f62009-11-15 23:12:43 +000028448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028450if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 passed=`expr $passed + 1`
28452else
28453 failed=`expr $failed + 1`
28454fi
28455
cristy8b350f62009-11-15 23:12:43 +000028456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028457$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028458if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 $as_echo_n "(cached) " >&6
28460else
28461 ac_check_lib_save_LIBS=$LIBS
28462LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028464/* end confdefs.h. */
28465
28466/* Override any GCC internal prototype to avoid an error.
28467 Use char because int might match the return type of a GCC
28468 builtin and then its argument prototype would still apply. */
28469#ifdef __cplusplus
28470extern "C"
28471#endif
28472char inflate ();
28473int
28474main ()
28475{
28476return inflate ();
28477 ;
28478 return 0;
28479}
28480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028482 ac_cv_lib_z_inflate=yes
28483else
cristy8b350f62009-11-15 23:12:43 +000028484 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028485fi
cristy8b350f62009-11-15 23:12:43 +000028486rm -f core conftest.err conftest.$ac_objext \
28487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028488LIBS=$ac_check_lib_save_LIBS
28489fi
cristy8b350f62009-11-15 23:12:43 +000028490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028492if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 passed=`expr $passed + 1`
28494else
28495 failed=`expr $failed + 1`
28496fi
28497
cristy8b350f62009-11-15 23:12:43 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028499$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028500if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028501 $as_echo_n "(cached) " >&6
28502else
28503 ac_check_lib_save_LIBS=$LIBS
28504LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028506/* end confdefs.h. */
28507
28508/* Override any GCC internal prototype to avoid an error.
28509 Use char because int might match the return type of a GCC
28510 builtin and then its argument prototype would still apply. */
28511#ifdef __cplusplus
28512extern "C"
28513#endif
28514char gzseek ();
28515int
28516main ()
28517{
28518return gzseek ();
28519 ;
28520 return 0;
28521}
28522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028523if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028524 ac_cv_lib_z_gzseek=yes
28525else
cristy8b350f62009-11-15 23:12:43 +000028526 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028527fi
cristy8b350f62009-11-15 23:12:43 +000028528rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028530LIBS=$ac_check_lib_save_LIBS
28531fi
cristy8b350f62009-11-15 23:12:43 +000028532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028534if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 passed=`expr $passed + 1`
28536else
28537 failed=`expr $failed + 1`
28538fi
28539
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028542if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028543 $as_echo_n "(cached) " >&6
28544else
28545 ac_check_lib_save_LIBS=$LIBS
28546LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548/* end confdefs.h. */
28549
28550/* Override any GCC internal prototype to avoid an error.
28551 Use char because int might match the return type of a GCC
28552 builtin and then its argument prototype would still apply. */
28553#ifdef __cplusplus
28554extern "C"
28555#endif
28556char gztell ();
28557int
28558main ()
28559{
28560return gztell ();
28561 ;
28562 return 0;
28563}
28564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028566 ac_cv_lib_z_gztell=yes
28567else
cristy8b350f62009-11-15 23:12:43 +000028568 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028569fi
cristy8b350f62009-11-15 23:12:43 +000028570rm -f core conftest.err conftest.$ac_objext \
28571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028572LIBS=$ac_check_lib_save_LIBS
28573fi
cristy8b350f62009-11-15 23:12:43 +000028574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028576if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 passed=`expr $passed + 1`
28578else
28579 failed=`expr $failed + 1`
28580fi
28581
cristy8b350f62009-11-15 23:12:43 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo_n "checking if ZLIB package is complete... " >&6; }
28584 if test $passed -gt 0; then
28585 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028586 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28587$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028588 have_zlib='no (failed tests)'
28589 else
28590 ZLIB_LIBS='-lz'
28591 LIBS="$ZLIB_LIBS $LIBS"
28592
cristy8b350f62009-11-15 23:12:43 +000028593$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028594
cristy09b53e12011-10-14 12:47:22 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28596$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028597 have_zlib='yes'
28598 fi
28599 else
cristy09b53e12011-10-14 12:47:22 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28601$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028602 fi
28603fi
cristy73bd4a52010-10-05 11:24:23 +000028604 if test "$have_zlib" = 'yes'; then
28605 ZLIB_DELEGATE_TRUE=
28606 ZLIB_DELEGATE_FALSE='#'
28607else
28608 ZLIB_DELEGATE_TRUE='#'
28609 ZLIB_DELEGATE_FALSE=
28610fi
28611
cristy3ed852e2009-09-05 21:47:34 +000028612
28613
28614#
28615# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28616#
28617LIB_DL=''
28618if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028621if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 $as_echo_n "(cached) " >&6
28623else
28624 ac_check_lib_save_LIBS=$LIBS
28625LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028627/* end confdefs.h. */
28628
28629/* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
28632#ifdef __cplusplus
28633extern "C"
28634#endif
28635char dlopen ();
28636int
28637main ()
28638{
28639return dlopen ();
28640 ;
28641 return 0;
28642}
28643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028645 ac_cv_lib_dl_dlopen=yes
28646else
cristy8b350f62009-11-15 23:12:43 +000028647 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028648fi
cristy8b350f62009-11-15 23:12:43 +000028649rm -f core conftest.err conftest.$ac_objext \
28650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028651LIBS=$ac_check_lib_save_LIBS
28652fi
cristy8b350f62009-11-15 23:12:43 +000028653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028655if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028656 LIB_DL='-ldl'
28657fi
28658
28659 LIBS="$LIB_DL $LIBS"
28660fi
28661
28662
28663
28664#
28665# Check for Autotrace delegate library.
28666#
28667
28668# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028669if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028670 withval=$with_autotrace; with_autotrace=$withval
28671else
28672 with_autotrace='no'
28673fi
28674
28675
28676if test "$with_autotrace" != 'yes'; then
28677 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28678fi
28679
28680have_autotrace='no'
28681AUTOTRACE_CFLAGS=""
28682AUTOTRACE_LIBS=""
28683AUTOTRACE_PKG=""
28684if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28686$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028687
28688pkg_failed=no
28689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28690$as_echo_n "checking for AUTOTRACE... " >&6; }
28691
28692if test -n "$AUTOTRACE_CFLAGS"; then
28693 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28694 elif test -n "$PKG_CONFIG"; then
28695 if test -n "$PKG_CONFIG" && \
28696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28697 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28698 ac_status=$?
28699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28700 test $ac_status = 0; }; then
28701 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28702else
28703 pkg_failed=yes
28704fi
28705 else
28706 pkg_failed=untried
28707fi
28708if test -n "$AUTOTRACE_LIBS"; then
28709 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28710 elif test -n "$PKG_CONFIG"; then
28711 if test -n "$PKG_CONFIG" && \
28712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28713 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28714 ac_status=$?
28715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28716 test $ac_status = 0; }; then
28717 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28718else
28719 pkg_failed=yes
28720fi
28721 else
28722 pkg_failed=untried
28723fi
28724
28725
28726
28727if test $pkg_failed = yes; then
28728
28729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28730 _pkg_short_errors_supported=yes
28731else
28732 _pkg_short_errors_supported=no
28733fi
28734 if test $_pkg_short_errors_supported = yes; then
28735 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28736 else
28737 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28738 fi
28739 # Put the nasty error message in config.log where it belongs
28740 echo "$AUTOTRACE_PKG_ERRORS" >&5
28741
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28743$as_echo "no" >&6; }
28744 have_autotrace=no
28745elif test $pkg_failed = untried; then
28746 have_autotrace=no
28747else
28748 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28749 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751$as_echo "yes" >&6; }
28752 have_autotrace=yes
28753fi
cristy09b53e12011-10-14 12:47:22 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28755$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028756fi
28757
28758if test "$have_autotrace" = 'yes'; then
28759 failed=0
28760
cristy8b350f62009-11-15 23:12:43 +000028761$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028762
28763 if test "$with_modules" = 'no'; then
28764 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28765 fi
28766fi
28767
cristy73bd4a52010-10-05 11:24:23 +000028768 if test "$have_autotrace" = 'yes'; then
28769 AUTOTRACE_DELEGATE_TRUE=
28770 AUTOTRACE_DELEGATE_FALSE='#'
28771else
28772 AUTOTRACE_DELEGATE_TRUE='#'
28773 AUTOTRACE_DELEGATE_FALSE=
28774fi
28775
cristy3ed852e2009-09-05 21:47:34 +000028776
28777
28778
28779
28780#
28781# Check for Display Postscript delegate library.
28782#
28783
28784# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028785if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 withval=$with_dps; with_dps=$withval
28787else
28788 with_dps='yes'
28789fi
28790
28791
28792if test "$with_dps" != 'yes'; then
28793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28794fi
28795
28796have_dps='no'
28797DPS_LIBS=''
28798if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28800$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028802$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28804$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028805 failed=0
28806 passed=0
28807 PERSIST_CPPFLAGS="$CPPFLAGS"
28808 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028809 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 +000028810if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028811 passed=`expr $passed + 1`
28812else
28813 failed=`expr $failed + 1`
28814fi
28815
28816
28817 # DPS issues:
28818 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28819 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28820 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28821 # ImageMagick itself doesn't use -lXt.
28822 have_libdps='no'
28823 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028825$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028826if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028827 $as_echo_n "(cached) " >&6
28828else
28829 ac_check_lib_save_LIBS=$LIBS
28830LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028832/* end confdefs.h. */
28833
28834/* Override any GCC internal prototype to avoid an error.
28835 Use char because int might match the return type of a GCC
28836 builtin and then its argument prototype would still apply. */
28837#ifdef __cplusplus
28838extern "C"
28839#endif
28840char DPSInitialize ();
28841int
28842main ()
28843{
28844return DPSInitialize ();
28845 ;
28846 return 0;
28847}
28848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 ac_cv_lib_dps_DPSInitialize=yes
28851else
cristy8b350f62009-11-15 23:12:43 +000028852 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028853fi
cristy8b350f62009-11-15 23:12:43 +000028854rm -f core conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028856LIBS=$ac_check_lib_save_LIBS
28857fi
cristy8b350f62009-11-15 23:12:43 +000028858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028860if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 have_libdps='yes'
28862else
28863 have_libdps='no'
28864fi
28865
28866 if test "$have_libdps" != 'yes'; then
28867 # Unset cache variable so we can try again.
28868 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028870$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028871if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 $as_echo_n "(cached) " >&6
28873else
28874 ac_check_lib_save_LIBS=$LIBS
28875LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028877/* end confdefs.h. */
28878
28879/* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28882#ifdef __cplusplus
28883extern "C"
28884#endif
28885char DPSInitialize ();
28886int
28887main ()
28888{
28889return DPSInitialize ();
28890 ;
28891 return 0;
28892}
28893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 ac_cv_lib_dps_DPSInitialize=yes
28896else
cristy8b350f62009-11-15 23:12:43 +000028897 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028898fi
cristy8b350f62009-11-15 23:12:43 +000028899rm -f core conftest.err conftest.$ac_objext \
28900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028901LIBS=$ac_check_lib_save_LIBS
28902fi
cristy8b350f62009-11-15 23:12:43 +000028903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028905if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 have_libdps='yes'
28907else
28908 have_libdps='no'
28909fi
28910
28911 if test "$have_libdps" = 'yes'; then
28912 LIBDPS_XT='-lXt'
28913 fi
28914 fi
28915 if test "$have_libdps" = 'yes'; then
28916 passed=`expr $passed + 1`
28917 else
28918 failed=`expr $failed + 1`
28919 fi
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028922if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028923 $as_echo_n "(cached) " >&6
28924else
28925 ac_check_lib_save_LIBS=$LIBS
28926LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928/* end confdefs.h. */
28929
28930/* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28933#ifdef __cplusplus
28934extern "C"
28935#endif
28936char XDPSPixelsPerPoint ();
28937int
28938main ()
28939{
28940return XDPSPixelsPerPoint ();
28941 ;
28942 return 0;
28943}
28944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28947else
cristy8b350f62009-11-15 23:12:43 +000028948 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028949fi
cristy8b350f62009-11-15 23:12:43 +000028950rm -f core conftest.err conftest.$ac_objext \
28951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028952LIBS=$ac_check_lib_save_LIBS
28953fi
cristy8b350f62009-11-15 23:12:43 +000028954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028956if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 passed=`expr $passed + 1`
28958else
28959 failed=`expr $failed + 1`
28960fi
28961
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo_n "checking if DPS package is complete... " >&6; }
28964 if test $passed -gt 0; then
28965 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28967$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028968 have_dps='no (failed tests)'
28969 CPPFLAGS="$PERSIST_CPPFLAGS"
28970 else
28971 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28972 LIBS="$DPS_LIBS $LIBS"
28973
cristy8b350f62009-11-15 23:12:43 +000028974$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028975
cristy09b53e12011-10-14 12:47:22 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28977$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028978 have_dps='yes'
28979 fi
28980 else
cristy09b53e12011-10-14 12:47:22 +000028981 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28982$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028983 CPPFLAGS=$PERSIST_CPPFLAGS
28984 fi
28985fi
cristy73bd4a52010-10-05 11:24:23 +000028986 if test "$have_dps" = 'yes'; then
28987 DPS_DELEGATE_TRUE=
28988 DPS_DELEGATE_FALSE='#'
28989else
28990 DPS_DELEGATE_TRUE='#'
28991 DPS_DELEGATE_FALSE=
28992fi
28993
cristy3ed852e2009-09-05 21:47:34 +000028994
28995
28996
28997#
28998# Check for DJVU delegate library.
28999#
29000
29001# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029002if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029003 withval=$with_djvu; with_djvu=$withval
29004else
29005 with_djvu='yes'
29006fi
29007
29008
29009if test "$with_djvu" != 'yes'; then
29010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29011fi
29012
29013have_djvu='no'
29014DJVU_LIBS=''
29015if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29017$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29021$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029022 failed=0
29023 passed=0
cristy8b350f62009-11-15 23:12:43 +000029024 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 +000029025if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029026 passed=`expr $passed + 1`
29027else
29028 failed=`expr $failed + 1`
29029fi
29030
29031
cristy8b350f62009-11-15 23:12:43 +000029032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029033$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029034if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029035 $as_echo_n "(cached) " >&6
29036else
29037 ac_check_lib_save_LIBS=$LIBS
29038LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029040/* end confdefs.h. */
29041
29042/* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29045#ifdef __cplusplus
29046extern "C"
29047#endif
29048char ddjvu_context_create ();
29049int
29050main ()
29051{
29052return ddjvu_context_create ();
29053 ;
29054 return 0;
29055}
29056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029058 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29059else
cristy8b350f62009-11-15 23:12:43 +000029060 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029061fi
cristy8b350f62009-11-15 23:12:43 +000029062rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029064LIBS=$ac_check_lib_save_LIBS
29065fi
cristy8b350f62009-11-15 23:12:43 +000029066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029068if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029069 passed=`expr $passed + 1`
29070else
29071 failed=`expr $failed + 1`
29072fi
29073
cristy8b350f62009-11-15 23:12:43 +000029074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029075$as_echo_n "checking if DJVU package is complete... " >&6; }
29076 if test $passed -gt 0; then
29077 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029078 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29079$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029080 have_djvu='no (failed tests)'
29081 else
29082 DJVU_LIBS='-ldjvulibre'
29083 LIBS="$DJVU_LIBS $LIBS"
29084
cristy8b350f62009-11-15 23:12:43 +000029085$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029086
cristy09b53e12011-10-14 12:47:22 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29088$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029089 have_djvu='yes'
29090 fi
29091 else
cristy09b53e12011-10-14 12:47:22 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29093$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029094 fi
29095fi
cristy73bd4a52010-10-05 11:24:23 +000029096 if test "$have_djvu" = 'yes'; then
29097 DJVU_DELEGATE_TRUE=
29098 DJVU_DELEGATE_FALSE='#'
29099else
29100 DJVU_DELEGATE_TRUE='#'
29101 DJVU_DELEGATE_FALSE=
29102fi
29103
cristy3ed852e2009-09-05 21:47:34 +000029104
29105
29106
29107#
cristy430a7312010-01-21 20:44:04 +000029108# Set DejaVu font directory.
29109#
29110
29111# Check whether --with-dejavu-font-dir was given.
29112if test "${with_dejavu_font_dir+set}" = set; then :
29113 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29114else
29115 with_dejavu_font_dir='default'
29116fi
29117
29118
29119if test "$with_dejavu_font_dir" != 'default'; then
29120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29121fi
29122
29123
29124#
cristy3ed852e2009-09-05 21:47:34 +000029125# Check for FFTW delegate library.
29126#
29127
29128# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029129if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029130 withval=$with_fftw; with_fftw=$withval
29131else
29132 with_fftw='yes'
29133fi
29134
29135
29136if test "$with_fftw" != 'yes'; then
29137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29138fi
29139
cristy81beccd2011-10-03 18:17:24 +000029140have_fftw='no'
29141FFTW_LIBS=''
29142if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29144$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29146$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29148$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029149 failed=0
29150 passed=0
29151 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29152if test "x$ac_cv_header_fftw3_h" = xyes; then :
29153 passed=`expr $passed + 1`
29154else
29155 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029156fi
29157
cristy81beccd2011-10-03 18:17:24 +000029158
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29160$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29161if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29162 $as_echo_n "(cached) " >&6
29163else
29164 ac_check_lib_save_LIBS=$LIBS
29165LIBS="-lfftw3 $LIBS"
29166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29167/* end confdefs.h. */
29168
29169/* Override any GCC internal prototype to avoid an error.
29170 Use char because int might match the return type of a GCC
29171 builtin and then its argument prototype would still apply. */
29172#ifdef __cplusplus
29173extern "C"
29174#endif
29175char fftw_execute ();
29176int
29177main ()
29178{
29179return fftw_execute ();
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184if ac_fn_c_try_link "$LINENO"; then :
29185 ac_cv_lib_fftw3_fftw_execute=yes
29186else
29187 ac_cv_lib_fftw3_fftw_execute=no
29188fi
29189rm -f core conftest.err conftest.$ac_objext \
29190 conftest$ac_exeext conftest.$ac_ext
29191LIBS=$ac_check_lib_save_LIBS
29192fi
29193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29194$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29195if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29196 passed=`expr $passed + 1`
29197else
29198 failed=`expr $failed + 1`
29199fi
29200
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29202$as_echo_n "checking if FFTW package is complete... " >&6; }
29203 if test $passed -gt 0; then
29204 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29206$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029207 have_fftw='no (failed tests)'
29208 else
29209 FFTW_LIBS='-lfftw3'
29210 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029211
cristy8b350f62009-11-15 23:12:43 +000029212$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029213
cristy09b53e12011-10-14 12:47:22 +000029214 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29215$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029216 have_fftw='yes'
29217 fi
29218 else
cristy09b53e12011-10-14 12:47:22 +000029219 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29220$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029221 fi
29222fi
cristy73bd4a52010-10-05 11:24:23 +000029223 if test "$have_fftw" = 'yes'; then
29224 FFTW_DELEGATE_TRUE=
29225 FFTW_DELEGATE_FALSE='#'
29226else
29227 FFTW_DELEGATE_TRUE='#'
29228 FFTW_DELEGATE_FALSE=
29229fi
29230
cristy3ed852e2009-09-05 21:47:34 +000029231
29232
29233
29234#
29235# Check for FlashPIX delegate library.
29236#
29237
29238# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029239if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 withval=$with_fpx; with_fpx=$withval
29241else
29242 with_fpx='yes'
29243fi
29244
29245
29246if test "$with_fpx" != 'yes'; then
29247 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29248fi
29249
29250have_fpx='no'
29251FPX_LIBS=''
29252if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29254$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029256$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029257 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29258$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029259 failed=0
29260 passed=0
29261 ac_ext=cpp
29262ac_cpp='$CXXCPP $CPPFLAGS'
29263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29266
29267
cristy8b350f62009-11-15 23:12:43 +000029268ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029269if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
29275
cristy8b350f62009-11-15 23:12:43 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029277$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029278if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029279 $as_echo_n "(cached) " >&6
29280else
29281 ac_check_lib_save_LIBS=$LIBS
29282LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029284/* end confdefs.h. */
29285
29286/* Override any GCC internal prototype to avoid an error.
29287 Use char because int might match the return type of a GCC
29288 builtin and then its argument prototype would still apply. */
29289#ifdef __cplusplus
29290extern "C"
29291#endif
29292char FPX_OpenImageByFilename ();
29293int
29294main ()
29295{
29296return FPX_OpenImageByFilename ();
29297 ;
29298 return 0;
29299}
29300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029301if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029302 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29303else
cristy8b350f62009-11-15 23:12:43 +000029304 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029305fi
cristy8b350f62009-11-15 23:12:43 +000029306rm -f core conftest.err conftest.$ac_objext \
29307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029308LIBS=$ac_check_lib_save_LIBS
29309fi
cristy8b350f62009-11-15 23:12:43 +000029310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029311$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029312if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029313 passed=`expr $passed + 1`
29314else
29315 failed=`expr $failed + 1`
29316fi
29317
29318 ac_ext=c
29319ac_cpp='$CPP $CPPFLAGS'
29320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29322ac_compiler_gnu=$ac_cv_c_compiler_gnu
29323
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29326 if test $passed -gt 0; then
29327 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029328 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29329$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029330 have_fpx='no (failed tests)'
29331 else
29332 FPX_LIBS='-lfpx'
29333
cristy8b350f62009-11-15 23:12:43 +000029334$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029335
cristy09b53e12011-10-14 12:47:22 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29337$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029338 have_fpx='yes'
29339 PERLMAINCC="$CXX"
29340 fi
29341 else
cristy09b53e12011-10-14 12:47:22 +000029342 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29343$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029344 fi
29345fi
cristy73bd4a52010-10-05 11:24:23 +000029346 if test "$have_fpx" = 'yes'; then
29347 FPX_DELEGATE_TRUE=
29348 FPX_DELEGATE_FALSE='#'
29349else
29350 FPX_DELEGATE_TRUE='#'
29351 FPX_DELEGATE_FALSE=
29352fi
29353
cristy3ed852e2009-09-05 21:47:34 +000029354
29355
29356
29357#
29358# Check for fontconfig delegate library.
29359#
29360
29361# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029362if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 withval=$with_fontconfig; with_fontconfig=$withval
29364else
cristyfc3d0222012-02-07 15:05:57 +000029365 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029366fi
29367
29368
29369if test "$with_fontconfig" != 'yes'; then
29370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29371fi
29372
29373have_fontconfig='no'
29374FONTCONFIG_CFLAGS=""
29375FONTCONFIG_LIBS=""
29376FONTCONFIG_PKG=""
29377if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029378 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29379$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029380
29381pkg_failed=no
29382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29383$as_echo_n "checking for FONTCONFIG... " >&6; }
29384
29385if test -n "$FONTCONFIG_CFLAGS"; then
29386 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29387 elif test -n "$PKG_CONFIG"; then
29388 if test -n "$PKG_CONFIG" && \
29389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29390 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29391 ac_status=$?
29392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29393 test $ac_status = 0; }; then
29394 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29395else
29396 pkg_failed=yes
29397fi
29398 else
29399 pkg_failed=untried
29400fi
29401if test -n "$FONTCONFIG_LIBS"; then
29402 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29403 elif test -n "$PKG_CONFIG"; then
29404 if test -n "$PKG_CONFIG" && \
29405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29406 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29407 ac_status=$?
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; then
29410 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29411else
29412 pkg_failed=yes
29413fi
29414 else
29415 pkg_failed=untried
29416fi
29417
29418
29419
29420if test $pkg_failed = yes; then
29421
29422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29423 _pkg_short_errors_supported=yes
29424else
29425 _pkg_short_errors_supported=no
29426fi
29427 if test $_pkg_short_errors_supported = yes; then
29428 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29429 else
29430 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29431 fi
29432 # Put the nasty error message in config.log where it belongs
29433 echo "$FONTCONFIG_PKG_ERRORS" >&5
29434
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29436$as_echo "no" >&6; }
29437 have_fontconfig=no
29438elif test $pkg_failed = untried; then
29439 have_fontconfig=no
29440else
29441 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29442 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29444$as_echo "yes" >&6; }
29445 have_fontconfig=yes
29446fi
cristy09b53e12011-10-14 12:47:22 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29448$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029449fi
29450
29451if test "$have_fontconfig" = 'yes'; then
29452
cristy8b350f62009-11-15 23:12:43 +000029453$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029454
cristyd09bcf92010-03-25 03:04:45 +000029455 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029456 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029457 fi
cristy3ed852e2009-09-05 21:47:34 +000029458fi
29459
cristy73bd4a52010-10-05 11:24:23 +000029460 if test "$have_fontconfig" = 'yes'; then
29461 FONTCONFIG_DELEGATE_TRUE=
29462 FONTCONFIG_DELEGATE_FALSE='#'
29463else
29464 FONTCONFIG_DELEGATE_TRUE='#'
29465 FONTCONFIG_DELEGATE_FALSE=
29466fi
29467
cristy3ed852e2009-09-05 21:47:34 +000029468
29469
29470
29471
29472#
cristy81beccd2011-10-03 18:17:24 +000029473# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029474#
29475
29476# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029477if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029478 withval=$with_freetype; with_freetype=$withval
29479else
29480 with_freetype='yes'
29481fi
29482
29483
cristy81beccd2011-10-03 18:17:24 +000029484
cristy3ed852e2009-09-05 21:47:34 +000029485if test "$with_freetype" != 'yes'; then
29486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29487fi
29488
cristy81beccd2011-10-03 18:17:24 +000029489have_freetype='no'
29490FREETYPE_LIBS=''
29491if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029492 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29493$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29495$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029496 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29497$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029498 failed=0
29499 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029500 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029501 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029502 freetype_config=''
29503 # Allow the user to specify the location of freetype.
29504 if test "$with_freetype" != 'yes'; then
29505 if test -x "${with_freetype}/bin/freetype-config"; then
29506 freetype_config="${with_freetype}/bin/freetype-config"
29507 elif test -x "${with_freetype}"; then
29508 freetype_config=${with_freetype}
29509 fi
29510 fi
29511 if test -z "$freetype_config"; then
29512 # Extract the first word of "freetype-config", so it can be a program name with args.
29513set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29515$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029516if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029517 $as_echo_n "(cached) " >&6
29518else
cristy98ca0f52011-10-08 23:19:10 +000029519 case $freetype_config in
29520 [\\/]* | ?:[\\/]*)
29521 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29522 ;;
29523 *)
29524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029525for as_dir in $PATH
29526do
29527 IFS=$as_save_IFS
29528 test -z "$as_dir" && as_dir=.
29529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029531 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29533 break 2
29534 fi
29535done
29536 done
29537IFS=$as_save_IFS
29538
cristy98ca0f52011-10-08 23:19:10 +000029539 ;;
29540esac
cristy81beccd2011-10-03 18:17:24 +000029541fi
cristy98ca0f52011-10-08 23:19:10 +000029542freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029543if test -n "$freetype_config"; then
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29545$as_echo "$freetype_config" >&6; }
29546else
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29548$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029549fi
29550
cristy98ca0f52011-10-08 23:19:10 +000029551 fi
29552 if test -n "$freetype_config"; then
29553 freetype_prefix=`${freetype_config} --prefix`
29554 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29555 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29556 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029557 fi
29558
29559 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029561$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29562if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29563 $as_echo_n "(cached) " >&6
29564else
29565 ac_check_lib_save_LIBS=$LIBS
29566LIBS="-lfreetype $LIBS"
29567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29568/* end confdefs.h. */
29569
29570/* Override any GCC internal prototype to avoid an error.
29571 Use char because int might match the return type of a GCC
29572 builtin and then its argument prototype would still apply. */
29573#ifdef __cplusplus
29574extern "C"
29575#endif
29576char FT_Init_FreeType ();
29577int
29578main ()
29579{
29580return FT_Init_FreeType ();
29581 ;
29582 return 0;
29583}
29584_ACEOF
29585if ac_fn_c_try_link "$LINENO"; then :
29586 ac_cv_lib_freetype_FT_Init_FreeType=yes
29587else
29588 ac_cv_lib_freetype_FT_Init_FreeType=no
29589fi
29590rm -f core conftest.err conftest.$ac_objext \
29591 conftest$ac_exeext conftest.$ac_ext
29592LIBS=$ac_check_lib_save_LIBS
29593fi
29594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29595$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29596if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29597 FREETYPE_LIBS='-lfreetype'
29598fi
29599
cristy98ca0f52011-10-08 23:19:10 +000029600 if test "$FREETYPE_LIBS" != ''; then
29601 passed=`expr $passed + 1`
29602 else
29603 failed=`expr $failed + 1`
29604 LDFLAGS="$PERSIST_LDFLAGS"
29605 fi
cristy81beccd2011-10-03 18:17:24 +000029606 fi
29607
29608 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29609if test "x$ac_cv_header_ft2build_h" = xyes; then :
29610 FT2BUILD_H='#include <ft2build.h>'
29611else
29612 ft2build=''
29613fi
29614
29615
29616 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29617"
29618if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29619 have_freetype_h='yes'
29620else
29621 have_freetype_h='no'
29622fi
29623
29624
cristy98ca0f52011-10-08 23:19:10 +000029625 if test "$have_freetype_h" = 'yes'; then
29626 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029627 else
cristy98ca0f52011-10-08 23:19:10 +000029628 failed=`expr $failed + 1`
29629 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029630 fi
29631
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29633$as_echo_n "checking if FreeType package is complete... " >&6; }
29634 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029635 if test $failed -gt 0; then
29636 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29638$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029639 have_freetype='no (failed tests)'
29640 else
29641 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029642
cristy8b350f62009-11-15 23:12:43 +000029643$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029644
cristy98ca0f52011-10-08 23:19:10 +000029645 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029646
29647$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29648
cristy81beccd2011-10-03 18:17:24 +000029649 fi
cristy09b53e12011-10-14 12:47:22 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29651$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029652 have_freetype='yes'
29653 fi
cristy81beccd2011-10-03 18:17:24 +000029654 else
cristy09b53e12011-10-14 12:47:22 +000029655 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29656$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029657 fi
29658fi
cristy73bd4a52010-10-05 11:24:23 +000029659 if test "$have_freetype" = 'yes'; then
29660 FREETYPE_DELEGATE_TRUE=
29661 FREETYPE_DELEGATE_FALSE='#'
29662else
29663 FREETYPE_DELEGATE_TRUE='#'
29664 FREETYPE_DELEGATE_FALSE=
29665fi
29666
cristy3ed852e2009-09-05 21:47:34 +000029667
29668
29669
cristy3ed852e2009-09-05 21:47:34 +000029670#
29671# Check for Ghostscript library or framework.
29672#
29673# Test for iapi.h & test for gsapi_new_instance in -lgs
29674# or -framework Ghostscript
29675
29676
29677# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029678if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029679 withval=$with_gslib; with_gslib=$withval
29680else
29681 with_gslib='no'
29682fi
29683
29684
cristyb7931f12009-09-25 10:22:21 +000029685gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029686if test "$with_gslib" != 'yes'; then
29687 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29688fi
29689
29690have_gslib='no'
29691GS_LIBS=''
29692if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029693 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29694$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29698$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029699 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029700 failed=0
29701 passed=0
cristy8b350f62009-11-15 23:12:43 +000029702 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 +000029703if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029704 passed=`expr $passed + 1`
29705else
29706 failed=`expr $failed + 1`
29707fi
29708
29709
cristy8b350f62009-11-15 23:12:43 +000029710 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 +000029711if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029712 passed=`expr $passed + 1`
29713else
29714 failed=`expr $failed + 1`
29715fi
29716
29717
cristy73bd4a52010-10-05 11:24:23 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29719$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029720if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029721 $as_echo_n "(cached) " >&6
29722else
29723 ac_check_framework_save_LIBS=$LIBS
29724LIBS="-framework Ghostscript $LIBS"
29725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29726/* end confdefs.h. */
29727
29728/* Override any GCC internal prototype to avoid an error.
29729 Use char because int might match the return type of a GCC
29730 builtin and then its argument prototype would still apply. */
29731#ifdef __cplusplus
29732extern "C"
29733#endif
29734char gsapi_new_instance ();
29735int
29736main ()
29737{
29738return gsapi_new_instance ();
29739 ;
29740 return 0;
29741}
29742_ACEOF
29743if ac_fn_c_try_link "$LINENO"; then :
29744 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29745else
29746 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29747fi
29748rm -f core conftest.err conftest.$ac_objext \
29749 conftest$ac_exeext conftest.$ac_ext
29750LIBS=$ac_check_framework_save_LIBS
29751fi
29752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29753$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29754if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29755 framework=`expr $framework + 1`
29756else
29757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029759if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029760 $as_echo_n "(cached) " >&6
29761else
29762 ac_check_lib_save_LIBS=$LIBS
29763LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029765/* end confdefs.h. */
29766
29767/* Override any GCC internal prototype to avoid an error.
29768 Use char because int might match the return type of a GCC
29769 builtin and then its argument prototype would still apply. */
29770#ifdef __cplusplus
29771extern "C"
29772#endif
29773char gsapi_new_instance ();
29774int
29775main ()
29776{
29777return gsapi_new_instance ();
29778 ;
29779 return 0;
29780}
29781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 ac_cv_lib_gs_gsapi_new_instance=yes
29784else
cristy8b350f62009-11-15 23:12:43 +000029785 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029786fi
cristy8b350f62009-11-15 23:12:43 +000029787rm -f core conftest.err conftest.$ac_objext \
29788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029789LIBS=$ac_check_lib_save_LIBS
29790fi
cristy8b350f62009-11-15 23:12:43 +000029791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029792$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029793if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029794 passed=`expr $passed + 1`
29795else
29796 failed=`expr $failed + 1`
29797fi
cristy73bd4a52010-10-05 11:24:23 +000029798
29799fi
cristy8b350f62009-11-15 23:12:43 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029801$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29802 if test $passed -gt 0; then
29803 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29805$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029806 have_gslib='no (failed tests)'
29807 else
29808 if test $framework -gt 0; then
29809 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029810 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29812$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029813 else
cristy09b53e12011-10-14 12:47:22 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29815$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029816 GS_LIBS='-lgs'
29817 fi
29818 LIBS="$GS_LIBS $LIBS"
29819
cristy8b350f62009-11-15 23:12:43 +000029820$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029821
29822 have_gslib='yes'
29823 fi
29824 else
cristy09b53e12011-10-14 12:47:22 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29826$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029827 fi
29828fi
cristy73bd4a52010-10-05 11:24:23 +000029829 if test "$have_gslib" = 'yes'; then
29830 GS_DELEGATE_TRUE=
29831 GS_DELEGATE_FALSE='#'
29832else
29833 GS_DELEGATE_TRUE='#'
29834 GS_DELEGATE_FALSE=
29835fi
29836
cristy3ed852e2009-09-05 21:47:34 +000029837
29838
29839# Set default font search path
29840
29841# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029842if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029843 withval=$with_fontpath; with_fontpath=$withval
29844else
29845 with_fontpath=''
29846fi
29847
29848
29849if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29850 with_fontpath=''
29851else
29852
29853cat >>confdefs.h <<_ACEOF
29854#define MAGICK_FONT_PATH "$with_fontpath"
29855_ACEOF
29856
29857fi
29858if test "$with_fontpath=" != ''; then
29859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29860fi
29861
29862# Set Ghostscript font directory
29863
29864# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029865if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29867else
29868 with_gs_font_dir='default'
29869fi
29870
29871
29872if test "$with_gs_font_dir" != 'default'; then
29873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29874fi
29875
29876
29877#
29878# Check for GVC delegate library.
29879#
29880
29881# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029882if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029883 withval=$with_gvc; with_gvc=$withval
29884else
cristy1b70dc82012-07-01 23:15:05 +000029885 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029886fi
29887
29888
29889if test "$with_gvc" != 'yes'; then
29890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29891fi
29892
29893GVC_PKG=""
29894if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29896$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029897
29898pkg_failed=no
29899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29900$as_echo_n "checking for GVC... " >&6; }
29901
29902if test -n "$GVC_CFLAGS"; then
29903 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29904 elif test -n "$PKG_CONFIG"; then
29905 if test -n "$PKG_CONFIG" && \
29906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29907 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29908 ac_status=$?
29909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29910 test $ac_status = 0; }; then
29911 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29912else
29913 pkg_failed=yes
29914fi
29915 else
29916 pkg_failed=untried
29917fi
29918if test -n "$GVC_LIBS"; then
29919 pkg_cv_GVC_LIBS="$GVC_LIBS"
29920 elif test -n "$PKG_CONFIG"; then
29921 if test -n "$PKG_CONFIG" && \
29922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29923 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29924 ac_status=$?
29925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29926 test $ac_status = 0; }; then
29927 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29928else
29929 pkg_failed=yes
29930fi
29931 else
29932 pkg_failed=untried
29933fi
29934
29935
29936
29937if test $pkg_failed = yes; then
29938
29939if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29940 _pkg_short_errors_supported=yes
29941else
29942 _pkg_short_errors_supported=no
29943fi
29944 if test $_pkg_short_errors_supported = yes; then
29945 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29946 else
29947 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29948 fi
29949 # Put the nasty error message in config.log where it belongs
29950 echo "$GVC_PKG_ERRORS" >&5
29951
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29953$as_echo "no" >&6; }
29954 have_gvc=no
29955elif test $pkg_failed = untried; then
29956 have_gvc=no
29957else
29958 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29959 GVC_LIBS=$pkg_cv_GVC_LIBS
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29961$as_echo "yes" >&6; }
29962 have_gvc=yes
29963fi
cristy09b53e12011-10-14 12:47:22 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29965$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029966fi
29967
29968if test "$have_gvc" = 'yes'; then
29969
cristy8b350f62009-11-15 23:12:43 +000029970$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029971
29972 if test "$with_modules" = 'no'; then
29973 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29974 fi
29975fi
29976
cristy73bd4a52010-10-05 11:24:23 +000029977 if test "$have_gvc" = 'yes'; then
29978 GVC_DELEGATE_TRUE=
29979 GVC_DELEGATE_FALSE='#'
29980else
29981 GVC_DELEGATE_TRUE='#'
29982 GVC_DELEGATE_FALSE=
29983fi
29984
cristy3ed852e2009-09-05 21:47:34 +000029985
29986
29987
29988
29989#
29990# Check for JBIG delegate library.
29991#
29992
29993
29994# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029995if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 withval=$with_jbig; with_jbig=$withval
29997else
29998 with_jbig='yes'
29999fi
30000
30001
30002have_jbig='no'
30003JBIG_LIBS=''
30004if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30006$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030008$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30010$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030011 failed=0
30012 passed=0
cristy8b350f62009-11-15 23:12:43 +000030013 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030014if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030015 passed=`expr $passed + 1`
30016else
30017 failed=`expr $failed + 1`
30018fi
30019
30020
cristy8b350f62009-11-15 23:12:43 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030022$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030023if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030024 $as_echo_n "(cached) " >&6
30025else
30026 ac_check_lib_save_LIBS=$LIBS
30027LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030029/* end confdefs.h. */
30030
30031/* Override any GCC internal prototype to avoid an error.
30032 Use char because int might match the return type of a GCC
30033 builtin and then its argument prototype would still apply. */
30034#ifdef __cplusplus
30035extern "C"
30036#endif
30037char jbg_dec_init ();
30038int
30039main ()
30040{
30041return jbg_dec_init ();
30042 ;
30043 return 0;
30044}
30045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030046if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030047 ac_cv_lib_jbig_jbg_dec_init=yes
30048else
cristy8b350f62009-11-15 23:12:43 +000030049 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030050fi
cristy8b350f62009-11-15 23:12:43 +000030051rm -f core conftest.err conftest.$ac_objext \
30052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030053LIBS=$ac_check_lib_save_LIBS
30054fi
cristy8b350f62009-11-15 23:12:43 +000030055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030056$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030057if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 passed=`expr $passed + 1`
30059else
30060 failed=`expr $failed + 1`
30061fi
30062
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo_n "checking if JBIG package is complete... " >&6; }
30065 if test $passed -gt 0; then
30066 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30068$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030069 have_jbig='no (failed tests)'
30070 else
30071 JBIG_LIBS='-ljbig'
30072 LIBS="$JBIG_LIBS $LIBS"
30073
cristy8b350f62009-11-15 23:12:43 +000030074$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030075
cristy09b53e12011-10-14 12:47:22 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30077$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030078 have_jbig='yes'
30079 fi
30080 else
cristy09b53e12011-10-14 12:47:22 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30082$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030083 fi
30084fi
cristy73bd4a52010-10-05 11:24:23 +000030085 if test "$have_jbig" = 'yes'; then
30086 JBIG_DELEGATE_TRUE=
30087 JBIG_DELEGATE_FALSE='#'
30088else
30089 JBIG_DELEGATE_TRUE='#'
30090 JBIG_DELEGATE_FALSE=
30091fi
30092
cristy3ed852e2009-09-05 21:47:34 +000030093
30094
30095
30096#
30097# Check for JPEG delegate library.
30098#
30099
30100# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030101if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030102 withval=$with_jpeg; with_jpeg=$withval
30103else
30104 with_jpeg='yes'
30105fi
30106
30107
30108if test "$with_jpeg" != 'yes'; then
30109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30110fi
30111
30112have_jpeg='no'
30113JPEG_LIBS=''
30114if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30116$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030119 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30120$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030121 failed=0
30122 passed=0
cristy8b350f62009-11-15 23:12:43 +000030123 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030124if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030125 passed=`expr $passed + 1`
30126else
30127 failed=`expr $failed + 1`
30128fi
30129
30130
cristy8b350f62009-11-15 23:12:43 +000030131 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030132if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030133 passed=`expr $passed + 1`
30134else
30135 failed=`expr $failed + 1`
30136fi
30137
30138
cristy8b350f62009-11-15 23:12:43 +000030139 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030140if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030141 passed=`expr $passed + 1`
30142else
30143 failed=`expr $failed + 1`
30144fi
30145
30146
cristy8b350f62009-11-15 23:12:43 +000030147 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030148if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030149 passed=`expr $passed + 1`
30150else
30151 failed=`expr $failed + 1`
30152fi
30153
30154
cristy8b350f62009-11-15 23:12:43 +000030155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030157if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 $as_echo_n "(cached) " >&6
30159else
30160 ac_check_lib_save_LIBS=$LIBS
30161LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030163/* end confdefs.h. */
30164
30165/* Override any GCC internal prototype to avoid an error.
30166 Use char because int might match the return type of a GCC
30167 builtin and then its argument prototype would still apply. */
30168#ifdef __cplusplus
30169extern "C"
30170#endif
30171char jpeg_read_header ();
30172int
30173main ()
30174{
30175return jpeg_read_header ();
30176 ;
30177 return 0;
30178}
30179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030181 ac_cv_lib_jpeg_jpeg_read_header=yes
30182else
cristy8b350f62009-11-15 23:12:43 +000030183 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030184fi
cristy8b350f62009-11-15 23:12:43 +000030185rm -f core conftest.err conftest.$ac_objext \
30186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030187LIBS=$ac_check_lib_save_LIBS
30188fi
cristy8b350f62009-11-15 23:12:43 +000030189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030191if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030192 passed=`expr $passed + 1`
30193else
30194 failed=`expr $failed + 1`
30195fi
30196
30197
30198# Test for compatible JPEG library
30199if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030202if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030203 $as_echo_n "(cached) " >&6
30204else
cristy8b350f62009-11-15 23:12:43 +000030205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030206/* end confdefs.h. */
30207#include <stdio.h>
30208#include <stdlib.h>
30209#include <jpeglib.h>
30210
30211int
30212main ()
30213{
30214
30215#if JPEG_LIB_VERSION < 62
30216#error IJG JPEG library must be version 6b or newer!
30217#endif
30218return 0;
30219
30220 ;
30221 return 0;
30222}
30223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030225 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30226else
cristy8b350f62009-11-15 23:12:43 +000030227 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030228fi
cristy3ed852e2009-09-05 21:47:34 +000030229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30230fi
cristy8b350f62009-11-15 23:12:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30233fi
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo_n "checking if JPEG package is complete... " >&6; }
30236 if test $passed -gt 0; then
30237 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030238 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30239$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030240 have_jpeg='no (failed tests)'
30241 else
30242 JPEG_LIBS='-ljpeg'
30243 LIBS="$JPEG_LIBS $LIBS"
30244
cristy8b350f62009-11-15 23:12:43 +000030245$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030246
cristy09b53e12011-10-14 12:47:22 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30248$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030249 have_jpeg='yes'
30250 fi
30251 else
cristy09b53e12011-10-14 12:47:22 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30253$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030254 fi
30255fi
cristy73bd4a52010-10-05 11:24:23 +000030256 if test "$have_jpeg" = 'yes'; then
30257 JPEG_DELEGATE_TRUE=
30258 JPEG_DELEGATE_FALSE='#'
30259else
30260 JPEG_DELEGATE_TRUE='#'
30261 JPEG_DELEGATE_FALSE=
30262fi
30263
cristy3ed852e2009-09-05 21:47:34 +000030264
30265
30266
30267#
30268# Check for JPEG Version 2 delegate library.
30269#
30270
30271# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030272if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030273 withval=$with_jp2; with_jp2=$withval
30274else
30275 with_jp2='yes'
30276fi
30277
30278
30279if test "$with_jp2" != 'yes'; then
30280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30281fi
30282
30283have_jp2='no'
30284JP2_LIBS=''
30285if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30287$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030289$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30291$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030292 failed=0
30293 passed=0
cristy8b350f62009-11-15 23:12:43 +000030294 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 +000030295if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030296 passed=`expr $passed + 1`
30297else
30298 failed=`expr $failed + 1`
30299fi
30300
30301
cristy8b350f62009-11-15 23:12:43 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030303$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030304if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030305 $as_echo_n "(cached) " >&6
30306else
30307 ac_check_lib_save_LIBS=$LIBS
30308LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030310/* end confdefs.h. */
30311
30312/* Override any GCC internal prototype to avoid an error.
30313 Use char because int might match the return type of a GCC
30314 builtin and then its argument prototype would still apply. */
30315#ifdef __cplusplus
30316extern "C"
30317#endif
30318char jas_stream_fopen ();
30319int
30320main ()
30321{
30322return jas_stream_fopen ();
30323 ;
30324 return 0;
30325}
30326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030328 ac_cv_lib_jasper_jas_stream_fopen=yes
30329else
cristy8b350f62009-11-15 23:12:43 +000030330 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030331fi
cristy8b350f62009-11-15 23:12:43 +000030332rm -f core conftest.err conftest.$ac_objext \
30333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030334LIBS=$ac_check_lib_save_LIBS
30335fi
cristy8b350f62009-11-15 23:12:43 +000030336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030338if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030339 passed=`expr $passed + 1`
30340else
30341 failed=`expr $failed + 1`
30342fi
30343
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30346 if test $passed -gt 0; then
30347 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30349$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030350 have_jp2='no (failed tests)'
30351 else
30352 JP2_LIBS='-ljasper'
30353 LIBS="$JP2_LIBS $LIBS"
30354
cristy8b350f62009-11-15 23:12:43 +000030355$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030356
cristy09b53e12011-10-14 12:47:22 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30358$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030359 have_jp2='yes'
30360 fi
30361 else
cristy09b53e12011-10-14 12:47:22 +000030362 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30363$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030364 fi
30365fi
cristy73bd4a52010-10-05 11:24:23 +000030366 if test "$have_jp2" = 'yes'; then
30367 JP2_DELEGATE_TRUE=
30368 JP2_DELEGATE_FALSE='#'
30369else
30370 JP2_DELEGATE_TRUE='#'
30371 JP2_DELEGATE_FALSE=
30372fi
30373
cristy3ed852e2009-09-05 21:47:34 +000030374
30375
30376
30377#
30378# Check for LCMS delegate library.
30379#
cristy71203402010-06-18 13:12:03 +000030380# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030381
30382# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030383if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030384 withval=$with_lcms; with_lcms=$withval
30385else
30386 with_lcms='yes'
30387fi
30388
cristy71203402010-06-18 13:12:03 +000030389if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30391fi
30392
cristy71203402010-06-18 13:12:03 +000030393# Disable LCMS2.
30394
30395# Check whether --with-lcms2 was given.
30396if test "${with_lcms2+set}" = set; then :
30397 withval=$with_lcms2; with_lcms2=$withval
30398else
30399 with_lcms2='yes'
30400fi
30401
30402if test "$with_lcms2" != 'yes' ; then
30403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30404fi
30405
30406have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030407LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030408if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30410$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30412$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030413 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30414$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030415 failed=0
30416 passed=0
30417 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030418
30419 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030420 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030421if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030422 have_lcms_header='yes'
30423fi
30424
30425
30426 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030427
30428$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30429
cristy71203402010-06-18 13:12:03 +000030430 passed=`expr $passed + 1`
30431 fi
30432
30433 # Check for <lcms2/lcms2.h)
30434 if test "$have_lcms_header" != 'yes'; then
30435 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 +000030436if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030437 have_lcms_header='yes'
30438fi
30439
30440
cristy71203402010-06-18 13:12:03 +000030441 if test "$have_lcms_header" = 'yes'; then
30442 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030443
cristy71203402010-06-18 13:12:03 +000030444$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030445
cristy71203402010-06-18 13:12:03 +000030446 fi
cristyd09bcf92010-03-25 03:04:45 +000030447 fi
cristy71203402010-06-18 13:12:03 +000030448
30449 # Failed to find lcms header?
30450 if test "$have_lcms_header" != 'yes'; then
30451 failed=`expr $failed + 1`
30452 fi
30453
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30455$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030456if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030457 $as_echo_n "(cached) " >&6
30458else
30459 ac_check_lib_save_LIBS=$LIBS
30460LIBS="-llcms2 $LIBS"
30461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30462/* end confdefs.h. */
30463
30464/* Override any GCC internal prototype to avoid an error.
30465 Use char because int might match the return type of a GCC
30466 builtin and then its argument prototype would still apply. */
30467#ifdef __cplusplus
30468extern "C"
30469#endif
cristy71203402010-06-18 13:12:03 +000030470char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030471int
30472main ()
30473{
cristy71203402010-06-18 13:12:03 +000030474return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030475 ;
30476 return 0;
30477}
30478_ACEOF
30479if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030480 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030481else
cristy71203402010-06-18 13:12:03 +000030482 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030483fi
30484rm -f core conftest.err conftest.$ac_objext \
30485 conftest$ac_exeext conftest.$ac_ext
30486LIBS=$ac_check_lib_save_LIBS
30487fi
cristy71203402010-06-18 13:12:03 +000030488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30489$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030490if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030491 passed=`expr $passed + 1`
30492else
30493 failed=`expr $failed + 1`
30494fi
30495
cristy71203402010-06-18 13:12:03 +000030496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30497$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030498 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030499 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30501$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030502 have_lcms2='no (failed tests)'
30503 else
30504 LCMS_LIBS='-llcms2'
30505 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30507$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030508 have_lcms2='yes'
30509 fi
cristyd09bcf92010-03-25 03:04:45 +000030510 else
cristy09b53e12011-10-14 12:47:22 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30512$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030513 fi
30514fi
30515
cristy71203402010-06-18 13:12:03 +000030516#
30517# Check for LCMS v1 (1.11 or later)
30518#
30519if test $have_lcms2 = 'yes'; then
30520 with_lcms='no'
30521fi
30522
30523have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030524if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30526$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30528$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30530$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030531 failed=0
30532 passed=0
30533 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030534
30535 # Check for <lcms.h>
30536 if test "$have_lcms_header" != 'yes'; then
30537 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030538if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030539 have_lcms_header='yes'
30540fi
30541
30542
cristy71203402010-06-18 13:12:03 +000030543 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030544 passed=`expr $passed + 1`
30545
cristy8b350f62009-11-15 23:12:43 +000030546$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030547
cristy71203402010-06-18 13:12:03 +000030548 fi
30549 fi
30550
30551 # Check for <lcms/lcms.h>
30552 if test "$have_lcms_header" != 'yes'; then
30553 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 +000030554if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030555 have_lcms_header='yes'
30556fi
30557
30558
cristy71203402010-06-18 13:12:03 +000030559 if test "$have_lcms_header" = 'yes'; then
30560 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030561
cristy8b350f62009-11-15 23:12:43 +000030562$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030563
cristy71203402010-06-18 13:12:03 +000030564 fi
cristy3ed852e2009-09-05 21:47:34 +000030565 fi
cristy71203402010-06-18 13:12:03 +000030566
30567 # Failed to find lcms header?
30568 if test "$have_lcms_header" != 'yes'; then
30569 failed=`expr $failed + 1`
30570 fi
30571
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30573$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030574if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030575 $as_echo_n "(cached) " >&6
30576else
30577 ac_check_lib_save_LIBS=$LIBS
30578LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030580/* end confdefs.h. */
30581
30582/* Override any GCC internal prototype to avoid an error.
30583 Use char because int might match the return type of a GCC
30584 builtin and then its argument prototype would still apply. */
30585#ifdef __cplusplus
30586extern "C"
30587#endif
cristy71203402010-06-18 13:12:03 +000030588char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030589int
30590main ()
30591{
cristy71203402010-06-18 13:12:03 +000030592return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030593 ;
30594 return 0;
30595}
30596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030597if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030598 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030599else
cristy71203402010-06-18 13:12:03 +000030600 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030601fi
cristy8b350f62009-11-15 23:12:43 +000030602rm -f core conftest.err conftest.$ac_objext \
30603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030604LIBS=$ac_check_lib_save_LIBS
30605fi
cristy71203402010-06-18 13:12:03 +000030606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30607$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030608if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030609 passed=`expr $passed + 1`
30610else
30611 failed=`expr $failed + 1`
30612fi
30613
cristy8b350f62009-11-15 23:12:43 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030615$as_echo_n "checking if LCMS package is complete... " >&6; }
30616 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030617 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030618 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30619$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030620 have_lcms='no (failed tests)'
30621 else
30622 LCMS_LIBS='-llcms'
30623 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030624 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30625$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030626 have_lcms='yes'
30627 fi
cristy3ed852e2009-09-05 21:47:34 +000030628 else
cristy09b53e12011-10-14 12:47:22 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30630$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030631 fi
30632fi
cristy71203402010-06-18 13:12:03 +000030633
cristy73bd4a52010-10-05 11:24:23 +000030634 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30635 LCMS_DELEGATE_TRUE=
30636 LCMS_DELEGATE_FALSE='#'
30637else
30638 LCMS_DELEGATE_TRUE='#'
30639 LCMS_DELEGATE_FALSE=
30640fi
30641
cristy71203402010-06-18 13:12:03 +000030642if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30643
30644$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30645
30646fi
30647
cristy3ed852e2009-09-05 21:47:34 +000030648
30649
30650
30651#
30652# Check for the LQR (Liquid Rescale) delegate library.
30653#
30654
30655# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030656if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030657 withval=$with_lqr; with_lqr=$withval
30658else
30659 with_lqr='yes'
30660fi
30661
30662
30663if test "$with_lqr" != 'yes'; then
30664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30665fi
30666
30667have_lqr='no'
30668LQR_CFLAGS=""
30669LQR_LIBS=""
30670LQR_PKG=""
30671if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30673$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030674
30675pkg_failed=no
30676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30677$as_echo_n "checking for LQR... " >&6; }
30678
30679if test -n "$LQR_CFLAGS"; then
30680 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30681 elif test -n "$PKG_CONFIG"; then
30682 if test -n "$PKG_CONFIG" && \
30683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30684 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30685 ac_status=$?
30686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30687 test $ac_status = 0; }; then
30688 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30689else
30690 pkg_failed=yes
30691fi
30692 else
30693 pkg_failed=untried
30694fi
30695if test -n "$LQR_LIBS"; then
30696 pkg_cv_LQR_LIBS="$LQR_LIBS"
30697 elif test -n "$PKG_CONFIG"; then
30698 if test -n "$PKG_CONFIG" && \
30699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30700 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30701 ac_status=$?
30702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30703 test $ac_status = 0; }; then
30704 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30705else
30706 pkg_failed=yes
30707fi
30708 else
30709 pkg_failed=untried
30710fi
30711
30712
30713
30714if test $pkg_failed = yes; then
30715
30716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30717 _pkg_short_errors_supported=yes
30718else
30719 _pkg_short_errors_supported=no
30720fi
30721 if test $_pkg_short_errors_supported = yes; then
30722 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30723 else
30724 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30725 fi
30726 # Put the nasty error message in config.log where it belongs
30727 echo "$LQR_PKG_ERRORS" >&5
30728
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730$as_echo "no" >&6; }
30731 have_lqr=no
30732elif test $pkg_failed = untried; then
30733 have_lqr=no
30734else
30735 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30736 LQR_LIBS=$pkg_cv_LQR_LIBS
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30738$as_echo "yes" >&6; }
30739 have_lqr=yes
30740fi
cristy09b53e12011-10-14 12:47:22 +000030741 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30742$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030743fi
30744
30745if test "$have_lqr" = 'yes'; then
30746
cristy8b350f62009-11-15 23:12:43 +000030747$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030748
30749 CFLAGS="$LQR_CFLAGS $CFLAGS"
30750fi
30751
cristy73bd4a52010-10-05 11:24:23 +000030752 if test "$have_lqr" = 'yes'; then
30753 LQR_DELEGATE_TRUE=
30754 LQR_DELEGATE_FALSE='#'
30755else
30756 LQR_DELEGATE_TRUE='#'
30757 LQR_DELEGATE_FALSE=
30758fi
30759
cristy3ed852e2009-09-05 21:47:34 +000030760
30761
30762
30763
cristy81beccd2011-10-03 18:17:24 +000030764# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030765
30766# Check whether --with-lzma was given.
30767if test "${with_lzma+set}" = set; then :
30768 withval=$with_lzma; with_lzma=$withval
30769else
30770 with_lzma='yes'
30771fi
30772
cristy81beccd2011-10-03 18:17:24 +000030773if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30775fi
30776
cristyb94e5002011-11-14 13:20:10 +000030777LZMA_PKG=""
30778if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30780$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030781
30782pkg_failed=no
30783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030784$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030785
30786if test -n "$LZMA_CFLAGS"; then
30787 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30788 elif test -n "$PKG_CONFIG"; then
30789 if test -n "$PKG_CONFIG" && \
30790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30791 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30792 ac_status=$?
30793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30794 test $ac_status = 0; }; then
30795 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30796else
30797 pkg_failed=yes
30798fi
30799 else
30800 pkg_failed=untried
30801fi
30802if test -n "$LZMA_LIBS"; then
30803 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30804 elif test -n "$PKG_CONFIG"; then
30805 if test -n "$PKG_CONFIG" && \
30806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30807 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30808 ac_status=$?
30809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30810 test $ac_status = 0; }; then
30811 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30812else
30813 pkg_failed=yes
30814fi
30815 else
30816 pkg_failed=untried
30817fi
30818
30819
30820
30821if test $pkg_failed = yes; then
30822
30823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30824 _pkg_short_errors_supported=yes
30825else
30826 _pkg_short_errors_supported=no
30827fi
30828 if test $_pkg_short_errors_supported = yes; then
30829 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30830 else
30831 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30832 fi
30833 # Put the nasty error message in config.log where it belongs
30834 echo "$LZMA_PKG_ERRORS" >&5
30835
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30837$as_echo "no" >&6; }
30838 have_lzma=no
30839elif test $pkg_failed = untried; then
30840 have_lzma=no
30841else
30842 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30843 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30845$as_echo "yes" >&6; }
30846 have_lzma=yes
30847fi
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030849$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030850fi
30851
cristyb94e5002011-11-14 13:20:10 +000030852if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030853
30854$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30855
cristyb94e5002011-11-14 13:20:10 +000030856 if test "$with_modules" = 'no'; then
30857 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030858 fi
cristyfbb0ef02010-12-19 02:32:11 +000030859fi
cristyb94e5002011-11-14 13:20:10 +000030860
cristyfbb0ef02010-12-19 02:32:11 +000030861 if test "$have_lzma" = 'yes'; then
30862 LZMA_DELEGATE_TRUE=
30863 LZMA_DELEGATE_FALSE='#'
30864else
30865 LZMA_DELEGATE_TRUE='#'
30866 LZMA_DELEGATE_FALSE=
30867fi
30868
30869
30870
30871
cristyb94e5002011-11-14 13:20:10 +000030872
cristy3ed852e2009-09-05 21:47:34 +000030873#
30874# Check for the OpenEXR delegate library.
30875#
30876
30877# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030878if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030879 withval=$with_openexr; with_openexr=$withval
30880else
30881 with_openexr='yes'
30882fi
30883
30884
30885if test "$with_openexr" != 'yes'; then
30886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30887fi
30888
30889have_openexr='no'
30890OPENEXR_CFLAGS=""
30891OPENEXR_LIBS=""
30892OPENEXR_PKG=""
30893if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30895$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030896
30897pkg_failed=no
30898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30899$as_echo_n "checking for OPENEXR... " >&6; }
30900
30901if test -n "$OPENEXR_CFLAGS"; then
30902 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30903 elif test -n "$PKG_CONFIG"; then
30904 if test -n "$PKG_CONFIG" && \
30905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30906 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30907 ac_status=$?
30908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30909 test $ac_status = 0; }; then
30910 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30911else
30912 pkg_failed=yes
30913fi
30914 else
30915 pkg_failed=untried
30916fi
30917if test -n "$OPENEXR_LIBS"; then
30918 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30919 elif test -n "$PKG_CONFIG"; then
30920 if test -n "$PKG_CONFIG" && \
30921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30922 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30923 ac_status=$?
30924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30925 test $ac_status = 0; }; then
30926 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30927else
30928 pkg_failed=yes
30929fi
30930 else
30931 pkg_failed=untried
30932fi
30933
30934
30935
30936if test $pkg_failed = yes; then
30937
30938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30939 _pkg_short_errors_supported=yes
30940else
30941 _pkg_short_errors_supported=no
30942fi
30943 if test $_pkg_short_errors_supported = yes; then
30944 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30945 else
30946 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30947 fi
30948 # Put the nasty error message in config.log where it belongs
30949 echo "$OPENEXR_PKG_ERRORS" >&5
30950
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30952$as_echo "no" >&6; }
30953 have_openexr=no
30954elif test $pkg_failed = untried; then
30955 have_openexr=no
30956else
30957 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30958 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30960$as_echo "yes" >&6; }
30961 have_openexr=yes
30962fi
cristy09b53e12011-10-14 12:47:22 +000030963 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30964$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030965fi
30966
30967if test "$have_openexr" = 'yes'; then
30968
cristy8b350f62009-11-15 23:12:43 +000030969$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030970
30971 if test "$with_modules" = 'no'; then
30972 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30973 fi
30974fi
30975
cristy73bd4a52010-10-05 11:24:23 +000030976 if test "$have_openexr" = 'yes'; then
30977 OPENEXR_DELEGATE_TRUE=
30978 OPENEXR_DELEGATE_FALSE='#'
30979else
30980 OPENEXR_DELEGATE_TRUE='#'
30981 OPENEXR_DELEGATE_FALSE=
30982fi
30983
cristy3ed852e2009-09-05 21:47:34 +000030984
30985
30986
30987
30988#
cristy41cbe8a2011-10-27 01:35:18 +000030989# Check for PANGO delegate library.
30990#
30991
30992# Check whether --with-pango was given.
30993if test "${with_pango+set}" = set; then :
30994 withval=$with_pango; with_pango=$withval
30995else
cristyfc3d0222012-02-07 15:05:57 +000030996 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030997fi
30998
30999
31000if test "$with_pango" != 'yes'; then
31001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31002fi
31003
31004have_pango='no'
cristya054b762012-03-26 23:16:00 +000031005have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031006PANGO_CFLAGS=""
31007PANGO_LIBS=""
31008PANGO_PKG=""
31009if test "x$with_pango" = "xyes"; then
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31011$as_echo "-------------------------------------------------------------" >&6; }
31012
31013pkg_failed=no
31014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31015$as_echo_n "checking for PANGO... " >&6; }
31016
31017if test -n "$PANGO_CFLAGS"; then
31018 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31019 elif test -n "$PKG_CONFIG"; then
31020 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31022 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031023 ac_status=$?
31024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31025 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031026 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031027else
31028 pkg_failed=yes
31029fi
31030 else
31031 pkg_failed=untried
31032fi
31033if test -n "$PANGO_LIBS"; then
31034 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31035 elif test -n "$PKG_CONFIG"; then
31036 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31038 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031039 ac_status=$?
31040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31041 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031042 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031043else
31044 pkg_failed=yes
31045fi
31046 else
31047 pkg_failed=untried
31048fi
31049
31050
31051
31052if test $pkg_failed = yes; then
31053
31054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31055 _pkg_short_errors_supported=yes
31056else
31057 _pkg_short_errors_supported=no
31058fi
31059 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031060 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031061 else
cristya054b762012-03-26 23:16:00 +000031062 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031063 fi
31064 # Put the nasty error message in config.log where it belongs
31065 echo "$PANGO_PKG_ERRORS" >&5
31066
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031069 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031070elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031071 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031072else
31073 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31074 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31076$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031077 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031078fi
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31080$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031081
31082pkg_failed=no
31083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31084$as_echo_n "checking for PANGO... " >&6; }
31085
31086if test -n "$PANGO_CFLAGS"; then
31087 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31088 elif test -n "$PKG_CONFIG"; then
31089 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31091 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031092 ac_status=$?
31093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31094 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031095 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031096else
31097 pkg_failed=yes
31098fi
31099 else
31100 pkg_failed=untried
31101fi
31102if test -n "$PANGO_LIBS"; then
31103 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31104 elif test -n "$PKG_CONFIG"; then
31105 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31107 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031108 ac_status=$?
31109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31110 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031111 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031112else
31113 pkg_failed=yes
31114fi
31115 else
31116 pkg_failed=untried
31117fi
31118
31119
31120
31121if test $pkg_failed = yes; then
31122
31123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31124 _pkg_short_errors_supported=yes
31125else
31126 _pkg_short_errors_supported=no
31127fi
31128 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031129 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031130 else
cristy2542fc62011-12-06 17:50:25 +000031131 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031132 fi
31133 # Put the nasty error message in config.log where it belongs
31134 echo "$PANGO_PKG_ERRORS" >&5
31135
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138 have_pango=no
31139elif test $pkg_failed = untried; then
31140 have_pango=no
31141else
31142 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31143 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31145$as_echo "yes" >&6; }
31146 have_pango=yes
31147fi
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31149$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031150fi
31151
31152if test "$have_pango" = 'yes'; then
31153
31154$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31155
31156 if test "$with_modules" = 'no'; then
31157 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31158 fi
31159fi
31160
cristya054b762012-03-26 23:16:00 +000031161if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031162
cristya054b762012-03-26 23:16:00 +000031163$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031164
31165 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031166 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031167 fi
31168fi
31169
31170 if test "$have_pango" = 'yes'; then
31171 PANGO_DELEGATE_TRUE=
31172 PANGO_DELEGATE_FALSE='#'
31173else
31174 PANGO_DELEGATE_TRUE='#'
31175 PANGO_DELEGATE_FALSE=
31176fi
31177
cristya054b762012-03-26 23:16:00 +000031178 if test "$have_pangocairo" = 'yes'; then
31179 PANGOCAIRO_DELEGATE_TRUE=
31180 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031181else
cristya054b762012-03-26 23:16:00 +000031182 PANGOCAIRO_DELEGATE_TRUE='#'
31183 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031184fi
31185
31186
31187
31188
31189
31190#
cristy3ed852e2009-09-05 21:47:34 +000031191# Check for PNG delegate library.
31192#
31193
31194# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031195if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031196 withval=$with_png; with_png=$withval
31197else
31198 with_png='yes'
31199fi
31200
31201
31202if test "$with_png" != 'yes'; then
31203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31204fi
31205
cristy81beccd2011-10-03 18:17:24 +000031206have_png='no'
31207PNG_LIBS=''
31208
31209if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31211$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31213$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031214 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31215$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031216 failed=0
31217 passed=0
31218 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31219if test "x$ac_cv_header_png_h" = xyes; then :
31220 passed=`expr $passed + 1`
31221else
31222 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031223fi
31224
cristy81beccd2011-10-03 18:17:24 +000031225
31226
31227 if test $passed -gt 0; then
31228 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031229 if test "$have_png" = 'no' ; then
31230 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031231 pnglib='png'
31232 else
31233 pnglib="png1${var}"
31234 fi
31235
31236# Test for compatible LIBPNG library
31237 failed=0
31238 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031239 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031240 if test "${pnglib}" != 'png' ; then
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31242$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31244/* end confdefs.h. */
31245#include <stdio.h>
31246#include <stdlib.h>
31247#include <png.h>
31248
31249int
31250main ()
31251{
31252
31253#if PNG_LIBPNG_VER_MINOR != ${var}
31254#error LIBPNG library must be version 1${var}!
31255Kaboom, Kaboom
31256#endif
31257return 0;
31258
31259 ;
31260 return 0;
31261}
31262_ACEOF
31263if ac_fn_c_try_compile "$LINENO"; then :
31264 ac_cv_libpng_ok='yes'
31265else
31266 ac_cv_libpng_ok='no'
31267fi
31268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31269 if test "$ac_cv_libpng_ok" = 'yes' ; then
31270 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031271 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31272$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031273 else
31274 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031275 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31276$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031277 fi
31278 else
31279 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031280 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31281$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031282 fi
31283 fi
31284
31285 if test $passed -gt 0 -a $failed -le 0; then
31286 if test "1${var}" = '15' ; then
31287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31288$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31289if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31290 $as_echo_n "(cached) " >&6
31291else
31292 ac_check_lib_save_LIBS=$LIBS
31293LIBS="-lpng15 $LIBS"
31294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31295/* end confdefs.h. */
31296
31297/* Override any GCC internal prototype to avoid an error.
31298 Use char because int might match the return type of a GCC
31299 builtin and then its argument prototype would still apply. */
31300#ifdef __cplusplus
31301extern "C"
31302#endif
31303char png_get_io_ptr ();
31304int
31305main ()
31306{
31307return png_get_io_ptr ();
31308 ;
31309 return 0;
31310}
31311_ACEOF
31312if ac_fn_c_try_link "$LINENO"; then :
31313 ac_cv_lib_png15_png_get_io_ptr=yes
31314else
31315 ac_cv_lib_png15_png_get_io_ptr=no
31316fi
31317rm -f core conftest.err conftest.$ac_objext \
31318 conftest$ac_exeext conftest.$ac_ext
31319LIBS=$ac_check_lib_save_LIBS
31320fi
31321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31322$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31323if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31324 passed=`expr $passed + 1`
31325else
31326 failed=`expr $failed + 1`
31327fi
31328
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31330$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31331if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31332 $as_echo_n "(cached) " >&6
31333else
31334 ac_check_lib_save_LIBS=$LIBS
31335LIBS="-lpng15 $LIBS"
31336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31337/* end confdefs.h. */
31338
31339/* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31342#ifdef __cplusplus
31343extern "C"
31344#endif
31345char png_longjmp ();
31346int
31347main ()
31348{
31349return png_longjmp ();
31350 ;
31351 return 0;
31352}
31353_ACEOF
31354if ac_fn_c_try_link "$LINENO"; then :
31355 ac_cv_lib_png15_png_longjmp=yes
31356else
31357 ac_cv_lib_png15_png_longjmp=no
31358fi
31359rm -f core conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
31361LIBS=$ac_check_lib_save_LIBS
31362fi
31363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31364$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31365if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31366 passed=`expr $passed + 1`
31367else
31368 failed=`expr $failed + 1`
31369fi
31370
31371 fi
31372 if test "1${var}" = '14' ; then
31373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31374$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31375if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31376 $as_echo_n "(cached) " >&6
31377else
31378 ac_check_lib_save_LIBS=$LIBS
31379LIBS="-lpng14 $LIBS"
31380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31381/* end confdefs.h. */
31382
31383/* Override any GCC internal prototype to avoid an error.
31384 Use char because int might match the return type of a GCC
31385 builtin and then its argument prototype would still apply. */
31386#ifdef __cplusplus
31387extern "C"
31388#endif
31389char png_get_io_ptr ();
31390int
31391main ()
31392{
31393return png_get_io_ptr ();
31394 ;
31395 return 0;
31396}
31397_ACEOF
31398if ac_fn_c_try_link "$LINENO"; then :
31399 ac_cv_lib_png14_png_get_io_ptr=yes
31400else
31401 ac_cv_lib_png14_png_get_io_ptr=no
31402fi
31403rm -f core conftest.err conftest.$ac_objext \
31404 conftest$ac_exeext conftest.$ac_ext
31405LIBS=$ac_check_lib_save_LIBS
31406fi
31407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31408$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31409if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31410 passed=`expr $passed + 1`
31411else
31412 failed=`expr $failed + 1`
31413fi
31414
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31416$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31417if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31418 $as_echo_n "(cached) " >&6
31419else
31420 ac_check_lib_save_LIBS=$LIBS
31421LIBS="-lpng14 $LIBS"
31422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31423/* end confdefs.h. */
31424
31425/* Override any GCC internal prototype to avoid an error.
31426 Use char because int might match the return type of a GCC
31427 builtin and then its argument prototype would still apply. */
31428#ifdef __cplusplus
31429extern "C"
31430#endif
31431char png_get_io_state ();
31432int
31433main ()
31434{
31435return png_get_io_state ();
31436 ;
31437 return 0;
31438}
31439_ACEOF
31440if ac_fn_c_try_link "$LINENO"; then :
31441 ac_cv_lib_png14_png_get_io_state=yes
31442else
31443 ac_cv_lib_png14_png_get_io_state=no
31444fi
31445rm -f core conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext conftest.$ac_ext
31447LIBS=$ac_check_lib_save_LIBS
31448fi
31449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31450$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31451if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31452 passed=`expr $passed + 1`
31453else
31454 failed=`expr $failed + 1`
31455fi
31456
31457 fi
31458 if test "1${var}" = '12' ; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31460$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31461if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31462 $as_echo_n "(cached) " >&6
31463else
31464 ac_check_lib_save_LIBS=$LIBS
31465LIBS="-lpng12 $LIBS"
31466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31467/* end confdefs.h. */
31468
31469/* Override any GCC internal prototype to avoid an error.
31470 Use char because int might match the return type of a GCC
31471 builtin and then its argument prototype would still apply. */
31472#ifdef __cplusplus
31473extern "C"
31474#endif
31475char png_get_io_ptr ();
31476int
31477main ()
31478{
31479return png_get_io_ptr ();
31480 ;
31481 return 0;
31482}
31483_ACEOF
31484if ac_fn_c_try_link "$LINENO"; then :
31485 ac_cv_lib_png12_png_get_io_ptr=yes
31486else
31487 ac_cv_lib_png12_png_get_io_ptr=no
31488fi
31489rm -f core conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
31491LIBS=$ac_check_lib_save_LIBS
31492fi
31493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31494$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31495if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31496 passed=`expr $passed + 1`
31497else
31498 failed=`expr $failed + 1`
31499fi
31500
31501 fi
31502 if test "1${var}" = '1' ; then
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31504$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31505if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31506 $as_echo_n "(cached) " >&6
31507else
31508 ac_check_lib_save_LIBS=$LIBS
31509LIBS="-lpng $LIBS"
31510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31511/* end confdefs.h. */
31512
31513/* Override any GCC internal prototype to avoid an error.
31514 Use char because int might match the return type of a GCC
31515 builtin and then its argument prototype would still apply. */
31516#ifdef __cplusplus
31517extern "C"
31518#endif
31519char png_get_io_ptr ();
31520int
31521main ()
31522{
31523return png_get_io_ptr ();
31524 ;
31525 return 0;
31526}
31527_ACEOF
31528if ac_fn_c_try_link "$LINENO"; then :
31529 ac_cv_lib_png_png_get_io_ptr=yes
31530else
31531 ac_cv_lib_png_png_get_io_ptr=no
31532fi
31533rm -f core conftest.err conftest.$ac_objext \
31534 conftest$ac_exeext conftest.$ac_ext
31535LIBS=$ac_check_lib_save_LIBS
31536fi
31537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31538$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31539if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31540 passed=`expr $passed + 1`
31541else
31542 failed=`expr $failed + 1`
31543fi
31544
31545 fi
31546 if test $passed -gt 0 -a $failed -le 0 ; then
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31548$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31549 if test $passed -gt 0 ; then
31550 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31552$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031553 have_png='no (failed tests)'
31554 else
31555 PNG_LIBS="-l${pnglib}"
31556 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031557
cristy8b350f62009-11-15 23:12:43 +000031558$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031559
cristy09b53e12011-10-14 12:47:22 +000031560 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31561$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031562 have_png='yes'
31563 fi
31564 fi
31565 fi
31566 fi
31567 fi
31568 done
31569 fi
cristy3ed852e2009-09-05 21:47:34 +000031570fi
cristy64877302011-08-23 19:10:31 +000031571
cristy73bd4a52010-10-05 11:24:23 +000031572 if test "$have_png" = 'yes'; then
31573 PNG_DELEGATE_TRUE=
31574 PNG_DELEGATE_FALSE='#'
31575else
31576 PNG_DELEGATE_TRUE='#'
31577 PNG_DELEGATE_FALSE=
31578fi
31579
cristy3ed852e2009-09-05 21:47:34 +000031580
cristy50d3f5c2011-09-10 20:09:06 +000031581
cristy3ed852e2009-09-05 21:47:34 +000031582
31583
31584#
31585# Check for RSVG delegate library.
31586#
31587
31588# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031589if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031590 withval=$with_rsvg; with_rsvg=$withval
31591else
cristy1164d5f2012-08-15 00:58:25 +000031592 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031593fi
31594
31595
31596if test "$with_rsvg" != 'yes'; then
31597 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31598fi
31599
31600have_rsvg='no'
31601have_cairo='no'
31602RSVG_CFLAGS=""
31603RSVG_LIBS=""
31604RSVG_PKG=""
31605if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031606 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31607$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031608
31609pkg_failed=no
31610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31611$as_echo_n "checking for RSVG... " >&6; }
31612
31613if test -n "$RSVG_CFLAGS"; then
31614 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31615 elif test -n "$PKG_CONFIG"; then
31616 if test -n "$PKG_CONFIG" && \
31617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31618 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31619 ac_status=$?
31620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31621 test $ac_status = 0; }; then
31622 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31623else
31624 pkg_failed=yes
31625fi
31626 else
31627 pkg_failed=untried
31628fi
31629if test -n "$RSVG_LIBS"; then
31630 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31631 elif test -n "$PKG_CONFIG"; then
31632 if test -n "$PKG_CONFIG" && \
31633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31634 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31635 ac_status=$?
31636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31637 test $ac_status = 0; }; then
31638 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31639else
31640 pkg_failed=yes
31641fi
31642 else
31643 pkg_failed=untried
31644fi
31645
31646
31647
31648if test $pkg_failed = yes; then
31649
31650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31651 _pkg_short_errors_supported=yes
31652else
31653 _pkg_short_errors_supported=no
31654fi
31655 if test $_pkg_short_errors_supported = yes; then
31656 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31657 else
31658 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31659 fi
31660 # Put the nasty error message in config.log where it belongs
31661 echo "$RSVG_PKG_ERRORS" >&5
31662
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31664$as_echo "no" >&6; }
31665 have_rsvg=no
31666elif test $pkg_failed = untried; then
31667 have_rsvg=no
31668else
31669 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31670 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31672$as_echo "yes" >&6; }
31673 have_rsvg=yes
31674fi
cristy09b53e12011-10-14 12:47:22 +000031675 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31676$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031677
31678pkg_failed=no
31679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31680$as_echo_n "checking for CAIRO_SVG... " >&6; }
31681
31682if test -n "$CAIRO_SVG_CFLAGS"; then
31683 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31684 elif test -n "$PKG_CONFIG"; then
31685 if test -n "$PKG_CONFIG" && \
31686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31687 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31688 ac_status=$?
31689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31690 test $ac_status = 0; }; then
31691 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31692else
31693 pkg_failed=yes
31694fi
31695 else
31696 pkg_failed=untried
31697fi
31698if test -n "$CAIRO_SVG_LIBS"; then
31699 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31700 elif test -n "$PKG_CONFIG"; then
31701 if test -n "$PKG_CONFIG" && \
31702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31703 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31704 ac_status=$?
31705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31706 test $ac_status = 0; }; then
31707 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31708else
31709 pkg_failed=yes
31710fi
31711 else
31712 pkg_failed=untried
31713fi
31714
31715
31716
31717if test $pkg_failed = yes; then
31718
31719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31720 _pkg_short_errors_supported=yes
31721else
31722 _pkg_short_errors_supported=no
31723fi
31724 if test $_pkg_short_errors_supported = yes; then
31725 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31726 else
31727 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31728 fi
31729 # Put the nasty error message in config.log where it belongs
31730 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31731
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31733$as_echo "no" >&6; }
31734 have_cairo=no
31735elif test $pkg_failed = untried; then
31736 have_cairo=no
31737else
31738 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31739 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741$as_echo "yes" >&6; }
31742 have_cairo=yes
31743fi
cristy09b53e12011-10-14 12:47:22 +000031744 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31745$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031746fi
31747
31748if test "$have_rsvg" = 'yes'; then
31749
cristy8b350f62009-11-15 23:12:43 +000031750$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031751
31752 if test "$with_modules" = 'no'; then
31753 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31754 fi
31755fi
31756
31757if test "$have_cairo" = 'yes'; then
31758
cristy8b350f62009-11-15 23:12:43 +000031759$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031760
31761 if test "$with_modules" = 'no'; then
31762 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31763 fi
31764fi
31765
cristy73bd4a52010-10-05 11:24:23 +000031766 if test "$have_rsvg" = 'yes'; then
31767 RSVG_DELEGATE_TRUE=
31768 RSVG_DELEGATE_FALSE='#'
31769else
31770 RSVG_DELEGATE_TRUE='#'
31771 RSVG_DELEGATE_FALSE=
31772fi
31773
31774 if test "$have_cairo" = 'yes'; then
31775 CAIRO_DELEGATE_TRUE=
31776 CAIRO_DELEGATE_FALSE='#'
31777else
31778 CAIRO_DELEGATE_TRUE='#'
31779 CAIRO_DELEGATE_FALSE=
31780fi
31781
cristy3ed852e2009-09-05 21:47:34 +000031782
31783
31784
31785
31786#
31787# Check for TIFF delegate library.
31788#
31789
31790# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031791if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031792 withval=$with_tiff; with_tiff=$withval
31793else
31794 with_tiff='yes'
31795fi
31796
31797
31798if test "$with_tiff" != 'yes'; then
31799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31800fi
31801
31802have_tiff='no'
31803TIFF_LIBS=''
31804if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31806$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031809 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31810$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031811 failed=0
31812 passed=0
cristy8b350f62009-11-15 23:12:43 +000031813 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031814if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031815 passed=`expr $passed + 1`
31816else
31817 failed=`expr $failed + 1`
31818fi
31819
31820
cristy8b350f62009-11-15 23:12:43 +000031821 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031822if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 passed=`expr $passed + 1`
31824else
31825 failed=`expr $failed + 1`
31826fi
31827
31828
cristy8b350f62009-11-15 23:12:43 +000031829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031830$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031831if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031832 $as_echo_n "(cached) " >&6
31833else
31834 ac_check_lib_save_LIBS=$LIBS
31835LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031837/* end confdefs.h. */
31838
31839/* Override any GCC internal prototype to avoid an error.
31840 Use char because int might match the return type of a GCC
31841 builtin and then its argument prototype would still apply. */
31842#ifdef __cplusplus
31843extern "C"
31844#endif
31845char TIFFOpen ();
31846int
31847main ()
31848{
31849return TIFFOpen ();
31850 ;
31851 return 0;
31852}
31853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031855 ac_cv_lib_tiff_TIFFOpen=yes
31856else
cristy8b350f62009-11-15 23:12:43 +000031857 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031858fi
cristy8b350f62009-11-15 23:12:43 +000031859rm -f core conftest.err conftest.$ac_objext \
31860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031861LIBS=$ac_check_lib_save_LIBS
31862fi
cristy8b350f62009-11-15 23:12:43 +000031863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031864$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031865if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031866 passed=`expr $passed + 1`
31867else
31868 failed=`expr $failed + 1`
31869fi
31870
cristy8b350f62009-11-15 23:12:43 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031872$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031873if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031874 $as_echo_n "(cached) " >&6
31875else
31876 ac_check_lib_save_LIBS=$LIBS
31877LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031879/* end confdefs.h. */
31880
31881/* Override any GCC internal prototype to avoid an error.
31882 Use char because int might match the return type of a GCC
31883 builtin and then its argument prototype would still apply. */
31884#ifdef __cplusplus
31885extern "C"
31886#endif
31887char TIFFClientOpen ();
31888int
31889main ()
31890{
31891return TIFFClientOpen ();
31892 ;
31893 return 0;
31894}
31895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031897 ac_cv_lib_tiff_TIFFClientOpen=yes
31898else
cristy8b350f62009-11-15 23:12:43 +000031899 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031900fi
cristy8b350f62009-11-15 23:12:43 +000031901rm -f core conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031903LIBS=$ac_check_lib_save_LIBS
31904fi
cristy8b350f62009-11-15 23:12:43 +000031905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031907if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 passed=`expr $passed + 1`
31909else
31910 failed=`expr $failed + 1`
31911fi
31912
cristy8b350f62009-11-15 23:12:43 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031914$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031915if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031916 $as_echo_n "(cached) " >&6
31917else
31918 ac_check_lib_save_LIBS=$LIBS
31919LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031921/* end confdefs.h. */
31922
31923/* Override any GCC internal prototype to avoid an error.
31924 Use char because int might match the return type of a GCC
31925 builtin and then its argument prototype would still apply. */
31926#ifdef __cplusplus
31927extern "C"
31928#endif
31929char TIFFIsByteSwapped ();
31930int
31931main ()
31932{
31933return TIFFIsByteSwapped ();
31934 ;
31935 return 0;
31936}
31937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031939 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31940else
cristy8b350f62009-11-15 23:12:43 +000031941 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031942fi
cristy8b350f62009-11-15 23:12:43 +000031943rm -f core conftest.err conftest.$ac_objext \
31944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031945LIBS=$ac_check_lib_save_LIBS
31946fi
cristy8b350f62009-11-15 23:12:43 +000031947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031949if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031950 passed=`expr $passed + 1`
31951else
31952 failed=`expr $failed + 1`
31953fi
31954
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031957if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031958 $as_echo_n "(cached) " >&6
31959else
31960 ac_check_lib_save_LIBS=$LIBS
31961LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031963/* end confdefs.h. */
31964
31965/* Override any GCC internal prototype to avoid an error.
31966 Use char because int might match the return type of a GCC
31967 builtin and then its argument prototype would still apply. */
31968#ifdef __cplusplus
31969extern "C"
31970#endif
31971char TIFFReadRGBATile ();
31972int
31973main ()
31974{
31975return TIFFReadRGBATile ();
31976 ;
31977 return 0;
31978}
31979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031981 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31982else
cristy8b350f62009-11-15 23:12:43 +000031983 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031984fi
cristy8b350f62009-11-15 23:12:43 +000031985rm -f core conftest.err conftest.$ac_objext \
31986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031987LIBS=$ac_check_lib_save_LIBS
31988fi
cristy8b350f62009-11-15 23:12:43 +000031989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031991if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031992 passed=`expr $passed + 1`
31993else
31994 failed=`expr $failed + 1`
31995fi
31996
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031999if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032000 $as_echo_n "(cached) " >&6
32001else
32002 ac_check_lib_save_LIBS=$LIBS
32003LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032005/* end confdefs.h. */
32006
32007/* Override any GCC internal prototype to avoid an error.
32008 Use char because int might match the return type of a GCC
32009 builtin and then its argument prototype would still apply. */
32010#ifdef __cplusplus
32011extern "C"
32012#endif
32013char TIFFReadRGBAStrip ();
32014int
32015main ()
32016{
32017return TIFFReadRGBAStrip ();
32018 ;
32019 return 0;
32020}
32021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032023 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32024else
cristy8b350f62009-11-15 23:12:43 +000032025 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032026fi
cristy8b350f62009-11-15 23:12:43 +000032027rm -f core conftest.err conftest.$ac_objext \
32028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032029LIBS=$ac_check_lib_save_LIBS
32030fi
cristy8b350f62009-11-15 23:12:43 +000032031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032033if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032034 passed=`expr $passed + 1`
32035else
32036 failed=`expr $failed + 1`
32037fi
32038
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo_n "checking if TIFF package is complete... " >&6; }
32041 if test $passed -gt 0; then
32042 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32044$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032045 have_tiff='no (failed tests)'
32046 else
32047 TIFF_LIBS='-ltiff'
32048 LIBS="$TIFF_LIBS $LIBS"
32049
cristy8b350f62009-11-15 23:12:43 +000032050$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032051
cristy09b53e12011-10-14 12:47:22 +000032052 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32053$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032054 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032055 for ac_header in tiffconf.h
32056do :
32057 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032058if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032059 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032060#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032061_ACEOF
32062
32063fi
32064
32065done
32066
cristy8b350f62009-11-15 23:12:43 +000032067 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032068 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32069 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32070 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032071do :
32072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032075 cat >>confdefs.h <<_ACEOF
32076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32077_ACEOF
32078
32079fi
32080done
32081
32082 fi
32083 else
cristy09b53e12011-10-14 12:47:22 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32085$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032086 fi
32087fi
cristy73bd4a52010-10-05 11:24:23 +000032088 if test "$have_tiff" = 'yes'; then
32089 TIFF_DELEGATE_TRUE=
32090 TIFF_DELEGATE_FALSE='#'
32091else
32092 TIFF_DELEGATE_TRUE='#'
32093 TIFF_DELEGATE_FALSE=
32094fi
32095
cristy3ed852e2009-09-05 21:47:34 +000032096
32097
32098
32099#
cristyb1860752011-03-14 00:27:46 +000032100# Check for WEBP delegate library.
32101#
32102
32103# Check whether --with-webp was given.
32104if test "${with_webp+set}" = set; then :
32105 withval=$with_webp; with_webp=$withval
32106else
32107 with_webp='yes'
32108fi
32109
32110
32111if test "$with_webp" != 'yes'; then
32112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32113fi
32114
32115have_webp='no'
32116WEBP_LIBS=''
32117if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32119$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32121$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32123$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032124 failed=0
32125 passed=0
32126 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32127if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32128 passed=`expr $passed + 1`
32129else
32130 failed=`expr $failed + 1`
32131fi
32132
32133
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32135$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32136if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32137 $as_echo_n "(cached) " >&6
32138else
32139 ac_check_lib_save_LIBS=$LIBS
32140LIBS="-lwebp $LIBS"
32141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142/* end confdefs.h. */
32143
32144/* Override any GCC internal prototype to avoid an error.
32145 Use char because int might match the return type of a GCC
32146 builtin and then its argument prototype would still apply. */
32147#ifdef __cplusplus
32148extern "C"
32149#endif
32150char WebPDecodeRGB ();
32151int
32152main ()
32153{
32154return WebPDecodeRGB ();
32155 ;
32156 return 0;
32157}
32158_ACEOF
32159if ac_fn_c_try_link "$LINENO"; then :
32160 ac_cv_lib_webp_WebPDecodeRGB=yes
32161else
32162 ac_cv_lib_webp_WebPDecodeRGB=no
32163fi
32164rm -f core conftest.err conftest.$ac_objext \
32165 conftest$ac_exeext conftest.$ac_ext
32166LIBS=$ac_check_lib_save_LIBS
32167fi
32168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32169$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32170if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32171 passed=`expr $passed + 1`
32172else
32173 failed=`expr $failed + 1`
32174fi
32175
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32177$as_echo_n "checking if WEBP package is complete... " >&6; }
32178 if test $passed -gt 0; then
32179 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032180 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32181$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032182 have_webp='no (failed tests)'
32183 else
32184 WEBP_LIBS='-lwebp'
32185 LIBS="$WEBP_LIBS $LIBS"
32186
32187$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32188
cristy09b53e12011-10-14 12:47:22 +000032189 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32190$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032191 have_webp='yes'
32192 fi
32193 else
cristy09b53e12011-10-14 12:47:22 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32195$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032196 fi
32197fi
32198 if test "$have_webp" = 'yes'; then
32199 WEBP_DELEGATE_TRUE=
32200 WEBP_DELEGATE_FALSE='#'
32201else
32202 WEBP_DELEGATE_TRUE='#'
32203 WEBP_DELEGATE_FALSE=
32204fi
32205
32206
32207
32208
32209#
cristy3ed852e2009-09-05 21:47:34 +000032210# Set Windows font directory.
32211#
32212
32213# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032214if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032215 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32216else
32217 with_windows_font_dir=''
32218fi
32219
32220if test "$with_windows_font_dir" != '' ; then
32221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32222fi
32223
32224
32225#
32226# Check for WMF delegate library.
32227#
32228
32229# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032230if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032231 withval=$with_wmf; with_wmf=$withval
32232else
cristyfc3d0222012-02-07 15:05:57 +000032233 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032234fi
32235
32236
32237if test "$with_wmf" != 'yes'; then
32238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32239fi
32240
32241have_wmf='no'
32242WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032243WMF_LIBS_DEPS=''
32244OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032245if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32247$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32251$as_echo "" >&6; }
32252 have_libwmf='no'
32253 have_libwmflite='no'
32254 have_libwmf_ipa_h='no'
32255
32256 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32257"
32258if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32259 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032260fi
32261
32262
cristy03f7cf92011-12-15 01:40:41 +000032263 if test "$have_libwmf_ipa_h" = 'yes'; then
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32265$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32266if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032267 $as_echo_n "(cached) " >&6
32268else
32269 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032270LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032272/* end confdefs.h. */
32273
32274/* Override any GCC internal prototype to avoid an error.
32275 Use char because int might match the return type of a GCC
32276 builtin and then its argument prototype would still apply. */
32277#ifdef __cplusplus
32278extern "C"
32279#endif
cristy03f7cf92011-12-15 01:40:41 +000032280char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032281int
32282main ()
32283{
cristy03f7cf92011-12-15 01:40:41 +000032284return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032285 ;
32286 return 0;
32287}
32288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032289if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032290 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032291else
cristy03f7cf92011-12-15 01:40:41 +000032292 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032293fi
cristy8b350f62009-11-15 23:12:43 +000032294rm -f core conftest.err conftest.$ac_objext \
32295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032296LIBS=$ac_check_lib_save_LIBS
32297fi
cristy03f7cf92011-12-15 01:40:41 +000032298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32299$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32300if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32301 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032302fi
32303
cristy03f7cf92011-12-15 01:40:41 +000032304 if test "$have_libwmflite" = 'yes'; then
32305
32306$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32307
32308 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032309 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032310 have_wmf='yes'
32311 else
32312 WMF_LIBS_DEPS=''
32313 WMF_CONFIG_LIBS=`libwmf-config --libs`
32314 for lib in xml2 expat freetype jpeg png z; do
32315 testlib="-l${lib}"
32316 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32317 done
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32319$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32320if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32321 $as_echo_n "(cached) " >&6
32322else
32323 ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32326/* end confdefs.h. */
32327
32328/* Override any GCC internal prototype to avoid an error.
32329 Use char because int might match the return type of a GCC
32330 builtin and then its argument prototype would still apply. */
32331#ifdef __cplusplus
32332extern "C"
32333#endif
32334char wmf_api_create ();
32335int
32336main ()
32337{
32338return wmf_api_create ();
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343if ac_fn_c_try_link "$LINENO"; then :
32344 ac_cv_lib_wmf_wmf_api_create=yes
32345else
32346 ac_cv_lib_wmf_wmf_api_create=no
32347fi
32348rm -f core conftest.err conftest.$ac_objext \
32349 conftest$ac_exeext conftest.$ac_ext
32350LIBS=$ac_check_lib_save_LIBS
32351fi
32352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32353$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32354if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32355 have_libwmf='yes'
32356fi
32357
32358 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032359
cristy8b350f62009-11-15 23:12:43 +000032360$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032361
cristy03f7cf92011-12-15 01:40:41 +000032362 WMF_LIBS='-lwmf'
32363 LIBS="$WMF_LIBS $LIBS"
32364 have_wmf='yes'
32365 else
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32367$as_echo "no -- some components failed test" >&6; }
32368 have_wmf='no (failed tests)'
32369 have_wmflite='no (failed tests)'
32370 LIBS="$OLIBS"
32371 WMF_LIBS=''
32372 fi
glennrp33e524b2011-08-24 17:41:57 +000032373 fi
cristy03f7cf92011-12-15 01:40:41 +000032374 fi
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32376$as_echo_n "checking if WMF package is complete... " >&6; }
32377 if test "$have_wmf" = 'yes'; then
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32379$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032380 else
cristy03f7cf92011-12-15 01:40:41 +000032381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32382$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032383 fi
cristy3ed852e2009-09-05 21:47:34 +000032384fi
cristy73bd4a52010-10-05 11:24:23 +000032385 if test "$have_wmf" = 'yes'; then
32386 WMF_DELEGATE_TRUE=
32387 WMF_DELEGATE_FALSE='#'
32388else
32389 WMF_DELEGATE_TRUE='#'
32390 WMF_DELEGATE_FALSE=
32391fi
32392
cristy3ed852e2009-09-05 21:47:34 +000032393
32394
32395
cristy81beccd2011-10-03 18:17:24 +000032396
32397
cristy3ed852e2009-09-05 21:47:34 +000032398#
32399# Check for XML delegate library.
32400#
32401
32402# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032403if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032404 withval=$with_xml; with_xml=$withval
32405else
cristyfc3d0222012-02-07 15:05:57 +000032406 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032407fi
32408
32409
cristy81beccd2011-10-03 18:17:24 +000032410if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32412fi
32413
cristy81beccd2011-10-03 18:17:24 +000032414have_xml='no'
32415XML_LIBS=''
32416if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032417 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32418$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32420$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32422$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032423 PERSIST_LDFLAGS=$LDFLAGS
32424 PERSIST_CPPFLAGS=$CPPFLAGS
32425 xml2_config=''
32426 # Extract the first word of "xml2-config", so it can be a program name with args.
32427set dummy xml2-config; ac_word=$2
32428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32429$as_echo_n "checking for $ac_word... " >&6; }
32430if ${ac_cv_path_xml2_config+:} false; then :
32431 $as_echo_n "(cached) " >&6
32432else
32433 case $xml2_config in
32434 [\\/]* | ?:[\\/]*)
32435 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32436 ;;
32437 *)
32438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32439for as_dir in $PATH
32440do
32441 IFS=$as_save_IFS
32442 test -z "$as_dir" && as_dir=.
32443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032445 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32447 break 2
32448 fi
32449done
32450 done
32451IFS=$as_save_IFS
32452
32453 ;;
32454esac
32455fi
32456xml2_config=$ac_cv_path_xml2_config
32457if test -n "$xml2_config"; then
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32459$as_echo "$xml2_config" >&6; }
32460else
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32462$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032463fi
32464
cristy81beccd2011-10-03 18:17:24 +000032465 if test -n "$xml2_config"; then
32466 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32467 # the shared library installed under /usr/lib, whereas the package
32468 # installs itself under $prefix/libxml and $prefix/lib.
32469 xml2_prefix=`xml2-config --prefix`
32470 if test -d "${xml2_prefix}/include/libxml2"; then
32471 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32472 fi
32473 if test "${xml2_prefix}" != '/usr'; then
32474 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32475 fi
32476 fi
32477 failed=0
32478 passed=0
32479 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32480if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32481 passed=`expr $passed + 1`
32482else
32483 failed=`expr $failed + 1`
32484fi
32485
32486
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32488$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32489if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32490 $as_echo_n "(cached) " >&6
32491else
32492 ac_check_lib_save_LIBS=$LIBS
32493LIBS="-lxml2 $LIBS"
32494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32495/* end confdefs.h. */
32496
32497/* Override any GCC internal prototype to avoid an error.
32498 Use char because int might match the return type of a GCC
32499 builtin and then its argument prototype would still apply. */
32500#ifdef __cplusplus
32501extern "C"
32502#endif
32503char xmlSAXVersion ();
32504int
32505main ()
32506{
32507return xmlSAXVersion ();
32508 ;
32509 return 0;
32510}
32511_ACEOF
32512if ac_fn_c_try_link "$LINENO"; then :
32513 ac_cv_lib_xml2_xmlSAXVersion=yes
32514else
32515 ac_cv_lib_xml2_xmlSAXVersion=no
32516fi
32517rm -f core conftest.err conftest.$ac_objext \
32518 conftest$ac_exeext conftest.$ac_ext
32519LIBS=$ac_check_lib_save_LIBS
32520fi
32521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32522$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32523if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32524 passed=`expr $passed + 1`
32525else
32526 failed=`expr $failed + 1`
32527fi
32528
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32530$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32531if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32532 $as_echo_n "(cached) " >&6
32533else
32534 ac_check_lib_save_LIBS=$LIBS
32535LIBS="-lxml2 $LIBS"
32536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32537/* end confdefs.h. */
32538
32539/* Override any GCC internal prototype to avoid an error.
32540 Use char because int might match the return type of a GCC
32541 builtin and then its argument prototype would still apply. */
32542#ifdef __cplusplus
32543extern "C"
32544#endif
32545char xmlParseChunk ();
32546int
32547main ()
32548{
32549return xmlParseChunk ();
32550 ;
32551 return 0;
32552}
32553_ACEOF
32554if ac_fn_c_try_link "$LINENO"; then :
32555 ac_cv_lib_xml2_xmlParseChunk=yes
32556else
32557 ac_cv_lib_xml2_xmlParseChunk=no
32558fi
32559rm -f core conftest.err conftest.$ac_objext \
32560 conftest$ac_exeext conftest.$ac_ext
32561LIBS=$ac_check_lib_save_LIBS
32562fi
32563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32564$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32565if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32566 passed=`expr $passed + 1`
32567else
32568 failed=`expr $failed + 1`
32569fi
32570
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32572$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32573if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32574 $as_echo_n "(cached) " >&6
32575else
32576 ac_check_lib_save_LIBS=$LIBS
32577LIBS="-lxml2 $LIBS"
32578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32579/* end confdefs.h. */
32580
32581/* Override any GCC internal prototype to avoid an error.
32582 Use char because int might match the return type of a GCC
32583 builtin and then its argument prototype would still apply. */
32584#ifdef __cplusplus
32585extern "C"
32586#endif
32587char xmlCreatePushParserCtxt ();
32588int
32589main ()
32590{
32591return xmlCreatePushParserCtxt ();
32592 ;
32593 return 0;
32594}
32595_ACEOF
32596if ac_fn_c_try_link "$LINENO"; then :
32597 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32598else
32599 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32600fi
32601rm -f core conftest.err conftest.$ac_objext \
32602 conftest$ac_exeext conftest.$ac_ext
32603LIBS=$ac_check_lib_save_LIBS
32604fi
32605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32606$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32607if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32608 passed=`expr $passed + 1`
32609else
32610 failed=`expr $failed + 1`
32611fi
32612
32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32614$as_echo_n "checking if XML package is complete... " >&6; }
32615 if test $passed -gt 0; then
32616 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32618$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032619 have_xml='no (failed tests)'
32620 LDFLAGS="$PERSIST_LDFLAGS"
32621 CPPFLAGS="$PERSIST_CPPFLAGS"
32622 else
32623 XML_LIBS='-lxml2'
32624 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032625
cristy8b350f62009-11-15 23:12:43 +000032626$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032627
cristy09b53e12011-10-14 12:47:22 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32629$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032630 have_xml='yes'
32631 fi
32632 else
cristy09b53e12011-10-14 12:47:22 +000032633 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32634$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032635 fi
32636fi
cristy73bd4a52010-10-05 11:24:23 +000032637 if test "$have_xml" = 'yes'; then
32638 XML_DELEGATE_TRUE=
32639 XML_DELEGATE_FALSE='#'
32640else
32641 XML_DELEGATE_TRUE='#'
32642 XML_DELEGATE_FALSE=
32643fi
32644
cristy3ed852e2009-09-05 21:47:34 +000032645
32646
32647
32648# Substitute compiler name to build/link PerlMagick
32649#
32650
32651
32652#
32653# Configure install Paths
32654#
cristy7def36a2011-10-28 19:04:41 +000032655
cristy2a11bef2011-10-28 18:33:11 +000032656# Path to ImageMagick header files
32657INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032658INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32659DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032660case "${build_os}" in
32661 mingw* )
32662 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32663 ;;
32664esac
32665
32666cat >>confdefs.h <<_ACEOF
32667#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32668_ACEOF
32669
32670
cristy3ed852e2009-09-05 21:47:34 +000032671
32672# Subdirectory under lib to place ImageMagick lib files
32673LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32674
32675cat >>confdefs.h <<_ACEOF
32676#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32677_ACEOF
32678
32679
32680# Path to ImageMagick bin directory
32681EXECUTABLE_PATH="${BIN_DIR}"
32682DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32683case "${build_os}" in
32684 mingw* )
32685 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32686 ;;
32687esac
32688
32689cat >>confdefs.h <<_ACEOF
32690#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32691_ACEOF
32692
32693
32694
32695# Path to ImageMagick lib
32696LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32697DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32698case "${build_os}" in
32699 mingw* )
32700 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32701 ;;
32702esac
32703
32704cat >>confdefs.h <<_ACEOF
32705#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32706_ACEOF
32707
32708
32709
cristy3ed852e2009-09-05 21:47:34 +000032710#
32711# Subdirectory under lib to place ImageMagick coder module files
32712CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32713
32714cat >>confdefs.h <<_ACEOF
32715#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32716_ACEOF
32717
32718CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32719DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32720case "${build_os}" in
32721 mingw* )
32722 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32723 ;;
32724esac
32725
32726cat >>confdefs.h <<_ACEOF
32727#define CODER_PATH "$DEFINE_CODER_PATH"
32728_ACEOF
32729
32730
32731
32732#
32733# Subdirectory under lib to place ImageMagick filter module files
32734FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32735
32736cat >>confdefs.h <<_ACEOF
32737#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32738_ACEOF
32739
32740FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32741DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32742case "${build_os}" in
32743 mingw* )
32744 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32745 ;;
32746esac
32747
32748cat >>confdefs.h <<_ACEOF
32749#define FILTER_PATH "$DEFINE_FILTER_PATH"
32750_ACEOF
32751
32752
32753
32754#
32755# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032756DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032757DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32758DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032759case "${build_os}" in
32760 mingw* )
32761 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32762 ;;
32763esac
32764
32765cat >>confdefs.h <<_ACEOF
32766#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32767_ACEOF
32768
32769
32770
cristy2a11bef2011-10-28 18:33:11 +000032771# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032772CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032773
32774cat >>confdefs.h <<_ACEOF
32775#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32776_ACEOF
32777
cristy7def36a2011-10-28 19:04:41 +000032778CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032779DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32780case "${build_os}" in
32781 mingw* )
32782 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32783 ;;
32784esac
32785
32786cat >>confdefs.h <<_ACEOF
32787#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32788_ACEOF
32789
32790
32791
cristy2a11bef2011-10-28 18:33:11 +000032792# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032793SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032794
32795cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032796#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032797_ACEOF
32798
cristy670aa3c2011-11-03 00:54:00 +000032799SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032800DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032801case "${build_os}" in
32802 mingw* )
cristy4f820712011-04-01 12:35:43 +000032803 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032804 ;;
32805esac
32806
32807cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032808#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032809_ACEOF
32810
32811
32812
cristy408ebcd2011-11-14 01:36:57 +000032813# Subdirectory to place architecture-dependent configuration files
32814SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032815
32816cat >>confdefs.h <<_ACEOF
32817#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32818_ACEOF
32819
cristy408ebcd2011-11-14 01:36:57 +000032820SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32821DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032822case "${build_os}" in
32823 mingw* )
32824 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32825 ;;
32826esac
32827
32828cat >>confdefs.h <<_ACEOF
32829#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32830_ACEOF
32831
32832
32833
cristy3ed852e2009-09-05 21:47:34 +000032834#
32835# program_transform_name is formed for use in a Makefile, so create a
32836# modified version for use in a shell script.
32837configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32838
32839# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032840{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32841$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032844{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32845$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032846AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032847BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032848BZIPDelegateDefault='bzip2'
32849BrowseDelegateDefault='xdg-open'
32850CGMDecodeDelegateDefault='ralcgm'
32851CatDelegateDefault='cat'
32852DNGDecodeDelegateDefault='ufraw-batch'
32853GVCDecodeDelegateDefault='dot'
32854DVIDecodeDelegateDefault='dvips'
32855EchoDelegateDefault='echo'
32856EditorDelegateDefault='xterm'
32857FIGDecodeDelegateDefault='fig2dev'
32858ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32859DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32860MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32861GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032862HPGLDecodeDelegateDefault='hp2xx'
32863HTMLDecodeDelegateDefault='html2ps'
32864ILBMDecodeDelegateDefault='ilbmtoppm'
32865ILBMEncodeDelegateDefault='ppmtoilbm'
32866LPDelegateDefault='lp'
32867LPRDelegateDefault='lpr'
32868LZWDecodeDelegateDefault='uncompress'
32869LZWEncodeDelegateDefault='compress'
32870LaunchDelegateDefault='gimp'
32871MANDelegateDefault='groff'
32872MPEGDecodeDelegateDefault='ffmpeg'
32873MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032874MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032875MVDelegateDefault='mv'
32876PCLDelegateDefault='pcl6'
32877PGPDecodeDelegateDefault='pgpv'
32878POVDelegateDefault='povray'
32879if test "$native_win32_build" = 'yes'; then
32880 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032881elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032882 PSDelegateDefault='gsc'
32883else
32884 PSDelegateDefault='gs'
32885fi
32886RLEEncodeDelegateDefault='rawtorle'
32887RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032888RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032889SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032890SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032891TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032892UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032893WMFDecodeDelegateDefault='wmf2eps'
32894WWWDecodeDelegateDefault='curl'
32895XPSDelegateDefault='gxps'
32896ZipDelegateDefault='gzip'
32897
32898# Search for delegates
32899# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32900set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032903if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032904 $as_echo_n "(cached) " >&6
32905else
32906 case $AutotraceDecodeDelegate in
32907 [\\/]* | ?:[\\/]*)
32908 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32909 ;;
32910 *)
32911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32912for as_dir in $PATH
32913do
32914 IFS=$as_save_IFS
32915 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032918 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920 break 2
32921 fi
32922done
cristy8b350f62009-11-15 23:12:43 +000032923 done
cristy3ed852e2009-09-05 21:47:34 +000032924IFS=$as_save_IFS
32925
32926 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32927 ;;
32928esac
32929fi
32930AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32931if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo "$AutotraceDecodeDelegate" >&6; }
32934else
cristy8b350f62009-11-15 23:12:43 +000032935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936$as_echo "no" >&6; }
32937fi
32938
32939
cristy3ed852e2009-09-05 21:47:34 +000032940# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32941set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032944if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032945 $as_echo_n "(cached) " >&6
32946else
32947 case $BlenderDecodeDelegate in
32948 [\\/]* | ?:[\\/]*)
32949 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32950 ;;
32951 *)
32952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32953for as_dir in $PATH
32954do
32955 IFS=$as_save_IFS
32956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032959 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961 break 2
32962 fi
32963done
cristy8b350f62009-11-15 23:12:43 +000032964 done
cristy3ed852e2009-09-05 21:47:34 +000032965IFS=$as_save_IFS
32966
32967 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32968 ;;
32969esac
32970fi
32971BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32972if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo "$BlenderDecodeDelegate" >&6; }
32975else
cristy8b350f62009-11-15 23:12:43 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo "no" >&6; }
32978fi
32979
32980
32981# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32982set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032985if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032986 $as_echo_n "(cached) " >&6
32987else
32988 case $BZIPDelegate in
32989 [\\/]* | ?:[\\/]*)
32990 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32991 ;;
32992 *)
32993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32994for as_dir in $PATH
32995do
32996 IFS=$as_save_IFS
32997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033000 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002 break 2
33003 fi
33004done
cristy8b350f62009-11-15 23:12:43 +000033005 done
cristy3ed852e2009-09-05 21:47:34 +000033006IFS=$as_save_IFS
33007
33008 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33009 ;;
33010esac
33011fi
33012BZIPDelegate=$ac_cv_path_BZIPDelegate
33013if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo "$BZIPDelegate" >&6; }
33016else
cristy8b350f62009-11-15 23:12:43 +000033017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo "no" >&6; }
33019fi
33020
33021
33022# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
33023set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033026if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033027 $as_echo_n "(cached) " >&6
33028else
33029 case $BrowseDelegate in
33030 [\\/]* | ?:[\\/]*)
33031 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33032 ;;
33033 *)
33034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33035for as_dir in $PATH
33036do
33037 IFS=$as_save_IFS
33038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033041 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043 break 2
33044 fi
33045done
cristy8b350f62009-11-15 23:12:43 +000033046 done
cristy3ed852e2009-09-05 21:47:34 +000033047IFS=$as_save_IFS
33048
33049 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
33050 ;;
33051esac
33052fi
33053BrowseDelegate=$ac_cv_path_BrowseDelegate
33054if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo "$BrowseDelegate" >&6; }
33057else
cristy8b350f62009-11-15 23:12:43 +000033058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo "no" >&6; }
33060fi
33061
33062
33063# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33064set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033067if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033068 $as_echo_n "(cached) " >&6
33069else
33070 case $CGMDecodeDelegate in
33071 [\\/]* | ?:[\\/]*)
33072 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33073 ;;
33074 *)
33075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33076for as_dir in $PATH
33077do
33078 IFS=$as_save_IFS
33079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033082 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084 break 2
33085 fi
33086done
cristy8b350f62009-11-15 23:12:43 +000033087 done
cristy3ed852e2009-09-05 21:47:34 +000033088IFS=$as_save_IFS
33089
33090 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33091 ;;
33092esac
33093fi
33094CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33095if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo "$CGMDecodeDelegate" >&6; }
33098else
cristy8b350f62009-11-15 23:12:43 +000033099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100$as_echo "no" >&6; }
33101fi
33102
33103
33104# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33105set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033108if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033109 $as_echo_n "(cached) " >&6
33110else
33111 case $CatDelegate in
33112 [\\/]* | ?:[\\/]*)
33113 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33114 ;;
33115 *)
33116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33117for as_dir in $PATH
33118do
33119 IFS=$as_save_IFS
33120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033123 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033125 break 2
33126 fi
33127done
cristy8b350f62009-11-15 23:12:43 +000033128 done
cristy3ed852e2009-09-05 21:47:34 +000033129IFS=$as_save_IFS
33130
33131 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33132 ;;
33133esac
33134fi
33135CatDelegate=$ac_cv_path_CatDelegate
33136if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo "$CatDelegate" >&6; }
33139else
cristy8b350f62009-11-15 23:12:43 +000033140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141$as_echo "no" >&6; }
33142fi
33143
33144
33145# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33146set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033149if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033150 $as_echo_n "(cached) " >&6
33151else
33152 case $DNGDecodeDelegate in
33153 [\\/]* | ?:[\\/]*)
33154 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33155 ;;
33156 *)
33157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33158for as_dir in $PATH
33159do
33160 IFS=$as_save_IFS
33161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033164 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033166 break 2
33167 fi
33168done
cristy8b350f62009-11-15 23:12:43 +000033169 done
cristy3ed852e2009-09-05 21:47:34 +000033170IFS=$as_save_IFS
33171
33172 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33173 ;;
33174esac
33175fi
33176DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33177if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo "$DNGDecodeDelegate" >&6; }
33180else
cristy8b350f62009-11-15 23:12:43 +000033181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo "no" >&6; }
33183fi
33184
33185
33186# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33187set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033190if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033191 $as_echo_n "(cached) " >&6
33192else
33193 case $GVCDecodeDelegate in
33194 [\\/]* | ?:[\\/]*)
33195 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33196 ;;
33197 *)
33198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33199for as_dir in $PATH
33200do
33201 IFS=$as_save_IFS
33202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033205 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033207 break 2
33208 fi
33209done
cristy8b350f62009-11-15 23:12:43 +000033210 done
cristy3ed852e2009-09-05 21:47:34 +000033211IFS=$as_save_IFS
33212
33213 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33214 ;;
33215esac
33216fi
33217GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33218if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo "$GVCDecodeDelegate" >&6; }
33221else
cristy8b350f62009-11-15 23:12:43 +000033222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033223$as_echo "no" >&6; }
33224fi
33225
33226
33227# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33228set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033231if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033232 $as_echo_n "(cached) " >&6
33233else
33234 case $DVIDecodeDelegate in
33235 [\\/]* | ?:[\\/]*)
33236 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33237 ;;
33238 *)
33239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33240for as_dir in $PATH
33241do
33242 IFS=$as_save_IFS
33243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033246 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033248 break 2
33249 fi
33250done
cristy8b350f62009-11-15 23:12:43 +000033251 done
cristy3ed852e2009-09-05 21:47:34 +000033252IFS=$as_save_IFS
33253
33254 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33255 ;;
33256esac
33257fi
33258DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33259if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo "$DVIDecodeDelegate" >&6; }
33262else
cristy8b350f62009-11-15 23:12:43 +000033263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264$as_echo "no" >&6; }
33265fi
33266
33267
33268# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33269set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033272if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033273 $as_echo_n "(cached) " >&6
33274else
33275 case $EchoDelegate in
33276 [\\/]* | ?:[\\/]*)
33277 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33278 ;;
33279 *)
33280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33281for as_dir in $PATH
33282do
33283 IFS=$as_save_IFS
33284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033287 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289 break 2
33290 fi
33291done
cristy8b350f62009-11-15 23:12:43 +000033292 done
cristy3ed852e2009-09-05 21:47:34 +000033293IFS=$as_save_IFS
33294
33295 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33296 ;;
33297esac
33298fi
33299EchoDelegate=$ac_cv_path_EchoDelegate
33300if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033302$as_echo "$EchoDelegate" >&6; }
33303else
cristy8b350f62009-11-15 23:12:43 +000033304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305$as_echo "no" >&6; }
33306fi
33307
33308
33309# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33310set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033313if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033314 $as_echo_n "(cached) " >&6
33315else
33316 case $EditorDelegate in
33317 [\\/]* | ?:[\\/]*)
33318 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33319 ;;
33320 *)
33321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33322for as_dir in $PATH
33323do
33324 IFS=$as_save_IFS
33325 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033328 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330 break 2
33331 fi
33332done
cristy8b350f62009-11-15 23:12:43 +000033333 done
cristy3ed852e2009-09-05 21:47:34 +000033334IFS=$as_save_IFS
33335
33336 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33337 ;;
33338esac
33339fi
33340EditorDelegate=$ac_cv_path_EditorDelegate
33341if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo "$EditorDelegate" >&6; }
33344else
cristy8b350f62009-11-15 23:12:43 +000033345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo "no" >&6; }
33347fi
33348
33349
33350# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33351set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033354if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033355 $as_echo_n "(cached) " >&6
33356else
33357 case $FIGDecodeDelegate in
33358 [\\/]* | ?:[\\/]*)
33359 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33360 ;;
33361 *)
33362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33363for as_dir in $PATH
33364do
33365 IFS=$as_save_IFS
33366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033369 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033371 break 2
33372 fi
33373done
cristy8b350f62009-11-15 23:12:43 +000033374 done
cristy3ed852e2009-09-05 21:47:34 +000033375IFS=$as_save_IFS
33376
33377 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33378 ;;
33379esac
33380fi
33381FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33382if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo "$FIGDecodeDelegate" >&6; }
33385else
cristy8b350f62009-11-15 23:12:43 +000033386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo "no" >&6; }
33388fi
33389
33390
33391# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33392set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033395if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033396 $as_echo_n "(cached) " >&6
33397else
33398 case $ConvertDelegate in
33399 [\\/]* | ?:[\\/]*)
33400 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33401 ;;
33402 *)
33403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33404for as_dir in $PATH
33405do
33406 IFS=$as_save_IFS
33407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033410 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033412 break 2
33413 fi
33414done
cristy8b350f62009-11-15 23:12:43 +000033415 done
cristy3ed852e2009-09-05 21:47:34 +000033416IFS=$as_save_IFS
33417
33418 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33419 ;;
33420esac
33421fi
33422ConvertDelegate=$ac_cv_path_ConvertDelegate
33423if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo "$ConvertDelegate" >&6; }
33426else
cristy8b350f62009-11-15 23:12:43 +000033427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033428$as_echo "no" >&6; }
33429fi
33430
33431
33432# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33433set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033436if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033437 $as_echo_n "(cached) " >&6
33438else
33439 case $DisplayDelegate in
33440 [\\/]* | ?:[\\/]*)
33441 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33442 ;;
33443 *)
33444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33445for as_dir in $PATH
33446do
33447 IFS=$as_save_IFS
33448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033451 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033453 break 2
33454 fi
33455done
cristy8b350f62009-11-15 23:12:43 +000033456 done
cristy3ed852e2009-09-05 21:47:34 +000033457IFS=$as_save_IFS
33458
33459 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33460 ;;
33461esac
33462fi
33463DisplayDelegate=$ac_cv_path_DisplayDelegate
33464if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "$DisplayDelegate" >&6; }
33467else
cristy8b350f62009-11-15 23:12:43 +000033468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033469$as_echo "no" >&6; }
33470fi
33471
33472
33473# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33474set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033477if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033478 $as_echo_n "(cached) " >&6
33479else
33480 case $MogrifyDelegate in
33481 [\\/]* | ?:[\\/]*)
33482 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33483 ;;
33484 *)
33485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33486for as_dir in $PATH
33487do
33488 IFS=$as_save_IFS
33489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033492 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033494 break 2
33495 fi
33496done
cristy8b350f62009-11-15 23:12:43 +000033497 done
cristy3ed852e2009-09-05 21:47:34 +000033498IFS=$as_save_IFS
33499
33500 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33501 ;;
33502esac
33503fi
33504MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33505if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033507$as_echo "$MogrifyDelegate" >&6; }
33508else
cristy8b350f62009-11-15 23:12:43 +000033509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo "no" >&6; }
33511fi
33512
33513
33514# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33515set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033518if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033519 $as_echo_n "(cached) " >&6
33520else
33521 case $GnuplotDecodeDelegate in
33522 [\\/]* | ?:[\\/]*)
33523 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33524 ;;
33525 *)
33526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33527for as_dir in $PATH
33528do
33529 IFS=$as_save_IFS
33530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033533 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033535 break 2
33536 fi
33537done
cristy8b350f62009-11-15 23:12:43 +000033538 done
cristy3ed852e2009-09-05 21:47:34 +000033539IFS=$as_save_IFS
33540
33541 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33542 ;;
33543esac
33544fi
33545GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33546if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "$GnuplotDecodeDelegate" >&6; }
33549else
cristy8b350f62009-11-15 23:12:43 +000033550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551$as_echo "no" >&6; }
33552fi
33553
33554
cristy3ed852e2009-09-05 21:47:34 +000033555# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33556set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033559if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033560 $as_echo_n "(cached) " >&6
33561else
33562 case $HPGLDecodeDelegate in
33563 [\\/]* | ?:[\\/]*)
33564 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33565 ;;
33566 *)
33567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33568for as_dir in $PATH
33569do
33570 IFS=$as_save_IFS
33571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033574 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033576 break 2
33577 fi
33578done
cristy8b350f62009-11-15 23:12:43 +000033579 done
cristy3ed852e2009-09-05 21:47:34 +000033580IFS=$as_save_IFS
33581
33582 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33583 ;;
33584esac
33585fi
33586HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33587if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo "$HPGLDecodeDelegate" >&6; }
33590else
cristy8b350f62009-11-15 23:12:43 +000033591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033592$as_echo "no" >&6; }
33593fi
33594
33595
33596# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33597set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033600if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033601 $as_echo_n "(cached) " >&6
33602else
33603 case $HTMLDecodeDelegate in
33604 [\\/]* | ?:[\\/]*)
33605 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33606 ;;
33607 *)
33608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33609for as_dir in $PATH
33610do
33611 IFS=$as_save_IFS
33612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033615 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033617 break 2
33618 fi
33619done
cristy8b350f62009-11-15 23:12:43 +000033620 done
cristy3ed852e2009-09-05 21:47:34 +000033621IFS=$as_save_IFS
33622
33623 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33624 ;;
33625esac
33626fi
33627HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33628if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo "$HTMLDecodeDelegate" >&6; }
33631else
cristy8b350f62009-11-15 23:12:43 +000033632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo "no" >&6; }
33634fi
33635
33636
33637# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33638set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033641if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033642 $as_echo_n "(cached) " >&6
33643else
33644 case $ILBMDecodeDelegate in
33645 [\\/]* | ?:[\\/]*)
33646 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33647 ;;
33648 *)
33649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33650for as_dir in $PATH
33651do
33652 IFS=$as_save_IFS
33653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033656 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658 break 2
33659 fi
33660done
cristy8b350f62009-11-15 23:12:43 +000033661 done
cristy3ed852e2009-09-05 21:47:34 +000033662IFS=$as_save_IFS
33663
33664 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33665 ;;
33666esac
33667fi
33668ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33669if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "$ILBMDecodeDelegate" >&6; }
33672else
cristy8b350f62009-11-15 23:12:43 +000033673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo "no" >&6; }
33675fi
33676
33677
33678# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33679set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033682if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033683 $as_echo_n "(cached) " >&6
33684else
33685 case $ILBMEncodeDelegate in
33686 [\\/]* | ?:[\\/]*)
33687 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33688 ;;
33689 *)
33690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33691for as_dir in $PATH
33692do
33693 IFS=$as_save_IFS
33694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033697 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699 break 2
33700 fi
33701done
cristy8b350f62009-11-15 23:12:43 +000033702 done
cristy3ed852e2009-09-05 21:47:34 +000033703IFS=$as_save_IFS
33704
33705 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33706 ;;
33707esac
33708fi
33709ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33710if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo "$ILBMEncodeDelegate" >&6; }
33713else
cristy8b350f62009-11-15 23:12:43 +000033714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo "no" >&6; }
33716fi
33717
33718
33719# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33720set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033723if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033724 $as_echo_n "(cached) " >&6
33725else
33726 case $LPDelegate in
33727 [\\/]* | ?:[\\/]*)
33728 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33729 ;;
33730 *)
33731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33732for as_dir in $PATH
33733do
33734 IFS=$as_save_IFS
33735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033738 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740 break 2
33741 fi
33742done
cristy8b350f62009-11-15 23:12:43 +000033743 done
cristy3ed852e2009-09-05 21:47:34 +000033744IFS=$as_save_IFS
33745
33746 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33747 ;;
33748esac
33749fi
33750LPDelegate=$ac_cv_path_LPDelegate
33751if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033753$as_echo "$LPDelegate" >&6; }
33754else
cristy8b350f62009-11-15 23:12:43 +000033755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo "no" >&6; }
33757fi
33758
33759
33760# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33761set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033764if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033765 $as_echo_n "(cached) " >&6
33766else
33767 case $LPRDelegate in
33768 [\\/]* | ?:[\\/]*)
33769 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33770 ;;
33771 *)
33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33773for as_dir in $PATH
33774do
33775 IFS=$as_save_IFS
33776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033779 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781 break 2
33782 fi
33783done
cristy8b350f62009-11-15 23:12:43 +000033784 done
cristy3ed852e2009-09-05 21:47:34 +000033785IFS=$as_save_IFS
33786
33787 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33788 ;;
33789esac
33790fi
33791LPRDelegate=$ac_cv_path_LPRDelegate
33792if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "$LPRDelegate" >&6; }
33795else
cristy8b350f62009-11-15 23:12:43 +000033796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo "no" >&6; }
33798fi
33799
33800
33801# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33802set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033805if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033806 $as_echo_n "(cached) " >&6
33807else
33808 case $LZWDecodeDelegate in
33809 [\\/]* | ?:[\\/]*)
33810 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33811 ;;
33812 *)
33813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33814for as_dir in $PATH
33815do
33816 IFS=$as_save_IFS
33817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033820 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033822 break 2
33823 fi
33824done
cristy8b350f62009-11-15 23:12:43 +000033825 done
cristy3ed852e2009-09-05 21:47:34 +000033826IFS=$as_save_IFS
33827
33828 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33829 ;;
33830esac
33831fi
33832LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33833if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "$LZWDecodeDelegate" >&6; }
33836else
cristy8b350f62009-11-15 23:12:43 +000033837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo "no" >&6; }
33839fi
33840
33841
33842# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33843set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033846if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033847 $as_echo_n "(cached) " >&6
33848else
33849 case $LZWEncodeDelegate in
33850 [\\/]* | ?:[\\/]*)
33851 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33852 ;;
33853 *)
33854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33855for as_dir in $PATH
33856do
33857 IFS=$as_save_IFS
33858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033861 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033863 break 2
33864 fi
33865done
cristy8b350f62009-11-15 23:12:43 +000033866 done
cristy3ed852e2009-09-05 21:47:34 +000033867IFS=$as_save_IFS
33868
33869 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33870 ;;
33871esac
33872fi
33873LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33874if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo "$LZWEncodeDelegate" >&6; }
33877else
cristy8b350f62009-11-15 23:12:43 +000033878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033879$as_echo "no" >&6; }
33880fi
33881
33882
33883# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33884set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033887if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033888 $as_echo_n "(cached) " >&6
33889else
33890 case $LaunchDelegate in
33891 [\\/]* | ?:[\\/]*)
33892 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33893 ;;
33894 *)
33895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33896for as_dir in $PATH
33897do
33898 IFS=$as_save_IFS
33899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033902 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033904 break 2
33905 fi
33906done
cristy8b350f62009-11-15 23:12:43 +000033907 done
cristy3ed852e2009-09-05 21:47:34 +000033908IFS=$as_save_IFS
33909
33910 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33911 ;;
33912esac
33913fi
33914LaunchDelegate=$ac_cv_path_LaunchDelegate
33915if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033917$as_echo "$LaunchDelegate" >&6; }
33918else
cristy8b350f62009-11-15 23:12:43 +000033919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033920$as_echo "no" >&6; }
33921fi
33922
33923
33924# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33925set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033928if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033929 $as_echo_n "(cached) " >&6
33930else
33931 case $MANDelegate in
33932 [\\/]* | ?:[\\/]*)
33933 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33934 ;;
33935 *)
33936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33937for as_dir in $PATH
33938do
33939 IFS=$as_save_IFS
33940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033943 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033945 break 2
33946 fi
33947done
cristy8b350f62009-11-15 23:12:43 +000033948 done
cristy3ed852e2009-09-05 21:47:34 +000033949IFS=$as_save_IFS
33950
33951 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33952 ;;
33953esac
33954fi
33955MANDelegate=$ac_cv_path_MANDelegate
33956if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo "$MANDelegate" >&6; }
33959else
cristy8b350f62009-11-15 23:12:43 +000033960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033961$as_echo "no" >&6; }
33962fi
33963
33964
33965# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33966set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033969if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033970 $as_echo_n "(cached) " >&6
33971else
33972 case $MPEGDecodeDelegate in
33973 [\\/]* | ?:[\\/]*)
33974 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33975 ;;
33976 *)
33977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33978for as_dir in $PATH
33979do
33980 IFS=$as_save_IFS
33981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033984 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033986 break 2
33987 fi
33988done
cristy8b350f62009-11-15 23:12:43 +000033989 done
cristy3ed852e2009-09-05 21:47:34 +000033990IFS=$as_save_IFS
33991
33992 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33993 ;;
33994esac
33995fi
33996MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33997if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "$MPEGDecodeDelegate" >&6; }
34000else
cristy8b350f62009-11-15 23:12:43 +000034001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo "no" >&6; }
34003fi
34004
34005
34006# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34007set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034010if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034011 $as_echo_n "(cached) " >&6
34012else
34013 case $MPEGEncodeDelegate in
34014 [\\/]* | ?:[\\/]*)
34015 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34016 ;;
34017 *)
34018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34019for as_dir in $PATH
34020do
34021 IFS=$as_save_IFS
34022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034025 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027 break 2
34028 fi
34029done
cristy8b350f62009-11-15 23:12:43 +000034030 done
cristy3ed852e2009-09-05 21:47:34 +000034031IFS=$as_save_IFS
34032
34033 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34034 ;;
34035esac
34036fi
34037MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34038if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo "$MPEGEncodeDelegate" >&6; }
34041else
cristy8b350f62009-11-15 23:12:43 +000034042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo "no" >&6; }
34044fi
34045
34046
cristy935c86e2010-06-05 23:50:07 +000034047# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34048set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034051if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034052 $as_echo_n "(cached) " >&6
34053else
34054 case $MrSIDDecodeDelegate in
34055 [\\/]* | ?:[\\/]*)
34056 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34057 ;;
34058 *)
34059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34060for as_dir in $PATH
34061do
34062 IFS=$as_save_IFS
34063 test -z "$as_dir" && as_dir=.
34064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034066 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34068 break 2
34069 fi
34070done
34071 done
34072IFS=$as_save_IFS
34073
34074 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34075 ;;
34076esac
34077fi
34078MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34079if test -n "$MrSIDDecodeDelegate"; then
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34081$as_echo "$MrSIDDecodeDelegate" >&6; }
34082else
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34084$as_echo "no" >&6; }
34085fi
34086
34087
cristy3ed852e2009-09-05 21:47:34 +000034088# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34089set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034092if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034093 $as_echo_n "(cached) " >&6
34094else
34095 case $MVDelegate in
34096 [\\/]* | ?:[\\/]*)
34097 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34098 ;;
34099 *)
34100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34101for as_dir in $PATH
34102do
34103 IFS=$as_save_IFS
34104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034107 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034109 break 2
34110 fi
34111done
cristy8b350f62009-11-15 23:12:43 +000034112 done
cristy3ed852e2009-09-05 21:47:34 +000034113IFS=$as_save_IFS
34114
34115 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34116 ;;
34117esac
34118fi
34119MVDelegate=$ac_cv_path_MVDelegate
34120if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "$MVDelegate" >&6; }
34123else
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo "no" >&6; }
34126fi
34127
34128
34129# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34130set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034133if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034134 $as_echo_n "(cached) " >&6
34135else
34136 case $PCLDelegate in
34137 [\\/]* | ?:[\\/]*)
34138 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34139 ;;
34140 *)
34141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34142for as_dir in $PATH
34143do
34144 IFS=$as_save_IFS
34145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034148 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034150 break 2
34151 fi
34152done
cristy8b350f62009-11-15 23:12:43 +000034153 done
cristy3ed852e2009-09-05 21:47:34 +000034154IFS=$as_save_IFS
34155
34156 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34157 ;;
34158esac
34159fi
34160PCLDelegate=$ac_cv_path_PCLDelegate
34161if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034163$as_echo "$PCLDelegate" >&6; }
34164else
cristy8b350f62009-11-15 23:12:43 +000034165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034166$as_echo "no" >&6; }
34167fi
34168
34169
34170# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34171set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034174if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034175 $as_echo_n "(cached) " >&6
34176else
34177 case $PGPDecodeDelegate in
34178 [\\/]* | ?:[\\/]*)
34179 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34180 ;;
34181 *)
34182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34183for as_dir in $PATH
34184do
34185 IFS=$as_save_IFS
34186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034189 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034191 break 2
34192 fi
34193done
cristy8b350f62009-11-15 23:12:43 +000034194 done
cristy3ed852e2009-09-05 21:47:34 +000034195IFS=$as_save_IFS
34196
34197 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34198 ;;
34199esac
34200fi
34201PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34202if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "$PGPDecodeDelegate" >&6; }
34205else
cristy8b350f62009-11-15 23:12:43 +000034206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo "no" >&6; }
34208fi
34209
34210
34211# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34212set dummy "$POVDelegateDefault"; 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_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034216 $as_echo_n "(cached) " >&6
34217else
34218 case $POVDelegate in
34219 [\\/]* | ?:[\\/]*)
34220 ac_cv_path_POVDelegate="$POVDelegate" # 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_POVDelegate="$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 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34239 ;;
34240esac
34241fi
34242POVDelegate=$ac_cv_path_POVDelegate
34243if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo "$POVDelegate" >&6; }
34246else
cristy8b350f62009-11-15 23:12:43 +000034247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034248$as_echo "no" >&6; }
34249fi
34250
34251
34252for ac_prog in gsx gsc "$PSDelegateDefault"
34253do
34254 # Extract the first word of "$ac_prog", so it can be a program name with args.
34255set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034258if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034259 $as_echo_n "(cached) " >&6
34260else
34261 case $PSDelegate in
34262 [\\/]* | ?:[\\/]*)
34263 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34264 ;;
34265 *)
34266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34267for as_dir in $PATH
34268do
34269 IFS=$as_save_IFS
34270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034273 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275 break 2
34276 fi
34277done
cristy8b350f62009-11-15 23:12:43 +000034278 done
cristy3ed852e2009-09-05 21:47:34 +000034279IFS=$as_save_IFS
34280
34281 ;;
34282esac
34283fi
34284PSDelegate=$ac_cv_path_PSDelegate
34285if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo "$PSDelegate" >&6; }
34288else
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "no" >&6; }
34291fi
34292
34293
34294 test -n "$PSDelegate" && break
34295done
34296test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34297
34298# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34299set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034302if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034303 $as_echo_n "(cached) " >&6
34304else
34305 case $RLEEncodeDelegate in
34306 [\\/]* | ?:[\\/]*)
34307 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34308 ;;
34309 *)
34310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34311for as_dir in $PATH
34312do
34313 IFS=$as_save_IFS
34314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034317 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319 break 2
34320 fi
34321done
cristy8b350f62009-11-15 23:12:43 +000034322 done
cristy3ed852e2009-09-05 21:47:34 +000034323IFS=$as_save_IFS
34324
34325 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34326 ;;
34327esac
34328fi
34329RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34330if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "$RLEEncodeDelegate" >&6; }
34333else
cristy8b350f62009-11-15 23:12:43 +000034334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo "no" >&6; }
34336fi
34337
34338
34339# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34340set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034343if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034344 $as_echo_n "(cached) " >&6
34345else
34346 case $RMDelegate in
34347 [\\/]* | ?:[\\/]*)
34348 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34349 ;;
34350 *)
34351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34352for as_dir in $PATH
34353do
34354 IFS=$as_save_IFS
34355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034358 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360 break 2
34361 fi
34362done
cristy8b350f62009-11-15 23:12:43 +000034363 done
cristy3ed852e2009-09-05 21:47:34 +000034364IFS=$as_save_IFS
34365
34366 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34367 ;;
34368esac
34369fi
34370RMDelegate=$ac_cv_path_RMDelegate
34371if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034373$as_echo "$RMDelegate" >&6; }
34374else
cristy8b350f62009-11-15 23:12:43 +000034375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034376$as_echo "no" >&6; }
34377fi
34378
34379
cristy4689cf02010-02-17 21:15:45 +000034380# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34381set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034384if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034385 $as_echo_n "(cached) " >&6
34386else
34387 case $RSVGDecodeDelegate in
34388 [\\/]* | ?:[\\/]*)
34389 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34390 ;;
34391 *)
34392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34393for as_dir in $PATH
34394do
34395 IFS=$as_save_IFS
34396 test -z "$as_dir" && as_dir=.
34397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034399 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34401 break 2
34402 fi
34403done
34404 done
34405IFS=$as_save_IFS
34406
34407 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34408 ;;
34409esac
34410fi
34411RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34412if test -n "$RSVGDecodeDelegate"; then
34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34414$as_echo "$RSVGDecodeDelegate" >&6; }
34415else
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34417$as_echo "no" >&6; }
34418fi
34419
34420
cristy3ed852e2009-09-05 21:47:34 +000034421# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34422set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034425if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034426 $as_echo_n "(cached) " >&6
34427else
34428 case $SCANDecodeDelegate in
34429 [\\/]* | ?:[\\/]*)
34430 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34431 ;;
34432 *)
34433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34434for as_dir in $PATH
34435do
34436 IFS=$as_save_IFS
34437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034440 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034442 break 2
34443 fi
34444done
cristy8b350f62009-11-15 23:12:43 +000034445 done
cristy3ed852e2009-09-05 21:47:34 +000034446IFS=$as_save_IFS
34447
34448 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34449 ;;
34450esac
34451fi
34452SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34453if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034455$as_echo "$SCANDecodeDelegate" >&6; }
34456else
cristy8b350f62009-11-15 23:12:43 +000034457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034458$as_echo "no" >&6; }
34459fi
34460
34461
cristyec6934f2012-08-14 18:38:40 +000034462# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34463set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34465$as_echo_n "checking for $ac_word... " >&6; }
34466if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34467 $as_echo_n "(cached) " >&6
34468else
34469 case $SVGDecodeDelegate in
34470 [\\/]* | ?:[\\/]*)
34471 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34472 ;;
34473 *)
34474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34475for as_dir in $PATH
34476do
34477 IFS=$as_save_IFS
34478 test -z "$as_dir" && as_dir=.
34479 for ac_exec_ext in '' $ac_executable_extensions; do
34480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34481 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34483 break 2
34484 fi
34485done
34486 done
34487IFS=$as_save_IFS
34488
34489 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34490 ;;
34491esac
34492fi
34493SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34494if test -n "$SVGDecodeDelegate"; then
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34496$as_echo "$SVGDecodeDelegate" >&6; }
34497else
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34499$as_echo "no" >&6; }
34500fi
34501
34502
cristy3ed852e2009-09-05 21:47:34 +000034503# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34504set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034507if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034508 $as_echo_n "(cached) " >&6
34509else
34510 case $TXTDelegate in
34511 [\\/]* | ?:[\\/]*)
34512 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34513 ;;
34514 *)
34515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34516for as_dir in $PATH
34517do
34518 IFS=$as_save_IFS
34519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034522 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034524 break 2
34525 fi
34526done
cristy8b350f62009-11-15 23:12:43 +000034527 done
cristy3ed852e2009-09-05 21:47:34 +000034528IFS=$as_save_IFS
34529
34530 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34531 ;;
34532esac
34533fi
34534TXTDelegate=$ac_cv_path_TXTDelegate
34535if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo "$TXTDelegate" >&6; }
34538else
cristy8b350f62009-11-15 23:12:43 +000034539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034540$as_echo "no" >&6; }
34541fi
34542
34543
cristy5ac9ac82010-07-29 13:24:24 +000034544# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34545set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034548if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034549 $as_echo_n "(cached) " >&6
34550else
34551 case $UniconvertorDelegate in
34552 [\\/]* | ?:[\\/]*)
34553 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34554 ;;
34555 *)
34556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34557for as_dir in $PATH
34558do
34559 IFS=$as_save_IFS
34560 test -z "$as_dir" && as_dir=.
34561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034563 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34565 break 2
34566 fi
34567done
34568 done
34569IFS=$as_save_IFS
34570
34571 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34572 ;;
34573esac
34574fi
34575UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34576if test -n "$UniconvertorDelegate"; then
34577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34578$as_echo "$UniconvertorDelegate" >&6; }
34579else
34580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34581$as_echo "no" >&6; }
34582fi
34583
34584
cristy3ed852e2009-09-05 21:47:34 +000034585# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34586set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034589if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034590 $as_echo_n "(cached) " >&6
34591else
34592 case $WMFDecodeDelegate in
34593 [\\/]* | ?:[\\/]*)
34594 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34595 ;;
34596 *)
34597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34598for as_dir in $PATH
34599do
34600 IFS=$as_save_IFS
34601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034604 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034606 break 2
34607 fi
34608done
cristy8b350f62009-11-15 23:12:43 +000034609 done
cristy3ed852e2009-09-05 21:47:34 +000034610IFS=$as_save_IFS
34611
34612 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34613 ;;
34614esac
34615fi
34616WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34617if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "$WMFDecodeDelegate" >&6; }
34620else
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo "no" >&6; }
34623fi
34624
34625
34626# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34627set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034630if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034631 $as_echo_n "(cached) " >&6
34632else
34633 case $WWWDecodeDelegate in
34634 [\\/]* | ?:[\\/]*)
34635 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34636 ;;
34637 *)
34638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34639for as_dir in $PATH
34640do
34641 IFS=$as_save_IFS
34642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034645 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647 break 2
34648 fi
34649done
cristy8b350f62009-11-15 23:12:43 +000034650 done
cristy3ed852e2009-09-05 21:47:34 +000034651IFS=$as_save_IFS
34652
34653 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34654 ;;
34655esac
34656fi
34657WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34658if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "$WWWDecodeDelegate" >&6; }
34661else
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo "no" >&6; }
34664fi
34665
34666
34667# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34668set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034671if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034672 $as_echo_n "(cached) " >&6
34673else
34674 case $XPSDelegate in
34675 [\\/]* | ?:[\\/]*)
34676 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34677 ;;
34678 *)
34679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34680for as_dir in $PATH
34681do
34682 IFS=$as_save_IFS
34683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034686 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688 break 2
34689 fi
34690done
cristy8b350f62009-11-15 23:12:43 +000034691 done
cristy3ed852e2009-09-05 21:47:34 +000034692IFS=$as_save_IFS
34693
34694 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34695 ;;
34696esac
34697fi
34698XPSDelegate=$ac_cv_path_XPSDelegate
34699if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo "$XPSDelegate" >&6; }
34702else
cristy8b350f62009-11-15 23:12:43 +000034703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034704$as_echo "no" >&6; }
34705fi
34706
34707
34708# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34709set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034712if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034713 $as_echo_n "(cached) " >&6
34714else
34715 case $ZipDelegate in
34716 [\\/]* | ?:[\\/]*)
34717 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34718 ;;
34719 *)
34720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34721for as_dir in $PATH
34722do
34723 IFS=$as_save_IFS
34724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034727 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034729 break 2
34730 fi
34731done
cristy8b350f62009-11-15 23:12:43 +000034732 done
cristy3ed852e2009-09-05 21:47:34 +000034733IFS=$as_save_IFS
34734
34735 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34736 ;;
34737esac
34738fi
34739ZipDelegate=$ac_cv_path_ZipDelegate
34740if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo "$ZipDelegate" >&6; }
34743else
cristy8b350f62009-11-15 23:12:43 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745$as_echo "no" >&6; }
34746fi
34747
34748
34749
34750# Prefer lpr to lp; lp needs options tacked on.
34751if test "$LPRDelegate" != no; then
34752 PrintDelegate="$LPRDelegate"
34753else
34754 PrintDelegate="$LPDelegate -c -s"
34755fi
34756
34757
34758# Installed ImageMagick utiltity paths
34759ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34760DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34761MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34762
34763# Set delegate booleans
34764have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34765have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34766have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34767have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34768have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034769have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034770have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34771have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034772have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34773have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34774
34775#
34776# Test for font directories
34777#
34778type_include_files=''
34779
cristy430a7312010-01-21 20:44:04 +000034780# Dejavu fonts.
34781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34782$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34783dejavu_font_dir=''
34784if test "${with_dejavu_font_dir}" != 'default'; then
34785 dejavu_font_dir="${with_dejavu_font_dir}/"
34786else
34787 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34788 if test -f "${font_dir}DejaVuSerif.ttf"; then
34789 dejavu_font_dir="${font_dir}"
34790 break 1
34791 fi
34792 done
34793fi
34794if test "${dejavu_font_dir}x" != 'x'; then
34795 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34797$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034798else
cristy09b53e12011-10-14 12:47:22 +000034799 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34800$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034801fi
34802
34803
cristy3ed852e2009-09-05 21:47:34 +000034804# Windows
34805windows_font_dir=''
34806if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34807 windows_font_dir="${with_windows_font_dir}/"
34808fi
cristy430a7312010-01-21 20:44:04 +000034809if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034810 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34811 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34812 fi
34813 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34814 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34815 fi
34816 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34817 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34818 fi
34819fi
cristy430a7312010-01-21 20:44:04 +000034820if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034821 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34822fi
34823
34824
34825# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34828ghostscript_font_dir=''
34829if test "${with_gs_font_dir}" != 'default'; then
34830 ghostscript_font_dir="${with_gs_font_dir}/"
34831else
34832 if test "${native_win32_build}" = 'yes'; then
34833 # Native Windows Build
34834 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34835 if test -f "${font_dir}a010013l.pfb"; then
34836 ghostscript_font_dir="$font_dir"
34837 break 1
34838 fi
34839 done
34840 if test "${PSDelegate}" != 'gswin32c'; then
34841 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34842 fi
34843 else
34844 # Linux / Mac OS X / Unix Build
34845 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
34846 if test -f "${font_dir}a010013l.pfb"; then
34847 ghostscript_font_dir="${font_dir}"
34848 break 1
34849 fi
34850 done
34851 if test "${ghostscript_font_dir}x" = 'x'; then
34852 if test "$PSDelegate" != 'gs'; then
34853 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34854 fi
34855 fi
34856 fi
34857fi
34858if test "${ghostscript_font_dir}x" != 'x'; then
34859 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34861$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034862else
cristy09b53e12011-10-14 12:47:22 +000034863 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34864$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034865fi
34866
34867case "${build_os}" in
34868 mingw* )
34869 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34870 ;;
34871esac
34872
34873
34874
34875#
34876# Handle case where user doesn't want frozen paths
34877#
34878if test "$with_frozenpaths" != 'yes'; then
34879 # Re-set delegate definitions to default (no paths)
34880 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034881 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34882 BZIPDelegate="$BZIPDelegateDefault"
34883 BrowseDelegate="$BrowseDelegateDefault"
34884 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34885 CatDelegate="$CatDelegateDefault"
34886 ConvertDelegate="$ConvertDelegateDefault"
34887 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34888 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34889 EchoDelegate="$EchoDelegateDefault"
34890 EditorDelegate="$EditorDelegateDefault"
34891 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34892 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34893 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34894 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34895 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34896 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34897 LPDelegate="$LPDelegateDefault"
34898 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34899 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34900 LaunchDelegate="$LaunchDelegateDefault"
34901 MANDelegate="$MANDelegateDefault"
34902 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34903 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034904 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034905 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34906 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034907 PCLDelegate="$PCLDelegateDefault"
34908 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34909 POVDelegate="$POVDelegateDefault"
34910 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034911 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34912 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034913 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034914 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034915 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034916 ShowImageDelegate="$ShowImageDelegateDefault"
34917 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034918 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034919 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34920 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34921 XPSDelegate="$XPSDelegateDefault"
34922 ZipDelegate="$ZipDelegateDefault"
34923fi
34924
34925# Delegate substitutions
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968#
34969# RPM support.
34970#
34971RPM=''
34972for ac_prog in gnutar gtar tar
34973do
34974 # Extract the first word of "$ac_prog", so it can be a program name with args.
34975set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034978if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034979 $as_echo_n "(cached) " >&6
34980else
34981 if test -n "$TAR"; then
34982 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34983else
34984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34985for as_dir in $PATH
34986do
34987 IFS=$as_save_IFS
34988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034991 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993 break 2
34994 fi
34995done
cristy8b350f62009-11-15 23:12:43 +000034996 done
cristy3ed852e2009-09-05 21:47:34 +000034997IFS=$as_save_IFS
34998
34999fi
35000fi
35001TAR=$ac_cv_prog_TAR
35002if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035004$as_echo "$TAR" >&6; }
35005else
cristy8b350f62009-11-15 23:12:43 +000035006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035007$as_echo "no" >&6; }
35008fi
35009
35010
35011 test -n "$TAR" && break
35012done
35013
35014for ac_prog in perl
35015do
35016 # Extract the first word of "$ac_prog", so it can be a program name with args.
35017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035020if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035021 $as_echo_n "(cached) " >&6
35022else
35023 if test -n "$PERL"; then
35024 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35025else
35026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35027for as_dir in $PATH
35028do
35029 IFS=$as_save_IFS
35030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035033 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035 break 2
35036 fi
35037done
cristy8b350f62009-11-15 23:12:43 +000035038 done
cristy3ed852e2009-09-05 21:47:34 +000035039IFS=$as_save_IFS
35040
35041fi
35042fi
35043PERL=$ac_cv_prog_PERL
35044if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo "$PERL" >&6; }
35047else
cristy8b350f62009-11-15 23:12:43 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035049$as_echo "no" >&6; }
35050fi
35051
35052
35053 test -n "$PERL" && break
35054done
35055
35056for ac_prog in rpmbuild rpm
35057do
35058 # Extract the first word of "$ac_prog", so it can be a program name with args.
35059set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035062if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035063 $as_echo_n "(cached) " >&6
35064else
35065 if test -n "$RPM"; then
35066 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35067else
35068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35069for as_dir in $PATH
35070do
35071 IFS=$as_save_IFS
35072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035075 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035077 break 2
35078 fi
35079done
cristy8b350f62009-11-15 23:12:43 +000035080 done
cristy3ed852e2009-09-05 21:47:34 +000035081IFS=$as_save_IFS
35082
35083fi
35084fi
35085RPM=$ac_cv_prog_RPM
35086if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035088$as_echo "$RPM" >&6; }
35089else
cristy8b350f62009-11-15 23:12:43 +000035090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035091$as_echo "no" >&6; }
35092fi
35093
35094
35095 test -n "$RPM" && break
35096done
35097
35098
cristy73bd4a52010-10-05 11:24:23 +000035099ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35100
35101
35102AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35103
35104
35105AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35106
35107
35108AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35109
35110
35111 if test "x$RPM" != "x" ; then
35112 RPM_DELEGATE_TRUE=
35113 RPM_DELEGATE_FALSE='#'
35114else
35115 RPM_DELEGATE_TRUE='#'
35116 RPM_DELEGATE_FALSE=
35117fi
35118
cristy3ed852e2009-09-05 21:47:34 +000035119
35120#
35121# 7ZIP support (http://p7zip.sourceforge.net/)
35122#
35123P7ZIP=''
35124for ac_prog in 7za
35125do
35126 # Extract the first word of "$ac_prog", so it can be a program name with args.
35127set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035130if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035131 $as_echo_n "(cached) " >&6
35132else
35133 if test -n "$P7ZIP"; then
35134 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35135else
35136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35137for as_dir in $PATH
35138do
35139 IFS=$as_save_IFS
35140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035143 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145 break 2
35146 fi
35147done
cristy8b350f62009-11-15 23:12:43 +000035148 done
cristy3ed852e2009-09-05 21:47:34 +000035149IFS=$as_save_IFS
35150
35151fi
35152fi
35153P7ZIP=$ac_cv_prog_P7ZIP
35154if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo "$P7ZIP" >&6; }
35157else
cristy8b350f62009-11-15 23:12:43 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035159$as_echo "no" >&6; }
35160fi
35161
35162
35163 test -n "$P7ZIP" && break
35164done
35165
35166
cristy73bd4a52010-10-05 11:24:23 +000035167 if test "x$P7ZIP" != "x" ; then
35168 P7ZIP_DELEGATE_TRUE=
35169 P7ZIP_DELEGATE_FALSE='#'
35170else
35171 P7ZIP_DELEGATE_TRUE='#'
35172 P7ZIP_DELEGATE_FALSE=
35173fi
35174
cristy3ed852e2009-09-05 21:47:34 +000035175
35176#
35177# ZIP support (http://www.info-zip.org/Zip.html)
35178#
35179ZIP=''
35180for ac_prog in zip
35181do
35182 # Extract the first word of "$ac_prog", so it can be a program name with args.
35183set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035186if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035187 $as_echo_n "(cached) " >&6
35188else
35189 if test -n "$ZIP"; then
35190 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35191else
35192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35193for as_dir in $PATH
35194do
35195 IFS=$as_save_IFS
35196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035199 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035201 break 2
35202 fi
35203done
cristy8b350f62009-11-15 23:12:43 +000035204 done
cristy3ed852e2009-09-05 21:47:34 +000035205IFS=$as_save_IFS
35206
35207fi
35208fi
35209ZIP=$ac_cv_prog_ZIP
35210if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212$as_echo "$ZIP" >&6; }
35213else
cristy8b350f62009-11-15 23:12:43 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035215$as_echo "no" >&6; }
35216fi
35217
35218
35219 test -n "$ZIP" && break
35220done
35221
35222
cristy73bd4a52010-10-05 11:24:23 +000035223 if test "x$ZIP" != "x" ; then
35224 ZIP_DELEGATE_TRUE=
35225 ZIP_DELEGATE_FALSE='#'
35226else
35227 ZIP_DELEGATE_TRUE='#'
35228 ZIP_DELEGATE_FALSE=
35229fi
35230
cristy3ed852e2009-09-05 21:47:34 +000035231
35232#
35233# GhostPCL related configuration.
35234#
35235PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035236PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035237PCLMonoDevice=pbmraw
35238if test -z "$PCLVersion"; then
35239 PCLVersion='unknown'
35240fi
35241if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35243$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035245$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035246 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35247$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035248 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035250$as_echo_n "checking for pcl color device... " >&6; }
35251 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35252 :
35253 else
35254 PCLColorDevice=ppmraw
35255 fi
cristy09b53e12011-10-14 12:47:22 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35257$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035258
35259 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035261$as_echo_n "checking for pcl CMYK device... " >&6; }
35262 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35263 :
35264 else
35265 PCLCMYKDevice=$PCLColorDevice
35266 fi
cristy09b53e12011-10-14 12:47:22 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35268$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035269
35270 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035272$as_echo_n "checking for pcl mono device... " >&6; }
35273 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35274 :
35275 else
35276 PCLMonoDevice=$PCLColorDevice
35277 fi
cristy09b53e12011-10-14 12:47:22 +000035278 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35279$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035280fi
35281
35282
35283
35284
35285
35286
35287#
35288# GhostXPS related configuration.
35289#
35290XPSColorDevice=ppmraw
35291XPSCMYKDevice=bmpsep8
35292XPSMonoDevice=pbmraw
35293if test -z "$XPSVersion"; then
35294 XPSVersion='unknown'
35295fi
35296if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035297 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35298$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035300$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35302$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035303 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035305$as_echo_n "checking for xps color device... " >&6; }
35306 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35307 :
35308 else
35309 XPSColorDevice=ppmraw
35310 fi
cristy09b53e12011-10-14 12:47:22 +000035311 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35312$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035313
35314 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035316$as_echo_n "checking for xps CMYK device... " >&6; }
35317 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35318 :
35319 else
35320 XPSCMYKDevice=$XPSColorDevice
35321 fi
cristy09b53e12011-10-14 12:47:22 +000035322 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35323$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035324
35325 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035327$as_echo_n "checking for xps mono device... " >&6; }
35328 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35329 :
35330 else
35331 XPSMonoDevice=$XPSColorDevice
35332 fi
cristy09b53e12011-10-14 12:47:22 +000035333 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35334$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035335fi
35336
35337
35338
35339
35340
35341
35342#
35343# Ghostscript related configuration.
35344#
cristya97426c2011-02-04 01:41:27 +000035345GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035346GSColorDevice=pnmraw
35347GSCMYKDevice=pam
35348GSMonoDevice=pbmraw
35349GSPDFDevice=pdfwrite
35350GSPSDevice=pswrite
35351GSEPSDevice=epswrite
35352GSVersion='unknown'
35353if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035354 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35355$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035357$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35359$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035361$as_echo_n "checking for Ghostscript version... " >&6; }
35362 if GSVersion=`$PSDelegate --version`; then
35363 :
35364 else
35365 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35366 fi
cristy09b53e12011-10-14 12:47:22 +000035367 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35368$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035369
35370 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo_n "checking for gs alpha device... " >&6; }
35373 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35374 :
35375 else
35376 GSAlphaDevice=pnmraw
35377 fi
cristy09b53e12011-10-14 12:47:22 +000035378 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35379$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035380
35381 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo_n "checking for gs color device... " >&6; }
35384 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35385 :
35386 else
35387 GSColorDevice=pnmraw
35388 fi
cristy09b53e12011-10-14 12:47:22 +000035389 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35390$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035391
35392 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035394$as_echo_n "checking for gs CMYK device... " >&6; }
35395 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35396 :
35397 else
35398 GSCMYKDevice=bmpsep8
35399 fi
cristy09b53e12011-10-14 12:47:22 +000035400 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35401$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035402
35403 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035405$as_echo_n "checking for gs mono device... " >&6; }
35406 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35407 :
35408 else
35409 GSMonoDevice=$GSColorDevice
35410 fi
cristy09b53e12011-10-14 12:47:22 +000035411 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35412$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035413
35414 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035416$as_echo_n "checking for gs PDF writing device... " >&6; }
35417 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35418 :
35419 else
35420 GSPDFDevice=nodevice
35421 fi
cristy09b53e12011-10-14 12:47:22 +000035422 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35423$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035424
35425 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035427$as_echo_n "checking for gs PS writing device... " >&6; }
35428 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35429 :
35430 else
35431 GSPSDevice=nodevice
35432 fi
cristy09b53e12011-10-14 12:47:22 +000035433 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35434$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035435
35436 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035438$as_echo_n "checking for gs EPS writing device... " >&6; }
35439 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35440 :
35441 else
35442 GSEPSDevice=nodevice
35443 fi
cristy09b53e12011-10-14 12:47:22 +000035444 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35445$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035446fi
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457#
35458# PerlMagick-related configuration
35459#
35460
35461# Look for PERL if PerlMagick requested
35462# If name/path of desired PERL interpreter is specified, look for that one first
35463have_perl='no'
35464if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035465 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35466$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035468$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35470$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035471 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035473$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035474if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035475 $as_echo_n "(cached) " >&6
35476else
35477 ac_cv_path_PERL="$with_perl"
35478fi
cristy8b350f62009-11-15 23:12:43 +000035479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035480$as_echo "$ac_cv_path_PERL" >&6; };
35481 PERL=$ac_cv_path_PERL
35482 have_perl="$ac_cv_path_PERL"
35483 else
35484 for ac_prog in perl perl5
35485do
35486 # Extract the first word of "$ac_prog", so it can be a program name with args.
35487set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035490if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035491 $as_echo_n "(cached) " >&6
35492else
35493 case $PERL in
35494 [\\/]* | ?:[\\/]*)
35495 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35496 ;;
35497 *)
35498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35499for as_dir in $PATH
35500do
35501 IFS=$as_save_IFS
35502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035505 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035507 break 2
35508 fi
35509done
cristy8b350f62009-11-15 23:12:43 +000035510 done
cristy3ed852e2009-09-05 21:47:34 +000035511IFS=$as_save_IFS
35512
35513 ;;
35514esac
35515fi
35516PERL=$ac_cv_path_PERL
35517if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035519$as_echo "$PERL" >&6; }
35520else
cristy8b350f62009-11-15 23:12:43 +000035521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035522$as_echo "no" >&6; }
35523fi
35524
35525
35526 test -n "$PERL" && break
35527done
35528 if test "$ac_cv_path_PERL"; then
35529 have_perl="$ac_cv_path_PERL"
35530 fi
35531 fi
35532fi
35533
cristy949301e2010-01-06 01:38:40 +000035534if test "$with_perl" != 'yes' ; then
35535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35536fi
35537
35538PERL_SUPPORTS_DESTDIR='no'
35539
cristy3ed852e2009-09-05 21:47:34 +000035540with_perl_static='no'
35541with_perl_dynamic='no'
35542if test "$have_perl" != 'no'; then
35543 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35544 with_perl_static='yes'
35545 fi
35546 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35547 with_perl_dynamic='yes'
35548 fi
35549 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035550
35551
35552
35553
35554 if test -n "$PERL"; then :
35555
35556 ax_perl_version="5.8.1"
35557
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35559$as_echo_n "checking for perl version... " >&6; }
35560
35561 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35562
35563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35564$as_echo "$perl_version" >&6; }
35565
35566 PERL_VERSION=$perl_version
35567
35568
35569
35570
35571
35572 # Used to indicate true or false condition
35573 ax_compare_version=false
35574
35575 # Convert the two version strings to be compared into a format that
35576 # allows a simple string comparison. The end result is that a version
35577 # string of the form 1.12.5-r617 will be converted to the form
35578 # 0001001200050617. In other words, each number is zero padded to four
35579 # digits, and non digits are removed.
35580
35581 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35582 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35583 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35584 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35585 -e 's/[^0-9]//g'`
35586
35587
35588 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35589 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35590 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35591 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35592 -e 's/[^0-9]//g'`
35593
35594
35595 ax_compare_version=`echo "x$ax_compare_version_A
35596x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35597
35598
35599
35600 if test "$ax_compare_version" = "true" ; then
35601
35602 :
35603 PERL_SUPPORTS_DESTDIR='yes'
35604
35605 else
35606 :
35607 PERL_SUPPORTS_DESTDIR='no'
35608
35609 fi
35610
35611
35612else
35613
35614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35615$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35616 PERL_SUPPORTS_DESTDIR='no'
35617
cristy3ed852e2009-09-05 21:47:34 +000035618fi
cristy73bd4a52010-10-05 11:24:23 +000035619
35620fi
35621 if test "$have_perl" != 'no'; then
35622 WITH_PERL_TRUE=
35623 WITH_PERL_FALSE='#'
35624else
35625 WITH_PERL_TRUE='#'
35626 WITH_PERL_FALSE=
35627fi
35628
35629 if test $with_perl_static = 'yes'; then
35630 WITH_PERL_STATIC_TRUE=
35631 WITH_PERL_STATIC_FALSE='#'
35632else
35633 WITH_PERL_STATIC_TRUE='#'
35634 WITH_PERL_STATIC_FALSE=
35635fi
35636
35637 if test $with_perl_dynamic = 'yes'; then
35638 WITH_PERL_DYNAMIC_TRUE=
35639 WITH_PERL_DYNAMIC_FALSE='#'
35640else
35641 WITH_PERL_DYNAMIC_TRUE='#'
35642 WITH_PERL_DYNAMIC_FALSE=
35643fi
35644
cristy3ed852e2009-09-05 21:47:34 +000035645
35646
35647# Determine path to pick up MagickCore library from for use with building PerlMagick
35648MAGICKCORE_PATH="${LIB_DIR}"
35649if test $with_perl_static = 'yes'; then
35650 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35651 libtool_objdir=$objdir
35652
35653 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035654 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035655fi
35656
35657
35658# Create a simple string containing format names for all delegate libraries
35659DELEGATES=''
35660if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35661if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35662if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35663if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35664if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35665if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35666if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35667if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35668if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35669if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35670if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35671if test "$have_jpeg" = 'yes'; then
35672 DELEGATES="$DELEGATES jpeg";
35673 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35674fi
35675if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035676if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035677if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35678if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035679if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035680if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35681if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035682if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035683if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35684if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35685if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35686if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35687if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35688if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35689if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35690
35691
35692
35693#
35694# Handle special compiler flags
35695#
35696
35697# Add '-p' if prof source profiling support enabled
35698if test "$enable_prof" = 'yes'; then
35699 CFLAGS="-p $CFLAGS"
35700 CXXFLAGS="-p $CXXFLAGS"
35701 LDFLAGS="-p $LDFLAGS"
35702fi
35703
35704# Add '-pg' if gprof source profiling support enabled
35705if test "$enable_gprof" = 'yes'; then
35706 CFLAGS="-pg $CFLAGS"
35707 CXXFLAGS="-pg $CXXFLAGS"
35708 LDFLAGS="-pg $LDFLAGS"
35709fi
35710
35711# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35712# This is a gcc-specific feature
35713if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035715$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035716if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035717 $as_echo_n "(cached) " >&6
35718else
35719 ac_check_lib_save_LIBS=$LIBS
35720LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035722/* end confdefs.h. */
35723
35724/* Override any GCC internal prototype to avoid an error.
35725 Use char because int might match the return type of a GCC
35726 builtin and then its argument prototype would still apply. */
35727#ifdef __cplusplus
35728extern "C"
35729#endif
35730char _gcov_init ();
35731int
35732main ()
35733{
35734return _gcov_init ();
35735 ;
35736 return 0;
35737}
35738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035740 ac_cv_lib_gcov__gcov_init=yes
35741else
cristy8b350f62009-11-15 23:12:43 +000035742 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035743fi
cristy8b350f62009-11-15 23:12:43 +000035744rm -f core conftest.err conftest.$ac_objext \
35745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035746LIBS=$ac_check_lib_save_LIBS
35747fi
cristy8b350f62009-11-15 23:12:43 +000035748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035749$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035750if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035751 cat >>confdefs.h <<_ACEOF
35752#define HAVE_LIBGCOV 1
35753_ACEOF
35754
35755 LIBS="-lgcov $LIBS"
35756
35757fi
35758
cristy8b350f62009-11-15 23:12:43 +000035759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035760$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035761if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035762 $as_echo_n "(cached) " >&6
35763else
35764 ac_check_lib_save_LIBS=$LIBS
35765LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035767/* end confdefs.h. */
35768
35769/* Override any GCC internal prototype to avoid an error.
35770 Use char because int might match the return type of a GCC
35771 builtin and then its argument prototype would still apply. */
35772#ifdef __cplusplus
35773extern "C"
35774#endif
35775char __gcov_init ();
35776int
35777main ()
35778{
35779return __gcov_init ();
35780 ;
35781 return 0;
35782}
35783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035785 ac_cv_lib_gcov___gcov_init=yes
35786else
cristy8b350f62009-11-15 23:12:43 +000035787 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035788fi
cristy8b350f62009-11-15 23:12:43 +000035789rm -f core conftest.err conftest.$ac_objext \
35790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035791LIBS=$ac_check_lib_save_LIBS
35792fi
cristy8b350f62009-11-15 23:12:43 +000035793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035794$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035795if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035796 cat >>confdefs.h <<_ACEOF
35797#define HAVE_LIBGCOV 1
35798_ACEOF
35799
35800 LIBS="-lgcov $LIBS"
35801
35802fi
35803
35804 case "$target_os" in
35805 darwin*)
35806 OSX_GCOV_LDFLAG="-Wl,-single_module"
35807 ;;
35808 *)
35809 OSX_GCOV_LDFLAG=""
35810 ;;
35811 esac
35812
35813 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35814 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35815 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35816fi
35817
35818#
35819# Build library dependency list for libMagickCore
35820#
35821
35822MAGICK_LIBLTDL='' # Libltdl for build
35823MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35824MAGICK_LTDLDEPS='' # extra libltdl dependencies
35825if test "$with_ltdl" != 'no'
35826then
35827 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35828 MAGICK_API_LIBLTDL='-lltdl'
35829 fi
35830 MAGICK_LIBLTDL=${LIBLTDL}
35831 MAGICK_LTDLDEPS=${LTDLDEPS}
35832fi
35833
35834
35835
35836if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035837 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 +000035838else
cristy41cbe8a2011-10-27 01:35:18 +000035839 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 +000035840fi
35841
35842
35843#
35844# Remove extraneous spaces from output variables (asthetic)
35845#
35846X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35847X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35848X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35849X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35850
35851CC=`echo $CC | sed -e 's/ */ /g'`
35852CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35853CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35854CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35855DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35856DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35857LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35858TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35859MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35860#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35861
35862# Pass only user-provided LIBS as "global" libraries
35863LIBS=$USER_LIBS
35864
35865#AC_SUBST(CPPFLAGS)
35866
35867#AC_SUBST(LDFLAGS)
35868#AC_SUBST(X_PRE_LIBS)
35869#AC_SUBST(X_LIBS)
35870#AC_SUBST(X_EXTRA_LIBS)
35871
35872MAGICK_CFLAGS=$CFLAGS
35873MAGICK_CXXFLAGS="$CXXFLAGS"
35874MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35875MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35876MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35877MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35878
35879
35880
35881
35882
35883
35884
35885
cristyfd9dcd42010-08-08 18:07:02 +000035886
cristy3ed852e2009-09-05 21:47:34 +000035887# Set configured scripts to executable.
35888ac_config_commands="$ac_config_commands default"
35889
cristy2bd4b6e2012-07-22 15:29:11 +000035890ac_config_commands="$ac_config_commands magick.sh.in"
35891
cristy3ed852e2009-09-05 21:47:34 +000035892ac_config_commands="$ac_config_commands MagickCore-config.in"
35893
cristy3ed852e2009-09-05 21:47:34 +000035894ac_config_commands="$ac_config_commands MagickWand-config.in"
35895
cristy3ed852e2009-09-05 21:47:34 +000035896ac_config_commands="$ac_config_commands Magick++-config.in"
35897
35898ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35899
35900
cristy09b53e12011-10-14 12:47:22 +000035901{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35902$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35903{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35904$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035905cat >confcache <<\_ACEOF
35906# This file is a shell script that caches the results of configure
35907# tests run on this system so they can be shared between configure
35908# scripts and configure runs, see configure's option --config-cache.
35909# It is not useful on other systems. If it contains results you don't
35910# want to keep, you may remove or edit it.
35911#
35912# config.status only pays attention to the cache file if you give it
35913# the --recheck option to rerun configure.
35914#
35915# `ac_cv_env_foo' variables (set or unset) will be overridden when
35916# loading this file, other *unset* `ac_cv_foo' will be assigned the
35917# following values.
35918
35919_ACEOF
35920
35921# The following way of writing the cache mishandles newlines in values,
35922# but we know of no workaround that is simple, portable, and efficient.
35923# So, we kill variables containing newlines.
35924# Ultrix sh set writes to stderr and can't be redirected directly,
35925# and sets the high bit in the cache file unless we assign to the vars.
35926(
35927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35928 eval ac_val=\$$ac_var
35929 case $ac_val in #(
35930 *${as_nl}*)
35931 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035933$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35934 esac
35935 case $ac_var in #(
35936 _ | IFS | as_nl) ;; #(
35937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035938 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035939 esac ;;
35940 esac
35941 done
35942
35943 (set) 2>&1 |
35944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35945 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035946 # `set' does not quote correctly, so add quotes: double-quote
35947 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035948 sed -n \
35949 "s/'/'\\\\''/g;
35950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35951 ;; #(
35952 *)
35953 # `set' quotes correctly as required by POSIX, so do not add quotes.
35954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35955 ;;
35956 esac |
35957 sort
35958) |
35959 sed '
35960 /^ac_cv_env_/b end
35961 t clear
35962 :clear
35963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35964 t end
35965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35966 :end' >>confcache
35967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35968 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035969 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035970 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035971$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035972 if test ! -f "$cache_file" || test -h "$cache_file"; then
35973 cat confcache >"$cache_file"
35974 else
35975 case $cache_file in #(
35976 */* | ?:*)
35977 mv -f confcache "$cache_file"$$ &&
35978 mv -f "$cache_file"$$ "$cache_file" ;; #(
35979 *)
35980 mv -f confcache "$cache_file" ;;
35981 esac
35982 fi
35983 fi
cristy3ed852e2009-09-05 21:47:34 +000035984 else
cristy8b350f62009-11-15 23:12:43 +000035985 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035986$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35987 fi
35988fi
35989rm -f confcache
35990
35991test "x$prefix" = xNONE && prefix=$ac_default_prefix
35992# Let make expand exec_prefix.
35993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35994
35995DEFS=-DHAVE_CONFIG_H
35996
35997ac_libobjs=
35998ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035999U=
cristy3ed852e2009-09-05 21:47:34 +000036000for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36001 # 1. Remove the extension, and $U if already installed.
36002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36005 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036006 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36007 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036008done
36009LIBOBJS=$ac_libobjs
36010
36011LTLIBOBJS=$ac_ltlibobjs
36012
36013
cristyc0890a62012-07-19 00:18:20 +000036014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36015$as_echo_n "checking that generated files are newer than configure... " >&6; }
36016 if test -n "$am_sleep_pid"; then
36017 # Hide warnings about reused PIDs.
36018 wait $am_sleep_pid 2>/dev/null
36019 fi
36020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36021$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036022 if test -n "$EXEEXT"; then
36023 am__EXEEXT_TRUE=
36024 am__EXEEXT_FALSE='#'
36025else
36026 am__EXEEXT_TRUE='#'
36027 am__EXEEXT_FALSE=
36028fi
cristy3ed852e2009-09-05 21:47:34 +000036029
cristy73bd4a52010-10-05 11:24:23 +000036030if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
36034if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
36042if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
cristy73bd4a52010-10-05 11:24:23 +000036062if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070LT_CONFIG_H=config/config.h
36071
36072 _ltdl_libobjs=
36073 _ltdl_ltlibobjs=
36074 if test -n "$_LT_LIBOBJS"; then
36075 # Remove the extension.
36076 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36077 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36078 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36079 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36080 done
36081 fi
36082 ltdl_LIBOBJS=$_ltdl_libobjs
36083
36084 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36085
36086
36087if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036092 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
36095if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036096 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
cristy71d8c202012-03-20 17:05:01 +000036103if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36104 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
cristy73bd4a52010-10-05 11:24:23 +000036107
36108if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
36124if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
36132if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
36136if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036137 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036145 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
36148if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036149 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
36152if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
36160if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036161 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
36164if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036165 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
36168if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036169 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036170Usually this means the macro was only invoked conditionally." "$LINENO" 5
36171fi
36172if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036173 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036174Usually this means the macro was only invoked conditionally." "$LINENO" 5
36175fi
36176if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036177 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036178Usually this means the macro was only invoked conditionally." "$LINENO" 5
36179fi
36180if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036181 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036182Usually this means the macro was only invoked conditionally." "$LINENO" 5
36183fi
36184if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036185 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036186Usually this means the macro was only invoked conditionally." "$LINENO" 5
36187fi
cristyfbb0ef02010-12-19 02:32:11 +000036188if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36189 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36190Usually this means the macro was only invoked conditionally." "$LINENO" 5
36191fi
cristy73bd4a52010-10-05 11:24:23 +000036192if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036193 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036194Usually this means the macro was only invoked conditionally." "$LINENO" 5
36195fi
cristy41cbe8a2011-10-27 01:35:18 +000036196if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36197 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36198Usually this means the macro was only invoked conditionally." "$LINENO" 5
36199fi
cristya054b762012-03-26 23:16:00 +000036200if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36201 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036202Usually this means the macro was only invoked conditionally." "$LINENO" 5
36203fi
cristy73bd4a52010-10-05 11:24:23 +000036204if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036205 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036206Usually this means the macro was only invoked conditionally." "$LINENO" 5
36207fi
36208if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036209 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036210Usually this means the macro was only invoked conditionally." "$LINENO" 5
36211fi
36212if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036213 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036214Usually this means the macro was only invoked conditionally." "$LINENO" 5
36215fi
36216if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036217 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036218Usually this means the macro was only invoked conditionally." "$LINENO" 5
36219fi
cristyb1860752011-03-14 00:27:46 +000036220if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36221 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36222Usually this means the macro was only invoked conditionally." "$LINENO" 5
36223fi
cristy73bd4a52010-10-05 11:24:23 +000036224if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036225 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036226Usually this means the macro was only invoked conditionally." "$LINENO" 5
36227fi
36228if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036229 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036230Usually this means the macro was only invoked conditionally." "$LINENO" 5
36231fi
36232if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036233 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036234Usually this means the macro was only invoked conditionally." "$LINENO" 5
36235fi
36236if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036237 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036238Usually this means the macro was only invoked conditionally." "$LINENO" 5
36239fi
36240if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036241 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036242Usually this means the macro was only invoked conditionally." "$LINENO" 5
36243fi
36244if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036245 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036246Usually this means the macro was only invoked conditionally." "$LINENO" 5
36247fi
36248if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036249 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036250Usually this means the macro was only invoked conditionally." "$LINENO" 5
36251fi
36252if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036253 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036254Usually this means the macro was only invoked conditionally." "$LINENO" 5
36255fi
cristy3ed852e2009-09-05 21:47:34 +000036256
cristyda16f162011-02-19 23:52:17 +000036257: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036258ac_write_fail=0
36259ac_clean_files_save=$ac_clean_files
36260ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036261{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036262$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036263as_write_fail=0
36264cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036265#! $SHELL
36266# Generated by $as_me.
36267# Run this file to recreate the current configuration.
36268# Compiler output produced by configure, useful for debugging
36269# configure, is in config.log if it exists.
36270
36271debug=false
36272ac_cs_recheck=false
36273ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036274
cristy8b350f62009-11-15 23:12:43 +000036275SHELL=\${CONFIG_SHELL-$SHELL}
36276export SHELL
36277_ASEOF
36278cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36279## -------------------- ##
36280## M4sh Initialization. ##
36281## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036282
36283# Be more Bourne compatible
36284DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036285if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036286 emulate sh
36287 NULLCMD=:
36288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36289 # is contrary to our usage. Disable this feature.
36290 alias -g '${1+"$@"}'='"$@"'
36291 setopt NO_GLOB_SUBST
36292else
cristy8b350f62009-11-15 23:12:43 +000036293 case `(set -o) 2>/dev/null` in #(
36294 *posix*) :
36295 set -o posix ;; #(
36296 *) :
36297 ;;
cristy3ed852e2009-09-05 21:47:34 +000036298esac
cristy3ed852e2009-09-05 21:47:34 +000036299fi
36300
36301
cristy3ed852e2009-09-05 21:47:34 +000036302as_nl='
36303'
36304export as_nl
36305# Printing a long string crashes Solaris 7 /usr/bin/printf.
36306as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36307as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036309# Prefer a ksh shell builtin over an external printf program on Solaris,
36310# but without wasting forks for bash or zsh.
36311if test -z "$BASH_VERSION$ZSH_VERSION" \
36312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36313 as_echo='print -r --'
36314 as_echo_n='print -rn --'
36315elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036316 as_echo='printf %s\n'
36317 as_echo_n='printf %s'
36318else
36319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36321 as_echo_n='/usr/ucb/echo -n'
36322 else
36323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36324 as_echo_n_body='eval
36325 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036326 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036327 *"$as_nl"*)
36328 expr "X$arg" : "X\\(.*\\)$as_nl";
36329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36330 esac;
36331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36332 '
36333 export as_echo_n_body
36334 as_echo_n='sh -c $as_echo_n_body as_echo'
36335 fi
36336 export as_echo_body
36337 as_echo='sh -c $as_echo_body as_echo'
36338fi
36339
36340# The user is always right.
36341if test "${PATH_SEPARATOR+set}" != set; then
36342 PATH_SEPARATOR=:
36343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36345 PATH_SEPARATOR=';'
36346 }
36347fi
36348
cristy3ed852e2009-09-05 21:47:34 +000036349
36350# IFS
36351# We need space, tab and new line, in precisely that order. Quoting is
36352# there to prevent editors from complaining about space-tab.
36353# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36354# splitting by setting IFS to empty value.)
36355IFS=" "" $as_nl"
36356
36357# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036358as_myself=
cristy8b350f62009-11-15 23:12:43 +000036359case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036360 *[\\/]* ) as_myself=$0 ;;
36361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36362for as_dir in $PATH
36363do
36364 IFS=$as_save_IFS
36365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36367 done
cristy3ed852e2009-09-05 21:47:34 +000036368IFS=$as_save_IFS
36369
36370 ;;
36371esac
36372# We did not find ourselves, most probably we were run as `sh COMMAND'
36373# in which case we are not to be found in the path.
36374if test "x$as_myself" = x; then
36375 as_myself=$0
36376fi
36377if test ! -f "$as_myself"; then
36378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036379 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036380fi
36381
cristy8b350f62009-11-15 23:12:43 +000036382# Unset variables that we do not need and which cause bugs (e.g. in
36383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36384# suppresses any "Segmentation fault" message there. '((' could
36385# trigger a bug in pdksh 5.2.14.
36386for as_var in BASH_ENV ENV MAIL MAILPATH
36387do eval test x\${$as_var+set} = xset \
36388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036389done
36390PS1='$ '
36391PS2='> '
36392PS4='+ '
36393
36394# NLS nuisances.
36395LC_ALL=C
36396export LC_ALL
36397LANGUAGE=C
36398export LANGUAGE
36399
cristy8b350f62009-11-15 23:12:43 +000036400# CDPATH.
36401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36402
36403
cristy98dddb52010-11-04 00:30:15 +000036404# as_fn_error STATUS ERROR [LINENO LOG_FD]
36405# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036408# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036409as_fn_error ()
36410{
cristy98dddb52010-11-04 00:30:15 +000036411 as_status=$1; test $as_status -eq 0 && as_status=1
36412 if test "$4"; then
36413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036415 fi
cristy98dddb52010-11-04 00:30:15 +000036416 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036417 as_fn_exit $as_status
36418} # as_fn_error
36419
36420
36421# as_fn_set_status STATUS
36422# -----------------------
36423# Set $? to STATUS, without forking.
36424as_fn_set_status ()
36425{
36426 return $1
36427} # as_fn_set_status
36428
36429# as_fn_exit STATUS
36430# -----------------
36431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36432as_fn_exit ()
36433{
36434 set +e
36435 as_fn_set_status $1
36436 exit $1
36437} # as_fn_exit
36438
36439# as_fn_unset VAR
36440# ---------------
36441# Portably unset VAR.
36442as_fn_unset ()
36443{
36444 { eval $1=; unset $1;}
36445}
36446as_unset=as_fn_unset
36447# as_fn_append VAR VALUE
36448# ----------------------
36449# Append the text in VALUE to the end of the definition contained in VAR. Take
36450# advantage of any shell optimizations that allow amortized linear growth over
36451# repeated appends, instead of the typical quadratic growth present in naive
36452# implementations.
36453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36454 eval 'as_fn_append ()
36455 {
36456 eval $1+=\$2
36457 }'
36458else
36459 as_fn_append ()
36460 {
36461 eval $1=\$$1\$2
36462 }
36463fi # as_fn_append
36464
36465# as_fn_arith ARG...
36466# ------------------
36467# Perform arithmetic evaluation on the ARGs, and store the result in the
36468# global $as_val. Take advantage of shells that can avoid forks. The arguments
36469# must be portable across $(()) and expr.
36470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36471 eval 'as_fn_arith ()
36472 {
36473 as_val=$(( $* ))
36474 }'
36475else
36476 as_fn_arith ()
36477 {
36478 as_val=`expr "$@" || test $? -eq 1`
36479 }
36480fi # as_fn_arith
36481
36482
cristy3ed852e2009-09-05 21:47:34 +000036483if expr a : '\(a\)' >/dev/null 2>&1 &&
36484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36485 as_expr=expr
36486else
36487 as_expr=false
36488fi
36489
36490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36491 as_basename=basename
36492else
36493 as_basename=false
36494fi
36495
cristy8b350f62009-11-15 23:12:43 +000036496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36497 as_dirname=dirname
36498else
36499 as_dirname=false
36500fi
cristy3ed852e2009-09-05 21:47:34 +000036501
cristy3ed852e2009-09-05 21:47:34 +000036502as_me=`$as_basename -- "$0" ||
36503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36504 X"$0" : 'X\(//\)$' \| \
36505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36506$as_echo X/"$0" |
36507 sed '/^.*\/\([^/][^/]*\)\/*$/{
36508 s//\1/
36509 q
36510 }
36511 /^X\/\(\/\/\)$/{
36512 s//\1/
36513 q
36514 }
36515 /^X\/\(\/\).*/{
36516 s//\1/
36517 q
36518 }
36519 s/.*/./; q'`
36520
cristy8b350f62009-11-15 23:12:43 +000036521# Avoid depending upon Character Ranges.
36522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36525as_cr_digits='0123456789'
36526as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036527
36528ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036529case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036530-n*)
cristy8b350f62009-11-15 23:12:43 +000036531 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036533 xy) ECHO_C='\c';;
36534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36535 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036536 esac;;
36537*)
36538 ECHO_N='-n';;
36539esac
cristy3ed852e2009-09-05 21:47:34 +000036540
36541rm -f conf$$ conf$$.exe conf$$.file
36542if test -d conf$$.dir; then
36543 rm -f conf$$.dir/conf$$.file
36544else
36545 rm -f conf$$.dir
36546 mkdir conf$$.dir 2>/dev/null
36547fi
36548if (echo >conf$$.file) 2>/dev/null; then
36549 if ln -s conf$$.file conf$$ 2>/dev/null; then
36550 as_ln_s='ln -s'
36551 # ... but there are two gotchas:
36552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036554 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036556 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036557 elif ln conf$$.file conf$$ 2>/dev/null; then
36558 as_ln_s=ln
36559 else
cristy14fefe52012-05-21 00:59:18 +000036560 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036561 fi
36562else
cristy14fefe52012-05-21 00:59:18 +000036563 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036564fi
36565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36566rmdir conf$$.dir 2>/dev/null
36567
cristy8b350f62009-11-15 23:12:43 +000036568
36569# as_fn_mkdir_p
36570# -------------
36571# Create "$as_dir" as a directory, including parents if necessary.
36572as_fn_mkdir_p ()
36573{
36574
36575 case $as_dir in #(
36576 -*) as_dir=./$as_dir;;
36577 esac
36578 test -d "$as_dir" || eval $as_mkdir_p || {
36579 as_dirs=
36580 while :; do
36581 case $as_dir in #(
36582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36583 *) as_qdir=$as_dir;;
36584 esac
36585 as_dirs="'$as_qdir' $as_dirs"
36586 as_dir=`$as_dirname -- "$as_dir" ||
36587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36588 X"$as_dir" : 'X\(//\)[^/]' \| \
36589 X"$as_dir" : 'X\(//\)$' \| \
36590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36591$as_echo X"$as_dir" |
36592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36593 s//\1/
36594 q
36595 }
36596 /^X\(\/\/\)[^/].*/{
36597 s//\1/
36598 q
36599 }
36600 /^X\(\/\/\)$/{
36601 s//\1/
36602 q
36603 }
36604 /^X\(\/\).*/{
36605 s//\1/
36606 q
36607 }
36608 s/.*/./; q'`
36609 test -d "$as_dir" && break
36610 done
36611 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036613
36614
36615} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036616if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036617 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036618else
36619 test -d ./-p && rmdir ./-p
36620 as_mkdir_p=false
36621fi
36622
cristy14fefe52012-05-21 00:59:18 +000036623
36624# as_fn_executable_p FILE
36625# -----------------------
36626# Test if FILE is an executable regular file.
36627as_fn_executable_p ()
36628{
36629 test -f "$1" && test -x "$1"
36630} # as_fn_executable_p
36631as_test_x='test -x'
36632as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036633
36634# Sed expression to map a string onto a valid CPP name.
36635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36636
36637# Sed expression to map a string onto a valid variable name.
36638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36639
36640
36641exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036642## ----------------------------------- ##
36643## Main body of $CONFIG_STATUS script. ##
36644## ----------------------------------- ##
36645_ASEOF
36646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036647
cristy8b350f62009-11-15 23:12:43 +000036648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36649# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036650# report actual input values of CONFIG_FILES etc. instead of their
36651# values after options handling.
36652ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036653This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036654generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036655
36656 CONFIG_FILES = $CONFIG_FILES
36657 CONFIG_HEADERS = $CONFIG_HEADERS
36658 CONFIG_LINKS = $CONFIG_LINKS
36659 CONFIG_COMMANDS = $CONFIG_COMMANDS
36660 $ $0 $@
36661
36662on `(hostname || uname -n) 2>/dev/null | sed 1q`
36663"
36664
36665_ACEOF
36666
36667case $ac_config_files in *"
36668"*) set x $ac_config_files; shift; ac_config_files=$*;;
36669esac
36670
36671case $ac_config_headers in *"
36672"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36673esac
36674
36675
36676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36677# Files that config.status was made for.
36678config_files="$ac_config_files"
36679config_headers="$ac_config_headers"
36680config_commands="$ac_config_commands"
36681
36682_ACEOF
36683
36684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36685ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036686\`$as_me' instantiates files and other configuration actions
36687from templates according to the current configuration. Unless the files
36688and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036689
cristy8b350f62009-11-15 23:12:43 +000036690Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036691
36692 -h, --help print this help, then exit
36693 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036694 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036695 -q, --quiet, --silent
36696 do not print progress messages
36697 -d, --debug don't remove temporary files
36698 --recheck update $as_me by reconfiguring in the same conditions
36699 --file=FILE[:TEMPLATE]
36700 instantiate the configuration file FILE
36701 --header=FILE[:TEMPLATE]
36702 instantiate the configuration header FILE
36703
36704Configuration files:
36705$config_files
36706
36707Configuration headers:
36708$config_headers
36709
36710Configuration commands:
36711$config_commands
36712
cristy8b350f62009-11-15 23:12:43 +000036713Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036714
36715_ACEOF
36716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036718ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036719ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036720configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036721 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036722
cristy14fefe52012-05-21 00:59:18 +000036723Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036724This config.status script is free software; the Free Software Foundation
36725gives unlimited permission to copy, distribute and modify it."
36726
36727ac_pwd='$ac_pwd'
36728srcdir='$srcdir'
36729INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036730MKDIR_P='$MKDIR_P'
36731AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036732test -n "\$AWK" || AWK=awk
36733_ACEOF
36734
36735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36736# The default lists apply if the user does not specify any file.
36737ac_need_defaults=:
36738while test $# != 0
36739do
36740 case $1 in
cristyda16f162011-02-19 23:52:17 +000036741 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36744 ac_shift=:
36745 ;;
cristyda16f162011-02-19 23:52:17 +000036746 --*=)
36747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36748 ac_optarg=
36749 ac_shift=:
36750 ;;
cristy3ed852e2009-09-05 21:47:34 +000036751 *)
36752 ac_option=$1
36753 ac_optarg=$2
36754 ac_shift=shift
36755 ;;
36756 esac
36757
36758 case $ac_option in
36759 # Handling of the options.
36760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36761 ac_cs_recheck=: ;;
36762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36763 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036764 --config | --confi | --conf | --con | --co | --c )
36765 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036766 --debug | --debu | --deb | --de | --d | -d )
36767 debug=: ;;
36768 --file | --fil | --fi | --f )
36769 $ac_shift
36770 case $ac_optarg in
36771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036772 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036773 esac
cristy8b350f62009-11-15 23:12:43 +000036774 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036775 ac_need_defaults=false;;
36776 --header | --heade | --head | --hea )
36777 $ac_shift
36778 case $ac_optarg in
36779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36780 esac
cristy8b350f62009-11-15 23:12:43 +000036781 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036782 ac_need_defaults=false;;
36783 --he | --h)
36784 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036785 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036786Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036787 --help | --hel | -h )
36788 $as_echo "$ac_cs_usage"; exit ;;
36789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36791 ac_cs_silent=: ;;
36792
36793 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036794 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036795Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036796
cristy8b350f62009-11-15 23:12:43 +000036797 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036798 ac_need_defaults=false ;;
36799
36800 esac
36801 shift
36802done
36803
36804ac_configure_extra_args=
36805
36806if $ac_cs_silent; then
36807 exec 6>/dev/null
36808 ac_configure_extra_args="$ac_configure_extra_args --silent"
36809fi
36810
36811_ACEOF
36812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36813if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036815 shift
36816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36817 CONFIG_SHELL='$SHELL'
36818 export CONFIG_SHELL
36819 exec "\$@"
36820fi
36821
36822_ACEOF
36823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36824exec 5>>config.log
36825{
36826 echo
36827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36828## Running $as_me. ##
36829_ASBOX
36830 $as_echo "$ac_log"
36831} >&5
36832
36833_ACEOF
36834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036835#
36836# INIT-COMMANDS
36837#
36838PACKAGE="$PACKAGE"
36839AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36840
36841
36842# The HP-UX ksh and POSIX shell print the target directory to stdout
36843# if CDPATH is set.
36844(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36845
36846sed_quote_subst='$sed_quote_subst'
36847double_quote_subst='$double_quote_subst'
36848delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036849SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36850Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36851GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36852EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36853FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36854SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36855ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36856LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36857macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36858macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36859AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36860DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36861OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36862enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36863enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36864pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36865enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036866PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036867host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36868host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36869host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36870build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36871build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36872build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36873NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36874LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36875max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36876ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36877exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36878lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36879lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36880lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036881lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36882lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036883reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36884reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36885deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36886file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036887file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36888want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36889sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036890AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36891AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036892archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036893STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36894RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36895old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36896old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36897old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36898lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36899CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36900CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36901compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36902GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36903lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36904lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36905lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36906lt_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 +000036907nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36908lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036909objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36910MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36911lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036912lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036913lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036914lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36915lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36916need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036917MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036918DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36919NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36920LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36921OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36922OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36923libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36924shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36925extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36926archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36927enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36928export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36929whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36930compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36931old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36932old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36933archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36934archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36935module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36936module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36937with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36938allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36939no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36940hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036941hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36942hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36943hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36944hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36945hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36946hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36947inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36948link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036949always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36950export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36951exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36952include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36953prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036954postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036955file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36956variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36957need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36958need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36959version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36960runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36961shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36962shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36963libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36964library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36965soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36966install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36967postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36968postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36969finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36970finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36971hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36972sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36973sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36974hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36975enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36976enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36977enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36978old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36979striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36980compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36981predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36982postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36983predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36984postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36985compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36986LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36987reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36988reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36989old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36990compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36991GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36992lt_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 +000036993lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036994lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036995lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36996lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36997archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36998enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36999export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37000whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37001compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37002old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37003old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37004archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37005archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37006module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37007module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37008with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37009allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37010no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37011hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037012hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37013hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37014hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37015hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37016hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37017hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37018inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37019link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037020always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37021export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37022exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37023include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37024prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037025postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037026file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37027hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37028compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37029predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37030postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37031predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37032postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37033compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037034
37035LTCC='$LTCC'
37036LTCFLAGS='$LTCFLAGS'
37037compiler='$compiler_DEFAULT'
37038
cristy0c60a692010-11-04 01:09:47 +000037039# A function that is used when there is no print builtin or printf.
37040func_fallback_echo ()
37041{
37042 eval 'cat <<_LTECHO_EOF
37043\$1
37044_LTECHO_EOF'
37045}
37046
cristy73bd4a52010-10-05 11:24:23 +000037047# Quote evaled strings.
37048for var in SED \
37049GREP \
37050EGREP \
37051FGREP \
cristy0c60a692010-11-04 01:09:47 +000037052SHELL \
37053ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037054LD \
cristy0c60a692010-11-04 01:09:47 +000037055AS \
37056DLLTOOL \
37057OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037058PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037059NM \
37060LN_S \
37061lt_SP2NL \
37062lt_NL2SP \
37063reload_flag \
37064deplibs_check_method \
37065file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037066file_magic_glob \
37067want_nocaseglob \
37068sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037069AR \
37070AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037071archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037072STRIP \
37073RANLIB \
37074CC \
37075CFLAGS \
37076compiler \
37077lt_cv_sys_global_symbol_pipe \
37078lt_cv_sys_global_symbol_to_cdecl \
37079lt_cv_sys_global_symbol_to_c_name_address \
37080lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037081nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037082lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037083lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037084lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037085lt_prog_compiler_static \
37086lt_cv_prog_compiler_c_o \
37087need_locks \
cristyda16f162011-02-19 23:52:17 +000037088MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037089DSYMUTIL \
37090NMEDIT \
37091LIPO \
37092OTOOL \
37093OTOOL64 \
37094shrext_cmds \
37095export_dynamic_flag_spec \
37096whole_archive_flag_spec \
37097compiler_needs_object \
37098with_gnu_ld \
37099allow_undefined_flag \
37100no_undefined_flag \
37101hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037102hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037103exclude_expsyms \
37104include_expsyms \
37105file_list_spec \
37106variables_saved_for_relink \
37107libname_spec \
37108library_names_spec \
37109soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037110install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037111finish_eval \
37112old_striplib \
37113striplib \
37114compiler_lib_search_dirs \
37115predep_objects \
37116postdep_objects \
37117predeps \
37118postdeps \
37119compiler_lib_search_path \
37120LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037121reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037122compiler_CXX \
37123lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037124lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037125lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037126lt_prog_compiler_static_CXX \
37127lt_cv_prog_compiler_c_o_CXX \
37128export_dynamic_flag_spec_CXX \
37129whole_archive_flag_spec_CXX \
37130compiler_needs_object_CXX \
37131with_gnu_ld_CXX \
37132allow_undefined_flag_CXX \
37133no_undefined_flag_CXX \
37134hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037135hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037136exclude_expsyms_CXX \
37137include_expsyms_CXX \
37138file_list_spec_CXX \
37139compiler_lib_search_dirs_CXX \
37140predep_objects_CXX \
37141postdep_objects_CXX \
37142predeps_CXX \
37143postdeps_CXX \
37144compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037146 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037148 ;;
37149 *)
37150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37151 ;;
37152 esac
37153done
37154
37155# Double-quote double-evaled strings.
37156for var in reload_cmds \
37157old_postinstall_cmds \
37158old_postuninstall_cmds \
37159old_archive_cmds \
37160extract_expsyms_cmds \
37161old_archive_from_new_cmds \
37162old_archive_from_expsyms_cmds \
37163archive_cmds \
37164archive_expsym_cmds \
37165module_cmds \
37166module_expsym_cmds \
37167export_symbols_cmds \
37168prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037169postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037170postinstall_cmds \
37171postuninstall_cmds \
37172finish_cmds \
37173sys_lib_search_path_spec \
37174sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037175reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037176old_archive_cmds_CXX \
37177old_archive_from_new_cmds_CXX \
37178old_archive_from_expsyms_cmds_CXX \
37179archive_cmds_CXX \
37180archive_expsym_cmds_CXX \
37181module_cmds_CXX \
37182module_expsym_cmds_CXX \
37183export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037184prelink_cmds_CXX \
37185postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037187 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037189 ;;
37190 *)
37191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37192 ;;
37193 esac
37194done
37195
cristy73bd4a52010-10-05 11:24:23 +000037196ac_aux_dir='$ac_aux_dir'
37197xsi_shell='$xsi_shell'
37198lt_shell_append='$lt_shell_append'
37199
37200# See if we are running on zsh, and set the options which allow our
37201# commands through without removal of \ escapes INIT.
37202if test -n "\${ZSH_VERSION+set}" ; then
37203 setopt NO_GLOB_SUBST
37204fi
37205
37206
37207 PACKAGE='$PACKAGE'
37208 VERSION='$VERSION'
37209 TIMESTAMP='$TIMESTAMP'
37210 RM='$RM'
37211 ofile='$ofile'
37212
37213
37214
37215
37216
37217
cristy3ed852e2009-09-05 21:47:34 +000037218_ACEOF
37219
37220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37221
37222# Handling of arguments.
37223for ac_config_target in $ac_config_targets
37224do
37225 case $ac_config_target in
37226 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037227 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037228 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37229 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37230 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37231 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37232 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037233 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037234 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37235 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37236 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37237 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37238 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037239 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037240 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37241 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037242 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37243 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37244 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37246 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37247 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37248 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37249 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37250 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37251 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37252 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37253 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37254 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37255 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37256 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37257 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37258 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37259 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37260 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37261 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037262 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37263 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037264 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37265 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037266 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037267 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037268 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037269 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037270 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37271 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37272
cristy98dddb52010-11-04 00:30:15 +000037273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037274 esac
37275done
37276
37277
37278# If the user did not use the arguments to specify the items to instantiate,
37279# then the envvar interface is used. Set only those that are not.
37280# We use the long form for the default assignment because of an extremely
37281# bizarre bug on SunOS 4.1.3.
37282if $ac_need_defaults; then
37283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37286fi
37287
37288# Have a temporary directory for convenience. Make it in the build tree
37289# simply because there is no reason against having it here, and in addition,
37290# creating and moving files from /tmp can sometimes cause problems.
37291# Hook for its removal unless debugging.
37292# Note that there is a small window in which the directory will not be cleaned:
37293# after its creation but before its name has been assigned to `$tmp'.
37294$debug ||
37295{
cristyda16f162011-02-19 23:52:17 +000037296 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037297 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037298 : "${ac_tmp:=$tmp}"
37299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037300' 0
cristy8b350f62009-11-15 23:12:43 +000037301 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037302}
37303# Create a (secure) tmp directory for tmp files.
37304
37305{
37306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037307 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037308} ||
37309{
37310 tmp=./conf$$-$RANDOM
37311 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037312} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037313ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037314
37315# Set up the scripts for CONFIG_FILES section.
37316# No need to generate them if there are no CONFIG_FILES.
37317# This happens for instance with `./config.status config.h'.
37318if test -n "$CONFIG_FILES"; then
37319
37320
cristy8b350f62009-11-15 23:12:43 +000037321ac_cr=`echo X | tr X '\015'`
37322# On cygwin, bash can eat \r inside `` if the user requested igncr.
37323# But we know of no other shell where ac_cr would be empty at this
37324# point, so we can use a bashism as a fallback.
37325if test "x$ac_cr" = x; then
37326 eval ac_cr=\$\'\\r\'
37327fi
cristy3ed852e2009-09-05 21:47:34 +000037328ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37329if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037330 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037331else
37332 ac_cs_awk_cr=$ac_cr
37333fi
37334
cristyda16f162011-02-19 23:52:17 +000037335echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037336_ACEOF
37337
37338
37339{
37340 echo "cat >conf$$subs.awk <<_ACEOF" &&
37341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37342 echo "_ACEOF"
37343} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37345ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037346ac_delim='%!_!# '
37347for ac_last_try in false false false false false :; do
37348 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037350
37351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37352 if test $ac_delim_n = $ac_delim_num; then
37353 break
37354 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037356 else
37357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37358 fi
37359done
37360rm -f conf$$subs.sh
37361
37362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037363cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037364_ACEOF
37365sed -n '
37366h
37367s/^/S["/; s/!.*/"]=/
37368p
37369g
37370s/^[^!]*!//
37371:repl
37372t repl
37373s/'"$ac_delim"'$//
37374t delim
37375:nl
37376h
cristycd4c5312009-11-22 01:19:08 +000037377s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037378t more1
37379s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37380p
37381n
37382b repl
37383:more1
37384s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37385p
37386g
37387s/.\{148\}//
37388t nl
37389:delim
37390h
cristycd4c5312009-11-22 01:19:08 +000037391s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037392t more2
37393s/["\\]/\\&/g; s/^/"/; s/$/"/
37394p
37395b
37396:more2
37397s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37398p
37399g
37400s/.\{148\}//
37401t delim
37402' <conf$$subs.awk | sed '
37403/^[^""]/{
37404 N
37405 s/\n//
37406}
37407' >>$CONFIG_STATUS || ac_write_fail=1
37408rm -f conf$$subs.awk
37409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37410_ACAWK
cristyda16f162011-02-19 23:52:17 +000037411cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037412 for (key in S) S_is_set[key] = 1
37413 FS = ""
37414
37415}
37416{
37417 line = $ 0
37418 nfields = split(line, field, "@")
37419 substed = 0
37420 len = length(field[1])
37421 for (i = 2; i < nfields; i++) {
37422 key = field[i]
37423 keylen = length(key)
37424 if (S_is_set[key]) {
37425 value = S[key]
37426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37427 len += length(value) + length(field[++i])
37428 substed = 1
37429 } else
37430 len += 1 + keylen
37431 }
37432
37433 print line
37434}
37435
37436_ACAWK
37437_ACEOF
37438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37439if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37441else
37442 cat
cristyda16f162011-02-19 23:52:17 +000037443fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037445_ACEOF
37446
cristy98dddb52010-11-04 00:30:15 +000037447# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37448# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037449# trailing colons and then remove the whole line if VPATH becomes empty
37450# (actually we leave an empty line to preserve line numbers).
37451if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37453h
37454s///
37455s/^/:/
37456s/[ ]*$/:/
37457s/:\$(srcdir):/:/g
37458s/:\${srcdir}:/:/g
37459s/:@srcdir@:/:/g
37460s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037461s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037462x
37463s/\(=[ ]*\).*/\1/
37464G
37465s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037466s/^[^=]*=[ ]*$//
37467}'
37468fi
37469
37470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37471fi # test -n "$CONFIG_FILES"
37472
37473# Set up the scripts for CONFIG_HEADERS section.
37474# No need to generate them if there are no CONFIG_HEADERS.
37475# This happens for instance with `./config.status Makefile'.
37476if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037477cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037478BEGIN {
37479_ACEOF
37480
37481# Transform confdefs.h into an awk script `defines.awk', embedded as
37482# here-document in config.status, that substitutes the proper values into
37483# config.h.in to produce config.h.
37484
37485# Create a delimiter string that does not exist in confdefs.h, to ease
37486# handling of long lines.
37487ac_delim='%!_!# '
37488for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37490 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037491 break
37492 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037494 else
37495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37496 fi
37497done
37498
37499# For the awk script, D is an array of macro values keyed by name,
37500# likewise P contains macro parameters if any. Preserve backslash
37501# newline sequences.
37502
37503ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37504sed -n '
37505s/.\{148\}/&'"$ac_delim"'/g
37506t rset
37507:rset
37508s/^[ ]*#[ ]*define[ ][ ]*/ /
37509t def
37510d
37511:def
37512s/\\$//
37513t bsnl
37514s/["\\]/\\&/g
37515s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37516D["\1"]=" \3"/p
37517s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37518d
37519:bsnl
37520s/["\\]/\\&/g
37521s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37522D["\1"]=" \3\\\\\\n"\\/p
37523t cont
37524s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37525t cont
37526d
37527:cont
37528n
37529s/.\{148\}/&'"$ac_delim"'/g
37530t clear
37531:clear
37532s/\\$//
37533t bsnlc
37534s/["\\]/\\&/g; s/^/"/; s/$/"/p
37535d
37536:bsnlc
37537s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37538b cont
37539' <confdefs.h | sed '
37540s/'"$ac_delim"'/"\\\
37541"/g' >>$CONFIG_STATUS || ac_write_fail=1
37542
37543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37544 for (key in D) D_is_set[key] = 1
37545 FS = ""
37546}
37547/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37548 line = \$ 0
37549 split(line, arg, " ")
37550 if (arg[1] == "#") {
37551 defundef = arg[2]
37552 mac1 = arg[3]
37553 } else {
37554 defundef = substr(arg[1], 2)
37555 mac1 = arg[2]
37556 }
37557 split(mac1, mac2, "(") #)
37558 macro = mac2[1]
37559 prefix = substr(line, 1, index(line, defundef) - 1)
37560 if (D_is_set[macro]) {
37561 # Preserve the white space surrounding the "#".
37562 print prefix "define", macro P[macro] D[macro]
37563 next
37564 } else {
37565 # Replace #undef with comments. This is necessary, for example,
37566 # in the case of _POSIX_SOURCE, which is predefined and required
37567 # on some systems where configure will not decide to define it.
37568 if (defundef == "undef") {
37569 print "/*", prefix defundef, macro, "*/"
37570 next
37571 }
37572 }
37573}
37574{ print }
37575_ACAWK
37576_ACEOF
37577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037579fi # test -n "$CONFIG_HEADERS"
37580
37581
37582eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37583shift
37584for ac_tag
37585do
37586 case $ac_tag in
37587 :[FHLC]) ac_mode=$ac_tag; continue;;
37588 esac
37589 case $ac_mode$ac_tag in
37590 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037592 :[FH]-) ac_tag=-:-;;
37593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37594 esac
37595 ac_save_IFS=$IFS
37596 IFS=:
37597 set x $ac_tag
37598 IFS=$ac_save_IFS
37599 shift
37600 ac_file=$1
37601 shift
37602
37603 case $ac_mode in
37604 :L) ac_source=$1;;
37605 :[FH])
37606 ac_file_inputs=
37607 for ac_f
37608 do
37609 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037610 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037611 *) # Look for the file first in the build tree, then in the source tree
37612 # (if the path is not absolute). The absolute path cannot be DOS-style,
37613 # because $ac_f cannot contain `:'.
37614 test -f "$ac_f" ||
37615 case $ac_f in
37616 [\\/$]*) false;;
37617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37618 esac ||
cristy98dddb52010-11-04 00:30:15 +000037619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037620 esac
37621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037622 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037623 done
37624
37625 # Let's still pretend it is `configure' which instantiates (i.e., don't
37626 # use $as_me), people would be surprised to read:
37627 # /* config.h. Generated by config.status. */
37628 configure_input='Generated from '`
37629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37630 `' by configure.'
37631 if test x"$ac_file" != x-; then
37632 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037634$as_echo "$as_me: creating $ac_file" >&6;}
37635 fi
37636 # Neutralize special characters interpreted by sed in replacement strings.
37637 case $configure_input in #(
37638 *\&* | *\|* | *\\* )
37639 ac_sed_conf_input=`$as_echo "$configure_input" |
37640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37641 *) ac_sed_conf_input=$configure_input;;
37642 esac
37643
37644 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037647 esac
37648 ;;
37649 esac
37650
37651 ac_dir=`$as_dirname -- "$ac_file" ||
37652$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37653 X"$ac_file" : 'X\(//\)[^/]' \| \
37654 X"$ac_file" : 'X\(//\)$' \| \
37655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37656$as_echo X"$ac_file" |
37657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37658 s//\1/
37659 q
37660 }
37661 /^X\(\/\/\)[^/].*/{
37662 s//\1/
37663 q
37664 }
37665 /^X\(\/\/\)$/{
37666 s//\1/
37667 q
37668 }
37669 /^X\(\/\).*/{
37670 s//\1/
37671 q
37672 }
37673 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037674 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037675 ac_builddir=.
37676
37677case "$ac_dir" in
37678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37679*)
37680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37681 # A ".." for each directory in $ac_dir_suffix.
37682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37683 case $ac_top_builddir_sub in
37684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37686 esac ;;
37687esac
37688ac_abs_top_builddir=$ac_pwd
37689ac_abs_builddir=$ac_pwd$ac_dir_suffix
37690# for backward compatibility:
37691ac_top_builddir=$ac_top_build_prefix
37692
37693case $srcdir in
37694 .) # We are building in place.
37695 ac_srcdir=.
37696 ac_top_srcdir=$ac_top_builddir_sub
37697 ac_abs_top_srcdir=$ac_pwd ;;
37698 [\\/]* | ?:[\\/]* ) # Absolute name.
37699 ac_srcdir=$srcdir$ac_dir_suffix;
37700 ac_top_srcdir=$srcdir
37701 ac_abs_top_srcdir=$srcdir ;;
37702 *) # Relative name.
37703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37704 ac_top_srcdir=$ac_top_build_prefix$srcdir
37705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37706esac
37707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37708
37709
37710 case $ac_mode in
37711 :F)
37712 #
37713 # CONFIG_FILE
37714 #
37715
37716 case $INSTALL in
37717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37719 esac
cristy73bd4a52010-10-05 11:24:23 +000037720 ac_MKDIR_P=$MKDIR_P
37721 case $MKDIR_P in
37722 [\\/$]* | ?:[\\/]* ) ;;
37723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37724 esac
cristy3ed852e2009-09-05 21:47:34 +000037725_ACEOF
37726
37727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37728# If the template does not know about datarootdir, expand it.
37729# FIXME: This hack should be removed a few years after 2.60.
37730ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037731ac_sed_dataroot='
37732/datarootdir/ {
37733 p
37734 q
37735}
37736/@datadir@/p
37737/@docdir@/p
37738/@infodir@/p
37739/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037740/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037741case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37742*datarootdir*) ac_datarootdir_seen=yes;;
37743*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037745$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37746_ACEOF
37747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37748 ac_datarootdir_hack='
37749 s&@datadir@&$datadir&g
37750 s&@docdir@&$docdir&g
37751 s&@infodir@&$infodir&g
37752 s&@localedir@&$localedir&g
37753 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037754 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037755esac
37756_ACEOF
37757
37758# Neutralize VPATH when `$srcdir' = `.'.
37759# Shell code in configure.ac might set extrasub.
37760# FIXME: do we really want to maintain this feature?
37761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37762ac_sed_extra="$ac_vpsub
37763$extrasub
37764_ACEOF
37765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37766:t
37767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37768s|@configure_input@|$ac_sed_conf_input|;t t
37769s&@top_builddir@&$ac_top_builddir_sub&;t t
37770s&@top_build_prefix@&$ac_top_build_prefix&;t t
37771s&@srcdir@&$ac_srcdir&;t t
37772s&@abs_srcdir@&$ac_abs_srcdir&;t t
37773s&@top_srcdir@&$ac_top_srcdir&;t t
37774s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37775s&@builddir@&$ac_builddir&;t t
37776s&@abs_builddir@&$ac_abs_builddir&;t t
37777s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37778s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037779s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037780$ac_datarootdir_hack
37781"
cristyda16f162011-02-19 23:52:17 +000037782eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037784
37785test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037790which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037791$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037792which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037793
cristyda16f162011-02-19 23:52:17 +000037794 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037795 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037798 esac \
cristy98dddb52010-11-04 00:30:15 +000037799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037800 ;;
37801 :H)
37802 #
37803 # CONFIG_HEADER
37804 #
37805 if test x"$ac_file" != x-; then
37806 {
37807 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37809 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037813$as_echo "$as_me: $ac_file is unchanged" >&6;}
37814 else
37815 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037816 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037818 fi
37819 else
37820 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037822 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037823 fi
cristy73bd4a52010-10-05 11:24:23 +000037824# Compute "$ac_file"'s index in $config_headers.
37825_am_arg="$ac_file"
37826_am_stamp_count=1
37827for _am_header in $config_headers :; do
37828 case $_am_header in
37829 $_am_arg | $_am_arg:* )
37830 break ;;
37831 * )
37832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37833 esac
37834done
37835echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37836$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37837 X"$_am_arg" : 'X\(//\)[^/]' \| \
37838 X"$_am_arg" : 'X\(//\)$' \| \
37839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37840$as_echo X"$_am_arg" |
37841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37842 s//\1/
37843 q
37844 }
37845 /^X\(\/\/\)[^/].*/{
37846 s//\1/
37847 q
37848 }
37849 /^X\(\/\/\)$/{
37850 s//\1/
37851 q
37852 }
37853 /^X\(\/\).*/{
37854 s//\1/
37855 q
37856 }
37857 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037858 ;;
37859
cristy8b350f62009-11-15 23:12:43 +000037860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037861$as_echo "$as_me: executing $ac_file commands" >&6;}
37862 ;;
37863 esac
37864
37865
37866 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037867 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037868ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37869ac_prefix_conf_PKG=`echo MagickCore`
37870ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37871ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37872ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37873if test ".$ac_prefix_conf_INP" = "."; then
37874 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37875 case "$ac_file" in
37876 *.h) ac_prefix_conf_INP=$ac_file ;;
37877 *)
37878 esac
37879 test ".$ac_prefix_conf_INP" != "." && break
37880 done
37881fi
37882if test ".$ac_prefix_conf_INP" = "."; then
37883 case "$ac_prefix_conf_OUT" in
37884 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37885 ;;
37886 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37887 ;;
37888 *) ac_prefix_conf_INP=config.h
37889 ;;
37890 esac
37891fi
37892if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037893 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037894else
37895 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37896 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37897 fi fi
37898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37899$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37900 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037901 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37902 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37903 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37904 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37905 $as_echo "#endif/" >> conftest.prefix
37906 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37907 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37908 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037909 # now executing _script on _DEF input to create _OUT output file
37910 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37911 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37912 echo ' ' >>$tmp/pconfig.h
37913 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37914
37915 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37916 echo ' ' >>$tmp/pconfig.h
37917 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37918 echo "#endif" >>$tmp/pconfig.h
37919 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37920 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37921$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37922 else
37923 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37924$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37925 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37926 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37927 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37928$as_echo X"$ac_prefix_conf_OUT" |
37929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37930 s//\1/
37931 q
37932 }
37933 /^X\(\/\/\)[^/].*/{
37934 s//\1/
37935 q
37936 }
37937 /^X\(\/\/\)$/{
37938 s//\1/
37939 q
37940 }
37941 /^X\(\/\).*/{
37942 s//\1/
37943 q
37944 }
37945 s/.*/./; q'`
37946 as_dir="$ac_dir"; as_fn_mkdir_p
37947 rm -f "$ac_prefix_conf_OUT"
37948 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37949 fi
37950 cp conftest.prefix _configs.sed
37951 else
cristy98dddb52010-11-04 00:30:15 +000037952 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 +000037953 fi
37954 rm -f conftest.*
37955fi
37956 ;;
37957 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37958 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37959 # are listed without --file. Let's play safe and only enable the eval
37960 # if we detect the quoting.
37961 case $CONFIG_FILES in
37962 *\'*) eval set x "$CONFIG_FILES" ;;
37963 *) set x $CONFIG_FILES ;;
37964 esac
37965 shift
37966 for mf
37967 do
37968 # Strip MF so we end up with the name of the file.
37969 mf=`echo "$mf" | sed -e 's/:.*$//'`
37970 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037971 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037972 # some people rename them; so instead we look at the file content.
37973 # Grep'ing the first line is not enough: some people post-process
37974 # each Makefile.in and add a new line on top of each file to say so.
37975 # Grep'ing the whole file is not good either: AIX grep has a line
37976 # limit of 2048, but all sed's we know have understand at least 4000.
37977 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37978 dirpart=`$as_dirname -- "$mf" ||
37979$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37980 X"$mf" : 'X\(//\)[^/]' \| \
37981 X"$mf" : 'X\(//\)$' \| \
37982 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37983$as_echo X"$mf" |
37984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37985 s//\1/
37986 q
37987 }
37988 /^X\(\/\/\)[^/].*/{
37989 s//\1/
37990 q
37991 }
37992 /^X\(\/\/\)$/{
37993 s//\1/
37994 q
37995 }
37996 /^X\(\/\).*/{
37997 s//\1/
37998 q
37999 }
38000 s/.*/./; q'`
38001 else
38002 continue
38003 fi
38004 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038005 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038006 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38007 test -z "$DEPDIR" && continue
38008 am__include=`sed -n 's/^am__include = //p' < "$mf"`
38009 test -z "am__include" && continue
38010 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038011 # Find all dependency output files, they are included files with
38012 # $(DEPDIR) in their names. We invoke sed twice because it is the
38013 # simplest approach to changing $(DEPDIR) to its actual value in the
38014 # expansion.
38015 for file in `sed -n "
38016 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038017 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038018 # Make sure the directory exists.
38019 test -f "$dirpart/$file" && continue
38020 fdir=`$as_dirname -- "$file" ||
38021$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38022 X"$file" : 'X\(//\)[^/]' \| \
38023 X"$file" : 'X\(//\)$' \| \
38024 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38025$as_echo X"$file" |
38026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38027 s//\1/
38028 q
38029 }
38030 /^X\(\/\/\)[^/].*/{
38031 s//\1/
38032 q
38033 }
38034 /^X\(\/\/\)$/{
38035 s//\1/
38036 q
38037 }
38038 /^X\(\/\).*/{
38039 s//\1/
38040 q
38041 }
38042 s/.*/./; q'`
38043 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38044 # echo "creating $dirpart/$file"
38045 echo '# dummy' > "$dirpart/$file"
38046 done
38047 done
38048}
38049 ;;
38050 "libtool":C)
38051
38052 # See if we are running on zsh, and set the options which allow our
38053 # commands through without removal of \ escapes.
38054 if test -n "${ZSH_VERSION+set}" ; then
38055 setopt NO_GLOB_SUBST
38056 fi
38057
38058 cfgfile="${ofile}T"
38059 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38060 $RM "$cfgfile"
38061
38062 cat <<_LT_EOF >> "$cfgfile"
38063#! $SHELL
38064
38065# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38066# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38067# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38068# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38069#
38070# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038071# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38072# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038073# Written by Gordon Matzigkeit, 1996
38074#
38075# This file is part of GNU Libtool.
38076#
38077# GNU Libtool is free software; you can redistribute it and/or
38078# modify it under the terms of the GNU General Public License as
38079# published by the Free Software Foundation; either version 2 of
38080# the License, or (at your option) any later version.
38081#
38082# As a special exception to the GNU General Public License,
38083# if you distribute this file as part of a program or library that
38084# is built using GNU Libtool, you may include this file under the
38085# same distribution terms that you use for the rest of that program.
38086#
38087# GNU Libtool is distributed in the hope that it will be useful,
38088# but WITHOUT ANY WARRANTY; without even the implied warranty of
38089# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38090# GNU General Public License for more details.
38091#
38092# You should have received a copy of the GNU General Public License
38093# along with GNU Libtool; see the file COPYING. If not, a copy
38094# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38095# obtained by writing to the Free Software Foundation, Inc.,
38096# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38097
38098
38099# The names of the tagged configurations supported by this script.
38100available_tags="CXX "
38101
38102# ### BEGIN LIBTOOL CONFIG
38103
38104# A sed program that does not truncate output.
38105SED=$lt_SED
38106
38107# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38108Xsed="\$SED -e 1s/^X//"
38109
38110# A grep program that handles long lines.
38111GREP=$lt_GREP
38112
38113# An ERE matcher.
38114EGREP=$lt_EGREP
38115
38116# A literal string matcher.
38117FGREP=$lt_FGREP
38118
cristy0c60a692010-11-04 01:09:47 +000038119# Shell to use when invoking shell scripts.
38120SHELL=$lt_SHELL
38121
38122# An echo program that protects backslashes.
38123ECHO=$lt_ECHO
38124
cristy73bd4a52010-10-05 11:24:23 +000038125# Which release of libtool.m4 was used?
38126macro_version=$macro_version
38127macro_revision=$macro_revision
38128
38129# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038130AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038131
38132# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038133DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038134
38135# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038136OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038137
38138# Whether or not to build shared libraries.
38139build_libtool_libs=$enable_shared
38140
38141# Whether or not to build static libraries.
38142build_old_libs=$enable_static
38143
38144# What type of objects to build.
38145pic_mode=$pic_mode
38146
38147# Whether or not to optimize for fast installation.
38148fast_install=$enable_fast_install
38149
cristy99bd5232011-12-07 14:38:20 +000038150# The PATH separator for the build system.
38151PATH_SEPARATOR=$lt_PATH_SEPARATOR
38152
cristy73bd4a52010-10-05 11:24:23 +000038153# The host system.
38154host_alias=$host_alias
38155host=$host
38156host_os=$host_os
38157
38158# The build system.
38159build_alias=$build_alias
38160build=$build
38161build_os=$build_os
38162
38163# A BSD- or MS-compatible name lister.
38164NM=$lt_NM
38165
38166# Whether we need soft or hard links.
38167LN_S=$lt_LN_S
38168
38169# What is the maximum length of a command?
38170max_cmd_len=$max_cmd_len
38171
38172# Object file suffix (normally "o").
38173objext=$ac_objext
38174
38175# Executable file suffix (normally "").
38176exeext=$exeext
38177
38178# whether the shell understands "unset".
38179lt_unset=$lt_unset
38180
38181# turn spaces into newlines.
38182SP2NL=$lt_lt_SP2NL
38183
38184# turn newlines into spaces.
38185NL2SP=$lt_lt_NL2SP
38186
cristyda16f162011-02-19 23:52:17 +000038187# convert \$build file names to \$host format.
38188to_host_file_cmd=$lt_cv_to_host_file_cmd
38189
38190# convert \$build files to toolchain format.
38191to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38192
cristy73bd4a52010-10-05 11:24:23 +000038193# Method to check whether dependent libraries are shared objects.
38194deplibs_check_method=$lt_deplibs_check_method
38195
cristyda16f162011-02-19 23:52:17 +000038196# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038197file_magic_cmd=$lt_file_magic_cmd
38198
cristyda16f162011-02-19 23:52:17 +000038199# How to find potential files when deplibs_check_method = "file_magic".
38200file_magic_glob=$lt_file_magic_glob
38201
38202# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38203want_nocaseglob=$lt_want_nocaseglob
38204
38205# Command to associate shared and link libraries.
38206sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38207
cristy73bd4a52010-10-05 11:24:23 +000038208# The archiver.
38209AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038210
38211# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038212AR_FLAGS=$lt_AR_FLAGS
38213
cristyda16f162011-02-19 23:52:17 +000038214# How to feed a file listing to the archiver.
38215archiver_list_spec=$lt_archiver_list_spec
38216
cristy73bd4a52010-10-05 11:24:23 +000038217# A symbol stripping program.
38218STRIP=$lt_STRIP
38219
38220# Commands used to install an old-style archive.
38221RANLIB=$lt_RANLIB
38222old_postinstall_cmds=$lt_old_postinstall_cmds
38223old_postuninstall_cmds=$lt_old_postuninstall_cmds
38224
cristy0c60a692010-11-04 01:09:47 +000038225# Whether to use a lock for old archive extraction.
38226lock_old_archive_extraction=$lock_old_archive_extraction
38227
cristy73bd4a52010-10-05 11:24:23 +000038228# A C compiler.
38229LTCC=$lt_CC
38230
38231# LTCC compiler flags.
38232LTCFLAGS=$lt_CFLAGS
38233
38234# Take the output of nm and produce a listing of raw symbols and C names.
38235global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38236
38237# Transform the output of nm in a proper C declaration.
38238global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38239
38240# Transform the output of nm in a C name address pair.
38241global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38242
38243# Transform the output of nm in a C name address pair when lib prefix is needed.
38244global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38245
cristyda16f162011-02-19 23:52:17 +000038246# Specify filename containing input files for \$NM.
38247nm_file_list_spec=$lt_nm_file_list_spec
38248
38249# The root where to search for dependent libraries,and in which our libraries should be installed.
38250lt_sysroot=$lt_sysroot
38251
cristy73bd4a52010-10-05 11:24:23 +000038252# The name of the directory that contains temporary libtool files.
38253objdir=$objdir
38254
cristy73bd4a52010-10-05 11:24:23 +000038255# Used to examine libraries when file_magic_cmd begins with "file".
38256MAGIC_CMD=$MAGIC_CMD
38257
38258# Must we lock files when doing compilation?
38259need_locks=$lt_need_locks
38260
cristyda16f162011-02-19 23:52:17 +000038261# Manifest tool.
38262MANIFEST_TOOL=$lt_MANIFEST_TOOL
38263
cristy73bd4a52010-10-05 11:24:23 +000038264# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38265DSYMUTIL=$lt_DSYMUTIL
38266
38267# Tool to change global to local symbols on Mac OS X.
38268NMEDIT=$lt_NMEDIT
38269
38270# Tool to manipulate fat objects and archives on Mac OS X.
38271LIPO=$lt_LIPO
38272
38273# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38274OTOOL=$lt_OTOOL
38275
38276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38277OTOOL64=$lt_OTOOL64
38278
38279# Old archive suffix (normally "a").
38280libext=$libext
38281
38282# Shared library suffix (normally ".so").
38283shrext_cmds=$lt_shrext_cmds
38284
38285# The commands to extract the exported symbol list from a shared archive.
38286extract_expsyms_cmds=$lt_extract_expsyms_cmds
38287
38288# Variables whose values should be saved in libtool wrapper scripts and
38289# restored at link time.
38290variables_saved_for_relink=$lt_variables_saved_for_relink
38291
38292# Do we need the "lib" prefix for modules?
38293need_lib_prefix=$need_lib_prefix
38294
38295# Do we need a version for libraries?
38296need_version=$need_version
38297
38298# Library versioning type.
38299version_type=$version_type
38300
38301# Shared library runtime path variable.
38302runpath_var=$runpath_var
38303
38304# Shared library path variable.
38305shlibpath_var=$shlibpath_var
38306
38307# Is shlibpath searched before the hard-coded library search path?
38308shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38309
38310# Format of library name prefix.
38311libname_spec=$lt_libname_spec
38312
38313# List of archive names. First name is the real one, the rest are links.
38314# The last name is the one that the linker finds with -lNAME
38315library_names_spec=$lt_library_names_spec
38316
38317# The coded name of the library, if different from the real name.
38318soname_spec=$lt_soname_spec
38319
cristy0c60a692010-11-04 01:09:47 +000038320# Permission mode override for installation of shared libraries.
38321install_override_mode=$lt_install_override_mode
38322
cristy73bd4a52010-10-05 11:24:23 +000038323# Command to use after installation of a shared archive.
38324postinstall_cmds=$lt_postinstall_cmds
38325
38326# Command to use after uninstallation of a shared archive.
38327postuninstall_cmds=$lt_postuninstall_cmds
38328
38329# Commands used to finish a libtool library installation in a directory.
38330finish_cmds=$lt_finish_cmds
38331
38332# As "finish_cmds", except a single script fragment to be evaled but
38333# not shown.
38334finish_eval=$lt_finish_eval
38335
38336# Whether we should hardcode library paths into libraries.
38337hardcode_into_libs=$hardcode_into_libs
38338
38339# Compile-time system search path for libraries.
38340sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38341
38342# Run-time system search path for libraries.
38343sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38344
38345# Whether dlopen is supported.
38346dlopen_support=$enable_dlopen
38347
38348# Whether dlopen of programs is supported.
38349dlopen_self=$enable_dlopen_self
38350
38351# Whether dlopen of statically linked programs is supported.
38352dlopen_self_static=$enable_dlopen_self_static
38353
38354# Commands to strip libraries.
38355old_striplib=$lt_old_striplib
38356striplib=$lt_striplib
38357
38358
38359# The linker used to build libraries.
38360LD=$lt_LD
38361
cristy0c60a692010-11-04 01:09:47 +000038362# How to create reloadable object files.
38363reload_flag=$lt_reload_flag
38364reload_cmds=$lt_reload_cmds
38365
cristy73bd4a52010-10-05 11:24:23 +000038366# Commands used to build an old-style archive.
38367old_archive_cmds=$lt_old_archive_cmds
38368
38369# A language specific compiler.
38370CC=$lt_compiler
38371
38372# Is the compiler the GNU compiler?
38373with_gcc=$GCC
38374
38375# Compiler flag to turn off builtin functions.
38376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38377
cristy73bd4a52010-10-05 11:24:23 +000038378# Additional compiler flags for building library objects.
38379pic_flag=$lt_lt_prog_compiler_pic
38380
cristyda16f162011-02-19 23:52:17 +000038381# How to pass a linker flag through the compiler.
38382wl=$lt_lt_prog_compiler_wl
38383
cristy73bd4a52010-10-05 11:24:23 +000038384# Compiler flag to prevent dynamic linking.
38385link_static_flag=$lt_lt_prog_compiler_static
38386
38387# Does compiler simultaneously support -c and -o options?
38388compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38389
38390# Whether or not to add -lc for building shared libraries.
38391build_libtool_need_lc=$archive_cmds_need_lc
38392
38393# Whether or not to disallow shared libs when runtime libs are static.
38394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38395
38396# Compiler flag to allow reflexive dlopens.
38397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38398
38399# Compiler flag to generate shared objects directly from archives.
38400whole_archive_flag_spec=$lt_whole_archive_flag_spec
38401
38402# Whether the compiler copes with passing no objects directly.
38403compiler_needs_object=$lt_compiler_needs_object
38404
38405# Create an old-style archive from a shared archive.
38406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38407
38408# Create a temporary old-style archive to link instead of a shared archive.
38409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38410
38411# Commands used to build a shared archive.
38412archive_cmds=$lt_archive_cmds
38413archive_expsym_cmds=$lt_archive_expsym_cmds
38414
38415# Commands used to build a loadable module if different from building
38416# a shared archive.
38417module_cmds=$lt_module_cmds
38418module_expsym_cmds=$lt_module_expsym_cmds
38419
38420# Whether we are building with GNU ld or not.
38421with_gnu_ld=$lt_with_gnu_ld
38422
38423# Flag that allows shared libraries with undefined symbols to be built.
38424allow_undefined_flag=$lt_allow_undefined_flag
38425
38426# Flag that enforces no undefined symbols.
38427no_undefined_flag=$lt_no_undefined_flag
38428
38429# Flag to hardcode \$libdir into a binary during linking.
38430# This must work even if \$libdir does not exist
38431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38432
cristy73bd4a52010-10-05 11:24:23 +000038433# Whether we need a single "-rpath" flag with a separated argument.
38434hardcode_libdir_separator=$lt_hardcode_libdir_separator
38435
38436# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38437# DIR into the resulting binary.
38438hardcode_direct=$hardcode_direct
38439
38440# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38441# DIR into the resulting binary and the resulting library dependency is
38442# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38443# library is relocated.
38444hardcode_direct_absolute=$hardcode_direct_absolute
38445
38446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38447# into the resulting binary.
38448hardcode_minus_L=$hardcode_minus_L
38449
38450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38451# into the resulting binary.
38452hardcode_shlibpath_var=$hardcode_shlibpath_var
38453
38454# Set to "yes" if building a shared library automatically hardcodes DIR
38455# into the library and all subsequent libraries and executables linked
38456# against it.
38457hardcode_automatic=$hardcode_automatic
38458
38459# Set to yes if linker adds runtime paths of dependent libraries
38460# to runtime path list.
38461inherit_rpath=$inherit_rpath
38462
38463# Whether libtool must link a program against all its dependency libraries.
38464link_all_deplibs=$link_all_deplibs
38465
cristy73bd4a52010-10-05 11:24:23 +000038466# Set to "yes" if exported symbols are required.
38467always_export_symbols=$always_export_symbols
38468
38469# The commands to list exported symbols.
38470export_symbols_cmds=$lt_export_symbols_cmds
38471
38472# Symbols that should not be listed in the preloaded symbols.
38473exclude_expsyms=$lt_exclude_expsyms
38474
38475# Symbols that must always be exported.
38476include_expsyms=$lt_include_expsyms
38477
38478# Commands necessary for linking programs (against libraries) with templates.
38479prelink_cmds=$lt_prelink_cmds
38480
cristyda16f162011-02-19 23:52:17 +000038481# Commands necessary for finishing linking programs.
38482postlink_cmds=$lt_postlink_cmds
38483
cristy73bd4a52010-10-05 11:24:23 +000038484# Specify filename containing input files.
38485file_list_spec=$lt_file_list_spec
38486
38487# How to hardcode a shared library path into an executable.
38488hardcode_action=$hardcode_action
38489
38490# The directories searched by this compiler when creating a shared library.
38491compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38492
38493# Dependencies to place before and after the objects being linked to
38494# create a shared library.
38495predep_objects=$lt_predep_objects
38496postdep_objects=$lt_postdep_objects
38497predeps=$lt_predeps
38498postdeps=$lt_postdeps
38499
38500# The library search path used internally by the compiler when linking
38501# a shared library.
38502compiler_lib_search_path=$lt_compiler_lib_search_path
38503
38504# ### END LIBTOOL CONFIG
38505
38506_LT_EOF
38507
38508 case $host_os in
38509 aix3*)
38510 cat <<\_LT_EOF >> "$cfgfile"
38511# AIX sometimes has problems with the GCC collect2 program. For some
38512# reason, if we set the COLLECT_NAMES environment variable, the problems
38513# vanish in a puff of smoke.
38514if test "X${COLLECT_NAMES+set}" != Xset; then
38515 COLLECT_NAMES=
38516 export COLLECT_NAMES
38517fi
38518_LT_EOF
38519 ;;
38520 esac
38521
38522
38523ltmain="$ac_aux_dir/ltmain.sh"
38524
38525
38526 # We use sed instead of cat because bash on DJGPP gets confused if
38527 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38528 # text mode, it properly converts lines to CR/LF. This bash problem
38529 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038530 sed '$q' "$ltmain" >> "$cfgfile" \
38531 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038532
cristyda16f162011-02-19 23:52:17 +000038533 if test x"$xsi_shell" = xyes; then
38534 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38535func_dirname ()\
38536{\
38537\ case ${1} in\
38538\ */*) func_dirname_result="${1%/*}${2}" ;;\
38539\ * ) func_dirname_result="${3}" ;;\
38540\ esac\
38541} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38542 && mv -f "$cfgfile.tmp" "$cfgfile" \
38543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38544test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038545
38546
cristyda16f162011-02-19 23:52:17 +000038547 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38548func_basename ()\
38549{\
38550\ func_basename_result="${1##*/}"\
38551} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38552 && mv -f "$cfgfile.tmp" "$cfgfile" \
38553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38554test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038555
38556
cristyda16f162011-02-19 23:52:17 +000038557 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38558func_dirname_and_basename ()\
38559{\
38560\ case ${1} in\
38561\ */*) func_dirname_result="${1%/*}${2}" ;;\
38562\ * ) func_dirname_result="${3}" ;;\
38563\ esac\
38564\ func_basename_result="${1##*/}"\
38565} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38566 && mv -f "$cfgfile.tmp" "$cfgfile" \
38567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38568test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038569
cristyda16f162011-02-19 23:52:17 +000038570
38571 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38572func_stripname ()\
38573{\
38574\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38575\ # positional parameters, so assign one to ordinary parameter first.\
38576\ func_stripname_result=${3}\
38577\ func_stripname_result=${func_stripname_result#"${1}"}\
38578\ func_stripname_result=${func_stripname_result%"${2}"}\
38579} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38580 && mv -f "$cfgfile.tmp" "$cfgfile" \
38581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38582test 0 -eq $? || _lt_function_replace_fail=:
38583
38584
38585 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38586func_split_long_opt ()\
38587{\
38588\ func_split_long_opt_name=${1%%=*}\
38589\ func_split_long_opt_arg=${1#*=}\
38590} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38591 && mv -f "$cfgfile.tmp" "$cfgfile" \
38592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38593test 0 -eq $? || _lt_function_replace_fail=:
38594
38595
38596 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38597func_split_short_opt ()\
38598{\
38599\ func_split_short_opt_arg=${1#??}\
38600\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38601} # Extended-shell func_split_short_opt 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
38606
38607 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38608func_lo2o ()\
38609{\
38610\ case ${1} in\
38611\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38612\ *) func_lo2o_result=${1} ;;\
38613\ esac\
38614} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38615 && mv -f "$cfgfile.tmp" "$cfgfile" \
38616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38617test 0 -eq $? || _lt_function_replace_fail=:
38618
38619
38620 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38621func_xform ()\
38622{\
38623 func_xform_result=${1%.*}.lo\
38624} # Extended-shell func_xform 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 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38631func_arith ()\
38632{\
38633 func_arith_result=$(( $* ))\
38634} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38635 && mv -f "$cfgfile.tmp" "$cfgfile" \
38636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38637test 0 -eq $? || _lt_function_replace_fail=:
38638
38639
38640 sed -e '/^func_len ()$/,/^} # func_len /c\
38641func_len ()\
38642{\
38643 func_len_result=${#1}\
38644} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38645 && mv -f "$cfgfile.tmp" "$cfgfile" \
38646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38647test 0 -eq $? || _lt_function_replace_fail=:
38648
38649fi
38650
38651if test x"$lt_shell_append" = xyes; then
38652 sed -e '/^func_append ()$/,/^} # func_append /c\
38653func_append ()\
38654{\
38655 eval "${1}+=\\${2}"\
38656} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38657 && mv -f "$cfgfile.tmp" "$cfgfile" \
38658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38659test 0 -eq $? || _lt_function_replace_fail=:
38660
38661
38662 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38663func_append_quoted ()\
38664{\
38665\ func_quote_for_eval "${2}"\
38666\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38667} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38668 && mv -f "$cfgfile.tmp" "$cfgfile" \
38669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38670test 0 -eq $? || _lt_function_replace_fail=:
38671
38672
38673 # Save a `func_append' function call where possible by direct use of '+='
38674 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38675 && mv -f "$cfgfile.tmp" "$cfgfile" \
38676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38677 test 0 -eq $? || _lt_function_replace_fail=:
38678else
38679 # Save a `func_append' function call even when '+=' is not available
38680 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38681 && mv -f "$cfgfile.tmp" "$cfgfile" \
38682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38683 test 0 -eq $? || _lt_function_replace_fail=:
38684fi
38685
38686if test x"$_lt_function_replace_fail" = x":"; then
38687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38688$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38689fi
38690
38691
38692 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38694 chmod +x "$ofile"
38695
38696
38697 cat <<_LT_EOF >> "$ofile"
38698
38699# ### BEGIN LIBTOOL TAG CONFIG: CXX
38700
38701# The linker used to build libraries.
38702LD=$lt_LD_CXX
38703
cristy0c60a692010-11-04 01:09:47 +000038704# How to create reloadable object files.
38705reload_flag=$lt_reload_flag_CXX
38706reload_cmds=$lt_reload_cmds_CXX
38707
cristy73bd4a52010-10-05 11:24:23 +000038708# Commands used to build an old-style archive.
38709old_archive_cmds=$lt_old_archive_cmds_CXX
38710
38711# A language specific compiler.
38712CC=$lt_compiler_CXX
38713
38714# Is the compiler the GNU compiler?
38715with_gcc=$GCC_CXX
38716
38717# Compiler flag to turn off builtin functions.
38718no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38719
cristy73bd4a52010-10-05 11:24:23 +000038720# Additional compiler flags for building library objects.
38721pic_flag=$lt_lt_prog_compiler_pic_CXX
38722
cristyda16f162011-02-19 23:52:17 +000038723# How to pass a linker flag through the compiler.
38724wl=$lt_lt_prog_compiler_wl_CXX
38725
cristy73bd4a52010-10-05 11:24:23 +000038726# Compiler flag to prevent dynamic linking.
38727link_static_flag=$lt_lt_prog_compiler_static_CXX
38728
38729# Does compiler simultaneously support -c and -o options?
38730compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38731
38732# Whether or not to add -lc for building shared libraries.
38733build_libtool_need_lc=$archive_cmds_need_lc_CXX
38734
38735# Whether or not to disallow shared libs when runtime libs are static.
38736allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38737
38738# Compiler flag to allow reflexive dlopens.
38739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38740
38741# Compiler flag to generate shared objects directly from archives.
38742whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38743
38744# Whether the compiler copes with passing no objects directly.
38745compiler_needs_object=$lt_compiler_needs_object_CXX
38746
38747# Create an old-style archive from a shared archive.
38748old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38749
38750# Create a temporary old-style archive to link instead of a shared archive.
38751old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38752
38753# Commands used to build a shared archive.
38754archive_cmds=$lt_archive_cmds_CXX
38755archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38756
38757# Commands used to build a loadable module if different from building
38758# a shared archive.
38759module_cmds=$lt_module_cmds_CXX
38760module_expsym_cmds=$lt_module_expsym_cmds_CXX
38761
38762# Whether we are building with GNU ld or not.
38763with_gnu_ld=$lt_with_gnu_ld_CXX
38764
38765# Flag that allows shared libraries with undefined symbols to be built.
38766allow_undefined_flag=$lt_allow_undefined_flag_CXX
38767
38768# Flag that enforces no undefined symbols.
38769no_undefined_flag=$lt_no_undefined_flag_CXX
38770
38771# Flag to hardcode \$libdir into a binary during linking.
38772# This must work even if \$libdir does not exist
38773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38774
cristy73bd4a52010-10-05 11:24:23 +000038775# Whether we need a single "-rpath" flag with a separated argument.
38776hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38777
38778# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38779# DIR into the resulting binary.
38780hardcode_direct=$hardcode_direct_CXX
38781
38782# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38783# DIR into the resulting binary and the resulting library dependency is
38784# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38785# library is relocated.
38786hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38787
38788# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38789# into the resulting binary.
38790hardcode_minus_L=$hardcode_minus_L_CXX
38791
38792# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38793# into the resulting binary.
38794hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38795
38796# Set to "yes" if building a shared library automatically hardcodes DIR
38797# into the library and all subsequent libraries and executables linked
38798# against it.
38799hardcode_automatic=$hardcode_automatic_CXX
38800
38801# Set to yes if linker adds runtime paths of dependent libraries
38802# to runtime path list.
38803inherit_rpath=$inherit_rpath_CXX
38804
38805# Whether libtool must link a program against all its dependency libraries.
38806link_all_deplibs=$link_all_deplibs_CXX
38807
cristy73bd4a52010-10-05 11:24:23 +000038808# Set to "yes" if exported symbols are required.
38809always_export_symbols=$always_export_symbols_CXX
38810
38811# The commands to list exported symbols.
38812export_symbols_cmds=$lt_export_symbols_cmds_CXX
38813
38814# Symbols that should not be listed in the preloaded symbols.
38815exclude_expsyms=$lt_exclude_expsyms_CXX
38816
38817# Symbols that must always be exported.
38818include_expsyms=$lt_include_expsyms_CXX
38819
38820# Commands necessary for linking programs (against libraries) with templates.
38821prelink_cmds=$lt_prelink_cmds_CXX
38822
cristyda16f162011-02-19 23:52:17 +000038823# Commands necessary for finishing linking programs.
38824postlink_cmds=$lt_postlink_cmds_CXX
38825
cristy73bd4a52010-10-05 11:24:23 +000038826# Specify filename containing input files.
38827file_list_spec=$lt_file_list_spec_CXX
38828
38829# How to hardcode a shared library path into an executable.
38830hardcode_action=$hardcode_action_CXX
38831
38832# The directories searched by this compiler when creating a shared library.
38833compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38834
38835# Dependencies to place before and after the objects being linked to
38836# create a shared library.
38837predep_objects=$lt_predep_objects_CXX
38838postdep_objects=$lt_postdep_objects_CXX
38839predeps=$lt_predeps_CXX
38840postdeps=$lt_postdeps_CXX
38841
38842# The library search path used internally by the compiler when linking
38843# a shared library.
38844compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38845
38846# ### END LIBTOOL TAG CONFIG: CXX
38847_LT_EOF
38848
38849 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038850 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038851 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038852 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038853 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38854 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38855
38856 esac
38857done # for ac_tag
38858
38859
cristy8b350f62009-11-15 23:12:43 +000038860as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038861_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038862ac_clean_files=$ac_clean_files_save
38863
38864test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038865 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038866
38867
38868# configure is writing to config.log, and then calls config.status.
38869# config.status does its own redirection, appending to config.log.
38870# Unfortunately, on DOS this fails, as config.log is still kept open
38871# by configure, so config.status won't be able to write to it; its
38872# output is simply discarded. So we exec the FD to /dev/null,
38873# effectively closing config.log, so it can be properly (re)opened and
38874# appended to by config.status. When coming back to configure, we
38875# need to make the FD available again.
38876if test "$no_create" != yes; then
38877 ac_cs_success=:
38878 ac_config_status_args=
38879 test "$silent" = yes &&
38880 ac_config_status_args="$ac_config_status_args --quiet"
38881 exec 5>/dev/null
38882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38883 exec 5>>config.log
38884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38885 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038886 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038887fi
38888if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038890$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38891fi
38892
38893
38894rm -f magick-version
38895
cristy430a7312010-01-21 20:44:04 +000038896result_dejavu_font_dir='none'
38897if test "${dejavu_font_dir}x" != 'x'; then
38898 result_dejavu_font_dir=$dejavu_font_dir
38899fi
38900
cristy3ed852e2009-09-05 21:47:34 +000038901result_ghostscript_font_dir='none'
38902if test "${ghostscript_font_dir}x" != 'x'; then
38903 result_ghostscript_font_dir=$ghostscript_font_dir
38904fi
38905
38906result_windows_font_dir='none'
38907if test "${windows_font_dir}x" != 'x'; then
38908 result_windows_font_dir=${windows_font_dir}
38909fi
38910
cristy09b53e12011-10-14 12:47:22 +000038911{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038912ImageMagick is configured as follows. Please verify that this configuration
38913matches your expectations.
38914
38915Host system type: $host
38916Build system type: $build
38917
38918 Option Value
38919-------------------------------------------------------------------------------
38920Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38921Static libraries --enable-static=$enable_static $libtool_build_static_libs
38922Module support --with-modules=$with_modules $with_modules
38923GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38924Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38925High Dynamic Range Imagery
38926 --enable-hdri=$enable_hdri $enable_hdri
38927
38928Delegate Configuration:
38929BZLIB --with-bzlib=$with_bzlib $have_bzlib
38930Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038931Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038932DJVU --with-djvu=$with_djvu $have_djvu
38933DPS --with-dps=$with_dps $have_dps
38934FFTW --with-fftw=$with_fftw $have_fftw
38935FlashPIX --with-fpx=$with_fpx $have_fpx
38936FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38937FreeType --with-freetype=$with_freetype $have_freetype
38938GhostPCL None $PCLDelegate ($PCLVersion)
38939GhostXPS None $XPSDelegate ($XPSVersion)
38940Ghostscript None $PSDelegate ($GSVersion)
38941Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38942Ghostscript lib --with-gslib=$with_gslib $have_gslib
38943Graphviz --with-gvc=$with_gvc $have_gvc
38944JBIG --with-jbig=$with_jbig $have_jbig
38945JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38946JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038947LCMS v1 --with-lcms=$with_lcms $have_lcms
38948LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038949LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038950LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038951Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38952OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038953PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038954PERL --with-perl=$with_perl $have_perl
38955PNG --with-png=$with_png $have_png
38956RSVG --with-rsvg=$with_rsvg $have_rsvg
38957TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038958WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038959Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38960WMF --with-wmf=$with_wmf $have_wmf
38961X11 --with-x=$with_x $have_x
38962XML --with-xml=$with_xml $have_xml
38963ZLIB --with-zlib=$with_zlib $have_zlib
38964
38965X11 Configuration:
38966 X_CFLAGS = $X_CFLAGS
38967 X_PRE_LIBS = $X_PRE_LIBS
38968 X_LIBS = $X_LIBS
38969 X_EXTRA_LIBS = $X_EXTRA_LIBS
38970
38971Options used to compile and link:
38972 PREFIX = $PREFIX_DIR
38973 EXEC-PREFIX = $EXEC_PREFIX_DIR
38974 VERSION = $PACKAGE_VERSION
38975 CC = $CC
38976 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038977 CPPFLAGS = $MAGICK_CPPFLAGS
38978 PCFLAGS = $MAGICK_PCFLAGS
38979 DEFS = $DEFS
38980 LDFLAGS = $LDFLAGS
38981 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38982 LIBS = $MAGICK_LIBS
38983 CXX = $CXX
38984 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038985 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038986" >&5
cristy09b53e12011-10-14 12:47:22 +000038987$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038988ImageMagick is configured as follows. Please verify that this configuration
38989matches your expectations.
38990
38991Host system type: $host
38992Build system type: $build
38993
38994 Option Value
38995-------------------------------------------------------------------------------
38996Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38997Static libraries --enable-static=$enable_static $libtool_build_static_libs
38998Module support --with-modules=$with_modules $with_modules
38999GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39000Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39001High Dynamic Range Imagery
39002 --enable-hdri=$enable_hdri $enable_hdri
39003
39004Delegate Configuration:
39005BZLIB --with-bzlib=$with_bzlib $have_bzlib
39006Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039007Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039008DJVU --with-djvu=$with_djvu $have_djvu
39009DPS --with-dps=$with_dps $have_dps
39010FFTW --with-fftw=$with_fftw $have_fftw
39011FlashPIX --with-fpx=$with_fpx $have_fpx
39012FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39013FreeType --with-freetype=$with_freetype $have_freetype
39014GhostPCL None $PCLDelegate ($PCLVersion)
39015GhostXPS None $XPSDelegate ($XPSVersion)
39016Ghostscript None $PSDelegate ($GSVersion)
39017Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39018Ghostscript lib --with-gslib=$with_gslib $have_gslib
39019Graphviz --with-gvc=$with_gvc $have_gvc
39020JBIG --with-jbig=$with_jbig $have_jbig
39021JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39022JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039023LCMS v1 --with-lcms=$with_lcms $have_lcms
39024LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039025LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000039026LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039027Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39028OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039029PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039030PERL --with-perl=$with_perl $have_perl
39031PNG --with-png=$with_png $have_png
39032RSVG --with-rsvg=$with_rsvg $have_rsvg
39033TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039034WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039035Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39036WMF --with-wmf=$with_wmf $have_wmf
39037X11 --with-x=$with_x $have_x
39038XML --with-xml=$with_xml $have_xml
39039ZLIB --with-zlib=$with_zlib $have_zlib
39040
39041X11 Configuration:
39042 X_CFLAGS = $X_CFLAGS
39043 X_PRE_LIBS = $X_PRE_LIBS
39044 X_LIBS = $X_LIBS
39045 X_EXTRA_LIBS = $X_EXTRA_LIBS
39046
39047Options used to compile and link:
39048 PREFIX = $PREFIX_DIR
39049 EXEC-PREFIX = $EXEC_PREFIX_DIR
39050 VERSION = $PACKAGE_VERSION
39051 CC = $CC
39052 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039053 CPPFLAGS = $MAGICK_CPPFLAGS
39054 PCFLAGS = $MAGICK_PCFLAGS
39055 DEFS = $DEFS
39056 LDFLAGS = $LDFLAGS
39057 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39058 LIBS = $MAGICK_LIBS
39059 CXX = $CXX
39060 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039061 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039062" >&6;}