blob: 874b3a25e420a9ee997af444d21a677c86ed490d [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
cristy3ed852e2009-09-05 21:47:34 +0000721LPRDelegate
722LPDelegate
723ILBMEncodeDelegate
724ILBMDecodeDelegate
725HTMLDecodeDelegate
726HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000727GnuplotDecodeDelegate
728MogrifyDelegate
729DisplayDelegate
730ConvertDelegate
731FIGDecodeDelegate
732EditorDelegate
733EchoDelegate
734DVIDecodeDelegate
735GVCDecodeDelegate
736DNGDecodeDelegate
737CatDelegate
738CGMDecodeDelegate
739BrowseDelegate
740BZIPDelegate
741BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000742AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000743SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000746DOCUMENTATION_PATH
747FILTER_PATH
748CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
753XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000756xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000757WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000758WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000775PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786OPENEXR_LIBS
787OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000790LZMA_LIBS
791LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000818freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
840ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841ZLIB_DELEGATE_FALSE
842ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843XEXT_LIBS
844X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845X11_DELEGATE_FALSE
846X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000851XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000852BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853BZLIB_DELEGATE_FALSE
854BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855CCMALLOCDelegate
856UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857HasUMEM_FALSE
858HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859THREAD_LIBS
860GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861WITH_MAGICK_PLUS_PLUS_FALSE
862WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000864MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000865POW_LIB
866LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000867UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000868UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000873INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000876UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000877INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878INT32_T
879UINT16_T
880INT16_T
881UINT8_T
882INT8_T
883LIBRARY_EXTRA_CPPFLAGS
884MODULE_EXTRA_CPPFLAGS
885LIBSTDCLDFLAGS
886PERL_MAKE_OPTIONS
887QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000888LEGACY_SUPPORT_FALSE
889LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000890MAINT
891MAINTAINER_MODE_FALSE
892MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000893MAGICK_HDRI
894DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000895WITH_LTDL_FALSE
896WITH_LTDL_TRUE
897WITH_MODULES_FALSE
898WITH_MODULES_TRUE
899WITH_SHARED_LIBS_FALSE
900WITH_SHARED_LIBS_TRUE
901LTDLOPEN
902LT_CONFIG_H
903CONVENIENCE_LTDL_FALSE
904CONVENIENCE_LTDL_TRUE
905INSTALL_LTDL_FALSE
906INSTALL_LTDL_TRUE
907ARGZ_H
908sys_symbol_underscore
909LIBADD_DL
910LT_DLPREOPEN
911LIBADD_DLD_LINK
912LIBADD_SHL_LOAD
913LIBADD_DLOPEN
914LT_DLLOADERS
915INCLTDL
916LTDLINCL
917LTDLDEPS
918LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000919LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000920CXXCPP
921OTOOL64
922OTOOL
923LIPO
924NMEDIT
925DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000926MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000927RANLIB
cristyda16f162011-02-19 23:52:17 +0000928ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000929AR
930NM
931ac_ct_DUMPBIN
932DUMPBIN
933LIBTOOL
934OBJDUMP
935DLLTOOL
936AS
cristy3ed852e2009-09-05 21:47:34 +0000937LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000938CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000939CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000940OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000941PTHREAD_CFLAGS
942PTHREAD_LIBS
943PTHREAD_CC
944ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000945SHAREARCH_DIR
946INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000947WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000948USING_CL_FALSE
949USING_CL_TRUE
950CYGWIN_BUILD_FALSE
951CYGWIN_BUILD_TRUE
952WIN32_NATIVE_BUILD_FALSE
953WIN32_NATIVE_BUILD_TRUE
954WINGDI32_DELEGATE_FALSE
955WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000956GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000957PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000958PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000959LN_S
cristy3ed852e2009-09-05 21:47:34 +0000960LD
cristy73bd4a52010-10-05 11:24:23 +0000961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000966ac_ct_CXX
967CXXFLAGS
968CXX
cristya0b81c32010-01-22 02:54:33 +0000969EGREP
970GREP
971CPP
cristy73bd4a52010-10-05 11:24:23 +0000972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000975am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001002DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
1010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001047MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001048MAGICK_LIBRARY_VERSION_INFO
1049MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001050MAGICK_LIBRARY_AGE
1051MAGICK_LIBRARY_REVISION
1052MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001056target_os
1057target_vendor
1058target_cpu
1059target
1060host_os
1061host_vendor
1062host_cpu
1063host
1064build_os
1065build_vendor
1066build_cpu
1067build
1068CONFIGURE_ARGS
1069DISTCHECK_CONFIG_FLAGS
1070target_alias
1071host_alias
1072build_alias
1073LIBS
1074ECHO_T
1075ECHO_N
1076ECHO_C
1077DEFS
1078mandir
1079localedir
1080libdir
1081psdir
1082pdfdir
1083dvidir
1084htmldir
1085infodir
1086docdir
1087oldincludedir
1088includedir
1089localstatedir
1090sharedstatedir
1091sysconfdir
1092datadir
1093datarootdir
1094libexecdir
1095sbindir
1096bindir
1097program_transform_name
1098prefix
1099exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001100PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001101PACKAGE_BUGREPORT
1102PACKAGE_STRING
1103PACKAGE_VERSION
1104PACKAGE_TARNAME
1105PACKAGE_NAME
1106PATH_SEPARATOR
1107SHELL'
1108ac_subst_files=''
1109ac_user_opts='
1110enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001111enable_silent_rules
1112enable_dependency_tracking
1113with_gnu_ld
1114with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001115with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001116enable_bounds_checking
1117enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001118with_includearch_dir
1119with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001120with_threads
1121enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001122enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001123enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001128with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001129enable_libtool_lock
1130with_included_ltdl
1131with_ltdl_include
1132with_ltdl_lib
1133enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001134with_modules
1135enable_delegate_build
1136enable_deprecated
1137enable_installed
1138enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001139enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001140enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001141enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001142enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001143enable_ccmalloc
1144enable_efence
1145enable_prof
1146enable_gprof
1147enable_gcov
1148with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001149enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001150with_quantum_depth
1151with_cache
1152with_frozenpaths
1153with_magick_plus_plus
1154with_perl
1155with_perl_options
1156with_umem
1157with_libstdc
1158with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001159with_x
cristy3ed852e2009-09-05 21:47:34 +00001160with_zlib
1161with_autotrace
1162with_dps
1163with_djvu
cristy430a7312010-01-21 20:44:04 +00001164with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001165with_fftw
1166with_fpx
1167with_fontconfig
1168with_freetype
1169with_gslib
1170with_fontpath
1171with_gs_font_dir
1172with_gvc
1173with_jbig
1174with_jpeg
1175with_jp2
1176with_lcms
cristy71203402010-06-18 13:12:03 +00001177with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001178with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001179with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001180with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001181with_pango
cristy3ed852e2009-09-05 21:47:34 +00001182with_png
1183with_rsvg
1184with_tiff
cristyb1860752011-03-14 00:27:46 +00001185with_webp
cristy3ed852e2009-09-05 21:47:34 +00001186with_windows_font_dir
1187with_wmf
1188with_xml
1189'
1190 ac_precious_vars='build_alias
1191host_alias
1192target_alias
1193CC
1194CFLAGS
1195LDFLAGS
1196LIBS
1197CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001198CPP
cristy3ed852e2009-09-05 21:47:34 +00001199CXX
1200CXXFLAGS
1201CCC
cristy73bd4a52010-10-05 11:24:23 +00001202PKG_CONFIG
1203CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001204XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001205AUTOTRACE_CFLAGS
1206AUTOTRACE_LIBS
1207FONTCONFIG_CFLAGS
1208FONTCONFIG_LIBS
1209GVC_CFLAGS
1210GVC_LIBS
1211LQR_CFLAGS
1212LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001213LZMA_CFLAGS
1214LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001215OPENEXR_CFLAGS
1216OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001217PANGO_CFLAGS
1218PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001219RSVG_CFLAGS
1220RSVG_LIBS
1221CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001222CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001223
1224
1225# Initialize some variables set by options.
1226ac_init_help=
1227ac_init_version=false
1228ac_unrecognized_opts=
1229ac_unrecognized_sep=
1230# The variables have the same names as the options, with
1231# dashes changed to underlines.
1232cache_file=/dev/null
1233exec_prefix=NONE
1234no_create=
1235no_recursion=
1236prefix=NONE
1237program_prefix=NONE
1238program_suffix=NONE
1239program_transform_name=s,x,x,
1240silent=
1241site=
1242srcdir=
1243verbose=
1244x_includes=NONE
1245x_libraries=NONE
1246
1247# Installation directory options.
1248# These are left unexpanded so users can "make install exec_prefix=/foo"
1249# and all the variables that are supposed to be based on exec_prefix
1250# by default will actually change.
1251# Use braces instead of parens because sh, perl, etc. also accept them.
1252# (The list follows the same order as the GNU Coding Standards.)
1253bindir='${exec_prefix}/bin'
1254sbindir='${exec_prefix}/sbin'
1255libexecdir='${exec_prefix}/libexec'
1256datarootdir='${prefix}/share'
1257datadir='${datarootdir}'
1258sysconfdir='${prefix}/etc'
1259sharedstatedir='${prefix}/com'
1260localstatedir='${prefix}/var'
1261includedir='${prefix}/include'
1262oldincludedir='/usr/include'
1263docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264infodir='${datarootdir}/info'
1265htmldir='${docdir}'
1266dvidir='${docdir}'
1267pdfdir='${docdir}'
1268psdir='${docdir}'
1269libdir='${exec_prefix}/lib'
1270localedir='${datarootdir}/locale'
1271mandir='${datarootdir}/man'
1272
1273ac_prev=
1274ac_dashdash=
1275for ac_option
1276do
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1280 ac_prev=
1281 continue
1282 fi
1283
1284 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286 *=) ac_optarg= ;;
1287 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001288 esac
1289
1290 # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292 case $ac_dashdash$ac_option in
1293 --)
1294 ac_dashdash=yes ;;
1295
1296 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297 ac_prev=bindir ;;
1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299 bindir=$ac_optarg ;;
1300
1301 -build | --build | --buil | --bui | --bu)
1302 ac_prev=build_alias ;;
1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304 build_alias=$ac_optarg ;;
1305
1306 -cache-file | --cache-file | --cache-fil | --cache-fi \
1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308 ac_prev=cache_file ;;
1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311 cache_file=$ac_optarg ;;
1312
1313 --config-cache | -C)
1314 cache_file=config.cache ;;
1315
1316 -datadir | --datadir | --datadi | --datad)
1317 ac_prev=datadir ;;
1318 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319 datadir=$ac_optarg ;;
1320
1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322 | --dataroo | --dataro | --datar)
1323 ac_prev=datarootdir ;;
1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326 datarootdir=$ac_optarg ;;
1327
1328 -disable-* | --disable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001332 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"enable_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval enable_$ac_useropt=no ;;
1343
1344 -docdir | --docdir | --docdi | --doc | --do)
1345 ac_prev=docdir ;;
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1348
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350 ac_prev=dvidir ;;
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1353
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001358 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1362 *"
1363"enable_$ac_useropt"
1364"*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372 | --exec | --exe | --ex)
1373 ac_prev=exec_prefix ;;
1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376 | --exec=* | --exe=* | --ex=*)
1377 exec_prefix=$ac_optarg ;;
1378
1379 -gas | --gas | --ga | --g)
1380 # Obsolete; use --with-gas.
1381 with_gas=yes ;;
1382
1383 -help | --help | --hel | --he | -h)
1384 ac_init_help=long ;;
1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386 ac_init_help=recursive ;;
1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388 ac_init_help=short ;;
1389
1390 -host | --host | --hos | --ho)
1391 ac_prev=host_alias ;;
1392 -host=* | --host=* | --hos=* | --ho=*)
1393 host_alias=$ac_optarg ;;
1394
1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396 ac_prev=htmldir ;;
1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398 | --ht=*)
1399 htmldir=$ac_optarg ;;
1400
1401 -includedir | --includedir | --includedi | --included | --include \
1402 | --includ | --inclu | --incl | --inc)
1403 ac_prev=includedir ;;
1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405 | --includ=* | --inclu=* | --incl=* | --inc=*)
1406 includedir=$ac_optarg ;;
1407
1408 -infodir | --infodir | --infodi | --infod | --info | --inf)
1409 ac_prev=infodir ;;
1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411 infodir=$ac_optarg ;;
1412
1413 -libdir | --libdir | --libdi | --libd)
1414 ac_prev=libdir ;;
1415 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416 libdir=$ac_optarg ;;
1417
1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419 | --libexe | --libex | --libe)
1420 ac_prev=libexecdir ;;
1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422 | --libexe=* | --libex=* | --libe=*)
1423 libexecdir=$ac_optarg ;;
1424
1425 -localedir | --localedir | --localedi | --localed | --locale)
1426 ac_prev=localedir ;;
1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428 localedir=$ac_optarg ;;
1429
1430 -localstatedir | --localstatedir | --localstatedi | --localstated \
1431 | --localstate | --localstat | --localsta | --localst | --locals)
1432 ac_prev=localstatedir ;;
1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435 localstatedir=$ac_optarg ;;
1436
1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438 ac_prev=mandir ;;
1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440 mandir=$ac_optarg ;;
1441
1442 -nfp | --nfp | --nf)
1443 # Obsolete; use --without-fp.
1444 with_fp=no ;;
1445
1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447 | --no-cr | --no-c | -n)
1448 no_create=yes ;;
1449
1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452 no_recursion=yes ;;
1453
1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456 | --oldin | --oldi | --old | --ol | --o)
1457 ac_prev=oldincludedir ;;
1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461 oldincludedir=$ac_optarg ;;
1462
1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464 ac_prev=prefix ;;
1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466 prefix=$ac_optarg ;;
1467
1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469 | --program-pre | --program-pr | --program-p)
1470 ac_prev=program_prefix ;;
1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473 program_prefix=$ac_optarg ;;
1474
1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476 | --program-suf | --program-su | --program-s)
1477 ac_prev=program_suffix ;;
1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480 program_suffix=$ac_optarg ;;
1481
1482 -program-transform-name | --program-transform-name \
1483 | --program-transform-nam | --program-transform-na \
1484 | --program-transform-n | --program-transform- \
1485 | --program-transform | --program-transfor \
1486 | --program-transfo | --program-transf \
1487 | --program-trans | --program-tran \
1488 | --progr-tra | --program-tr | --program-t)
1489 ac_prev=program_transform_name ;;
1490 -program-transform-name=* | --program-transform-name=* \
1491 | --program-transform-nam=* | --program-transform-na=* \
1492 | --program-transform-n=* | --program-transform-=* \
1493 | --program-transform=* | --program-transfor=* \
1494 | --program-transfo=* | --program-transf=* \
1495 | --program-trans=* | --program-tran=* \
1496 | --progr-tra=* | --program-tr=* | --program-t=*)
1497 program_transform_name=$ac_optarg ;;
1498
1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500 ac_prev=pdfdir ;;
1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502 pdfdir=$ac_optarg ;;
1503
1504 -psdir | --psdir | --psdi | --psd | --ps)
1505 ac_prev=psdir ;;
1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507 psdir=$ac_optarg ;;
1508
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 silent=yes ;;
1512
1513 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1514 ac_prev=sbindir ;;
1515 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1516 | --sbi=* | --sb=*)
1517 sbindir=$ac_optarg ;;
1518
1519 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1520 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1521 | --sharedst | --shareds | --shared | --share | --shar \
1522 | --sha | --sh)
1523 ac_prev=sharedstatedir ;;
1524 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1525 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1526 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1527 | --sha=* | --sh=*)
1528 sharedstatedir=$ac_optarg ;;
1529
1530 -site | --site | --sit)
1531 ac_prev=site ;;
1532 -site=* | --site=* | --sit=*)
1533 site=$ac_optarg ;;
1534
1535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1536 ac_prev=srcdir ;;
1537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1538 srcdir=$ac_optarg ;;
1539
1540 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1541 | --syscon | --sysco | --sysc | --sys | --sy)
1542 ac_prev=sysconfdir ;;
1543 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1544 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1545 sysconfdir=$ac_optarg ;;
1546
1547 -target | --target | --targe | --targ | --tar | --ta | --t)
1548 ac_prev=target_alias ;;
1549 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1550 target_alias=$ac_optarg ;;
1551
1552 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553 verbose=yes ;;
1554
1555 -version | --version | --versio | --versi | --vers | -V)
1556 ac_init_version=: ;;
1557
1558 -with-* | --with-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001562 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1566 *"
1567"with_$ac_useropt"
1568"*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval with_$ac_useropt=\$ac_optarg ;;
1573
1574 -without-* | --without-*)
1575 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1576 # Reject names that are not valid shell variable names.
1577 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001578 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001579 ac_useropt_orig=$ac_useropt
1580 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1581 case $ac_user_opts in
1582 *"
1583"with_$ac_useropt"
1584"*) ;;
1585 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1586 ac_unrecognized_sep=', ';;
1587 esac
1588 eval with_$ac_useropt=no ;;
1589
1590 --x)
1591 # Obsolete; use --with-x.
1592 with_x=yes ;;
1593
1594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1595 | --x-incl | --x-inc | --x-in | --x-i)
1596 ac_prev=x_includes ;;
1597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1599 x_includes=$ac_optarg ;;
1600
1601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1603 ac_prev=x_libraries ;;
1604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1606 x_libraries=$ac_optarg ;;
1607
cristy98dddb52010-11-04 00:30:15 +00001608 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1609Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001610 ;;
1611
1612 *=*)
1613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1614 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001615 case $ac_envvar in #(
1616 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001618 esac
cristy3ed852e2009-09-05 21:47:34 +00001619 eval $ac_envvar=\$ac_optarg
1620 export $ac_envvar ;;
1621
1622 *)
1623 # FIXME: should be removed in autoconf 3.0.
1624 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1626 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001627 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001628 ;;
1629
1630 esac
1631done
1632
1633if test -n "$ac_prev"; then
1634 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001636fi
1637
1638if test -n "$ac_unrecognized_opts"; then
1639 case $enable_option_checking in
1640 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001641 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001642 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643 esac
1644fi
1645
1646# Check all directory arguments for consistency.
1647for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1648 datadir sysconfdir sharedstatedir localstatedir includedir \
1649 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1650 libdir localedir mandir
1651do
1652 eval ac_val=\$$ac_var
1653 # Remove trailing slashes.
1654 case $ac_val in
1655 */ )
1656 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1657 eval $ac_var=\$ac_val;;
1658 esac
1659 # Be sure to have absolute directory names.
1660 case $ac_val in
1661 [\\/$]* | ?:[\\/]* ) continue;;
1662 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1663 esac
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001665done
1666
1667# There might be people who depend on the old broken behavior: `$host'
1668# used to hold the argument of --host etc.
1669# FIXME: To remove some day.
1670build=$build_alias
1671host=$host_alias
1672target=$target_alias
1673
1674# FIXME: To remove some day.
1675if test "x$host_alias" != x; then
1676 if test "x$build_alias" = x; then
1677 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001678 elif test "x$build_alias" != "x$host_alias"; then
1679 cross_compiling=yes
1680 fi
1681fi
1682
1683ac_tool_prefix=
1684test -n "$host_alias" && ac_tool_prefix=$host_alias-
1685
1686test "$silent" = yes && exec 6>/dev/null
1687
1688
1689ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690ac_ls_di=`ls -di .` &&
1691ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001692 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001693test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001695
1696
1697# Find the source files, if location was not specified.
1698if test -z "$srcdir"; then
1699 ac_srcdir_defaulted=yes
1700 # Try the directory containing this script, then the parent directory.
1701 ac_confdir=`$as_dirname -- "$as_myself" ||
1702$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703 X"$as_myself" : 'X\(//\)[^/]' \| \
1704 X"$as_myself" : 'X\(//\)$' \| \
1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706$as_echo X"$as_myself" |
1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708 s//\1/
1709 q
1710 }
1711 /^X\(\/\/\)[^/].*/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\/\)$/{
1716 s//\1/
1717 q
1718 }
1719 /^X\(\/\).*/{
1720 s//\1/
1721 q
1722 }
1723 s/.*/./; q'`
1724 srcdir=$ac_confdir
1725 if test ! -r "$srcdir/$ac_unique_file"; then
1726 srcdir=..
1727 fi
1728else
1729 ac_srcdir_defaulted=no
1730fi
1731if test ! -r "$srcdir/$ac_unique_file"; then
1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001733 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001734fi
1735ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1736ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001737 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001738 pwd)`
1739# When building in place, set srcdir=.
1740if test "$ac_abs_confdir" = "$ac_pwd"; then
1741 srcdir=.
1742fi
1743# Remove unnecessary trailing slashes from srcdir.
1744# Double slashes in file names in object file debugging info
1745# mess up M-x gdb in Emacs.
1746case $srcdir in
1747*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1748esac
1749for ac_var in $ac_precious_vars; do
1750 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_env_${ac_var}_value=\$${ac_var}
1752 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754done
1755
1756#
1757# Report the --help message.
1758#
1759if test "$ac_init_help" = "long"; then
1760 # Omit some internal or obsolete options to make the list less imposing.
1761 # This message is too long to be a string in the A/UX 3.1 sh.
1762 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001763\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001764
1765Usage: $0 [OPTION]... [VAR=VALUE]...
1766
1767To assign environment variables (e.g., CC, CFLAGS...), specify them as
1768VAR=VALUE. See below for descriptions of some of the useful variables.
1769
1770Defaults for the options are specified in brackets.
1771
1772Configuration:
1773 -h, --help display this help and exit
1774 --help=short display options specific to this package
1775 --help=recursive display the short help of all the included packages
1776 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001777 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001778 --cache-file=FILE cache test results in FILE [disabled]
1779 -C, --config-cache alias for \`--cache-file=config.cache'
1780 -n, --no-create do not create output files
1781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1782
1783Installation directories:
1784 --prefix=PREFIX install architecture-independent files in PREFIX
1785 [$ac_default_prefix]
1786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1787 [PREFIX]
1788
1789By default, \`make install' will install all the files in
1790\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1791an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1792for instance \`--prefix=\$HOME'.
1793
1794For better control, use the options below.
1795
1796Fine tuning of the installation directories:
1797 --bindir=DIR user executables [EPREFIX/bin]
1798 --sbindir=DIR system admin executables [EPREFIX/sbin]
1799 --libexecdir=DIR program executables [EPREFIX/libexec]
1800 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1801 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1802 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1803 --libdir=DIR object code libraries [EPREFIX/lib]
1804 --includedir=DIR C header files [PREFIX/include]
1805 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1806 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1807 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1808 --infodir=DIR info documentation [DATAROOTDIR/info]
1809 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1810 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001811 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001812 --htmldir=DIR html documentation [DOCDIR]
1813 --dvidir=DIR dvi documentation [DOCDIR]
1814 --pdfdir=DIR pdf documentation [DOCDIR]
1815 --psdir=DIR ps documentation [DOCDIR]
1816_ACEOF
1817
1818 cat <<\_ACEOF
1819
cristy73bd4a52010-10-05 11:24:23 +00001820Program names:
1821 --program-prefix=PREFIX prepend PREFIX to installed program names
1822 --program-suffix=SUFFIX append SUFFIX to installed program names
1823 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1824
cristy3ed852e2009-09-05 21:47:34 +00001825X features:
1826 --x-includes=DIR X include files are in DIR
1827 --x-libraries=DIR X library files are in DIR
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832 --target=TARGET configure for building compilers for TARGET [HOST]
1833_ACEOF
1834fi
1835
1836if test -n "$ac_init_help"; then
1837 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001838 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001839 esac
1840 cat <<\_ACEOF
1841
1842Optional Features:
1843 --disable-option-checking ignore unrecognized --enable/--with options
1844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001846 --enable-silent-rules less verbose build output (undo: "make V=1")
1847 --disable-silent-rules verbose build output (undo: "make V=0")
1848 --enable-dependency-tracking
1849 do not reject slow dependency extractors
1850 --disable-dependency-tracking
1851 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001852 --enable-bounds-checking
1853 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001854 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001855 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001856 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001857 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001859 --enable-shared[=PKGS] build shared libraries [default=yes]
1860 --enable-static[=PKGS] build static libraries [default=yes]
1861 --enable-fast-install[=PKGS]
1862 optimize for fast installation [default=yes]
1863 --disable-libtool-lock avoid locking (might break parallel builds)
1864 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001865 --enable-delegate-build look for delegate libraries in build directory
1866 --disable-deprecated exclude deprecated methods in MagickCore and
1867 MagickWand API's
1868 --disable-installed Formally install ImageMagick under PREFIX
1869 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001870 --enable-zero-configuration
1871 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001872 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001873 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001874 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001875 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001876 --enable-maintainer-mode
1877 enable make rules and dependencies not useful (and
1878 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001879 --enable-ccmalloc enable 'ccmalloc' memory debug support
1880 --enable-efence enable 'efence' memory debug support
1881 --enable-prof enable 'prof' profiling support
1882 --enable-gprof enable 'gprof' profiling support
1883 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001884 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001885 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001886
1887Optional Packages:
1888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001890 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001891 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001892 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1893 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001894 --includearch-dir=DIR ARCH specific include directory
1895 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001897 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001898 both]
cristyda16f162011-02-19 23:52:17 +00001899 --with-sysroot=DIR Search for dependent libraries within DIR
1900 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001901 --with-included-ltdl use the GNU ltdl sources included here
1902 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1903 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001904 --with-modules enable building dynamically loadable modules
1905 --with-method-prefix=PREFIX
1906 prefix MagickCore API methods
1907 --with-quantum-depth=DEPTH
1908 number of bits in a pixel quantum (default 16)
1909 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1910 memory)
1911 --with-frozenpaths freeze delegate paths
1912 --without-magick-plus-plus
1913 disable build/install of Magick++
1914 --with-perl enable build/install of PerlMagick
1915 --with-perl-options=OPTIONS
1916 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001917 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-umem enable umem memory allocation library support
1919 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1920 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001921 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001922 --without-zlib disable ZLIB support
1923 --with-autotrace enable autotrace support
1924 --without-dps disable Display Postscript support
1925 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001926 --with-dejavu-font-dir=DIR
1927 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-fftw disable FFTW support
1929 --without-fpx disable FlashPIX support
1930 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001931 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-gslib enable Ghostscript library support
1933 --with-fontpath=DIR prepend to default font search path
1934 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001935 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-jbig disable JBIG support
1937 --without-jpeg disable JPEG support
1938 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001939 --without-lcms disable lcms (v1.1X) support
1940 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001941 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001942 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001944 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001945 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001946 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001948 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001949 --with-windows-font-dir=DIR
1950 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001951 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-xml disable XML support
1953
1954Some influential environment variables:
1955 CC C compiler command
1956 CFLAGS C compiler flags
1957 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1958 nonstandard directory <lib dir>
1959 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001960 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001961 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001962 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001963 CXX C++ compiler command
1964 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001965 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001966 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001967 XMKMF Path to xmkmf, Makefile generator for X Window System
1968 AUTOTRACE_CFLAGS
1969 C compiler flags for AUTOTRACE, overriding pkg-config
1970 AUTOTRACE_LIBS
1971 linker flags for AUTOTRACE, overriding pkg-config
1972 FONTCONFIG_CFLAGS
1973 C compiler flags for FONTCONFIG, overriding pkg-config
1974 FONTCONFIG_LIBS
1975 linker flags for FONTCONFIG, overriding pkg-config
1976 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1977 GVC_LIBS linker flags for GVC, overriding pkg-config
1978 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1979 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001980 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1981 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001982 OPENEXR_CFLAGS
1983 C compiler flags for OPENEXR, overriding pkg-config
1984 OPENEXR_LIBS
1985 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001986 PANGO_CFLAGS
1987 C compiler flags for PANGO, overriding pkg-config
1988 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001989 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1990 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1991 CAIRO_SVG_CFLAGS
1992 C compiler flags for CAIRO_SVG, overriding pkg-config
1993 CAIRO_SVG_LIBS
1994 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001995
1996Use these variables to override the choices made by `configure' or to help
1997it to find libraries and programs with nonstandard names/locations.
1998
1999Report bugs to <http://www.imagemagick.org>.
2000_ACEOF
2001ac_status=$?
2002fi
2003
2004if test "$ac_init_help" = "recursive"; then
2005 # If there are subdirs, report their specific --help.
2006 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2007 test -d "$ac_dir" ||
2008 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2009 continue
2010 ac_builddir=.
2011
2012case "$ac_dir" in
2013.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2014*)
2015 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2016 # A ".." for each directory in $ac_dir_suffix.
2017 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2018 case $ac_top_builddir_sub in
2019 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2020 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2021 esac ;;
2022esac
2023ac_abs_top_builddir=$ac_pwd
2024ac_abs_builddir=$ac_pwd$ac_dir_suffix
2025# for backward compatibility:
2026ac_top_builddir=$ac_top_build_prefix
2027
2028case $srcdir in
2029 .) # We are building in place.
2030 ac_srcdir=.
2031 ac_top_srcdir=$ac_top_builddir_sub
2032 ac_abs_top_srcdir=$ac_pwd ;;
2033 [\\/]* | ?:[\\/]* ) # Absolute name.
2034 ac_srcdir=$srcdir$ac_dir_suffix;
2035 ac_top_srcdir=$srcdir
2036 ac_abs_top_srcdir=$srcdir ;;
2037 *) # Relative name.
2038 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2039 ac_top_srcdir=$ac_top_build_prefix$srcdir
2040 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2041esac
2042ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2043
2044 cd "$ac_dir" || { ac_status=$?; continue; }
2045 # Check for guested configure.
2046 if test -f "$ac_srcdir/configure.gnu"; then
2047 echo &&
2048 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2049 elif test -f "$ac_srcdir/configure"; then
2050 echo &&
2051 $SHELL "$ac_srcdir/configure" --help=recursive
2052 else
2053 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2054 fi || ac_status=$?
2055 cd "$ac_pwd" || { ac_status=$?; break; }
2056 done
2057fi
2058
2059test -n "$ac_init_help" && exit $ac_status
2060if $ac_init_version; then
2061 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002062ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002063generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002064
cristy14fefe52012-05-21 00:59:18 +00002065Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002066This configure script is free software; the Free Software Foundation
2067gives unlimited permission to copy, distribute and modify it.
2068_ACEOF
2069 exit
2070fi
cristy8b350f62009-11-15 23:12:43 +00002071
2072## ------------------------ ##
2073## Autoconf initialization. ##
2074## ------------------------ ##
2075
2076# ac_fn_c_try_compile LINENO
2077# --------------------------
2078# Try to compile conftest.$ac_ext, and return whether this succeeded.
2079ac_fn_c_try_compile ()
2080{
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext
2083 if { { ac_try="$ac_compile"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_compile") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2096 fi
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest.$ac_objext; then :
2102 ac_retval=0
2103else
2104 $as_echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108fi
cristyda16f162011-02-19 23:52:17 +00002109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002110 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002111
2112} # ac_fn_c_try_compile
2113
cristy95646052009-11-28 23:05:30 +00002114# ac_fn_c_try_cpp LINENO
2115# ----------------------
2116# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2117ac_fn_c_try_cpp ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if { { ac_try="$ac_cpp conftest.$ac_ext"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128 ac_status=$?
2129 if test -s conftest.err; then
2130 grep -v '^ *+' conftest.err >conftest.er1
2131 cat conftest.er1 >&5
2132 mv -f conftest.er1 conftest.err
2133 fi
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002135 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2137 test ! -s conftest.err
2138 }; then :
2139 ac_retval=0
2140else
2141 $as_echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=1
2145fi
cristyda16f162011-02-19 23:52:17 +00002146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002147 as_fn_set_status $ac_retval
2148
2149} # ac_fn_c_try_cpp
2150
cristy8b350f62009-11-15 23:12:43 +00002151# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2152# -------------------------------------------------------
2153# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2154# the include files in INCLUDES and setting the cache variable VAR
2155# accordingly.
2156ac_fn_c_check_header_mongrel ()
2157{
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002159 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002162if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 $as_echo_n "(cached) " >&6
2164fi
2165eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168else
2169 # Is the header compilable?
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2171$as_echo_n "checking $2 usability... " >&6; }
2172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175#include <$2>
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_header_compiler=yes
2179else
2180 ac_header_compiler=no
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2184$as_echo "$ac_header_compiler" >&6; }
2185
2186# Is the header present?
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2188$as_echo_n "checking $2 presence... " >&6; }
2189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191#include <$2>
2192_ACEOF
2193if ac_fn_c_try_cpp "$LINENO"; then :
2194 ac_header_preproc=yes
2195else
2196 ac_header_preproc=no
2197fi
cristyda16f162011-02-19 23:52:17 +00002198rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2200$as_echo "$ac_header_preproc" >&6; }
2201
2202# So? What about this header?
2203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2204 yes:no: )
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2206$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 ;;
2210 no:yes:* )
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2212$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2214$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2216$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2218$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2220$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002221( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002222## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002223## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002224 ) | sed "s/^/$as_me: WARNING: /" >&2
2225 ;;
2226esac
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002229if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002230 $as_echo_n "(cached) " >&6
2231else
2232 eval "$3=\$ac_header_compiler"
2233fi
2234eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236$as_echo "$ac_res" >&6; }
2237fi
cristyda16f162011-02-19 23:52:17 +00002238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002239
2240} # ac_fn_c_check_header_mongrel
2241
2242# ac_fn_c_try_run LINENO
2243# ----------------------
2244# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245# that executables *can* be run.
2246ac_fn_c_try_run ()
2247{
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if { { ac_try="$ac_link"
2250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
2254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255$as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_link") 2>&5
2257 ac_status=$?
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260 { { case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_try") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; }; }; then :
2270 ac_retval=0
2271else
2272 $as_echo "$as_me: program exited with status $ac_status" >&5
2273 $as_echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 ac_retval=$ac_status
2277fi
2278 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002280 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002281
2282} # ac_fn_c_try_run
2283
2284# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2285# -------------------------------------------------------
2286# Tests whether HEADER exists and can be compiled using the include files in
2287# INCLUDES, setting the cache variable VAR accordingly.
2288ac_fn_c_check_header_compile ()
2289{
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002293if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002294 $as_echo_n "(cached) " >&6
2295else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h. */
2298$4
2299#include <$2>
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302 eval "$3=yes"
2303else
2304 eval "$3=no"
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307fi
2308eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002312
2313} # ac_fn_c_check_header_compile
2314
cristya0b81c32010-01-22 02:54:33 +00002315# ac_fn_cxx_try_compile LINENO
2316# ----------------------------
2317# Try to compile conftest.$ac_ext, and return whether this succeeded.
2318ac_fn_cxx_try_compile ()
2319{
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 rm -f conftest.$ac_objext
2322 if { { ac_try="$ac_compile"
2323case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326esac
2327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328$as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_compile") 2>conftest.err
2330 ac_status=$?
2331 if test -s conftest.err; then
2332 grep -v '^ *+' conftest.err >conftest.er1
2333 cat conftest.er1 >&5
2334 mv -f conftest.er1 conftest.err
2335 fi
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && {
2338 test -z "$ac_cxx_werror_flag" ||
2339 test ! -s conftest.err
2340 } && test -s conftest.$ac_objext; then :
2341 ac_retval=0
2342else
2343 $as_echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_retval=1
2347fi
cristyda16f162011-02-19 23:52:17 +00002348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002349 as_fn_set_status $ac_retval
2350
2351} # ac_fn_cxx_try_compile
2352
cristy8b350f62009-11-15 23:12:43 +00002353# ac_fn_c_try_link LINENO
2354# -----------------------
2355# Try to link conftest.$ac_ext, and return whether this succeeded.
2356ac_fn_c_try_link ()
2357{
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 rm -f conftest.$ac_objext conftest$ac_exeext
2360 if { { ac_try="$ac_link"
2361case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364esac
2365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366$as_echo "$ac_try_echo"; } >&5
2367 (eval "$ac_link") 2>conftest.err
2368 ac_status=$?
2369 if test -s conftest.err; then
2370 grep -v '^ *+' conftest.err >conftest.er1
2371 cat conftest.er1 >&5
2372 mv -f conftest.er1 conftest.err
2373 fi
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; } && {
2376 test -z "$ac_c_werror_flag" ||
2377 test ! -s conftest.err
2378 } && test -s conftest$ac_exeext && {
2379 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002380 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002381 }; then :
2382 ac_retval=0
2383else
2384 $as_echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 ac_retval=1
2388fi
2389 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2390 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2391 # interfere with the next link command; also delete a directory that is
2392 # left behind by Apple's compiler. We do this before executing the actions.
2393 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002395 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002396
2397} # ac_fn_c_try_link
2398
cristy73bd4a52010-10-05 11:24:23 +00002399# ac_fn_c_check_func LINENO FUNC VAR
2400# ----------------------------------
2401# Tests whether FUNC exists, setting the cache variable VAR accordingly
2402ac_fn_c_check_func ()
2403{
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002407if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002408 $as_echo_n "(cached) " >&6
2409else
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h. */
2412/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2414#define $2 innocuous_$2
2415
2416/* System header to define __stub macros and hopefully few prototypes,
2417 which can conflict with char $2 (); below.
2418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419 <limits.h> exists even on freestanding compilers. */
2420
2421#ifdef __STDC__
2422# include <limits.h>
2423#else
2424# include <assert.h>
2425#endif
2426
2427#undef $2
2428
2429/* Override any GCC internal prototype to avoid an error.
2430 Use char because int might match the return type of a GCC
2431 builtin and then its argument prototype would still apply. */
2432#ifdef __cplusplus
2433extern "C"
2434#endif
2435char $2 ();
2436/* The GNU C library defines this for functions which it implements
2437 to always fail with ENOSYS. Some functions are actually named
2438 something starting with __ and the normal name is an alias. */
2439#if defined __stub_$2 || defined __stub___$2
2440choke me
2441#endif
2442
2443int
2444main ()
2445{
2446return $2 ();
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451if ac_fn_c_try_link "$LINENO"; then :
2452 eval "$3=yes"
2453else
2454 eval "$3=no"
2455fi
2456rm -f core conftest.err conftest.$ac_objext \
2457 conftest$ac_exeext conftest.$ac_ext
2458fi
2459eval ac_res=\$$3
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002463
2464} # ac_fn_c_check_func
2465
2466# ac_fn_cxx_try_cpp LINENO
2467# ------------------------
2468# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2469ac_fn_cxx_try_cpp ()
2470{
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 if { { ac_try="$ac_cpp conftest.$ac_ext"
2473case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478$as_echo "$ac_try_echo"; } >&5
2479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2480 ac_status=$?
2481 if test -s conftest.err; then
2482 grep -v '^ *+' conftest.err >conftest.er1
2483 cat conftest.er1 >&5
2484 mv -f conftest.er1 conftest.err
2485 fi
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002487 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002488 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2489 test ! -s conftest.err
2490 }; then :
2491 ac_retval=0
2492else
2493 $as_echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 ac_retval=1
2497fi
cristyda16f162011-02-19 23:52:17 +00002498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002499 as_fn_set_status $ac_retval
2500
2501} # ac_fn_cxx_try_cpp
2502
2503# ac_fn_cxx_try_link LINENO
2504# -------------------------
2505# Try to link conftest.$ac_ext, and return whether this succeeded.
2506ac_fn_cxx_try_link ()
2507{
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 rm -f conftest.$ac_objext conftest$ac_exeext
2510 if { { ac_try="$ac_link"
2511case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516$as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_link") 2>conftest.err
2518 ac_status=$?
2519 if test -s conftest.err; then
2520 grep -v '^ *+' conftest.err >conftest.er1
2521 cat conftest.er1 >&5
2522 mv -f conftest.er1 conftest.err
2523 fi
2524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2525 test $ac_status = 0; } && {
2526 test -z "$ac_cxx_werror_flag" ||
2527 test ! -s conftest.err
2528 } && test -s conftest$ac_exeext && {
2529 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002530 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002531 }; then :
2532 ac_retval=0
2533else
2534 $as_echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 ac_retval=1
2538fi
2539 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2540 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2541 # interfere with the next link command; also delete a directory that is
2542 # left behind by Apple's compiler. We do this before executing the actions.
2543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002545 as_fn_set_status $ac_retval
2546
2547} # ac_fn_cxx_try_link
2548
cristy98dddb52010-11-04 00:30:15 +00002549# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2550# ---------------------------------------------
2551# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2552# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002553ac_fn_c_check_decl ()
2554{
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002556 as_decl_name=`echo $2|sed 's/ *(.*//'`
2557 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2559$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002560if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002561 $as_echo_n "(cached) " >&6
2562else
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
cristy98dddb52010-11-04 00:30:15 +00002569#ifndef $as_decl_name
2570#ifdef __cplusplus
2571 (void) $as_decl_use;
2572#else
2573 (void) $as_decl_name;
2574#endif
cristy73bd4a52010-10-05 11:24:23 +00002575#endif
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582 eval "$3=yes"
2583else
2584 eval "$3=no"
2585fi
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588eval ac_res=\$$3
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002592
2593} # ac_fn_c_check_decl
2594
cristy8b350f62009-11-15 23:12:43 +00002595# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2596# -------------------------------------------
2597# Tests whether TYPE exists after having included INCLUDES, setting cache
2598# variable VAR accordingly.
2599ac_fn_c_check_type ()
2600{
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002604if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002605 $as_echo_n "(cached) " >&6
2606else
2607 eval "$3=no"
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611int
2612main ()
2613{
2614if (sizeof ($2))
2615 return 0;
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622/* end confdefs.h. */
2623$4
2624int
2625main ()
2626{
2627if (sizeof (($2)))
2628 return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634
2635else
2636 eval "$3=yes"
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642eval ac_res=\$$3
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002646
2647} # ac_fn_c_check_type
2648
cristy92703d82010-04-26 00:18:18 +00002649# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2650# ----------------------------------------------------
2651# Tries to find if the field MEMBER exists in type AGGR, after including
2652# INCLUDES, setting cache variable VAR accordingly.
2653ac_fn_c_check_member ()
2654{
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2657$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002658if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002659 $as_echo_n "(cached) " >&6
2660else
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h. */
2663$5
2664int
2665main ()
2666{
2667static $2 ac_aggr;
2668if (ac_aggr.$3)
2669return 0;
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675 eval "$4=yes"
2676else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h. */
2679$5
2680int
2681main ()
2682{
2683static $2 ac_aggr;
2684if (sizeof ac_aggr.$3)
2685return 0;
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690if ac_fn_c_try_compile "$LINENO"; then :
2691 eval "$4=yes"
2692else
2693 eval "$4=no"
2694fi
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698fi
2699eval ac_res=\$$4
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002703
2704} # ac_fn_c_check_member
2705
cristy501c8042011-05-26 17:46:28 +00002706# ac_fn_c_find_intX_t LINENO BITS VAR
2707# -----------------------------------
2708# Finds a signed integer type with width BITS, setting cache variable VAR
2709# accordingly.
2710ac_fn_c_find_intX_t ()
2711{
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2714$as_echo_n "checking for int$2_t... " >&6; }
2715if eval \${$3+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 eval "$3=no"
2719 # Order is important - never check a type that is potentially smaller
2720 # than half of the expected target width.
2721 for ac_type in int$2_t 'int' 'long int' \
2722 'long long int' 'short int' 'signed char'; do
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h. */
2725$ac_includes_default
2726 enum { N = $2 / 2 - 1 };
2727int
2728main ()
2729{
2730static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002731test_array [0] = 0;
2732return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002733
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738if ac_fn_c_try_compile "$LINENO"; then :
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$ac_includes_default
2742 enum { N = $2 / 2 - 1 };
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2747 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002748test_array [0] = 0;
2749return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755if ac_fn_c_try_compile "$LINENO"; then :
2756
2757else
2758 case $ac_type in #(
2759 int$2_t) :
2760 eval "$3=yes" ;; #(
2761 *) :
2762 eval "$3=\$ac_type" ;;
2763esac
2764fi
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766fi
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 if eval test \"x\$"$3"\" = x"no"; then :
2769
2770else
2771 break
2772fi
2773 done
2774fi
2775eval ac_res=\$$3
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2777$as_echo "$ac_res" >&6; }
2778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2779
2780} # ac_fn_c_find_intX_t
2781
2782# ac_fn_c_find_uintX_t LINENO BITS VAR
2783# ------------------------------------
2784# Finds an unsigned integer type with width BITS, setting cache variable VAR
2785# accordingly.
2786ac_fn_c_find_uintX_t ()
2787{
2788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2790$as_echo_n "checking for uint$2_t... " >&6; }
2791if eval \${$3+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793else
2794 eval "$3=no"
2795 # Order is important - never check a type that is potentially smaller
2796 # than half of the expected target width.
2797 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2798 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800/* end confdefs.h. */
2801$ac_includes_default
2802int
2803main ()
2804{
2805static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002806test_array [0] = 0;
2807return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814 case $ac_type in #(
2815 uint$2_t) :
2816 eval "$3=yes" ;; #(
2817 *) :
2818 eval "$3=\$ac_type" ;;
2819esac
2820fi
2821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 if eval test \"x\$"$3"\" = x"no"; then :
2823
2824else
2825 break
2826fi
2827 done
2828fi
2829eval ac_res=\$$3
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2831$as_echo "$ac_res" >&6; }
2832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2833
2834} # ac_fn_c_find_uintX_t
2835
cristy8b350f62009-11-15 23:12:43 +00002836# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2837# --------------------------------------------
2838# Tries to find the compile-time value of EXPR in a program that includes
2839# INCLUDES, setting VAR accordingly. Returns whether the value could be
2840# computed
2841ac_fn_c_compute_int ()
2842{
2843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844 if test "$cross_compiling" = yes; then
2845 # Depending upon the size, compute the lo and hi bounds.
2846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$4
2849int
2850main ()
2851{
2852static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002853test_array [0] = 0;
2854return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002855
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_lo=0 ac_mid=0
2862 while :; do
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865$4
2866int
2867main ()
2868{
2869static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002870test_array [0] = 0;
2871return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878 ac_hi=$ac_mid; break
2879else
2880 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2881 if test $ac_lo -le $ac_mid; then
2882 ac_lo= ac_hi=
2883 break
2884 fi
2885 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2886fi
2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889else
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h. */
2892$4
2893int
2894main ()
2895{
2896static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002897test_array [0] = 0;
2898return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905 ac_hi=-1 ac_mid=-1
2906 while :; do
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h. */
2909$4
2910int
2911main ()
2912{
2913static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002914test_array [0] = 0;
2915return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921if ac_fn_c_try_compile "$LINENO"; then :
2922 ac_lo=$ac_mid; break
2923else
2924 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2925 if test $ac_mid -le $ac_hi; then
2926 ac_lo= ac_hi=
2927 break
2928 fi
2929 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2930fi
2931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933else
2934 ac_lo= ac_hi=
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939# Binary search between lo and hi bounds.
2940while test "x$ac_lo" != "x$ac_hi"; do
2941 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
2944$4
2945int
2946main ()
2947{
2948static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002949test_array [0] = 0;
2950return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957 ac_hi=$ac_mid
2958else
2959 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962done
2963case $ac_lo in #((
2964?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2965'') ac_retval=1 ;;
2966esac
2967 else
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970$4
2971static long int longval () { return $2; }
2972static unsigned long int ulongval () { return $2; }
2973#include <stdio.h>
2974#include <stdlib.h>
2975int
2976main ()
2977{
2978
2979 FILE *f = fopen ("conftest.val", "w");
2980 if (! f)
2981 return 1;
2982 if (($2) < 0)
2983 {
2984 long int i = longval ();
2985 if (i != ($2))
2986 return 1;
2987 fprintf (f, "%ld", i);
2988 }
2989 else
2990 {
2991 unsigned long int i = ulongval ();
2992 if (i != ($2))
2993 return 1;
2994 fprintf (f, "%lu", i);
2995 }
2996 /* Do not output a trailing newline, as this causes \r\n confusion
2997 on some platforms. */
2998 return ferror (f) || fclose (f) != 0;
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004if ac_fn_c_try_run "$LINENO"; then :
3005 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3006else
3007 ac_retval=1
3008fi
3009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3010 conftest.$ac_objext conftest.beam conftest.$ac_ext
3011rm -f conftest.val
3012
3013 fi
cristyda16f162011-02-19 23:52:17 +00003014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003015 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003016
3017} # ac_fn_c_compute_int
3018
3019# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3020# ---------------------------------------------------------
3021# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3022# the include files in INCLUDES and setting the cache variable VAR
3023# accordingly.
3024ac_fn_cxx_check_header_mongrel ()
3025{
3026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003027 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003030if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 $as_echo_n "(cached) " >&6
3032fi
3033eval ac_res=\$$3
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3035$as_echo "$ac_res" >&6; }
3036else
3037 # Is the header compilable?
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3039$as_echo_n "checking $2 usability... " >&6; }
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
3042$4
3043#include <$2>
3044_ACEOF
3045if ac_fn_cxx_try_compile "$LINENO"; then :
3046 ac_header_compiler=yes
3047else
3048 ac_header_compiler=no
3049fi
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3052$as_echo "$ac_header_compiler" >&6; }
3053
3054# Is the header present?
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3056$as_echo_n "checking $2 presence... " >&6; }
3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h. */
3059#include <$2>
3060_ACEOF
3061if ac_fn_cxx_try_cpp "$LINENO"; then :
3062 ac_header_preproc=yes
3063else
3064 ac_header_preproc=no
3065fi
cristyda16f162011-02-19 23:52:17 +00003066rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3068$as_echo "$ac_header_preproc" >&6; }
3069
3070# So? What about this header?
3071case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3072 yes:no: )
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3074$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3076$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3077 ;;
3078 no:yes:* )
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3080$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3082$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3084$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3086$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3088$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003089( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003090## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003091## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003092 ) | sed "s/^/$as_me: WARNING: /" >&2
3093 ;;
3094esac
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3096$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003097if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003098 $as_echo_n "(cached) " >&6
3099else
3100 eval "$3=\$ac_header_compiler"
3101fi
3102eval ac_res=\$$3
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3104$as_echo "$ac_res" >&6; }
3105fi
cristyda16f162011-02-19 23:52:17 +00003106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003107
3108} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003109cat >config.log <<_ACEOF
3110This file contains any messages produced by compilers while
3111running configure, to aid debugging if configure makes a mistake.
3112
cristy29eb34e2011-10-16 00:46:08 +00003113It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003114generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003115
3116 $ $0 $@
3117
3118_ACEOF
3119exec 5>>config.log
3120{
3121cat <<_ASUNAME
3122## --------- ##
3123## Platform. ##
3124## --------- ##
3125
3126hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3127uname -m = `(uname -m) 2>/dev/null || echo unknown`
3128uname -r = `(uname -r) 2>/dev/null || echo unknown`
3129uname -s = `(uname -s) 2>/dev/null || echo unknown`
3130uname -v = `(uname -v) 2>/dev/null || echo unknown`
3131
3132/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3133/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3134
3135/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3136/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3137/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3138/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3139/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3140/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3141/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3142
3143_ASUNAME
3144
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003150 $as_echo "PATH: $as_dir"
3151 done
cristy3ed852e2009-09-05 21:47:34 +00003152IFS=$as_save_IFS
3153
3154} >&5
3155
3156cat >&5 <<_ACEOF
3157
3158
3159## ----------- ##
3160## Core tests. ##
3161## ----------- ##
3162
3163_ACEOF
3164
3165
3166# Keep a trace of the command line.
3167# Strip out --no-create and --no-recursion so they do not pile up.
3168# Strip out --silent because we don't want to record it for future runs.
3169# Also quote any args containing shell meta-characters.
3170# Make two passes to allow for proper duplicate-argument suppression.
3171ac_configure_args=
3172ac_configure_args0=
3173ac_configure_args1=
3174ac_must_keep_next=false
3175for ac_pass in 1 2
3176do
3177 for ac_arg
3178 do
3179 case $ac_arg in
3180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3182 | -silent | --silent | --silen | --sile | --sil)
3183 continue ;;
3184 *\'*)
3185 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3186 esac
3187 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003189 2)
cristy8b350f62009-11-15 23:12:43 +00003190 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003191 if test $ac_must_keep_next = true; then
3192 ac_must_keep_next=false # Got value, back to normal.
3193 else
3194 case $ac_arg in
3195 *=* | --config-cache | -C | -disable-* | --disable-* \
3196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3198 | -with-* | --with-* | -without-* | --without-* | --x)
3199 case "$ac_configure_args0 " in
3200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3201 esac
3202 ;;
3203 -* ) ac_must_keep_next=true ;;
3204 esac
3205 fi
cristy8b350f62009-11-15 23:12:43 +00003206 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003207 ;;
3208 esac
3209 done
3210done
cristy8b350f62009-11-15 23:12:43 +00003211{ ac_configure_args0=; unset ac_configure_args0;}
3212{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003213
3214# When interrupted or exit'd, cleanup temporary files, and complete
3215# config.log. We remove comments because anyway the quotes in there
3216# would cause problems or look ugly.
3217# WARNING: Use '\'' to represent an apostrophe within the trap.
3218# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3219trap 'exit_status=$?
3220 # Save into config.log some information that might help in debugging.
3221 {
3222 echo
3223
cristy98dddb52010-11-04 00:30:15 +00003224 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003225## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003226## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003227 echo
3228 # The following way of writing the cache mishandles newlines in values,
3229(
3230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3231 eval ac_val=\$$ac_var
3232 case $ac_val in #(
3233 *${as_nl}*)
3234 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003236$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3237 esac
3238 case $ac_var in #(
3239 _ | IFS | as_nl) ;; #(
3240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003241 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003242 esac ;;
3243 esac
3244 done
3245 (set) 2>&1 |
3246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3247 *${as_nl}ac_space=\ *)
3248 sed -n \
3249 "s/'\''/'\''\\\\'\'''\''/g;
3250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3251 ;; #(
3252 *)
3253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3254 ;;
3255 esac |
3256 sort
3257)
3258 echo
3259
cristy98dddb52010-11-04 00:30:15 +00003260 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003261## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003262## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003263 echo
3264 for ac_var in $ac_subst_vars
3265 do
3266 eval ac_val=\$$ac_var
3267 case $ac_val in
3268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3269 esac
3270 $as_echo "$ac_var='\''$ac_val'\''"
3271 done | sort
3272 echo
3273
3274 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003275 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003276## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003277## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003278 echo
3279 for ac_var in $ac_subst_files
3280 do
3281 eval ac_val=\$$ac_var
3282 case $ac_val in
3283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3284 esac
3285 $as_echo "$ac_var='\''$ac_val'\''"
3286 done | sort
3287 echo
3288 fi
3289
3290 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003291 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003292## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003293## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003294 echo
3295 cat confdefs.h
3296 echo
3297 fi
3298 test "$ac_signal" != 0 &&
3299 $as_echo "$as_me: caught signal $ac_signal"
3300 $as_echo "$as_me: exit $exit_status"
3301 } >&5
3302 rm -f core *.core core.conftest.* &&
3303 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3304 exit $exit_status
3305' 0
3306for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003307 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003308done
3309ac_signal=0
3310
3311# confdefs.h avoids OS command line length limits that DEFS can exceed.
3312rm -f -r conftest* confdefs.h
3313
cristy8b350f62009-11-15 23:12:43 +00003314$as_echo "/* confdefs.h */" > confdefs.h
3315
cristy3ed852e2009-09-05 21:47:34 +00003316# Predefined preprocessor variables.
3317
3318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE_NAME "$PACKAGE_NAME"
3320_ACEOF
3321
cristy3ed852e2009-09-05 21:47:34 +00003322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_VERSION "$PACKAGE_VERSION"
3328_ACEOF
3329
cristy3ed852e2009-09-05 21:47:34 +00003330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_STRING "$PACKAGE_STRING"
3332_ACEOF
3333
cristy3ed852e2009-09-05 21:47:34 +00003334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3336_ACEOF
3337
cristy8b350f62009-11-15 23:12:43 +00003338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_URL "$PACKAGE_URL"
3340_ACEOF
3341
cristy3ed852e2009-09-05 21:47:34 +00003342
3343# Let the site file select an alternate cache file if it wants to.
3344# Prefer an explicitly selected file to automatically selected ones.
3345ac_site_file1=NONE
3346ac_site_file2=NONE
3347if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003348 # We do not want a PATH search for config.site.
3349 case $CONFIG_SITE in #((
3350 -*) ac_site_file1=./$CONFIG_SITE;;
3351 */*) ac_site_file1=$CONFIG_SITE;;
3352 *) ac_site_file1=./$CONFIG_SITE;;
3353 esac
cristy3ed852e2009-09-05 21:47:34 +00003354elif test "x$prefix" != xNONE; then
3355 ac_site_file1=$prefix/share/config.site
3356 ac_site_file2=$prefix/etc/config.site
3357else
3358 ac_site_file1=$ac_default_prefix/share/config.site
3359 ac_site_file2=$ac_default_prefix/etc/config.site
3360fi
3361for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3362do
3363 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003364 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003366$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3367 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003368 . "$ac_site_file" \
3369 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371as_fn_error $? "failed to load site script $ac_site_file
3372See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003373 fi
3374done
3375
3376if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003377 # Some versions of bash will fail to source /dev/null (special files
3378 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3379 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: loading cache $cache_file" >&6;}
3382 case $cache_file in
3383 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3384 *) . "./$cache_file";;
3385 esac
3386 fi
3387else
cristy8b350f62009-11-15 23:12:43 +00003388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$as_me: creating cache $cache_file" >&6;}
3390 >$cache_file
3391fi
3392
cristycd4c5312009-11-22 01:19:08 +00003393as_fn_append ac_header_list " stdlib.h"
3394as_fn_append ac_header_list " unistd.h"
3395as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003396# Check that the precious variables saved in the cache have kept the same
3397# value.
3398ac_cache_corrupted=false
3399for ac_var in $ac_precious_vars; do
3400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3401 eval ac_new_set=\$ac_env_${ac_var}_set
3402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3403 eval ac_new_val=\$ac_env_${ac_var}_value
3404 case $ac_old_set,$ac_new_set in
3405 set,)
cristy8b350f62009-11-15 23:12:43 +00003406 { $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 +00003407$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3408 ac_cache_corrupted=: ;;
3409 ,set)
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3412 ac_cache_corrupted=: ;;
3413 ,);;
3414 *)
3415 if test "x$ac_old_val" != "x$ac_new_val"; then
3416 # differences in whitespace do not lead to failure.
3417 ac_old_val_w=`echo x $ac_old_val`
3418 ac_new_val_w=`echo x $ac_new_val`
3419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3422 ac_cache_corrupted=:
3423 else
cristy8b350f62009-11-15 23:12:43 +00003424 { $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 +00003425$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3426 eval $ac_var=\$ac_old_val
3427 fi
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3432 fi;;
3433 esac
3434 # Pass precious variables to config.status.
3435 if test "$ac_new_set" = set; then
3436 case $ac_new_val in
3437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3438 *) ac_arg=$ac_var=$ac_new_val ;;
3439 esac
3440 case " $ac_configure_args " in
3441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003443 esac
3444 fi
3445done
3446if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003451 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003452fi
cristy8b350f62009-11-15 23:12:43 +00003453## -------------------- ##
3454## Main body of script. ##
3455## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465ac_aux_dir=
3466for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003467 if test -f "$ac_dir/install-sh"; then
3468 ac_aux_dir=$ac_dir
3469 ac_install_sh="$ac_aux_dir/install-sh -c"
3470 break
3471 elif test -f "$ac_dir/install.sh"; then
3472 ac_aux_dir=$ac_dir
3473 ac_install_sh="$ac_aux_dir/install.sh -c"
3474 break
3475 elif test -f "$ac_dir/shtool"; then
3476 ac_aux_dir=$ac_dir
3477 ac_install_sh="$ac_aux_dir/shtool install -c"
3478 break
3479 fi
cristy3ed852e2009-09-05 21:47:34 +00003480done
3481if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003483fi
3484
3485# These three variables are undocumented and unsupported,
3486# and are intended to be withdrawn in a future Autoconf release.
3487# They can cause serious problems if a builder's source tree is in a directory
3488# whose full name contains unusual characters.
3489ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3490ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3491ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3492
3493
3494
3495
cristybc556452012-08-17 19:44:03 +00003496
cristy3ed852e2009-09-05 21:47:34 +00003497ac_config_headers="$ac_config_headers config/config.h"
3498
cristy24fc1fe2010-10-23 21:13:01 +00003499
cristy4c08aed2011-07-01 19:47:50 +00003500ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003501
cristy0cf6da52012-08-25 00:35:24 +00003502ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh tests/common.shi utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003503
3504
3505#
3506# Save initial user-tunable values
3507#
3508USER_LIBS=$LIBS
3509for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3510 eval isset=\${$var+set}
3511 if test "$isset" = 'set'; then
3512 eval val=$`echo $var`
3513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3514 fi
3515done
3516
3517
3518CONFIGURE_ARGS="$0 ${ac_configure_args}"
3519
3520
3521# Source file containing package/library versioning information.
3522. ${srcdir}/version.sh
3523
cristy15a88782010-01-31 23:24:49 +00003524echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003525# Make sure we can run config.sub.
3526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 ac_build_alias=$build_alias
3535test "x$ac_build_alias" = x &&
3536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3537test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_build" >&6; }
3545case $ac_cv_build in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549build=$ac_cv_build
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_build
3552shift
3553build_cpu=$1
3554build_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558build_os=$*
3559IFS=$ac_save_IFS
3560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3561
3562
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003565if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 if test "x$host_alias" = x; then
3569 ac_cv_host=$ac_cv_build
3570else
3571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003573fi
3574
3575fi
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo "$ac_cv_host" >&6; }
3578case $ac_cv_host in
3579*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003581esac
3582host=$ac_cv_host
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_host
3585shift
3586host_cpu=$1
3587host_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591host_os=$*
3592IFS=$ac_save_IFS
3593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3594
3595
cristy8b350f62009-11-15 23:12:43 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003598if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003599 $as_echo_n "(cached) " >&6
3600else
3601 if test "x$target_alias" = x; then
3602 ac_cv_target=$ac_cv_host
3603else
3604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606fi
3607
3608fi
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo "$ac_cv_target" >&6; }
3611case $ac_cv_target in
3612*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003614esac
3615target=$ac_cv_target
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_target
3618shift
3619target_cpu=$1
3620target_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624target_os=$*
3625IFS=$ac_save_IFS
3626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3627
3628
3629# The aliases save the names the user supplied, while $host etc.
3630# will get canonicalized.
3631test -n "$target_alias" &&
3632 test "$program_prefix$program_suffix$program_transform_name" = \
3633 NONENONEs,x,x, &&
3634 program_prefix=${target_alias}-
3635
cristy837d6dc2010-02-27 01:16:57 +00003636
3637
3638
cristy8be34142012-06-17 14:07:18 +00003639
cristy19615b82011-04-13 20:02:01 +00003640MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003641
3642
cristy27d53d62012-07-29 23:30:07 +00003643cat >>confdefs.h <<_ACEOF
3644#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3645_ACEOF
3646
3647
cristy19615b82011-04-13 20:02:01 +00003648MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003649
3650
cristy27d53d62012-07-29 23:30:07 +00003651cat >>confdefs.h <<_ACEOF
3652#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3653_ACEOF
3654
3655
cristy19615b82011-04-13 20:02:01 +00003656MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003657
3658
cristy27d53d62012-07-29 23:30:07 +00003659cat >>confdefs.h <<_ACEOF
3660#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3661_ACEOF
3662
3663
cristy3ed852e2009-09-05 21:47:34 +00003664# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003665MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3666
3667MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3668
cristy0cf6da52012-08-25 00:35:24 +00003669MAGICK_SVN_REVISION=9067:9100M
cristyd694ca32011-03-27 21:42:54 +00003670
cristy3ed852e2009-09-05 21:47:34 +00003671
3672
3673# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3675$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003676# Reject unsafe characters in $srcdir or the absolute working directory
3677# name. Accept space and tab only in the latter.
3678am_lf='
3679'
3680case `pwd` in
3681 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003683esac
3684case $srcdir in
3685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003686 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003687esac
cristy3ed852e2009-09-05 21:47:34 +00003688
cristyc0890a62012-07-19 00:18:20 +00003689# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003690# arguments. Must try -L first in case configure is actually a
3691# symlink; some systems play weird games with the mod time of symlinks
3692# (eg FreeBSD returns the mod time of the symlink's containing
3693# directory).
3694if (
cristyc0890a62012-07-19 00:18:20 +00003695 am_has_slept=no
3696 for am_try in 1 2; do
3697 echo "timestamp, slept: $am_has_slept" > conftest.file
3698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3699 if test "$*" = "X"; then
3700 # -L didn't work.
3701 set X `ls -t "$srcdir/configure" conftest.file`
3702 fi
3703 if test "$*" != "X $srcdir/configure conftest.file" \
3704 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003705
cristyc0890a62012-07-19 00:18:20 +00003706 # If neither matched, then we have a broken ls. This can happen
3707 # if, for instance, CONFIG_SHELL is bash and it inherits a
3708 # broken ls alias from the environment. This has actually
3709 # happened. Such a system could not be considered "sane".
3710 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3711 alias in your environment" "$LINENO" 5
3712 fi
3713 if test "$2" = conftest.file || test $am_try -eq 2; then
3714 break
3715 fi
3716 # Just in case.
3717 sleep 1
3718 am_has_slept=yes
3719 done
cristy73bd4a52010-10-05 11:24:23 +00003720 test "$2" = conftest.file
3721 )
3722then
3723 # Ok.
3724 :
3725else
cristy98dddb52010-11-04 00:30:15 +00003726 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003727Check your system clock" "$LINENO" 5
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003731# If we didn't sleep, we still need to ensure time stamps of config.status and
3732# generated files are strictly newer.
3733am_sleep_pid=
3734if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3735 ( sleep 1 ) &
3736 am_sleep_pid=$!
3737fi
cristy73bd4a52010-10-05 11:24:23 +00003738
cristyc0890a62012-07-19 00:18:20 +00003739rm -f conftest.file
3740
3741
3742am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003743
3744# Find a good install program. We prefer a C program (faster),
3745# so one script is as good as another. But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
3757# Reject install programs that cannot install multiple files.
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759$as_echo_n "checking for a BSD-compatible install... " >&6; }
3760if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003761if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003762 $as_echo_n "(cached) " >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in #((
3771 ./ | .// | /[cC]/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774 /usr/ucb/* ) ;;
3775 *)
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3785 :
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3789 :
3790 else
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
3803 fi
3804 fi
3805 done
3806 done
3807 ;;
3808esac
3809
3810 done
3811IFS=$as_save_IFS
3812
3813rm -rf conftest.one conftest.two conftest.dir
3814
3815fi
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
3818 else
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
3824 fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827$as_echo "$INSTALL" >&6; }
3828
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837test "$program_prefix" != NONE &&
3838 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3839# Use a double $ so make ignores it.
3840test "$program_suffix" != NONE &&
3841 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3842# Double any \ or $.
3843# By default was `s,x,x', remove it if useless.
3844ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3845program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3846
3847# expand $ac_aux_dir to an absolute path
3848am_aux_dir=`cd $ac_aux_dir && pwd`
3849
3850if test x"${MISSING+set}" != xset; then
3851 case $am_aux_dir in
3852 *\ * | *\ *)
3853 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3854 *)
3855 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3856 esac
3857fi
3858# Use eval to expand $SHELL
3859if eval "$MISSING --run true"; then
3860 am_missing_run="$MISSING --run "
3861else
3862 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3864$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003865fi
3866
3867if test x"${install_sh}" != xset; then
3868 case $am_aux_dir in
3869 *\ * | *\ *)
3870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3871 *)
3872 install_sh="\${SHELL} $am_aux_dir/install-sh"
3873 esac
3874fi
3875
cristyc0890a62012-07-19 00:18:20 +00003876# Installed binaries are usually stripped using 'strip' when the user
3877# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003878# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003879# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003880if test "$cross_compiling" != no; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}strip; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003886if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003887 $as_echo_n "(cached) " >&6
3888else
3889 if test -n "$STRIP"; then
3890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904 done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909STRIP=$ac_cv_prog_STRIP
3910if test -n "$STRIP"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3912$as_echo "$STRIP" >&6; }
3913else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918
3919fi
3920if test -z "$ac_cv_prog_STRIP"; then
3921 ac_ct_STRIP=$STRIP
3922 # Extract the first word of "strip", so it can be a program name with args.
3923set dummy strip; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003926if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003927 $as_echo_n "(cached) " >&6
3928else
3929 if test -n "$ac_ct_STRIP"; then
3930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003939 ac_cv_prog_ac_ct_STRIP="strip"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944 done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3950if test -n "$ac_ct_STRIP"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3952$as_echo "$ac_ct_STRIP" >&6; }
3953else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958 if test "x$ac_ct_STRIP" = x; then
3959 STRIP=":"
3960 else
3961 case $cross_compiling:$ac_tool_warned in
3962yes:)
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965ac_tool_warned=yes ;;
3966esac
3967 STRIP=$ac_ct_STRIP
3968 fi
3969else
3970 STRIP="$ac_cv_prog_STRIP"
3971fi
3972
3973fi
3974INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3977$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3978if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003979 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003980 $as_echo_n "(cached) " >&6
3981else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in mkdir gmkdir; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003989 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3991 'mkdir (GNU coreutils) '* | \
3992 'mkdir (coreutils) '* | \
3993 'mkdir (fileutils) '4.1*)
3994 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3995 break 3;;
3996 esac
3997 done
3998 done
3999 done
4000IFS=$as_save_IFS
4001
4002fi
4003
4004 test -d ./--version && rmdir ./--version
4005 if test "${ac_cv_path_mkdir+set}" = set; then
4006 MKDIR_P="$ac_cv_path_mkdir -p"
4007 else
4008 # As a last resort, use the slow shell script. Don't cache a
4009 # value for MKDIR_P within a source directory, because that will
4010 # break other packages using the cache if that directory is
4011 # removed, or if the value is a relative name.
4012 MKDIR_P="$ac_install_sh -d"
4013 fi
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4016$as_echo "$MKDIR_P" >&6; }
4017
cristy73bd4a52010-10-05 11:24:23 +00004018for ac_prog in gawk mawk nawk awk
4019do
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004024if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004025 $as_echo_n "(cached) " >&6
4026else
4027 if test -n "$AWK"; then
4028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004037 ac_cv_prog_AWK="$ac_prog"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041done
4042 done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047AWK=$ac_cv_prog_AWK
4048if test -n "$AWK"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4050$as_echo "$AWK" >&6; }
4051else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056
4057 test -n "$AWK" && break
4058done
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4061$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4062set x ${MAKE-make}
4063ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004064if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004065 $as_echo_n "(cached) " >&6
4066else
4067 cat >conftest.make <<\_ACEOF
4068SHELL = /bin/sh
4069all:
4070 @echo '@@@%%%=$(MAKE)=@@@%%%'
4071_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004072# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004073case `${MAKE-make} -f conftest.make 2>/dev/null` in
4074 *@@@%%%=?*=@@@%%%*)
4075 eval ac_cv_prog_make_${ac_make}_set=yes;;
4076 *)
4077 eval ac_cv_prog_make_${ac_make}_set=no;;
4078esac
4079rm -f conftest.make
4080fi
4081if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083$as_echo "yes" >&6; }
4084 SET_MAKE=
4085else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087$as_echo "no" >&6; }
4088 SET_MAKE="MAKE=${MAKE-make}"
4089fi
4090
4091rm -rf .tst 2>/dev/null
4092mkdir .tst 2>/dev/null
4093if test -d .tst; then
4094 am__leading_dot=.
4095else
4096 am__leading_dot=_
4097fi
4098rmdir .tst 2>/dev/null
4099
cristya448bd22011-10-14 12:38:13 +00004100# Check whether --enable-silent-rules was given.
4101if test "${enable_silent_rules+set}" = set; then :
4102 enableval=$enable_silent_rules;
4103fi
4104
cristyc0890a62012-07-19 00:18:20 +00004105case $enable_silent_rules in # (((
4106 yes) AM_DEFAULT_VERBOSITY=0;;
4107 no) AM_DEFAULT_VERBOSITY=1;;
4108 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004109esac
cristyc3fb77b2012-02-06 01:49:41 +00004110am_make=${MAKE-make}
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4112$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4113if ${am_cv_make_support_nested_variables+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if $as_echo 'TRUE=$(BAR$(V))
4117BAR0=false
4118BAR1=true
4119V=1
4120am__doit:
4121 @$(TRUE)
4122.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4123 am_cv_make_support_nested_variables=yes
4124else
4125 am_cv_make_support_nested_variables=no
4126fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4129$as_echo "$am_cv_make_support_nested_variables" >&6; }
4130if test $am_cv_make_support_nested_variables = yes; then
4131 AM_V='$(V)'
4132 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4133else
4134 AM_V=$AM_DEFAULT_VERBOSITY
4135 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4136fi
cristya448bd22011-10-14 12:38:13 +00004137AM_BACKSLASH='\'
4138
cristy73bd4a52010-10-05 11:24:23 +00004139if test "`cd $srcdir && pwd`" != "`pwd`"; then
4140 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4141 # is not polluted with repeated "-I."
4142 am__isrc=' -I$(srcdir)'
4143 # test to see if srcdir already configured
4144 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004145 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004146 fi
4147fi
4148
4149# test whether we have cygpath
4150if test -z "$CYGPATH_W"; then
4151 if (cygpath --version) >/dev/null 2>/dev/null; then
4152 CYGPATH_W='cygpath -w'
4153 else
4154 CYGPATH_W=echo
4155 fi
4156fi
4157
4158
4159# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004160 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004161 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004162
4163
cristya448bd22011-10-14 12:38:13 +00004164cat >>confdefs.h <<_ACEOF
4165#define PACKAGE "$PACKAGE"
4166_ACEOF
4167
4168
4169cat >>confdefs.h <<_ACEOF
4170#define VERSION "$VERSION"
4171_ACEOF
4172
cristy73bd4a52010-10-05 11:24:23 +00004173# Some tools Automake needs.
4174
4175ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4176
4177
4178AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4179
4180
4181AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4182
4183
4184AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4185
4186
4187MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4188
cristyc0890a62012-07-19 00:18:20 +00004189# For better backward compatibility. To be removed once Automake 1.9.x
4190# dies out for good. For more background, see:
4191# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4193mkdir_p='$(MKDIR_P)'
4194
cristy73bd4a52010-10-05 11:24:23 +00004195# We need awk for the "check" target. The system "awk" is bad on
4196# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004197# Always define AMTAR for backward compatibility. Yes, it's still used
4198# in the wild :-( We should find a proper way to deprecate it ...
4199AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004200
cristyc3fb77b2012-02-06 01:49:41 +00004201am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004202
4203
4204
4205
4206
cristy3ed852e2009-09-05 21:47:34 +00004207
4208# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004209# Check whether --enable-silent-rules was given.
4210if test "${enable_silent_rules+set}" = set; then :
4211 enableval=$enable_silent_rules;
4212fi
4213
cristyc0890a62012-07-19 00:18:20 +00004214case $enable_silent_rules in # (((
4215 yes) AM_DEFAULT_VERBOSITY=0;;
4216 no) AM_DEFAULT_VERBOSITY=1;;
4217 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004218esac
cristyc3fb77b2012-02-06 01:49:41 +00004219am_make=${MAKE-make}
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4221$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4222if ${am_cv_make_support_nested_variables+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 if $as_echo 'TRUE=$(BAR$(V))
4226BAR0=false
4227BAR1=true
4228V=1
4229am__doit:
4230 @$(TRUE)
4231.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4232 am_cv_make_support_nested_variables=yes
4233else
4234 am_cv_make_support_nested_variables=no
4235fi
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4238$as_echo "$am_cv_make_support_nested_variables" >&6; }
4239if test $am_cv_make_support_nested_variables = yes; then
4240 AM_V='$(V)'
4241 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4242else
4243 AM_V=$AM_DEFAULT_VERBOSITY
4244 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4245fi
cristy73bd4a52010-10-05 11:24:23 +00004246AM_BACKSLASH='\'
4247
cristy3ed852e2009-09-05 21:47:34 +00004248
4249MAGICK_LIB_VERSION="0x"
4250if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4251 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4252fi
4253MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4254if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4255 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4258if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4259 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4262
4263
4264# Definition used to define MagickLibVersionText in version.h
4265MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4266
4267
4268# Definition used to define MagickLibVersionNumber in version.h
4269MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4270
4271
4272# Regenerate config.status if ChangeLog or version.sh is updated.
4273CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4274
4275
4276PERLMAINCC=$CC
4277
4278MAGICK_CFLAGS=''
4279MAGICK_CPPFLAGS=$CPPFLAGS_USER
4280MAGICK_PCFLAGS=$CPPFLAGS_USER
4281MAGICK_LDFLAGS=''
4282MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004283MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004284
4285#
4286# Evaluate shell variable equivalents to Makefile directory variables
4287#
4288if test "x$prefix" = xNONE; then
4289 prefix=$ac_default_prefix
4290fi
4291# Let make expand exec_prefix.
4292if test "x$exec_prefix" = xNONE; then
4293 exec_prefix='${prefix}'
4294fi
4295
4296#
4297eval "eval PREFIX_DIR=${prefix}"
4298
4299eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4300
4301eval "eval BIN_DIR=$bindir"
4302
4303eval "eval SBIN_DIR=$sbindir"
4304
4305eval "eval LIBEXEC_DIR=$libexecdir"
4306
4307eval "eval DATA_DIR=$datadir"
4308
cristy4e65ec22012-04-08 01:33:27 +00004309eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004310
cristy3ed852e2009-09-05 21:47:34 +00004311eval "eval SYSCONF_DIR=$sysconfdir"
4312
4313eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4314
4315eval "eval LOCALSTATE_DIR=$localstatedir"
4316
4317eval "eval LIB_DIR=$libdir"
4318
4319eval "eval INCLUDE_DIR=$includedir"
4320
4321eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4322
4323eval "eval INFO_DIR=$infodir"
4324
4325eval "eval MAN_DIR=$mandir"
4326
4327
4328# Get full paths to source and build directories
4329srcdirfull="`cd $srcdir && pwd`"
4330builddir="`pwd`"
4331
4332#
4333# Compute variables useful for running uninstalled software.
4334#
4335MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4336MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4337MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4338MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4339DIRSEP=':'
4340case "${build_os}" in
4341 mingw* )
4342 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4343 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4344 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4345 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4346 DIRSEP=';'
4347 ;;
4348esac
4349case "${host_os}" in
4350 mingw* )
4351 DIRSEP=';'
4352 ;;
4353esac
4354
4355
4356
4357
4358
4359
cristya0b81c32010-01-22 02:54:33 +00004360
4361#
4362# Enable OS features.
4363#
cristy73bd4a52010-10-05 11:24:23 +00004364DEPDIR="${am__leading_dot}deps"
4365
4366ac_config_commands="$ac_config_commands depfiles"
4367
4368
4369am_make=${MAKE-make}
4370cat > confinc << 'END'
4371am__doit:
4372 @echo this is the am__doit target
4373.PHONY: am__doit
4374END
4375# If we don't find an include directive, just comment out the code.
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4377$as_echo_n "checking for style of include used by $am_make... " >&6; }
4378am__include="#"
4379am__quote=
4380_am_result=none
4381# First try GNU make style include.
4382echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004383# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004384case `$am_make -s -f confmf 2> /dev/null` in #(
4385*the\ am__doit\ target*)
4386 am__include=include
4387 am__quote=
4388 _am_result=GNU
4389 ;;
4390esac
4391# Now try BSD make style include.
4392if test "$am__include" = "#"; then
4393 echo '.include "confinc"' > confmf
4394 case `$am_make -s -f confmf 2> /dev/null` in #(
4395 *the\ am__doit\ target*)
4396 am__include=.include
4397 am__quote="\""
4398 _am_result=BSD
4399 ;;
4400 esac
4401fi
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4405$as_echo "$_am_result" >&6; }
4406rm -f confinc confmf
4407
4408# Check whether --enable-dependency-tracking was given.
4409if test "${enable_dependency_tracking+set}" = set; then :
4410 enableval=$enable_dependency_tracking;
4411fi
4412
4413if test "x$enable_dependency_tracking" != xno; then
4414 am_depcomp="$ac_aux_dir/depcomp"
4415 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004416 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004417fi
4418 if test "x$enable_dependency_tracking" != xno; then
4419 AMDEP_TRUE=
4420 AMDEP_FALSE='#'
4421else
4422 AMDEP_TRUE='#'
4423 AMDEP_FALSE=
4424fi
4425
4426
cristy3ed852e2009-09-05 21:47:34 +00004427ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004437if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004438 $as_echo_n "(cached) " >&6
4439else
4440 if test -n "$CC"; then
4441 ac_cv_prog_CC="$CC" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004452 break 2
4453 fi
4454done
cristy8b350f62009-11-15 23:12:43 +00004455 done
cristy3ed852e2009-09-05 21:47:34 +00004456IFS=$as_save_IFS
4457
4458fi
4459fi
4460CC=$ac_cv_prog_CC
4461if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004463$as_echo "$CC" >&6; }
4464else
cristy8b350f62009-11-15 23:12:43 +00004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo "no" >&6; }
4467fi
4468
4469
4470fi
4471if test -z "$ac_cv_prog_CC"; then
4472 ac_ct_CC=$CC
4473 # Extract the first word of "gcc", so it can be a program name with args.
4474set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004477if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004478 $as_echo_n "(cached) " >&6
4479else
4480 if test -n "$ac_ct_CC"; then
4481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004490 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492 break 2
4493 fi
4494done
cristy8b350f62009-11-15 23:12:43 +00004495 done
cristy3ed852e2009-09-05 21:47:34 +00004496IFS=$as_save_IFS
4497
4498fi
4499fi
4500ac_ct_CC=$ac_cv_prog_ac_ct_CC
4501if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$ac_ct_CC" >&6; }
4504else
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "no" >&6; }
4507fi
4508
4509 if test "x$ac_ct_CC" = x; then
4510 CC=""
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513yes:)
cristy8b350f62009-11-15 23:12:43 +00004514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516ac_tool_warned=yes ;;
4517esac
4518 CC=$ac_ct_CC
4519 fi
4520else
4521 CC="$ac_cv_prog_CC"
4522fi
4523
4524if test -z "$CC"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004530if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004531 $as_echo_n "(cached) " >&6
4532else
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004543 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545 break 2
4546 fi
4547done
cristy8b350f62009-11-15 23:12:43 +00004548 done
cristy3ed852e2009-09-05 21:47:34 +00004549IFS=$as_save_IFS
4550
4551fi
4552fi
4553CC=$ac_cv_prog_CC
4554if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo "$CC" >&6; }
4557else
cristy8b350f62009-11-15 23:12:43 +00004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "no" >&6; }
4560fi
4561
4562
4563 fi
4564fi
4565if test -z "$CC"; then
4566 # Extract the first word of "cc", so it can be a program name with args.
4567set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004570if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004571 $as_echo_n "(cached) " >&6
4572else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575else
4576 ac_prog_rejected=no
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585 ac_prog_rejected=yes
4586 continue
4587 fi
4588 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590 break 2
4591 fi
4592done
cristy8b350f62009-11-15 23:12:43 +00004593 done
cristy3ed852e2009-09-05 21:47:34 +00004594IFS=$as_save_IFS
4595
4596if test $ac_prog_rejected = yes; then
4597 # We found a bogon in the path, so make sure we never use it.
4598 set dummy $ac_cv_prog_CC
4599 shift
4600 if test $# != 0; then
4601 # We chose a different compiler from the bogus one.
4602 # However, it has the same basename, so the bogon will be chosen
4603 # first if we set CC to just the basename; use the full file name.
4604 shift
4605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4606 fi
4607fi
4608fi
4609fi
4610CC=$ac_cv_prog_CC
4611if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004613$as_echo "$CC" >&6; }
4614else
cristy8b350f62009-11-15 23:12:43 +00004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo "no" >&6; }
4617fi
4618
4619
4620fi
4621if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4623 for ac_prog in cl.exe
4624 do
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004629if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004630 $as_echo_n "(cached) " >&6
4631else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644 break 2
4645 fi
4646done
cristy8b350f62009-11-15 23:12:43 +00004647 done
cristy3ed852e2009-09-05 21:47:34 +00004648IFS=$as_save_IFS
4649
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo "$CC" >&6; }
4656else
cristy8b350f62009-11-15 23:12:43 +00004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "no" >&6; }
4659fi
4660
4661
4662 test -n "$CC" && break
4663 done
4664fi
4665if test -z "$CC"; then
4666 ac_ct_CC=$CC
4667 for ac_prog in cl.exe
4668do
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004673if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 $as_echo_n "(cached) " >&6
4675else
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678else
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004686 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688 break 2
4689 fi
4690done
cristy8b350f62009-11-15 23:12:43 +00004691 done
cristy3ed852e2009-09-05 21:47:34 +00004692IFS=$as_save_IFS
4693
4694fi
4695fi
4696ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo "$ac_ct_CC" >&6; }
4700else
cristy8b350f62009-11-15 23:12:43 +00004701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "no" >&6; }
4703fi
4704
4705
4706 test -n "$ac_ct_CC" && break
4707done
4708
4709 if test "x$ac_ct_CC" = x; then
4710 CC=""
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713yes:)
cristy8b350f62009-11-15 23:12:43 +00004714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716ac_tool_warned=yes ;;
4717esac
4718 CC=$ac_ct_CC
4719 fi
4720fi
4721
4722fi
4723
4724
cristy8b350f62009-11-15 23:12:43 +00004725test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004727as_fn_error $? "no acceptable C compiler found in \$PATH
4728See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004729
4730# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004731$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732set X $ac_compile
4733ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004734for ac_option in --version -v -V -qversion; do
4735 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004736case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739esac
cristy8b350f62009-11-15 23:12:43 +00004740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741$as_echo "$ac_try_echo"; } >&5
4742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004744 if test -s conftest.err; then
4745 sed '10a\
4746... rest of stderr output deleted ...
4747 10q' conftest.err >conftest.er1
4748 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004749 fi
cristycd4c5312009-11-22 01:19:08 +00004750 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4753done
cristy3ed852e2009-09-05 21:47:34 +00004754
cristy8b350f62009-11-15 23:12:43 +00004755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004756/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004757
cristy3ed852e2009-09-05 21:47:34 +00004758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004768# Try to create an executable without -o first, disregard a.out.
4769# It will help us diagnose broken compilers, and finding out an intuition
4770# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4772$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004773ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4774
4775# The possible output files:
4776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4777
4778ac_rmfiles=
4779for ac_file in $ac_files
4780do
4781 case $ac_file in
4782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4784 esac
4785done
4786rm -f $ac_rmfiles
4787
cristy8b350f62009-11-15 23:12:43 +00004788if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
cristy8b350f62009-11-15 23:12:43 +00004793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004795 (eval "$ac_link_default") 2>&5
4796 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4800# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4801# in a Makefile. We should not override ac_cv_exeext if it was cached,
4802# so that the user can short-circuit this test for compilers unknown to
4803# Autoconf.
4804for ac_file in $ac_files ''
4805do
4806 test -f "$ac_file" || continue
4807 case $ac_file in
4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4809 ;;
4810 [ab].out )
4811 # We found the default executable, but exeext='' is most
4812 # certainly right.
4813 break;;
4814 *.* )
cristy8b350f62009-11-15 23:12:43 +00004815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004816 then :; else
4817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4818 fi
4819 # We set ac_cv_exeext here because the later test for it is not
4820 # safe: cross compilers may not add the suffix if given an `-o'
4821 # argument, so we may need to know it at that point already.
4822 # Even if this section looks crufty: it has the advantage of
4823 # actually working.
4824 break;;
4825 * )
4826 break;;
4827 esac
4828done
4829test "$ac_cv_exeext" = no && ac_cv_exeext=
4830
4831else
4832 ac_file=''
4833fi
cristy8b350f62009-11-15 23:12:43 +00004834if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838sed 's/^/| /' conftest.$ac_ext >&5
4839
cristy8b350f62009-11-15 23:12:43 +00004840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004842as_fn_error 77 "C compiler cannot create executables
4843See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004847fi
cristycd4c5312009-11-22 01:19:08 +00004848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4849$as_echo_n "checking for C compiler default output file name... " >&6; }
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4851$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004852ac_exeext=$ac_cv_exeext
4853
cristycd4c5312009-11-22 01:19:08 +00004854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004855ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004858if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004859case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862esac
cristy8b350f62009-11-15 23:12:43 +00004863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004865 (eval "$ac_link") 2>&5
4866 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4871# work properly (i.e., refer to `conftest.exe'), while it won't with
4872# `rm'.
4873for ac_file in conftest.exe conftest conftest.*; do
4874 test -f "$ac_file" || continue
4875 case $ac_file in
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4878 break;;
4879 * ) break;;
4880 esac
4881done
4882else
cristy8b350f62009-11-15 23:12:43 +00004883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004885as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4886See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004887fi
cristycd4c5312009-11-22 01:19:08 +00004888rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004890$as_echo "$ac_cv_exeext" >&6; }
4891
4892rm -f conftest.$ac_ext
4893EXEEXT=$ac_cv_exeext
4894ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897#include <stdio.h>
4898int
4899main ()
4900{
4901FILE *f = fopen ("conftest.out", "w");
4902 return ferror (f) || fclose (f) != 0;
4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908ac_clean_files="$ac_clean_files conftest.out"
4909# Check that the compiler produces executables we can run. If not, either
4910# the compiler is broken, or we cross compile.
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4912$as_echo_n "checking whether we are cross compiling... " >&6; }
4913if test "$cross_compiling" != yes; then
4914 { { ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_link") 2>&5
4922 ac_status=$?
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 if { ac_try='./conftest$ac_cv_exeext'
4926 { { case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_try") 2>&5
4933 ac_status=$?
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }; }; then
4936 cross_compiling=no
4937 else
4938 if test "$cross_compiling" = maybe; then
4939 cross_compiling=yes
4940 else
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004943as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004944If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004945See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004946 fi
4947 fi
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4950$as_echo "$cross_compiling" >&6; }
4951
4952rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4953ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004955$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004956if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004957 $as_echo_n "(cached) " >&6
4958else
cristy8b350f62009-11-15 23:12:43 +00004959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004960/* end confdefs.h. */
4961
4962int
4963main ()
4964{
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004971if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
cristy8b350f62009-11-15 23:12:43 +00004976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004978 (eval "$ac_compile") 2>&5
4979 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004982 for ac_file in conftest.o conftest.obj conftest.*; do
4983 test -f "$ac_file" || continue;
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4987 break;;
4988 esac
4989done
4990else
4991 $as_echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
cristy8b350f62009-11-15 23:12:43 +00004994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004996as_fn_error $? "cannot compute suffix of object files: cannot compile
4997See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004998fi
cristy3ed852e2009-09-05 21:47:34 +00004999rm -f conftest.$ac_cv_objext conftest.$ac_ext
5000fi
cristy8b350f62009-11-15 23:12:43 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005002$as_echo "$ac_cv_objext" >&6; }
5003OBJEXT=$ac_cv_objext
5004ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005007if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005008 $as_echo_n "(cached) " >&6
5009else
cristy8b350f62009-11-15 23:12:43 +00005010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016#ifndef __GNUC__
5017 choke me
5018#endif
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005025 ac_compiler_gnu=yes
5026else
cristy8b350f62009-11-15 23:12:43 +00005027 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005028fi
cristy3ed852e2009-09-05 21:47:34 +00005029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030ac_cv_c_compiler_gnu=$ac_compiler_gnu
5031
5032fi
cristy8b350f62009-11-15 23:12:43 +00005033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5035if test $ac_compiler_gnu = yes; then
5036 GCC=yes
5037else
5038 GCC=
5039fi
5040ac_test_CFLAGS=${CFLAGS+set}
5041ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005043$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005044if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005045 $as_echo_n "(cached) " >&6
5046else
5047 ac_save_c_werror_flag=$ac_c_werror_flag
5048 ac_c_werror_flag=yes
5049 ac_cv_prog_cc_g=no
5050 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005052/* end confdefs.h. */
5053
5054int
5055main ()
5056{
5057
5058 ;
5059 return 0;
5060}
5061_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005062if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005063 ac_cv_prog_cc_g=yes
5064else
cristy8b350f62009-11-15 23:12:43 +00005065 CFLAGS=""
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005078
cristy8b350f62009-11-15 23:12:43 +00005079else
5080 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005081 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005083/* end confdefs.h. */
5084
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005094 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005095fi
cristy3ed852e2009-09-05 21:47:34 +00005096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
cristy3ed852e2009-09-05 21:47:34 +00005098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
cristy3ed852e2009-09-05 21:47:34 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 ac_c_werror_flag=$ac_save_c_werror_flag
5102fi
cristy8b350f62009-11-15 23:12:43 +00005103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005104$as_echo "$ac_cv_prog_cc_g" >&6; }
5105if test "$ac_test_CFLAGS" = set; then
5106 CFLAGS=$ac_save_CFLAGS
5107elif test $ac_cv_prog_cc_g = yes; then
5108 if test "$GCC" = yes; then
5109 CFLAGS="-g -O2"
5110 else
5111 CFLAGS="-g"
5112 fi
5113else
5114 if test "$GCC" = yes; then
5115 CFLAGS="-O2"
5116 else
5117 CFLAGS=
5118 fi
5119fi
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005122if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005123 $as_echo_n "(cached) " >&6
5124else
5125 ac_cv_prog_cc_c89=no
5126ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005128/* end confdefs.h. */
5129#include <stdarg.h>
5130#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005131struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5133struct buf { int x; };
5134FILE * (*rcsopen) (struct buf *, struct stat *, int);
5135static char *e (p, i)
5136 char **p;
5137 int i;
5138{
5139 return p[i];
5140}
5141static char *f (char * (*g) (char **, int), char **p, ...)
5142{
5143 char *s;
5144 va_list v;
5145 va_start (v,p);
5146 s = g (p, va_arg (v,int));
5147 va_end (v);
5148 return s;
5149}
5150
5151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5152 function prototypes and stuff, but not '\xHH' hex character constants.
5153 These don't provoke an error unfortunately, instead are silently treated
5154 as 'x'. The following induces an error, until -std is added to get
5155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5156 array size at least. It's necessary to write '\x00'==0 to get something
5157 that's true only with -std. */
5158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5159
5160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5161 inside strings and character constants. */
5162#define FOO(x) 'x'
5163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5164
5165int test (int i, double x);
5166struct s1 {int (*f) (int a);};
5167struct s2 {int (*f) (double a);};
5168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5169int argc;
5170char **argv;
5171int
5172main ()
5173{
5174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5181do
5182 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005183 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005184 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005185fi
cristy3ed852e2009-09-05 21:47:34 +00005186rm -f core conftest.err conftest.$ac_objext
5187 test "x$ac_cv_prog_cc_c89" != "xno" && break
5188done
5189rm -f conftest.$ac_ext
5190CC=$ac_save_CC
5191
5192fi
5193# AC_CACHE_VAL
5194case "x$ac_cv_prog_cc_c89" in
5195 x)
cristy8b350f62009-11-15 23:12:43 +00005196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005197$as_echo "none needed" >&6; } ;;
5198 xno)
cristy8b350f62009-11-15 23:12:43 +00005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005200$as_echo "unsupported" >&6; } ;;
5201 *)
5202 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5205esac
cristy8b350f62009-11-15 23:12:43 +00005206if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005207
cristy8b350f62009-11-15 23:12:43 +00005208fi
cristy3ed852e2009-09-05 21:47:34 +00005209
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005215
cristy73bd4a52010-10-05 11:24:23 +00005216depcc="$CC" am_compiler_list=
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5219$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005220if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005221 $as_echo_n "(cached) " >&6
5222else
5223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5224 # We make a subdir and do the tests there. Otherwise we can end up
5225 # making bogus files that we don't know about and never remove. For
5226 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005227 # making a dummy file named 'D' -- because '-MD' means "put the output
5228 # in D".
cristy7247bba2012-02-05 16:37:27 +00005229 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005230 mkdir conftest.dir
5231 # Copy depcomp to subdir because otherwise we won't find it if we're
5232 # using a relative directory.
5233 cp "$am_depcomp" conftest.dir
5234 cd conftest.dir
5235 # We will build objects and dependencies in a subdirectory because
5236 # it helps to detect inapplicable dependency modes. For instance
5237 # both Tru64's cc and ICC support -MD to output dependencies as a
5238 # side effect of compilation, but ICC will put the dependencies in
5239 # the current directory while Tru64 will put them in the object
5240 # directory.
5241 mkdir sub
5242
5243 am_cv_CC_dependencies_compiler_type=none
5244 if test "$am_compiler_list" = ""; then
5245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5246 fi
5247 am__universal=false
5248 case " $depcc " in #(
5249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5250 esac
5251
5252 for depmode in $am_compiler_list; do
5253 # Setup a source with many dependencies, because some compilers
5254 # like to wrap large dependency lists on column 80 (with \), and
5255 # we should not choose a depcomp mode which is confused by this.
5256 #
5257 # We need to recreate these files for each test, as the compiler may
5258 # overwrite some of them when testing with obscure command lines.
5259 # This happens at least with the AIX C compiler.
5260 : > sub/conftest.c
5261 for i in 1 2 3 4 5 6; do
5262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005263 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5264 # Solaris 10 /bin/sh.
5265 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005266 done
5267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5268
cristyc0890a62012-07-19 00:18:20 +00005269 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005270 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005271 # handle '-M -o', and we need to detect this. Also, some Intel
5272 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005273 am__obj=sub/conftest.${OBJEXT-o}
5274 am__minus_obj="-o $am__obj"
5275 case $depmode in
5276 gcc)
5277 # This depmode causes a compiler race in universal mode.
5278 test "$am__universal" = false || continue
5279 ;;
5280 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005281 # After this tag, mechanisms are not by side-effect, so they'll
5282 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005283 if test "x$enable_dependency_tracking" = xyes; then
5284 continue
5285 else
5286 break
5287 fi
5288 ;;
cristy7247bba2012-02-05 16:37:27 +00005289 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005290 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005291 # not run yet. These depmodes are late enough in the game, and
5292 # so weak that their functioning should not be impacted.
5293 am__obj=conftest.${OBJEXT-o}
5294 am__minus_obj=
5295 ;;
5296 none) break ;;
5297 esac
5298 if depmode=$depmode \
5299 source=sub/conftest.c object=$am__obj \
5300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5302 >/dev/null 2>conftest.err &&
5303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5307 # icc doesn't choke on unknown options, it will just issue warnings
5308 # or remarks (even with -Werror). So we grep stderr for any message
5309 # that says an option was ignored or not supported.
5310 # When given -MP, icc 7.0 and 7.1 complain thusly:
5311 # icc: Command line warning: ignoring option '-M'; no argument required
5312 # The diagnosis changed in icc 8.0:
5313 # icc: Command line remark: option '-MP' not supported
5314 if (grep 'ignoring option' conftest.err ||
5315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5316 am_cv_CC_dependencies_compiler_type=$depmode
5317 break
5318 fi
5319 fi
5320 done
5321
5322 cd ..
5323 rm -rf conftest.dir
5324else
5325 am_cv_CC_dependencies_compiler_type=none
5326fi
5327
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5330$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5331CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5332
5333 if
5334 test "x$enable_dependency_tracking" != xno \
5335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5336 am__fastdepCC_TRUE=
5337 am__fastdepCC_FALSE='#'
5338else
5339 am__fastdepCC_TRUE='#'
5340 am__fastdepCC_FALSE=
5341fi
5342
5343
cristy3ed852e2009-09-05 21:47:34 +00005344
cristya0b81c32010-01-22 02:54:33 +00005345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351$as_echo_n "checking how to run the C preprocessor... " >&6; }
5352# On Suns, sometimes $CPP names a directory.
5353if test -n "$CPP" && test -d "$CPP"; then
5354 CPP=
5355fi
5356if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005357 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005358 $as_echo_n "(cached) " >&6
5359else
5360 # Double quotes because CPP needs to be expanded
5361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362 do
5363 ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379 Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384 # Broken: fails on valid input.
5385continue
5386fi
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5397continue
5398else
5399 # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
cristyda16f162011-02-19 23:52:17 +00005403rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005407rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005408if $ac_preproc_ok; then :
5409 break
5410fi
5411
5412 done
5413 ac_cv_prog_CPP=$CPP
5414
5415fi
5416 CPP=$ac_cv_prog_CPP
5417else
5418 ac_cv_prog_CPP=$CPP
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421$as_echo "$CPP" >&6; }
5422ac_preproc_ok=false
5423for ac_c_preproc_warn_flag in '' yes
5424do
5425 # Use a header file that comes with gcc, so configuring glibc
5426 # with a fresh cross-compiler works.
5427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 # <limits.h> exists even on freestanding compilers.
5429 # On the NeXT, cc -E runs the code through the compiler's parser,
5430 # not just through cpp. "Syntax error" is here to catch this case.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438 Syntax error
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442else
5443 # Broken: fails on valid input.
5444continue
5445fi
cristyda16f162011-02-19 23:52:17 +00005446rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005447
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452#include <ac_nonexistent.h>
5453_ACEOF
5454if ac_fn_c_try_cpp "$LINENO"; then :
5455 # Broken: success on invalid input.
5456continue
5457else
5458 # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
cristyda16f162011-02-19 23:52:17 +00005462rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005466rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005467if $ac_preproc_ok; then :
5468
5469else
5470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005485if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005486 $as_echo_n "(cached) " >&6
5487else
5488 if test -z "$GREP"; then
5489 ac_path_GREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_prog in grep ggrep; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005499 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005500# Check for GNU ac_path_GREP and select it if it is found.
5501 # Check for GNU $ac_path_GREP
5502case `"$ac_path_GREP" --version 2>&1` in
5503*GNU*)
5504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5505*)
5506 ac_count=0
5507 $as_echo_n 0123456789 >"conftest.in"
5508 while :
5509 do
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'GREP' >> "conftest.nl"
5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516 as_fn_arith $ac_count + 1 && ac_count=$as_val
5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_GREP="$ac_path_GREP"
5520 ac_path_GREP_max=$ac_count
5521 fi
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5524 done
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528 $ac_path_GREP_found && break 3
5529 done
5530 done
5531 done
5532IFS=$as_save_IFS
5533 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005535 fi
5536else
5537 ac_cv_path_GREP=$GREP
5538fi
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542$as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP="$ac_cv_path_GREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5552 then ac_cv_path_EGREP="$GREP -E"
5553 else
5554 if test -z "$EGREP"; then
5555 ac_path_EGREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in egrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005565 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005566# Check for GNU ac_path_EGREP and select it if it is found.
5567 # Check for GNU $ac_path_EGREP
5568case `"$ac_path_EGREP" --version 2>&1` in
5569*GNU*)
5570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5571*)
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5575 do
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'EGREP' >> "conftest.nl"
5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_EGREP="$ac_path_EGREP"
5586 ac_path_EGREP_max=$ac_count
5587 fi
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592esac
5593
5594 $ac_path_EGREP_found && break 3
5595 done
5596 done
5597 done
5598IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005601 fi
5602else
5603 ac_cv_path_EGREP=$EGREP
5604fi
5605
5606 fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609$as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP="$ac_cv_path_EGREP"
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005615if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005616 $as_echo_n "(cached) " >&6
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <stdlib.h>
5621#include <stdarg.h>
5622#include <string.h>
5623#include <float.h>
5624
5625int
5626main ()
5627{
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_header_stdc=yes
5635else
5636 ac_cv_header_stdc=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#include <string.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev/null 2>&1; then :
5649
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "free" >/dev/null 2>&1; then :
5666
5667else
5668 ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676 if test "$cross_compiling" = yes; then :
5677 :
5678else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <ctype.h>
5682#include <stdlib.h>
5683#if ((' ' & 0x0FF) == 0x020)
5684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686#else
5687# define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692#endif
5693
5694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695int
5696main ()
5697{
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5702 return 2;
5703 return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_run "$LINENO"; then :
5707
5708else
5709 ac_cv_header_stdc=no
5710fi
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5713fi
5714
5715fi
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718$as_echo "$ac_cv_header_stdc" >&6; }
5719if test $ac_cv_header_stdc = yes; then
5720
5721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5722
5723fi
5724
5725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5727 inttypes.h stdint.h unistd.h
5728do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731"
cristy98dddb52010-11-04 00:30:15 +00005732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005733 cat >>confdefs.h <<_ACEOF
5734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735_ACEOF
5736
5737fi
5738
5739done
5740
5741
5742
5743 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005744if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005745 MINIX=yes
5746else
5747 MINIX=
5748fi
5749
5750
5751 if test "$MINIX" = yes; then
5752
5753$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5754
5755
5756$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5757
5758
5759$as_echo "#define _MINIX 1" >>confdefs.h
5760
5761 fi
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5765$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005766if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005767 $as_echo_n "(cached) " >&6
5768else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h. */
5771
cristy14fefe52012-05-21 00:59:18 +00005772# define __EXTENSIONS__ 1
5773 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005774int
5775main ()
5776{
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783 ac_cv_safe_to_define___extensions__=yes
5784else
5785 ac_cv_safe_to_define___extensions__=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5790$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5791 test $ac_cv_safe_to_define___extensions__ = yes &&
5792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5793
5794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5797
5798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5799
5800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5801
5802
5803
5804# Check for programs
5805ac_ext=c
5806ac_cpp='$CPP $CPPFLAGS'
5807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}gcc; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005815if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$CC"; then
5819 ac_cv_prog_CC="$CC" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838CC=$ac_cv_prog_CC
5839if test -n "$CC"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5841$as_echo "$CC" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_CC"; then
5850 ac_ct_CC=$CC
5851 # Extract the first word of "gcc", so it can be a program name with args.
5852set dummy gcc; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005855if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$ac_ct_CC"; then
5859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005868 ac_cv_prog_ac_ct_CC="gcc"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_CC=$ac_cv_prog_ac_ct_CC
5879if test -n "$ac_ct_CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5881$as_echo "$ac_ct_CC" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887 if test "x$ac_ct_CC" = x; then
5888 CC=""
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 CC=$ac_ct_CC
5897 fi
5898else
5899 CC="$ac_cv_prog_CC"
5900fi
5901
5902if test -z "$CC"; then
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5905set dummy ${ac_tool_prefix}cc; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005908if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005909 $as_echo_n "(cached) " >&6
5910else
5911 if test -n "$CC"; then
5912 ac_cv_prog_CC="$CC" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005921 ac_cv_prog_CC="${ac_tool_prefix}cc"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926 done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931CC=$ac_cv_prog_CC
5932if test -n "$CC"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5934$as_echo "$CC" >&6; }
5935else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941 fi
5942fi
5943if test -z "$CC"; then
5944 # Extract the first word of "cc", so it can be a program name with args.
5945set dummy cc; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005948if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005949 $as_echo_n "(cached) " >&6
5950else
5951 if test -n "$CC"; then
5952 ac_cv_prog_CC="$CC" # Let the user override the test.
5953else
5954 ac_prog_rejected=no
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5963 ac_prog_rejected=yes
5964 continue
5965 fi
5966 ac_cv_prog_CC="cc"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971 done
5972IFS=$as_save_IFS
5973
5974if test $ac_prog_rejected = yes; then
5975 # We found a bogon in the path, so make sure we never use it.
5976 set dummy $ac_cv_prog_CC
5977 shift
5978 if test $# != 0; then
5979 # We chose a different compiler from the bogus one.
5980 # However, it has the same basename, so the bogon will be chosen
5981 # first if we set CC to just the basename; use the full file name.
5982 shift
5983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5984 fi
5985fi
5986fi
5987fi
5988CC=$ac_cv_prog_CC
5989if test -n "$CC"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5991$as_echo "$CC" >&6; }
5992else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997
5998fi
5999if test -z "$CC"; then
6000 if test -n "$ac_tool_prefix"; then
6001 for ac_prog in cl.exe
6002 do
6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006007if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006008 $as_echo_n "(cached) " >&6
6009else
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC="$CC" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025 done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030CC=$ac_cv_prog_CC
6031if test -n "$CC"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6033$as_echo "$CC" >&6; }
6034else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040 test -n "$CC" && break
6041 done
6042fi
6043if test -z "$CC"; then
6044 ac_ct_CC=$CC
6045 for ac_prog in cl.exe
6046do
6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
6048set dummy $ac_prog; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006051if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006052 $as_echo_n "(cached) " >&6
6053else
6054 if test -n "$ac_ct_CC"; then
6055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006064 ac_cv_prog_ac_ct_CC="$ac_prog"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069 done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_CC=$ac_cv_prog_ac_ct_CC
6075if test -n "$ac_ct_CC"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6077$as_echo "$ac_ct_CC" >&6; }
6078else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084 test -n "$ac_ct_CC" && break
6085done
6086
6087 if test "x$ac_ct_CC" = x; then
6088 CC=""
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096 CC=$ac_ct_CC
6097 fi
6098fi
6099
6100fi
6101
6102
6103test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006105as_fn_error $? "no acceptable C compiler found in \$PATH
6106See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006107
6108# Provide some information about the compiler.
6109$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6110set X $ac_compile
6111ac_compiler=$2
6112for ac_option in --version -v -V -qversion; do
6113 { { ac_try="$ac_compiler $ac_option >&5"
6114case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6119$as_echo "$ac_try_echo"; } >&5
6120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6121 ac_status=$?
6122 if test -s conftest.err; then
6123 sed '10a\
6124... rest of stderr output deleted ...
6125 10q' conftest.err >conftest.er1
6126 cat conftest.er1 >&5
6127 fi
6128 rm -f conftest.er1 conftest.err
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }
6131done
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006135if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006136 $as_echo_n "(cached) " >&6
6137else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h. */
6140
6141int
6142main ()
6143{
6144#ifndef __GNUC__
6145 choke me
6146#endif
6147
6148 ;
6149 return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153 ac_compiler_gnu=yes
6154else
6155 ac_compiler_gnu=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158ac_cv_c_compiler_gnu=$ac_compiler_gnu
6159
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6163if test $ac_compiler_gnu = yes; then
6164 GCC=yes
6165else
6166 GCC=
6167fi
6168ac_test_CFLAGS=${CFLAGS+set}
6169ac_save_CFLAGS=$CFLAGS
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6171$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006172if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006173 $as_echo_n "(cached) " >&6
6174else
6175 ac_save_c_werror_flag=$ac_c_werror_flag
6176 ac_c_werror_flag=yes
6177 ac_cv_prog_cc_g=no
6178 CFLAGS="-g"
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h. */
6181
6182int
6183main ()
6184{
6185
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_cv_prog_cc_g=yes
6192else
6193 CFLAGS=""
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197int
6198main ()
6199{
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206
6207else
6208 ac_c_werror_flag=$ac_save_c_werror_flag
6209 CFLAGS="-g"
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212
6213int
6214main ()
6215{
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_cv_prog_cc_g=yes
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_c_werror_flag=$ac_save_c_werror_flag
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6232$as_echo "$ac_cv_prog_cc_g" >&6; }
6233if test "$ac_test_CFLAGS" = set; then
6234 CFLAGS=$ac_save_CFLAGS
6235elif test $ac_cv_prog_cc_g = yes; then
6236 if test "$GCC" = yes; then
6237 CFLAGS="-g -O2"
6238 else
6239 CFLAGS="-g"
6240 fi
6241else
6242 if test "$GCC" = yes; then
6243 CFLAGS="-O2"
6244 else
6245 CFLAGS=
6246 fi
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006250if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006251 $as_echo_n "(cached) " >&6
6252else
6253 ac_cv_prog_cc_c89=no
6254ac_save_CC=$CC
6255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h. */
6257#include <stdarg.h>
6258#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006259struct stat;
cristya0b81c32010-01-22 02:54:33 +00006260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6261struct buf { int x; };
6262FILE * (*rcsopen) (struct buf *, struct stat *, int);
6263static char *e (p, i)
6264 char **p;
6265 int i;
6266{
6267 return p[i];
6268}
6269static char *f (char * (*g) (char **, int), char **p, ...)
6270{
6271 char *s;
6272 va_list v;
6273 va_start (v,p);
6274 s = g (p, va_arg (v,int));
6275 va_end (v);
6276 return s;
6277}
6278
6279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6280 function prototypes and stuff, but not '\xHH' hex character constants.
6281 These don't provoke an error unfortunately, instead are silently treated
6282 as 'x'. The following induces an error, until -std is added to get
6283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6284 array size at least. It's necessary to write '\x00'==0 to get something
6285 that's true only with -std. */
6286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6287
6288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6289 inside strings and character constants. */
6290#define FOO(x) 'x'
6291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6292
6293int test (int i, double x);
6294struct s1 {int (*f) (int a);};
6295struct s2 {int (*f) (double a);};
6296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6297int argc;
6298char **argv;
6299int
6300main ()
6301{
6302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6309do
6310 CC="$ac_save_CC $ac_arg"
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 ac_cv_prog_cc_c89=$ac_arg
6313fi
6314rm -f core conftest.err conftest.$ac_objext
6315 test "x$ac_cv_prog_cc_c89" != "xno" && break
6316done
6317rm -f conftest.$ac_ext
6318CC=$ac_save_CC
6319
6320fi
6321# AC_CACHE_VAL
6322case "x$ac_cv_prog_cc_c89" in
6323 x)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6325$as_echo "none needed" >&6; } ;;
6326 xno)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6328$as_echo "unsupported" >&6; } ;;
6329 *)
6330 CC="$CC $ac_cv_prog_cc_c89"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6333esac
6334if test "x$ac_cv_prog_cc_c89" != xno; then :
6335
6336fi
6337
6338ac_ext=c
6339ac_cpp='$CPP $CPPFLAGS'
6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
cristy73bd4a52010-10-05 11:24:23 +00006344depcc="$CC" am_compiler_list=
6345
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6347$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006348if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006349 $as_echo_n "(cached) " >&6
6350else
6351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6352 # We make a subdir and do the tests there. Otherwise we can end up
6353 # making bogus files that we don't know about and never remove. For
6354 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006355 # making a dummy file named 'D' -- because '-MD' means "put the output
6356 # in D".
cristy7247bba2012-02-05 16:37:27 +00006357 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006358 mkdir conftest.dir
6359 # Copy depcomp to subdir because otherwise we won't find it if we're
6360 # using a relative directory.
6361 cp "$am_depcomp" conftest.dir
6362 cd conftest.dir
6363 # We will build objects and dependencies in a subdirectory because
6364 # it helps to detect inapplicable dependency modes. For instance
6365 # both Tru64's cc and ICC support -MD to output dependencies as a
6366 # side effect of compilation, but ICC will put the dependencies in
6367 # the current directory while Tru64 will put them in the object
6368 # directory.
6369 mkdir sub
6370
6371 am_cv_CC_dependencies_compiler_type=none
6372 if test "$am_compiler_list" = ""; then
6373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6374 fi
6375 am__universal=false
6376 case " $depcc " in #(
6377 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6378 esac
6379
6380 for depmode in $am_compiler_list; do
6381 # Setup a source with many dependencies, because some compilers
6382 # like to wrap large dependency lists on column 80 (with \), and
6383 # we should not choose a depcomp mode which is confused by this.
6384 #
6385 # We need to recreate these files for each test, as the compiler may
6386 # overwrite some of them when testing with obscure command lines.
6387 # This happens at least with the AIX C compiler.
6388 : > sub/conftest.c
6389 for i in 1 2 3 4 5 6; do
6390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6392 # Solaris 10 /bin/sh.
6393 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006394 done
6395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6396
cristyc0890a62012-07-19 00:18:20 +00006397 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006398 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006399 # handle '-M -o', and we need to detect this. Also, some Intel
6400 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006401 am__obj=sub/conftest.${OBJEXT-o}
6402 am__minus_obj="-o $am__obj"
6403 case $depmode in
6404 gcc)
6405 # This depmode causes a compiler race in universal mode.
6406 test "$am__universal" = false || continue
6407 ;;
6408 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006409 # After this tag, mechanisms are not by side-effect, so they'll
6410 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006411 if test "x$enable_dependency_tracking" = xyes; then
6412 continue
6413 else
6414 break
6415 fi
6416 ;;
cristy7247bba2012-02-05 16:37:27 +00006417 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006418 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006419 # not run yet. These depmodes are late enough in the game, and
6420 # so weak that their functioning should not be impacted.
6421 am__obj=conftest.${OBJEXT-o}
6422 am__minus_obj=
6423 ;;
6424 none) break ;;
6425 esac
6426 if depmode=$depmode \
6427 source=sub/conftest.c object=$am__obj \
6428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6430 >/dev/null 2>conftest.err &&
6431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6435 # icc doesn't choke on unknown options, it will just issue warnings
6436 # or remarks (even with -Werror). So we grep stderr for any message
6437 # that says an option was ignored or not supported.
6438 # When given -MP, icc 7.0 and 7.1 complain thusly:
6439 # icc: Command line warning: ignoring option '-M'; no argument required
6440 # The diagnosis changed in icc 8.0:
6441 # icc: Command line remark: option '-MP' not supported
6442 if (grep 'ignoring option' conftest.err ||
6443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6444 am_cv_CC_dependencies_compiler_type=$depmode
6445 break
6446 fi
6447 fi
6448 done
6449
6450 cd ..
6451 rm -rf conftest.dir
6452else
6453 am_cv_CC_dependencies_compiler_type=none
6454fi
6455
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6458$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6459CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6460
6461 if
6462 test "x$enable_dependency_tracking" != xno \
6463 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6464 am__fastdepCC_TRUE=
6465 am__fastdepCC_FALSE='#'
6466else
6467 am__fastdepCC_TRUE='#'
6468 am__fastdepCC_FALSE=
6469fi
6470
6471
cristy95646052009-11-28 23:05:30 +00006472ac_ext=cpp
6473ac_cpp='$CXXCPP $CPPFLAGS'
6474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6477if test -z "$CXX"; then
6478 if test -n "$CCC"; then
6479 CXX=$CCC
6480 else
6481 if test -n "$ac_tool_prefix"; then
6482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6483 do
6484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006488if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$CXX"; then
6492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006501 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511CXX=$ac_cv_prog_CXX
6512if test -n "$CXX"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6514$as_echo "$CXX" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521 test -n "$CXX" && break
6522 done
6523fi
6524if test -z "$CXX"; then
6525 ac_ct_CXX=$CXX
6526 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006532if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_CXX"; then
6536 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006545 ac_cv_prog_ac_ct_CXX="$ac_prog"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6556if test -n "$ac_ct_CXX"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6558$as_echo "$ac_ct_CXX" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565 test -n "$ac_ct_CXX" && break
6566done
6567
6568 if test "x$ac_ct_CXX" = x; then
6569 CXX="g++"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 CXX=$ac_ct_CXX
6578 fi
6579fi
6580
6581 fi
6582fi
6583# Provide some information about the compiler.
6584$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6585set X $ac_compile
6586ac_compiler=$2
6587for ac_option in --version -v -V -qversion; do
6588 { { ac_try="$ac_compiler $ac_option >&5"
6589case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6594$as_echo "$ac_try_echo"; } >&5
6595 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6596 ac_status=$?
6597 if test -s conftest.err; then
6598 sed '10a\
6599... rest of stderr output deleted ...
6600 10q' conftest.err >conftest.er1
6601 cat conftest.er1 >&5
6602 fi
6603 rm -f conftest.er1 conftest.err
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }
6606done
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6609$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006610if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006611 $as_echo_n "(cached) " >&6
6612else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615
6616int
6617main ()
6618{
6619#ifndef __GNUC__
6620 choke me
6621#endif
6622
6623 ;
6624 return 0;
6625}
6626_ACEOF
6627if ac_fn_cxx_try_compile "$LINENO"; then :
6628 ac_compiler_gnu=yes
6629else
6630 ac_compiler_gnu=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6634
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6637$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6638if test $ac_compiler_gnu = yes; then
6639 GXX=yes
6640else
6641 GXX=
6642fi
6643ac_test_CXXFLAGS=${CXXFLAGS+set}
6644ac_save_CXXFLAGS=$CXXFLAGS
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6646$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006647if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006648 $as_echo_n "(cached) " >&6
6649else
6650 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6651 ac_cxx_werror_flag=yes
6652 ac_cv_prog_cxx_g=no
6653 CXXFLAGS="-g"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h. */
6656
6657int
6658main ()
6659{
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_cxx_try_compile "$LINENO"; then :
6666 ac_cv_prog_cxx_g=yes
6667else
6668 CXXFLAGS=""
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681
6682else
6683 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6684 CXXFLAGS="-g"
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h. */
6687
6688int
6689main ()
6690{
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697 ac_cv_prog_cxx_g=yes
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6707$as_echo "$ac_cv_prog_cxx_g" >&6; }
6708if test "$ac_test_CXXFLAGS" = set; then
6709 CXXFLAGS=$ac_save_CXXFLAGS
6710elif test $ac_cv_prog_cxx_g = yes; then
6711 if test "$GXX" = yes; then
6712 CXXFLAGS="-g -O2"
6713 else
6714 CXXFLAGS="-g"
6715 fi
6716else
6717 if test "$GXX" = yes; then
6718 CXXFLAGS="-O2"
6719 else
6720 CXXFLAGS=
6721 fi
6722fi
6723ac_ext=c
6724ac_cpp='$CPP $CPPFLAGS'
6725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
cristy73bd4a52010-10-05 11:24:23 +00006729depcc="$CXX" am_compiler_list=
6730
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6732$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006733if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006734 $as_echo_n "(cached) " >&6
6735else
6736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6737 # We make a subdir and do the tests there. Otherwise we can end up
6738 # making bogus files that we don't know about and never remove. For
6739 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006740 # making a dummy file named 'D' -- because '-MD' means "put the output
6741 # in D".
cristy7247bba2012-02-05 16:37:27 +00006742 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006743 mkdir conftest.dir
6744 # Copy depcomp to subdir because otherwise we won't find it if we're
6745 # using a relative directory.
6746 cp "$am_depcomp" conftest.dir
6747 cd conftest.dir
6748 # We will build objects and dependencies in a subdirectory because
6749 # it helps to detect inapplicable dependency modes. For instance
6750 # both Tru64's cc and ICC support -MD to output dependencies as a
6751 # side effect of compilation, but ICC will put the dependencies in
6752 # the current directory while Tru64 will put them in the object
6753 # directory.
6754 mkdir sub
6755
6756 am_cv_CXX_dependencies_compiler_type=none
6757 if test "$am_compiler_list" = ""; then
6758 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6759 fi
6760 am__universal=false
6761 case " $depcc " in #(
6762 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6763 esac
6764
6765 for depmode in $am_compiler_list; do
6766 # Setup a source with many dependencies, because some compilers
6767 # like to wrap large dependency lists on column 80 (with \), and
6768 # we should not choose a depcomp mode which is confused by this.
6769 #
6770 # We need to recreate these files for each test, as the compiler may
6771 # overwrite some of them when testing with obscure command lines.
6772 # This happens at least with the AIX C compiler.
6773 : > sub/conftest.c
6774 for i in 1 2 3 4 5 6; do
6775 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006776 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6777 # Solaris 10 /bin/sh.
6778 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006779 done
6780 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6781
cristyc0890a62012-07-19 00:18:20 +00006782 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006783 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006784 # handle '-M -o', and we need to detect this. Also, some Intel
6785 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006786 am__obj=sub/conftest.${OBJEXT-o}
6787 am__minus_obj="-o $am__obj"
6788 case $depmode in
6789 gcc)
6790 # This depmode causes a compiler race in universal mode.
6791 test "$am__universal" = false || continue
6792 ;;
6793 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006794 # After this tag, mechanisms are not by side-effect, so they'll
6795 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006796 if test "x$enable_dependency_tracking" = xyes; then
6797 continue
6798 else
6799 break
6800 fi
6801 ;;
cristy7247bba2012-02-05 16:37:27 +00006802 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006803 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006804 # not run yet. These depmodes are late enough in the game, and
6805 # so weak that their functioning should not be impacted.
6806 am__obj=conftest.${OBJEXT-o}
6807 am__minus_obj=
6808 ;;
6809 none) break ;;
6810 esac
6811 if depmode=$depmode \
6812 source=sub/conftest.c object=$am__obj \
6813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6814 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6815 >/dev/null 2>conftest.err &&
6816 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6817 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6818 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6819 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6820 # icc doesn't choke on unknown options, it will just issue warnings
6821 # or remarks (even with -Werror). So we grep stderr for any message
6822 # that says an option was ignored or not supported.
6823 # When given -MP, icc 7.0 and 7.1 complain thusly:
6824 # icc: Command line warning: ignoring option '-M'; no argument required
6825 # The diagnosis changed in icc 8.0:
6826 # icc: Command line remark: option '-MP' not supported
6827 if (grep 'ignoring option' conftest.err ||
6828 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6829 am_cv_CXX_dependencies_compiler_type=$depmode
6830 break
6831 fi
6832 fi
6833 done
6834
6835 cd ..
6836 rm -rf conftest.dir
6837else
6838 am_cv_CXX_dependencies_compiler_type=none
6839fi
6840
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6843$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6844CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6845
6846 if
6847 test "x$enable_dependency_tracking" != xno \
6848 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6849 am__fastdepCXX_TRUE=
6850 am__fastdepCXX_FALSE='#'
6851else
6852 am__fastdepCXX_TRUE='#'
6853 am__fastdepCXX_FALSE=
6854fi
6855
6856
cristy8b350f62009-11-15 23:12:43 +00006857 case $ac_cv_prog_cc_stdc in #(
6858 no) :
6859 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6860 *) :
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006862$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006863if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 $as_echo_n "(cached) " >&6
6865else
6866 ac_cv_prog_cc_c99=no
6867ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006869/* end confdefs.h. */
6870#include <stdarg.h>
6871#include <stdbool.h>
6872#include <stdlib.h>
6873#include <wchar.h>
6874#include <stdio.h>
6875
6876// Check varargs macros. These examples are taken from C99 6.10.3.5.
6877#define debug(...) fprintf (stderr, __VA_ARGS__)
6878#define showlist(...) puts (#__VA_ARGS__)
6879#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6880static void
6881test_varargs_macros (void)
6882{
6883 int x = 1234;
6884 int y = 5678;
6885 debug ("Flag");
6886 debug ("X = %d\n", x);
6887 showlist (The first, second, and third items.);
6888 report (x>y, "x is %d but y is %d", x, y);
6889}
6890
6891// Check long long types.
6892#define BIG64 18446744073709551615ull
6893#define BIG32 4294967295ul
6894#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6895#if !BIG_OK
6896 your preprocessor is broken;
6897#endif
6898#if BIG_OK
6899#else
6900 your preprocessor is broken;
6901#endif
6902static long long int bignum = -9223372036854775807LL;
6903static unsigned long long int ubignum = BIG64;
6904
6905struct incomplete_array
6906{
6907 int datasize;
6908 double data[];
6909};
6910
6911struct named_init {
6912 int number;
6913 const wchar_t *name;
6914 double average;
6915};
6916
6917typedef const char *ccp;
6918
6919static inline int
6920test_restrict (ccp restrict text)
6921{
6922 // See if C++-style comments work.
6923 // Iterate through items via the restricted pointer.
6924 // Also check for declarations in for loops.
6925 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6926 continue;
6927 return 0;
6928}
6929
6930// Check varargs and va_copy.
6931static void
6932test_varargs (const char *format, ...)
6933{
6934 va_list args;
6935 va_start (args, format);
6936 va_list args_copy;
6937 va_copy (args_copy, args);
6938
6939 const char *str;
6940 int number;
6941 float fnumber;
6942
6943 while (*format)
6944 {
6945 switch (*format++)
6946 {
6947 case 's': // string
6948 str = va_arg (args_copy, const char *);
6949 break;
6950 case 'd': // int
6951 number = va_arg (args_copy, int);
6952 break;
6953 case 'f': // float
6954 fnumber = va_arg (args_copy, double);
6955 break;
6956 default:
6957 break;
6958 }
6959 }
6960 va_end (args_copy);
6961 va_end (args);
6962}
6963
6964int
6965main ()
6966{
6967
6968 // Check bool.
6969 _Bool success = false;
6970
6971 // Check restrict.
6972 if (test_restrict ("String literal") == 0)
6973 success = true;
6974 char *restrict newvar = "Another string";
6975
6976 // Check varargs.
6977 test_varargs ("s, d' f .", "string", 65, 34.234);
6978 test_varargs_macros ();
6979
6980 // Check flexible array members.
6981 struct incomplete_array *ia =
6982 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6983 ia->datasize = 10;
6984 for (int i = 0; i < ia->datasize; ++i)
6985 ia->data[i] = i * 1.234;
6986
6987 // Check named initializers.
6988 struct named_init ni = {
6989 .number = 34,
6990 .name = L"Test wide string",
6991 .average = 543.34343,
6992 };
6993
6994 ni.number = 58;
6995
6996 int dynamic_array[ni.number];
6997 dynamic_array[ni.number - 1] = 543;
6998
6999 // work around unused variable warnings
7000 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7001 || dynamic_array[ni.number - 1] != 543);
7002
7003 ;
7004 return 0;
7005}
7006_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007007for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007008do
7009 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007010 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007011 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007012fi
cristy3ed852e2009-09-05 21:47:34 +00007013rm -f core conftest.err conftest.$ac_objext
7014 test "x$ac_cv_prog_cc_c99" != "xno" && break
7015done
7016rm -f conftest.$ac_ext
7017CC=$ac_save_CC
7018
7019fi
7020# AC_CACHE_VAL
7021case "x$ac_cv_prog_cc_c99" in
7022 x)
cristy8b350f62009-11-15 23:12:43 +00007023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007024$as_echo "none needed" >&6; } ;;
7025 xno)
cristy8b350f62009-11-15 23:12:43 +00007026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007027$as_echo "unsupported" >&6; } ;;
7028 *)
7029 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7032esac
cristy8b350f62009-11-15 23:12:43 +00007033if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7035else
cristy8b350f62009-11-15 23:12:43 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007037$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007038if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 $as_echo_n "(cached) " >&6
7040else
7041 ac_cv_prog_cc_c89=no
7042ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007044/* end confdefs.h. */
7045#include <stdarg.h>
7046#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007047struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007048/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7049struct buf { int x; };
7050FILE * (*rcsopen) (struct buf *, struct stat *, int);
7051static char *e (p, i)
7052 char **p;
7053 int i;
7054{
7055 return p[i];
7056}
7057static char *f (char * (*g) (char **, int), char **p, ...)
7058{
7059 char *s;
7060 va_list v;
7061 va_start (v,p);
7062 s = g (p, va_arg (v,int));
7063 va_end (v);
7064 return s;
7065}
7066
7067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7068 function prototypes and stuff, but not '\xHH' hex character constants.
7069 These don't provoke an error unfortunately, instead are silently treated
7070 as 'x'. The following induces an error, until -std is added to get
7071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7072 array size at least. It's necessary to write '\x00'==0 to get something
7073 that's true only with -std. */
7074int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7075
7076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7077 inside strings and character constants. */
7078#define FOO(x) 'x'
7079int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7080
7081int test (int i, double x);
7082struct s1 {int (*f) (int a);};
7083struct s2 {int (*f) (double a);};
7084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7085int argc;
7086char **argv;
7087int
7088main ()
7089{
7090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7091 ;
7092 return 0;
7093}
7094_ACEOF
7095for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7097do
7098 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007099 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007100 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007101fi
cristy3ed852e2009-09-05 21:47:34 +00007102rm -f core conftest.err conftest.$ac_objext
7103 test "x$ac_cv_prog_cc_c89" != "xno" && break
7104done
7105rm -f conftest.$ac_ext
7106CC=$ac_save_CC
7107
7108fi
7109# AC_CACHE_VAL
7110case "x$ac_cv_prog_cc_c89" in
7111 x)
cristy8b350f62009-11-15 23:12:43 +00007112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007113$as_echo "none needed" >&6; } ;;
7114 xno)
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo "unsupported" >&6; } ;;
7117 *)
7118 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007120$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7121esac
cristy8b350f62009-11-15 23:12:43 +00007122if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007123 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7124else
7125 ac_cv_prog_cc_stdc=no
7126fi
7127
cristy3ed852e2009-09-05 21:47:34 +00007128fi
cristy3ed852e2009-09-05 21:47:34 +00007129 ;;
7130esac
cristy8b350f62009-11-15 23:12:43 +00007131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007132$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007133 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007134 $as_echo_n "(cached) " >&6
7135fi
7136
cristy8b350f62009-11-15 23:12:43 +00007137 case $ac_cv_prog_cc_stdc in #(
7138 no) :
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7140$as_echo "unsupported" >&6; } ;; #(
7141 '') :
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7143$as_echo "none needed" >&6; } ;; #(
7144 *) :
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007146$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7147esac
7148
cristy3ed852e2009-09-05 21:47:34 +00007149ac_ext=c
7150ac_cpp='$CPP $CPPFLAGS'
7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007155$as_echo_n "checking how to run the C preprocessor... " >&6; }
7156# On Suns, sometimes $CPP names a directory.
7157if test -n "$CPP" && test -d "$CPP"; then
7158 CPP=
7159fi
7160if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007161 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 $as_echo_n "(cached) " >&6
7163else
7164 # Double quotes because CPP needs to be expanded
7165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7166 do
7167 ac_preproc_ok=false
7168for ac_c_preproc_warn_flag in '' yes
7169do
7170 # Use a header file that comes with gcc, so configuring glibc
7171 # with a fresh cross-compiler works.
7172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7173 # <limits.h> exists even on freestanding compilers.
7174 # On the NeXT, cc -E runs the code through the compiler's parser,
7175 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007177/* end confdefs.h. */
7178#ifdef __STDC__
7179# include <limits.h>
7180#else
7181# include <assert.h>
7182#endif
7183 Syntax error
7184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007185if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007186
cristy8b350f62009-11-15 23:12:43 +00007187else
cristy3ed852e2009-09-05 21:47:34 +00007188 # Broken: fails on valid input.
7189continue
7190fi
cristyda16f162011-02-19 23:52:17 +00007191rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007192
7193 # OK, works on sane cases. Now check whether nonexistent headers
7194 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196/* end confdefs.h. */
7197#include <ac_nonexistent.h>
7198_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007199if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007200 # Broken: success on invalid input.
7201continue
7202else
cristy3ed852e2009-09-05 21:47:34 +00007203 # Passes both tests.
7204ac_preproc_ok=:
7205break
7206fi
cristyda16f162011-02-19 23:52:17 +00007207rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007208
7209done
7210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007211rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007212if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007213 break
7214fi
7215
7216 done
7217 ac_cv_prog_CPP=$CPP
7218
7219fi
7220 CPP=$ac_cv_prog_CPP
7221else
7222 ac_cv_prog_CPP=$CPP
7223fi
cristy8b350f62009-11-15 23:12:43 +00007224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007225$as_echo "$CPP" >&6; }
7226ac_preproc_ok=false
7227for ac_c_preproc_warn_flag in '' yes
7228do
7229 # Use a header file that comes with gcc, so configuring glibc
7230 # with a fresh cross-compiler works.
7231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7232 # <limits.h> exists even on freestanding compilers.
7233 # On the NeXT, cc -E runs the code through the compiler's parser,
7234 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007236/* end confdefs.h. */
7237#ifdef __STDC__
7238# include <limits.h>
7239#else
7240# include <assert.h>
7241#endif
7242 Syntax error
7243_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007244if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007245
cristy8b350f62009-11-15 23:12:43 +00007246else
cristy3ed852e2009-09-05 21:47:34 +00007247 # Broken: fails on valid input.
7248continue
7249fi
cristyda16f162011-02-19 23:52:17 +00007250rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007251
7252 # OK, works on sane cases. Now check whether nonexistent headers
7253 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255/* end confdefs.h. */
7256#include <ac_nonexistent.h>
7257_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007258if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007259 # Broken: success on invalid input.
7260continue
7261else
cristy3ed852e2009-09-05 21:47:34 +00007262 # Passes both tests.
7263ac_preproc_ok=:
7264break
7265fi
cristyda16f162011-02-19 23:52:17 +00007266rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007267
7268done
7269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007270rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007271if $ac_preproc_ok; then :
7272
cristy3ed852e2009-09-05 21:47:34 +00007273else
cristy8b350f62009-11-15 23:12:43 +00007274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7277See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007278fi
7279
7280ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
cristy73bd4a52010-10-05 11:24:23 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7287$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007288if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007289 $as_echo_n "(cached) " >&6
7290else
7291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7292 for ac_i in 1 2 3 4 5 6 7; do
7293 ac_script="$ac_script$as_nl$ac_script"
7294 done
7295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7296 { ac_script=; unset ac_script;}
7297 if test -z "$SED"; then
7298 ac_path_SED_found=false
7299 # Loop through the user's path and test for each of PROGNAME-LIST
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_prog in sed gsed; do
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007308 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007309# Check for GNU ac_path_SED and select it if it is found.
7310 # Check for GNU $ac_path_SED
7311case `"$ac_path_SED" --version 2>&1` in
7312*GNU*)
7313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7314*)
7315 ac_count=0
7316 $as_echo_n 0123456789 >"conftest.in"
7317 while :
7318 do
7319 cat "conftest.in" "conftest.in" >"conftest.tmp"
7320 mv "conftest.tmp" "conftest.in"
7321 cp "conftest.in" "conftest.nl"
7322 $as_echo '' >> "conftest.nl"
7323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7325 as_fn_arith $ac_count + 1 && ac_count=$as_val
7326 if test $ac_count -gt ${ac_path_SED_max-0}; then
7327 # Best one so far, save it but keep looking for a better one
7328 ac_cv_path_SED="$ac_path_SED"
7329 ac_path_SED_max=$ac_count
7330 fi
7331 # 10*(2^10) chars as input seems more than enough
7332 test $ac_count -gt 10 && break
7333 done
7334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7335esac
7336
7337 $ac_path_SED_found && break 3
7338 done
7339 done
7340 done
7341IFS=$as_save_IFS
7342 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007344 fi
7345else
7346 ac_cv_path_SED=$SED
7347fi
7348
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7351$as_echo "$ac_cv_path_SED" >&6; }
7352 SED="$ac_cv_path_SED"
7353 rm -f conftest.sed
7354
7355test -z "$SED" && SED=sed
7356Xsed="$SED -e 1s/^X//"
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7369$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007370if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007371 $as_echo_n "(cached) " >&6
7372else
7373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7374 then ac_cv_path_FGREP="$GREP -F"
7375 else
7376 if test -z "$FGREP"; then
7377 ac_path_FGREP_found=false
7378 # Loop through the user's path and test for each of PROGNAME-LIST
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_prog in fgrep; do
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007387 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007388# Check for GNU ac_path_FGREP and select it if it is found.
7389 # Check for GNU $ac_path_FGREP
7390case `"$ac_path_FGREP" --version 2>&1` in
7391*GNU*)
7392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7393*)
7394 ac_count=0
7395 $as_echo_n 0123456789 >"conftest.in"
7396 while :
7397 do
7398 cat "conftest.in" "conftest.in" >"conftest.tmp"
7399 mv "conftest.tmp" "conftest.in"
7400 cp "conftest.in" "conftest.nl"
7401 $as_echo 'FGREP' >> "conftest.nl"
7402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7404 as_fn_arith $ac_count + 1 && ac_count=$as_val
7405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7406 # Best one so far, save it but keep looking for a better one
7407 ac_cv_path_FGREP="$ac_path_FGREP"
7408 ac_path_FGREP_max=$ac_count
7409 fi
7410 # 10*(2^10) chars as input seems more than enough
7411 test $ac_count -gt 10 && break
7412 done
7413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7414esac
7415
7416 $ac_path_FGREP_found && break 3
7417 done
7418 done
7419 done
7420IFS=$as_save_IFS
7421 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007423 fi
7424else
7425 ac_cv_path_FGREP=$FGREP
7426fi
7427
7428 fi
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7431$as_echo "$ac_cv_path_FGREP" >&6; }
7432 FGREP="$ac_cv_path_FGREP"
7433
7434
7435test -z "$GREP" && GREP=grep
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
cristy0c60a692010-11-04 01:09:47 +00007453ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7454ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7455ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7456
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7458$as_echo_n "checking how to print strings... " >&6; }
7459# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007460if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007461 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7462 ECHO='print -r --'
7463elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7464 ECHO='printf %s\n'
7465else
7466 # Use this function as a fallback that always works.
7467 func_fallback_echo ()
7468 {
7469 eval 'cat <<_LTECHO_EOF
7470$1
7471_LTECHO_EOF'
7472 }
7473 ECHO='func_fallback_echo'
7474fi
7475
7476# func_echo_all arg...
7477# Invoke $ECHO with all args, space-separated.
7478func_echo_all ()
7479{
7480 $ECHO ""
7481}
7482
7483case "$ECHO" in
7484 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7485$as_echo "printf" >&6; } ;;
7486 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7487$as_echo "print -r" >&6; } ;;
7488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7489$as_echo "cat" >&6; } ;;
7490esac
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
cristy73bd4a52010-10-05 11:24:23 +00007505
7506
7507# Check whether --with-gnu-ld was given.
7508if test "${with_gnu_ld+set}" = set; then :
7509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7510else
7511 with_gnu_ld=no
7512fi
7513
7514ac_prog=ld
7515if test "$GCC" = yes; then
7516 # Check if gcc -print-prog-name=ld gives a path.
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7518$as_echo_n "checking for ld used by $CC... " >&6; }
7519 case $host in
7520 *-*-mingw*)
7521 # gcc leaves a trailing carriage return which upsets mingw
7522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7523 *)
7524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7525 esac
7526 case $ac_prog in
7527 # Accept absolute paths.
7528 [\\/]* | ?:[\\/]*)
7529 re_direlt='/[^/][^/]*/\.\./'
7530 # Canonicalize the pathname of ld
7531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7534 done
7535 test -z "$LD" && LD="$ac_prog"
7536 ;;
7537 "")
7538 # If it fails, then pretend we aren't using GCC.
7539 ac_prog=ld
7540 ;;
7541 *)
7542 # If it is relative, then search for the first ld in PATH.
7543 with_gnu_ld=unknown
7544 ;;
7545 esac
7546elif test "$with_gnu_ld" = yes; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7548$as_echo_n "checking for GNU ld... " >&6; }
7549else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7551$as_echo_n "checking for non-GNU ld... " >&6; }
7552fi
cristyda16f162011-02-19 23:52:17 +00007553if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007554 $as_echo_n "(cached) " >&6
7555else
7556 if test -z "$LD"; then
7557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558 for ac_dir in $PATH; do
7559 IFS="$lt_save_ifs"
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7562 lt_cv_path_LD="$ac_dir/$ac_prog"
7563 # Check to see if the program is GNU ld. I'd rather use --version,
7564 # but apparently some variants of GNU ld only accept -v.
7565 # Break only if it was the GNU/non-GNU ld that we prefer.
7566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7567 *GNU* | *'with BFD'*)
7568 test "$with_gnu_ld" != no && break
7569 ;;
7570 *)
7571 test "$with_gnu_ld" != yes && break
7572 ;;
7573 esac
7574 fi
7575 done
7576 IFS="$lt_save_ifs"
7577else
7578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7579fi
7580fi
7581
7582LD="$lt_cv_path_LD"
7583if test -n "$LD"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7585$as_echo "$LD" >&6; }
7586else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
cristy98dddb52010-11-04 00:30:15 +00007590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007593if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007594 $as_echo_n "(cached) " >&6
7595else
7596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7597case `$LD -v 2>&1 </dev/null` in
7598*GNU* | *'with BFD'*)
7599 lt_cv_prog_gnu_ld=yes
7600 ;;
7601*)
7602 lt_cv_prog_gnu_ld=no
7603 ;;
7604esac
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7608with_gnu_ld=$lt_cv_prog_gnu_ld
7609
7610
7611
7612
7613
7614
7615
7616
7617
cristy3ed852e2009-09-05 21:47:34 +00007618
cristy837d6dc2010-02-27 01:16:57 +00007619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7620$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007621if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007622 $as_echo_n "(cached) " >&6
7623else
7624 ac_cv_prog_cc_c99=no
7625ac_save_CC=$CC
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */
7628#include <stdarg.h>
7629#include <stdbool.h>
7630#include <stdlib.h>
7631#include <wchar.h>
7632#include <stdio.h>
7633
7634// Check varargs macros. These examples are taken from C99 6.10.3.5.
7635#define debug(...) fprintf (stderr, __VA_ARGS__)
7636#define showlist(...) puts (#__VA_ARGS__)
7637#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7638static void
7639test_varargs_macros (void)
7640{
7641 int x = 1234;
7642 int y = 5678;
7643 debug ("Flag");
7644 debug ("X = %d\n", x);
7645 showlist (The first, second, and third items.);
7646 report (x>y, "x is %d but y is %d", x, y);
7647}
7648
7649// Check long long types.
7650#define BIG64 18446744073709551615ull
7651#define BIG32 4294967295ul
7652#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7653#if !BIG_OK
7654 your preprocessor is broken;
7655#endif
7656#if BIG_OK
7657#else
7658 your preprocessor is broken;
7659#endif
7660static long long int bignum = -9223372036854775807LL;
7661static unsigned long long int ubignum = BIG64;
7662
7663struct incomplete_array
7664{
7665 int datasize;
7666 double data[];
7667};
7668
7669struct named_init {
7670 int number;
7671 const wchar_t *name;
7672 double average;
7673};
7674
7675typedef const char *ccp;
7676
7677static inline int
7678test_restrict (ccp restrict text)
7679{
7680 // See if C++-style comments work.
7681 // Iterate through items via the restricted pointer.
7682 // Also check for declarations in for loops.
7683 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7684 continue;
7685 return 0;
7686}
7687
7688// Check varargs and va_copy.
7689static void
7690test_varargs (const char *format, ...)
7691{
7692 va_list args;
7693 va_start (args, format);
7694 va_list args_copy;
7695 va_copy (args_copy, args);
7696
7697 const char *str;
7698 int number;
7699 float fnumber;
7700
7701 while (*format)
7702 {
7703 switch (*format++)
7704 {
7705 case 's': // string
7706 str = va_arg (args_copy, const char *);
7707 break;
7708 case 'd': // int
7709 number = va_arg (args_copy, int);
7710 break;
7711 case 'f': // float
7712 fnumber = va_arg (args_copy, double);
7713 break;
7714 default:
7715 break;
7716 }
7717 }
7718 va_end (args_copy);
7719 va_end (args);
7720}
7721
7722int
7723main ()
7724{
7725
7726 // Check bool.
7727 _Bool success = false;
7728
7729 // Check restrict.
7730 if (test_restrict ("String literal") == 0)
7731 success = true;
7732 char *restrict newvar = "Another string";
7733
7734 // Check varargs.
7735 test_varargs ("s, d' f .", "string", 65, 34.234);
7736 test_varargs_macros ();
7737
7738 // Check flexible array members.
7739 struct incomplete_array *ia =
7740 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7741 ia->datasize = 10;
7742 for (int i = 0; i < ia->datasize; ++i)
7743 ia->data[i] = i * 1.234;
7744
7745 // Check named initializers.
7746 struct named_init ni = {
7747 .number = 34,
7748 .name = L"Test wide string",
7749 .average = 543.34343,
7750 };
7751
7752 ni.number = 58;
7753
7754 int dynamic_array[ni.number];
7755 dynamic_array[ni.number - 1] = 543;
7756
7757 // work around unused variable warnings
7758 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7759 || dynamic_array[ni.number - 1] != 543);
7760
7761 ;
7762 return 0;
7763}
7764_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007765for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007766do
7767 CC="$ac_save_CC $ac_arg"
7768 if ac_fn_c_try_compile "$LINENO"; then :
7769 ac_cv_prog_cc_c99=$ac_arg
7770fi
7771rm -f core conftest.err conftest.$ac_objext
7772 test "x$ac_cv_prog_cc_c99" != "xno" && break
7773done
7774rm -f conftest.$ac_ext
7775CC=$ac_save_CC
7776
7777fi
7778# AC_CACHE_VAL
7779case "x$ac_cv_prog_cc_c99" in
7780 x)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7782$as_echo "none needed" >&6; } ;;
7783 xno)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7785$as_echo "unsupported" >&6; } ;;
7786 *)
7787 CC="$CC $ac_cv_prog_cc_c99"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7789$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7790esac
7791if test "x$ac_cv_prog_cc_c99" != xno; then :
7792
7793fi
7794
7795
cristy73bd4a52010-10-05 11:24:23 +00007796if test "x$CC" != xcc; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7798$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7801$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7802fi
7803set dummy $CC; ac_cc=`$as_echo "$2" |
7804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007805if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007806 $as_echo_n "(cached) " >&6
7807else
cristy73bd4a52010-10-05 11:24:23 +00007808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h. */
7810
7811int
7812main ()
7813{
7814
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819# Make sure it works both with $CC and with simple cc.
7820# We do the test twice because some compilers refuse to overwrite an
7821# existing .o file with -o, though they will create one.
7822ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7823rm -f conftest2.*
7824if { { case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827esac
7828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7829$as_echo "$ac_try_echo"; } >&5
7830 (eval "$ac_try") 2>&5
7831 ac_status=$?
7832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833 test $ac_status = 0; } &&
7834 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; };
7844then
7845 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7846 if test "x$CC" != xcc; then
7847 # Test first that cc exists at all.
7848 if { ac_try='cc -c conftest.$ac_ext >&5'
7849 { { case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7854$as_echo "$ac_try_echo"; } >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; }; then
7859 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7860 rm -f conftest2.*
7861 if { { case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7866$as_echo "$ac_try_echo"; } >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; } &&
7871 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7876$as_echo "$ac_try_echo"; } >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; };
7881 then
7882 # cc works too.
7883 :
7884 else
7885 # cc exists but doesn't like -o.
7886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7887 fi
7888 fi
7889 fi
7890else
7891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7892fi
7893rm -f core conftest*
7894
7895fi
7896if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898$as_echo "yes" >&6; }
7899else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902
7903$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7904
7905fi
7906
7907# FIXME: we rely on the cache variable name because
7908# there is no other way.
7909set dummy $CC
7910am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7911eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7912if test "$am_t" != yes; then
7913 # Losing compiler, so override with the script.
7914 # FIXME: It is wrong to rewrite CC.
7915 # But if we don't then we get into trouble of one sort or another.
7916 # A longer-term fix would be to have automake use am__CC in this case,
7917 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7918 CC="$am_aux_dir/compile $CC"
7919fi
7920
7921
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7923$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007924if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007925 $as_echo_n "(cached) " >&6
7926else
7927 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007928 ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934 ac_save_CFLAGS="$CFLAGS"
7935for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7936do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h. */
7939
7940int
7941main ()
7942{
cristy24fc1fe2010-10-23 21:13:01 +00007943
cristy73bd4a52010-10-05 11:24:23 +00007944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952done
7953 CFLAGS="$ac_save_CFLAGS"
7954 ac_ext=c
7955ac_cpp='$CPP $CPPFLAGS'
7956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7963$as_echo "$ac_cv_cflags_warn_all" >&6; }
7964case ".$ac_cv_cflags_warn_all" in
7965 .ok|.ok,*) ;;
7966 .|.no|.no,*)
7967 ;;
7968 *)
7969 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7970 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7971 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7972 ac_status=$?
7973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974 test $ac_status = 0; }
7975 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7976 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7977 ac_status=$?
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }
7980 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7981 fi
7982 ;;
nicolas6237c462010-10-05 06:11:49 +00007983esac
cristy3ed852e2009-09-05 21:47:34 +00007984
cristy568c2d42012-07-27 01:41:20 +00007985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7986$as_echo_n "checking for C compiler vendor... " >&6; }
7987if ${ax_cv_c_compiler_vendor+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 # note: don't check for gcc first since some other compilers define __GNUC__
7991 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7992 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7993 pathscale: __PATHCC__,__PATHSCALE__
7994 clang: __clang__
7995 gnu: __GNUC__
7996 sun: __SUNPRO_C,__SUNPRO_CC
7997 hp: __HP_cc,__HP_aCC
7998 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7999 borland: __BORLANDC__,__TURBOC__
8000 comeau: __COMO__
8001 cray: _CRAYC
8002 kai: __KCC
8003 lcc: __LCC__
8004 sgi: __sgi,sgi
8005 microsoft: _MSC_VER
8006 metrowerks: __MWERKS__
8007 watcom: __WATCOMC__
8008 portland: __PGI
8009 unknown: UNKNOWN"
8010 for ventest in $vendors; do
8011 case $ventest in
8012 *:) vendor=$ventest; continue ;;
8013 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8014 esac
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h. */
8017
8018int
8019main ()
8020{
8021
8022 #if !($vencpp)
8023 thisisanerror;
8024 #endif
8025
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031 break
8032fi
8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 done
8035 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8036
8037fi
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8039$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8040
cristya0b81c32010-01-22 02:54:33 +00008041
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8044set x ${MAKE-make}
8045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008047 $as_echo_n "(cached) " >&6
8048else
8049 cat >conftest.make <<\_ACEOF
8050SHELL = /bin/sh
8051all:
8052 @echo '@@@%%%=$(MAKE)=@@@%%%'
8053_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008055case `${MAKE-make} -f conftest.make 2>/dev/null` in
8056 *@@@%%%=?*=@@@%%%*)
8057 eval ac_cv_prog_make_${ac_make}_set=yes;;
8058 *)
8059 eval ac_cv_prog_make_${ac_make}_set=no;;
8060esac
8061rm -f conftest.make
8062fi
8063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065$as_echo "yes" >&6; }
8066 SET_MAKE=
8067else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070 SET_MAKE="MAKE=${MAKE-make}"
8071fi
8072
cristy8b350f62009-11-15 23:12:43 +00008073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008074$as_echo_n "checking whether ln -s works... " >&6; }
8075LN_S=$as_ln_s
8076if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008078$as_echo "yes" >&6; }
8079else
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "no, using $LN_S" >&6; }
8082fi
8083
cristybc556452012-08-17 19:44:03 +00008084for ac_prog in gawk mawk nawk awk
8085do
8086 # Extract the first word of "$ac_prog", so it can be a program name with args.
8087set dummy $ac_prog; ac_word=$2
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if ${ac_cv_prog_AWK+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092else
8093 if test -n "$AWK"; then
8094 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_AWK="$ac_prog"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108 done
8109IFS=$as_save_IFS
8110
8111fi
8112fi
8113AWK=$ac_cv_prog_AWK
8114if test -n "$AWK"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8116$as_echo "$AWK" >&6; }
8117else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120fi
8121
8122
8123 test -n "$AWK" && break
8124done
8125
cristy73bd4a52010-10-05 11:24:23 +00008126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8127$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8128
8129# Check whether --with-dmalloc was given.
8130if test "${with_dmalloc+set}" = set; then :
8131 withval=$with_dmalloc; if test "$withval" = yes; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8133$as_echo "yes" >&6; }
8134
8135$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8136
8137 LIBS="$LIBS -ldmalloc"
8138 LDFLAGS="$LDFLAGS -g"
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8151$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008152if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008153 $as_echo_n "(cached) " >&6
8154else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h. */
8157#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008158 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008159 static void
8160 foo(void) {
8161 exit(1);
8162 }
8163
8164int
8165main ()
8166{
8167
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"; then :
8173 ax_cv___attribute__=yes
8174else
8175 ax_cv___attribute__=no
8176
8177fi
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8182$as_echo "$ax_cv___attribute__" >&6; }
8183 if test "$ax_cv___attribute__" = "yes"; then
8184
8185$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8186
8187 fi
8188
8189
8190
cristy37110d62012-03-01 18:38:20 +00008191
8192
8193# Check whether --with-gcc-arch was given.
8194if test "${with_gcc_arch+set}" = set; then :
8195 withval=$with_gcc_arch; ax_gcc_arch=$withval
8196else
cristya32d1812012-03-02 19:24:21 +00008197 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008198fi
8199
8200
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8202$as_echo_n "checking for gcc architecture flag... " >&6; }
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8204$as_echo "" >&6; }
8205if ${ax_cv_gcc_archflag+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207else
8208
8209ax_cv_gcc_archflag="unknown"
8210
8211if test "$GCC" = yes; then
8212
8213if test "x$ax_gcc_arch" = xyes; then
8214ax_gcc_arch=""
8215if test "$cross_compiling" = no; then
8216case $host_cpu in
8217 i[3456]86*|x86_64*) # use cpuid codes
8218
8219ac_ext=c
8220ac_cpp='$CPP $CPPFLAGS'
8221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8226$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8227if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229else
8230 if test "$cross_compiling" = yes; then :
8231 ax_cv_gcc_x86_cpuid_0=unknown
8232else
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h. */
8235#include <stdio.h>
8236int
8237main ()
8238{
8239
8240 int op = 0, eax, ebx, ecx, edx;
8241 FILE *f;
8242 __asm__("cpuid"
8243 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8244 : "a" (op));
8245 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8246 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8247 fclose(f);
8248 return 0;
8249
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254if ac_fn_c_try_run "$LINENO"; then :
8255 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8256else
8257 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8258fi
8259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8260 conftest.$ac_objext conftest.beam conftest.$ac_ext
8261fi
8262
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8265$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8266ac_ext=c
8267ac_cpp='$CPP $CPPFLAGS'
8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272
8273
8274ac_ext=c
8275ac_cpp='$CPP $CPPFLAGS'
8276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8278ac_compiler_gnu=$ac_cv_c_compiler_gnu
8279
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8281$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8282if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284else
8285 if test "$cross_compiling" = yes; then :
8286 ax_cv_gcc_x86_cpuid_1=unknown
8287else
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290#include <stdio.h>
8291int
8292main ()
8293{
8294
8295 int op = 1, eax, ebx, ecx, edx;
8296 FILE *f;
8297 __asm__("cpuid"
8298 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8299 : "a" (op));
8300 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8301 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8302 fclose(f);
8303 return 0;
8304
8305 ;
8306 return 0;
8307}
8308_ACEOF
8309if ac_fn_c_try_run "$LINENO"; then :
8310 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8311else
8312 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8313fi
8314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315 conftest.$ac_objext conftest.beam conftest.$ac_ext
8316fi
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8320$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8321ac_ext=c
8322ac_cpp='$CPP $CPPFLAGS'
8323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327
8328 case $ax_cv_gcc_x86_cpuid_0 in
8329 *:756e6547:*:*) # Intel
8330 case $ax_cv_gcc_x86_cpuid_1 in
8331 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8332 *5??:*:*:*) ax_gcc_arch=pentium ;;
8333 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8334 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8335 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8336 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8337 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8338 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8339 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8340 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8341 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8342 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8343 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8344 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8345 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8346 case $host_cpu in
8347 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8348 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8349 esac ;;
8350 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8351 esac ;;
8352 *:68747541:*:*) # AMD
8353 case $ax_cv_gcc_x86_cpuid_1 in
8354 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8355 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8356 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8357 *60?:*:*:*) ax_gcc_arch=k7 ;;
8358 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8359 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8360 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8361 *6[68a]?:*:*:*)
8362
8363ac_ext=c
8364ac_cpp='$CPP $CPPFLAGS'
8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8370$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8371if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373else
8374 if test "$cross_compiling" = yes; then :
8375 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8376else
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h. */
8379#include <stdio.h>
8380int
8381main ()
8382{
8383
8384 int op = 0x80000006, eax, ebx, ecx, edx;
8385 FILE *f;
8386 __asm__("cpuid"
8387 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8388 : "a" (op));
8389 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8390 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8391 fclose(f);
8392 return 0;
8393
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398if ac_fn_c_try_run "$LINENO"; then :
8399 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8400else
8401 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8402fi
8403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404 conftest.$ac_objext conftest.beam conftest.$ac_ext
8405fi
8406
8407fi
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8409$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416 # L2 cache size
8417 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8418 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8419 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8420 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8421 esac ;;
8422 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8423 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8424 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8425 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8426 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8427 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8428 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8429 esac ;;
8430 *:746e6543:*:*) # IDT
8431 case $ax_cv_gcc_x86_cpuid_1 in
8432 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8433 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8434 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8435 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8436 esac ;;
8437 esac
8438 if test x"$ax_gcc_arch" = x; then # fallback
8439 case $host_cpu in
8440 i586*) ax_gcc_arch=pentium ;;
8441 i686*) ax_gcc_arch=pentiumpro ;;
8442 esac
8443 fi
8444 ;;
8445
8446 sparc*)
8447 # Extract the first word of "prtdiag", so it can be a program name with args.
8448set dummy prtdiag; ac_word=$2
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if ${ac_cv_path_PRTDIAG+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453else
8454 case $PRTDIAG in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8457 ;;
8458 *)
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8461for as_dir in $as_dummy
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008467 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471done
8472 done
8473IFS=$as_save_IFS
8474
8475 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8476 ;;
8477esac
8478fi
8479PRTDIAG=$ac_cv_path_PRTDIAG
8480if test -n "$PRTDIAG"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8482$as_echo "$PRTDIAG" >&6; }
8483else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488
8489 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`
8490 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8491 case $cputype in
8492 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8493 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8494 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8495 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8496 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8497 *cypress*) ax_gcc_arch=cypress ;;
8498 esac ;;
8499
8500 alphaev5) ax_gcc_arch=ev5 ;;
8501 alphaev56) ax_gcc_arch=ev56 ;;
8502 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8503 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8504 alphaev6) ax_gcc_arch=ev6 ;;
8505 alphaev67) ax_gcc_arch=ev67 ;;
8506 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8507 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8508 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8509 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8510
8511 powerpc*)
8512 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`
8513 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8514 case $cputype in
8515 *750*) ax_gcc_arch="750 G3" ;;
8516 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8517 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8518 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8519 *970*) ax_gcc_arch="970 G5 power4";;
8520 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8521 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8522 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8523 *) ax_gcc_arch=$cputype ;;
8524 esac
8525 ax_gcc_arch="$ax_gcc_arch powerpc"
8526 ;;
8527esac
8528fi # not cross-compiling
8529fi # guess arch
8530
8531if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8532for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008533 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008534 flags="-mtune=$arch"
8535 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8536 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8537 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8538 else
8539 flags="-march=$arch -mcpu=$arch -m$arch"
8540 fi
8541 for flag in $flags; do
8542 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8544$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8545if eval \${$as_CACHEVAR+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547else
8548
8549 ax_check_save_flags=$CFLAGS
8550 CFLAGS="$CFLAGS $flag"
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h. */
8553
8554int
8555main ()
8556{
8557
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563 eval "$as_CACHEVAR=yes"
8564else
8565 eval "$as_CACHEVAR=no"
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 CFLAGS=$ax_check_save_flags
8569fi
8570eval ac_res=\$$as_CACHEVAR
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8572$as_echo "$ac_res" >&6; }
8573if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8574 ax_cv_gcc_archflag=$flag; break
8575else
8576 :
8577fi
8578
8579 done
8580 test "x$ax_cv_gcc_archflag" = xunknown || break
8581done
8582fi
8583
8584fi # $GCC=yes
8585
8586fi
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8589$as_echo_n "checking for gcc architecture flag... " >&6; }
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8591$as_echo "$ax_cv_gcc_archflag" >&6; }
8592if test "x$ax_cv_gcc_archflag" = xunknown; then
8593 :
8594else
8595 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8596fi
8597
8598
8599
cristy73bd4a52010-10-05 11:24:23 +00008600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8601 if test -n "$ac_tool_prefix"; then
8602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008606if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008607 $as_echo_n "(cached) " >&6
8608else
8609 case $PKG_CONFIG in
8610 [\\/]* | ?:[\\/]*)
8611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8612 ;;
8613 *)
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8624 fi
8625done
8626 done
8627IFS=$as_save_IFS
8628
8629 ;;
8630esac
8631fi
8632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8633if test -n "$PKG_CONFIG"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8635$as_echo "$PKG_CONFIG" >&6; }
8636else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
8639fi
8640
8641
8642fi
8643if test -z "$ac_cv_path_PKG_CONFIG"; then
8644 ac_pt_PKG_CONFIG=$PKG_CONFIG
8645 # Extract the first word of "pkg-config", so it can be a program name with args.
8646set dummy pkg-config; ac_word=$2
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008649if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008650 $as_echo_n "(cached) " >&6
8651else
8652 case $ac_pt_PKG_CONFIG in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8655 ;;
8656 *)
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8667 fi
8668done
8669 done
8670IFS=$as_save_IFS
8671
8672 ;;
8673esac
8674fi
8675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8676if test -n "$ac_pt_PKG_CONFIG"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8679else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
8682fi
8683
8684 if test "x$ac_pt_PKG_CONFIG" = x; then
8685 PKG_CONFIG=""
8686 else
8687 case $cross_compiling:$ac_tool_warned in
8688yes:)
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8691ac_tool_warned=yes ;;
8692esac
8693 PKG_CONFIG=$ac_pt_PKG_CONFIG
8694 fi
8695else
8696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8697fi
8698
8699fi
8700if test -n "$PKG_CONFIG"; then
8701 _pkg_min_version=0.9.0
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8706$as_echo "yes" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710 PKG_CONFIG=""
8711 fi
8712
8713fi
cristy3ed852e2009-09-05 21:47:34 +00008714
8715#
cristy3ed852e2009-09-05 21:47:34 +00008716# Enable run-time checking.
8717#
8718# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008719if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008720 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8721else
8722 enable_bounds_checking='no'
8723fi
8724
8725
8726if test "$enable_bounds_checking" = yes; then
8727
cristy8b350f62009-11-15 23:12:43 +00008728$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008729
8730fi
8731
8732#
8733# Tests for Windows
8734#
8735
8736
8737
8738GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008739native_win32_build='no'
8740cygwin_build='no'
8741case "${host_os}" in
8742 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008743 cygwin_build='yes'
8744 GDI32_LIBS='-lgdi32'
8745 ;;
8746 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008747 native_win32_build='yes'
8748 GDI32_LIBS='-lgdi32'
8749 ;;
8750esac
8751if test "${GDI32_LIBS}x" != 'x'; then
8752
cristy8b350f62009-11-15 23:12:43 +00008753$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008754
8755fi
8756
cristy73bd4a52010-10-05 11:24:23 +00008757 if test "${GDI32_LIBS}x" != 'x' ; then
8758 WINGDI32_DELEGATE_TRUE=
8759 WINGDI32_DELEGATE_FALSE='#'
8760else
8761 WINGDI32_DELEGATE_TRUE='#'
8762 WINGDI32_DELEGATE_FALSE=
8763fi
8764
8765 if test "${native_win32_build}" = 'yes' ; then
8766 WIN32_NATIVE_BUILD_TRUE=
8767 WIN32_NATIVE_BUILD_FALSE='#'
8768else
8769 WIN32_NATIVE_BUILD_TRUE='#'
8770 WIN32_NATIVE_BUILD_FALSE=
8771fi
8772
8773 if test "${cygwin_build}" = 'yes' ; then
8774 CYGWIN_BUILD_TRUE=
8775 CYGWIN_BUILD_FALSE='#'
8776else
8777 CYGWIN_BUILD_TRUE='#'
8778 CYGWIN_BUILD_FALSE=
8779fi
8780
8781 if test "x${CC}" = 'xcl.exe' ; then
8782 USING_CL_TRUE=
8783 USING_CL_FALSE='#'
8784else
8785 USING_CL_TRUE='#'
8786 USING_CL_FALSE=
8787fi
8788
cristy3ed852e2009-09-05 21:47:34 +00008789
8790WinPathScript="${srcdirfull}/winpath.sh"
8791
8792
8793#
8794# Compiler flags tweaks
8795#
8796if test "${GCC}" != "yes"; then
8797 case "${host}" in
8798 *-*-hpux* )
8799 # aCC: HP ANSI C++ B3910B A.03.34
8800 CFLAGS="${CFLAGS} -Wp,-H30000"
8801 if test -n "${CXXFLAGS}"; then
8802 CXXFLAGS='-AA'
8803 else
8804 CXXFLAGS="${CXXFLAGS} -AA"
8805 fi
8806 ;;
8807 *-dec-osf5.* )
8808 # Compaq alphaev68-dec-osf5.1 compiler
8809 if test -n "${CXXFLAGS}"; then
8810 CXXFLAGS='-std strict_ansi -noimplicit_include'
8811 else
8812 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8813 fi
8814 esac
8815fi
8816
8817# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008819$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008820if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008821 $as_echo_n "(cached) " >&6
8822else
8823
8824im_cv_ld_lazyload='none'
8825case "${host}" in
8826 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8827 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8828 im_cv_ld_lazyload='-Wl,-zlazyload'
8829 fi
8830 ;;
8831esac
8832
8833fi
cristy8b350f62009-11-15 23:12:43 +00008834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008835$as_echo "$im_cv_ld_lazyload" >&6; }
8836if test "${im_cv_ld_lazyload}" != 'none' ; then
8837 if test -z "${LDFLAGS}" ; then
8838 LDFLAGS="${im_cv_ld_lazyload}"
8839 else
8840 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8841 fi
8842fi
8843
8844case "$host" in
8845*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008846 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008847if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008848 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8849else
8850 build_osxuniversal=no
8851fi
8852
8853
8854 if test "${build_osxuniversal}" != no ; then
8855 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008856 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008857Please re-run configure with these options:
8858 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008859 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008860 fi
8861 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8862 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8863 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8864 fi
8865 ;;
8866esac
8867
cristy0151ae12011-10-28 16:32:29 +00008868#
8869# ARCH specific include directory
8870#
8871
cristy670aa3c2011-11-03 00:54:00 +00008872# Check whether --with-includearch-dir was given.
8873if test "${with_includearch_dir+set}" = set; then :
8874 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008875else
cristy670aa3c2011-11-03 00:54:00 +00008876 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008877fi
8878
8879
cristy670aa3c2011-11-03 00:54:00 +00008880eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008881
cristy0151ae12011-10-28 16:32:29 +00008882
8883#
8884# ARCH specific configuration directory
8885#
8886
cristy670aa3c2011-11-03 00:54:00 +00008887# Check whether --with-sharearch-dir was given.
8888if test "${with_sharearch_dir+set}" = set; then :
8889 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008890else
cristy408ebcd2011-11-14 01:36:57 +00008891 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008892fi
8893
8894
cristy670aa3c2011-11-03 00:54:00 +00008895eval "eval SHAREARCH_DIR=$sharearch_dir"
8896SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008897
cristy0151ae12011-10-28 16:32:29 +00008898
8899#
cristy3ed852e2009-09-05 21:47:34 +00008900# Enable support for threads
8901
8902# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008903if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008904 withval=$with_threads; with_threads=$withval
8905else
8906 with_threads='yes'
8907fi
8908
8909
8910have_threads=no
8911if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008912
8913
cristy73bd4a52010-10-05 11:24:23 +00008914ac_ext=c
8915ac_cpp='$CPP $CPPFLAGS'
8916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919
8920ax_pthread_ok=no
8921
8922# We used to check for pthread.h first, but this fails if pthread.h
8923# requires special compiler flags (e.g. on True64 or Sequent).
8924# It gets checked for in the link test anyway.
8925
8926# First of all, check if the user has set any of the PTHREAD_LIBS,
8927# etcetera environment variables, and if threads linking works using
8928# them:
8929if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8930 save_CFLAGS="$CFLAGS"
8931 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8932 save_LIBS="$LIBS"
8933 LIBS="$PTHREAD_LIBS $LIBS"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8935$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h. */
8938
8939/* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
8942#ifdef __cplusplus
8943extern "C"
8944#endif
8945char pthread_join ();
8946int
8947main ()
8948{
8949return pthread_join ();
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955 ax_pthread_ok=yes
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8960$as_echo "$ax_pthread_ok" >&6; }
8961 if test x"$ax_pthread_ok" = xno; then
8962 PTHREAD_LIBS=""
8963 PTHREAD_CFLAGS=""
8964 fi
8965 LIBS="$save_LIBS"
8966 CFLAGS="$save_CFLAGS"
8967fi
8968
8969# We must check for the threads library under a number of different
8970# names; the ordering is very important because some systems
8971# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8972# libraries is broken (non-POSIX).
8973
8974# Create a list of thread flags to try. Items starting with a "-" are
8975# C compiler flags, and other items are library names, except for "none"
8976# which indicates that we try without any flags at all, and "pthread-config"
8977# which is a program returning the flags for the Pth emulation library.
8978
cristy18307f12011-12-30 01:20:16 +00008979ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008980
8981# The ordering *is* (sometimes) important. Some notes on the
8982# individual items follow:
8983
8984# pthreads: AIX (must check this before -lpthread)
8985# none: in case threads are in libc; should be tried before -Kthread and
8986# other compiler flags to prevent continual compiler warnings
8987# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8988# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8989# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8990# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8991# -pthreads: Solaris/gcc
8992# -mthreads: Mingw32/gcc, Lynx/gcc
8993# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8994# doesn't hurt to check since this sometimes defines pthreads too;
8995# also defines -D_REENTRANT)
8996# ... -mt is also the pthreads flag for HP/aCC
8997# pthread: Linux, etcetera
8998# --thread-safe: KAI C++
8999# pthread-config: use pthread-config program (for GNU Pth library)
9000
9001case "${host_cpu}-${host_os}" in
9002 *solaris*)
9003
9004 # On Solaris (at least, for some versions), libc contains stubbed
9005 # (non-functional) versions of the pthreads routines, so link-based
9006 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9007 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9008 # a function called by this macro, so we could check for that, but
9009 # who knows whether they'll stub that too in a future libc.) So,
9010 # we'll just look for -pthreads and -lpthread first:
9011
9012 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9013 ;;
9014
cristya316db12011-10-24 00:49:45 +00009015 *-darwin*)
9016 ax_pthread_flags="-pthread $ax_pthread_flags"
9017 ;;
cristy73bd4a52010-10-05 11:24:23 +00009018esac
9019
9020if test x"$ax_pthread_ok" = xno; then
9021for flag in $ax_pthread_flags; do
9022
9023 case $flag in
9024 none)
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9026$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9027 ;;
9028
9029 -*)
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9031$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9032 PTHREAD_CFLAGS="$flag"
9033 ;;
9034
cristya316db12011-10-24 00:49:45 +00009035 pthread-config)
9036 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009037set dummy pthread-config; ac_word=$2
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009040if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009041 $as_echo_n "(cached) " >&6
9042else
9043 if test -n "$ax_pthread_config"; then
9044 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009053 ac_cv_prog_ax_pthread_config="yes"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9056 fi
9057done
9058 done
9059IFS=$as_save_IFS
9060
9061 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9062fi
9063fi
9064ax_pthread_config=$ac_cv_prog_ax_pthread_config
9065if test -n "$ax_pthread_config"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9067$as_echo "$ax_pthread_config" >&6; }
9068else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073
cristya316db12011-10-24 00:49:45 +00009074 if test x"$ax_pthread_config" = xno; then continue; fi
9075 PTHREAD_CFLAGS="`pthread-config --cflags`"
9076 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9077 ;;
cristy73bd4a52010-10-05 11:24:23 +00009078
9079 *)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9081$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9082 PTHREAD_LIBS="-l$flag"
9083 ;;
9084 esac
9085
9086 save_LIBS="$LIBS"
9087 save_CFLAGS="$CFLAGS"
9088 LIBS="$PTHREAD_LIBS $LIBS"
9089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9090
9091 # Check for various functions. We must include pthread.h,
9092 # since some functions may be macros. (On the Sequent, we
9093 # need a special flag -Kthread to make this header compile.)
9094 # We check for pthread_join because it is in -lpthread on IRIX
9095 # while pthread_create is in libc. We check for pthread_attr_init
9096 # due to DEC craziness with -lpthreads. We check for
9097 # pthread_cleanup_push because it is one of the few pthread
9098 # functions on Solaris that doesn't have a non-functional libc stub.
9099 # We try pthread_create on general principles.
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h. */
9102#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009103 static void routine(void *a) { a = 0; }
9104 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009105int
9106main ()
9107{
9108pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009109 pthread_create(&th, 0, start_routine, 0);
9110 pthread_join(th, 0);
9111 pthread_attr_init(&attr);
9112 pthread_cleanup_push(routine, 0);
9113 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009114 ;
9115 return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_link "$LINENO"; then :
9119 ax_pthread_ok=yes
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123
9124 LIBS="$save_LIBS"
9125 CFLAGS="$save_CFLAGS"
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9128$as_echo "$ax_pthread_ok" >&6; }
9129 if test "x$ax_pthread_ok" = xyes; then
9130 break;
9131 fi
9132
9133 PTHREAD_LIBS=""
9134 PTHREAD_CFLAGS=""
9135done
9136fi
9137
9138# Various other checks:
9139if test "x$ax_pthread_ok" = xyes; then
9140 save_LIBS="$LIBS"
9141 LIBS="$PTHREAD_LIBS $LIBS"
9142 save_CFLAGS="$CFLAGS"
9143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9144
9145 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009147$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009148 attr_name=unknown
9149 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009151/* end confdefs.h. */
9152#include <pthread.h>
9153int
9154main ()
9155{
cristya316db12011-10-24 00:49:45 +00009156int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009157 ;
9158 return 0;
9159}
9160_ACEOF
9161if ac_fn_c_try_link "$LINENO"; then :
9162 attr_name=$attr; break
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009166 done
cristy73bd4a52010-10-05 11:24:23 +00009167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9168$as_echo "$attr_name" >&6; }
9169 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9170
9171cat >>confdefs.h <<_ACEOF
9172#define PTHREAD_CREATE_JOINABLE $attr_name
9173_ACEOF
9174
9175 fi
9176
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9178$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9179 flag=no
9180 case "${host_cpu}-${host_os}" in
9181 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9182 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9183 esac
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9185$as_echo "${flag}" >&6; }
9186 if test "x$flag" != xno; then
9187 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9188 fi
9189
cristya316db12011-10-24 00:49:45 +00009190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9191$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9192if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194else
9195
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h. */
9198
9199 #include <pthread.h>
9200int
9201main ()
9202{
9203int i = PTHREAD_PRIO_INHERIT;
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209 ax_cv_PTHREAD_PRIO_INHERIT=yes
9210else
9211 ax_cv_PTHREAD_PRIO_INHERIT=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9218$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9219 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9220
9221$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9222
9223fi
9224
cristy73bd4a52010-10-05 11:24:23 +00009225 LIBS="$save_LIBS"
9226 CFLAGS="$save_CFLAGS"
9227
9228 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009229 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009230 for ac_prog in xlc_r cc_r
9231do
9232 # Extract the first word of "$ac_prog", so it can be a program name with args.
9233set dummy $ac_prog; ac_word=$2
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009236if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009237 $as_echo_n "(cached) " >&6
9238else
9239 if test -n "$PTHREAD_CC"; then
9240 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9241else
9242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243for as_dir in $PATH
9244do
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009249 ac_cv_prog_PTHREAD_CC="$ac_prog"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 break 2
9252 fi
9253done
9254 done
9255IFS=$as_save_IFS
9256
9257fi
9258fi
9259PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9260if test -n "$PTHREAD_CC"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9262$as_echo "$PTHREAD_CC" >&6; }
9263else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
9266fi
9267
9268
9269 test -n "$PTHREAD_CC" && break
9270done
9271test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9272
9273 else
9274 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009275 fi
cristy73bd4a52010-10-05 11:24:23 +00009276else
9277 PTHREAD_CC="$CC"
9278fi
9279
9280
9281
9282
9283
9284# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9285if test x"$ax_pthread_ok" = xyes; then
9286
9287$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9288
9289 :
9290else
9291 ax_pthread_ok=no
9292
9293fi
9294ac_ext=c
9295ac_cpp='$CPP $CPPFLAGS'
9296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
9300
cristy7acf8fb2010-09-23 19:58:53 +00009301 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009302 have_threads=yes
9303 DEF_THREAD="$PTHREAD_CFLAGS"
9304 CFLAGS="$CFLAGS $DEF_THREAD"
9305 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9306 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009307 { $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 +00009308$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9309 CC="$PTHREAD_CC"
9310 fi
cristy55bf91c2010-09-24 00:29:41 +00009311
9312$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9313
cristy3ed852e2009-09-05 21:47:34 +00009314 fi
9315fi
9316
9317# Enable support for OpenMP
9318if test "$have_threads" != 'yes'; then
9319 ac_cv_prog_c_openmp=unsupported
9320fi
9321
9322 OPENMP_CFLAGS=
9323 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009324if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009325 enableval=$enable_openmp;
9326fi
9327
9328 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009330$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009331if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009332 $as_echo_n "(cached) " >&6
9333else
cristy8b350f62009-11-15 23:12:43 +00009334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009336
9337#ifndef _OPENMP
9338 choke me
9339#endif
9340#include <omp.h>
9341int main () { return omp_get_num_threads (); }
9342
9343_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009345 ac_cv_prog_c_openmp='none needed'
9346else
cristy8b350f62009-11-15 23:12:43 +00009347 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009348 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9349 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009350 ac_save_CFLAGS=$CFLAGS
9351 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009354
9355#ifndef _OPENMP
9356 choke me
9357#endif
9358#include <omp.h>
9359int main () { return omp_get_num_threads (); }
9360
9361_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009363 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009364fi
cristy8b350f62009-11-15 23:12:43 +00009365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009367 CFLAGS=$ac_save_CFLAGS
9368 if test "$ac_cv_prog_c_openmp" != unsupported; then
9369 break
9370 fi
9371 done
9372fi
cristy8b350f62009-11-15 23:12:43 +00009373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009375fi
cristy8b350f62009-11-15 23:12:43 +00009376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009377$as_echo "$ac_cv_prog_c_openmp" >&6; }
9378 case $ac_cv_prog_c_openmp in #(
9379 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009380 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009381 *)
cristy8b350f62009-11-15 23:12:43 +00009382 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009383 esac
9384 fi
9385
9386
9387CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9388MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9389
cristy391f1ce2010-09-09 17:23:28 +00009390if test "$enable_openmp" != no; then
9391 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9392 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9393 fi
9394fi
cristy3ed852e2009-09-05 21:47:34 +00009395
cristy736173a2009-09-20 21:18:22 +00009396# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009397
9398
cristy73bd4a52010-10-05 11:24:23 +00009399ac_ext=c
9400ac_cpp='$CPP $CPPFLAGS'
9401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9403ac_compiler_gnu=$ac_cv_c_compiler_gnu
9404
9405ax_pthread_ok=no
9406
9407# We used to check for pthread.h first, but this fails if pthread.h
9408# requires special compiler flags (e.g. on True64 or Sequent).
9409# It gets checked for in the link test anyway.
9410
9411# First of all, check if the user has set any of the PTHREAD_LIBS,
9412# etcetera environment variables, and if threads linking works using
9413# them:
9414if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9415 save_CFLAGS="$CFLAGS"
9416 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9417 save_LIBS="$LIBS"
9418 LIBS="$PTHREAD_LIBS $LIBS"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9420$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h. */
9423
9424/* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9427#ifdef __cplusplus
9428extern "C"
9429#endif
9430char pthread_join ();
9431int
9432main ()
9433{
9434return pthread_join ();
9435 ;
9436 return 0;
9437}
9438_ACEOF
9439if ac_fn_c_try_link "$LINENO"; then :
9440 ax_pthread_ok=yes
9441fi
9442rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9445$as_echo "$ax_pthread_ok" >&6; }
9446 if test x"$ax_pthread_ok" = xno; then
9447 PTHREAD_LIBS=""
9448 PTHREAD_CFLAGS=""
9449 fi
9450 LIBS="$save_LIBS"
9451 CFLAGS="$save_CFLAGS"
9452fi
9453
9454# We must check for the threads library under a number of different
9455# names; the ordering is very important because some systems
9456# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9457# libraries is broken (non-POSIX).
9458
9459# Create a list of thread flags to try. Items starting with a "-" are
9460# C compiler flags, and other items are library names, except for "none"
9461# which indicates that we try without any flags at all, and "pthread-config"
9462# which is a program returning the flags for the Pth emulation library.
9463
cristy18307f12011-12-30 01:20:16 +00009464ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009465
9466# The ordering *is* (sometimes) important. Some notes on the
9467# individual items follow:
9468
9469# pthreads: AIX (must check this before -lpthread)
9470# none: in case threads are in libc; should be tried before -Kthread and
9471# other compiler flags to prevent continual compiler warnings
9472# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9473# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9474# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9475# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9476# -pthreads: Solaris/gcc
9477# -mthreads: Mingw32/gcc, Lynx/gcc
9478# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9479# doesn't hurt to check since this sometimes defines pthreads too;
9480# also defines -D_REENTRANT)
9481# ... -mt is also the pthreads flag for HP/aCC
9482# pthread: Linux, etcetera
9483# --thread-safe: KAI C++
9484# pthread-config: use pthread-config program (for GNU Pth library)
9485
9486case "${host_cpu}-${host_os}" in
9487 *solaris*)
9488
9489 # On Solaris (at least, for some versions), libc contains stubbed
9490 # (non-functional) versions of the pthreads routines, so link-based
9491 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9492 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9493 # a function called by this macro, so we could check for that, but
9494 # who knows whether they'll stub that too in a future libc.) So,
9495 # we'll just look for -pthreads and -lpthread first:
9496
9497 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9498 ;;
9499
cristya316db12011-10-24 00:49:45 +00009500 *-darwin*)
9501 ax_pthread_flags="-pthread $ax_pthread_flags"
9502 ;;
cristy73bd4a52010-10-05 11:24:23 +00009503esac
9504
9505if test x"$ax_pthread_ok" = xno; then
9506for flag in $ax_pthread_flags; do
9507
9508 case $flag in
9509 none)
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9511$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9512 ;;
9513
9514 -*)
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9516$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9517 PTHREAD_CFLAGS="$flag"
9518 ;;
9519
cristya316db12011-10-24 00:49:45 +00009520 pthread-config)
9521 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009522set dummy pthread-config; ac_word=$2
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009525if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009526 $as_echo_n "(cached) " >&6
9527else
9528 if test -n "$ax_pthread_config"; then
9529 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9530else
9531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532for as_dir in $PATH
9533do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
9536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009538 ac_cv_prog_ax_pthread_config="yes"
9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 break 2
9541 fi
9542done
9543 done
9544IFS=$as_save_IFS
9545
9546 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9547fi
9548fi
9549ax_pthread_config=$ac_cv_prog_ax_pthread_config
9550if test -n "$ax_pthread_config"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9552$as_echo "$ax_pthread_config" >&6; }
9553else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555$as_echo "no" >&6; }
9556fi
9557
9558
cristya316db12011-10-24 00:49:45 +00009559 if test x"$ax_pthread_config" = xno; then continue; fi
9560 PTHREAD_CFLAGS="`pthread-config --cflags`"
9561 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9562 ;;
cristy73bd4a52010-10-05 11:24:23 +00009563
9564 *)
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9566$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9567 PTHREAD_LIBS="-l$flag"
9568 ;;
9569 esac
9570
9571 save_LIBS="$LIBS"
9572 save_CFLAGS="$CFLAGS"
9573 LIBS="$PTHREAD_LIBS $LIBS"
9574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9575
9576 # Check for various functions. We must include pthread.h,
9577 # since some functions may be macros. (On the Sequent, we
9578 # need a special flag -Kthread to make this header compile.)
9579 # We check for pthread_join because it is in -lpthread on IRIX
9580 # while pthread_create is in libc. We check for pthread_attr_init
9581 # due to DEC craziness with -lpthreads. We check for
9582 # pthread_cleanup_push because it is one of the few pthread
9583 # functions on Solaris that doesn't have a non-functional libc stub.
9584 # We try pthread_create on general principles.
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009588 static void routine(void *a) { a = 0; }
9589 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009590int
9591main ()
9592{
9593pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009594 pthread_create(&th, 0, start_routine, 0);
9595 pthread_join(th, 0);
9596 pthread_attr_init(&attr);
9597 pthread_cleanup_push(routine, 0);
9598 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 ax_pthread_ok=yes
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608
9609 LIBS="$save_LIBS"
9610 CFLAGS="$save_CFLAGS"
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9613$as_echo "$ax_pthread_ok" >&6; }
9614 if test "x$ax_pthread_ok" = xyes; then
9615 break;
9616 fi
9617
9618 PTHREAD_LIBS=""
9619 PTHREAD_CFLAGS=""
9620done
9621fi
9622
9623# Various other checks:
9624if test "x$ax_pthread_ok" = xyes; then
9625 save_LIBS="$LIBS"
9626 LIBS="$PTHREAD_LIBS $LIBS"
9627 save_CFLAGS="$CFLAGS"
9628 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9629
9630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009632$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009633 attr_name=unknown
9634 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009636/* end confdefs.h. */
9637#include <pthread.h>
9638int
9639main ()
9640{
cristya316db12011-10-24 00:49:45 +00009641int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009642 ;
9643 return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647 attr_name=$attr; break
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009651 done
cristy73bd4a52010-10-05 11:24:23 +00009652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9653$as_echo "$attr_name" >&6; }
9654 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9655
9656cat >>confdefs.h <<_ACEOF
9657#define PTHREAD_CREATE_JOINABLE $attr_name
9658_ACEOF
9659
9660 fi
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9663$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9664 flag=no
9665 case "${host_cpu}-${host_os}" in
9666 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9667 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9668 esac
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9670$as_echo "${flag}" >&6; }
9671 if test "x$flag" != xno; then
9672 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9673 fi
9674
cristya316db12011-10-24 00:49:45 +00009675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9676$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9677if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679else
9680
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h. */
9683
9684 #include <pthread.h>
9685int
9686main ()
9687{
9688int i = PTHREAD_PRIO_INHERIT;
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693if ac_fn_c_try_link "$LINENO"; then :
9694 ax_cv_PTHREAD_PRIO_INHERIT=yes
9695else
9696 ax_cv_PTHREAD_PRIO_INHERIT=no
9697fi
9698rm -f core conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9703$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9704 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9705
9706$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9707
9708fi
9709
cristy73bd4a52010-10-05 11:24:23 +00009710 LIBS="$save_LIBS"
9711 CFLAGS="$save_CFLAGS"
9712
9713 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009714 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009715 for ac_prog in xlc_r cc_r
9716do
9717 # Extract the first word of "$ac_prog", so it can be a program name with args.
9718set dummy $ac_prog; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009721if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009722 $as_echo_n "(cached) " >&6
9723else
9724 if test -n "$PTHREAD_CC"; then
9725 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009734 ac_cv_prog_PTHREAD_CC="$ac_prog"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738done
9739 done
9740IFS=$as_save_IFS
9741
9742fi
9743fi
9744PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9745if test -n "$PTHREAD_CC"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9747$as_echo "$PTHREAD_CC" >&6; }
9748else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753
9754 test -n "$PTHREAD_CC" && break
9755done
9756test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9757
9758 else
9759 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009760 fi
cristy73bd4a52010-10-05 11:24:23 +00009761else
9762 PTHREAD_CC="$CC"
9763fi
9764
9765
9766
9767
9768
9769# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9770if test x"$ax_pthread_ok" = xyes; then
9771
9772$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9773
9774 :
9775else
9776 ax_pthread_ok=no
9777
9778fi
9779ac_ext=c
9780ac_cpp='$CPP $CPPFLAGS'
9781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784
9785
9786
9787# Check whether --enable-opencl was given.
9788if test "${enable_opencl+set}" = set; then :
9789 enableval=$enable_opencl; disable_opencl=$enableval
9790else
9791 disable_opencl='yes'
9792fi
9793
9794
9795if test "$disable_opencl" = 'yes'; then
9796 ac_ext=c
9797ac_cpp='$CPP $CPPFLAGS'
9798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800ac_compiler_gnu=$ac_cv_c_compiler_gnu
9801
cristy568c2d42012-07-27 01:41:20 +00009802 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009803 if test X$ax_compiler_ms = Xno; then :
9804 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9805fi
9806
9807 ax_save_CPPFLAGS=$CPPFLAGS
9808 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9809 for ac_header in CL/cl.h OpenCL/cl.h
9810do :
9811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009814 cat >>confdefs.h <<_ACEOF
9815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9816_ACEOF
9817
9818fi
9819
9820done
9821
9822 CPPFLAGS=$ax_save_CPPFLAGS
9823
9824 for ac_header in windows.h
9825do :
9826 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009827if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009828 cat >>confdefs.h <<_ACEOF
9829#define HAVE_WINDOWS_H 1
9830_ACEOF
9831
9832fi
9833
9834done
9835
9836
9837
9838
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9840$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009841if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009842 $as_echo_n "(cached) " >&6
9843else
9844 ax_cv_check_cl_libcl=no
9845 case $host_cpu in
9846 x86_64) ax_check_cl_libdir=lib64 ;;
9847 *) ax_check_cl_libdir=lib ;;
9848 esac
9849 ax_save_CPPFLAGS=$CPPFLAGS
9850 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9851 ax_save_LIBS=$LIBS
9852 LIBS=""
9853 ax_check_libs="-lOpenCL -lCL -lclparser"
9854 for ax_lib in $ax_check_libs; do
9855 if test X$ax_compiler_ms = Xyes; then :
9856 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9857else
9858 ax_try_lib=$ax_lib
9859fi
9860 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h. */
9863
9864 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9865 # include <windows.h>
9866 # endif
9867 # ifdef HAVE_CL_CL_H
9868 # include <CL/cl.h>
9869 # elif defined(HAVE_OPENCL_CL_H)
9870 # include <OpenCL/cl.h>
9871 # else
9872 # error no CL.h
9873 # endif
9874int
9875main ()
9876{
9877clCreateContextFromType(0,0,0,0,0)
9878 ;
9879 return 0;
9880}
9881_ACEOF
9882if ac_fn_c_try_link "$LINENO"; then :
9883 ax_cv_check_cl_libcl=$ax_try_lib; break
9884else
9885 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"
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h. */
9888
9889 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9890 # include <windows.h>
9891 # endif
9892 # ifdef HAVE_CL_CL_H
9893 # include <CL/cl.h>
9894 # elif defined(HAVE_OPENCL_CL_H)
9895 # include <OpenCL/cl.h>
9896 # else
9897 # error no CL.h
9898 # endif
9899int
9900main ()
9901{
9902clCreateContextFromType(0,0,0,0,0)
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907if ac_fn_c_try_link "$LINENO"; then :
9908 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9909else
cristy78c5a0c2010-12-04 20:00:59 +00009910 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 +00009911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h. */
9913
9914 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9915 # include <windows.h>
9916 # endif
9917 # ifdef HAVE_CL_CL_H
9918 # include <CL/cl.h>
9919 # elif defined(HAVE_OPENCL_CL_H)
9920 # include <OpenCL/cl.h>
9921 # else
9922 # error no CL.h
9923 # endif
9924int
9925main ()
9926{
9927clCreateContextFromType(0,0,0,0,0)
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932if ac_fn_c_try_link "$LINENO"; then :
9933 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9934fi
9935rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937fi
9938rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940fi
9941rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 done
9944
cristyc3f8b8e2011-12-22 14:55:16 +00009945 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009946 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h. */
9949
9950 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9951 # include <windows.h>
9952 # endif
9953 # ifdef HAVE_CL_CL_H
9954 # include <CL/cl.h>
9955 # elif defined(HAVE_OPENCL_CL_H)
9956 # include <OpenCL/cl.h>
9957 # else
9958 # error no CL.h
9959 # endif
9960int
9961main ()
9962{
9963clCreateContextFromType(0,0,0,0,0)
9964 ;
9965 return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969 ax_cv_check_cl_libcl=$LIBS
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973fi
9974
9975 LIBS=$ax_save_LIBS
9976 CPPFLAGS=$ax_save_CPPFLAGS
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9979$as_echo "$ax_cv_check_cl_libcl" >&6; }
9980
9981 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9982 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9983else
9984 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9985$as_echo "#define _OPENCL 1" >>confdefs.h
9986
9987fi
9988 ac_ext=c
9989ac_cpp='$CPP $CPPFLAGS'
9990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9992ac_compiler_gnu=$ac_cv_c_compiler_gnu
9993
9994fi
9995
9996
9997
9998
cristyc7083c12009-10-14 03:16:55 +00009999CFLAGS="$CL_CFLAGS $CFLAGS"
10000LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010001
cristy391f1ce2010-09-09 17:23:28 +000010002if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010003 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010004 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10005 fi
cristyfd9dcd42010-08-08 18:07:02 +000010006fi
cristy2e8b51d2009-10-17 18:26:15 +000010007
cristy3ed852e2009-09-05 21:47:34 +000010008########
10009#
10010# Check for large file support
10011#
10012########
10013# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010014if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010015 enableval=$enable_largefile;
10016fi
10017
10018if test "$enable_largefile" != no; then
10019
cristy8b350f62009-11-15 23:12:43 +000010020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010021$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010022if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010023 $as_echo_n "(cached) " >&6
10024else
10025 ac_cv_sys_largefile_CC=no
10026 if test "$GCC" != yes; then
10027 ac_save_CC=$CC
10028 while :; do
10029 # IRIX 6.2 and later do not support large files by default,
10030 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010032/* end confdefs.h. */
10033#include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036 since some C++ compilers masquerading as C compilers
10037 incorrectly reject 9223372036854775807. */
10038#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040 && LARGE_OFF_T % 2147483647 == 1)
10041 ? 1 : -1];
10042int
10043main ()
10044{
10045
10046 ;
10047 return 0;
10048}
10049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010050 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010051 break
cristy3ed852e2009-09-05 21:47:34 +000010052fi
cristy3ed852e2009-09-05 21:47:34 +000010053rm -f core conftest.err conftest.$ac_objext
10054 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010055 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010056 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010057fi
cristy3ed852e2009-09-05 21:47:34 +000010058rm -f core conftest.err conftest.$ac_objext
10059 break
10060 done
10061 CC=$ac_save_CC
10062 rm -f conftest.$ac_ext
10063 fi
10064fi
cristy8b350f62009-11-15 23:12:43 +000010065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010066$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10067 if test "$ac_cv_sys_largefile_CC" != no; then
10068 CC=$CC$ac_cv_sys_largefile_CC
10069 fi
10070
cristy8b350f62009-11-15 23:12:43 +000010071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010072$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010073if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010074 $as_echo_n "(cached) " >&6
10075else
10076 while :; do
cristy8b350f62009-11-15 23:12:43 +000010077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010078/* end confdefs.h. */
10079#include <sys/types.h>
10080 /* Check that off_t can represent 2**63 - 1 correctly.
10081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10082 since some C++ compilers masquerading as C compilers
10083 incorrectly reject 9223372036854775807. */
10084#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10086 && LARGE_OFF_T % 2147483647 == 1)
10087 ? 1 : -1];
10088int
10089main ()
10090{
10091
10092 ;
10093 return 0;
10094}
10095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010096if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010097 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010098fi
cristy3ed852e2009-09-05 21:47:34 +000010099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010101/* end confdefs.h. */
10102#define _FILE_OFFSET_BITS 64
10103#include <sys/types.h>
10104 /* Check that off_t can represent 2**63 - 1 correctly.
10105 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10106 since some C++ compilers masquerading as C compilers
10107 incorrectly reject 9223372036854775807. */
10108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10109 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10110 && LARGE_OFF_T % 2147483647 == 1)
10111 ? 1 : -1];
10112int
10113main ()
10114{
10115
10116 ;
10117 return 0;
10118}
10119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010120if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010121 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010122fi
cristy3ed852e2009-09-05 21:47:34 +000010123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124 ac_cv_sys_file_offset_bits=unknown
10125 break
10126done
10127fi
cristy8b350f62009-11-15 23:12:43 +000010128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010129$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10130case $ac_cv_sys_file_offset_bits in #(
10131 no | unknown) ;;
10132 *)
10133cat >>confdefs.h <<_ACEOF
10134#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10135_ACEOF
10136;;
10137esac
10138rm -rf conftest*
10139 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010141$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010142if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010143 $as_echo_n "(cached) " >&6
10144else
10145 while :; do
cristy8b350f62009-11-15 23:12:43 +000010146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010147/* end confdefs.h. */
10148#include <sys/types.h>
10149 /* Check that off_t can represent 2**63 - 1 correctly.
10150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10151 since some C++ compilers masquerading as C compilers
10152 incorrectly reject 9223372036854775807. */
10153#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10155 && LARGE_OFF_T % 2147483647 == 1)
10156 ? 1 : -1];
10157int
10158main ()
10159{
10160
10161 ;
10162 return 0;
10163}
10164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010165if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010166 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010167fi
cristy3ed852e2009-09-05 21:47:34 +000010168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010170/* end confdefs.h. */
10171#define _LARGE_FILES 1
10172#include <sys/types.h>
10173 /* Check that off_t can represent 2**63 - 1 correctly.
10174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10175 since some C++ compilers masquerading as C compilers
10176 incorrectly reject 9223372036854775807. */
10177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10179 && LARGE_OFF_T % 2147483647 == 1)
10180 ? 1 : -1];
10181int
10182main ()
10183{
10184
10185 ;
10186 return 0;
10187}
10188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010189if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010190 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010191fi
cristy3ed852e2009-09-05 21:47:34 +000010192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 ac_cv_sys_large_files=unknown
10194 break
10195done
10196fi
cristy8b350f62009-11-15 23:12:43 +000010197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010198$as_echo "$ac_cv_sys_large_files" >&6; }
10199case $ac_cv_sys_large_files in #(
10200 no | unknown) ;;
10201 *)
10202cat >>confdefs.h <<_ACEOF
10203#define _LARGE_FILES $ac_cv_sys_large_files
10204_ACEOF
10205;;
10206esac
10207rm -rf conftest*
10208 fi
cristy14fefe52012-05-21 00:59:18 +000010209
10210
cristy3ed852e2009-09-05 21:47:34 +000010211fi
10212
cristy8b350f62009-11-15 23:12:43 +000010213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010214$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010215if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010216 $as_echo_n "(cached) " >&6
10217else
10218 while :; do
cristy8b350f62009-11-15 23:12:43 +000010219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010220/* end confdefs.h. */
10221#include <sys/types.h> /* for off_t */
10222 #include <stdio.h>
10223int
10224main ()
10225{
10226int (*fp) (FILE *, off_t, int) = fseeko;
10227 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10228 ;
10229 return 0;
10230}
10231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010233 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010234fi
cristy8b350f62009-11-15 23:12:43 +000010235rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010238/* end confdefs.h. */
10239#define _LARGEFILE_SOURCE 1
10240#include <sys/types.h> /* for off_t */
10241 #include <stdio.h>
10242int
10243main ()
10244{
10245int (*fp) (FILE *, off_t, int) = fseeko;
10246 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10247 ;
10248 return 0;
10249}
10250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010252 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010253fi
cristy8b350f62009-11-15 23:12:43 +000010254rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010256 ac_cv_sys_largefile_source=unknown
10257 break
10258done
10259fi
cristy8b350f62009-11-15 23:12:43 +000010260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010261$as_echo "$ac_cv_sys_largefile_source" >&6; }
10262case $ac_cv_sys_largefile_source in #(
10263 no | unknown) ;;
10264 *)
10265cat >>confdefs.h <<_ACEOF
10266#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10267_ACEOF
10268;;
10269esac
10270rm -rf conftest*
10271
10272# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10273# in glibc 2.1.3, but that breaks too many other things.
10274# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10275if test $ac_cv_sys_largefile_source != unknown; then
10276
cristy8b350f62009-11-15 23:12:43 +000010277$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010278
10279fi
10280
10281LFS_CPPFLAGS=''
10282if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010283 case $ac_cv_sys_file_offset_bits in
10284 no)
10285 # nothing to do here as the host supports LFS fine
10286 ;;
10287 unknown)
cristy8b350f62009-11-15 23:12:43 +000010288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010290 if test "$cross_compiling" = yes; then :
10291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010293as_fn_error $? "cannot run test program while cross compiling
10294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010295else
cristy8b350f62009-11-15 23:12:43 +000010296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010298#include <unistd.h>
10299 main () {
10300 exit(!(sizeof(off_t) == 8));
10301 }
cristyda16f162011-02-19 23:52:17 +000010302int
10303main ()
10304{
10305
10306 ;
10307 return 0;
10308}
cristy3ed852e2009-09-05 21:47:34 +000010309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010310if ac_fn_c_try_run "$LINENO"; then :
10311 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010312
cristy09b53e12011-10-14 12:47:22 +000010313 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10314$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010315else
cristy09b53e12011-10-14 12:47:22 +000010316 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10317$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010318fi
cristy8b350f62009-11-15 23:12:43 +000010319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010321fi
10322
cristyc1e0cc12011-09-21 16:41:16 +000010323 ;;
10324 *)
10325 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10326 ;;
10327 esac
cristy3ed852e2009-09-05 21:47:34 +000010328 if test "$ac_cv_sys_large_files" != 'no'; then
10329 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10330 fi
10331 if test "$ac_cv_sys_largefile_source" != 'no'; then
10332 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10333 fi
10334fi
10335
10336
cristy3ed852e2009-09-05 21:47:34 +000010337# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010338enable_dlopen=yes
10339
10340
10341
10342case `pwd` in
10343 *\ * | *\ *)
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10345$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10346esac
10347
10348
10349
cristy99bd5232011-12-07 14:38:20 +000010350macro_version='2.4.2'
10351macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365ltmain="$ac_aux_dir/ltmain.sh"
10366
cristy0c60a692010-11-04 01:09:47 +000010367# Backslashify metacharacters that are still active within
10368# double-quoted strings.
10369sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10370
10371# Same as above, but do not quote variable references.
10372double_quote_subst='s/\(["`\\]\)/\\\1/g'
10373
10374# Sed substitution to delay expansion of an escaped shell variable in a
10375# double_quote_subst'ed string.
10376delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10377
10378# Sed substitution to delay expansion of an escaped single quote.
10379delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10380
10381# Sed substitution to avoid accidental globbing in evaled expressions
10382no_glob_subst='s/\*/\\\*/g'
10383
cristy73bd4a52010-10-05 11:24:23 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10385$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010386if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010387 $as_echo_n "(cached) " >&6
10388else
10389 if test -n "$NM"; then
10390 # Let the user override the test.
10391 lt_cv_path_NM="$NM"
10392else
10393 lt_nm_to_check="${ac_tool_prefix}nm"
10394 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10395 lt_nm_to_check="$lt_nm_to_check nm"
10396 fi
10397 for lt_tmp_nm in $lt_nm_to_check; do
10398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10399 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10400 IFS="$lt_save_ifs"
10401 test -z "$ac_dir" && ac_dir=.
10402 tmp_nm="$ac_dir/$lt_tmp_nm"
10403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10404 # Check to see if the nm accepts a BSD-compat flag.
10405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10406 # nm: unknown option "B" ignored
10407 # Tru64's nm complains that /dev/null is an invalid object file
10408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10409 */dev/null* | *'Invalid file or object type'*)
10410 lt_cv_path_NM="$tmp_nm -B"
10411 break
10412 ;;
10413 *)
10414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10415 */dev/null*)
10416 lt_cv_path_NM="$tmp_nm -p"
10417 break
10418 ;;
10419 *)
10420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10421 continue # so that we can try to find one that supports BSD flags
10422 ;;
10423 esac
10424 ;;
10425 esac
10426 fi
10427 done
10428 IFS="$lt_save_ifs"
10429 done
10430 : ${lt_cv_path_NM=no}
10431fi
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10434$as_echo "$lt_cv_path_NM" >&6; }
10435if test "$lt_cv_path_NM" != "no"; then
10436 NM="$lt_cv_path_NM"
10437else
10438 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010439 if test -n "$DUMPBIN"; then :
10440 # Let the user override the test.
10441 else
10442 if test -n "$ac_tool_prefix"; then
10443 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010444 do
10445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10446set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010449if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010450 $as_echo_n "(cached) " >&6
10451else
10452 if test -n "$DUMPBIN"; then
10453 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010462 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10465 fi
10466done
10467 done
10468IFS=$as_save_IFS
10469
10470fi
10471fi
10472DUMPBIN=$ac_cv_prog_DUMPBIN
10473if test -n "$DUMPBIN"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10475$as_echo "$DUMPBIN" >&6; }
10476else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
10479fi
10480
10481
10482 test -n "$DUMPBIN" && break
10483 done
10484fi
10485if test -z "$DUMPBIN"; then
10486 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010487 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010488do
10489 # Extract the first word of "$ac_prog", so it can be a program name with args.
10490set dummy $ac_prog; ac_word=$2
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010493if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010494 $as_echo_n "(cached) " >&6
10495else
10496 if test -n "$ac_ct_DUMPBIN"; then
10497 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010506 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511 done
10512IFS=$as_save_IFS
10513
10514fi
10515fi
10516ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10517if test -n "$ac_ct_DUMPBIN"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10519$as_echo "$ac_ct_DUMPBIN" >&6; }
10520else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525
10526 test -n "$ac_ct_DUMPBIN" && break
10527done
10528
10529 if test "x$ac_ct_DUMPBIN" = x; then
10530 DUMPBIN=":"
10531 else
10532 case $cross_compiling:$ac_tool_warned in
10533yes:)
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10536ac_tool_warned=yes ;;
10537esac
10538 DUMPBIN=$ac_ct_DUMPBIN
10539 fi
10540fi
10541
cristy0c60a692010-11-04 01:09:47 +000010542 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10543 *COFF*)
10544 DUMPBIN="$DUMPBIN -symbols"
10545 ;;
10546 *)
10547 DUMPBIN=:
10548 ;;
10549 esac
10550 fi
cristy73bd4a52010-10-05 11:24:23 +000010551
10552 if test "$DUMPBIN" != ":"; then
10553 NM="$DUMPBIN"
10554 fi
10555fi
10556test -z "$NM" && NM=nm
10557
10558
10559
10560
10561
10562
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10564$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010565if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010566 $as_echo_n "(cached) " >&6
10567else
10568 lt_cv_nm_interface="BSD nm"
10569 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010570 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010571 (eval "$ac_compile" 2>conftest.err)
10572 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010573 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010574 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10575 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010576 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010577 cat conftest.out >&5
10578 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10579 lt_cv_nm_interface="MS dumpbin"
10580 fi
10581 rm -f conftest*
10582fi
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10584$as_echo "$lt_cv_nm_interface" >&6; }
10585
10586# find the maximum length of command line arguments
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10588$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010589if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010590 $as_echo_n "(cached) " >&6
10591else
10592 i=0
10593 teststring="ABCD"
10594
10595 case $build_os in
10596 msdosdjgpp*)
10597 # On DJGPP, this test can blow up pretty badly due to problems in libc
10598 # (any single argument exceeding 2000 bytes causes a buffer overrun
10599 # during glob expansion). Even if it were fixed, the result of this
10600 # check would be larger than it should be.
10601 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10602 ;;
10603
10604 gnu*)
10605 # Under GNU Hurd, this test is not required because there is
10606 # no limit to the length of command line arguments.
10607 # Libtool will interpret -1 as no limit whatsoever
10608 lt_cv_sys_max_cmd_len=-1;
10609 ;;
10610
10611 cygwin* | mingw* | cegcc*)
10612 # On Win9x/ME, this test blows up -- it succeeds, but takes
10613 # about 5 minutes as the teststring grows exponentially.
10614 # Worse, since 9x/ME are not pre-emptively multitasking,
10615 # you end up with a "frozen" computer, even though with patience
10616 # the test eventually succeeds (with a max line length of 256k).
10617 # Instead, let's just punt: use the minimum linelength reported by
10618 # all of the supported platforms: 8192 (on NT/2K/XP).
10619 lt_cv_sys_max_cmd_len=8192;
10620 ;;
10621
cristy0c60a692010-11-04 01:09:47 +000010622 mint*)
10623 # On MiNT this can take a long time and run out of memory.
10624 lt_cv_sys_max_cmd_len=8192;
10625 ;;
10626
cristy73bd4a52010-10-05 11:24:23 +000010627 amigaos*)
10628 # On AmigaOS with pdksh, this test takes hours, literally.
10629 # So we just punt and use a minimum line length of 8192.
10630 lt_cv_sys_max_cmd_len=8192;
10631 ;;
10632
10633 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10634 # This has been around since 386BSD, at least. Likely further.
10635 if test -x /sbin/sysctl; then
10636 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10637 elif test -x /usr/sbin/sysctl; then
10638 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10639 else
10640 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10641 fi
10642 # And add a safety zone
10643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10645 ;;
10646
10647 interix*)
10648 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10649 lt_cv_sys_max_cmd_len=196608
10650 ;;
10651
cristy99bd5232011-12-07 14:38:20 +000010652 os2*)
10653 # The test takes a long time on OS/2.
10654 lt_cv_sys_max_cmd_len=8192
10655 ;;
10656
cristy73bd4a52010-10-05 11:24:23 +000010657 osf*)
10658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10660 # nice to cause kernel panics so lets avoid the loop below.
10661 # First set a reasonable default.
10662 lt_cv_sys_max_cmd_len=16384
10663 #
10664 if test -x /sbin/sysconfig; then
10665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10667 esac
10668 fi
10669 ;;
10670 sco3.2v5*)
10671 lt_cv_sys_max_cmd_len=102400
10672 ;;
10673 sysv5* | sco5v6* | sysv4.2uw2*)
10674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10675 if test -n "$kargmax"; then
10676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10677 else
10678 lt_cv_sys_max_cmd_len=32768
10679 fi
10680 ;;
10681 *)
10682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10683 if test -n "$lt_cv_sys_max_cmd_len"; then
10684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10686 else
10687 # Make teststring a little bigger before we do anything with it.
10688 # a 1K string should be a reasonable start.
10689 for i in 1 2 3 4 5 6 7 8 ; do
10690 teststring=$teststring$teststring
10691 done
10692 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10693 # If test is not a shell built-in, we'll probably end up computing a
10694 # maximum length that is only half of the actual maximum length, but
10695 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010696 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010697 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010698 test $i != 17 # 1/2 MB should be enough
10699 do
10700 i=`expr $i + 1`
10701 teststring=$teststring$teststring
10702 done
10703 # Only check the string length outside the loop.
10704 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10705 teststring=
10706 # Add a significant safety factor because C++ compilers can tack on
10707 # massive amounts of additional arguments before passing them to the
10708 # linker. It appears as though 1/2 is a usable value.
10709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10710 fi
10711 ;;
10712 esac
10713
10714fi
10715
10716if test -n $lt_cv_sys_max_cmd_len ; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10718$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10719else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10721$as_echo "none" >&6; }
10722fi
10723max_cmd_len=$lt_cv_sys_max_cmd_len
10724
10725
10726
10727
10728
10729
10730: ${CP="cp -f"}
10731: ${MV="mv -f"}
10732: ${RM="rm -f"}
10733
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10735$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10736# Try some XSI features
10737xsi_shell=no
10738( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010739 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10740 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010741 && eval 'test $(( 1 + 1 )) -eq 2 \
10742 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10743 && xsi_shell=yes
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10745$as_echo "$xsi_shell" >&6; }
10746
10747
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10749$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10750lt_shell_append=no
10751( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10752 >/dev/null 2>&1 \
10753 && lt_shell_append=yes
10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10755$as_echo "$lt_shell_append" >&6; }
10756
10757
10758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10759 lt_unset=unset
10760else
10761 lt_unset=false
10762fi
10763
10764
10765
10766
10767
10768# test EBCDIC or ASCII
10769case `echo X|tr X '\101'` in
10770 A) # ASCII based system
10771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10772 lt_SP2NL='tr \040 \012'
10773 lt_NL2SP='tr \015\012 \040\040'
10774 ;;
10775 *) # EBCDIC based system
10776 lt_SP2NL='tr \100 \n'
10777 lt_NL2SP='tr \r\n \100\100'
10778 ;;
10779esac
10780
10781
10782
10783
10784
10785
10786
10787
10788
cristyda16f162011-02-19 23:52:17 +000010789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10790$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10791if ${lt_cv_to_host_file_cmd+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793else
10794 case $host in
10795 *-*-mingw* )
10796 case $build in
10797 *-*-mingw* ) # actually msys
10798 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10799 ;;
10800 *-*-cygwin* )
10801 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10802 ;;
10803 * ) # otherwise, assume *nix
10804 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10805 ;;
10806 esac
10807 ;;
10808 *-*-cygwin* )
10809 case $build in
10810 *-*-mingw* ) # actually msys
10811 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10812 ;;
10813 *-*-cygwin* )
10814 lt_cv_to_host_file_cmd=func_convert_file_noop
10815 ;;
10816 * ) # otherwise, assume *nix
10817 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10818 ;;
10819 esac
10820 ;;
10821 * ) # unhandled hosts (and "normal" native builds)
10822 lt_cv_to_host_file_cmd=func_convert_file_noop
10823 ;;
10824esac
10825
10826fi
10827
10828to_host_file_cmd=$lt_cv_to_host_file_cmd
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10830$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10831
10832
10833
10834
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10837$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10838if ${lt_cv_to_tool_file_cmd+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840else
10841 #assume ordinary cross tools, or native build.
10842lt_cv_to_tool_file_cmd=func_convert_file_noop
10843case $host in
10844 *-*-mingw* )
10845 case $build in
10846 *-*-mingw* ) # actually msys
10847 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10848 ;;
10849 esac
10850 ;;
10851esac
10852
10853fi
10854
10855to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10857$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10858
10859
10860
10861
10862
cristy73bd4a52010-10-05 11:24:23 +000010863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10864$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 lt_cv_ld_reload_flag='-r'
10869fi
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10871$as_echo "$lt_cv_ld_reload_flag" >&6; }
10872reload_flag=$lt_cv_ld_reload_flag
10873case $reload_flag in
10874"" | " "*) ;;
10875*) reload_flag=" $reload_flag" ;;
10876esac
10877reload_cmds='$LD$reload_flag -o $output$reload_objs'
10878case $host_os in
cristyda16f162011-02-19 23:52:17 +000010879 cygwin* | mingw* | pw32* | cegcc*)
10880 if test "$GCC" != yes; then
10881 reload_cmds=false
10882 fi
10883 ;;
cristy73bd4a52010-10-05 11:24:23 +000010884 darwin*)
10885 if test "$GCC" = yes; then
10886 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10887 else
10888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10889 fi
10890 ;;
10891esac
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901if test -n "$ac_tool_prefix"; then
10902 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10903set dummy ${ac_tool_prefix}objdump; ac_word=$2
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010906if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010907 $as_echo_n "(cached) " >&6
10908else
10909 if test -n "$OBJDUMP"; then
10910 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923done
10924 done
10925IFS=$as_save_IFS
10926
10927fi
10928fi
10929OBJDUMP=$ac_cv_prog_OBJDUMP
10930if test -n "$OBJDUMP"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10932$as_echo "$OBJDUMP" >&6; }
10933else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
10936fi
10937
10938
10939fi
10940if test -z "$ac_cv_prog_OBJDUMP"; then
10941 ac_ct_OBJDUMP=$OBJDUMP
10942 # Extract the first word of "objdump", so it can be a program name with args.
10943set dummy objdump; ac_word=$2
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010946if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010947 $as_echo_n "(cached) " >&6
10948else
10949 if test -n "$ac_ct_OBJDUMP"; then
10950 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10951else
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010959 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964 done
10965IFS=$as_save_IFS
10966
10967fi
10968fi
10969ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10970if test -n "$ac_ct_OBJDUMP"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10972$as_echo "$ac_ct_OBJDUMP" >&6; }
10973else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975$as_echo "no" >&6; }
10976fi
10977
10978 if test "x$ac_ct_OBJDUMP" = x; then
10979 OBJDUMP="false"
10980 else
10981 case $cross_compiling:$ac_tool_warned in
10982yes:)
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10985ac_tool_warned=yes ;;
10986esac
10987 OBJDUMP=$ac_ct_OBJDUMP
10988 fi
10989else
10990 OBJDUMP="$ac_cv_prog_OBJDUMP"
10991fi
10992
10993test -z "$OBJDUMP" && OBJDUMP=objdump
10994
10995
10996
10997
10998
10999
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11001$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011002if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011003 $as_echo_n "(cached) " >&6
11004else
11005 lt_cv_file_magic_cmd='$MAGIC_CMD'
11006lt_cv_file_magic_test_file=
11007lt_cv_deplibs_check_method='unknown'
11008# Need to set the preceding variable on all platforms that support
11009# interlibrary dependencies.
11010# 'none' -- dependencies not supported.
11011# `unknown' -- same as none, but documents that we really don't know.
11012# 'pass_all' -- all dependencies passed with no checks.
11013# 'test_compile' -- check by making test program.
11014# 'file_magic [[regex]]' -- check by looking for files in library path
11015# which responds to the $file_magic_cmd with a given extended regex.
11016# If you have `file' or equivalent on your system and you're not sure
11017# whether `pass_all' will *always* work, you probably want this one.
11018
11019case $host_os in
11020aix[4-9]*)
11021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
11024beos*)
11025 lt_cv_deplibs_check_method=pass_all
11026 ;;
11027
11028bsdi[45]*)
11029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11030 lt_cv_file_magic_cmd='/usr/bin/file -L'
11031 lt_cv_file_magic_test_file=/shlib/libc.so
11032 ;;
11033
11034cygwin*)
11035 # func_win32_libid is a shell function defined in ltmain.sh
11036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11037 lt_cv_file_magic_cmd='func_win32_libid'
11038 ;;
11039
11040mingw* | pw32*)
11041 # Base MSYS/MinGW do not provide the 'file' command needed by
11042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11043 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11047 lt_cv_file_magic_cmd='func_win32_libid'
11048 else
cristy0c60a692010-11-04 01:09:47 +000011049 # Keep this pattern in sync with the one in func_win32_libid.
11050 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 +000011051 lt_cv_file_magic_cmd='$OBJDUMP -f'
11052 fi
11053 ;;
11054
cristy0c60a692010-11-04 01:09:47 +000011055cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011056 # use the weaker test based on 'objdump'. See mingw*.
11057 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11058 lt_cv_file_magic_cmd='$OBJDUMP -f'
11059 ;;
11060
11061darwin* | rhapsody*)
11062 lt_cv_deplibs_check_method=pass_all
11063 ;;
11064
11065freebsd* | dragonfly*)
11066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11067 case $host_cpu in
11068 i*86 )
11069 # Not sure whether the presence of OpenBSD here was a mistake.
11070 # Let's accept both of them until this is cleared up.
11071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11072 lt_cv_file_magic_cmd=/usr/bin/file
11073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11074 ;;
11075 esac
11076 else
11077 lt_cv_deplibs_check_method=pass_all
11078 fi
11079 ;;
11080
11081gnu*)
11082 lt_cv_deplibs_check_method=pass_all
11083 ;;
11084
cristy0c60a692010-11-04 01:09:47 +000011085haiku*)
11086 lt_cv_deplibs_check_method=pass_all
11087 ;;
11088
cristy73bd4a52010-10-05 11:24:23 +000011089hpux10.20* | hpux11*)
11090 lt_cv_file_magic_cmd=/usr/bin/file
11091 case $host_cpu in
11092 ia64*)
11093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11095 ;;
11096 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011097 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 +000011098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11099 ;;
11100 *)
cristy0c60a692010-11-04 01:09:47 +000011101 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 +000011102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11103 ;;
11104 esac
11105 ;;
11106
11107interix[3-9]*)
11108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11110 ;;
11111
11112irix5* | irix6* | nonstopux*)
11113 case $LD in
11114 *-32|*"-32 ") libmagic=32-bit;;
11115 *-n32|*"-n32 ") libmagic=N32;;
11116 *-64|*"-64 ") libmagic=64-bit;;
11117 *) libmagic=never-match;;
11118 esac
11119 lt_cv_deplibs_check_method=pass_all
11120 ;;
11121
cristy99bd5232011-12-07 14:38:20 +000011122# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011123linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011124 lt_cv_deplibs_check_method=pass_all
11125 ;;
11126
11127netbsd*)
11128 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11130 else
11131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11132 fi
11133 ;;
11134
11135newos6*)
11136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11137 lt_cv_file_magic_cmd=/usr/bin/file
11138 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11139 ;;
11140
11141*nto* | *qnx*)
11142 lt_cv_deplibs_check_method=pass_all
11143 ;;
11144
11145openbsd*)
11146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11148 else
11149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11150 fi
11151 ;;
11152
11153osf3* | osf4* | osf5*)
11154 lt_cv_deplibs_check_method=pass_all
11155 ;;
11156
11157rdos*)
11158 lt_cv_deplibs_check_method=pass_all
11159 ;;
11160
11161solaris*)
11162 lt_cv_deplibs_check_method=pass_all
11163 ;;
11164
11165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 lt_cv_deplibs_check_method=pass_all
11167 ;;
11168
11169sysv4 | sysv4.3*)
11170 case $host_vendor in
11171 motorola)
11172 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]'
11173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11174 ;;
11175 ncr)
11176 lt_cv_deplibs_check_method=pass_all
11177 ;;
11178 sequent)
11179 lt_cv_file_magic_cmd='/bin/file'
11180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11181 ;;
11182 sni)
11183 lt_cv_file_magic_cmd='/bin/file'
11184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11185 lt_cv_file_magic_test_file=/lib/libc.so
11186 ;;
11187 siemens)
11188 lt_cv_deplibs_check_method=pass_all
11189 ;;
11190 pc)
11191 lt_cv_deplibs_check_method=pass_all
11192 ;;
11193 esac
11194 ;;
11195
11196tpf*)
11197 lt_cv_deplibs_check_method=pass_all
11198 ;;
11199esac
11200
11201fi
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11203$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011204
11205file_magic_glob=
11206want_nocaseglob=no
11207if test "$build" = "$host"; then
11208 case $host_os in
11209 mingw* | pw32*)
11210 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11211 want_nocaseglob=yes
11212 else
11213 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11214 fi
11215 ;;
11216 esac
11217fi
11218
cristy73bd4a52010-10-05 11:24:23 +000011219file_magic_cmd=$lt_cv_file_magic_cmd
11220deplibs_check_method=$lt_cv_deplibs_check_method
11221test -z "$deplibs_check_method" && deplibs_check_method=unknown
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
cristyda16f162011-02-19 23:52:17 +000011234
11235
11236
11237
11238
11239
11240
11241
11242
11243
cristy73bd4a52010-10-05 11:24:23 +000011244if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11246set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011249if ${ac_cv_prog_DLLTOOL+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$DLLTOOL"; then
11253 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011262 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267 done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272DLLTOOL=$ac_cv_prog_DLLTOOL
11273if test -n "$DLLTOOL"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11275$as_echo "$DLLTOOL" >&6; }
11276else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282fi
11283if test -z "$ac_cv_prog_DLLTOOL"; then
11284 ac_ct_DLLTOOL=$DLLTOOL
11285 # Extract the first word of "dlltool", so it can be a program name with args.
11286set dummy dlltool; ac_word=$2
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291else
11292 if test -n "$ac_ct_DLLTOOL"; then
11293 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011302 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307 done
11308IFS=$as_save_IFS
11309
11310fi
11311fi
11312ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11313if test -n "$ac_ct_DLLTOOL"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11315$as_echo "$ac_ct_DLLTOOL" >&6; }
11316else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319fi
11320
11321 if test "x$ac_ct_DLLTOOL" = x; then
11322 DLLTOOL="false"
11323 else
11324 case $cross_compiling:$ac_tool_warned in
11325yes:)
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328ac_tool_warned=yes ;;
11329esac
11330 DLLTOOL=$ac_ct_DLLTOOL
11331 fi
11332else
11333 DLLTOOL="$ac_cv_prog_DLLTOOL"
11334fi
11335
11336test -z "$DLLTOOL" && DLLTOOL=dlltool
11337
11338
11339
11340
11341
11342
11343
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11345$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11346if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348else
11349 lt_cv_sharedlib_from_linklib_cmd='unknown'
11350
11351case $host_os in
11352cygwin* | mingw* | pw32* | cegcc*)
11353 # two different shell functions defined in ltmain.sh
11354 # decide which to use based on capabilities of $DLLTOOL
11355 case `$DLLTOOL --help 2>&1` in
11356 *--identify-strict*)
11357 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11358 ;;
11359 *)
11360 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11361 ;;
11362 esac
11363 ;;
11364*)
11365 # fallback: assume linklib IS sharedlib
11366 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11367 ;;
11368esac
11369
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11372$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11373sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11374test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11375
11376
11377
11378
11379
11380
11381
11382if test -n "$ac_tool_prefix"; then
11383 for ac_prog in ar
11384 do
11385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011390 $as_echo_n "(cached) " >&6
11391else
11392 if test -n "$AR"; then
11393 ac_cv_prog_AR="$AR" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011402 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407 done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412AR=$ac_cv_prog_AR
11413if test -n "$AR"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11415$as_echo "$AR" >&6; }
11416else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
cristyda16f162011-02-19 23:52:17 +000011422 test -n "$AR" && break
11423 done
cristy73bd4a52010-10-05 11:24:23 +000011424fi
cristyda16f162011-02-19 23:52:17 +000011425if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011426 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011427 for ac_prog in ar
11428do
11429 # Extract the first word of "$ac_prog", so it can be a program name with args.
11430set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011433if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011434 $as_echo_n "(cached) " >&6
11435else
11436 if test -n "$ac_ct_AR"; then
11437 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011446 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451 done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456ac_ct_AR=$ac_cv_prog_ac_ct_AR
11457if test -n "$ac_ct_AR"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11459$as_echo "$ac_ct_AR" >&6; }
11460else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
cristyda16f162011-02-19 23:52:17 +000011465
11466 test -n "$ac_ct_AR" && break
11467done
11468
cristy73bd4a52010-10-05 11:24:23 +000011469 if test "x$ac_ct_AR" = x; then
11470 AR="false"
11471 else
11472 case $cross_compiling:$ac_tool_warned in
11473yes:)
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11476ac_tool_warned=yes ;;
11477esac
11478 AR=$ac_ct_AR
11479 fi
cristy73bd4a52010-10-05 11:24:23 +000011480fi
11481
cristyda16f162011-02-19 23:52:17 +000011482: ${AR=ar}
11483: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
cristyda16f162011-02-19 23:52:17 +000011495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11496$as_echo_n "checking for archiver @FILE support... " >&6; }
11497if ${lt_cv_ar_at_file+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499else
11500 lt_cv_ar_at_file=no
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h. */
11503
11504int
11505main ()
11506{
11507
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_compile "$LINENO"; then :
11513 echo conftest.$ac_objext > conftest.lst
11514 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11516 (eval $lt_ar_try) 2>&5
11517 ac_status=$?
11518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519 test $ac_status = 0; }
11520 if test "$ac_status" -eq 0; then
11521 # Ensure the archiver fails upon bogus file names.
11522 rm -f conftest.$ac_objext libconftest.a
11523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11524 (eval $lt_ar_try) 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; }
11528 if test "$ac_status" -ne 0; then
11529 lt_cv_ar_at_file=@
11530 fi
11531 fi
11532 rm -f conftest.* libconftest.a
11533
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11539$as_echo "$lt_cv_ar_at_file" >&6; }
11540
11541if test "x$lt_cv_ar_at_file" = xno; then
11542 archiver_list_spec=
11543else
11544 archiver_list_spec=$lt_cv_ar_at_file
11545fi
11546
11547
11548
11549
11550
11551
11552
cristy73bd4a52010-10-05 11:24:23 +000011553if test -n "$ac_tool_prefix"; then
11554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11555set dummy ${ac_tool_prefix}strip; ac_word=$2
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011558if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011559 $as_echo_n "(cached) " >&6
11560else
11561 if test -n "$STRIP"; then
11562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575done
11576 done
11577IFS=$as_save_IFS
11578
11579fi
11580fi
11581STRIP=$ac_cv_prog_STRIP
11582if test -n "$STRIP"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11584$as_echo "$STRIP" >&6; }
11585else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588fi
11589
11590
11591fi
11592if test -z "$ac_cv_prog_STRIP"; then
11593 ac_ct_STRIP=$STRIP
11594 # Extract the first word of "strip", so it can be a program name with args.
11595set dummy strip; ac_word=$2
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011598if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011599 $as_echo_n "(cached) " >&6
11600else
11601 if test -n "$ac_ct_STRIP"; then
11602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011611 ac_cv_prog_ac_ct_STRIP="strip"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616 done
11617IFS=$as_save_IFS
11618
11619fi
11620fi
11621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11622if test -n "$ac_ct_STRIP"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11624$as_echo "$ac_ct_STRIP" >&6; }
11625else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
11628fi
11629
11630 if test "x$ac_ct_STRIP" = x; then
11631 STRIP=":"
11632 else
11633 case $cross_compiling:$ac_tool_warned in
11634yes:)
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11637ac_tool_warned=yes ;;
11638esac
11639 STRIP=$ac_ct_STRIP
11640 fi
11641else
11642 STRIP="$ac_cv_prog_STRIP"
11643fi
11644
11645test -z "$STRIP" && STRIP=:
11646
11647
11648
11649
11650
11651
11652if test -n "$ac_tool_prefix"; then
11653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11654set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011657if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011658 $as_echo_n "(cached) " >&6
11659else
11660 if test -n "$RANLIB"; then
11661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011670 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675 done
11676IFS=$as_save_IFS
11677
11678fi
11679fi
11680RANLIB=$ac_cv_prog_RANLIB
11681if test -n "$RANLIB"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11683$as_echo "$RANLIB" >&6; }
11684else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
11687fi
11688
11689
11690fi
11691if test -z "$ac_cv_prog_RANLIB"; then
11692 ac_ct_RANLIB=$RANLIB
11693 # Extract the first word of "ranlib", so it can be a program name with args.
11694set dummy ranlib; ac_word=$2
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011697if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011698 $as_echo_n "(cached) " >&6
11699else
11700 if test -n "$ac_ct_RANLIB"; then
11701 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11702else
11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011710 ac_cv_prog_ac_ct_RANLIB="ranlib"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11713 fi
11714done
11715 done
11716IFS=$as_save_IFS
11717
11718fi
11719fi
11720ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11721if test -n "$ac_ct_RANLIB"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11723$as_echo "$ac_ct_RANLIB" >&6; }
11724else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726$as_echo "no" >&6; }
11727fi
11728
11729 if test "x$ac_ct_RANLIB" = x; then
11730 RANLIB=":"
11731 else
11732 case $cross_compiling:$ac_tool_warned in
11733yes:)
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11736ac_tool_warned=yes ;;
11737esac
11738 RANLIB=$ac_ct_RANLIB
11739 fi
11740else
11741 RANLIB="$ac_cv_prog_RANLIB"
11742fi
11743
11744test -z "$RANLIB" && RANLIB=:
11745
11746
11747
11748
11749
11750
11751# Determine commands to create old-style static archives.
11752old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11753old_postinstall_cmds='chmod 644 $oldlib'
11754old_postuninstall_cmds=
11755
11756if test -n "$RANLIB"; then
11757 case $host_os in
11758 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011759 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011760 ;;
11761 *)
cristy99bd5232011-12-07 14:38:20 +000011762 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011763 ;;
11764 esac
cristy99bd5232011-12-07 14:38:20 +000011765 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011766fi
11767
cristy0c60a692010-11-04 01:09:47 +000011768case $host_os in
11769 darwin*)
11770 lock_old_archive_extraction=yes ;;
11771 *)
11772 lock_old_archive_extraction=no ;;
11773esac
11774
11775
11776
11777
11778
11779
cristy73bd4a52010-10-05 11:24:23 +000011780
11781
11782
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# If no C compiler was specified, use CC.
11814LTCC=${LTCC-"$CC"}
11815
11816# If no C compiler flags were specified, use CFLAGS.
11817LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11818
11819# Allow CC to be a program name with arguments.
11820compiler=$CC
11821
11822
11823# Check for command to grab the raw symbol name followed by C symbol from nm.
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11825$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011826if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011827 $as_echo_n "(cached) " >&6
11828else
11829
11830# These are sane defaults that work on at least a few old systems.
11831# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11832
11833# Character class describing NM global symbol codes.
11834symcode='[BCDEGRST]'
11835
11836# Regexp to match symbols that can be accessed directly from C.
11837sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11838
11839# Define system-specific variables.
11840case $host_os in
11841aix*)
11842 symcode='[BCDT]'
11843 ;;
11844cygwin* | mingw* | pw32* | cegcc*)
11845 symcode='[ABCDGISTW]'
11846 ;;
11847hpux*)
11848 if test "$host_cpu" = ia64; then
11849 symcode='[ABCDEGRST]'
11850 fi
11851 ;;
11852irix* | nonstopux*)
11853 symcode='[BCDEGRST]'
11854 ;;
11855osf*)
11856 symcode='[BCDEGQRST]'
11857 ;;
11858solaris*)
11859 symcode='[BDRT]'
11860 ;;
11861sco3.2v5*)
11862 symcode='[DT]'
11863 ;;
11864sysv4.2uw2*)
11865 symcode='[DT]'
11866 ;;
11867sysv5* | sco5v6* | unixware* | OpenUNIX*)
11868 symcode='[ABDT]'
11869 ;;
11870sysv4)
11871 symcode='[DFNSTU]'
11872 ;;
11873esac
11874
11875# If we're using GNU nm, then use its standard symbol codes.
11876case `$NM -V 2>&1` in
11877*GNU* | *'with BFD'*)
11878 symcode='[ABCDGIRSTW]' ;;
11879esac
11880
11881# Transform an extracted symbol line into a proper C declaration.
11882# Some systems (esp. on ia64) link data and code symbols differently,
11883# so use this general approach.
11884lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11885
11886# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011887lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11888lt_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 +000011889
11890# Handle CRLF in mingw tool chain
11891opt_cr=
11892case $build_os in
11893mingw*)
11894 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11895 ;;
11896esac
11897
11898# Try without a prefix underscore, then with it.
11899for ac_symprfx in "" "_"; do
11900
11901 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11902 symxfrm="\\1 $ac_symprfx\\2 \\2"
11903
11904 # Write the raw and C identifiers.
11905 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11906 # Fake it for dumpbin and say T for any non-static function
11907 # and D for any global variable.
11908 # Also find C++ and __fastcall symbols from MSVC++,
11909 # which start with @ or ?.
11910 lt_cv_sys_global_symbol_pipe="$AWK '"\
11911" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011912" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011913" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11914" \$ 0!~/External *\|/{next};"\
11915" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11916" {if(hide[section]) next};"\
11917" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11918" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11919" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11920" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11921" ' prfx=^$ac_symprfx"
11922 else
11923 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11924 fi
cristyda16f162011-02-19 23:52:17 +000011925 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011926
11927 # Check to see that the pipe works correctly.
11928 pipe_works=no
11929
11930 rm -f conftest*
11931 cat > conftest.$ac_ext <<_LT_EOF
11932#ifdef __cplusplus
11933extern "C" {
11934#endif
11935char nm_test_var;
11936void nm_test_func(void);
11937void nm_test_func(void){}
11938#ifdef __cplusplus
11939}
11940#endif
11941int main(){nm_test_var='a';nm_test_func();return(0);}
11942_LT_EOF
11943
11944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11945 (eval $ac_compile) 2>&5
11946 ac_status=$?
11947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11948 test $ac_status = 0; }; then
11949 # Now try to grab the symbols.
11950 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11952 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011953 ac_status=$?
11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955 test $ac_status = 0; } && test -s "$nlist"; then
11956 # Try sorting and uniquifying the output.
11957 if sort "$nlist" | uniq > "$nlist"T; then
11958 mv -f "$nlist"T "$nlist"
11959 else
11960 rm -f "$nlist"T
11961 fi
11962
11963 # Make sure that we snagged all the symbols we need.
11964 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11965 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11966 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011967/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11968#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11969/* DATA imports from DLLs on WIN32 con't be const, because runtime
11970 relocations are performed -- see ld's documentation on pseudo-relocs. */
11971# define LT_DLSYM_CONST
11972#elif defined(__osf__)
11973/* This system does not cope well with relocations in const data. */
11974# define LT_DLSYM_CONST
11975#else
11976# define LT_DLSYM_CONST const
11977#endif
11978
cristy73bd4a52010-10-05 11:24:23 +000011979#ifdef __cplusplus
11980extern "C" {
11981#endif
11982
11983_LT_EOF
11984 # Now generate the symbol file.
11985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11986
11987 cat <<_LT_EOF >> conftest.$ac_ext
11988
11989/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011990LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011991 const char *name;
11992 void *address;
11993}
11994lt__PROGRAM__LTX_preloaded_symbols[] =
11995{
11996 { "@PROGRAM@", (void *) 0 },
11997_LT_EOF
11998 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11999 cat <<\_LT_EOF >> conftest.$ac_ext
12000 {0, (void *) 0}
12001};
12002
12003/* This works around a problem in FreeBSD linker */
12004#ifdef FREEBSD_WORKAROUND
12005static const void *lt_preloaded_setup() {
12006 return lt__PROGRAM__LTX_preloaded_symbols;
12007}
12008#endif
12009
12010#ifdef __cplusplus
12011}
12012#endif
12013_LT_EOF
12014 # Now try linking the two files.
12015 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012016 lt_globsym_save_LIBS=$LIBS
12017 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012018 LIBS="conftstm.$ac_objext"
12019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12025 pipe_works=yes
12026 fi
cristyda16f162011-02-19 23:52:17 +000012027 LIBS=$lt_globsym_save_LIBS
12028 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012029 else
12030 echo "cannot find nm_test_func in $nlist" >&5
12031 fi
12032 else
12033 echo "cannot find nm_test_var in $nlist" >&5
12034 fi
12035 else
12036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12037 fi
12038 else
12039 echo "$progname: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 fi
12042 rm -rf conftest* conftst*
12043
12044 # Do not use the global_symbol_pipe unless it works.
12045 if test "$pipe_works" = yes; then
12046 break
12047 else
12048 lt_cv_sys_global_symbol_pipe=
12049 fi
12050done
12051
12052fi
12053
12054if test -z "$lt_cv_sys_global_symbol_pipe"; then
12055 lt_cv_sys_global_symbol_to_cdecl=
12056fi
12057if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12059$as_echo "failed" >&6; }
12060else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12062$as_echo "ok" >&6; }
12063fi
12064
cristyda16f162011-02-19 23:52:17 +000012065# Response file support.
12066if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12067 nm_file_list_spec='@'
12068elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12069 nm_file_list_spec='@'
12070fi
cristy73bd4a52010-10-05 11:24:23 +000012071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
cristyda16f162011-02-19 23:52:17 +000012092
12093
12094
12095
12096
12097
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12099$as_echo_n "checking for sysroot... " >&6; }
12100
12101# Check whether --with-sysroot was given.
12102if test "${with_sysroot+set}" = set; then :
12103 withval=$with_sysroot;
12104else
12105 with_sysroot=no
12106fi
12107
12108
12109lt_sysroot=
12110case ${with_sysroot} in #(
12111 yes)
12112 if test "$GCC" = yes; then
12113 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12114 fi
12115 ;; #(
12116 /*)
12117 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12118 ;; #(
12119 no|'')
12120 ;; #(
12121 *)
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12123$as_echo "${with_sysroot}" >&6; }
12124 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12125 ;;
12126esac
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12129$as_echo "${lt_sysroot:-no}" >&6; }
12130
12131
12132
12133
12134
cristy73bd4a52010-10-05 11:24:23 +000012135# Check whether --enable-libtool-lock was given.
12136if test "${enable_libtool_lock+set}" = set; then :
12137 enableval=$enable_libtool_lock;
12138fi
12139
12140test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12141
12142# Some flags need to be propagated to the compiler or linker for good
12143# libtool support.
12144case $host in
12145ia64-*-hpux*)
12146 # Find out which ABI we are using.
12147 echo 'int i;' > conftest.$ac_ext
12148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12149 (eval $ac_compile) 2>&5
12150 ac_status=$?
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; }; then
12153 case `/usr/bin/file conftest.$ac_objext` in
12154 *ELF-32*)
12155 HPUX_IA64_MODE="32"
12156 ;;
12157 *ELF-64*)
12158 HPUX_IA64_MODE="64"
12159 ;;
12160 esac
12161 fi
12162 rm -rf conftest*
12163 ;;
12164*-*-irix6*)
12165 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012166 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12168 (eval $ac_compile) 2>&5
12169 ac_status=$?
12170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12171 test $ac_status = 0; }; then
12172 if test "$lt_cv_prog_gnu_ld" = yes; then
12173 case `/usr/bin/file conftest.$ac_objext` in
12174 *32-bit*)
12175 LD="${LD-ld} -melf32bsmip"
12176 ;;
12177 *N32*)
12178 LD="${LD-ld} -melf32bmipn32"
12179 ;;
12180 *64-bit*)
12181 LD="${LD-ld} -melf64bmip"
12182 ;;
12183 esac
12184 else
12185 case `/usr/bin/file conftest.$ac_objext` in
12186 *32-bit*)
12187 LD="${LD-ld} -32"
12188 ;;
12189 *N32*)
12190 LD="${LD-ld} -n32"
12191 ;;
12192 *64-bit*)
12193 LD="${LD-ld} -64"
12194 ;;
12195 esac
12196 fi
12197 fi
12198 rm -rf conftest*
12199 ;;
12200
12201x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12202s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12203 # Find out which ABI we are using.
12204 echo 'int i;' > conftest.$ac_ext
12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12206 (eval $ac_compile) 2>&5
12207 ac_status=$?
12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209 test $ac_status = 0; }; then
12210 case `/usr/bin/file conftest.o` in
12211 *32-bit*)
12212 case $host in
12213 x86_64-*kfreebsd*-gnu)
12214 LD="${LD-ld} -m elf_i386_fbsd"
12215 ;;
12216 x86_64-*linux*)
12217 LD="${LD-ld} -m elf_i386"
12218 ;;
12219 ppc64-*linux*|powerpc64-*linux*)
12220 LD="${LD-ld} -m elf32ppclinux"
12221 ;;
12222 s390x-*linux*)
12223 LD="${LD-ld} -m elf_s390"
12224 ;;
12225 sparc64-*linux*)
12226 LD="${LD-ld} -m elf32_sparc"
12227 ;;
12228 esac
12229 ;;
12230 *64-bit*)
12231 case $host in
12232 x86_64-*kfreebsd*-gnu)
12233 LD="${LD-ld} -m elf_x86_64_fbsd"
12234 ;;
12235 x86_64-*linux*)
12236 LD="${LD-ld} -m elf_x86_64"
12237 ;;
12238 ppc*-*linux*|powerpc*-*linux*)
12239 LD="${LD-ld} -m elf64ppc"
12240 ;;
12241 s390*-*linux*|s390*-*tpf*)
12242 LD="${LD-ld} -m elf64_s390"
12243 ;;
12244 sparc*-*linux*)
12245 LD="${LD-ld} -m elf64_sparc"
12246 ;;
12247 esac
12248 ;;
12249 esac
12250 fi
12251 rm -rf conftest*
12252 ;;
12253
12254*-*-sco3.2v5*)
12255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12256 SAVE_CFLAGS="$CFLAGS"
12257 CFLAGS="$CFLAGS -belf"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12259$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012260if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012261 $as_echo_n "(cached) " >&6
12262else
12263 ac_ext=c
12264ac_cpp='$CPP $CPPFLAGS'
12265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_c_compiler_gnu
12268
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h. */
12271
12272int
12273main ()
12274{
12275
12276 ;
12277 return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281 lt_cv_cc_needs_belf=yes
12282else
12283 lt_cv_cc_needs_belf=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 ac_ext=c
12288ac_cpp='$CPP $CPPFLAGS'
12289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12291ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12295$as_echo "$lt_cv_cc_needs_belf" >&6; }
12296 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12298 CFLAGS="$SAVE_CFLAGS"
12299 fi
12300 ;;
cristy99bd5232011-12-07 14:38:20 +000012301*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012302 # Find out which ABI we are using.
12303 echo 'int i;' > conftest.$ac_ext
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12305 (eval $ac_compile) 2>&5
12306 ac_status=$?
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; }; then
12309 case `/usr/bin/file conftest.o` in
12310 *64-bit*)
12311 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012312 yes*)
12313 case $host in
12314 i?86-*-solaris*)
12315 LD="${LD-ld} -m elf_x86_64"
12316 ;;
12317 sparc*-*-solaris*)
12318 LD="${LD-ld} -m elf64_sparc"
12319 ;;
12320 esac
12321 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12322 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12323 LD="${LD-ld}_sol2"
12324 fi
12325 ;;
cristy73bd4a52010-10-05 11:24:23 +000012326 *)
12327 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12328 LD="${LD-ld} -64"
12329 fi
12330 ;;
12331 esac
12332 ;;
12333 esac
12334 fi
12335 rm -rf conftest*
12336 ;;
12337esac
12338
12339need_locks="$enable_libtool_lock"
12340
cristyda16f162011-02-19 23:52:17 +000012341if test -n "$ac_tool_prefix"; then
12342 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12343set dummy ${ac_tool_prefix}mt; ac_word=$2
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348else
12349 if test -n "$MANIFEST_TOOL"; then
12350 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012359 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363done
12364 done
12365IFS=$as_save_IFS
12366
12367fi
12368fi
12369MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12370if test -n "$MANIFEST_TOOL"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12372$as_echo "$MANIFEST_TOOL" >&6; }
12373else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377
12378
12379fi
12380if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12381 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12382 # Extract the first word of "mt", so it can be a program name with args.
12383set dummy mt; ac_word=$2
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385$as_echo_n "checking for $ac_word... " >&6; }
12386if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388else
12389 if test -n "$ac_ct_MANIFEST_TOOL"; then
12390 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12391else
12392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393for as_dir in $PATH
12394do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012399 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12402 fi
12403done
12404 done
12405IFS=$as_save_IFS
12406
12407fi
12408fi
12409ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12410if test -n "$ac_ct_MANIFEST_TOOL"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12412$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12413else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
12416fi
12417
12418 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12419 MANIFEST_TOOL=":"
12420 else
12421 case $cross_compiling:$ac_tool_warned in
12422yes:)
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12425ac_tool_warned=yes ;;
12426esac
12427 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12428 fi
12429else
12430 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12431fi
12432
12433test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12435$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12436if ${lt_cv_path_mainfest_tool+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438else
12439 lt_cv_path_mainfest_tool=no
12440 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12441 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12442 cat conftest.err >&5
12443 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12444 lt_cv_path_mainfest_tool=yes
12445 fi
12446 rm -f conftest*
12447fi
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12449$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12450if test "x$lt_cv_path_mainfest_tool" != xyes; then
12451 MANIFEST_TOOL=:
12452fi
12453
12454
12455
12456
12457
cristy73bd4a52010-10-05 11:24:23 +000012458
12459 case $host_os in
12460 rhapsody* | darwin*)
12461 if test -n "$ac_tool_prefix"; then
12462 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12463set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012466if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012467 $as_echo_n "(cached) " >&6
12468else
12469 if test -n "$DSYMUTIL"; then
12470 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12471else
12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12482 fi
12483done
12484 done
12485IFS=$as_save_IFS
12486
12487fi
12488fi
12489DSYMUTIL=$ac_cv_prog_DSYMUTIL
12490if test -n "$DSYMUTIL"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12492$as_echo "$DSYMUTIL" >&6; }
12493else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
12496fi
12497
12498
12499fi
12500if test -z "$ac_cv_prog_DSYMUTIL"; then
12501 ac_ct_DSYMUTIL=$DSYMUTIL
12502 # Extract the first word of "dsymutil", so it can be a program name with args.
12503set dummy dsymutil; ac_word=$2
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012506if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012507 $as_echo_n "(cached) " >&6
12508else
12509 if test -n "$ac_ct_DSYMUTIL"; then
12510 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12511else
12512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513for as_dir in $PATH
12514do
12515 IFS=$as_save_IFS
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012519 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 break 2
12522 fi
12523done
12524 done
12525IFS=$as_save_IFS
12526
12527fi
12528fi
12529ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12530if test -n "$ac_ct_DSYMUTIL"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12532$as_echo "$ac_ct_DSYMUTIL" >&6; }
12533else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535$as_echo "no" >&6; }
12536fi
12537
12538 if test "x$ac_ct_DSYMUTIL" = x; then
12539 DSYMUTIL=":"
12540 else
12541 case $cross_compiling:$ac_tool_warned in
12542yes:)
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12545ac_tool_warned=yes ;;
12546esac
12547 DSYMUTIL=$ac_ct_DSYMUTIL
12548 fi
12549else
12550 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12551fi
12552
12553 if test -n "$ac_tool_prefix"; then
12554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12555set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012558if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012559 $as_echo_n "(cached) " >&6
12560else
12561 if test -n "$NMEDIT"; then
12562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12563else
12564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565for as_dir in $PATH
12566do
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12574 fi
12575done
12576 done
12577IFS=$as_save_IFS
12578
12579fi
12580fi
12581NMEDIT=$ac_cv_prog_NMEDIT
12582if test -n "$NMEDIT"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12584$as_echo "$NMEDIT" >&6; }
12585else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588fi
12589
12590
12591fi
12592if test -z "$ac_cv_prog_NMEDIT"; then
12593 ac_ct_NMEDIT=$NMEDIT
12594 # Extract the first word of "nmedit", so it can be a program name with args.
12595set dummy nmedit; ac_word=$2
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012598if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012599 $as_echo_n "(cached) " >&6
12600else
12601 if test -n "$ac_ct_NMEDIT"; then
12602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012611 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12614 fi
12615done
12616 done
12617IFS=$as_save_IFS
12618
12619fi
12620fi
12621ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12622if test -n "$ac_ct_NMEDIT"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12624$as_echo "$ac_ct_NMEDIT" >&6; }
12625else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628fi
12629
12630 if test "x$ac_ct_NMEDIT" = x; then
12631 NMEDIT=":"
12632 else
12633 case $cross_compiling:$ac_tool_warned in
12634yes:)
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12637ac_tool_warned=yes ;;
12638esac
12639 NMEDIT=$ac_ct_NMEDIT
12640 fi
12641else
12642 NMEDIT="$ac_cv_prog_NMEDIT"
12643fi
12644
12645 if test -n "$ac_tool_prefix"; then
12646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12647set dummy ${ac_tool_prefix}lipo; ac_word=$2
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012650if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012651 $as_echo_n "(cached) " >&6
12652else
12653 if test -n "$LIPO"; then
12654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12655else
12656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657for as_dir in $PATH
12658do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667done
12668 done
12669IFS=$as_save_IFS
12670
12671fi
12672fi
12673LIPO=$ac_cv_prog_LIPO
12674if test -n "$LIPO"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12676$as_echo "$LIPO" >&6; }
12677else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680fi
12681
12682
12683fi
12684if test -z "$ac_cv_prog_LIPO"; then
12685 ac_ct_LIPO=$LIPO
12686 # Extract the first word of "lipo", so it can be a program name with args.
12687set dummy lipo; ac_word=$2
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012690if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012691 $as_echo_n "(cached) " >&6
12692else
12693 if test -n "$ac_ct_LIPO"; then
12694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012703 ac_cv_prog_ac_ct_LIPO="lipo"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707done
12708 done
12709IFS=$as_save_IFS
12710
12711fi
12712fi
12713ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12714if test -n "$ac_ct_LIPO"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12716$as_echo "$ac_ct_LIPO" >&6; }
12717else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720fi
12721
12722 if test "x$ac_ct_LIPO" = x; then
12723 LIPO=":"
12724 else
12725 case $cross_compiling:$ac_tool_warned in
12726yes:)
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12729ac_tool_warned=yes ;;
12730esac
12731 LIPO=$ac_ct_LIPO
12732 fi
12733else
12734 LIPO="$ac_cv_prog_LIPO"
12735fi
12736
12737 if test -n "$ac_tool_prefix"; then
12738 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12739set dummy ${ac_tool_prefix}otool; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012742if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012743 $as_echo_n "(cached) " >&6
12744else
12745 if test -n "$OTOOL"; then
12746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12747else
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012755 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759done
12760 done
12761IFS=$as_save_IFS
12762
12763fi
12764fi
12765OTOOL=$ac_cv_prog_OTOOL
12766if test -n "$OTOOL"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12768$as_echo "$OTOOL" >&6; }
12769else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775fi
12776if test -z "$ac_cv_prog_OTOOL"; then
12777 ac_ct_OTOOL=$OTOOL
12778 # Extract the first word of "otool", so it can be a program name with args.
12779set dummy otool; ac_word=$2
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012782if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012783 $as_echo_n "(cached) " >&6
12784else
12785 if test -n "$ac_ct_OTOOL"; then
12786 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12787else
12788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789for as_dir in $PATH
12790do
12791 IFS=$as_save_IFS
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012795 ac_cv_prog_ac_ct_OTOOL="otool"
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 break 2
12798 fi
12799done
12800 done
12801IFS=$as_save_IFS
12802
12803fi
12804fi
12805ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12806if test -n "$ac_ct_OTOOL"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12808$as_echo "$ac_ct_OTOOL" >&6; }
12809else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814 if test "x$ac_ct_OTOOL" = x; then
12815 OTOOL=":"
12816 else
12817 case $cross_compiling:$ac_tool_warned in
12818yes:)
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12821ac_tool_warned=yes ;;
12822esac
12823 OTOOL=$ac_ct_OTOOL
12824 fi
12825else
12826 OTOOL="$ac_cv_prog_OTOOL"
12827fi
12828
12829 if test -n "$ac_tool_prefix"; then
12830 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12831set dummy ${ac_tool_prefix}otool64; ac_word=$2
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012834if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012835 $as_echo_n "(cached) " >&6
12836else
12837 if test -n "$OTOOL64"; then
12838 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12839else
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012847 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12850 fi
12851done
12852 done
12853IFS=$as_save_IFS
12854
12855fi
12856fi
12857OTOOL64=$ac_cv_prog_OTOOL64
12858if test -n "$OTOOL64"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12860$as_echo "$OTOOL64" >&6; }
12861else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
12864fi
12865
12866
12867fi
12868if test -z "$ac_cv_prog_OTOOL64"; then
12869 ac_ct_OTOOL64=$OTOOL64
12870 # Extract the first word of "otool64", so it can be a program name with args.
12871set dummy otool64; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012874if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012875 $as_echo_n "(cached) " >&6
12876else
12877 if test -n "$ac_ct_OTOOL64"; then
12878 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012887 ac_cv_prog_ac_ct_OTOOL64="otool64"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891done
12892 done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12898if test -n "$ac_ct_OTOOL64"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12900$as_echo "$ac_ct_OTOOL64" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906 if test "x$ac_ct_OTOOL64" = x; then
12907 OTOOL64=":"
12908 else
12909 case $cross_compiling:$ac_tool_warned in
12910yes:)
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12913ac_tool_warned=yes ;;
12914esac
12915 OTOOL64=$ac_ct_OTOOL64
12916 fi
12917else
12918 OTOOL64="$ac_cv_prog_OTOOL64"
12919fi
12920
12921
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12948$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012949if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012950 $as_echo_n "(cached) " >&6
12951else
12952 lt_cv_apple_cc_single_mod=no
12953 if test -z "${LT_MULTI_MODULE}"; then
12954 # By default we will add the -single_module flag. You can override
12955 # by either setting the environment variable LT_MULTI_MODULE
12956 # non-empty at configure time, or by adding -multi_module to the
12957 # link flags.
12958 rm -rf libconftest.dylib*
12959 echo "int foo(void){return 1;}" > conftest.c
12960 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12961-dynamiclib -Wl,-single_module conftest.c" >&5
12962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12963 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12964 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012965 # If there is a non-empty error log, and "single_module"
12966 # appears in it, assume the flag caused a linker warning
12967 if test -s conftest.err && $GREP single_module conftest.err; then
12968 cat conftest.err >&5
12969 # Otherwise, if the output was created with a 0 exit code from
12970 # the compiler, it worked.
12971 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012972 lt_cv_apple_cc_single_mod=yes
12973 else
12974 cat conftest.err >&5
12975 fi
12976 rm -rf libconftest.dylib*
12977 rm -f conftest.*
12978 fi
12979fi
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12981$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012982
cristy73bd4a52010-10-05 11:24:23 +000012983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12984$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012985if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012986 $as_echo_n "(cached) " >&6
12987else
12988 lt_cv_ld_exported_symbols_list=no
12989 save_LDFLAGS=$LDFLAGS
12990 echo "_main" > conftest.sym
12991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h. */
12994
12995int
12996main ()
12997{
12998
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003if ac_fn_c_try_link "$LINENO"; then :
13004 lt_cv_ld_exported_symbols_list=yes
13005else
13006 lt_cv_ld_exported_symbols_list=no
13007fi
13008rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LDFLAGS="$save_LDFLAGS"
13011
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13014$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013015
cristy0c60a692010-11-04 01:09:47 +000013016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13017$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013018if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013019 $as_echo_n "(cached) " >&6
13020else
13021 lt_cv_ld_force_load=no
13022 cat > conftest.c << _LT_EOF
13023int forced_loaded() { return 2;}
13024_LT_EOF
13025 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13026 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13027 echo "$AR cru libconftest.a conftest.o" >&5
13028 $AR cru libconftest.a conftest.o 2>&5
13029 echo "$RANLIB libconftest.a" >&5
13030 $RANLIB libconftest.a 2>&5
13031 cat > conftest.c << _LT_EOF
13032int main() { return 0;}
13033_LT_EOF
13034 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13035 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13036 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013037 if test -s conftest.err && $GREP force_load conftest.err; then
13038 cat conftest.err >&5
13039 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013040 lt_cv_ld_force_load=yes
13041 else
13042 cat conftest.err >&5
13043 fi
13044 rm -f conftest.err libconftest.a conftest conftest.c
13045 rm -rf conftest.dSYM
13046
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13049$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013050 case $host_os in
13051 rhapsody* | darwin1.[012])
13052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13053 darwin1.*)
13054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13055 darwin*) # darwin 5.x on
13056 # if running on 10.5 or later, the deployment target defaults
13057 # to the OS version, if on x86, and 10.4, the deployment
13058 # target defaults to 10.4. Don't you love it?
13059 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13060 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13062 10.[012]*)
13063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13064 10.*)
13065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13066 esac
13067 ;;
13068 esac
13069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13070 _lt_dar_single_mod='$single_module'
13071 fi
13072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13074 else
13075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13076 fi
cristy0c60a692010-11-04 01:09:47 +000013077 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013078 _lt_dsymutil='~$DSYMUTIL $lib || :'
13079 else
13080 _lt_dsymutil=
13081 fi
13082 ;;
13083 esac
13084
13085for ac_header in dlfcn.h
13086do :
13087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13088"
cristyda16f162011-02-19 23:52:17 +000013089if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013090 cat >>confdefs.h <<_ACEOF
13091#define HAVE_DLFCN_H 1
13092_ACEOF
13093
13094fi
13095
13096done
13097
13098
13099
cristy73bd4a52010-10-05 11:24:23 +000013100
cristyda16f162011-02-19 23:52:17 +000013101func_stripname_cnf ()
13102{
13103 case ${2} in
13104 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13105 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13106 esac
13107} # func_stripname_cnf
13108
13109
13110
cristy73bd4a52010-10-05 11:24:23 +000013111
13112
13113# Set options
13114enable_win32_dll=yes
13115
13116case $host in
cristy0c60a692010-11-04 01:09:47 +000013117*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013118 if test -n "$ac_tool_prefix"; then
13119 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13120set dummy ${ac_tool_prefix}as; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013123if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013124 $as_echo_n "(cached) " >&6
13125else
13126 if test -n "$AS"; then
13127 ac_cv_prog_AS="$AS" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013136 ac_cv_prog_AS="${ac_tool_prefix}as"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140done
13141 done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146AS=$ac_cv_prog_AS
13147if test -n "$AS"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13149$as_echo "$AS" >&6; }
13150else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155
13156fi
13157if test -z "$ac_cv_prog_AS"; then
13158 ac_ct_AS=$AS
13159 # Extract the first word of "as", so it can be a program name with args.
13160set dummy as; ac_word=$2
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013163if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013164 $as_echo_n "(cached) " >&6
13165else
13166 if test -n "$ac_ct_AS"; then
13167 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13168else
13169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170for as_dir in $PATH
13171do
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013176 ac_cv_prog_ac_ct_AS="as"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178 break 2
13179 fi
13180done
13181 done
13182IFS=$as_save_IFS
13183
13184fi
13185fi
13186ac_ct_AS=$ac_cv_prog_ac_ct_AS
13187if test -n "$ac_ct_AS"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13189$as_echo "$ac_ct_AS" >&6; }
13190else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192$as_echo "no" >&6; }
13193fi
13194
13195 if test "x$ac_ct_AS" = x; then
13196 AS="false"
13197 else
13198 case $cross_compiling:$ac_tool_warned in
13199yes:)
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13202ac_tool_warned=yes ;;
13203esac
13204 AS=$ac_ct_AS
13205 fi
13206else
13207 AS="$ac_cv_prog_AS"
13208fi
13209
13210 if test -n "$ac_tool_prefix"; then
13211 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13212set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013215if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013216 $as_echo_n "(cached) " >&6
13217else
13218 if test -n "$DLLTOOL"; then
13219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013228 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13231 fi
13232done
13233 done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238DLLTOOL=$ac_cv_prog_DLLTOOL
13239if test -n "$DLLTOOL"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13241$as_echo "$DLLTOOL" >&6; }
13242else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246
13247
13248fi
13249if test -z "$ac_cv_prog_DLLTOOL"; then
13250 ac_ct_DLLTOOL=$DLLTOOL
13251 # Extract the first word of "dlltool", so it can be a program name with args.
13252set dummy dlltool; ac_word=$2
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013255if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013256 $as_echo_n "(cached) " >&6
13257else
13258 if test -n "$ac_ct_DLLTOOL"; then
13259 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13260else
13261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262for as_dir in $PATH
13263do
13264 IFS=$as_save_IFS
13265 test -z "$as_dir" && as_dir=.
13266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013268 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270 break 2
13271 fi
13272done
13273 done
13274IFS=$as_save_IFS
13275
13276fi
13277fi
13278ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13279if test -n "$ac_ct_DLLTOOL"; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13281$as_echo "$ac_ct_DLLTOOL" >&6; }
13282else
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
13285fi
13286
13287 if test "x$ac_ct_DLLTOOL" = x; then
13288 DLLTOOL="false"
13289 else
13290 case $cross_compiling:$ac_tool_warned in
13291yes:)
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13294ac_tool_warned=yes ;;
13295esac
13296 DLLTOOL=$ac_ct_DLLTOOL
13297 fi
13298else
13299 DLLTOOL="$ac_cv_prog_DLLTOOL"
13300fi
13301
13302 if test -n "$ac_tool_prefix"; then
13303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13304set dummy ${ac_tool_prefix}objdump; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013307if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013308 $as_echo_n "(cached) " >&6
13309else
13310 if test -n "$OBJDUMP"; then
13311 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013320 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324done
13325 done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330OBJDUMP=$ac_cv_prog_OBJDUMP
13331if test -n "$OBJDUMP"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13333$as_echo "$OBJDUMP" >&6; }
13334else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339
13340fi
13341if test -z "$ac_cv_prog_OBJDUMP"; then
13342 ac_ct_OBJDUMP=$OBJDUMP
13343 # Extract the first word of "objdump", so it can be a program name with args.
13344set dummy objdump; ac_word=$2
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013347if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013348 $as_echo_n "(cached) " >&6
13349else
13350 if test -n "$ac_ct_OBJDUMP"; then
13351 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13352else
13353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354for as_dir in $PATH
13355do
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013360 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 break 2
13363 fi
13364done
13365 done
13366IFS=$as_save_IFS
13367
13368fi
13369fi
13370ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13371if test -n "$ac_ct_OBJDUMP"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13373$as_echo "$ac_ct_OBJDUMP" >&6; }
13374else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376$as_echo "no" >&6; }
13377fi
13378
13379 if test "x$ac_ct_OBJDUMP" = x; then
13380 OBJDUMP="false"
13381 else
13382 case $cross_compiling:$ac_tool_warned in
13383yes:)
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13386ac_tool_warned=yes ;;
13387esac
13388 OBJDUMP=$ac_ct_OBJDUMP
13389 fi
13390else
13391 OBJDUMP="$ac_cv_prog_OBJDUMP"
13392fi
13393
13394 ;;
13395esac
13396
13397test -z "$AS" && AS=as
13398
13399
13400
13401
13402
13403test -z "$DLLTOOL" && DLLTOOL=dlltool
13404
13405
13406
13407
13408
13409test -z "$OBJDUMP" && OBJDUMP=objdump
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419 # Check whether --enable-shared was given.
13420if test "${enable_shared+set}" = set; then :
13421 enableval=$enable_shared; p=${PACKAGE-default}
13422 case $enableval in
13423 yes) enable_shared=yes ;;
13424 no) enable_shared=no ;;
13425 *)
13426 enable_shared=no
13427 # Look at the argument we got. We use all the common list separators.
13428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13429 for pkg in $enableval; do
13430 IFS="$lt_save_ifs"
13431 if test "X$pkg" = "X$p"; then
13432 enable_shared=yes
13433 fi
13434 done
13435 IFS="$lt_save_ifs"
13436 ;;
13437 esac
13438else
13439 enable_shared=yes
13440fi
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450 # Check whether --enable-static was given.
13451if test "${enable_static+set}" = set; then :
13452 enableval=$enable_static; p=${PACKAGE-default}
13453 case $enableval in
13454 yes) enable_static=yes ;;
13455 no) enable_static=no ;;
13456 *)
13457 enable_static=no
13458 # Look at the argument we got. We use all the common list separators.
13459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13460 for pkg in $enableval; do
13461 IFS="$lt_save_ifs"
13462 if test "X$pkg" = "X$p"; then
13463 enable_static=yes
13464 fi
13465 done
13466 IFS="$lt_save_ifs"
13467 ;;
13468 esac
13469else
13470 enable_static=yes
13471fi
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482# Check whether --with-pic was given.
13483if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013484 withval=$with_pic; lt_p=${PACKAGE-default}
13485 case $withval in
13486 yes|no) pic_mode=$withval ;;
13487 *)
13488 pic_mode=default
13489 # Look at the argument we got. We use all the common list separators.
13490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13491 for lt_pkg in $withval; do
13492 IFS="$lt_save_ifs"
13493 if test "X$lt_pkg" = "X$lt_p"; then
13494 pic_mode=yes
13495 fi
13496 done
13497 IFS="$lt_save_ifs"
13498 ;;
13499 esac
cristy73bd4a52010-10-05 11:24:23 +000013500else
13501 pic_mode=default
13502fi
13503
13504
13505test -z "$pic_mode" && pic_mode=default
13506
13507
13508
13509
13510
13511
13512
13513 # Check whether --enable-fast-install was given.
13514if test "${enable_fast_install+set}" = set; then :
13515 enableval=$enable_fast_install; p=${PACKAGE-default}
13516 case $enableval in
13517 yes) enable_fast_install=yes ;;
13518 no) enable_fast_install=no ;;
13519 *)
13520 enable_fast_install=no
13521 # Look at the argument we got. We use all the common list separators.
13522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13523 for pkg in $enableval; do
13524 IFS="$lt_save_ifs"
13525 if test "X$pkg" = "X$p"; then
13526 enable_fast_install=yes
13527 fi
13528 done
13529 IFS="$lt_save_ifs"
13530 ;;
13531 esac
13532else
13533 enable_fast_install=yes
13534fi
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546# This can be used to rebuild libtool when needed
13547LIBTOOL_DEPS="$ltmain"
13548
13549# Always use our own libtool.
13550LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
cristy0c60a692010-11-04 01:09:47 +000013576
cristy99bd5232011-12-07 14:38:20 +000013577
13578
13579
13580
cristy73bd4a52010-10-05 11:24:23 +000013581test -z "$LN_S" && LN_S="ln -s"
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596if test -n "${ZSH_VERSION+set}" ; then
13597 setopt NO_GLOB_SUBST
13598fi
13599
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13601$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013602if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013603 $as_echo_n "(cached) " >&6
13604else
13605 rm -f .libs 2>/dev/null
13606mkdir .libs 2>/dev/null
13607if test -d .libs; then
13608 lt_cv_objdir=.libs
13609else
13610 # MS-DOS does not allow filenames that begin with a dot.
13611 lt_cv_objdir=_libs
13612fi
13613rmdir .libs 2>/dev/null
13614fi
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13616$as_echo "$lt_cv_objdir" >&6; }
13617objdir=$lt_cv_objdir
13618
13619
13620
13621
13622
13623cat >>confdefs.h <<_ACEOF
13624#define LT_OBJDIR "$lt_cv_objdir/"
13625_ACEOF
13626
13627
13628
13629
cristy73bd4a52010-10-05 11:24:23 +000013630case $host_os in
13631aix3*)
13632 # AIX sometimes has problems with the GCC collect2 program. For some
13633 # reason, if we set the COLLECT_NAMES environment variable, the problems
13634 # vanish in a puff of smoke.
13635 if test "X${COLLECT_NAMES+set}" != Xset; then
13636 COLLECT_NAMES=
13637 export COLLECT_NAMES
13638 fi
13639 ;;
13640esac
13641
cristy73bd4a52010-10-05 11:24:23 +000013642# Global variables:
13643ofile=libtool
13644can_build_shared=yes
13645
13646# All known linkers require a `.a' archive for static linking (except MSVC,
13647# which needs '.lib').
13648libext=a
13649
13650with_gnu_ld="$lt_cv_prog_gnu_ld"
13651
13652old_CC="$CC"
13653old_CFLAGS="$CFLAGS"
13654
13655# Set sane defaults for various variables
13656test -z "$CC" && CC=cc
13657test -z "$LTCC" && LTCC=$CC
13658test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13659test -z "$LD" && LD=ld
13660test -z "$ac_objext" && ac_objext=o
13661
13662for cc_temp in $compiler""; do
13663 case $cc_temp in
13664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13666 \-*) ;;
13667 *) break;;
13668 esac
13669done
cristy0c60a692010-11-04 01:09:47 +000013670cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013671
13672
13673# Only perform the check for file, if the check method requires it
13674test -z "$MAGIC_CMD" && MAGIC_CMD=file
13675case $deplibs_check_method in
13676file_magic*)
13677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13679$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013680if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013681 $as_echo_n "(cached) " >&6
13682else
13683 case $MAGIC_CMD in
13684[\\/*] | ?:[\\/]*)
13685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13686 ;;
13687*)
13688 lt_save_MAGIC_CMD="$MAGIC_CMD"
13689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13691 for ac_dir in $ac_dummy; do
13692 IFS="$lt_save_ifs"
13693 test -z "$ac_dir" && ac_dir=.
13694 if test -f $ac_dir/${ac_tool_prefix}file; then
13695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13696 if test -n "$file_magic_test_file"; then
13697 case $deplibs_check_method in
13698 "file_magic "*)
13699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13702 $EGREP "$file_magic_regex" > /dev/null; then
13703 :
13704 else
13705 cat <<_LT_EOF 1>&2
13706
13707*** Warning: the command libtool uses to detect shared libraries,
13708*** $file_magic_cmd, produces output that libtool cannot recognize.
13709*** The result is that libtool may fail to recognize shared libraries
13710*** as such. This will affect the creation of libtool libraries that
13711*** depend on shared libraries, but programs linked with such libtool
13712*** libraries will work regardless of this problem. Nevertheless, you
13713*** may want to report the problem to your system manager and/or to
13714*** bug-libtool@gnu.org
13715
13716_LT_EOF
13717 fi ;;
13718 esac
13719 fi
13720 break
13721 fi
13722 done
13723 IFS="$lt_save_ifs"
13724 MAGIC_CMD="$lt_save_MAGIC_CMD"
13725 ;;
13726esac
13727fi
13728
13729MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13730if test -n "$MAGIC_CMD"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13732$as_echo "$MAGIC_CMD" >&6; }
13733else
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; }
13736fi
13737
13738
13739
13740
13741
13742if test -z "$lt_cv_path_MAGIC_CMD"; then
13743 if test -n "$ac_tool_prefix"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13745$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013746if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013747 $as_echo_n "(cached) " >&6
13748else
13749 case $MAGIC_CMD in
13750[\\/*] | ?:[\\/]*)
13751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13752 ;;
13753*)
13754 lt_save_MAGIC_CMD="$MAGIC_CMD"
13755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13757 for ac_dir in $ac_dummy; do
13758 IFS="$lt_save_ifs"
13759 test -z "$ac_dir" && ac_dir=.
13760 if test -f $ac_dir/file; then
13761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13762 if test -n "$file_magic_test_file"; then
13763 case $deplibs_check_method in
13764 "file_magic "*)
13765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13768 $EGREP "$file_magic_regex" > /dev/null; then
13769 :
13770 else
13771 cat <<_LT_EOF 1>&2
13772
13773*** Warning: the command libtool uses to detect shared libraries,
13774*** $file_magic_cmd, produces output that libtool cannot recognize.
13775*** The result is that libtool may fail to recognize shared libraries
13776*** as such. This will affect the creation of libtool libraries that
13777*** depend on shared libraries, but programs linked with such libtool
13778*** libraries will work regardless of this problem. Nevertheless, you
13779*** may want to report the problem to your system manager and/or to
13780*** bug-libtool@gnu.org
13781
13782_LT_EOF
13783 fi ;;
13784 esac
13785 fi
13786 break
13787 fi
13788 done
13789 IFS="$lt_save_ifs"
13790 MAGIC_CMD="$lt_save_MAGIC_CMD"
13791 ;;
13792esac
13793fi
13794
13795MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13796if test -n "$MAGIC_CMD"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13798$as_echo "$MAGIC_CMD" >&6; }
13799else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
13802fi
13803
13804
13805 else
13806 MAGIC_CMD=:
13807 fi
13808fi
13809
13810 fi
13811 ;;
13812esac
13813
13814# Use C for the default configuration in the libtool script
13815
13816lt_save_CC="$CC"
13817ac_ext=c
13818ac_cpp='$CPP $CPPFLAGS'
13819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822
13823
13824# Source file extension for C test sources.
13825ac_ext=c
13826
13827# Object file extension for compiled C test sources.
13828objext=o
13829objext=$objext
13830
13831# Code to be used in simple compile tests
13832lt_simple_compile_test_code="int some_variable = 0;"
13833
13834# Code to be used in simple link tests
13835lt_simple_link_test_code='int main(){return(0);}'
13836
13837
13838
13839
13840
13841
13842
13843# If no C compiler was specified, use CC.
13844LTCC=${LTCC-"$CC"}
13845
13846# If no C compiler flags were specified, use CFLAGS.
13847LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13848
13849# Allow CC to be a program name with arguments.
13850compiler=$CC
13851
13852# Save the default compiler, since it gets overwritten when the other
13853# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13854compiler_DEFAULT=$CC
13855
13856# save warnings/boilerplate of simple test code
13857ac_outfile=conftest.$ac_objext
13858echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13860_lt_compiler_boilerplate=`cat conftest.err`
13861$RM conftest*
13862
13863ac_outfile=conftest.$ac_objext
13864echo "$lt_simple_link_test_code" >conftest.$ac_ext
13865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13866_lt_linker_boilerplate=`cat conftest.err`
13867$RM -r conftest*
13868
13869
13870## CAVEAT EMPTOR:
13871## There is no encapsulation within the following macros, do not change
13872## the running order or otherwise move them around unless you know exactly
13873## what you are doing...
13874if test -n "$compiler"; then
13875
13876lt_prog_compiler_no_builtin_flag=
13877
13878if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013879 case $cc_basename in
13880 nvcc*)
13881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13882 *)
13883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13884 esac
cristy73bd4a52010-10-05 11:24:23 +000013885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13887$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013888if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013889 $as_echo_n "(cached) " >&6
13890else
13891 lt_cv_prog_compiler_rtti_exceptions=no
13892 ac_outfile=conftest.$ac_objext
13893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13894 lt_compiler_flag="-fno-rtti -fno-exceptions"
13895 # Insert the option either (1) after the last *FLAGS variable, or
13896 # (2) before a word containing "conftest.", or (3) at the end.
13897 # Note that $ac_compile itself does not contain backslashes and begins
13898 # with a dollar sign (not a hyphen), so the echo should work correctly.
13899 # The option is referenced via a variable to avoid confusing sed.
13900 lt_compile=`echo "$ac_compile" | $SED \
13901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13903 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013905 (eval "$lt_compile" 2>conftest.err)
13906 ac_status=$?
13907 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013909 if (exit $ac_status) && test -s "$ac_outfile"; then
13910 # The compiler can only warn and ignore the option if not recognized
13911 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13915 lt_cv_prog_compiler_rtti_exceptions=yes
13916 fi
13917 fi
13918 $RM conftest*
13919
13920fi
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13922$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13923
13924if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13926else
13927 :
13928fi
13929
13930fi
13931
13932
13933
13934
13935
13936
13937 lt_prog_compiler_wl=
13938lt_prog_compiler_pic=
13939lt_prog_compiler_static=
13940
cristy73bd4a52010-10-05 11:24:23 +000013941
13942 if test "$GCC" = yes; then
13943 lt_prog_compiler_wl='-Wl,'
13944 lt_prog_compiler_static='-static'
13945
13946 case $host_os in
13947 aix*)
13948 # All AIX code is PIC.
13949 if test "$host_cpu" = ia64; then
13950 # AIX 5 now supports IA64 processor
13951 lt_prog_compiler_static='-Bstatic'
13952 fi
13953 ;;
13954
13955 amigaos*)
13956 case $host_cpu in
13957 powerpc)
13958 # see comment about AmigaOS4 .so support
13959 lt_prog_compiler_pic='-fPIC'
13960 ;;
13961 m68k)
13962 # FIXME: we need at least 68020 code to build shared libraries, but
13963 # adding the `-m68020' flag to GCC prevents building anything better,
13964 # like `-m68040'.
13965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13966 ;;
13967 esac
13968 ;;
13969
13970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13971 # PIC is the default for these OSes.
13972 ;;
13973
13974 mingw* | cygwin* | pw32* | os2* | cegcc*)
13975 # This hack is so that the source file can tell whether it is being
13976 # built for inclusion in a dll (and should export symbols for example).
13977 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13978 # (--disable-auto-import) libraries
13979 lt_prog_compiler_pic='-DDLL_EXPORT'
13980 ;;
13981
13982 darwin* | rhapsody*)
13983 # PIC is the default on this platform
13984 # Common symbols not allowed in MH_DYLIB files
13985 lt_prog_compiler_pic='-fno-common'
13986 ;;
13987
cristy0c60a692010-11-04 01:09:47 +000013988 haiku*)
13989 # PIC is the default for Haiku.
13990 # The "-static" flag exists, but is broken.
13991 lt_prog_compiler_static=
13992 ;;
13993
cristy73bd4a52010-10-05 11:24:23 +000013994 hpux*)
13995 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13996 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13997 # sets the default TLS model and affects inlining.
13998 case $host_cpu in
13999 hppa*64*)
14000 # +Z the default
14001 ;;
14002 *)
14003 lt_prog_compiler_pic='-fPIC'
14004 ;;
14005 esac
14006 ;;
14007
14008 interix[3-9]*)
14009 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14010 # Instead, we relocate shared libraries at runtime.
14011 ;;
14012
14013 msdosdjgpp*)
14014 # Just because we use GCC doesn't mean we suddenly get shared libraries
14015 # on systems that don't support them.
14016 lt_prog_compiler_can_build_shared=no
14017 enable_shared=no
14018 ;;
14019
14020 *nto* | *qnx*)
14021 # QNX uses GNU C++, but need to define -shared option too, otherwise
14022 # it will coredump.
14023 lt_prog_compiler_pic='-fPIC -shared'
14024 ;;
14025
14026 sysv4*MP*)
14027 if test -d /usr/nec; then
14028 lt_prog_compiler_pic=-Kconform_pic
14029 fi
14030 ;;
14031
14032 *)
14033 lt_prog_compiler_pic='-fPIC'
14034 ;;
14035 esac
cristy0c60a692010-11-04 01:09:47 +000014036
14037 case $cc_basename in
14038 nvcc*) # Cuda Compiler Driver 2.2
14039 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014040 if test -n "$lt_prog_compiler_pic"; then
14041 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14042 fi
cristy0c60a692010-11-04 01:09:47 +000014043 ;;
14044 esac
cristy73bd4a52010-10-05 11:24:23 +000014045 else
14046 # PORTME Check for flag to pass linker flags through the system compiler.
14047 case $host_os in
14048 aix*)
14049 lt_prog_compiler_wl='-Wl,'
14050 if test "$host_cpu" = ia64; then
14051 # AIX 5 now supports IA64 processor
14052 lt_prog_compiler_static='-Bstatic'
14053 else
14054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14055 fi
14056 ;;
14057
14058 mingw* | cygwin* | pw32* | os2* | cegcc*)
14059 # This hack is so that the source file can tell whether it is being
14060 # built for inclusion in a dll (and should export symbols for example).
14061 lt_prog_compiler_pic='-DDLL_EXPORT'
14062 ;;
14063
14064 hpux9* | hpux10* | hpux11*)
14065 lt_prog_compiler_wl='-Wl,'
14066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14067 # not for PA HP-UX.
14068 case $host_cpu in
14069 hppa*64*|ia64*)
14070 # +Z the default
14071 ;;
14072 *)
14073 lt_prog_compiler_pic='+Z'
14074 ;;
14075 esac
14076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14077 lt_prog_compiler_static='${wl}-a ${wl}archive'
14078 ;;
14079
14080 irix5* | irix6* | nonstopux*)
14081 lt_prog_compiler_wl='-Wl,'
14082 # PIC (with -KPIC) is the default.
14083 lt_prog_compiler_static='-non_shared'
14084 ;;
14085
cristy0c60a692010-11-04 01:09:47 +000014086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014087 case $cc_basename in
14088 # old Intel for x86_64 which still supported -KPIC.
14089 ecc*)
14090 lt_prog_compiler_wl='-Wl,'
14091 lt_prog_compiler_pic='-KPIC'
14092 lt_prog_compiler_static='-static'
14093 ;;
14094 # icc used to be incompatible with GCC.
14095 # ICC 10 doesn't accept -KPIC any more.
14096 icc* | ifort*)
14097 lt_prog_compiler_wl='-Wl,'
14098 lt_prog_compiler_pic='-fPIC'
14099 lt_prog_compiler_static='-static'
14100 ;;
14101 # Lahey Fortran 8.1.
14102 lf95*)
14103 lt_prog_compiler_wl='-Wl,'
14104 lt_prog_compiler_pic='--shared'
14105 lt_prog_compiler_static='--static'
14106 ;;
cristyda16f162011-02-19 23:52:17 +000014107 nagfor*)
14108 # NAG Fortran compiler
14109 lt_prog_compiler_wl='-Wl,-Wl,,'
14110 lt_prog_compiler_pic='-PIC'
14111 lt_prog_compiler_static='-Bstatic'
14112 ;;
cristy0c60a692010-11-04 01:09:47 +000014113 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014114 # Portland Group compilers (*not* the Pentium gcc compiler,
14115 # which looks to be a dead project)
14116 lt_prog_compiler_wl='-Wl,'
14117 lt_prog_compiler_pic='-fpic'
14118 lt_prog_compiler_static='-Bstatic'
14119 ;;
14120 ccc*)
14121 lt_prog_compiler_wl='-Wl,'
14122 # All Alpha code is PIC.
14123 lt_prog_compiler_static='-non_shared'
14124 ;;
cristy0c60a692010-11-04 01:09:47 +000014125 xl* | bgxl* | bgf* | mpixl*)
14126 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014127 lt_prog_compiler_wl='-Wl,'
14128 lt_prog_compiler_pic='-qpic'
14129 lt_prog_compiler_static='-qstaticlink'
14130 ;;
14131 *)
14132 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014133 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014134 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14135 lt_prog_compiler_pic='-KPIC'
14136 lt_prog_compiler_static='-Bstatic'
14137 lt_prog_compiler_wl=''
14138 ;;
cristy99bd5232011-12-07 14:38:20 +000014139 *Sun\ F* | *Sun*Fortran*)
14140 lt_prog_compiler_pic='-KPIC'
14141 lt_prog_compiler_static='-Bstatic'
14142 lt_prog_compiler_wl='-Qoption ld '
14143 ;;
cristy73bd4a52010-10-05 11:24:23 +000014144 *Sun\ C*)
14145 # Sun C 5.9
14146 lt_prog_compiler_pic='-KPIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 lt_prog_compiler_wl='-Wl,'
14149 ;;
cristy99bd5232011-12-07 14:38:20 +000014150 *Intel*\ [CF]*Compiler*)
14151 lt_prog_compiler_wl='-Wl,'
14152 lt_prog_compiler_pic='-fPIC'
14153 lt_prog_compiler_static='-static'
14154 ;;
14155 *Portland\ Group*)
14156 lt_prog_compiler_wl='-Wl,'
14157 lt_prog_compiler_pic='-fpic'
14158 lt_prog_compiler_static='-Bstatic'
14159 ;;
cristy73bd4a52010-10-05 11:24:23 +000014160 esac
14161 ;;
14162 esac
14163 ;;
14164
14165 newsos6)
14166 lt_prog_compiler_pic='-KPIC'
14167 lt_prog_compiler_static='-Bstatic'
14168 ;;
14169
14170 *nto* | *qnx*)
14171 # QNX uses GNU C++, but need to define -shared option too, otherwise
14172 # it will coredump.
14173 lt_prog_compiler_pic='-fPIC -shared'
14174 ;;
14175
14176 osf3* | osf4* | osf5*)
14177 lt_prog_compiler_wl='-Wl,'
14178 # All OSF/1 code is PIC.
14179 lt_prog_compiler_static='-non_shared'
14180 ;;
14181
14182 rdos*)
14183 lt_prog_compiler_static='-non_shared'
14184 ;;
14185
14186 solaris*)
14187 lt_prog_compiler_pic='-KPIC'
14188 lt_prog_compiler_static='-Bstatic'
14189 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014190 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014191 lt_prog_compiler_wl='-Qoption ld ';;
14192 *)
14193 lt_prog_compiler_wl='-Wl,';;
14194 esac
14195 ;;
14196
14197 sunos4*)
14198 lt_prog_compiler_wl='-Qoption ld '
14199 lt_prog_compiler_pic='-PIC'
14200 lt_prog_compiler_static='-Bstatic'
14201 ;;
14202
14203 sysv4 | sysv4.2uw2* | sysv4.3*)
14204 lt_prog_compiler_wl='-Wl,'
14205 lt_prog_compiler_pic='-KPIC'
14206 lt_prog_compiler_static='-Bstatic'
14207 ;;
14208
14209 sysv4*MP*)
14210 if test -d /usr/nec ;then
14211 lt_prog_compiler_pic='-Kconform_pic'
14212 lt_prog_compiler_static='-Bstatic'
14213 fi
14214 ;;
14215
14216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14217 lt_prog_compiler_wl='-Wl,'
14218 lt_prog_compiler_pic='-KPIC'
14219 lt_prog_compiler_static='-Bstatic'
14220 ;;
14221
14222 unicos*)
14223 lt_prog_compiler_wl='-Wl,'
14224 lt_prog_compiler_can_build_shared=no
14225 ;;
14226
14227 uts4*)
14228 lt_prog_compiler_pic='-pic'
14229 lt_prog_compiler_static='-Bstatic'
14230 ;;
14231
14232 *)
14233 lt_prog_compiler_can_build_shared=no
14234 ;;
14235 esac
14236 fi
14237
14238case $host_os in
14239 # For platforms which do not support PIC, -DPIC is meaningless:
14240 *djgpp*)
14241 lt_prog_compiler_pic=
14242 ;;
14243 *)
14244 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14245 ;;
14246esac
cristy73bd4a52010-10-05 11:24:23 +000014247
cristyda16f162011-02-19 23:52:17 +000014248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14249$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14250if ${lt_cv_prog_compiler_pic+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252else
14253 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14254fi
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14256$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14257lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014258
14259#
14260# Check to make sure the PIC flag actually works.
14261#
14262if test -n "$lt_prog_compiler_pic"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14264$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014265if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014266 $as_echo_n "(cached) " >&6
14267else
14268 lt_cv_prog_compiler_pic_works=no
14269 ac_outfile=conftest.$ac_objext
14270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14271 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 # The option is referenced via a variable to avoid confusing sed.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014282 (eval "$lt_compile" 2>conftest.err)
14283 ac_status=$?
14284 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014286 if (exit $ac_status) && test -s "$ac_outfile"; then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_pic_works=yes
14293 fi
14294 fi
14295 $RM conftest*
14296
14297fi
14298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14299$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14300
14301if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14302 case $lt_prog_compiler_pic in
14303 "" | " "*) ;;
14304 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14305 esac
14306else
14307 lt_prog_compiler_pic=
14308 lt_prog_compiler_can_build_shared=no
14309fi
14310
14311fi
14312
14313
14314
14315
14316
14317
cristyda16f162011-02-19 23:52:17 +000014318
14319
14320
14321
14322
cristy73bd4a52010-10-05 11:24:23 +000014323#
14324# Check to make sure the static flag actually works.
14325#
14326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14328$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014329if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014330 $as_echo_n "(cached) " >&6
14331else
14332 lt_cv_prog_compiler_static_works=no
14333 save_LDFLAGS="$LDFLAGS"
14334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14337 # The linker can only warn and ignore the option if not recognized
14338 # So say no if there are warnings
14339 if test -s conftest.err; then
14340 # Append any errors to the config.log.
14341 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14344 if diff conftest.exp conftest.er2 >/dev/null; then
14345 lt_cv_prog_compiler_static_works=yes
14346 fi
14347 else
14348 lt_cv_prog_compiler_static_works=yes
14349 fi
14350 fi
14351 $RM -r conftest*
14352 LDFLAGS="$save_LDFLAGS"
14353
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14356$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14357
14358if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14359 :
14360else
14361 lt_prog_compiler_static=
14362fi
14363
14364
14365
14366
14367
14368
14369
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014372if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014373 $as_echo_n "(cached) " >&6
14374else
14375 lt_cv_prog_compiler_c_o=no
14376 $RM -r conftest 2>/dev/null
14377 mkdir conftest
14378 cd conftest
14379 mkdir out
14380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381
14382 lt_compiler_flag="-o out/conftest2.$ac_objext"
14383 # Insert the option either (1) after the last *FLAGS variable, or
14384 # (2) before a word containing "conftest.", or (3) at the end.
14385 # Note that $ac_compile itself does not contain backslashes and begins
14386 # with a dollar sign (not a hyphen), so the echo should work correctly.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014392 (eval "$lt_compile" 2>out/conftest.err)
14393 ac_status=$?
14394 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14397 then
14398 # The compiler can only warn and ignore the option if not recognized
14399 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14403 lt_cv_prog_compiler_c_o=yes
14404 fi
14405 fi
14406 chmod u+w . 2>&5
14407 $RM conftest*
14408 # SGI C++ compiler will create directory out/ii_files/ for
14409 # template instantiation
14410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14411 $RM out/* && rmdir out
14412 cd ..
14413 $RM -r conftest
14414 $RM conftest*
14415
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14418$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14419
14420
14421
14422
14423
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014427if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014428 $as_echo_n "(cached) " >&6
14429else
14430 lt_cv_prog_compiler_c_o=no
14431 $RM -r conftest 2>/dev/null
14432 mkdir conftest
14433 cd conftest
14434 mkdir out
14435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14436
14437 lt_compiler_flag="-o out/conftest2.$ac_objext"
14438 # Insert the option either (1) after the last *FLAGS variable, or
14439 # (2) before a word containing "conftest.", or (3) at the end.
14440 # Note that $ac_compile itself does not contain backslashes and begins
14441 # with a dollar sign (not a hyphen), so the echo should work correctly.
14442 lt_compile=`echo "$ac_compile" | $SED \
14443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014447 (eval "$lt_compile" 2>out/conftest.err)
14448 ac_status=$?
14449 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14452 then
14453 # The compiler can only warn and ignore the option if not recognized
14454 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14458 lt_cv_prog_compiler_c_o=yes
14459 fi
14460 fi
14461 chmod u+w . 2>&5
14462 $RM conftest*
14463 # SGI C++ compiler will create directory out/ii_files/ for
14464 # template instantiation
14465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14466 $RM out/* && rmdir out
14467 cd ..
14468 $RM -r conftest
14469 $RM conftest*
14470
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14473$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14474
14475
14476
14477
14478hard_links="nottested"
14479if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14480 # do not overwrite the value of need_locks provided by the user
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14482$as_echo_n "checking if we can lock with hard links... " >&6; }
14483 hard_links=yes
14484 $RM conftest*
14485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14486 touch conftest.a
14487 ln conftest.a conftest.b 2>&5 || hard_links=no
14488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14490$as_echo "$hard_links" >&6; }
14491 if test "$hard_links" = no; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14494 need_locks=warn
14495 fi
14496else
14497 need_locks=no
14498fi
14499
14500
14501
14502
14503
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14506$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14507
14508 runpath_var=
14509 allow_undefined_flag=
14510 always_export_symbols=no
14511 archive_cmds=
14512 archive_expsym_cmds=
14513 compiler_needs_object=no
14514 enable_shared_with_static_runtimes=no
14515 export_dynamic_flag_spec=
14516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14517 hardcode_automatic=no
14518 hardcode_direct=no
14519 hardcode_direct_absolute=no
14520 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014521 hardcode_libdir_separator=
14522 hardcode_minus_L=no
14523 hardcode_shlibpath_var=unsupported
14524 inherit_rpath=no
14525 link_all_deplibs=unknown
14526 module_cmds=
14527 module_expsym_cmds=
14528 old_archive_from_new_cmds=
14529 old_archive_from_expsyms_cmds=
14530 thread_safe_flag_spec=
14531 whole_archive_flag_spec=
14532 # include_expsyms should be a list of space-separated symbols to be *always*
14533 # included in the symbol list
14534 include_expsyms=
14535 # exclude_expsyms can be an extended regexp of symbols to exclude
14536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14538 # as well as any symbol that contains `d'.
14539 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14541 # platforms (ab)use it in PIC code, but their linkers get confused if
14542 # the symbol is explicitly referenced. Since portable code cannot
14543 # rely on this symbol name, it's probably fine to never include it in
14544 # preloaded symbol tables.
14545 # Exclude shared library initialization/finalization symbols.
14546 extract_expsyms_cmds=
14547
14548 case $host_os in
14549 cygwin* | mingw* | pw32* | cegcc*)
14550 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14551 # When not using gcc, we currently assume that we are using
14552 # Microsoft Visual C++.
14553 if test "$GCC" != yes; then
14554 with_gnu_ld=no
14555 fi
14556 ;;
14557 interix*)
14558 # we just hope/assume this is gcc and not c89 (= MSVC++)
14559 with_gnu_ld=yes
14560 ;;
14561 openbsd*)
14562 with_gnu_ld=no
14563 ;;
14564 esac
14565
14566 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014567
14568 # On some targets, GNU ld is compatible enough with the native linker
14569 # that we're better off using the native interface for both.
14570 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014571 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014572 case $host_os in
14573 aix*)
14574 # The AIX port of GNU ld has always aspired to compatibility
14575 # with the native linker. However, as the warning in the GNU ld
14576 # block says, versions before 2.19.5* couldn't really create working
14577 # shared libraries, regardless of the interface used.
14578 case `$LD -v 2>&1` in
14579 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14580 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14581 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14582 *)
14583 lt_use_gnu_ld_interface=yes
14584 ;;
14585 esac
14586 ;;
14587 *)
14588 lt_use_gnu_ld_interface=yes
14589 ;;
14590 esac
14591 fi
14592
14593 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014594 # If archive_cmds runs LD, not CC, wlarc should be empty
14595 wlarc='${wl}'
14596
14597 # Set some defaults for GNU ld with shared library support. These
14598 # are reset later if shared libraries are not supported. Putting them
14599 # here allows them to be overridden if necessary.
14600 runpath_var=LD_RUN_PATH
14601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14602 export_dynamic_flag_spec='${wl}--export-dynamic'
14603 # ancient GNU ld didn't support --whole-archive et. al.
14604 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14605 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14606 else
14607 whole_archive_flag_spec=
14608 fi
14609 supports_anon_versioning=no
14610 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014611 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14615 *\ 2.11.*) ;; # other 2.11 versions
14616 *) supports_anon_versioning=yes ;;
14617 esac
14618
14619 # See if GNU ld supports shared libraries.
14620 case $host_os in
14621 aix[3-9]*)
14622 # On AIX/PPC, the GNU linker is very broken
14623 if test "$host_cpu" != ia64; then
14624 ld_shlibs=no
14625 cat <<_LT_EOF 1>&2
14626
cristy0c60a692010-11-04 01:09:47 +000014627*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014628*** to be unable to reliably create shared libraries on AIX.
14629*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014630*** really care for shared libraries, you may want to install binutils
14631*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14632*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014633
14634_LT_EOF
14635 fi
14636 ;;
14637
14638 amigaos*)
14639 case $host_cpu in
14640 powerpc)
14641 # see comment about AmigaOS4 .so support
14642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643 archive_expsym_cmds=''
14644 ;;
14645 m68k)
14646 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)'
14647 hardcode_libdir_flag_spec='-L$libdir'
14648 hardcode_minus_L=yes
14649 ;;
14650 esac
14651 ;;
14652
14653 beos*)
14654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14655 allow_undefined_flag=unsupported
14656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14657 # support --undefined. This deserves some investigation. FIXME
14658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659 else
14660 ld_shlibs=no
14661 fi
14662 ;;
14663
14664 cygwin* | mingw* | pw32* | cegcc*)
14665 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14666 # as there is no search path for DLLs.
14667 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014668 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014669 allow_undefined_flag=unsupported
14670 always_export_symbols=no
14671 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014672 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'
14673 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 +000014674
14675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14677 # If the export-symbols file already is a .def file (1st line
14678 # is EXPORTS), use it as is; otherwise, prepend...
14679 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14680 cp $export_symbols $output_objdir/$soname.def;
14681 else
14682 echo EXPORTS > $output_objdir/$soname.def;
14683 cat $export_symbols >> $output_objdir/$soname.def;
14684 fi~
14685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14686 else
14687 ld_shlibs=no
14688 fi
14689 ;;
14690
cristy0c60a692010-11-04 01:09:47 +000014691 haiku*)
14692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14693 link_all_deplibs=yes
14694 ;;
14695
cristy73bd4a52010-10-05 11:24:23 +000014696 interix[3-9]*)
14697 hardcode_direct=no
14698 hardcode_shlibpath_var=no
14699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14700 export_dynamic_flag_spec='${wl}-E'
14701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14702 # Instead, shared libraries are loaded at an image base (0x10000000 by
14703 # default) and relocated if they conflict, which is a slow very memory
14704 # consuming and fragmenting process. To avoid this, we pick a random,
14705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14706 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14708 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'
14709 ;;
14710
cristy0c60a692010-11-04 01:09:47 +000014711 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014712 tmp_diet=no
14713 if test "$host_os" = linux-dietlibc; then
14714 case $cc_basename in
14715 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14716 esac
14717 fi
14718 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14719 && test "$tmp_diet" = no
14720 then
cristyda16f162011-02-19 23:52:17 +000014721 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014722 tmp_sharedflag='-shared'
14723 case $cc_basename,$host_cpu in
14724 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014725 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 +000014726 tmp_addflag=' $pic_flag'
14727 ;;
cristy0c60a692010-11-04 01:09:47 +000014728 pgf77* | pgf90* | pgf95* | pgfortran*)
14729 # Portland Group f77 and f90 compilers
14730 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 +000014731 tmp_addflag=' $pic_flag -Mnomain' ;;
14732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14733 tmp_addflag=' -i_dynamic' ;;
14734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14735 tmp_addflag=' -i_dynamic -nofor_main' ;;
14736 ifc* | ifort*) # Intel Fortran compiler
14737 tmp_addflag=' -nofor_main' ;;
14738 lf95*) # Lahey Fortran 8.1
14739 whole_archive_flag_spec=
14740 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014741 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014742 tmp_sharedflag='-qmkshrobj'
14743 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014744 nvcc*) # Cuda Compiler Driver 2.2
14745 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'
14746 compiler_needs_object=yes
14747 ;;
cristy73bd4a52010-10-05 11:24:23 +000014748 esac
14749 case `$CC -V 2>&1 | sed 5q` in
14750 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014751 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 +000014752 compiler_needs_object=yes
14753 tmp_sharedflag='-G' ;;
14754 *Sun\ F*) # Sun Fortran 8.3
14755 tmp_sharedflag='-G' ;;
14756 esac
14757 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758
14759 if test "x$supports_anon_versioning" = xyes; then
14760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14762 echo "local: *; };" >> $output_objdir/$libname.ver~
14763 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14764 fi
14765
14766 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014767 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014768 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14769 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014771 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014772 if test "x$supports_anon_versioning" = xyes; then
14773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14775 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014776 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014777 fi
14778 ;;
14779 esac
14780 else
14781 ld_shlibs=no
14782 fi
14783 ;;
14784
14785 netbsd*)
14786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14787 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14788 wlarc=
14789 else
cristyda16f162011-02-19 23:52:17 +000014790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 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 +000014792 fi
14793 ;;
14794
14795 solaris*)
14796 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14797 ld_shlibs=no
14798 cat <<_LT_EOF 1>&2
14799
14800*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14801*** create shared libraries on Solaris systems. Therefore, libtool
14802*** is disabling shared libraries support. We urge you to upgrade GNU
14803*** binutils to release 2.9.1 or newer. Another option is to modify
14804*** your PATH or compiler configuration so that the native linker is
14805*** used, and then restart.
14806
14807_LT_EOF
14808 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810 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 +000014811 else
14812 ld_shlibs=no
14813 fi
14814 ;;
14815
14816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14817 case `$LD -v 2>&1` in
14818 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14819 ld_shlibs=no
14820 cat <<_LT_EOF 1>&2
14821
14822*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14823*** reliably create shared libraries on SCO systems. Therefore, libtool
14824*** is disabling shared libraries support. We urge you to upgrade GNU
14825*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14826*** your PATH or compiler configuration so that the native linker is
14827*** used, and then restart.
14828
14829_LT_EOF
14830 ;;
14831 *)
14832 # For security reasons, it is highly recommended that you always
14833 # use absolute paths for naming shared libraries, and exclude the
14834 # DT_RUNPATH tag from executables and libraries. But doing so
14835 # requires that you compile everything twice, which is a pain.
14836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14840 else
14841 ld_shlibs=no
14842 fi
14843 ;;
14844 esac
14845 ;;
14846
14847 sunos4*)
14848 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14849 wlarc=
14850 hardcode_direct=yes
14851 hardcode_shlibpath_var=no
14852 ;;
14853
14854 *)
14855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857 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 +000014858 else
14859 ld_shlibs=no
14860 fi
14861 ;;
14862 esac
14863
14864 if test "$ld_shlibs" = no; then
14865 runpath_var=
14866 hardcode_libdir_flag_spec=
14867 export_dynamic_flag_spec=
14868 whole_archive_flag_spec=
14869 fi
14870 else
14871 # PORTME fill in a description of your system's linker (not GNU ld)
14872 case $host_os in
14873 aix3*)
14874 allow_undefined_flag=unsupported
14875 always_export_symbols=yes
14876 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'
14877 # Note: this linker hardcodes the directories in LIBPATH if there
14878 # are no directories specified by -L.
14879 hardcode_minus_L=yes
14880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14881 # Neither direct hardcoding nor static linking is supported with a
14882 # broken collect2.
14883 hardcode_direct=unsupported
14884 fi
14885 ;;
14886
14887 aix[4-9]*)
14888 if test "$host_cpu" = ia64; then
14889 # On IA64, the linker does run time linking by default, so we don't
14890 # have to do anything special.
14891 aix_use_runtimelinking=no
14892 exp_sym_flag='-Bexport'
14893 no_entry_flag=""
14894 else
14895 # If we're using GNU nm, then we don't want the "-C" option.
14896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014897 # Also, AIX nm treats weak defined symbols like other global
14898 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014900 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 +000014901 else
14902 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'
14903 fi
14904 aix_use_runtimelinking=no
14905
14906 # Test if we are trying to use run time linking or normal
14907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14908 # need to do runtime linking.
14909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14910 for ld_flag in $LDFLAGS; do
14911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14912 aix_use_runtimelinking=yes
14913 break
14914 fi
14915 done
14916 ;;
14917 esac
14918
14919 exp_sym_flag='-bexport'
14920 no_entry_flag='-bnoentry'
14921 fi
14922
14923 # When large executables or shared objects are built, AIX ld can
14924 # have problems creating the table of contents. If linking a library
14925 # or program results in "error TOC overflow" add -mminimal-toc to
14926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14928
14929 archive_cmds=''
14930 hardcode_direct=yes
14931 hardcode_direct_absolute=yes
14932 hardcode_libdir_separator=':'
14933 link_all_deplibs=yes
14934 file_list_spec='${wl}-f,'
14935
14936 if test "$GCC" = yes; then
14937 case $host_os in aix4.[012]|aix4.[012].*)
14938 # We only want to do this on AIX 4.2 and lower, the check
14939 # below for broken collect2 doesn't work under 4.3+
14940 collect2name=`${CC} -print-prog-name=collect2`
14941 if test -f "$collect2name" &&
14942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14943 then
14944 # We have reworked collect2
14945 :
14946 else
14947 # We have old collect2
14948 hardcode_direct=unsupported
14949 # It fails to find uninstalled libraries when the uninstalled
14950 # path is not listed in the libpath. Setting hardcode_minus_L
14951 # to unsupported forces relinking
14952 hardcode_minus_L=yes
14953 hardcode_libdir_flag_spec='-L$libdir'
14954 hardcode_libdir_separator=
14955 fi
14956 ;;
14957 esac
14958 shared_flag='-shared'
14959 if test "$aix_use_runtimelinking" = yes; then
14960 shared_flag="$shared_flag "'${wl}-G'
14961 fi
14962 else
14963 # not using gcc
14964 if test "$host_cpu" = ia64; then
14965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14966 # chokes on -Wl,-G. The following line is correct:
14967 shared_flag='-G'
14968 else
14969 if test "$aix_use_runtimelinking" = yes; then
14970 shared_flag='${wl}-G'
14971 else
14972 shared_flag='${wl}-bM:SRE'
14973 fi
14974 fi
14975 fi
14976
14977 export_dynamic_flag_spec='${wl}-bexpall'
14978 # It seems that -bexpall does not export symbols beginning with
14979 # underscore (_), so it is better to generate a list of symbols to export.
14980 always_export_symbols=yes
14981 if test "$aix_use_runtimelinking" = yes; then
14982 # Warning - without using the other runtime loading flags (-brtl),
14983 # -berok will link without error, but may produce a broken library.
14984 allow_undefined_flag='-berok'
14985 # Determine the default libpath from the value encoded in an
14986 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014987 if test "${lt_cv_aix_libpath+set}" = set; then
14988 aix_libpath=$lt_cv_aix_libpath
14989else
14990 if ${lt_cv_aix_libpath_+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014994/* end confdefs.h. */
14995
14996int
14997main ()
14998{
14999
15000 ;
15001 return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005
cristyda16f162011-02-19 23:52:17 +000015006 lt_aix_libpath_sed='
15007 /Import File Strings/,/^$/ {
15008 /^0/ {
15009 s/^0 *\([^ ]*\) *$/\1/
15010 p
15011 }
15012 }'
15013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014 # Check for a 64-bit object if we didn't find anything.
15015 if test -z "$lt_cv_aix_libpath_"; then
15016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017 fi
cristy73bd4a52010-10-05 11:24:23 +000015018fi
15019rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015021 if test -z "$lt_cv_aix_libpath_"; then
15022 lt_cv_aix_libpath_="/usr/lib:/lib"
15023 fi
15024
15025fi
15026
15027 aix_libpath=$lt_cv_aix_libpath_
15028fi
cristy73bd4a52010-10-05 11:24:23 +000015029
15030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015031 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 +000015032 else
15033 if test "$host_cpu" = ia64; then
15034 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15035 allow_undefined_flag="-z nodefs"
15036 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"
15037 else
15038 # Determine the default libpath from the value encoded in an
15039 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015040 if test "${lt_cv_aix_libpath+set}" = set; then
15041 aix_libpath=$lt_cv_aix_libpath
15042else
15043 if ${lt_cv_aix_libpath_+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045else
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015047/* end confdefs.h. */
15048
15049int
15050main ()
15051{
15052
15053 ;
15054 return 0;
15055}
15056_ACEOF
15057if ac_fn_c_try_link "$LINENO"; then :
15058
cristyda16f162011-02-19 23:52:17 +000015059 lt_aix_libpath_sed='
15060 /Import File Strings/,/^$/ {
15061 /^0/ {
15062 s/^0 *\([^ ]*\) *$/\1/
15063 p
15064 }
15065 }'
15066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067 # Check for a 64-bit object if we didn't find anything.
15068 if test -z "$lt_cv_aix_libpath_"; then
15069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15070 fi
cristy73bd4a52010-10-05 11:24:23 +000015071fi
15072rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015074 if test -z "$lt_cv_aix_libpath_"; then
15075 lt_cv_aix_libpath_="/usr/lib:/lib"
15076 fi
15077
15078fi
15079
15080 aix_libpath=$lt_cv_aix_libpath_
15081fi
cristy73bd4a52010-10-05 11:24:23 +000015082
15083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15084 # Warning - without using the other run time loading flags,
15085 # -berok will link without error, but may produce a broken library.
15086 no_undefined_flag=' ${wl}-bernotok'
15087 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015088 if test "$with_gnu_ld" = yes; then
15089 # We only use this code for GNU lds that support --whole-archive.
15090 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15091 else
15092 # Exported symbols can be pulled into shared objects from archives
15093 whole_archive_flag_spec='$convenience'
15094 fi
cristy73bd4a52010-10-05 11:24:23 +000015095 archive_cmds_need_lc=yes
15096 # This is similar to how AIX traditionally builds its shared libraries.
15097 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'
15098 fi
15099 fi
15100 ;;
15101
15102 amigaos*)
15103 case $host_cpu in
15104 powerpc)
15105 # see comment about AmigaOS4 .so support
15106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107 archive_expsym_cmds=''
15108 ;;
15109 m68k)
15110 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)'
15111 hardcode_libdir_flag_spec='-L$libdir'
15112 hardcode_minus_L=yes
15113 ;;
15114 esac
15115 ;;
15116
15117 bsdi[45]*)
15118 export_dynamic_flag_spec=-rdynamic
15119 ;;
15120
15121 cygwin* | mingw* | pw32* | cegcc*)
15122 # When not using gcc, we currently assume that we are using
15123 # Microsoft Visual C++.
15124 # hardcode_libdir_flag_spec is actually meaningless, as there is
15125 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015126 case $cc_basename in
15127 cl*)
15128 # Native MSVC
15129 hardcode_libdir_flag_spec=' '
15130 allow_undefined_flag=unsupported
15131 always_export_symbols=yes
15132 file_list_spec='@'
15133 # Tell ltmain to make .lib files, not .a files.
15134 libext=lib
15135 # Tell ltmain to make .dll files, not .so files.
15136 shrext_cmds=".dll"
15137 # FIXME: Setting linknames here is a bad hack.
15138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15140 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15141 else
15142 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15143 fi~
15144 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15145 linknames='
15146 # The linker will not automatically build a static lib if we build a DLL.
15147 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15148 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015149 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15151 # Don't use ranlib
15152 old_postinstall_cmds='chmod 644 $oldlib'
15153 postlink_cmds='lt_outputfile="@OUTPUT@"~
15154 lt_tool_outputfile="@TOOL_OUTPUT@"~
15155 case $lt_outputfile in
15156 *.exe|*.EXE) ;;
15157 *)
15158 lt_outputfile="$lt_outputfile.exe"
15159 lt_tool_outputfile="$lt_tool_outputfile.exe"
15160 ;;
15161 esac~
15162 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15163 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15164 $RM "$lt_outputfile.manifest";
15165 fi'
15166 ;;
15167 *)
15168 # Assume MSVC wrapper
15169 hardcode_libdir_flag_spec=' '
15170 allow_undefined_flag=unsupported
15171 # Tell ltmain to make .lib files, not .a files.
15172 libext=lib
15173 # Tell ltmain to make .dll files, not .so files.
15174 shrext_cmds=".dll"
15175 # FIXME: Setting linknames here is a bad hack.
15176 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15177 # The linker will automatically build a .lib file if we build a DLL.
15178 old_archive_from_new_cmds='true'
15179 # FIXME: Should let the user specify the lib program.
15180 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15181 enable_shared_with_static_runtimes=yes
15182 ;;
15183 esac
cristy73bd4a52010-10-05 11:24:23 +000015184 ;;
15185
15186 darwin* | rhapsody*)
15187
15188
15189 archive_cmds_need_lc=no
15190 hardcode_direct=no
15191 hardcode_automatic=yes
15192 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015193 if test "$lt_cv_ld_force_load" = "yes"; then
15194 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 +000015195
cristy0c60a692010-11-04 01:09:47 +000015196 else
15197 whole_archive_flag_spec=''
15198 fi
cristy73bd4a52010-10-05 11:24:23 +000015199 link_all_deplibs=yes
15200 allow_undefined_flag="$_lt_dar_allow_undefined"
15201 case $cc_basename in
15202 ifort*) _lt_dar_can_shared=yes ;;
15203 *) _lt_dar_can_shared=$GCC ;;
15204 esac
15205 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015206 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015207 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15208 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15209 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}"
15210 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}"
15211
15212 else
15213 ld_shlibs=no
15214 fi
15215
15216 ;;
15217
15218 dgux*)
15219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_libdir_flag_spec='-L$libdir'
15221 hardcode_shlibpath_var=no
15222 ;;
15223
cristy73bd4a52010-10-05 11:24:23 +000015224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15225 # support. Future versions do this automatically, but an explicit c++rt0.o
15226 # does not break anything, and helps significantly (at the cost of a little
15227 # extra space).
15228 freebsd2.2*)
15229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15230 hardcode_libdir_flag_spec='-R$libdir'
15231 hardcode_direct=yes
15232 hardcode_shlibpath_var=no
15233 ;;
15234
15235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015236 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15238 hardcode_direct=yes
15239 hardcode_minus_L=yes
15240 hardcode_shlibpath_var=no
15241 ;;
15242
15243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15244 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015246 hardcode_libdir_flag_spec='-R$libdir'
15247 hardcode_direct=yes
15248 hardcode_shlibpath_var=no
15249 ;;
15250
15251 hpux9*)
15252 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015253 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 +000015254 else
15255 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'
15256 fi
15257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15258 hardcode_libdir_separator=:
15259 hardcode_direct=yes
15260
15261 # hardcode_minus_L: Not really in the search PATH,
15262 # but as the default location of the library.
15263 hardcode_minus_L=yes
15264 export_dynamic_flag_spec='${wl}-E'
15265 ;;
15266
15267 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015269 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 +000015270 else
15271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15272 fi
15273 if test "$with_gnu_ld" = no; then
15274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015275 hardcode_libdir_separator=:
15276 hardcode_direct=yes
15277 hardcode_direct_absolute=yes
15278 export_dynamic_flag_spec='${wl}-E'
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L=yes
15282 fi
15283 ;;
15284
15285 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015287 case $host_cpu in
15288 hppa*64*)
15289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15290 ;;
15291 ia64*)
cristyda16f162011-02-19 23:52:17 +000015292 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015293 ;;
15294 *)
cristyda16f162011-02-19 23:52:17 +000015295 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 +000015296 ;;
15297 esac
15298 else
15299 case $host_cpu in
15300 hppa*64*)
15301 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15302 ;;
15303 ia64*)
15304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305 ;;
15306 *)
cristy0c60a692010-11-04 01:09:47 +000015307
15308 # Older versions of the 11.00 compiler do not understand -b yet
15309 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15311$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015312if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015313 $as_echo_n "(cached) " >&6
15314else
15315 lt_cv_prog_compiler__b=no
15316 save_LDFLAGS="$LDFLAGS"
15317 LDFLAGS="$LDFLAGS -b"
15318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15320 # The linker can only warn and ignore the option if not recognized
15321 # So say no if there are warnings
15322 if test -s conftest.err; then
15323 # Append any errors to the config.log.
15324 cat conftest.err 1>&5
15325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15327 if diff conftest.exp conftest.er2 >/dev/null; then
15328 lt_cv_prog_compiler__b=yes
15329 fi
15330 else
15331 lt_cv_prog_compiler__b=yes
15332 fi
15333 fi
15334 $RM -r conftest*
15335 LDFLAGS="$save_LDFLAGS"
15336
15337fi
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15339$as_echo "$lt_cv_prog_compiler__b" >&6; }
15340
15341if test x"$lt_cv_prog_compiler__b" = xyes; then
15342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15343else
15344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15345fi
15346
cristy73bd4a52010-10-05 11:24:23 +000015347 ;;
15348 esac
15349 fi
15350 if test "$with_gnu_ld" = no; then
15351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15352 hardcode_libdir_separator=:
15353
15354 case $host_cpu in
15355 hppa*64*|ia64*)
15356 hardcode_direct=no
15357 hardcode_shlibpath_var=no
15358 ;;
15359 *)
15360 hardcode_direct=yes
15361 hardcode_direct_absolute=yes
15362 export_dynamic_flag_spec='${wl}-E'
15363
15364 # hardcode_minus_L: Not really in the search PATH,
15365 # but as the default location of the library.
15366 hardcode_minus_L=yes
15367 ;;
15368 esac
15369 fi
15370 ;;
15371
15372 irix5* | irix6* | nonstopux*)
15373 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015374 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 +000015375 # Try to use the -exported_symbol ld option, if it does not
15376 # work, assume that -exports_file does not work either and
15377 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015378 # This should be the same for all languages, so no per-tag cache variable.
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15380$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15381if ${lt_cv_irix_exported_symbol+:} false; then :
15382 $as_echo_n "(cached) " >&6
15383else
15384 save_LDFLAGS="$LDFLAGS"
15385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015387/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015388int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015389_ACEOF
15390if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015391 lt_cv_irix_exported_symbol=yes
15392else
15393 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015394fi
15395rm -f core conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015397 LDFLAGS="$save_LDFLAGS"
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15400$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15401 if test "$lt_cv_irix_exported_symbol" = yes; then
15402 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'
15403 fi
cristy73bd4a52010-10-05 11:24:23 +000015404 else
cristy0c60a692010-11-04 01:09:47 +000015405 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'
15406 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 +000015407 fi
15408 archive_cmds_need_lc='no'
15409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15410 hardcode_libdir_separator=:
15411 inherit_rpath=yes
15412 link_all_deplibs=yes
15413 ;;
15414
15415 netbsd*)
15416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15418 else
15419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15420 fi
15421 hardcode_libdir_flag_spec='-R$libdir'
15422 hardcode_direct=yes
15423 hardcode_shlibpath_var=no
15424 ;;
15425
15426 newsos6)
15427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_direct=yes
15429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15430 hardcode_libdir_separator=:
15431 hardcode_shlibpath_var=no
15432 ;;
15433
15434 *nto* | *qnx*)
15435 ;;
15436
15437 openbsd*)
15438 if test -f /usr/libexec/ld.so; then
15439 hardcode_direct=yes
15440 hardcode_shlibpath_var=no
15441 hardcode_direct_absolute=yes
15442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15446 export_dynamic_flag_spec='${wl}-E'
15447 else
15448 case $host_os in
15449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_libdir_flag_spec='-R$libdir'
15452 ;;
15453 *)
15454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15456 ;;
15457 esac
15458 fi
15459 else
15460 ld_shlibs=no
15461 fi
15462 ;;
15463
15464 os2*)
15465 hardcode_libdir_flag_spec='-L$libdir'
15466 hardcode_minus_L=yes
15467 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015468 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 +000015469 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15470 ;;
15471
15472 osf3*)
15473 if test "$GCC" = yes; then
15474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015475 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 +000015476 else
15477 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015478 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 +000015479 fi
15480 archive_cmds_need_lc='no'
15481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15482 hardcode_libdir_separator=:
15483 ;;
15484
15485 osf4* | osf5*) # as osf3* with the addition of -msym flag
15486 if test "$GCC" = yes; then
15487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015488 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 +000015489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15490 else
15491 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015492 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 +000015493 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 +000015494 $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 +000015495
15496 # Both c and cxx compiler support -rpath directly
15497 hardcode_libdir_flag_spec='-rpath $libdir'
15498 fi
15499 archive_cmds_need_lc='no'
15500 hardcode_libdir_separator=:
15501 ;;
15502
15503 solaris*)
15504 no_undefined_flag=' -z defs'
15505 if test "$GCC" = yes; then
15506 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015507 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 +000015508 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 +000015509 $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 +000015510 else
15511 case `$CC -V 2>&1` in
15512 *"Compilers 5.0"*)
15513 wlarc=''
15514 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15516 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15517 ;;
15518 *)
15519 wlarc='${wl}'
15520 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15522 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15523 ;;
15524 esac
15525 fi
15526 hardcode_libdir_flag_spec='-R$libdir'
15527 hardcode_shlibpath_var=no
15528 case $host_os in
15529 solaris2.[0-5] | solaris2.[0-5].*) ;;
15530 *)
15531 # The compiler driver will combine and reorder linker options,
15532 # but understands `-z linker_flag'. GCC discards it without `$wl',
15533 # but is careful enough not to reorder.
15534 # Supported since Solaris 2.6 (maybe 2.5.1?)
15535 if test "$GCC" = yes; then
15536 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15537 else
15538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15539 fi
15540 ;;
15541 esac
15542 link_all_deplibs=yes
15543 ;;
15544
15545 sunos4*)
15546 if test "x$host_vendor" = xsequent; then
15547 # Use $CC to link under sequent, because it throws in some extra .o
15548 # files that make .init and .fini sections work.
15549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15550 else
15551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15552 fi
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_direct=yes
15555 hardcode_minus_L=yes
15556 hardcode_shlibpath_var=no
15557 ;;
15558
15559 sysv4)
15560 case $host_vendor in
15561 sni)
15562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_direct=yes # is this really true???
15564 ;;
15565 siemens)
15566 ## LD is ld it makes a PLAMLIB
15567 ## CC just makes a GrossModule.
15568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15569 reload_cmds='$CC -r -o $output$reload_objs'
15570 hardcode_direct=no
15571 ;;
15572 motorola)
15573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15575 ;;
15576 esac
15577 runpath_var='LD_RUN_PATH'
15578 hardcode_shlibpath_var=no
15579 ;;
15580
15581 sysv4.3*)
15582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583 hardcode_shlibpath_var=no
15584 export_dynamic_flag_spec='-Bexport'
15585 ;;
15586
15587 sysv4*MP*)
15588 if test -d /usr/nec; then
15589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_shlibpath_var=no
15591 runpath_var=LD_RUN_PATH
15592 hardcode_runpath_var=yes
15593 ld_shlibs=yes
15594 fi
15595 ;;
15596
15597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15598 no_undefined_flag='${wl}-z,text'
15599 archive_cmds_need_lc=no
15600 hardcode_shlibpath_var=no
15601 runpath_var='LD_RUN_PATH'
15602
15603 if test "$GCC" = yes; then
15604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 else
15607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15609 fi
15610 ;;
15611
15612 sysv5* | sco3.2v5* | sco5v6*)
15613 # Note: We can NOT use -z defs as we might desire, because we do not
15614 # link with -lc, and that would cause any symbols used from libc to
15615 # always be unresolved, which means just about no library would
15616 # ever link correctly. If we're not using GNU ld we use -z text
15617 # though, which does catch some bad symbols but isn't as heavy-handed
15618 # as -z defs.
15619 no_undefined_flag='${wl}-z,text'
15620 allow_undefined_flag='${wl}-z,nodefs'
15621 archive_cmds_need_lc=no
15622 hardcode_shlibpath_var=no
15623 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15624 hardcode_libdir_separator=':'
15625 link_all_deplibs=yes
15626 export_dynamic_flag_spec='${wl}-Bexport'
15627 runpath_var='LD_RUN_PATH'
15628
15629 if test "$GCC" = yes; then
15630 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 else
15633 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 fi
15636 ;;
15637
15638 uts4*)
15639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640 hardcode_libdir_flag_spec='-L$libdir'
15641 hardcode_shlibpath_var=no
15642 ;;
15643
15644 *)
15645 ld_shlibs=no
15646 ;;
15647 esac
15648
15649 if test x$host_vendor = xsni; then
15650 case $host in
15651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15652 export_dynamic_flag_spec='${wl}-Blargedynsym'
15653 ;;
15654 esac
15655 fi
15656 fi
15657
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15659$as_echo "$ld_shlibs" >&6; }
15660test "$ld_shlibs" = no && can_build_shared=no
15661
15662with_gnu_ld=$with_gnu_ld
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678#
15679# Do we need to explicitly link libc?
15680#
15681case "x$archive_cmds_need_lc" in
15682x|xyes)
15683 # Assume -lc should be added
15684 archive_cmds_need_lc=yes
15685
15686 if test "$enable_shared" = yes && test "$GCC" = yes; then
15687 case $archive_cmds in
15688 *'~'*)
15689 # FIXME: we may have to deal with multi-command sequences.
15690 ;;
15691 '$CC '*)
15692 # Test whether the compiler implicitly links with -lc since on some
15693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15694 # to ld, don't add -lc before -lgcc.
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015697if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015698 $as_echo_n "(cached) " >&6
15699else
15700 $RM conftest*
15701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015702
cristy0c60a692010-11-04 01:09:47 +000015703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015704 (eval $ac_compile) 2>&5
15705 ac_status=$?
15706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15707 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015708 soname=conftest
15709 lib=conftest
15710 libobjs=conftest.$ac_objext
15711 deplibs=
15712 wl=$lt_prog_compiler_wl
15713 pic_flag=$lt_prog_compiler_pic
15714 compiler_flags=-v
15715 linker_flags=-v
15716 verstring=
15717 output_objdir=.
15718 libname=conftest
15719 lt_save_allow_undefined_flag=$allow_undefined_flag
15720 allow_undefined_flag=
15721 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 +000015722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015726 then
15727 lt_cv_archive_cmds_need_lc=no
15728 else
15729 lt_cv_archive_cmds_need_lc=yes
15730 fi
15731 allow_undefined_flag=$lt_save_allow_undefined_flag
15732 else
15733 cat conftest.err 1>&5
15734 fi
15735 $RM conftest*
15736
15737fi
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15739$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015741 ;;
15742 esac
15743 fi
15744 ;;
15745esac
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
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
cristy73bd4a52010-10-05 11:24:23 +000015898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15899$as_echo_n "checking dynamic linker characteristics... " >&6; }
15900
15901if test "$GCC" = yes; then
15902 case $host_os in
15903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15904 *) lt_awk_arg="/^libraries:/" ;;
15905 esac
cristy0c60a692010-11-04 01:09:47 +000015906 case $host_os in
15907 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15908 *) lt_sed_strip_eq="s,=/,/,g" ;;
15909 esac
15910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15911 case $lt_search_path_spec in
15912 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015913 # if the path contains ";" then we assume it to be the separator
15914 # otherwise default to the standard path separator (i.e. ":") - it is
15915 # assumed that no part of a normal pathname contains ";" but that should
15916 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15918 ;;
15919 *)
15920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15921 ;;
15922 esac
cristy73bd4a52010-10-05 11:24:23 +000015923 # Ok, now we have the path, separated by spaces, we can step through it
15924 # and add multilib dir if necessary.
15925 lt_tmp_lt_search_path_spec=
15926 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15927 for lt_sys_path in $lt_search_path_spec; do
15928 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15930 else
15931 test -d "$lt_sys_path" && \
15932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15933 fi
15934 done
cristy0c60a692010-11-04 01:09:47 +000015935 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015936BEGIN {RS=" "; FS="/|\n";} {
15937 lt_foo="";
15938 lt_count=0;
15939 for (lt_i = NF; lt_i > 0; lt_i--) {
15940 if ($lt_i != "" && $lt_i != ".") {
15941 if ($lt_i == "..") {
15942 lt_count++;
15943 } else {
15944 if (lt_count == 0) {
15945 lt_foo="/" $lt_i lt_foo;
15946 } else {
15947 lt_count--;
15948 }
15949 }
15950 }
15951 }
15952 if (lt_foo != "") { lt_freq[lt_foo]++; }
15953 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15954}'`
cristy0c60a692010-11-04 01:09:47 +000015955 # AWK program above erroneously prepends '/' to C:/dos/paths
15956 # for these hosts.
15957 case $host_os in
15958 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15959 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15960 esac
15961 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015962else
15963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15964fi
15965library_names_spec=
15966libname_spec='lib$name'
15967soname_spec=
15968shrext_cmds=".so"
15969postinstall_cmds=
15970postuninstall_cmds=
15971finish_cmds=
15972finish_eval=
15973shlibpath_var=
15974shlibpath_overrides_runpath=unknown
15975version_type=none
15976dynamic_linker="$host_os ld.so"
15977sys_lib_dlsearch_path_spec="/lib /usr/lib"
15978need_lib_prefix=unknown
15979hardcode_into_libs=no
15980
15981# when you set need_version to no, make sure it does not cause -set_version
15982# flags to be left without arguments
15983need_version=unknown
15984
15985case $host_os in
15986aix3*)
cristy99bd5232011-12-07 14:38:20 +000015987 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15989 shlibpath_var=LIBPATH
15990
15991 # AIX 3 has no versioning support, so we append a major version to the name.
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 ;;
15994
15995aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015996 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015997 need_lib_prefix=no
15998 need_version=no
15999 hardcode_into_libs=yes
16000 if test "$host_cpu" = ia64; then
16001 # AIX 5 supports IA64
16002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 else
16005 # With GCC up to 2.95.x, collect2 would create an import file
16006 # for dependence libraries. The import file would start with
16007 # the line `#! .'. This would cause the generated library to
16008 # depend on `.', always an invalid library. This was fixed in
16009 # development snapshots of GCC prior to 3.0.
16010 case $host_os in
16011 aix4 | aix4.[01] | aix4.[01].*)
16012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013 echo ' yes '
16014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16015 :
16016 else
16017 can_build_shared=no
16018 fi
16019 ;;
16020 esac
16021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16022 # soname into executable. Probably we can add versioning support to
16023 # collect2, so additional links can be useful in future.
16024 if test "$aix_use_runtimelinking" = yes; then
16025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16026 # instead of lib<name>.a to let people know that these are not
16027 # typical AIX shared libraries.
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 else
16030 # We preserve .a as extension for shared libraries through AIX4.2
16031 # and later when we are not doing run time linking.
16032 library_names_spec='${libname}${release}.a $libname.a'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 fi
16035 shlibpath_var=LIBPATH
16036 fi
16037 ;;
16038
16039amigaos*)
16040 case $host_cpu in
16041 powerpc)
16042 # Since July 2007 AmigaOS4 officially supports .so libraries.
16043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 ;;
16046 m68k)
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016049 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 +000016050 ;;
16051 esac
16052 ;;
16053
16054beos*)
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16058 ;;
16059
16060bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016061 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016062 need_version=no
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16072 ;;
16073
16074cygwin* | mingw* | pw32* | cegcc*)
16075 version_type=windows
16076 shrext_cmds=".dll"
16077 need_version=no
16078 need_lib_prefix=no
16079
cristyda16f162011-02-19 23:52:17 +000016080 case $GCC,$cc_basename in
16081 yes,*)
16082 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016083 library_names_spec='$libname.dll.a'
16084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16085 postinstall_cmds='base_file=`basename \${file}`~
16086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16087 dldir=$destdir/`dirname \$dlpath`~
16088 test -d \$dldir || mkdir -p \$dldir~
16089 $install_prog $dir/$dlname \$dldir/$dlname~
16090 chmod a+x \$dldir/$dlname~
16091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16093 fi'
16094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16095 dlpath=$dir/\$dldll~
16096 $RM \$dlpath'
16097 shlibpath_overrides_runpath=yes
16098
16099 case $host_os in
16100 cygwin*)
16101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016103
16104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016105 ;;
16106 mingw* | cegcc*)
16107 # MinGW DLLs use traditional 'lib' prefix
16108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016109 ;;
16110 pw32*)
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
16112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113 ;;
16114 esac
cristyda16f162011-02-19 23:52:17 +000016115 dynamic_linker='Win32 ld.exe'
16116 ;;
16117
16118 *,cl*)
16119 # Native MSVC
16120 libname_spec='$name'
16121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122 library_names_spec='${libname}.dll.lib'
16123
16124 case $build_os in
16125 mingw*)
16126 sys_lib_search_path_spec=
16127 lt_save_ifs=$IFS
16128 IFS=';'
16129 for lt_path in $LIB
16130 do
16131 IFS=$lt_save_ifs
16132 # Let DOS variable expansion print the short 8.3 style file name.
16133 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16134 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16135 done
16136 IFS=$lt_save_ifs
16137 # Convert to MSYS style.
16138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16139 ;;
16140 cygwin*)
16141 # Convert to unix form, then to dos form, then back to unix form
16142 # but this time dos style (no spaces!) so that the unix form looks
16143 # like /cygdrive/c/PROGRA~1:/cygdr...
16144 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16145 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16146 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16147 ;;
16148 *)
16149 sys_lib_search_path_spec="$LIB"
16150 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16151 # It is most probably a Windows format PATH.
16152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16153 else
16154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16155 fi
16156 # FIXME: find the short name or the path components, as spaces are
16157 # common. (e.g. "Program Files" -> "PROGRA~1")
16158 ;;
16159 esac
16160
16161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16162 postinstall_cmds='base_file=`basename \${file}`~
16163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16164 dldir=$destdir/`dirname \$dlpath`~
16165 test -d \$dldir || mkdir -p \$dldir~
16166 $install_prog $dir/$dlname \$dldir/$dlname'
16167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16168 dlpath=$dir/\$dldll~
16169 $RM \$dlpath'
16170 shlibpath_overrides_runpath=yes
16171 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016172 ;;
16173
16174 *)
cristyda16f162011-02-19 23:52:17 +000016175 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016177 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016178 ;;
16179 esac
cristy73bd4a52010-10-05 11:24:23 +000016180 # FIXME: first we should search . and the directory the executable is in
16181 shlibpath_var=PATH
16182 ;;
16183
16184darwin* | rhapsody*)
16185 dynamic_linker="$host_os dyld"
16186 version_type=darwin
16187 need_lib_prefix=no
16188 need_version=no
16189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16190 soname_spec='${libname}${release}${major}$shared_ext'
16191 shlibpath_overrides_runpath=yes
16192 shlibpath_var=DYLD_LIBRARY_PATH
16193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16194
16195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16197 ;;
16198
16199dgux*)
cristy99bd5232011-12-07 14:38:20 +000016200 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016201 need_lib_prefix=no
16202 need_version=no
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 ;;
16207
cristy73bd4a52010-10-05 11:24:23 +000016208freebsd* | dragonfly*)
16209 # DragonFly does not have aout. When/if they implement a new
16210 # versioning mechanism, adjust this.
16211 if test -x /usr/bin/objformat; then
16212 objformat=`/usr/bin/objformat`
16213 else
16214 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016215 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016216 *) objformat=elf ;;
16217 esac
16218 fi
16219 version_type=freebsd-$objformat
16220 case $version_type in
16221 freebsd-elf*)
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16223 need_version=no
16224 need_lib_prefix=no
16225 ;;
16226 freebsd-*)
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16228 need_version=yes
16229 ;;
16230 esac
16231 shlibpath_var=LD_LIBRARY_PATH
16232 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016233 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016234 shlibpath_overrides_runpath=yes
16235 ;;
16236 freebsd3.[01]* | freebsdelf3.[01]*)
16237 shlibpath_overrides_runpath=yes
16238 hardcode_into_libs=yes
16239 ;;
16240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16242 shlibpath_overrides_runpath=no
16243 hardcode_into_libs=yes
16244 ;;
16245 *) # from 4.6 on, and DragonFly
16246 shlibpath_overrides_runpath=yes
16247 hardcode_into_libs=yes
16248 ;;
16249 esac
16250 ;;
16251
16252gnu*)
cristy99bd5232011-12-07 14:38:20 +000016253 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016254 need_lib_prefix=no
16255 need_version=no
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016259 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016260 hardcode_into_libs=yes
16261 ;;
16262
cristy0c60a692010-11-04 01:09:47 +000016263haiku*)
cristy99bd5232011-12-07 14:38:20 +000016264 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016265 need_lib_prefix=no
16266 need_version=no
16267 dynamic_linker="$host_os runtime_loader"
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LIBRARY_PATH
16271 shlibpath_overrides_runpath=yes
16272 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16273 hardcode_into_libs=yes
16274 ;;
16275
cristy73bd4a52010-10-05 11:24:23 +000016276hpux9* | hpux10* | hpux11*)
16277 # Give a soname corresponding to the major version so that dld.sl refuses to
16278 # link against other versions.
16279 version_type=sunos
16280 need_lib_prefix=no
16281 need_version=no
16282 case $host_cpu in
16283 ia64*)
16284 shrext_cmds='.so'
16285 hardcode_into_libs=yes
16286 dynamic_linker="$host_os dld.so"
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 if test "X$HPUX_IA64_MODE" = X32; then
16292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16293 else
16294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16295 fi
16296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16297 ;;
16298 hppa*64*)
16299 shrext_cmds='.sl'
16300 hardcode_into_libs=yes
16301 dynamic_linker="$host_os dld.sl"
16302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16308 ;;
16309 *)
16310 shrext_cmds='.sl'
16311 dynamic_linker="$host_os dld.sl"
16312 shlibpath_var=SHLIB_PATH
16313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 ;;
16317 esac
cristy0c60a692010-11-04 01:09:47 +000016318 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016319 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016320 # or fails outright, so override atomically:
16321 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016322 ;;
16323
16324interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016325 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016326 need_lib_prefix=no
16327 need_version=no
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=no
16333 hardcode_into_libs=yes
16334 ;;
16335
16336irix5* | irix6* | nonstopux*)
16337 case $host_os in
16338 nonstopux*) version_type=nonstopux ;;
16339 *)
16340 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016341 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016342 else
16343 version_type=irix
16344 fi ;;
16345 esac
16346 need_lib_prefix=no
16347 need_version=no
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16350 case $host_os in
16351 irix5* | nonstopux*)
16352 libsuff= shlibsuff=
16353 ;;
16354 *)
16355 case $LD in # libtool.m4 will add one of these switches to LD
16356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16357 libsuff= shlibsuff= libmagic=32-bit;;
16358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16359 libsuff=32 shlibsuff=N32 libmagic=N32;;
16360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16361 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16362 *) libsuff= shlibsuff= libmagic=never-match;;
16363 esac
16364 ;;
16365 esac
16366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16367 shlibpath_overrides_runpath=no
16368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16370 hardcode_into_libs=yes
16371 ;;
16372
16373# No shared lib support for Linux oldld, aout, or coff.
16374linux*oldld* | linux*aout* | linux*coff*)
16375 dynamic_linker=no
16376 ;;
16377
cristy99bd5232011-12-07 14:38:20 +000016378# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016379linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016380 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016381 need_lib_prefix=no
16382 need_version=no
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016388
cristy73bd4a52010-10-05 11:24:23 +000016389 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016390 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016391 $as_echo_n "(cached) " >&6
16392else
16393 lt_cv_shlibpath_overrides_runpath=no
16394 save_LDFLAGS=$LDFLAGS
16395 save_libdir=$libdir
16396 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16397 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016399/* end confdefs.h. */
16400
16401int
16402main ()
16403{
16404
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409if ac_fn_c_try_link "$LINENO"; then :
16410 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016411 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016412fi
16413fi
16414rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016416 LDFLAGS=$save_LDFLAGS
16417 libdir=$save_libdir
16418
16419fi
16420
16421 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016422
16423 # This implies no fast_install, which is unacceptable.
16424 # Some rework will be needed to allow for fast_install
16425 # before this can be enabled.
16426 hardcode_into_libs=yes
16427
16428 # Add ABI-specific directories to the system library path.
16429 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16430
16431 # Append ld.so.conf contents to the search path
16432 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016433 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 +000016434 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016435
cristy73bd4a52010-10-05 11:24:23 +000016436 fi
16437
16438 # We used to test for /lib/ld.so.1 and disable shared libraries on
16439 # powerpc, because MkLinux only supported shared libraries with the
16440 # GNU dynamic linker. Since this was broken with cross compilers,
16441 # most powerpc-linux boxes support dynamic linking these days and
16442 # people can always --disable-shared, the test was removed, and we
16443 # assume the GNU/Linux dynamic linker is in use.
16444 dynamic_linker='GNU/Linux ld.so'
16445 ;;
16446
16447netbsd*)
16448 version_type=sunos
16449 need_lib_prefix=no
16450 need_version=no
16451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16454 dynamic_linker='NetBSD (a.out) ld.so'
16455 else
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16457 soname_spec='${libname}${release}${shared_ext}$major'
16458 dynamic_linker='NetBSD ld.elf_so'
16459 fi
16460 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=yes
16462 hardcode_into_libs=yes
16463 ;;
16464
16465newsos6)
cristy99bd5232011-12-07 14:38:20 +000016466 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=yes
16470 ;;
16471
16472*nto* | *qnx*)
16473 version_type=qnx
16474 need_lib_prefix=no
16475 need_version=no
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 shlibpath_var=LD_LIBRARY_PATH
16479 shlibpath_overrides_runpath=no
16480 hardcode_into_libs=yes
16481 dynamic_linker='ldqnx.so'
16482 ;;
16483
16484openbsd*)
16485 version_type=sunos
16486 sys_lib_dlsearch_path_spec="/usr/lib"
16487 need_lib_prefix=no
16488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16489 case $host_os in
16490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16491 *) need_version=no ;;
16492 esac
16493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16497 case $host_os in
16498 openbsd2.[89] | openbsd2.[89].*)
16499 shlibpath_overrides_runpath=no
16500 ;;
16501 *)
16502 shlibpath_overrides_runpath=yes
16503 ;;
16504 esac
16505 else
16506 shlibpath_overrides_runpath=yes
16507 fi
16508 ;;
16509
16510os2*)
16511 libname_spec='$name'
16512 shrext_cmds=".dll"
16513 need_lib_prefix=no
16514 library_names_spec='$libname${shared_ext} $libname.a'
16515 dynamic_linker='OS/2 ld.exe'
16516 shlibpath_var=LIBPATH
16517 ;;
16518
16519osf3* | osf4* | osf5*)
16520 version_type=osf
16521 need_lib_prefix=no
16522 need_version=no
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16528 ;;
16529
16530rdos*)
16531 dynamic_linker=no
16532 ;;
16533
16534solaris*)
cristy99bd5232011-12-07 14:38:20 +000016535 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016536 need_lib_prefix=no
16537 need_version=no
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539 soname_spec='${libname}${release}${shared_ext}$major'
16540 shlibpath_var=LD_LIBRARY_PATH
16541 shlibpath_overrides_runpath=yes
16542 hardcode_into_libs=yes
16543 # ldd complains unless libraries are executable
16544 postinstall_cmds='chmod +x $lib'
16545 ;;
16546
16547sunos4*)
16548 version_type=sunos
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 if test "$with_gnu_ld" = yes; then
16554 need_lib_prefix=no
16555 fi
16556 need_version=yes
16557 ;;
16558
16559sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016560 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 case $host_vendor in
16565 sni)
16566 shlibpath_overrides_runpath=no
16567 need_lib_prefix=no
16568 runpath_var=LD_RUN_PATH
16569 ;;
16570 siemens)
16571 need_lib_prefix=no
16572 ;;
16573 motorola)
16574 need_lib_prefix=no
16575 need_version=no
16576 shlibpath_overrides_runpath=no
16577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16578 ;;
16579 esac
16580 ;;
16581
16582sysv4*MP*)
16583 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16586 soname_spec='$libname${shared_ext}.$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 fi
16589 ;;
16590
16591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16592 version_type=freebsd-elf
16593 need_lib_prefix=no
16594 need_version=no
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes
16599 hardcode_into_libs=yes
16600 if test "$with_gnu_ld" = yes; then
16601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16602 else
16603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16604 case $host_os in
16605 sco3.2v5*)
16606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16607 ;;
16608 esac
16609 fi
16610 sys_lib_dlsearch_path_spec='/usr/lib'
16611 ;;
16612
16613tpf*)
16614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016615 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 shlibpath_var=LD_LIBRARY_PATH
16620 shlibpath_overrides_runpath=no
16621 hardcode_into_libs=yes
16622 ;;
16623
16624uts4*)
cristy99bd5232011-12-07 14:38:20 +000016625 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 shlibpath_var=LD_LIBRARY_PATH
16629 ;;
16630
16631*)
16632 dynamic_linker=no
16633 ;;
16634esac
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16636$as_echo "$dynamic_linker" >&6; }
16637test "$dynamic_linker" = no && can_build_shared=no
16638
16639variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16640if test "$GCC" = yes; then
16641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16642fi
16643
16644if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16646fi
16647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16649fi
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
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
cristy0c60a692010-11-04 01:09:47 +000016737
16738
16739
16740
16741
cristy73bd4a52010-10-05 11:24:23 +000016742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16743$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16744hardcode_action=
16745if test -n "$hardcode_libdir_flag_spec" ||
16746 test -n "$runpath_var" ||
16747 test "X$hardcode_automatic" = "Xyes" ; then
16748
16749 # We can hardcode non-existent directories.
16750 if test "$hardcode_direct" != no &&
16751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16752 # have to relink, otherwise we might link with an installed library
16753 # when we should be linking with a yet-to-be-installed one
16754 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16755 test "$hardcode_minus_L" != no; then
16756 # Linking always hardcodes the temporary library directory.
16757 hardcode_action=relink
16758 else
16759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16760 hardcode_action=immediate
16761 fi
16762else
16763 # We cannot hardcode anything, or else we can only hardcode existing
16764 # directories.
16765 hardcode_action=unsupported
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16768$as_echo "$hardcode_action" >&6; }
16769
16770if test "$hardcode_action" = relink ||
16771 test "$inherit_rpath" = yes; then
16772 # Fast installation is not supported
16773 enable_fast_install=no
16774elif test "$shlibpath_overrides_runpath" = yes ||
16775 test "$enable_shared" = no; then
16776 # Fast installation is not necessary
16777 enable_fast_install=needless
16778fi
16779
16780
16781
16782
16783
16784
16785 if test "x$enable_dlopen" != xyes; then
16786 enable_dlopen=unknown
16787 enable_dlopen_self=unknown
16788 enable_dlopen_self_static=unknown
16789else
16790 lt_cv_dlopen=no
16791 lt_cv_dlopen_libs=
16792
16793 case $host_os in
16794 beos*)
16795 lt_cv_dlopen="load_add_on"
16796 lt_cv_dlopen_libs=
16797 lt_cv_dlopen_self=yes
16798 ;;
16799
16800 mingw* | pw32* | cegcc*)
16801 lt_cv_dlopen="LoadLibrary"
16802 lt_cv_dlopen_libs=
16803 ;;
16804
16805 cygwin*)
16806 lt_cv_dlopen="dlopen"
16807 lt_cv_dlopen_libs=
16808 ;;
16809
16810 darwin*)
16811 # if libdl is installed we need to link against it
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16813$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016814if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016815 $as_echo_n "(cached) " >&6
16816else
16817 ac_check_lib_save_LIBS=$LIBS
16818LIBS="-ldl $LIBS"
16819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h. */
16821
16822/* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16825#ifdef __cplusplus
16826extern "C"
16827#endif
16828char dlopen ();
16829int
16830main ()
16831{
16832return dlopen ();
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837if ac_fn_c_try_link "$LINENO"; then :
16838 ac_cv_lib_dl_dlopen=yes
16839else
16840 ac_cv_lib_dl_dlopen=no
16841fi
16842rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844LIBS=$ac_check_lib_save_LIBS
16845fi
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16847$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016848if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16850else
16851
16852 lt_cv_dlopen="dyld"
16853 lt_cv_dlopen_libs=
16854 lt_cv_dlopen_self=yes
16855
16856fi
16857
16858 ;;
16859
16860 *)
16861 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016862if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016863 lt_cv_dlopen="shl_load"
16864else
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16866$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016867if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016868 $as_echo_n "(cached) " >&6
16869else
16870 ac_check_lib_save_LIBS=$LIBS
16871LIBS="-ldld $LIBS"
16872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873/* end confdefs.h. */
16874
16875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878#ifdef __cplusplus
16879extern "C"
16880#endif
16881char shl_load ();
16882int
16883main ()
16884{
16885return shl_load ();
16886 ;
16887 return 0;
16888}
16889_ACEOF
16890if ac_fn_c_try_link "$LINENO"; then :
16891 ac_cv_lib_dld_shl_load=yes
16892else
16893 ac_cv_lib_dld_shl_load=no
16894fi
16895rm -f core conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897LIBS=$ac_check_lib_save_LIBS
16898fi
16899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16900$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016901if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016902 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16903else
16904 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016905if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016906 lt_cv_dlopen="dlopen"
16907else
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16909$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016910if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016911 $as_echo_n "(cached) " >&6
16912else
16913 ac_check_lib_save_LIBS=$LIBS
16914LIBS="-ldl $LIBS"
16915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h. */
16917
16918/* Override any GCC internal prototype to avoid an error.
16919 Use char because int might match the return type of a GCC
16920 builtin and then its argument prototype would still apply. */
16921#ifdef __cplusplus
16922extern "C"
16923#endif
16924char dlopen ();
16925int
16926main ()
16927{
16928return dlopen ();
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933if ac_fn_c_try_link "$LINENO"; then :
16934 ac_cv_lib_dl_dlopen=yes
16935else
16936 ac_cv_lib_dl_dlopen=no
16937fi
16938rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16940LIBS=$ac_check_lib_save_LIBS
16941fi
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16943$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016944if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16946else
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16948$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016949if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016950 $as_echo_n "(cached) " >&6
16951else
16952 ac_check_lib_save_LIBS=$LIBS
16953LIBS="-lsvld $LIBS"
16954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h. */
16956
16957/* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16960#ifdef __cplusplus
16961extern "C"
16962#endif
16963char dlopen ();
16964int
16965main ()
16966{
16967return dlopen ();
16968 ;
16969 return 0;
16970}
16971_ACEOF
16972if ac_fn_c_try_link "$LINENO"; then :
16973 ac_cv_lib_svld_dlopen=yes
16974else
16975 ac_cv_lib_svld_dlopen=no
16976fi
16977rm -f core conftest.err conftest.$ac_objext \
16978 conftest$ac_exeext conftest.$ac_ext
16979LIBS=$ac_check_lib_save_LIBS
16980fi
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16982$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016983if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16985else
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16987$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016988if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016989 $as_echo_n "(cached) " >&6
16990else
16991 ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldld $LIBS"
16993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h. */
16995
16996/* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
16999#ifdef __cplusplus
17000extern "C"
17001#endif
17002char dld_link ();
17003int
17004main ()
17005{
17006return dld_link ();
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011if ac_fn_c_try_link "$LINENO"; then :
17012 ac_cv_lib_dld_dld_link=yes
17013else
17014 ac_cv_lib_dld_dld_link=no
17015fi
17016rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17018LIBS=$ac_check_lib_save_LIBS
17019fi
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17021$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017022if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17024fi
17025
17026
17027fi
17028
17029
17030fi
17031
17032
17033fi
17034
17035
17036fi
17037
17038
17039fi
17040
17041 ;;
17042 esac
17043
17044 if test "x$lt_cv_dlopen" != xno; then
17045 enable_dlopen=yes
17046 else
17047 enable_dlopen=no
17048 fi
17049
17050 case $lt_cv_dlopen in
17051 dlopen)
17052 save_CPPFLAGS="$CPPFLAGS"
17053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17054
17055 save_LDFLAGS="$LDFLAGS"
17056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17057
17058 save_LIBS="$LIBS"
17059 LIBS="$lt_cv_dlopen_libs $LIBS"
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17062$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017063if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017064 $as_echo_n "(cached) " >&6
17065else
17066 if test "$cross_compiling" = yes; then :
17067 lt_cv_dlopen_self=cross
17068else
17069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17070 lt_status=$lt_dlunknown
17071 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017072#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017073#include "confdefs.h"
17074
17075#if HAVE_DLFCN_H
17076#include <dlfcn.h>
17077#endif
17078
17079#include <stdio.h>
17080
17081#ifdef RTLD_GLOBAL
17082# define LT_DLGLOBAL RTLD_GLOBAL
17083#else
17084# ifdef DL_GLOBAL
17085# define LT_DLGLOBAL DL_GLOBAL
17086# else
17087# define LT_DLGLOBAL 0
17088# endif
17089#endif
17090
17091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17092 find out it does not work in some platform. */
17093#ifndef LT_DLLAZY_OR_NOW
17094# ifdef RTLD_LAZY
17095# define LT_DLLAZY_OR_NOW RTLD_LAZY
17096# else
17097# ifdef DL_LAZY
17098# define LT_DLLAZY_OR_NOW DL_LAZY
17099# else
17100# ifdef RTLD_NOW
17101# define LT_DLLAZY_OR_NOW RTLD_NOW
17102# else
17103# ifdef DL_NOW
17104# define LT_DLLAZY_OR_NOW DL_NOW
17105# else
17106# define LT_DLLAZY_OR_NOW 0
17107# endif
17108# endif
17109# endif
17110# endif
17111#endif
17112
cristy0c60a692010-11-04 01:09:47 +000017113/* When -fvisbility=hidden is used, assume the code has been annotated
17114 correspondingly for the symbols needed. */
17115#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017116int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017117#endif
17118
cristyda16f162011-02-19 23:52:17 +000017119int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017120int main ()
17121{
17122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17123 int status = $lt_dlunknown;
17124
17125 if (self)
17126 {
17127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017128 else
17129 {
17130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17131 else puts (dlerror ());
17132 }
cristy73bd4a52010-10-05 11:24:23 +000017133 /* dlclose (self); */
17134 }
17135 else
17136 puts (dlerror ());
17137
17138 return status;
17139}
17140_LT_EOF
17141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17142 (eval $ac_link) 2>&5
17143 ac_status=$?
17144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17146 (./conftest; exit; ) >&5 2>/dev/null
17147 lt_status=$?
17148 case x$lt_status in
17149 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17150 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17151 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17152 esac
17153 else :
17154 # compilation failed
17155 lt_cv_dlopen_self=no
17156 fi
17157fi
17158rm -fr conftest*
17159
17160
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17163$as_echo "$lt_cv_dlopen_self" >&6; }
17164
17165 if test "x$lt_cv_dlopen_self" = xyes; then
17166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17168$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017169if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017170 $as_echo_n "(cached) " >&6
17171else
17172 if test "$cross_compiling" = yes; then :
17173 lt_cv_dlopen_self_static=cross
17174else
17175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17176 lt_status=$lt_dlunknown
17177 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017178#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017179#include "confdefs.h"
17180
17181#if HAVE_DLFCN_H
17182#include <dlfcn.h>
17183#endif
17184
17185#include <stdio.h>
17186
17187#ifdef RTLD_GLOBAL
17188# define LT_DLGLOBAL RTLD_GLOBAL
17189#else
17190# ifdef DL_GLOBAL
17191# define LT_DLGLOBAL DL_GLOBAL
17192# else
17193# define LT_DLGLOBAL 0
17194# endif
17195#endif
17196
17197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17198 find out it does not work in some platform. */
17199#ifndef LT_DLLAZY_OR_NOW
17200# ifdef RTLD_LAZY
17201# define LT_DLLAZY_OR_NOW RTLD_LAZY
17202# else
17203# ifdef DL_LAZY
17204# define LT_DLLAZY_OR_NOW DL_LAZY
17205# else
17206# ifdef RTLD_NOW
17207# define LT_DLLAZY_OR_NOW RTLD_NOW
17208# else
17209# ifdef DL_NOW
17210# define LT_DLLAZY_OR_NOW DL_NOW
17211# else
17212# define LT_DLLAZY_OR_NOW 0
17213# endif
17214# endif
17215# endif
17216# endif
17217#endif
17218
cristy0c60a692010-11-04 01:09:47 +000017219/* When -fvisbility=hidden is used, assume the code has been annotated
17220 correspondingly for the symbols needed. */
17221#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017222int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017223#endif
17224
cristyda16f162011-02-19 23:52:17 +000017225int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017226int main ()
17227{
17228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17229 int status = $lt_dlunknown;
17230
17231 if (self)
17232 {
17233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017234 else
17235 {
17236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17237 else puts (dlerror ());
17238 }
cristy73bd4a52010-10-05 11:24:23 +000017239 /* dlclose (self); */
17240 }
17241 else
17242 puts (dlerror ());
17243
17244 return status;
17245}
17246_LT_EOF
17247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17248 (eval $ac_link) 2>&5
17249 ac_status=$?
17250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17252 (./conftest; exit; ) >&5 2>/dev/null
17253 lt_status=$?
17254 case x$lt_status in
17255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17257 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17258 esac
17259 else :
17260 # compilation failed
17261 lt_cv_dlopen_self_static=no
17262 fi
17263fi
17264rm -fr conftest*
17265
17266
17267fi
17268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17269$as_echo "$lt_cv_dlopen_self_static" >&6; }
17270 fi
17271
17272 CPPFLAGS="$save_CPPFLAGS"
17273 LDFLAGS="$save_LDFLAGS"
17274 LIBS="$save_LIBS"
17275 ;;
17276 esac
17277
17278 case $lt_cv_dlopen_self in
17279 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17280 *) enable_dlopen_self=unknown ;;
17281 esac
17282
17283 case $lt_cv_dlopen_self_static in
17284 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17285 *) enable_dlopen_self_static=unknown ;;
17286 esac
17287fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305striplib=
17306old_striplib=
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17308$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17309if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17311 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17313$as_echo "yes" >&6; }
17314else
17315# FIXME - insert some real tests, host_os isn't really good enough
17316 case $host_os in
17317 darwin*)
17318 if test -n "$STRIP" ; then
17319 striplib="$STRIP -x"
17320 old_striplib="$STRIP -S"
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17322$as_echo "yes" >&6; }
17323 else
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325$as_echo "no" >&6; }
17326 fi
17327 ;;
17328 *)
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17330$as_echo "no" >&6; }
17331 ;;
17332 esac
17333fi
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346 # Report which library types will actually be built
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17348$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17350$as_echo "$can_build_shared" >&6; }
17351
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17353$as_echo_n "checking whether to build shared libraries... " >&6; }
17354 test "$can_build_shared" = "no" && enable_shared=no
17355
17356 # On AIX, shared libraries and static libraries use the same namespace, and
17357 # are all built from PIC.
17358 case $host_os in
17359 aix3*)
17360 test "$enable_shared" = yes && enable_static=no
17361 if test -n "$RANLIB"; then
17362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17363 postinstall_cmds='$RANLIB $lib'
17364 fi
17365 ;;
17366
17367 aix[4-9]*)
17368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17369 test "$enable_shared" = yes && enable_static=no
17370 fi
17371 ;;
17372 esac
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17374$as_echo "$enable_shared" >&6; }
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17377$as_echo_n "checking whether to build static libraries... " >&6; }
17378 # Make sure either enable_shared or enable_static is yes.
17379 test "$enable_shared" = yes || enable_static=yes
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17381$as_echo "$enable_static" >&6; }
17382
17383
17384
17385
17386fi
17387ac_ext=c
17388ac_cpp='$CPP $CPPFLAGS'
17389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17391ac_compiler_gnu=$ac_cv_c_compiler_gnu
17392
17393CC="$lt_save_CC"
17394
cristy0c60a692010-11-04 01:09:47 +000017395 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17396 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17397 (test "X$CXX" != "Xg++"))) ; then
17398 ac_ext=cpp
17399ac_cpp='$CXXCPP $CPPFLAGS'
17400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17404$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17405if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017406 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017407 $as_echo_n "(cached) " >&6
17408else
17409 # Double quotes because CXXCPP needs to be expanded
17410 for CXXCPP in "$CXX -E" "/lib/cpp"
17411 do
17412 ac_preproc_ok=false
17413for ac_cxx_preproc_warn_flag in '' yes
17414do
17415 # Use a header file that comes with gcc, so configuring glibc
17416 # with a fresh cross-compiler works.
17417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418 # <limits.h> exists even on freestanding compilers.
17419 # On the NeXT, cc -E runs the code through the compiler's parser,
17420 # not just through cpp. "Syntax error" is here to catch this case.
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h. */
17423#ifdef __STDC__
17424# include <limits.h>
17425#else
17426# include <assert.h>
17427#endif
17428 Syntax error
17429_ACEOF
17430if ac_fn_cxx_try_cpp "$LINENO"; then :
17431
17432else
17433 # Broken: fails on valid input.
17434continue
17435fi
cristyda16f162011-02-19 23:52:17 +000017436rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017437
17438 # OK, works on sane cases. Now check whether nonexistent headers
17439 # can be detected and how.
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441/* end confdefs.h. */
17442#include <ac_nonexistent.h>
17443_ACEOF
17444if ac_fn_cxx_try_cpp "$LINENO"; then :
17445 # Broken: success on invalid input.
17446continue
17447else
17448 # Passes both tests.
17449ac_preproc_ok=:
17450break
17451fi
cristyda16f162011-02-19 23:52:17 +000017452rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017453
17454done
17455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017456rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017457if $ac_preproc_ok; then :
17458 break
17459fi
17460
17461 done
17462 ac_cv_prog_CXXCPP=$CXXCPP
17463
17464fi
17465 CXXCPP=$ac_cv_prog_CXXCPP
17466else
17467 ac_cv_prog_CXXCPP=$CXXCPP
17468fi
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17470$as_echo "$CXXCPP" >&6; }
17471ac_preproc_ok=false
17472for ac_cxx_preproc_warn_flag in '' yes
17473do
17474 # Use a header file that comes with gcc, so configuring glibc
17475 # with a fresh cross-compiler works.
17476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477 # <limits.h> exists even on freestanding compilers.
17478 # On the NeXT, cc -E runs the code through the compiler's parser,
17479 # not just through cpp. "Syntax error" is here to catch this case.
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481/* end confdefs.h. */
17482#ifdef __STDC__
17483# include <limits.h>
17484#else
17485# include <assert.h>
17486#endif
17487 Syntax error
17488_ACEOF
17489if ac_fn_cxx_try_cpp "$LINENO"; then :
17490
17491else
17492 # Broken: fails on valid input.
17493continue
17494fi
cristyda16f162011-02-19 23:52:17 +000017495rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017496
17497 # OK, works on sane cases. Now check whether nonexistent headers
17498 # can be detected and how.
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h. */
17501#include <ac_nonexistent.h>
17502_ACEOF
17503if ac_fn_cxx_try_cpp "$LINENO"; then :
17504 # Broken: success on invalid input.
17505continue
17506else
17507 # Passes both tests.
17508ac_preproc_ok=:
17509break
17510fi
cristyda16f162011-02-19 23:52:17 +000017511rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017512
17513done
17514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017515rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017516if $ac_preproc_ok; then :
17517
17518else
17519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17521as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17522See \`config.log' for more details" "$LINENO" 5; }
17523fi
17524
17525ac_ext=c
17526ac_cpp='$CPP $CPPFLAGS'
17527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529ac_compiler_gnu=$ac_cv_c_compiler_gnu
17530
17531else
17532 _lt_caught_CXX_error=yes
17533fi
cristy73bd4a52010-10-05 11:24:23 +000017534
17535ac_ext=cpp
17536ac_cpp='$CXXCPP $CPPFLAGS'
17537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540
17541archive_cmds_need_lc_CXX=no
17542allow_undefined_flag_CXX=
17543always_export_symbols_CXX=no
17544archive_expsym_cmds_CXX=
17545compiler_needs_object_CXX=no
17546export_dynamic_flag_spec_CXX=
17547hardcode_direct_CXX=no
17548hardcode_direct_absolute_CXX=no
17549hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017550hardcode_libdir_separator_CXX=
17551hardcode_minus_L_CXX=no
17552hardcode_shlibpath_var_CXX=unsupported
17553hardcode_automatic_CXX=no
17554inherit_rpath_CXX=no
17555module_cmds_CXX=
17556module_expsym_cmds_CXX=
17557link_all_deplibs_CXX=unknown
17558old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017559reload_flag_CXX=$reload_flag
17560reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017561no_undefined_flag_CXX=
17562whole_archive_flag_spec_CXX=
17563enable_shared_with_static_runtimes_CXX=no
17564
17565# Source file extension for C++ test sources.
17566ac_ext=cpp
17567
17568# Object file extension for compiled C++ test sources.
17569objext=o
17570objext_CXX=$objext
17571
17572# No sense in running all these tests if we already determined that
17573# the CXX compiler isn't working. Some variables (like enable_shared)
17574# are currently assumed to apply to all compilers on this platform,
17575# and will be corrupted by setting them based on a non-working compiler.
17576if test "$_lt_caught_CXX_error" != yes; then
17577 # Code to be used in simple compile tests
17578 lt_simple_compile_test_code="int some_variable = 0;"
17579
17580 # Code to be used in simple link tests
17581 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17582
17583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17584
17585
17586
17587
17588
17589
17590# If no C compiler was specified, use CC.
17591LTCC=${LTCC-"$CC"}
17592
17593# If no C compiler flags were specified, use CFLAGS.
17594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17595
17596# Allow CC to be a program name with arguments.
17597compiler=$CC
17598
17599
17600 # save warnings/boilerplate of simple test code
17601 ac_outfile=conftest.$ac_objext
17602echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17603eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17604_lt_compiler_boilerplate=`cat conftest.err`
17605$RM conftest*
17606
17607 ac_outfile=conftest.$ac_objext
17608echo "$lt_simple_link_test_code" >conftest.$ac_ext
17609eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17610_lt_linker_boilerplate=`cat conftest.err`
17611$RM -r conftest*
17612
17613
17614 # Allow CC to be a program name with arguments.
17615 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017616 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017617 lt_save_LD=$LD
17618 lt_save_GCC=$GCC
17619 GCC=$GXX
17620 lt_save_with_gnu_ld=$with_gnu_ld
17621 lt_save_path_LD=$lt_cv_path_LD
17622 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17623 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17624 else
17625 $as_unset lt_cv_prog_gnu_ld
17626 fi
17627 if test -n "${lt_cv_path_LDCXX+set}"; then
17628 lt_cv_path_LD=$lt_cv_path_LDCXX
17629 else
17630 $as_unset lt_cv_path_LD
17631 fi
17632 test -z "${LDCXX+set}" || LD=$LDCXX
17633 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017634 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017635 compiler=$CC
17636 compiler_CXX=$CC
17637 for cc_temp in $compiler""; do
17638 case $cc_temp in
17639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17641 \-*) ;;
17642 *) break;;
17643 esac
17644done
cristy0c60a692010-11-04 01:09:47 +000017645cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017646
17647
17648 if test -n "$compiler"; then
17649 # We don't want -fno-exception when compiling C++ code, so set the
17650 # no_builtin_flag separately
17651 if test "$GXX" = yes; then
17652 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17653 else
17654 lt_prog_compiler_no_builtin_flag_CXX=
17655 fi
17656
17657 if test "$GXX" = yes; then
17658 # Set up default GNU C++ configuration
17659
17660
17661
17662# Check whether --with-gnu-ld was given.
17663if test "${with_gnu_ld+set}" = set; then :
17664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17665else
17666 with_gnu_ld=no
17667fi
17668
17669ac_prog=ld
17670if test "$GCC" = yes; then
17671 # Check if gcc -print-prog-name=ld gives a path.
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17673$as_echo_n "checking for ld used by $CC... " >&6; }
17674 case $host in
17675 *-*-mingw*)
17676 # gcc leaves a trailing carriage return which upsets mingw
17677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17678 *)
17679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17680 esac
17681 case $ac_prog in
17682 # Accept absolute paths.
17683 [\\/]* | ?:[\\/]*)
17684 re_direlt='/[^/][^/]*/\.\./'
17685 # Canonicalize the pathname of ld
17686 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17687 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17688 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17689 done
17690 test -z "$LD" && LD="$ac_prog"
17691 ;;
17692 "")
17693 # If it fails, then pretend we aren't using GCC.
17694 ac_prog=ld
17695 ;;
17696 *)
17697 # If it is relative, then search for the first ld in PATH.
17698 with_gnu_ld=unknown
17699 ;;
17700 esac
17701elif test "$with_gnu_ld" = yes; then
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17703$as_echo_n "checking for GNU ld... " >&6; }
17704else
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17706$as_echo_n "checking for non-GNU ld... " >&6; }
17707fi
cristyda16f162011-02-19 23:52:17 +000017708if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017709 $as_echo_n "(cached) " >&6
17710else
17711 if test -z "$LD"; then
17712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17713 for ac_dir in $PATH; do
17714 IFS="$lt_save_ifs"
17715 test -z "$ac_dir" && ac_dir=.
17716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17717 lt_cv_path_LD="$ac_dir/$ac_prog"
17718 # Check to see if the program is GNU ld. I'd rather use --version,
17719 # but apparently some variants of GNU ld only accept -v.
17720 # Break only if it was the GNU/non-GNU ld that we prefer.
17721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17722 *GNU* | *'with BFD'*)
17723 test "$with_gnu_ld" != no && break
17724 ;;
17725 *)
17726 test "$with_gnu_ld" != yes && break
17727 ;;
17728 esac
17729 fi
17730 done
17731 IFS="$lt_save_ifs"
17732else
17733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17734fi
17735fi
17736
17737LD="$lt_cv_path_LD"
17738if test -n "$LD"; then
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17740$as_echo "$LD" >&6; }
17741else
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17743$as_echo "no" >&6; }
17744fi
cristy98dddb52010-11-04 00:30:15 +000017745test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17747$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017748if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017749 $as_echo_n "(cached) " >&6
17750else
17751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17752case `$LD -v 2>&1 </dev/null` in
17753*GNU* | *'with BFD'*)
17754 lt_cv_prog_gnu_ld=yes
17755 ;;
17756*)
17757 lt_cv_prog_gnu_ld=no
17758 ;;
17759esac
17760fi
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17762$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17763with_gnu_ld=$lt_cv_prog_gnu_ld
17764
17765
17766
17767
17768
17769
17770
17771 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17772 # archiving commands below assume that GNU ld is being used.
17773 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017774 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775 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 +000017776
17777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17779
17780 # If archive_cmds runs LD, not CC, wlarc should be empty
17781 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17782 # investigate it a little bit more. (MM)
17783 wlarc='${wl}'
17784
17785 # ancient GNU ld didn't support --whole-archive et. al.
17786 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17787 $GREP 'no-whole-archive' > /dev/null; then
17788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17789 else
17790 whole_archive_flag_spec_CXX=
17791 fi
17792 else
17793 with_gnu_ld=no
17794 wlarc=
17795
17796 # A generic and very simple default shared library creation
17797 # command for GNU C++ for the case where it uses the native
17798 # linker, instead of GNU ld. If possible, this setting should
17799 # overridden to take advantage of the native linker features on
17800 # the platform it is being used on.
17801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17802 fi
17803
17804 # Commands to make compiler produce verbose output that lists
17805 # what "hidden" libraries, object files and flags are used when
17806 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017808
17809 else
17810 GXX=no
17811 with_gnu_ld=no
17812 wlarc=
17813 fi
17814
17815 # PORTME: fill in a description of your system's C++ link characteristics
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17817$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17818 ld_shlibs_CXX=yes
17819 case $host_os in
17820 aix3*)
17821 # FIXME: insert proper C++ library support
17822 ld_shlibs_CXX=no
17823 ;;
17824 aix[4-9]*)
17825 if test "$host_cpu" = ia64; then
17826 # On IA64, the linker does run time linking by default, so we don't
17827 # have to do anything special.
17828 aix_use_runtimelinking=no
17829 exp_sym_flag='-Bexport'
17830 no_entry_flag=""
17831 else
17832 aix_use_runtimelinking=no
17833
17834 # Test if we are trying to use run time linking or normal
17835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17836 # need to do runtime linking.
17837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17838 for ld_flag in $LDFLAGS; do
17839 case $ld_flag in
17840 *-brtl*)
17841 aix_use_runtimelinking=yes
17842 break
17843 ;;
17844 esac
17845 done
17846 ;;
17847 esac
17848
17849 exp_sym_flag='-bexport'
17850 no_entry_flag='-bnoentry'
17851 fi
17852
17853 # When large executables or shared objects are built, AIX ld can
17854 # have problems creating the table of contents. If linking a library
17855 # or program results in "error TOC overflow" add -mminimal-toc to
17856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17858
17859 archive_cmds_CXX=''
17860 hardcode_direct_CXX=yes
17861 hardcode_direct_absolute_CXX=yes
17862 hardcode_libdir_separator_CXX=':'
17863 link_all_deplibs_CXX=yes
17864 file_list_spec_CXX='${wl}-f,'
17865
17866 if test "$GXX" = yes; then
17867 case $host_os in aix4.[012]|aix4.[012].*)
17868 # We only want to do this on AIX 4.2 and lower, the check
17869 # below for broken collect2 doesn't work under 4.3+
17870 collect2name=`${CC} -print-prog-name=collect2`
17871 if test -f "$collect2name" &&
17872 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17873 then
17874 # We have reworked collect2
17875 :
17876 else
17877 # We have old collect2
17878 hardcode_direct_CXX=unsupported
17879 # It fails to find uninstalled libraries when the uninstalled
17880 # path is not listed in the libpath. Setting hardcode_minus_L
17881 # to unsupported forces relinking
17882 hardcode_minus_L_CXX=yes
17883 hardcode_libdir_flag_spec_CXX='-L$libdir'
17884 hardcode_libdir_separator_CXX=
17885 fi
17886 esac
17887 shared_flag='-shared'
17888 if test "$aix_use_runtimelinking" = yes; then
17889 shared_flag="$shared_flag "'${wl}-G'
17890 fi
17891 else
17892 # not using gcc
17893 if test "$host_cpu" = ia64; then
17894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17895 # chokes on -Wl,-G. The following line is correct:
17896 shared_flag='-G'
17897 else
17898 if test "$aix_use_runtimelinking" = yes; then
17899 shared_flag='${wl}-G'
17900 else
17901 shared_flag='${wl}-bM:SRE'
17902 fi
17903 fi
17904 fi
17905
17906 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17907 # It seems that -bexpall does not export symbols beginning with
17908 # underscore (_), so it is better to generate a list of symbols to
17909 # export.
17910 always_export_symbols_CXX=yes
17911 if test "$aix_use_runtimelinking" = yes; then
17912 # Warning - without using the other runtime loading flags (-brtl),
17913 # -berok will link without error, but may produce a broken library.
17914 allow_undefined_flag_CXX='-berok'
17915 # Determine the default libpath from the value encoded in an empty
17916 # executable.
cristyda16f162011-02-19 23:52:17 +000017917 if test "${lt_cv_aix_libpath+set}" = set; then
17918 aix_libpath=$lt_cv_aix_libpath
17919else
17920 if ${lt_cv_aix_libpath__CXX+:} false; then :
17921 $as_echo_n "(cached) " >&6
17922else
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017924/* end confdefs.h. */
17925
17926int
17927main ()
17928{
17929
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934if ac_fn_cxx_try_link "$LINENO"; then :
17935
cristyda16f162011-02-19 23:52:17 +000017936 lt_aix_libpath_sed='
17937 /Import File Strings/,/^$/ {
17938 /^0/ {
17939 s/^0 *\([^ ]*\) *$/\1/
17940 p
17941 }
17942 }'
17943 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 # Check for a 64-bit object if we didn't find anything.
17945 if test -z "$lt_cv_aix_libpath__CXX"; then
17946 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17947 fi
cristy73bd4a52010-10-05 11:24:23 +000017948fi
17949rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017951 if test -z "$lt_cv_aix_libpath__CXX"; then
17952 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17953 fi
17954
17955fi
17956
17957 aix_libpath=$lt_cv_aix_libpath__CXX
17958fi
cristy73bd4a52010-10-05 11:24:23 +000017959
17960 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17961
cristy0c60a692010-11-04 01:09:47 +000017962 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 +000017963 else
17964 if test "$host_cpu" = ia64; then
17965 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17966 allow_undefined_flag_CXX="-z nodefs"
17967 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"
17968 else
17969 # Determine the default libpath from the value encoded in an
17970 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017971 if test "${lt_cv_aix_libpath+set}" = set; then
17972 aix_libpath=$lt_cv_aix_libpath
17973else
17974 if ${lt_cv_aix_libpath__CXX+:} false; then :
17975 $as_echo_n "(cached) " >&6
17976else
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017978/* end confdefs.h. */
17979
17980int
17981main ()
17982{
17983
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988if ac_fn_cxx_try_link "$LINENO"; then :
17989
cristyda16f162011-02-19 23:52:17 +000017990 lt_aix_libpath_sed='
17991 /Import File Strings/,/^$/ {
17992 /^0/ {
17993 s/^0 *\([^ ]*\) *$/\1/
17994 p
17995 }
17996 }'
17997 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 # Check for a 64-bit object if we didn't find anything.
17999 if test -z "$lt_cv_aix_libpath__CXX"; then
18000 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 fi
cristy73bd4a52010-10-05 11:24:23 +000018002fi
18003rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018005 if test -z "$lt_cv_aix_libpath__CXX"; then
18006 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18007 fi
18008
18009fi
18010
18011 aix_libpath=$lt_cv_aix_libpath__CXX
18012fi
cristy73bd4a52010-10-05 11:24:23 +000018013
18014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18015 # Warning - without using the other run time loading flags,
18016 # -berok will link without error, but may produce a broken library.
18017 no_undefined_flag_CXX=' ${wl}-bernotok'
18018 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018019 if test "$with_gnu_ld" = yes; then
18020 # We only use this code for GNU lds that support --whole-archive.
18021 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18022 else
18023 # Exported symbols can be pulled into shared objects from archives
18024 whole_archive_flag_spec_CXX='$convenience'
18025 fi
cristy73bd4a52010-10-05 11:24:23 +000018026 archive_cmds_need_lc_CXX=yes
18027 # This is similar to how AIX traditionally builds its shared
18028 # libraries.
18029 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'
18030 fi
18031 fi
18032 ;;
18033
18034 beos*)
18035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18036 allow_undefined_flag_CXX=unsupported
18037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18038 # support --undefined. This deserves some investigation. FIXME
18039 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18040 else
18041 ld_shlibs_CXX=no
18042 fi
18043 ;;
18044
18045 chorus*)
18046 case $cc_basename in
18047 *)
18048 # FIXME: insert proper C++ library support
18049 ld_shlibs_CXX=no
18050 ;;
18051 esac
18052 ;;
18053
18054 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018055 case $GXX,$cc_basename in
18056 ,cl* | no,cl*)
18057 # Native MSVC
18058 # hardcode_libdir_flag_spec is actually meaningless, as there is
18059 # no search path for DLLs.
18060 hardcode_libdir_flag_spec_CXX=' '
18061 allow_undefined_flag_CXX=unsupported
18062 always_export_symbols_CXX=yes
18063 file_list_spec_CXX='@'
18064 # Tell ltmain to make .lib files, not .a files.
18065 libext=lib
18066 # Tell ltmain to make .dll files, not .so files.
18067 shrext_cmds=".dll"
18068 # FIXME: Setting linknames here is a bad hack.
18069 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18070 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18071 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18072 else
18073 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18074 fi~
18075 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18076 linknames='
18077 # The linker will not automatically build a static lib if we build a DLL.
18078 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18079 enable_shared_with_static_runtimes_CXX=yes
18080 # Don't use ranlib
18081 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18082 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18083 lt_tool_outputfile="@TOOL_OUTPUT@"~
18084 case $lt_outputfile in
18085 *.exe|*.EXE) ;;
18086 *)
18087 lt_outputfile="$lt_outputfile.exe"
18088 lt_tool_outputfile="$lt_tool_outputfile.exe"
18089 ;;
18090 esac~
18091 func_to_tool_file "$lt_outputfile"~
18092 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18093 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18094 $RM "$lt_outputfile.manifest";
18095 fi'
18096 ;;
18097 *)
18098 # g++
18099 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18100 # as there is no search path for DLLs.
18101 hardcode_libdir_flag_spec_CXX='-L$libdir'
18102 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18103 allow_undefined_flag_CXX=unsupported
18104 always_export_symbols_CXX=no
18105 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018106
cristyda16f162011-02-19 23:52:17 +000018107 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18108 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'
18109 # If the export-symbols file already is a .def file (1st line
18110 # is EXPORTS), use it as is; otherwise, prepend...
18111 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18112 cp $export_symbols $output_objdir/$soname.def;
18113 else
18114 echo EXPORTS > $output_objdir/$soname.def;
18115 cat $export_symbols >> $output_objdir/$soname.def;
18116 fi~
18117 $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'
18118 else
18119 ld_shlibs_CXX=no
18120 fi
18121 ;;
18122 esac
18123 ;;
cristy73bd4a52010-10-05 11:24:23 +000018124 darwin* | rhapsody*)
18125
18126
18127 archive_cmds_need_lc_CXX=no
18128 hardcode_direct_CXX=no
18129 hardcode_automatic_CXX=yes
18130 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018131 if test "$lt_cv_ld_force_load" = "yes"; then
18132 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 +000018133
cristy0c60a692010-11-04 01:09:47 +000018134 else
18135 whole_archive_flag_spec_CXX=''
18136 fi
cristy73bd4a52010-10-05 11:24:23 +000018137 link_all_deplibs_CXX=yes
18138 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18139 case $cc_basename in
18140 ifort*) _lt_dar_can_shared=yes ;;
18141 *) _lt_dar_can_shared=$GCC ;;
18142 esac
18143 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018144 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018145 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}"
18146 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18147 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}"
18148 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}"
18149 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18150 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}"
18151 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}"
18152 fi
18153
18154 else
18155 ld_shlibs_CXX=no
18156 fi
18157
18158 ;;
18159
18160 dgux*)
18161 case $cc_basename in
18162 ec++*)
18163 # FIXME: insert proper C++ library support
18164 ld_shlibs_CXX=no
18165 ;;
18166 ghcx*)
18167 # Green Hills C++ Compiler
18168 # FIXME: insert proper C++ library support
18169 ld_shlibs_CXX=no
18170 ;;
18171 *)
18172 # FIXME: insert proper C++ library support
18173 ld_shlibs_CXX=no
18174 ;;
18175 esac
18176 ;;
18177
cristy99bd5232011-12-07 14:38:20 +000018178 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018179 # C++ shared libraries reported to be fairly broken before
18180 # switch to ELF
18181 ld_shlibs_CXX=no
18182 ;;
18183
18184 freebsd-elf*)
18185 archive_cmds_need_lc_CXX=no
18186 ;;
18187
18188 freebsd* | dragonfly*)
18189 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18190 # conventions
18191 ld_shlibs_CXX=yes
18192 ;;
18193
18194 gnu*)
18195 ;;
18196
cristy0c60a692010-11-04 01:09:47 +000018197 haiku*)
18198 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199 link_all_deplibs_CXX=yes
18200 ;;
18201
cristy73bd4a52010-10-05 11:24:23 +000018202 hpux9*)
18203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18204 hardcode_libdir_separator_CXX=:
18205 export_dynamic_flag_spec_CXX='${wl}-E'
18206 hardcode_direct_CXX=yes
18207 hardcode_minus_L_CXX=yes # Not in the search PATH,
18208 # but as the default
18209 # location of the library.
18210
18211 case $cc_basename in
18212 CC*)
18213 # FIXME: insert proper C++ library support
18214 ld_shlibs_CXX=no
18215 ;;
18216 aCC*)
18217 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'
18218 # Commands to make compiler produce verbose output that lists
18219 # what "hidden" libraries, object files and flags are used when
18220 # linking a shared library.
18221 #
18222 # There doesn't appear to be a way to prevent this compiler from
18223 # explicitly linking system object files so we need to strip them
18224 # from the output so that they don't get included in the library
18225 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018226 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 +000018227 ;;
18228 *)
18229 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018230 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 +000018231 else
18232 # FIXME: insert proper C++ library support
18233 ld_shlibs_CXX=no
18234 fi
18235 ;;
18236 esac
18237 ;;
18238
18239 hpux10*|hpux11*)
18240 if test $with_gnu_ld = no; then
18241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18242 hardcode_libdir_separator_CXX=:
18243
18244 case $host_cpu in
18245 hppa*64*|ia64*)
18246 ;;
18247 *)
18248 export_dynamic_flag_spec_CXX='${wl}-E'
18249 ;;
18250 esac
18251 fi
18252 case $host_cpu in
18253 hppa*64*|ia64*)
18254 hardcode_direct_CXX=no
18255 hardcode_shlibpath_var_CXX=no
18256 ;;
18257 *)
18258 hardcode_direct_CXX=yes
18259 hardcode_direct_absolute_CXX=yes
18260 hardcode_minus_L_CXX=yes # Not in the search PATH,
18261 # but as the default
18262 # location of the library.
18263 ;;
18264 esac
18265
18266 case $cc_basename in
18267 CC*)
18268 # FIXME: insert proper C++ library support
18269 ld_shlibs_CXX=no
18270 ;;
18271 aCC*)
18272 case $host_cpu in
18273 hppa*64*)
18274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18275 ;;
18276 ia64*)
18277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18278 ;;
18279 *)
18280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18281 ;;
18282 esac
18283 # Commands to make compiler produce verbose output that lists
18284 # what "hidden" libraries, object files and flags are used when
18285 # linking a shared library.
18286 #
18287 # There doesn't appear to be a way to prevent this compiler from
18288 # explicitly linking system object files so we need to strip them
18289 # from the output so that they don't get included in the library
18290 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018291 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 +000018292 ;;
18293 *)
18294 if test "$GXX" = yes; then
18295 if test $with_gnu_ld = no; then
18296 case $host_cpu in
18297 hppa*64*)
18298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18299 ;;
18300 ia64*)
cristyda16f162011-02-19 23:52:17 +000018301 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 +000018302 ;;
18303 *)
cristyda16f162011-02-19 23:52:17 +000018304 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 +000018305 ;;
18306 esac
18307 fi
18308 else
18309 # FIXME: insert proper C++ library support
18310 ld_shlibs_CXX=no
18311 fi
18312 ;;
18313 esac
18314 ;;
18315
18316 interix[3-9]*)
18317 hardcode_direct_CXX=no
18318 hardcode_shlibpath_var_CXX=no
18319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18320 export_dynamic_flag_spec_CXX='${wl}-E'
18321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18322 # Instead, shared libraries are loaded at an image base (0x10000000 by
18323 # default) and relocated if they conflict, which is a slow very memory
18324 # consuming and fragmenting process. To avoid this, we pick a random,
18325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18327 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'
18328 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'
18329 ;;
18330 irix5* | irix6*)
18331 case $cc_basename in
18332 CC*)
18333 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018334 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 +000018335
18336 # Archives containing C++ object files must be created using
18337 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18338 # necessary to make sure instantiated templates are included
18339 # in the archive.
18340 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18341 ;;
18342 *)
18343 if test "$GXX" = yes; then
18344 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018345 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 +000018346 else
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"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018348 fi
18349 fi
18350 link_all_deplibs_CXX=yes
18351 ;;
18352 esac
18353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18354 hardcode_libdir_separator_CXX=:
18355 inherit_rpath_CXX=yes
18356 ;;
18357
cristy0c60a692010-11-04 01:09:47 +000018358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018359 case $cc_basename in
18360 KCC*)
18361 # Kuck and Associates, Inc. (KAI) C++ Compiler
18362
18363 # KCC will only create a shared library if the output file
18364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18365 # to its proper name (with version) after linking.
18366 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'
18367 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'
18368 # Commands to make compiler produce verbose output that lists
18369 # what "hidden" libraries, object files and flags are used when
18370 # linking a shared library.
18371 #
18372 # There doesn't appear to be a way to prevent this compiler from
18373 # explicitly linking system object files so we need to strip them
18374 # from the output so that they don't get included in the library
18375 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018376 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 +000018377
18378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18380
18381 # Archives containing C++ object files must be created using
18382 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18383 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18384 ;;
18385 icpc* | ecpc* )
18386 # Intel C++
18387 with_gnu_ld=yes
18388 # version 8.0 and above of icpc choke on multiply defined symbols
18389 # if we add $predep_objects and $postdep_objects, however 7.1 and
18390 # earlier do not add the objects themselves.
18391 case `$CC -V 2>&1` in
18392 *"Version 7."*)
18393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394 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'
18395 ;;
18396 *) # Version 8.0 or newer
18397 tmp_idyn=
18398 case $host_cpu in
18399 ia64*) tmp_idyn=' -i_dynamic';;
18400 esac
18401 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402 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'
18403 ;;
18404 esac
18405 archive_cmds_need_lc_CXX=no
18406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18407 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18408 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18409 ;;
18410 pgCC* | pgcpp*)
18411 # Portland Group C++ compiler
18412 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018413 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018414 prelink_cmds_CXX='tpldir=Template.dir~
18415 rm -rf $tpldir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018417 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018418 old_archive_cmds_CXX='tpldir=Template.dir~
18419 rm -rf $tpldir~
18420 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018421 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018422 $RANLIB $oldlib'
18423 archive_cmds_CXX='tpldir=Template.dir~
18424 rm -rf $tpldir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018426 $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 +000018427 archive_expsym_cmds_CXX='tpldir=Template.dir~
18428 rm -rf $tpldir~
18429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018430 $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 +000018431 ;;
cristy0c60a692010-11-04 01:09:47 +000018432 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018433 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18434 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'
18435 ;;
18436 esac
18437
18438 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018440 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 +000018441 ;;
18442 cxx*)
18443 # Compaq C++
18444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18445 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'
18446
18447 runpath_var=LD_RUN_PATH
18448 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18449 hardcode_libdir_separator_CXX=:
18450
18451 # Commands to make compiler produce verbose output that lists
18452 # what "hidden" libraries, object files and flags are used when
18453 # linking a shared library.
18454 #
18455 # There doesn't appear to be a way to prevent this compiler from
18456 # explicitly linking system object files so we need to strip them
18457 # from the output so that they don't get included in the library
18458 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018459 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 +000018460 ;;
cristy0c60a692010-11-04 01:09:47 +000018461 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018462 # IBM XL 8.0 on PPC, with GNU ld
18463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18465 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18466 if test "x$supports_anon_versioning" = xyes; then
18467 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18469 echo "local: *; };" >> $output_objdir/$libname.ver~
18470 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18471 fi
18472 ;;
18473 *)
18474 case `$CC -V 2>&1 | sed 5q` in
18475 *Sun\ C*)
18476 # Sun C++ 5.9
18477 no_undefined_flag_CXX=' -zdefs'
18478 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18479 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'
18480 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018481 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 +000018482 compiler_needs_object_CXX=yes
18483
18484 # Not sure whether something based on
18485 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18486 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018487 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018488
18489 # Archives containing C++ object files must be created using
18490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18491 # necessary to make sure instantiated templates are included
18492 # in the archive.
18493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18494 ;;
18495 esac
18496 ;;
18497 esac
18498 ;;
18499
18500 lynxos*)
18501 # FIXME: insert proper C++ library support
18502 ld_shlibs_CXX=no
18503 ;;
18504
18505 m88k*)
18506 # FIXME: insert proper C++ library support
18507 ld_shlibs_CXX=no
18508 ;;
18509
18510 mvs*)
18511 case $cc_basename in
18512 cxx*)
18513 # FIXME: insert proper C++ library support
18514 ld_shlibs_CXX=no
18515 ;;
18516 *)
18517 # FIXME: insert proper C++ library support
18518 ld_shlibs_CXX=no
18519 ;;
18520 esac
18521 ;;
18522
18523 netbsd*)
18524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18525 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18526 wlarc=
18527 hardcode_libdir_flag_spec_CXX='-R$libdir'
18528 hardcode_direct_CXX=yes
18529 hardcode_shlibpath_var_CXX=no
18530 fi
18531 # Workaround some broken pre-1.5 toolchains
18532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18533 ;;
18534
18535 *nto* | *qnx*)
18536 ld_shlibs_CXX=yes
18537 ;;
18538
18539 openbsd2*)
18540 # C++ shared libraries are fairly broken
18541 ld_shlibs_CXX=no
18542 ;;
18543
18544 openbsd*)
18545 if test -f /usr/libexec/ld.so; then
18546 hardcode_direct_CXX=yes
18547 hardcode_shlibpath_var_CXX=no
18548 hardcode_direct_absolute_CXX=yes
18549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18552 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18553 export_dynamic_flag_spec_CXX='${wl}-E'
18554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18555 fi
cristy0c60a692010-11-04 01:09:47 +000018556 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018557 else
18558 ld_shlibs_CXX=no
18559 fi
18560 ;;
18561
18562 osf3* | osf4* | osf5*)
18563 case $cc_basename in
18564 KCC*)
18565 # Kuck and Associates, Inc. (KAI) C++ Compiler
18566
18567 # KCC will only create a shared library if the output file
18568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18569 # to its proper name (with version) after linking.
18570 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'
18571
18572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18573 hardcode_libdir_separator_CXX=:
18574
18575 # Archives containing C++ object files must be created using
18576 # the KAI C++ compiler.
18577 case $host in
18578 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18579 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18580 esac
18581 ;;
18582 RCC*)
18583 # Rational C++ 2.4.1
18584 # FIXME: insert proper C++ library support
18585 ld_shlibs_CXX=no
18586 ;;
18587 cxx*)
18588 case $host in
18589 osf3*)
18590 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018591 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 +000018592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18593 ;;
18594 *)
18595 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018596 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 +000018597 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18598 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018599 $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 +000018600 $RM $lib.exp'
18601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18602 ;;
18603 esac
18604
18605 hardcode_libdir_separator_CXX=:
18606
18607 # Commands to make compiler produce verbose output that lists
18608 # what "hidden" libraries, object files and flags are used when
18609 # linking a shared library.
18610 #
18611 # There doesn't appear to be a way to prevent this compiler from
18612 # explicitly linking system object files so we need to strip them
18613 # from the output so that they don't get included in the library
18614 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018615 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 +000018616 ;;
18617 *)
18618 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18619 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18620 case $host in
18621 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018622 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 +000018623 ;;
18624 *)
cristyda16f162011-02-19 23:52:17 +000018625 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 +000018626 ;;
18627 esac
18628
18629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18631
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018636
18637 else
18638 # FIXME: insert proper C++ library support
18639 ld_shlibs_CXX=no
18640 fi
18641 ;;
18642 esac
18643 ;;
18644
18645 psos*)
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18648 ;;
18649
18650 sunos4*)
18651 case $cc_basename in
18652 CC*)
18653 # Sun C++ 4.x
18654 # FIXME: insert proper C++ library support
18655 ld_shlibs_CXX=no
18656 ;;
18657 lcc*)
18658 # Lucid
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18661 ;;
18662 *)
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18665 ;;
18666 esac
18667 ;;
18668
18669 solaris*)
18670 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018671 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018672 # Sun C++ 4.2, 5.x and Centerline C++
18673 archive_cmds_need_lc_CXX=yes
18674 no_undefined_flag_CXX=' -zdefs'
18675 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18677 $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'
18678
18679 hardcode_libdir_flag_spec_CXX='-R$libdir'
18680 hardcode_shlibpath_var_CXX=no
18681 case $host_os in
18682 solaris2.[0-5] | solaris2.[0-5].*) ;;
18683 *)
18684 # The compiler driver will combine and reorder linker options,
18685 # but understands `-z linker_flag'.
18686 # Supported since Solaris 2.6 (maybe 2.5.1?)
18687 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18688 ;;
18689 esac
18690 link_all_deplibs_CXX=yes
18691
cristy0c60a692010-11-04 01:09:47 +000018692 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018693
18694 # Archives containing C++ object files must be created using
18695 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18696 # necessary to make sure instantiated templates are included
18697 # in the archive.
18698 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18699 ;;
18700 gcx*)
18701 # Green Hills C++ Compiler
18702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18703
18704 # The C++ compiler must be used to create the archive.
18705 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18706 ;;
18707 *)
18708 # GNU C++ compiler with Solaris linker
18709 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18710 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18711 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018712 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 +000018713 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 +000018714 $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 +000018715
18716 # Commands to make compiler produce verbose output that lists
18717 # what "hidden" libraries, object files and flags are used when
18718 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018720 else
18721 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18722 # platform.
18723 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18724 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18725 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18726
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018730 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018731 fi
18732
18733 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18734 case $host_os in
18735 solaris2.[0-5] | solaris2.[0-5].*) ;;
18736 *)
18737 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18738 ;;
18739 esac
18740 fi
18741 ;;
18742 esac
18743 ;;
18744
18745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18746 no_undefined_flag_CXX='${wl}-z,text'
18747 archive_cmds_need_lc_CXX=no
18748 hardcode_shlibpath_var_CXX=no
18749 runpath_var='LD_RUN_PATH'
18750
18751 case $cc_basename in
18752 CC*)
18753 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 ;;
18756 *)
18757 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18758 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 ;;
18760 esac
18761 ;;
18762
18763 sysv5* | sco3.2v5* | sco5v6*)
18764 # Note: We can NOT use -z defs as we might desire, because we do not
18765 # link with -lc, and that would cause any symbols used from libc to
18766 # always be unresolved, which means just about no library would
18767 # ever link correctly. If we're not using GNU ld we use -z text
18768 # though, which does catch some bad symbols but isn't as heavy-handed
18769 # as -z defs.
18770 no_undefined_flag_CXX='${wl}-z,text'
18771 allow_undefined_flag_CXX='${wl}-z,nodefs'
18772 archive_cmds_need_lc_CXX=no
18773 hardcode_shlibpath_var_CXX=no
18774 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18775 hardcode_libdir_separator_CXX=':'
18776 link_all_deplibs_CXX=yes
18777 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18778 runpath_var='LD_RUN_PATH'
18779
18780 case $cc_basename in
18781 CC*)
18782 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18783 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 +000018784 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18785 '"$old_archive_cmds_CXX"
18786 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18787 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018788 ;;
18789 *)
18790 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792 ;;
18793 esac
18794 ;;
18795
18796 tandem*)
18797 case $cc_basename in
18798 NCC*)
18799 # NonStop-UX NCC 3.20
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803 *)
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 ;;
18807 esac
18808 ;;
18809
18810 vxworks*)
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
18814
18815 *)
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18818 ;;
18819 esac
18820
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18822$as_echo "$ld_shlibs_CXX" >&6; }
18823 test "$ld_shlibs_CXX" = no && can_build_shared=no
18824
18825 GCC_CXX="$GXX"
18826 LD_CXX="$LD"
18827
18828 ## CAVEAT EMPTOR:
18829 ## There is no encapsulation within the following macros, do not change
18830 ## the running order or otherwise move them around unless you know exactly
18831 ## what you are doing...
18832 # Dependencies to place before and after the object being linked:
18833predep_objects_CXX=
18834postdep_objects_CXX=
18835predeps_CXX=
18836postdeps_CXX=
18837compiler_lib_search_path_CXX=
18838
18839cat > conftest.$ac_ext <<_LT_EOF
18840class Foo
18841{
18842public:
18843 Foo (void) { a = 0; }
18844private:
18845 int a;
18846};
18847_LT_EOF
18848
cristyda16f162011-02-19 23:52:17 +000018849
18850_lt_libdeps_save_CFLAGS=$CFLAGS
18851case "$CC $CFLAGS " in #(
18852*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18853*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018854*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018855esac
18856
cristy73bd4a52010-10-05 11:24:23 +000018857if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18858 (eval $ac_compile) 2>&5
18859 ac_status=$?
18860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18861 test $ac_status = 0; }; then
18862 # Parse the compiler output and extract the necessary
18863 # objects, libraries and library flags.
18864
18865 # Sentinel used to keep track of whether or not we are before
18866 # the conftest object file.
18867 pre_test_object_deps_done=no
18868
18869 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018870 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018871
18872 -L* | -R* | -l*)
18873 # Some compilers place space between "-{L,R}" and the path.
18874 # Remove the space.
18875 if test $p = "-L" ||
18876 test $p = "-R"; then
18877 prev=$p
18878 continue
cristy73bd4a52010-10-05 11:24:23 +000018879 fi
18880
cristyda16f162011-02-19 23:52:17 +000018881 # Expand the sysroot to ease extracting the directories later.
18882 if test -z "$prev"; then
18883 case $p in
18884 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18885 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18886 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18887 esac
18888 fi
18889 case $p in
18890 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18891 esac
cristy73bd4a52010-10-05 11:24:23 +000018892 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018893 case ${prev} in
18894 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018895 # Internal compiler library paths should come after those
18896 # provided the user. The postdeps already come after the
18897 # user supplied libs so there is no need to process them.
18898 if test -z "$compiler_lib_search_path_CXX"; then
18899 compiler_lib_search_path_CXX="${prev}${p}"
18900 else
18901 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18902 fi
18903 ;;
18904 # The "-l" case would never come before the object being
18905 # linked, so don't bother handling this case.
18906 esac
18907 else
18908 if test -z "$postdeps_CXX"; then
18909 postdeps_CXX="${prev}${p}"
18910 else
18911 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18912 fi
18913 fi
cristyda16f162011-02-19 23:52:17 +000018914 prev=
cristy73bd4a52010-10-05 11:24:23 +000018915 ;;
18916
cristyda16f162011-02-19 23:52:17 +000018917 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018918 *.$objext)
18919 # This assumes that the test object file only shows up
18920 # once in the compiler output.
18921 if test "$p" = "conftest.$objext"; then
18922 pre_test_object_deps_done=yes
18923 continue
18924 fi
18925
18926 if test "$pre_test_object_deps_done" = no; then
18927 if test -z "$predep_objects_CXX"; then
18928 predep_objects_CXX="$p"
18929 else
18930 predep_objects_CXX="$predep_objects_CXX $p"
18931 fi
18932 else
18933 if test -z "$postdep_objects_CXX"; then
18934 postdep_objects_CXX="$p"
18935 else
18936 postdep_objects_CXX="$postdep_objects_CXX $p"
18937 fi
18938 fi
18939 ;;
18940
18941 *) ;; # Ignore the rest.
18942
18943 esac
18944 done
18945
18946 # Clean up.
18947 rm -f a.out a.exe
18948else
18949 echo "libtool.m4: error: problem compiling CXX test program"
18950fi
18951
18952$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018953CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018954
18955# PORTME: override above test on systems where it is broken
18956case $host_os in
18957interix[3-9]*)
18958 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18959 # hack all around it, let's just trust "g++" to DTRT.
18960 predep_objects_CXX=
18961 postdep_objects_CXX=
18962 postdeps_CXX=
18963 ;;
18964
18965linux*)
18966 case `$CC -V 2>&1 | sed 5q` in
18967 *Sun\ C*)
18968 # Sun C++ 5.9
18969
18970 # The more standards-conforming stlport4 library is
18971 # incompatible with the Cstd library. Avoid specifying
18972 # it if it's in CXXFLAGS. Ignore libCrun as
18973 # -library=stlport4 depends on it.
18974 case " $CXX $CXXFLAGS " in
18975 *" -library=stlport4 "*)
18976 solaris_use_stlport4=yes
18977 ;;
18978 esac
18979
18980 if test "$solaris_use_stlport4" != yes; then
18981 postdeps_CXX='-library=Cstd -library=Crun'
18982 fi
18983 ;;
18984 esac
18985 ;;
18986
18987solaris*)
18988 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018989 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018990 # The more standards-conforming stlport4 library is
18991 # incompatible with the Cstd library. Avoid specifying
18992 # it if it's in CXXFLAGS. Ignore libCrun as
18993 # -library=stlport4 depends on it.
18994 case " $CXX $CXXFLAGS " in
18995 *" -library=stlport4 "*)
18996 solaris_use_stlport4=yes
18997 ;;
18998 esac
18999
19000 # Adding this requires a known-good setup of shared libraries for
19001 # Sun compiler versions before 5.6, else PIC objects from an old
19002 # archive will be linked into the output, leading to subtle bugs.
19003 if test "$solaris_use_stlport4" != yes; then
19004 postdeps_CXX='-library=Cstd -library=Crun'
19005 fi
19006 ;;
19007 esac
19008 ;;
19009esac
19010
19011
19012case " $postdeps_CXX " in
19013*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19014esac
19015 compiler_lib_search_dirs_CXX=
19016if test -n "${compiler_lib_search_path_CXX}"; then
19017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19018fi
19019
19020
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 lt_prog_compiler_wl_CXX=
19051lt_prog_compiler_pic_CXX=
19052lt_prog_compiler_static_CXX=
19053
cristy73bd4a52010-10-05 11:24:23 +000019054
19055 # C++ specific cases for pic, static, wl, etc.
19056 if test "$GXX" = yes; then
19057 lt_prog_compiler_wl_CXX='-Wl,'
19058 lt_prog_compiler_static_CXX='-static'
19059
19060 case $host_os in
19061 aix*)
19062 # All AIX code is PIC.
19063 if test "$host_cpu" = ia64; then
19064 # AIX 5 now supports IA64 processor
19065 lt_prog_compiler_static_CXX='-Bstatic'
19066 fi
19067 ;;
19068
19069 amigaos*)
19070 case $host_cpu in
19071 powerpc)
19072 # see comment about AmigaOS4 .so support
19073 lt_prog_compiler_pic_CXX='-fPIC'
19074 ;;
19075 m68k)
19076 # FIXME: we need at least 68020 code to build shared libraries, but
19077 # adding the `-m68020' flag to GCC prevents building anything better,
19078 # like `-m68040'.
19079 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19080 ;;
19081 esac
19082 ;;
19083
19084 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19085 # PIC is the default for these OSes.
19086 ;;
19087 mingw* | cygwin* | os2* | pw32* | cegcc*)
19088 # This hack is so that the source file can tell whether it is being
19089 # built for inclusion in a dll (and should export symbols for example).
19090 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19091 # (--disable-auto-import) libraries
19092 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19093 ;;
19094 darwin* | rhapsody*)
19095 # PIC is the default on this platform
19096 # Common symbols not allowed in MH_DYLIB files
19097 lt_prog_compiler_pic_CXX='-fno-common'
19098 ;;
19099 *djgpp*)
19100 # DJGPP does not support shared libraries at all
19101 lt_prog_compiler_pic_CXX=
19102 ;;
cristy0c60a692010-11-04 01:09:47 +000019103 haiku*)
19104 # PIC is the default for Haiku.
19105 # The "-static" flag exists, but is broken.
19106 lt_prog_compiler_static_CXX=
19107 ;;
cristy73bd4a52010-10-05 11:24:23 +000019108 interix[3-9]*)
19109 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19110 # Instead, we relocate shared libraries at runtime.
19111 ;;
19112 sysv4*MP*)
19113 if test -d /usr/nec; then
19114 lt_prog_compiler_pic_CXX=-Kconform_pic
19115 fi
19116 ;;
19117 hpux*)
19118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19120 # sets the default TLS model and affects inlining.
19121 case $host_cpu in
19122 hppa*64*)
19123 ;;
19124 *)
19125 lt_prog_compiler_pic_CXX='-fPIC'
19126 ;;
19127 esac
19128 ;;
19129 *qnx* | *nto*)
19130 # QNX uses GNU C++, but need to define -shared option too, otherwise
19131 # it will coredump.
19132 lt_prog_compiler_pic_CXX='-fPIC -shared'
19133 ;;
19134 *)
19135 lt_prog_compiler_pic_CXX='-fPIC'
19136 ;;
19137 esac
19138 else
19139 case $host_os in
19140 aix[4-9]*)
19141 # All AIX code is PIC.
19142 if test "$host_cpu" = ia64; then
19143 # AIX 5 now supports IA64 processor
19144 lt_prog_compiler_static_CXX='-Bstatic'
19145 else
19146 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19147 fi
19148 ;;
19149 chorus*)
19150 case $cc_basename in
19151 cxch68*)
19152 # Green Hills C++ Compiler
19153 # _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"
19154 ;;
19155 esac
19156 ;;
cristyda16f162011-02-19 23:52:17 +000019157 mingw* | cygwin* | os2* | pw32* | cegcc*)
19158 # This hack is so that the source file can tell whether it is being
19159 # built for inclusion in a dll (and should export symbols for example).
19160 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19161 ;;
cristy73bd4a52010-10-05 11:24:23 +000019162 dgux*)
19163 case $cc_basename in
19164 ec++*)
19165 lt_prog_compiler_pic_CXX='-KPIC'
19166 ;;
19167 ghcx*)
19168 # Green Hills C++ Compiler
19169 lt_prog_compiler_pic_CXX='-pic'
19170 ;;
19171 *)
19172 ;;
19173 esac
19174 ;;
19175 freebsd* | dragonfly*)
19176 # FreeBSD uses GNU C++
19177 ;;
19178 hpux9* | hpux10* | hpux11*)
19179 case $cc_basename in
19180 CC*)
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19183 if test "$host_cpu" != ia64; then
19184 lt_prog_compiler_pic_CXX='+Z'
19185 fi
19186 ;;
19187 aCC*)
19188 lt_prog_compiler_wl_CXX='-Wl,'
19189 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19190 case $host_cpu in
19191 hppa*64*|ia64*)
19192 # +Z the default
19193 ;;
19194 *)
19195 lt_prog_compiler_pic_CXX='+Z'
19196 ;;
19197 esac
19198 ;;
19199 *)
19200 ;;
19201 esac
19202 ;;
19203 interix*)
19204 # This is c89, which is MS Visual C++ (no shared libs)
19205 # Anyone wants to do a port?
19206 ;;
19207 irix5* | irix6* | nonstopux*)
19208 case $cc_basename in
19209 CC*)
19210 lt_prog_compiler_wl_CXX='-Wl,'
19211 lt_prog_compiler_static_CXX='-non_shared'
19212 # CC pic flag -KPIC is the default.
19213 ;;
19214 *)
19215 ;;
19216 esac
19217 ;;
cristy0c60a692010-11-04 01:09:47 +000019218 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019219 case $cc_basename in
19220 KCC*)
19221 # KAI C++ Compiler
19222 lt_prog_compiler_wl_CXX='--backend -Wl,'
19223 lt_prog_compiler_pic_CXX='-fPIC'
19224 ;;
19225 ecpc* )
19226 # old Intel C++ for x86_64 which still supported -KPIC.
19227 lt_prog_compiler_wl_CXX='-Wl,'
19228 lt_prog_compiler_pic_CXX='-KPIC'
19229 lt_prog_compiler_static_CXX='-static'
19230 ;;
19231 icpc* )
19232 # Intel C++, used to be incompatible with GCC.
19233 # ICC 10 doesn't accept -KPIC any more.
19234 lt_prog_compiler_wl_CXX='-Wl,'
19235 lt_prog_compiler_pic_CXX='-fPIC'
19236 lt_prog_compiler_static_CXX='-static'
19237 ;;
19238 pgCC* | pgcpp*)
19239 # Portland Group C++ compiler
19240 lt_prog_compiler_wl_CXX='-Wl,'
19241 lt_prog_compiler_pic_CXX='-fpic'
19242 lt_prog_compiler_static_CXX='-Bstatic'
19243 ;;
19244 cxx*)
19245 # Compaq C++
19246 # Make sure the PIC flag is empty. It appears that all Alpha
19247 # Linux and Compaq Tru64 Unix objects are PIC.
19248 lt_prog_compiler_pic_CXX=
19249 lt_prog_compiler_static_CXX='-non_shared'
19250 ;;
cristy0c60a692010-11-04 01:09:47 +000019251 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19252 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019253 lt_prog_compiler_wl_CXX='-Wl,'
19254 lt_prog_compiler_pic_CXX='-qpic'
19255 lt_prog_compiler_static_CXX='-qstaticlink'
19256 ;;
19257 *)
19258 case `$CC -V 2>&1 | sed 5q` in
19259 *Sun\ C*)
19260 # Sun C++ 5.9
19261 lt_prog_compiler_pic_CXX='-KPIC'
19262 lt_prog_compiler_static_CXX='-Bstatic'
19263 lt_prog_compiler_wl_CXX='-Qoption ld '
19264 ;;
19265 esac
19266 ;;
19267 esac
19268 ;;
19269 lynxos*)
19270 ;;
19271 m88k*)
19272 ;;
19273 mvs*)
19274 case $cc_basename in
19275 cxx*)
19276 lt_prog_compiler_pic_CXX='-W c,exportall'
19277 ;;
19278 *)
19279 ;;
19280 esac
19281 ;;
19282 netbsd*)
19283 ;;
19284 *qnx* | *nto*)
19285 # QNX uses GNU C++, but need to define -shared option too, otherwise
19286 # it will coredump.
19287 lt_prog_compiler_pic_CXX='-fPIC -shared'
19288 ;;
19289 osf3* | osf4* | osf5*)
19290 case $cc_basename in
19291 KCC*)
19292 lt_prog_compiler_wl_CXX='--backend -Wl,'
19293 ;;
19294 RCC*)
19295 # Rational C++ 2.4.1
19296 lt_prog_compiler_pic_CXX='-pic'
19297 ;;
19298 cxx*)
19299 # Digital/Compaq C++
19300 lt_prog_compiler_wl_CXX='-Wl,'
19301 # Make sure the PIC flag is empty. It appears that all Alpha
19302 # Linux and Compaq Tru64 Unix objects are PIC.
19303 lt_prog_compiler_pic_CXX=
19304 lt_prog_compiler_static_CXX='-non_shared'
19305 ;;
19306 *)
19307 ;;
19308 esac
19309 ;;
19310 psos*)
19311 ;;
19312 solaris*)
19313 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019314 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019315 # Sun C++ 4.2, 5.x and Centerline C++
19316 lt_prog_compiler_pic_CXX='-KPIC'
19317 lt_prog_compiler_static_CXX='-Bstatic'
19318 lt_prog_compiler_wl_CXX='-Qoption ld '
19319 ;;
19320 gcx*)
19321 # Green Hills C++ Compiler
19322 lt_prog_compiler_pic_CXX='-PIC'
19323 ;;
19324 *)
19325 ;;
19326 esac
19327 ;;
19328 sunos4*)
19329 case $cc_basename in
19330 CC*)
19331 # Sun C++ 4.x
19332 lt_prog_compiler_pic_CXX='-pic'
19333 lt_prog_compiler_static_CXX='-Bstatic'
19334 ;;
19335 lcc*)
19336 # Lucid
19337 lt_prog_compiler_pic_CXX='-pic'
19338 ;;
19339 *)
19340 ;;
19341 esac
19342 ;;
19343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19344 case $cc_basename in
19345 CC*)
19346 lt_prog_compiler_wl_CXX='-Wl,'
19347 lt_prog_compiler_pic_CXX='-KPIC'
19348 lt_prog_compiler_static_CXX='-Bstatic'
19349 ;;
19350 esac
19351 ;;
19352 tandem*)
19353 case $cc_basename in
19354 NCC*)
19355 # NonStop-UX NCC 3.20
19356 lt_prog_compiler_pic_CXX='-KPIC'
19357 ;;
19358 *)
19359 ;;
19360 esac
19361 ;;
19362 vxworks*)
19363 ;;
19364 *)
19365 lt_prog_compiler_can_build_shared_CXX=no
19366 ;;
19367 esac
19368 fi
19369
19370case $host_os in
19371 # For platforms which do not support PIC, -DPIC is meaningless:
19372 *djgpp*)
19373 lt_prog_compiler_pic_CXX=
19374 ;;
19375 *)
19376 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19377 ;;
19378esac
cristy73bd4a52010-10-05 11:24:23 +000019379
cristyda16f162011-02-19 23:52:17 +000019380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19381$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19382if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19383 $as_echo_n "(cached) " >&6
19384else
19385 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19388$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19389lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019390
19391#
19392# Check to make sure the PIC flag actually works.
19393#
19394if test -n "$lt_prog_compiler_pic_CXX"; then
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19396$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019397if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019398 $as_echo_n "(cached) " >&6
19399else
19400 lt_cv_prog_compiler_pic_works_CXX=no
19401 ac_outfile=conftest.$ac_objext
19402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19403 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19404 # Insert the option either (1) after the last *FLAGS variable, or
19405 # (2) before a word containing "conftest.", or (3) at the end.
19406 # Note that $ac_compile itself does not contain backslashes and begins
19407 # with a dollar sign (not a hyphen), so the echo should work correctly.
19408 # The option is referenced via a variable to avoid confusing sed.
19409 lt_compile=`echo "$ac_compile" | $SED \
19410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19412 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019414 (eval "$lt_compile" 2>conftest.err)
19415 ac_status=$?
19416 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019418 if (exit $ac_status) && test -s "$ac_outfile"; then
19419 # The compiler can only warn and ignore the option if not recognized
19420 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19424 lt_cv_prog_compiler_pic_works_CXX=yes
19425 fi
19426 fi
19427 $RM conftest*
19428
19429fi
19430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19431$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19432
19433if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19434 case $lt_prog_compiler_pic_CXX in
19435 "" | " "*) ;;
19436 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19437 esac
19438else
19439 lt_prog_compiler_pic_CXX=
19440 lt_prog_compiler_can_build_shared_CXX=no
19441fi
19442
19443fi
19444
19445
19446
cristyda16f162011-02-19 23:52:17 +000019447
19448
cristy73bd4a52010-10-05 11:24:23 +000019449#
19450# Check to make sure the static flag actually works.
19451#
19452wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19454$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019455if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019456 $as_echo_n "(cached) " >&6
19457else
19458 lt_cv_prog_compiler_static_works_CXX=no
19459 save_LDFLAGS="$LDFLAGS"
19460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19463 # The linker can only warn and ignore the option if not recognized
19464 # So say no if there are warnings
19465 if test -s conftest.err; then
19466 # Append any errors to the config.log.
19467 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19470 if diff conftest.exp conftest.er2 >/dev/null; then
19471 lt_cv_prog_compiler_static_works_CXX=yes
19472 fi
19473 else
19474 lt_cv_prog_compiler_static_works_CXX=yes
19475 fi
19476 fi
19477 $RM -r conftest*
19478 LDFLAGS="$save_LDFLAGS"
19479
19480fi
19481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19482$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19483
19484if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19485 :
19486else
19487 lt_prog_compiler_static_CXX=
19488fi
19489
19490
19491
19492
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019495if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019496 $as_echo_n "(cached) " >&6
19497else
19498 lt_cv_prog_compiler_c_o_CXX=no
19499 $RM -r conftest 2>/dev/null
19500 mkdir conftest
19501 cd conftest
19502 mkdir out
19503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19504
19505 lt_compiler_flag="-o out/conftest2.$ac_objext"
19506 # Insert the option either (1) after the last *FLAGS variable, or
19507 # (2) before a word containing "conftest.", or (3) at the end.
19508 # Note that $ac_compile itself does not contain backslashes and begins
19509 # with a dollar sign (not a hyphen), so the echo should work correctly.
19510 lt_compile=`echo "$ac_compile" | $SED \
19511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19513 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019515 (eval "$lt_compile" 2>out/conftest.err)
19516 ac_status=$?
19517 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19520 then
19521 # The compiler can only warn and ignore the option if not recognized
19522 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19526 lt_cv_prog_compiler_c_o_CXX=yes
19527 fi
19528 fi
19529 chmod u+w . 2>&5
19530 $RM conftest*
19531 # SGI C++ compiler will create directory out/ii_files/ for
19532 # template instantiation
19533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19534 $RM out/* && rmdir out
19535 cd ..
19536 $RM -r conftest
19537 $RM conftest*
19538
19539fi
19540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19541$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19542
19543
19544
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019547if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019548 $as_echo_n "(cached) " >&6
19549else
19550 lt_cv_prog_compiler_c_o_CXX=no
19551 $RM -r conftest 2>/dev/null
19552 mkdir conftest
19553 cd conftest
19554 mkdir out
19555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19556
19557 lt_compiler_flag="-o out/conftest2.$ac_objext"
19558 # Insert the option either (1) after the last *FLAGS variable, or
19559 # (2) before a word containing "conftest.", or (3) at the end.
19560 # Note that $ac_compile itself does not contain backslashes and begins
19561 # with a dollar sign (not a hyphen), so the echo should work correctly.
19562 lt_compile=`echo "$ac_compile" | $SED \
19563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19565 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019567 (eval "$lt_compile" 2>out/conftest.err)
19568 ac_status=$?
19569 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19572 then
19573 # The compiler can only warn and ignore the option if not recognized
19574 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19578 lt_cv_prog_compiler_c_o_CXX=yes
19579 fi
19580 fi
19581 chmod u+w . 2>&5
19582 $RM conftest*
19583 # SGI C++ compiler will create directory out/ii_files/ for
19584 # template instantiation
19585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19586 $RM out/* && rmdir out
19587 cd ..
19588 $RM -r conftest
19589 $RM conftest*
19590
19591fi
19592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19593$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19594
19595
19596
19597
19598hard_links="nottested"
19599if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19600 # do not overwrite the value of need_locks provided by the user
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19602$as_echo_n "checking if we can lock with hard links... " >&6; }
19603 hard_links=yes
19604 $RM conftest*
19605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19606 touch conftest.a
19607 ln conftest.a conftest.b 2>&5 || hard_links=no
19608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19610$as_echo "$hard_links" >&6; }
19611 if test "$hard_links" = no; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19613$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19614 need_locks=warn
19615 fi
19616else
19617 need_locks=no
19618fi
19619
19620
19621
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19623$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19624
19625 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019626 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019627 case $host_os in
19628 aix[4-9]*)
19629 # If we're using GNU nm, then we don't want the "-C" option.
19630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019631 # Also, AIX nm treats weak defined symbols like other global defined
19632 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019633 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019634 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 +000019635 else
19636 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'
19637 fi
19638 ;;
19639 pw32*)
19640 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019641 ;;
cristy73bd4a52010-10-05 11:24:23 +000019642 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019643 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019644 cl*)
19645 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19646 ;;
cristyda16f162011-02-19 23:52:17 +000019647 *)
19648 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'
19649 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19650 ;;
19651 esac
19652 ;;
cristy73bd4a52010-10-05 11:24:23 +000019653 *)
19654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019655 ;;
cristy73bd4a52010-10-05 11:24:23 +000019656 esac
cristy73bd4a52010-10-05 11:24:23 +000019657
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19659$as_echo "$ld_shlibs_CXX" >&6; }
19660test "$ld_shlibs_CXX" = no && can_build_shared=no
19661
19662with_gnu_ld_CXX=$with_gnu_ld
19663
19664
19665
19666
19667
19668
19669#
19670# Do we need to explicitly link libc?
19671#
19672case "x$archive_cmds_need_lc_CXX" in
19673x|xyes)
19674 # Assume -lc should be added
19675 archive_cmds_need_lc_CXX=yes
19676
19677 if test "$enable_shared" = yes && test "$GCC" = yes; then
19678 case $archive_cmds_CXX in
19679 *'~'*)
19680 # FIXME: we may have to deal with multi-command sequences.
19681 ;;
19682 '$CC '*)
19683 # Test whether the compiler implicitly links with -lc since on some
19684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685 # to ld, don't add -lc before -lgcc.
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019688if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019689 $as_echo_n "(cached) " >&6
19690else
19691 $RM conftest*
19692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019693
cristy0c60a692010-11-04 01:09:47 +000019694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019695 (eval $ac_compile) 2>&5
19696 ac_status=$?
19697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019699 soname=conftest
19700 lib=conftest
19701 libobjs=conftest.$ac_objext
19702 deplibs=
19703 wl=$lt_prog_compiler_wl_CXX
19704 pic_flag=$lt_prog_compiler_pic_CXX
19705 compiler_flags=-v
19706 linker_flags=-v
19707 verstring=
19708 output_objdir=.
19709 libname=conftest
19710 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19711 allow_undefined_flag_CXX=
19712 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 +000019713 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19714 ac_status=$?
19715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19716 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019717 then
19718 lt_cv_archive_cmds_need_lc_CXX=no
19719 else
19720 lt_cv_archive_cmds_need_lc_CXX=yes
19721 fi
19722 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19723 else
19724 cat conftest.err 1>&5
19725 fi
19726 $RM conftest*
19727
19728fi
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19730$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19731 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019732 ;;
19733 esac
19734 fi
19735 ;;
19736esac
19737
19738
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
cristy73bd4a52010-10-05 11:24:23 +000019799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19800$as_echo_n "checking dynamic linker characteristics... " >&6; }
19801
19802library_names_spec=
19803libname_spec='lib$name'
19804soname_spec=
19805shrext_cmds=".so"
19806postinstall_cmds=
19807postuninstall_cmds=
19808finish_cmds=
19809finish_eval=
19810shlibpath_var=
19811shlibpath_overrides_runpath=unknown
19812version_type=none
19813dynamic_linker="$host_os ld.so"
19814sys_lib_dlsearch_path_spec="/lib /usr/lib"
19815need_lib_prefix=unknown
19816hardcode_into_libs=no
19817
19818# when you set need_version to no, make sure it does not cause -set_version
19819# flags to be left without arguments
19820need_version=unknown
19821
19822case $host_os in
19823aix3*)
cristy99bd5232011-12-07 14:38:20 +000019824 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19826 shlibpath_var=LIBPATH
19827
19828 # AIX 3 has no versioning support, so we append a major version to the name.
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 ;;
19831
19832aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019833 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019834 need_lib_prefix=no
19835 need_version=no
19836 hardcode_into_libs=yes
19837 if test "$host_cpu" = ia64; then
19838 # AIX 5 supports IA64
19839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 else
19842 # With GCC up to 2.95.x, collect2 would create an import file
19843 # for dependence libraries. The import file would start with
19844 # the line `#! .'. This would cause the generated library to
19845 # depend on `.', always an invalid library. This was fixed in
19846 # development snapshots of GCC prior to 3.0.
19847 case $host_os in
19848 aix4 | aix4.[01] | aix4.[01].*)
19849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19850 echo ' yes '
19851 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19852 :
19853 else
19854 can_build_shared=no
19855 fi
19856 ;;
19857 esac
19858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19859 # soname into executable. Probably we can add versioning support to
19860 # collect2, so additional links can be useful in future.
19861 if test "$aix_use_runtimelinking" = yes; then
19862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19863 # instead of lib<name>.a to let people know that these are not
19864 # typical AIX shared libraries.
19865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19866 else
19867 # We preserve .a as extension for shared libraries through AIX4.2
19868 # and later when we are not doing run time linking.
19869 library_names_spec='${libname}${release}.a $libname.a'
19870 soname_spec='${libname}${release}${shared_ext}$major'
19871 fi
19872 shlibpath_var=LIBPATH
19873 fi
19874 ;;
19875
19876amigaos*)
19877 case $host_cpu in
19878 powerpc)
19879 # Since July 2007 AmigaOS4 officially supports .so libraries.
19880 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19882 ;;
19883 m68k)
19884 library_names_spec='$libname.ixlibrary $libname.a'
19885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019886 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 +000019887 ;;
19888 esac
19889 ;;
19890
19891beos*)
19892 library_names_spec='${libname}${shared_ext}'
19893 dynamic_linker="$host_os ld.so"
19894 shlibpath_var=LIBRARY_PATH
19895 ;;
19896
19897bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019898 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019899 need_version=no
19900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19901 soname_spec='${libname}${release}${shared_ext}$major'
19902 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19903 shlibpath_var=LD_LIBRARY_PATH
19904 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19905 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19906 # the default ld.so.conf also contains /usr/contrib/lib and
19907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19908 # libtool to hard-code these into programs
19909 ;;
19910
19911cygwin* | mingw* | pw32* | cegcc*)
19912 version_type=windows
19913 shrext_cmds=".dll"
19914 need_version=no
19915 need_lib_prefix=no
19916
cristyda16f162011-02-19 23:52:17 +000019917 case $GCC,$cc_basename in
19918 yes,*)
19919 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019920 library_names_spec='$libname.dll.a'
19921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19922 postinstall_cmds='base_file=`basename \${file}`~
19923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19924 dldir=$destdir/`dirname \$dlpath`~
19925 test -d \$dldir || mkdir -p \$dldir~
19926 $install_prog $dir/$dlname \$dldir/$dlname~
19927 chmod a+x \$dldir/$dlname~
19928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19930 fi'
19931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19932 dlpath=$dir/\$dldll~
19933 $RM \$dlpath'
19934 shlibpath_overrides_runpath=yes
19935
19936 case $host_os in
19937 cygwin*)
19938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019940
cristy73bd4a52010-10-05 11:24:23 +000019941 ;;
19942 mingw* | cegcc*)
19943 # MinGW DLLs use traditional 'lib' prefix
19944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019945 ;;
19946 pw32*)
19947 # pw32 DLLs use 'pw' prefix rather than 'lib'
19948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19949 ;;
19950 esac
cristyda16f162011-02-19 23:52:17 +000019951 dynamic_linker='Win32 ld.exe'
19952 ;;
19953
19954 *,cl*)
19955 # Native MSVC
19956 libname_spec='$name'
19957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19958 library_names_spec='${libname}.dll.lib'
19959
19960 case $build_os in
19961 mingw*)
19962 sys_lib_search_path_spec=
19963 lt_save_ifs=$IFS
19964 IFS=';'
19965 for lt_path in $LIB
19966 do
19967 IFS=$lt_save_ifs
19968 # Let DOS variable expansion print the short 8.3 style file name.
19969 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19970 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19971 done
19972 IFS=$lt_save_ifs
19973 # Convert to MSYS style.
19974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19975 ;;
19976 cygwin*)
19977 # Convert to unix form, then to dos form, then back to unix form
19978 # but this time dos style (no spaces!) so that the unix form looks
19979 # like /cygdrive/c/PROGRA~1:/cygdr...
19980 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19981 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19982 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19983 ;;
19984 *)
19985 sys_lib_search_path_spec="$LIB"
19986 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19987 # It is most probably a Windows format PATH.
19988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19989 else
19990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19991 fi
19992 # FIXME: find the short name or the path components, as spaces are
19993 # common. (e.g. "Program Files" -> "PROGRA~1")
19994 ;;
19995 esac
19996
19997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19998 postinstall_cmds='base_file=`basename \${file}`~
19999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20000 dldir=$destdir/`dirname \$dlpath`~
20001 test -d \$dldir || mkdir -p \$dldir~
20002 $install_prog $dir/$dlname \$dldir/$dlname'
20003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20004 dlpath=$dir/\$dldll~
20005 $RM \$dlpath'
20006 shlibpath_overrides_runpath=yes
20007 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020008 ;;
20009
20010 *)
cristyda16f162011-02-19 23:52:17 +000020011 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020013 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020014 ;;
20015 esac
cristy73bd4a52010-10-05 11:24:23 +000020016 # FIXME: first we should search . and the directory the executable is in
20017 shlibpath_var=PATH
20018 ;;
20019
20020darwin* | rhapsody*)
20021 dynamic_linker="$host_os dyld"
20022 version_type=darwin
20023 need_lib_prefix=no
20024 need_version=no
20025 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20026 soname_spec='${libname}${release}${major}$shared_ext'
20027 shlibpath_overrides_runpath=yes
20028 shlibpath_var=DYLD_LIBRARY_PATH
20029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20030
20031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20032 ;;
20033
20034dgux*)
cristy99bd5232011-12-07 14:38:20 +000020035 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020036 need_lib_prefix=no
20037 need_version=no
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 shlibpath_var=LD_LIBRARY_PATH
20041 ;;
20042
cristy73bd4a52010-10-05 11:24:23 +000020043freebsd* | dragonfly*)
20044 # DragonFly does not have aout. When/if they implement a new
20045 # versioning mechanism, adjust this.
20046 if test -x /usr/bin/objformat; then
20047 objformat=`/usr/bin/objformat`
20048 else
20049 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020050 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020051 *) objformat=elf ;;
20052 esac
20053 fi
20054 version_type=freebsd-$objformat
20055 case $version_type in
20056 freebsd-elf*)
20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20058 need_version=no
20059 need_lib_prefix=no
20060 ;;
20061 freebsd-*)
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20063 need_version=yes
20064 ;;
20065 esac
20066 shlibpath_var=LD_LIBRARY_PATH
20067 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020068 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020069 shlibpath_overrides_runpath=yes
20070 ;;
20071 freebsd3.[01]* | freebsdelf3.[01]*)
20072 shlibpath_overrides_runpath=yes
20073 hardcode_into_libs=yes
20074 ;;
20075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20077 shlibpath_overrides_runpath=no
20078 hardcode_into_libs=yes
20079 ;;
20080 *) # from 4.6 on, and DragonFly
20081 shlibpath_overrides_runpath=yes
20082 hardcode_into_libs=yes
20083 ;;
20084 esac
20085 ;;
20086
20087gnu*)
cristy99bd5232011-12-07 14:38:20 +000020088 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020089 need_lib_prefix=no
20090 need_version=no
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20092 soname_spec='${libname}${release}${shared_ext}$major'
20093 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020094 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020095 hardcode_into_libs=yes
20096 ;;
20097
cristy0c60a692010-11-04 01:09:47 +000020098haiku*)
cristy99bd5232011-12-07 14:38:20 +000020099 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020100 need_lib_prefix=no
20101 need_version=no
20102 dynamic_linker="$host_os runtime_loader"
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20104 soname_spec='${libname}${release}${shared_ext}$major'
20105 shlibpath_var=LIBRARY_PATH
20106 shlibpath_overrides_runpath=yes
20107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20108 hardcode_into_libs=yes
20109 ;;
20110
cristy73bd4a52010-10-05 11:24:23 +000020111hpux9* | hpux10* | hpux11*)
20112 # Give a soname corresponding to the major version so that dld.sl refuses to
20113 # link against other versions.
20114 version_type=sunos
20115 need_lib_prefix=no
20116 need_version=no
20117 case $host_cpu in
20118 ia64*)
20119 shrext_cmds='.so'
20120 hardcode_into_libs=yes
20121 dynamic_linker="$host_os dld.so"
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20125 soname_spec='${libname}${release}${shared_ext}$major'
20126 if test "X$HPUX_IA64_MODE" = X32; then
20127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20128 else
20129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20130 fi
20131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20132 ;;
20133 hppa*64*)
20134 shrext_cmds='.sl'
20135 hardcode_into_libs=yes
20136 dynamic_linker="$host_os dld.sl"
20137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20143 ;;
20144 *)
20145 shrext_cmds='.sl'
20146 dynamic_linker="$host_os dld.sl"
20147 shlibpath_var=SHLIB_PATH
20148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 ;;
20152 esac
cristy0c60a692010-11-04 01:09:47 +000020153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020154 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020155 # or fails outright, so override atomically:
20156 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020157 ;;
20158
20159interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020160 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020161 need_lib_prefix=no
20162 need_version=no
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 shlibpath_overrides_runpath=no
20168 hardcode_into_libs=yes
20169 ;;
20170
20171irix5* | irix6* | nonstopux*)
20172 case $host_os in
20173 nonstopux*) version_type=nonstopux ;;
20174 *)
20175 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020176 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020177 else
20178 version_type=irix
20179 fi ;;
20180 esac
20181 need_lib_prefix=no
20182 need_version=no
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20185 case $host_os in
20186 irix5* | nonstopux*)
20187 libsuff= shlibsuff=
20188 ;;
20189 *)
20190 case $LD in # libtool.m4 will add one of these switches to LD
20191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20192 libsuff= shlibsuff= libmagic=32-bit;;
20193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20194 libsuff=32 shlibsuff=N32 libmagic=N32;;
20195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20197 *) libsuff= shlibsuff= libmagic=never-match;;
20198 esac
20199 ;;
20200 esac
20201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20202 shlibpath_overrides_runpath=no
20203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20205 hardcode_into_libs=yes
20206 ;;
20207
20208# No shared lib support for Linux oldld, aout, or coff.
20209linux*oldld* | linux*aout* | linux*coff*)
20210 dynamic_linker=no
20211 ;;
20212
cristy99bd5232011-12-07 14:38:20 +000020213# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020214linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020215 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020216 need_lib_prefix=no
20217 need_version=no
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20221 shlibpath_var=LD_LIBRARY_PATH
20222 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020223
cristy73bd4a52010-10-05 11:24:23 +000020224 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020225 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020226 $as_echo_n "(cached) " >&6
20227else
20228 lt_cv_shlibpath_overrides_runpath=no
20229 save_LDFLAGS=$LDFLAGS
20230 save_libdir=$libdir
20231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020234/* end confdefs.h. */
20235
20236int
20237main ()
20238{
20239
20240 ;
20241 return 0;
20242}
20243_ACEOF
20244if ac_fn_cxx_try_link "$LINENO"; then :
20245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020246 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020247fi
20248fi
20249rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020251 LDFLAGS=$save_LDFLAGS
20252 libdir=$save_libdir
20253
20254fi
20255
20256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020257
20258 # This implies no fast_install, which is unacceptable.
20259 # Some rework will be needed to allow for fast_install
20260 # before this can be enabled.
20261 hardcode_into_libs=yes
20262
20263 # Add ABI-specific directories to the system library path.
20264 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20265
20266 # Append ld.so.conf contents to the search path
20267 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020268 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 +000020269 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020270
cristy73bd4a52010-10-05 11:24:23 +000020271 fi
20272
20273 # We used to test for /lib/ld.so.1 and disable shared libraries on
20274 # powerpc, because MkLinux only supported shared libraries with the
20275 # GNU dynamic linker. Since this was broken with cross compilers,
20276 # most powerpc-linux boxes support dynamic linking these days and
20277 # people can always --disable-shared, the test was removed, and we
20278 # assume the GNU/Linux dynamic linker is in use.
20279 dynamic_linker='GNU/Linux ld.so'
20280 ;;
20281
20282netbsd*)
20283 version_type=sunos
20284 need_lib_prefix=no
20285 need_version=no
20286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289 dynamic_linker='NetBSD (a.out) ld.so'
20290 else
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 dynamic_linker='NetBSD ld.elf_so'
20294 fi
20295 shlibpath_var=LD_LIBRARY_PATH
20296 shlibpath_overrides_runpath=yes
20297 hardcode_into_libs=yes
20298 ;;
20299
20300newsos6)
cristy99bd5232011-12-07 14:38:20 +000020301 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303 shlibpath_var=LD_LIBRARY_PATH
20304 shlibpath_overrides_runpath=yes
20305 ;;
20306
20307*nto* | *qnx*)
20308 version_type=qnx
20309 need_lib_prefix=no
20310 need_version=no
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 shlibpath_overrides_runpath=no
20315 hardcode_into_libs=yes
20316 dynamic_linker='ldqnx.so'
20317 ;;
20318
20319openbsd*)
20320 version_type=sunos
20321 sys_lib_dlsearch_path_spec="/usr/lib"
20322 need_lib_prefix=no
20323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20324 case $host_os in
20325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20326 *) need_version=no ;;
20327 esac
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20332 case $host_os in
20333 openbsd2.[89] | openbsd2.[89].*)
20334 shlibpath_overrides_runpath=no
20335 ;;
20336 *)
20337 shlibpath_overrides_runpath=yes
20338 ;;
20339 esac
20340 else
20341 shlibpath_overrides_runpath=yes
20342 fi
20343 ;;
20344
20345os2*)
20346 libname_spec='$name'
20347 shrext_cmds=".dll"
20348 need_lib_prefix=no
20349 library_names_spec='$libname${shared_ext} $libname.a'
20350 dynamic_linker='OS/2 ld.exe'
20351 shlibpath_var=LIBPATH
20352 ;;
20353
20354osf3* | osf4* | osf5*)
20355 version_type=osf
20356 need_lib_prefix=no
20357 need_version=no
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20363 ;;
20364
20365rdos*)
20366 dynamic_linker=no
20367 ;;
20368
20369solaris*)
cristy99bd5232011-12-07 14:38:20 +000020370 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020371 need_lib_prefix=no
20372 need_version=no
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 shlibpath_overrides_runpath=yes
20377 hardcode_into_libs=yes
20378 # ldd complains unless libraries are executable
20379 postinstall_cmds='chmod +x $lib'
20380 ;;
20381
20382sunos4*)
20383 version_type=sunos
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 if test "$with_gnu_ld" = yes; then
20389 need_lib_prefix=no
20390 fi
20391 need_version=yes
20392 ;;
20393
20394sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020395 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 case $host_vendor in
20400 sni)
20401 shlibpath_overrides_runpath=no
20402 need_lib_prefix=no
20403 runpath_var=LD_RUN_PATH
20404 ;;
20405 siemens)
20406 need_lib_prefix=no
20407 ;;
20408 motorola)
20409 need_lib_prefix=no
20410 need_version=no
20411 shlibpath_overrides_runpath=no
20412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20413 ;;
20414 esac
20415 ;;
20416
20417sysv4*MP*)
20418 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20421 soname_spec='$libname${shared_ext}.$major'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 fi
20424 ;;
20425
20426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20427 version_type=freebsd-elf
20428 need_lib_prefix=no
20429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 shlibpath_var=LD_LIBRARY_PATH
20433 shlibpath_overrides_runpath=yes
20434 hardcode_into_libs=yes
20435 if test "$with_gnu_ld" = yes; then
20436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20437 else
20438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20439 case $host_os in
20440 sco3.2v5*)
20441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20442 ;;
20443 esac
20444 fi
20445 sys_lib_dlsearch_path_spec='/usr/lib'
20446 ;;
20447
20448tpf*)
20449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020450 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020451 need_lib_prefix=no
20452 need_version=no
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20454 shlibpath_var=LD_LIBRARY_PATH
20455 shlibpath_overrides_runpath=no
20456 hardcode_into_libs=yes
20457 ;;
20458
20459uts4*)
cristy99bd5232011-12-07 14:38:20 +000020460 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 ;;
20465
20466*)
20467 dynamic_linker=no
20468 ;;
20469esac
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20471$as_echo "$dynamic_linker" >&6; }
20472test "$dynamic_linker" = no && can_build_shared=no
20473
20474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20475if test "$GCC" = yes; then
20476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20477fi
20478
20479if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20481fi
20482if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20484fi
20485
20486
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
cristy0c60a692010-11-04 01:09:47 +000020521
20522
cristy73bd4a52010-10-05 11:24:23 +000020523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20524$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20525hardcode_action_CXX=
20526if test -n "$hardcode_libdir_flag_spec_CXX" ||
20527 test -n "$runpath_var_CXX" ||
20528 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20529
20530 # We can hardcode non-existent directories.
20531 if test "$hardcode_direct_CXX" != no &&
20532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20533 # have to relink, otherwise we might link with an installed library
20534 # when we should be linking with a yet-to-be-installed one
20535 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20536 test "$hardcode_minus_L_CXX" != no; then
20537 # Linking always hardcodes the temporary library directory.
20538 hardcode_action_CXX=relink
20539 else
20540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20541 hardcode_action_CXX=immediate
20542 fi
20543else
20544 # We cannot hardcode anything, or else we can only hardcode existing
20545 # directories.
20546 hardcode_action_CXX=unsupported
20547fi
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20549$as_echo "$hardcode_action_CXX" >&6; }
20550
20551if test "$hardcode_action_CXX" = relink ||
20552 test "$inherit_rpath_CXX" = yes; then
20553 # Fast installation is not supported
20554 enable_fast_install=no
20555elif test "$shlibpath_overrides_runpath" = yes ||
20556 test "$enable_shared" = no; then
20557 # Fast installation is not necessary
20558 enable_fast_install=needless
20559fi
20560
20561
20562
20563
20564
20565
20566
20567 fi # test -n "$compiler"
20568
20569 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020570 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020571 LDCXX=$LD
20572 LD=$lt_save_LD
20573 GCC=$lt_save_GCC
20574 with_gnu_ld=$lt_save_with_gnu_ld
20575 lt_cv_path_LDCXX=$lt_cv_path_LD
20576 lt_cv_path_LD=$lt_save_path_LD
20577 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20578 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20579fi # test "$_lt_caught_CXX_error" != yes
20580
20581ac_ext=c
20582ac_cpp='$CPP $CPPFLAGS'
20583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_c_compiler_gnu
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
cristy99bd5232011-12-07 14:38:20 +000020599
20600
cristy73bd4a52010-10-05 11:24:23 +000020601 ac_config_commands="$ac_config_commands libtool"
20602
20603
20604
20605
20606# Only expand once:
20607
20608
20609
cristy3ed852e2009-09-05 21:47:34 +000020610
20611
20612# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020613
20614
20615
20616
20617
20618
20619
cristy73bd4a52010-10-05 11:24:23 +000020620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20621$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020622if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020623 $as_echo_n "(cached) " >&6
20624else
20625
20626module=yes
20627eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020628module=no
20629eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020630
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20633$as_echo "$libltdl_cv_shlibext" >&6; }
20634if test -n "$libltdl_cv_shlibext"; then
20635
20636cat >>confdefs.h <<_ACEOF
20637#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20638_ACEOF
20639
20640fi
cristy99bd5232011-12-07 14:38:20 +000020641if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LT_SHARED_EXT "$libltdl_cv_shrext"
20645_ACEOF
20646
20647fi
cristy73bd4a52010-10-05 11:24:23 +000020648
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20650$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020651if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020652 $as_echo_n "(cached) " >&6
20653else
20654 lt_cv_module_path_var="$shlibpath_var"
20655fi
20656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20657$as_echo "$lt_cv_module_path_var" >&6; }
20658if test -n "$lt_cv_module_path_var"; then
20659
20660cat >>confdefs.h <<_ACEOF
20661#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20662_ACEOF
20663
20664fi
20665
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20667$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020668if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020669 $as_echo_n "(cached) " >&6
20670else
20671 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20674$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20675if test -n "$lt_cv_sys_dlsearch_path"; then
20676 sys_dlsearch_path=
20677 for dir in $lt_cv_sys_dlsearch_path; do
20678 if test -z "$sys_dlsearch_path"; then
20679 sys_dlsearch_path="$dir"
20680 else
20681 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20682 fi
20683 done
20684
20685cat >>confdefs.h <<_ACEOF
20686#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20687_ACEOF
20688
20689fi
20690
20691
20692LT_DLLOADERS=
20693
20694
20695ac_ext=c
20696ac_cpp='$CPP $CPPFLAGS'
20697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700
20701
20702LIBADD_DLOPEN=
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20704$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020705if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020706 $as_echo_n "(cached) " >&6
20707else
20708 ac_func_search_save_LIBS=$LIBS
20709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710/* end confdefs.h. */
20711
20712/* Override any GCC internal prototype to avoid an error.
20713 Use char because int might match the return type of a GCC
20714 builtin and then its argument prototype would still apply. */
20715#ifdef __cplusplus
20716extern "C"
20717#endif
20718char dlopen ();
20719int
20720main ()
20721{
20722return dlopen ();
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727for ac_lib in '' dl; do
20728 if test -z "$ac_lib"; then
20729 ac_res="none required"
20730 else
20731 ac_res=-l$ac_lib
20732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20733 fi
20734 if ac_fn_c_try_link "$LINENO"; then :
20735 ac_cv_search_dlopen=$ac_res
20736fi
20737rm -f core conftest.err conftest.$ac_objext \
20738 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020739 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020740 break
20741fi
20742done
cristyda16f162011-02-19 23:52:17 +000020743if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020744
20745else
20746 ac_cv_search_dlopen=no
20747fi
20748rm conftest.$ac_ext
20749LIBS=$ac_func_search_save_LIBS
20750fi
20751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20752$as_echo "$ac_cv_search_dlopen" >&6; }
20753ac_res=$ac_cv_search_dlopen
20754if test "$ac_res" != no; then :
20755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20756
20757$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20758
20759 if test "$ac_cv_search_dlopen" != "none required" ; then
20760 LIBADD_DLOPEN="-ldl"
20761 fi
20762 libltdl_cv_lib_dl_dlopen="yes"
20763 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20764else
20765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20766/* end confdefs.h. */
20767#if HAVE_DLFCN_H
20768# include <dlfcn.h>
20769#endif
20770
20771int
20772main ()
20773{
20774dlopen(0, 0);
20775 ;
20776 return 0;
20777}
20778_ACEOF
20779if ac_fn_c_try_link "$LINENO"; then :
20780
20781$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20782
20783 libltdl_cv_func_dlopen="yes"
20784 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20785else
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20787$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020788if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020789 $as_echo_n "(cached) " >&6
20790else
20791 ac_check_lib_save_LIBS=$LIBS
20792LIBS="-lsvld $LIBS"
20793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794/* end confdefs.h. */
20795
20796/* Override any GCC internal prototype to avoid an error.
20797 Use char because int might match the return type of a GCC
20798 builtin and then its argument prototype would still apply. */
20799#ifdef __cplusplus
20800extern "C"
20801#endif
20802char dlopen ();
20803int
20804main ()
20805{
20806return dlopen ();
20807 ;
20808 return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_link "$LINENO"; then :
20812 ac_cv_lib_svld_dlopen=yes
20813else
20814 ac_cv_lib_svld_dlopen=no
20815fi
20816rm -f core conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
20818LIBS=$ac_check_lib_save_LIBS
20819fi
20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20821$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020822if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020823
20824$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20825
20826 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20827 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20828fi
20829
20830fi
20831rm -f core conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20833fi
20834
20835if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20836then
20837 lt_save_LIBS="$LIBS"
20838 LIBS="$LIBS $LIBADD_DLOPEN"
20839 for ac_func in dlerror
20840do :
20841 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020842if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020843 cat >>confdefs.h <<_ACEOF
20844#define HAVE_DLERROR 1
20845_ACEOF
20846
20847fi
20848done
20849
20850 LIBS="$lt_save_LIBS"
20851fi
20852
20853
20854LIBADD_SHL_LOAD=
20855ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857
20858$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20859
20860 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20861else
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20863$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020864if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020865 $as_echo_n "(cached) " >&6
20866else
20867 ac_check_lib_save_LIBS=$LIBS
20868LIBS="-ldld $LIBS"
20869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870/* end confdefs.h. */
20871
20872/* Override any GCC internal prototype to avoid an error.
20873 Use char because int might match the return type of a GCC
20874 builtin and then its argument prototype would still apply. */
20875#ifdef __cplusplus
20876extern "C"
20877#endif
20878char shl_load ();
20879int
20880main ()
20881{
20882return shl_load ();
20883 ;
20884 return 0;
20885}
20886_ACEOF
20887if ac_fn_c_try_link "$LINENO"; then :
20888 ac_cv_lib_dld_shl_load=yes
20889else
20890 ac_cv_lib_dld_shl_load=no
20891fi
20892rm -f core conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20894LIBS=$ac_check_lib_save_LIBS
20895fi
20896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20897$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020898if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020899
20900$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20901
20902 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20903 LIBADD_SHL_LOAD="-ldld"
20904fi
20905
20906fi
20907
20908
20909
20910case $host_os in
20911darwin[1567].*)
20912# We only want this for pre-Mac OS X 10.4.
20913 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020914if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020915
20916$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20917
20918 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20919fi
20920
20921 ;;
20922beos*)
20923 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20924 ;;
20925cygwin* | mingw* | os2* | pw32*)
20926 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20927"
cristyda16f162011-02-19 23:52:17 +000020928if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020929 ac_have_decl=1
20930else
20931 ac_have_decl=0
20932fi
20933
20934cat >>confdefs.h <<_ACEOF
20935#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20936_ACEOF
20937
20938 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20939 ;;
20940esac
20941
20942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20943$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020944if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020945 $as_echo_n "(cached) " >&6
20946else
20947 ac_check_lib_save_LIBS=$LIBS
20948LIBS="-ldld $LIBS"
20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950/* end confdefs.h. */
20951
20952/* Override any GCC internal prototype to avoid an error.
20953 Use char because int might match the return type of a GCC
20954 builtin and then its argument prototype would still apply. */
20955#ifdef __cplusplus
20956extern "C"
20957#endif
20958char dld_link ();
20959int
20960main ()
20961{
20962return dld_link ();
20963 ;
20964 return 0;
20965}
20966_ACEOF
20967if ac_fn_c_try_link "$LINENO"; then :
20968 ac_cv_lib_dld_dld_link=yes
20969else
20970 ac_cv_lib_dld_dld_link=no
20971fi
20972rm -f core conftest.err conftest.$ac_objext \
20973 conftest$ac_exeext conftest.$ac_ext
20974LIBS=$ac_check_lib_save_LIBS
20975fi
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20977$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020978if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020979
20980$as_echo "#define HAVE_DLD 1" >>confdefs.h
20981
20982 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20983fi
20984
20985
20986
20987
20988LT_DLPREOPEN=
20989if test -n "$LT_DLLOADERS"
20990then
20991 for lt_loader in $LT_DLLOADERS; do
20992 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20993 done
20994
20995$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20996
20997fi
20998
20999
21000LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21001
21002
21003ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21011$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021012if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021013 $as_echo_n "(cached) " >&6
21014else
21015 lt_cv_sys_symbol_underscore=no
21016 cat > conftest.$ac_ext <<_LT_EOF
21017void nm_test_func(){}
21018int main(){nm_test_func;return 0;}
21019_LT_EOF
21020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21021 (eval $ac_compile) 2>&5
21022 ac_status=$?
21023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024 test $ac_status = 0; }; then
21025 # Now try to grab the symbols.
21026 ac_nlist=conftest.nm
21027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21028 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21029 ac_status=$?
21030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031 test $ac_status = 0; } && test -s "$ac_nlist"; then
21032 # See whether the symbols have a leading underscore.
21033 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21034 lt_cv_sys_symbol_underscore=yes
21035 else
21036 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21037 :
21038 else
21039 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21040 fi
21041 fi
21042 else
21043 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21044 fi
21045 else
21046 echo "configure: failed program was:" >&5
21047 cat conftest.c >&5
21048 fi
21049 rm -rf conftest*
21050
21051fi
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21053$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21054 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21055
21056
21057if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21058 if test x"$libltdl_cv_func_dlopen" = xyes ||
21059 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21061$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021062if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021063 $as_echo_n "(cached) " >&6
21064else
21065 libltdl_cv_need_uscore=unknown
21066 save_LIBS="$LIBS"
21067 LIBS="$LIBS $LIBADD_DLOPEN"
21068 if test "$cross_compiling" = yes; then :
21069 libltdl_cv_need_uscore=cross
21070else
21071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21072 lt_status=$lt_dlunknown
21073 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021074#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021075#include "confdefs.h"
21076
21077#if HAVE_DLFCN_H
21078#include <dlfcn.h>
21079#endif
21080
21081#include <stdio.h>
21082
21083#ifdef RTLD_GLOBAL
21084# define LT_DLGLOBAL RTLD_GLOBAL
21085#else
21086# ifdef DL_GLOBAL
21087# define LT_DLGLOBAL DL_GLOBAL
21088# else
21089# define LT_DLGLOBAL 0
21090# endif
21091#endif
21092
21093/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21094 find out it does not work in some platform. */
21095#ifndef LT_DLLAZY_OR_NOW
21096# ifdef RTLD_LAZY
21097# define LT_DLLAZY_OR_NOW RTLD_LAZY
21098# else
21099# ifdef DL_LAZY
21100# define LT_DLLAZY_OR_NOW DL_LAZY
21101# else
21102# ifdef RTLD_NOW
21103# define LT_DLLAZY_OR_NOW RTLD_NOW
21104# else
21105# ifdef DL_NOW
21106# define LT_DLLAZY_OR_NOW DL_NOW
21107# else
21108# define LT_DLLAZY_OR_NOW 0
21109# endif
21110# endif
21111# endif
21112# endif
21113#endif
21114
cristy0c60a692010-11-04 01:09:47 +000021115/* When -fvisbility=hidden is used, assume the code has been annotated
21116 correspondingly for the symbols needed. */
21117#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021118int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021119#endif
21120
cristyda16f162011-02-19 23:52:17 +000021121int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021122int main ()
21123{
21124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21125 int status = $lt_dlunknown;
21126
21127 if (self)
21128 {
21129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021130 else
21131 {
21132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21133 else puts (dlerror ());
21134 }
cristy73bd4a52010-10-05 11:24:23 +000021135 /* dlclose (self); */
21136 }
21137 else
21138 puts (dlerror ());
21139
21140 return status;
21141}
21142_LT_EOF
21143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21144 (eval $ac_link) 2>&5
21145 ac_status=$?
21146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21148 (./conftest; exit; ) >&5 2>/dev/null
21149 lt_status=$?
21150 case x$lt_status in
21151 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21152 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21153 x$lt_dlunknown|x*) ;;
21154 esac
21155 else :
21156 # compilation failed
21157
21158 fi
21159fi
21160rm -fr conftest*
21161
21162 LIBS="$save_LIBS"
21163
21164fi
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21166$as_echo "$libltdl_cv_need_uscore" >&6; }
21167 fi
21168fi
21169
21170if test x"$libltdl_cv_need_uscore" = xyes; then
21171
21172$as_echo "#define NEED_USCORE 1" >>confdefs.h
21173
21174fi
21175
21176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21177$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021178if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021179 $as_echo_n "(cached) " >&6
21180else
21181 # PORTME does your system automatically load deplibs for dlopen?
21182 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21183 # For now, we just catch OSes we know something about -- in the
21184 # future, we'll try test this programmatically.
21185 lt_cv_sys_dlopen_deplibs=unknown
21186 case $host_os in
21187 aix3*|aix4.1.*|aix4.2.*)
21188 # Unknown whether this is true for these versions of AIX, but
21189 # we want this `case' here to explicitly catch those versions.
21190 lt_cv_sys_dlopen_deplibs=unknown
21191 ;;
21192 aix[4-9]*)
21193 lt_cv_sys_dlopen_deplibs=yes
21194 ;;
21195 amigaos*)
21196 case $host_cpu in
21197 powerpc)
21198 lt_cv_sys_dlopen_deplibs=no
21199 ;;
21200 esac
21201 ;;
21202 darwin*)
21203 # Assuming the user has installed a libdl from somewhere, this is true
21204 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21205 lt_cv_sys_dlopen_deplibs=yes
21206 ;;
21207 freebsd* | dragonfly*)
21208 lt_cv_sys_dlopen_deplibs=yes
21209 ;;
cristy0c60a692010-11-04 01:09:47 +000021210 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021211 # GNU and its variants, using gnu ld.so (Glibc)
21212 lt_cv_sys_dlopen_deplibs=yes
21213 ;;
21214 hpux10*|hpux11*)
21215 lt_cv_sys_dlopen_deplibs=yes
21216 ;;
21217 interix*)
21218 lt_cv_sys_dlopen_deplibs=yes
21219 ;;
21220 irix[12345]*|irix6.[01]*)
21221 # Catch all versions of IRIX before 6.2, and indicate that we don't
21222 # know how it worked for any of those versions.
21223 lt_cv_sys_dlopen_deplibs=unknown
21224 ;;
21225 irix*)
21226 # The case above catches anything before 6.2, and it's known that
21227 # at 6.2 and later dlopen does load deplibs.
21228 lt_cv_sys_dlopen_deplibs=yes
21229 ;;
21230 netbsd*)
21231 lt_cv_sys_dlopen_deplibs=yes
21232 ;;
21233 openbsd*)
21234 lt_cv_sys_dlopen_deplibs=yes
21235 ;;
21236 osf[1234]*)
21237 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21238 # it did *not* use an RPATH in a shared library to find objects the
21239 # library depends on, so we explicitly say `no'.
21240 lt_cv_sys_dlopen_deplibs=no
21241 ;;
21242 osf5.0|osf5.0a|osf5.1)
21243 # dlopen *does* load deplibs and with the right loader patch applied
21244 # it even uses RPATH in a shared library to search for shared objects
21245 # that the library depends on, but there's no easy way to know if that
21246 # patch is installed. Since this is the case, all we can really
21247 # say is unknown -- it depends on the patch being installed. If
21248 # it is, this changes to `yes'. Without it, it would be `no'.
21249 lt_cv_sys_dlopen_deplibs=unknown
21250 ;;
21251 osf*)
21252 # the two cases above should catch all versions of osf <= 5.1. Read
21253 # the comments above for what we know about them.
21254 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21255 # is used to find them so we can finally say `yes'.
21256 lt_cv_sys_dlopen_deplibs=yes
21257 ;;
21258 qnx*)
21259 lt_cv_sys_dlopen_deplibs=yes
21260 ;;
21261 solaris*)
21262 lt_cv_sys_dlopen_deplibs=yes
21263 ;;
21264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21265 libltdl_cv_sys_dlopen_deplibs=yes
21266 ;;
21267 esac
21268
21269fi
21270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21271$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21272if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21273
21274$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21275
21276fi
21277
21278:
21279
21280for ac_header in argz.h
21281do :
21282 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21283"
cristyda16f162011-02-19 23:52:17 +000021284if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021285 cat >>confdefs.h <<_ACEOF
21286#define HAVE_ARGZ_H 1
21287_ACEOF
21288
21289fi
21290
21291done
21292
21293
21294ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21295# include <argz.h>
21296#endif
21297"
cristyda16f162011-02-19 23:52:17 +000021298if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021299
21300cat >>confdefs.h <<_ACEOF
21301#define HAVE_ERROR_T 1
21302_ACEOF
21303
21304
21305else
21306
21307$as_echo "#define error_t int" >>confdefs.h
21308
21309
21310$as_echo "#define __error_t_defined 1" >>confdefs.h
21311
21312fi
21313
21314
21315ARGZ_H=
21316for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21317 argz_next argz_stringify
21318do :
21319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021321if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021322 cat >>confdefs.h <<_ACEOF
21323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21324_ACEOF
21325
21326else
21327 ARGZ_H=argz.h;
21328
21329 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21330
21331fi
21332done
21333
21334
21335if test -z "$ARGZ_H"; then :
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21337$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021338if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021339 $as_echo_n "(cached) " >&6
21340else
21341 case $host_os in #(
21342 *cygwin*)
21343 lt_cv_sys_argz_works=no
21344 if test "$cross_compiling" != no; then
21345 lt_cv_sys_argz_works="guessing no"
21346 else
21347 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21348 save_IFS=$IFS
21349 IFS=-.
21350 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21351 IFS=$save_IFS
21352 lt_os_major=${2-0}
21353 lt_os_minor=${3-0}
21354 lt_os_micro=${4-0}
21355 if test "$lt_os_major" -gt 1 \
21356 || { test "$lt_os_major" -eq 1 \
21357 && { test "$lt_os_minor" -gt 5 \
21358 || { test "$lt_os_minor" -eq 5 \
21359 && test "$lt_os_micro" -gt 24; }; }; }; then
21360 lt_cv_sys_argz_works=yes
21361 fi
21362 fi
21363 ;; #(
21364 *) lt_cv_sys_argz_works=yes ;;
21365 esac
21366fi
21367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21368$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021369 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021370
21371$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21372
21373else
21374 ARGZ_H=argz.h
21375
21376
21377 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21378
21379fi
21380fi
21381
21382
21383
21384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21385$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021386if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021387 $as_echo_n "(cached) " >&6
21388else
21389 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21390 libltdl_cv_preloaded_symbols=yes
21391 else
21392 libltdl_cv_preloaded_symbols=no
21393 fi
21394
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21397$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21398if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21399
21400$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21401
21402fi
21403
21404# Set options
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416# Check whether --with-included_ltdl was given.
21417if test "${with_included_ltdl+set}" = set; then :
21418 withval=$with_included_ltdl;
21419fi
21420
21421
21422if test "x$with_included_ltdl" != xyes; then
21423 # We are not being forced to use the included libltdl sources, so
21424 # decide whether there is a useful installed version we can use.
21425 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21426
21427"
cristyda16f162011-02-19 23:52:17 +000021428if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021429 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21430 #include <ltdl.h>
21431"
cristyda16f162011-02-19 23:52:17 +000021432if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21434$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021435if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021436 $as_echo_n "(cached) " >&6
21437else
21438 ac_check_lib_save_LIBS=$LIBS
21439LIBS="-lltdl $LIBS"
21440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441/* end confdefs.h. */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char lt_dladvise_preload ();
21450int
21451main ()
21452{
21453return lt_dladvise_preload ();
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458if ac_fn_c_try_link "$LINENO"; then :
21459 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21460else
21461 ac_cv_lib_ltdl_lt_dladvise_preload=no
21462fi
21463rm -f core conftest.err conftest.$ac_objext \
21464 conftest$ac_exeext conftest.$ac_ext
21465LIBS=$ac_check_lib_save_LIBS
21466fi
21467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21468$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021469if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021470 with_included_ltdl=no
21471else
21472 with_included_ltdl=yes
21473fi
21474
21475else
21476 with_included_ltdl=yes
21477fi
21478
21479else
21480 with_included_ltdl=yes
21481fi
21482
21483
21484fi
21485
21486
21487
21488
21489# Check whether --with-ltdl_include was given.
21490if test "${with_ltdl_include+set}" = set; then :
21491 withval=$with_ltdl_include;
21492fi
21493
21494
21495if test -n "$with_ltdl_include"; then
21496 if test -f "$with_ltdl_include/ltdl.h"; then :
21497 else
cristy98dddb52010-11-04 00:30:15 +000021498 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021499 fi
21500else
21501 with_ltdl_include=no
21502fi
21503
21504
21505# Check whether --with-ltdl_lib was given.
21506if test "${with_ltdl_lib+set}" = set; then :
21507 withval=$with_ltdl_lib;
21508fi
21509
21510
21511if test -n "$with_ltdl_lib"; then
21512 if test -f "$with_ltdl_lib/libltdl.la"; then :
21513 else
cristy98dddb52010-11-04 00:30:15 +000021514 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021515 fi
21516else
21517 with_ltdl_lib=no
21518fi
21519
21520case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21521 ,yes,no,no,)
21522 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021523 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021524 "") enable_ltdl_convenience=yes
21525 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21526esac
21527LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21528LTDLDEPS=$LIBLTDL
21529LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21530
21531
21532
21533
21534
21535# For backwards non-gettext consistent compatibility...
21536INCLTDL="$LTDLINCL"
21537
21538
21539 ;;
21540 ,no,no,no,)
21541 # If the included ltdl is not to be used, then use the
21542 # preinstalled libltdl we found.
21543
21544$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21545
21546 LIBLTDL=-lltdl
21547 LTDLDEPS=
21548 LTDLINCL=
21549 ;;
21550 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021551 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021552 ;;
21553 *) with_included_ltdl=no
21554 LIBLTDL="-L$with_ltdl_lib -lltdl"
21555 LTDLDEPS=
21556 LTDLINCL="-I$with_ltdl_include"
21557 ;;
21558esac
21559INCLTDL="$LTDLINCL"
21560
21561# Report our decision...
21562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21563$as_echo_n "checking where to find libltdl headers... " >&6; }
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21565$as_echo "$LTDLINCL" >&6; }
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21567$as_echo_n "checking where to find libltdl library... " >&6; }
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21569$as_echo "$LIBLTDL" >&6; }
21570
21571
21572
21573# Check whether --enable-ltdl-install was given.
21574if test "${enable_ltdl_install+set}" = set; then :
21575 enableval=$enable_ltdl_install;
21576fi
21577
21578
21579case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21580 *yes*) ;;
21581 *) enable_ltdl_convenience=yes ;;
21582esac
21583
21584 if test x"${enable_ltdl_install-no}" != xno; then
21585 INSTALL_LTDL_TRUE=
21586 INSTALL_LTDL_FALSE='#'
21587else
21588 INSTALL_LTDL_TRUE='#'
21589 INSTALL_LTDL_FALSE=
21590fi
21591
21592 if test x"${enable_ltdl_convenience-no}" != xno; then
21593 CONVENIENCE_LTDL_TRUE=
21594 CONVENIENCE_LTDL_FALSE='#'
21595else
21596 CONVENIENCE_LTDL_TRUE='#'
21597 CONVENIENCE_LTDL_FALSE=
21598fi
21599
21600
21601
21602
21603
21604
cristy73bd4a52010-10-05 11:24:23 +000021605# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21606# the user used. This is so that ltdl.h can pick up the parent projects
21607# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21608# definitions required by ltdl.c.
21609# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21610
21611
21612
21613for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21614do :
21615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21616ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21617"
cristy98dddb52010-11-04 00:30:15 +000021618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021619 cat >>confdefs.h <<_ACEOF
21620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21621_ACEOF
21622
21623fi
21624
21625done
21626
21627
21628for ac_func in closedir opendir readdir
21629do :
21630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21631ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021632if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021633 cat >>confdefs.h <<_ACEOF
21634#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21635_ACEOF
21636
21637else
21638
21639
21640 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21641
21642fi
21643done
21644
21645for ac_func in strlcat strlcpy
21646do :
21647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21648ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021649if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021650 cat >>confdefs.h <<_ACEOF
21651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21652_ACEOF
21653
21654else
21655
21656
21657 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21658
21659fi
21660done
21661
21662
21663
21664cat >>confdefs.h <<_ACEOF
21665#define LT_LIBEXT "$libext"
21666_ACEOF
21667
21668
cristyda16f162011-02-19 23:52:17 +000021669name=
21670eval "lt_libprefix=\"$libname_spec\""
21671
21672cat >>confdefs.h <<_ACEOF
21673#define LT_LIBPREFIX "$lt_libprefix"
21674_ACEOF
21675
21676
cristy73bd4a52010-10-05 11:24:23 +000021677name=ltdl
cristyda16f162011-02-19 23:52:17 +000021678eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021679
21680
21681
21682
21683
21684
21685
21686
21687# Only expand once:
21688
21689
cristy3ed852e2009-09-05 21:47:34 +000021690
21691# Check to see if building shared libraries
21692libtool_build_shared_libs='no'
21693if test "$enable_shared" = 'yes'; then
21694 libtool_build_shared_libs='yes'
21695fi
21696
21697# Check to see if building static libraries
21698libtool_build_static_libs='no'
21699if test "$enable_static" = 'yes'; then
21700 libtool_build_static_libs='yes'
21701fi
21702
cristy73bd4a52010-10-05 11:24:23 +000021703 if test "${libtool_build_shared_libs}" = 'yes'; then
21704 WITH_SHARED_LIBS_TRUE=
21705 WITH_SHARED_LIBS_FALSE='#'
21706else
21707 WITH_SHARED_LIBS_TRUE='#'
21708 WITH_SHARED_LIBS_FALSE=
21709fi
21710
cristy3ed852e2009-09-05 21:47:34 +000021711#
21712# Enable support for building loadable modules
21713#
21714
21715# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021716if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 withval=$with_modules; with_modules=$withval
21718else
cristy5a1cefd2010-01-06 20:42:35 +000021719 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021720fi
21721
21722
21723# Only allow building loadable modules if we are building shared libraries
21724if test "$with_modules" != 'no' ; then
21725 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021726 { $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 +000021727$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21728 with_modules='no'
21729 fi
21730fi
21731if test "$with_modules" != 'no'; then
21732
cristy8b350f62009-11-15 23:12:43 +000021733$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021734
21735fi
cristy73bd4a52010-10-05 11:24:23 +000021736 if test "$with_modules" != 'no'; then
21737 WITH_MODULES_TRUE=
21738 WITH_MODULES_FALSE='#'
21739else
21740 WITH_MODULES_TRUE='#'
21741 WITH_MODULES_FALSE=
21742fi
21743
cristy3ed852e2009-09-05 21:47:34 +000021744
21745# Enable building/use of libltdl if we are building shared libraries regardless
21746# of whether modules are built or not.
21747with_ltdl='no'
21748if test "$libtool_build_shared_libs" != 'no'; then
21749 with_ltdl='yes'
21750fi
21751
cristy73bd4a52010-10-05 11:24:23 +000021752 if test "$with_ltdl" != 'no'; then
21753 WITH_LTDL_TRUE=
21754 WITH_LTDL_FALSE='#'
21755else
21756 WITH_LTDL_TRUE='#'
21757 WITH_LTDL_FALSE=
21758fi
21759
cristy3ed852e2009-09-05 21:47:34 +000021760if test "$with_ltdl" != 'no'; then
21761
cristy8b350f62009-11-15 23:12:43 +000021762$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021763
21764
21765 # Set DLLDFLAGS
21766 if test X"$enable_shared" = Xyes; then
21767 DLLDFLAGS=-export-dynamic
21768
21769 fi
21770fi
21771
21772# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021773# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021774# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021775if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21777else
21778 enable_delegate_build='no'
21779fi
21780
21781
21782# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021783if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021784 enableval=$enable_deprecated; enable_deprecated=$enableval
21785else
21786 enable_deprecated='no'
21787fi
21788
21789
21790if test "$enable_deprecated" = 'yes'; then
21791
cristy8b350f62009-11-15 23:12:43 +000021792$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021793
21794else
21795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21796fi
21797
21798# Build a version of ImageMagick which operates uninstalled.
21799# Used to build distributions located via MAGICK_HOME / executable path
21800# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021801if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021802 enableval=$enable_installed; enable_installed=$enableval
21803else
21804 enable_installed='yes'
21805fi
21806
21807
21808if test "$enable_installed" = 'yes'; then
21809
cristy8b350f62009-11-15 23:12:43 +000021810$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021811
21812else
21813 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21814fi
21815
21816# Permit enciphering and deciphering image pixels.
21817# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021818if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 enableval=$enable_cipher; enable_cipher=$enableval
21820else
21821 enable_cipher='yes'
21822fi
21823
21824
21825if test "$enable_cipher" = 'yes'; then
21826
cristy8b350f62009-11-15 23:12:43 +000021827$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021828
21829fi
21830
cristy6e3607c2011-09-13 13:59:17 +000021831# Build a zero-configuration version of ImageMagick.
21832# Check whether --enable-zero-configuration was given.
21833if test "${enable_zero_configuration+set}" = set; then :
21834 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021835else
cristy6e3607c2011-09-13 13:59:17 +000021836 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021837fi
21838
21839
cristy6e3607c2011-09-13 13:59:17 +000021840if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021841
cristy6e3607c2011-09-13 13:59:17 +000021842$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021843
cristy81af5702011-09-13 14:20:58 +000021844 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021845fi
21846
21847# Build a high dynamic range version of ImageMagick.
21848# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021849if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021850 enableval=$enable_hdri; enable_hdri=$enableval
21851else
cristy191c0b72012-08-12 16:29:52 +000021852 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021853fi
21854
21855
21856MAGICK_HDRI=""
21857if test "$enable_hdri" = 'yes'; then
21858 MAGICK_HDRI="HDRI"
21859
cristy8b350f62009-11-15 23:12:43 +000021860$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021861
cristyfd9dcd42010-08-08 18:07:02 +000021862 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021863fi
21864
cristy3ed852e2009-09-05 21:47:34 +000021865# Build a version of ImageMagick with assert statements.
21866# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021867if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021868 enableval=$enable_assert; enable_assert=$enableval
21869else
21870 enable_assert='yes'
21871fi
21872
21873
21874if test "$enable_assert" = 'no'; then
21875
cristy8b350f62009-11-15 23:12:43 +000021876$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021877
21878fi
21879
cristya448bd22011-10-14 12:38:13 +000021880# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021881
21882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21883$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21884 # Check whether --enable-maintainer-mode was given.
21885if test "${enable_maintainer_mode+set}" = set; then :
21886 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21887else
21888 USE_MAINTAINER_MODE=no
21889fi
21890
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21892$as_echo "$USE_MAINTAINER_MODE" >&6; }
21893 if test $USE_MAINTAINER_MODE = yes; then
21894 MAINTAINER_MODE_TRUE=
21895 MAINTAINER_MODE_FALSE='#'
21896else
21897 MAINTAINER_MODE_TRUE='#'
21898 MAINTAINER_MODE_FALSE=
21899fi
21900
21901 MAINT=$MAINTAINER_MODE_TRUE
21902
21903
cristy3ed852e2009-09-05 21:47:34 +000021904
cristy3ed852e2009-09-05 21:47:34 +000021905# Enable ccmalloc memory debugging support
21906# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021907if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021908 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21909else
21910 enable_ccmalloc='no'
21911fi
21912
21913
21914# Enable Electric Fence memory debugging support
21915# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021916if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021917 enableval=$enable_efence; enable_efence=$enableval
21918else
21919 enable_efence='no'
21920fi
21921
21922
21923# Enable prof-based profiling support
21924# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021925if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 enableval=$enable_prof; enable_prof=$enableval
21927else
21928 enable_prof='no'
21929fi
21930
21931
21932# Enable gprof-based profiling support
21933# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021934if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 enableval=$enable_gprof; enable_gprof=$enableval
21936else
21937 enable_gprof='no'
21938fi
21939
21940
21941# Enable gcov-based profiling support
21942# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021943if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 enableval=$enable_gcov; enable_gcov=$enableval
21945else
21946 enable_gcov='no'
21947fi
21948
21949
21950enable_profiling='no'
21951if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21952 enable_profiling='yes'
21953 if test "$libtool_build_shared_libs" = 'yes'; then
21954 echo "Warning: Can not profile code using shared libraries"
21955 fi
21956fi
21957
21958# Magick API method prefix
21959
21960# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021961if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021962 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021963else
cristyfc3d0222012-02-07 15:05:57 +000021964 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021965fi
21966
21967
cristyfc3d0222012-02-07 15:05:57 +000021968if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021969
21970cat >>confdefs.h <<_ACEOF
21971#define NAMESPACE_PREFIX $with_method_prefix
21972_ACEOF
21973
cristyfc3d0222012-02-07 15:05:57 +000021974 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021975fi
21976
cristy71d8c202012-03-20 17:05:01 +000021977# Enable legacy support (default no)
21978# Check whether --enable-legacy-support was given.
21979if test "${enable_legacy_support+set}" = set; then :
21980 enableval=$enable_legacy_support; with_legacy_support=$enableval
21981else
21982 with_legacy_support='no'
21983fi
21984
21985 if test "$with_legacy_support" != 'no'; then
21986 LEGACY_SUPPORT_TRUE=
21987 LEGACY_SUPPORT_FALSE='#'
21988else
21989 LEGACY_SUPPORT_TRUE='#'
21990 LEGACY_SUPPORT_FALSE=
21991fi
21992
21993
cristy3ed852e2009-09-05 21:47:34 +000021994# Number of bits in a Quantum
21995
21996# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021997if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021998 withval=$with_quantum_depth; with_quantum_depth=$withval
21999else
22000 with_quantum_depth=16
22001fi
22002
22003
22004if test "$with_quantum_depth" != '8'; then
22005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22006fi
22007
22008case "${with_quantum_depth}" in
22009 8 ) ;;
22010 16 ) ;;
22011 32 ) ;;
22012 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022013 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022014esac
22015QUANTUM_DEPTH="$with_quantum_depth"
22016
22017cat >>confdefs.h <<_ACEOF
22018#define QUANTUM_DEPTH $QUANTUM_DEPTH
22019_ACEOF
22020
22021
22022# Set pixel cache threshold
22023
22024# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022025if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 withval=$with_cache; with_cache=$withval
22027else
22028 with_cache=''
22029fi
22030
22031
22032if test "$with_cache" != ''; then
22033
22034cat >>confdefs.h <<_ACEOF
22035#define PixelCacheThreshold $with_cache
22036_ACEOF
22037
22038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22039fi
22040
22041# Disable/Enable support for full delegate paths
22042
22043# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022044if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 withval=$with_frozenpaths; with_frozenpaths=$withval
22046else
22047 with_frozenpaths='no'
22048fi
22049
22050
22051# Enable build/install of Magick++
22052
22053# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022054if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022055 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22056else
22057 with_magick_plus_plus='yes'
22058fi
22059
22060
22061# Disable build/install of PerlMagick.
22062
22063# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022064if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022065 withval=$with_perl; with_perl=$withval
22066else
cristyb5f4e2f2010-04-25 00:49:11 +000022067 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022068fi
22069
22070
22071# Options to pass when configuring PerlMagick
22072
22073# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022074if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022075 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022076fi
22077
22078
cristy3ed852e2009-09-05 21:47:34 +000022079
22080# Enable umem, object-caching memory allocation library.
22081
22082# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022083if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 withval=$with_umem; with_umem=$withval
22085else
22086 with_umem='no'
22087fi
22088
22089if test "$with_umem" != 'yes' ; then
22090 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22091fi
22092
22093#
22094# Specify path to shared libstdc++ if not in normal location
22095#
22096
22097# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022098if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022099 withval=$with_libstdc; with_libstdc=$withval
22100else
22101 with_libstdc=''
22102fi
22103
22104
22105if test "$with_libstdc" != ''; then
22106 if test -d "$with_libstdc"; then
22107 LIBSTDCLDFLAGS="-L$with_libstdc"
22108 fi
22109fi
22110
22111
22112# Does gcc required -traditional?
22113if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022115$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022116if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 $as_echo_n "(cached) " >&6
22118else
22119 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022121/* end confdefs.h. */
22122#include <sgtty.h>
22123Autoconf TIOCGETP
22124_ACEOF
22125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022126 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022127 ac_cv_prog_gcc_traditional=yes
22128else
22129 ac_cv_prog_gcc_traditional=no
22130fi
22131rm -f conftest*
22132
22133
22134 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022136/* end confdefs.h. */
22137#include <termio.h>
22138Autoconf TCGETA
22139_ACEOF
22140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022141 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 ac_cv_prog_gcc_traditional=yes
22143fi
22144rm -f conftest*
22145
22146 fi
22147fi
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22150 if test $ac_cv_prog_gcc_traditional = yes; then
22151 CC="$CC -traditional"
22152 fi
22153fi
22154
22155
22156########
22157#
22158# Set defines required to build DLLs and modules using MinGW
22159#
22160########
22161# These options are set for multi-thread DLL module build
22162# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22163# module: _DLL
22164# executable/Magick++: _DLL _MAGICKMOD_
22165MODULE_EXTRA_CPPFLAGS=''
22166LIBRARY_EXTRA_CPPFLAGS=''
22167if test "${native_win32_build}" = 'yes'; then
22168 if test "${libtool_build_shared_libs}" = 'yes'; then
22169 CPPFLAGS="$CPPFLAGS -D_DLL"
22170 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22171 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22172 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22173 if test "$with_modules" = 'yes'; then
22174 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22175 else
22176 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22177 fi
22178 else
22179 CPPFLAGS="$CPPFLAGS -D_LIB"
22180 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22181 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22182 fi
22183 if test "$with_threads" = 'yes'; then
22184 CPPFLAGS="$CPPFLAGS -D_MT"
22185 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22186 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22187 fi
22188fi
22189
22190
22191
22192# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022194$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022195if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 $as_echo_n "(cached) " >&6
22197else
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200#include <stdlib.h>
22201#include <stdarg.h>
22202#include <string.h>
22203#include <float.h>
22204
22205int
22206main ()
22207{
22208
22209 ;
22210 return 0;
22211}
22212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 ac_cv_header_stdc=yes
22215else
cristy8b350f62009-11-15 23:12:43 +000022216 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022217fi
cristy3ed852e2009-09-05 21:47:34 +000022218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219
22220if test $ac_cv_header_stdc = yes; then
22221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224#include <string.h>
22225
22226_ACEOF
22227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022228 $EGREP "memchr" >/dev/null 2>&1; then :
22229
cristy3ed852e2009-09-05 21:47:34 +000022230else
22231 ac_cv_header_stdc=no
22232fi
22233rm -f conftest*
22234
22235fi
22236
22237if test $ac_cv_header_stdc = yes; then
22238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022240/* end confdefs.h. */
22241#include <stdlib.h>
22242
22243_ACEOF
22244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022245 $EGREP "free" >/dev/null 2>&1; then :
22246
cristy3ed852e2009-09-05 21:47:34 +000022247else
22248 ac_cv_header_stdc=no
22249fi
22250rm -f conftest*
22251
22252fi
22253
22254if test $ac_cv_header_stdc = yes; then
22255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022256 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 :
22258else
cristy8b350f62009-11-15 23:12:43 +000022259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022260/* end confdefs.h. */
22261#include <ctype.h>
22262#include <stdlib.h>
22263#if ((' ' & 0x0FF) == 0x020)
22264# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22265# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22266#else
22267# define ISLOWER(c) \
22268 (('a' <= (c) && (c) <= 'i') \
22269 || ('j' <= (c) && (c) <= 'r') \
22270 || ('s' <= (c) && (c) <= 'z'))
22271# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22272#endif
22273
22274#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22275int
22276main ()
22277{
22278 int i;
22279 for (i = 0; i < 256; i++)
22280 if (XOR (islower (i), ISLOWER (i))
22281 || toupper (i) != TOUPPER (i))
22282 return 2;
22283 return 0;
22284}
22285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022286if ac_fn_c_try_run "$LINENO"; then :
22287
cristy3ed852e2009-09-05 21:47:34 +000022288else
cristy8b350f62009-11-15 23:12:43 +000022289 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy8b350f62009-11-15 23:12:43 +000022291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22292 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022293fi
22294
cristy3ed852e2009-09-05 21:47:34 +000022295fi
22296fi
cristy8b350f62009-11-15 23:12:43 +000022297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo "$ac_cv_header_stdc" >&6; }
22299if test $ac_cv_header_stdc = yes; then
22300
cristy8b350f62009-11-15 23:12:43 +000022301$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022302
22303fi
22304
22305if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022306 { $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 +000022307 header files. Compilation cannot proceed. Please install the ANSI C
22308 headers and rerun this script." >&5
22309$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22310 header files. Compilation cannot proceed. Please install the ANSI C
22311 headers and rerun this script." >&2;};
22312fi
cristya0b81c32010-01-22 02:54:33 +000022313
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22315$as_echo_n "checking whether to enable assertions... " >&6; }
22316 # Check whether --enable-assert was given.
22317if test "${enable_assert+set}" = set; then :
22318 enableval=$enable_assert; ac_enable_assert=$enableval
22319 if test "x$enableval" = xno; then :
22320
22321$as_echo "#define NDEBUG 1" >>confdefs.h
22322
22323elif test "x$enableval" != xyes; then :
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22325$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22326 ac_enable_assert=yes
22327fi
22328else
22329 ac_enable_assert=yes
22330fi
22331
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22333$as_echo "$ac_enable_assert" >&6; }
22334
cristy3ed852e2009-09-05 21:47:34 +000022335ac_header_dirent=no
22336for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22337 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022339$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022340if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022341 $as_echo_n "(cached) " >&6
22342else
cristy8b350f62009-11-15 23:12:43 +000022343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345#include <sys/types.h>
22346#include <$ac_hdr>
22347
22348int
22349main ()
22350{
22351if ((DIR *) 0)
22352return 0;
22353 ;
22354 return 0;
22355}
22356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022357if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 eval "$as_ac_Header=yes"
22359else
cristy8b350f62009-11-15 23:12:43 +000022360 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022361fi
cristy3ed852e2009-09-05 21:47:34 +000022362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363fi
cristy8b350f62009-11-15 23:12:43 +000022364eval ac_res=\$$as_ac_Header
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022366$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022367if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 cat >>confdefs.h <<_ACEOF
22369#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22370_ACEOF
22371
22372ac_header_dirent=$ac_hdr; break
22373fi
22374
22375done
22376# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22377if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022379$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022380if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022381 $as_echo_n "(cached) " >&6
22382else
22383 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022385/* end confdefs.h. */
22386
22387/* Override any GCC internal prototype to avoid an error.
22388 Use char because int might match the return type of a GCC
22389 builtin and then its argument prototype would still apply. */
22390#ifdef __cplusplus
22391extern "C"
22392#endif
22393char opendir ();
22394int
22395main ()
22396{
22397return opendir ();
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402for ac_lib in '' dir; do
22403 if test -z "$ac_lib"; then
22404 ac_res="none required"
22405 else
22406 ac_res=-l$ac_lib
22407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22408 fi
cristy8b350f62009-11-15 23:12:43 +000022409 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022411fi
cristy8b350f62009-11-15 23:12:43 +000022412rm -f core conftest.err conftest.$ac_objext \
22413 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022414 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022415 break
22416fi
22417done
cristyda16f162011-02-19 23:52:17 +000022418if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022419
cristy3ed852e2009-09-05 21:47:34 +000022420else
22421 ac_cv_search_opendir=no
22422fi
22423rm conftest.$ac_ext
22424LIBS=$ac_func_search_save_LIBS
22425fi
cristy8b350f62009-11-15 23:12:43 +000022426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo "$ac_cv_search_opendir" >&6; }
22428ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022429if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22431
22432fi
22433
22434else
cristy8b350f62009-11-15 23:12:43 +000022435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022437if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
22440 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022442/* end confdefs.h. */
22443
22444/* Override any GCC internal prototype to avoid an error.
22445 Use char because int might match the return type of a GCC
22446 builtin and then its argument prototype would still apply. */
22447#ifdef __cplusplus
22448extern "C"
22449#endif
22450char opendir ();
22451int
22452main ()
22453{
22454return opendir ();
22455 ;
22456 return 0;
22457}
22458_ACEOF
22459for ac_lib in '' x; do
22460 if test -z "$ac_lib"; then
22461 ac_res="none required"
22462 else
22463 ac_res=-l$ac_lib
22464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22465 fi
cristy8b350f62009-11-15 23:12:43 +000022466 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022467 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy8b350f62009-11-15 23:12:43 +000022469rm -f core conftest.err conftest.$ac_objext \
22470 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022471 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 break
22473fi
22474done
cristyda16f162011-02-19 23:52:17 +000022475if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022476
cristy3ed852e2009-09-05 21:47:34 +000022477else
22478 ac_cv_search_opendir=no
22479fi
22480rm conftest.$ac_ext
22481LIBS=$ac_func_search_save_LIBS
22482fi
cristy8b350f62009-11-15 23:12:43 +000022483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022484$as_echo "$ac_cv_search_opendir" >&6; }
22485ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022486if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488
22489fi
22490
22491fi
22492
22493
22494# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022495for 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 +000022496do :
22497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 cat >>confdefs.h <<_ACEOF
22501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22502_ACEOF
22503
22504fi
22505
22506done
22507
22508
22509########
22510#
22511# Checks for typedefs, structures, and compiler characteristics.
22512#
22513########
22514
cristy8b350f62009-11-15 23:12:43 +000022515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022516$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022517if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022518 $as_echo_n "(cached) " >&6
22519else
cristy8b350f62009-11-15 23:12:43 +000022520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022521/* end confdefs.h. */
22522
cristy14fefe52012-05-21 00:59:18 +000022523 #include <stdbool.h>
22524 #ifndef bool
22525 "error: bool is not defined"
22526 #endif
22527 #ifndef false
22528 "error: false is not defined"
22529 #endif
22530 #if false
22531 "error: false is not 0"
22532 #endif
22533 #ifndef true
22534 "error: true is not defined"
22535 #endif
22536 #if true != 1
22537 "error: true is not 1"
22538 #endif
22539 #ifndef __bool_true_false_are_defined
22540 "error: __bool_true_false_are_defined is not defined"
22541 #endif
cristy3ed852e2009-09-05 21:47:34 +000022542
cristy14fefe52012-05-21 00:59:18 +000022543 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022544
cristy14fefe52012-05-21 00:59:18 +000022545 char a[true == 1 ? 1 : -1];
22546 char b[false == 0 ? 1 : -1];
22547 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22548 char d[(bool) 0.5 == true ? 1 : -1];
22549 /* See body of main program for 'e'. */
22550 char f[(_Bool) 0.0 == false ? 1 : -1];
22551 char g[true];
22552 char h[sizeof (_Bool)];
22553 char i[sizeof s.t];
22554 enum { j = false, k = true, l = false * true, m = true * 256 };
22555 /* The following fails for
22556 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22557 _Bool n[m];
22558 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22559 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22560 /* Catch a bug in an HP-UX C compiler. See
22561 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22562 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22563 */
22564 _Bool q = true;
22565 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022566
22567int
22568main ()
22569{
22570
cristy14fefe52012-05-21 00:59:18 +000022571 bool e = &s;
22572 *pq |= q;
22573 *pq |= ! q;
22574 /* Refer to every declared value, to avoid compiler optimizations. */
22575 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22576 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022577
22578 ;
22579 return 0;
22580}
22581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022582if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 ac_cv_header_stdbool_h=yes
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022586fi
cristy3ed852e2009-09-05 21:47:34 +000022587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588fi
cristy8b350f62009-11-15 23:12:43 +000022589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022590$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022591 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022592if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022593
22594cat >>confdefs.h <<_ACEOF
22595#define HAVE__BOOL 1
22596_ACEOF
22597
22598
22599fi
22600
cristy14fefe52012-05-21 00:59:18 +000022601
cristy3ed852e2009-09-05 21:47:34 +000022602if test $ac_cv_header_stdbool_h = yes; then
22603
cristy8b350f62009-11-15 23:12:43 +000022604$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022605
22606fi
22607
cristy8b350f62009-11-15 23:12:43 +000022608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022609$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022610if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022611 $as_echo_n "(cached) " >&6
22612else
cristy8b350f62009-11-15 23:12:43 +000022613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022614/* end confdefs.h. */
22615
22616int
22617main ()
22618{
22619
22620volatile int x;
22621int * volatile y = (int *) 0;
22622return !x && !y;
22623 ;
22624 return 0;
22625}
22626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022627if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 ac_cv_c_volatile=yes
22629else
cristy8b350f62009-11-15 23:12:43 +000022630 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022631fi
cristy3ed852e2009-09-05 21:47:34 +000022632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633fi
cristy8b350f62009-11-15 23:12:43 +000022634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022635$as_echo "$ac_cv_c_volatile" >&6; }
22636if test $ac_cv_c_volatile = no; then
22637
cristy8b350f62009-11-15 23:12:43 +000022638$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022639
22640fi
22641
cristy8b350f62009-11-15 23:12:43 +000022642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022643$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022644if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022645 $as_echo_n "(cached) " >&6
22646else
cristy8b350f62009-11-15 23:12:43 +000022647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022648/* end confdefs.h. */
22649#define x(y) #y
22650
22651char *s = x(teststring);
22652_ACEOF
22653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022654 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022655 ac_cv_c_stringize=no
22656else
22657 ac_cv_c_stringize=yes
22658fi
22659rm -f conftest*
22660
22661fi
cristy8b350f62009-11-15 23:12:43 +000022662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022663$as_echo "$ac_cv_c_stringize" >&6; }
22664if test $ac_cv_c_stringize = yes; then
22665
cristy8b350f62009-11-15 23:12:43 +000022666$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022667
22668fi
22669
cristy8b350f62009-11-15 23:12:43 +000022670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022671$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022672if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022673 $as_echo_n "(cached) " >&6
22674else
cristy8b350f62009-11-15 23:12:43 +000022675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022676/* end confdefs.h. */
22677#include <sys/types.h>
22678#include <sys/stat.h>
22679
22680#if defined S_ISBLK && defined S_IFDIR
22681extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22682#endif
22683
22684#if defined S_ISBLK && defined S_IFCHR
22685extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22686#endif
22687
22688#if defined S_ISLNK && defined S_IFREG
22689extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22690#endif
22691
22692#if defined S_ISSOCK && defined S_IFREG
22693extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22694#endif
22695
22696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022697if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022698 ac_cv_header_stat_broken=no
22699else
cristy8b350f62009-11-15 23:12:43 +000022700 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022701fi
cristy3ed852e2009-09-05 21:47:34 +000022702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703fi
cristy8b350f62009-11-15 23:12:43 +000022704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022705$as_echo "$ac_cv_header_stat_broken" >&6; }
22706if test $ac_cv_header_stat_broken = yes; then
22707
cristy8b350f62009-11-15 23:12:43 +000022708$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022709
22710fi
22711
cristy8b350f62009-11-15 23:12:43 +000022712{ $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 +000022713$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022714if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022715 $as_echo_n "(cached) " >&6
22716else
cristy8b350f62009-11-15 23:12:43 +000022717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022718/* end confdefs.h. */
22719#include <sys/types.h>
22720#include <sys/time.h>
22721#include <time.h>
22722
22723int
22724main ()
22725{
22726if ((struct tm *) 0)
22727return 0;
22728 ;
22729 return 0;
22730}
22731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022733 ac_cv_header_time=yes
22734else
cristy8b350f62009-11-15 23:12:43 +000022735 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022736fi
cristy3ed852e2009-09-05 21:47:34 +000022737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738fi
cristy8b350f62009-11-15 23:12:43 +000022739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022740$as_echo "$ac_cv_header_time" >&6; }
22741if test $ac_cv_header_time = yes; then
22742
cristy8b350f62009-11-15 23:12:43 +000022743$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022744
22745fi
22746
cristy8b350f62009-11-15 23:12:43 +000022747{ $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 +000022748$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022749if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022750 $as_echo_n "(cached) " >&6
22751else
cristy8b350f62009-11-15 23:12:43 +000022752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022753/* end confdefs.h. */
22754#include <sys/types.h>
22755#include <time.h>
22756
22757int
22758main ()
22759{
22760struct tm tm;
22761 int *p = &tm.tm_sec;
22762 return !p;
22763 ;
22764 return 0;
22765}
22766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022767if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022768 ac_cv_struct_tm=time.h
22769else
cristy8b350f62009-11-15 23:12:43 +000022770 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022771fi
cristy3ed852e2009-09-05 21:47:34 +000022772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773fi
cristy8b350f62009-11-15 23:12:43 +000022774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022775$as_echo "$ac_cv_struct_tm" >&6; }
22776if test $ac_cv_struct_tm = sys/time.h; then
22777
cristy8b350f62009-11-15 23:12:43 +000022778$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022779
22780fi
22781
cristy92703d82010-04-26 00:18:18 +000022782ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22783#include <$ac_cv_struct_tm>
22784
22785"
cristyda16f162011-02-19 23:52:17 +000022786if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022787
22788cat >>confdefs.h <<_ACEOF
22789#define HAVE_STRUCT_TM_TM_ZONE 1
22790_ACEOF
22791
22792
22793fi
22794
22795if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22796
22797$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22798
22799else
22800 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22801"
cristyda16f162011-02-19 23:52:17 +000022802if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022803 ac_have_decl=1
22804else
22805 ac_have_decl=0
22806fi
22807
22808cat >>confdefs.h <<_ACEOF
22809#define HAVE_DECL_TZNAME $ac_have_decl
22810_ACEOF
22811
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22813$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022814if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022815 $as_echo_n "(cached) " >&6
22816else
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818/* end confdefs.h. */
22819#include <time.h>
22820#if !HAVE_DECL_TZNAME
22821extern char *tzname[];
22822#endif
22823
22824int
22825main ()
22826{
22827return tzname[0][0];
22828 ;
22829 return 0;
22830}
22831_ACEOF
22832if ac_fn_c_try_link "$LINENO"; then :
22833 ac_cv_var_tzname=yes
22834else
22835 ac_cv_var_tzname=no
22836fi
22837rm -f core conftest.err conftest.$ac_objext \
22838 conftest$ac_exeext conftest.$ac_ext
22839fi
22840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22841$as_echo "$ac_cv_var_tzname" >&6; }
22842 if test $ac_cv_var_tzname = yes; then
22843
22844$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22845
22846 fi
22847fi
22848
cristy8b350f62009-11-15 23:12:43 +000022849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022850$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022851if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022852 $as_echo_n "(cached) " >&6
22853else
22854 echo '#! /bin/cat
22855exit 69
22856' >conftest
22857chmod u+x conftest
22858(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22859if test $? -ne 69; then
22860 ac_cv_sys_interpreter=yes
22861else
22862 ac_cv_sys_interpreter=no
22863fi
22864rm -f conftest
22865fi
cristy8b350f62009-11-15 23:12:43 +000022866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022867$as_echo "$ac_cv_sys_interpreter" >&6; }
22868interpval=$ac_cv_sys_interpreter
22869
22870
cristy3ed852e2009-09-05 21:47:34 +000022871# If the C compiler supports the keyword inline, do nothing. Otherwise
22872# define inline to __inline__ or __inline if it accepts one of those,
22873# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022875$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022876if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022877 $as_echo_n "(cached) " >&6
22878else
22879 ac_cv_c_inline=no
22880for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022882/* end confdefs.h. */
22883#ifndef __cplusplus
22884typedef int foo_t;
22885static $ac_kw foo_t static_foo () {return 0; }
22886$ac_kw foo_t foo () {return 0; }
22887#endif
22888
22889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022891 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022892fi
cristy3ed852e2009-09-05 21:47:34 +000022893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894 test "$ac_cv_c_inline" != no && break
22895done
22896
22897fi
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo "$ac_cv_c_inline" >&6; }
22900
cristy3ed852e2009-09-05 21:47:34 +000022901case $ac_cv_c_inline in
22902 inline | yes) ;;
22903 *)
22904 case $ac_cv_c_inline in
22905 no) ac_val=;;
22906 *) ac_val=$ac_cv_c_inline;;
22907 esac
22908 cat >>confdefs.h <<_ACEOF
22909#ifndef __cplusplus
22910#define inline $ac_val
22911#endif
22912_ACEOF
22913 ;;
22914esac
22915
22916
22917# If the C compiler supports the keyword restrict, do nothing. Otherwise
22918# define restrict to __restrict__ or __restrict if it accepts one of those,
22919# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022921$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022922if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022923 $as_echo_n "(cached) " >&6
22924else
22925 ac_cv_c_restrict=no
22926 # The order here caters to the fact that C++ does not require restrict.
22927 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022929/* end confdefs.h. */
22930typedef int * int_ptr;
22931 int foo (int_ptr $ac_kw ip) {
22932 return ip[0];
22933 }
22934int
22935main ()
22936{
22937int s[1];
22938 int * $ac_kw t = s;
22939 t[0] = 0;
22940 return foo(t)
22941 ;
22942 return 0;
22943}
22944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022947fi
cristy3ed852e2009-09-05 21:47:34 +000022948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 test "$ac_cv_c_restrict" != no && break
22950 done
22951
22952fi
cristy8b350f62009-11-15 23:12:43 +000022953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022954$as_echo "$ac_cv_c_restrict" >&6; }
22955
cristy3ed852e2009-09-05 21:47:34 +000022956 case $ac_cv_c_restrict in
22957 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022958 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022959 ;;
22960 *) cat >>confdefs.h <<_ACEOF
22961#define restrict $ac_cv_c_restrict
22962_ACEOF
22963 ;;
22964 esac
22965
22966
22967# If words are stored with the most significant byte first (like
22968# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022970$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022971if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022972 $as_echo_n "(cached) " >&6
22973else
22974 ac_cv_c_bigendian=unknown
22975 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022977/* end confdefs.h. */
22978#ifndef __APPLE_CC__
22979 not a universal capable compiler
22980 #endif
22981 typedef int dummy;
22982
22983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022984if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022985
22986 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022987 # there are at least two -arch flags with different values.
22988 ac_arch=
22989 ac_prev=
22990 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22991 if test -n "$ac_prev"; then
22992 case $ac_word in
22993 i?86 | x86_64 | ppc | ppc64)
22994 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22995 ac_arch=$ac_word
22996 else
22997 ac_cv_c_bigendian=universal
22998 break
22999 fi
23000 ;;
23001 esac
23002 ac_prev=
23003 elif test "x$ac_word" = "x-arch"; then
23004 ac_prev=arch
23005 fi
23006 done
cristy3ed852e2009-09-05 21:47:34 +000023007fi
cristy3ed852e2009-09-05 21:47:34 +000023008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 if test $ac_cv_c_bigendian = unknown; then
23010 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023012/* end confdefs.h. */
23013#include <sys/types.h>
23014 #include <sys/param.h>
23015
23016int
23017main ()
23018{
23019#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23021 && LITTLE_ENDIAN)
23022 bogus endian macros
23023 #endif
23024
23025 ;
23026 return 0;
23027}
23028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023029if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023032/* end confdefs.h. */
23033#include <sys/types.h>
23034 #include <sys/param.h>
23035
23036int
23037main ()
23038{
23039#if BYTE_ORDER != BIG_ENDIAN
23040 not big endian
23041 #endif
23042
23043 ;
23044 return 0;
23045}
23046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023047if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 ac_cv_c_bigendian=yes
23049else
cristy8b350f62009-11-15 23:12:43 +000023050 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023051fi
cristy3ed852e2009-09-05 21:47:34 +000023052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy3ed852e2009-09-05 21:47:34 +000023054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 fi
23056 if test $ac_cv_c_bigendian = unknown; then
23057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023059/* end confdefs.h. */
23060#include <limits.h>
23061
23062int
23063main ()
23064{
23065#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23066 bogus endian macros
23067 #endif
23068
23069 ;
23070 return 0;
23071}
23072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023074 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023076/* end confdefs.h. */
23077#include <limits.h>
23078
23079int
23080main ()
23081{
23082#ifndef _BIG_ENDIAN
23083 not big endian
23084 #endif
23085
23086 ;
23087 return 0;
23088}
23089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023091 ac_cv_c_bigendian=yes
23092else
cristy8b350f62009-11-15 23:12:43 +000023093 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023094fi
cristy3ed852e2009-09-05 21:47:34 +000023095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023096fi
cristy3ed852e2009-09-05 21:47:34 +000023097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 fi
23099 if test $ac_cv_c_bigendian = unknown; then
23100 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023101 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023102 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023104/* end confdefs.h. */
23105short int ascii_mm[] =
23106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23107 short int ascii_ii[] =
23108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23109 int use_ascii (int i) {
23110 return ascii_mm[i] + ascii_ii[i];
23111 }
23112 short int ebcdic_ii[] =
23113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23114 short int ebcdic_mm[] =
23115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23116 int use_ebcdic (int i) {
23117 return ebcdic_mm[i] + ebcdic_ii[i];
23118 }
23119 extern int foo;
23120
23121int
23122main ()
23123{
23124return use_ascii (foo) == use_ebcdic (foo);
23125 ;
23126 return 0;
23127}
23128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23131 ac_cv_c_bigendian=yes
23132 fi
23133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23134 if test "$ac_cv_c_bigendian" = unknown; then
23135 ac_cv_c_bigendian=no
23136 else
23137 # finding both strings is unlikely to happen, but who knows?
23138 ac_cv_c_bigendian=unknown
23139 fi
23140 fi
cristy3ed852e2009-09-05 21:47:34 +000023141fi
cristy3ed852e2009-09-05 21:47:34 +000023142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143else
cristy8b350f62009-11-15 23:12:43 +000023144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023145/* end confdefs.h. */
23146$ac_includes_default
23147int
23148main ()
23149{
23150
23151 /* Are we little or big endian? From Harbison&Steele. */
23152 union
23153 {
23154 long int l;
23155 char c[sizeof (long int)];
23156 } u;
23157 u.l = 1;
23158 return u.c[sizeof (long int) - 1] == 1;
23159
23160 ;
23161 return 0;
23162}
23163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023164if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023165 ac_cv_c_bigendian=no
23166else
cristy8b350f62009-11-15 23:12:43 +000023167 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023168fi
cristy8b350f62009-11-15 23:12:43 +000023169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23170 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023171fi
23172
cristy3ed852e2009-09-05 21:47:34 +000023173 fi
23174fi
cristy8b350f62009-11-15 23:12:43 +000023175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo "$ac_cv_c_bigendian" >&6; }
23177 case $ac_cv_c_bigendian in #(
23178 yes)
cristy8b350f62009-11-15 23:12:43 +000023179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023180;; #(
23181 no)
23182 ;; #(
23183 universal)
23184
cristy8b350f62009-11-15 23:12:43 +000023185$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023186
23187 ;; #(
23188 *)
cristy98dddb52010-11-04 00:30:15 +000023189 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023191 esac
23192
23193
cristy501c8042011-05-26 17:46:28 +000023194# Define to a suitable type, if standard headers do not define it.
23195ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23196case $ac_cv_c_int8_t in #(
23197 no|yes) ;; #(
23198 *)
cristy3ed852e2009-09-05 21:47:34 +000023199
23200cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023201#define int8_t $ac_cv_c_int8_t
23202_ACEOF
23203;;
23204esac
23205
23206ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23207case $ac_cv_c_int16_t in #(
23208 no|yes) ;; #(
23209 *)
23210
23211cat >>confdefs.h <<_ACEOF
23212#define int16_t $ac_cv_c_int16_t
23213_ACEOF
23214;;
23215esac
23216
23217ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23218case $ac_cv_c_int32_t in #(
23219 no|yes) ;; #(
23220 *)
23221
23222cat >>confdefs.h <<_ACEOF
23223#define int32_t $ac_cv_c_int32_t
23224_ACEOF
23225;;
23226esac
23227
23228ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23229case $ac_cv_c_int64_t in #(
23230 no|yes) ;; #(
23231 *)
23232
23233cat >>confdefs.h <<_ACEOF
23234#define int64_t $ac_cv_c_int64_t
23235_ACEOF
23236;;
23237esac
23238
23239
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23241$as_echo_n "checking for long long int... " >&6; }
23242if ${ac_cv_type_long_long_int+:} false; then :
23243 $as_echo_n "(cached) " >&6
23244else
23245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246/* end confdefs.h. */
23247
23248 /* For now, do not test the preprocessor; as of 2007 there are too many
23249 implementations with broken preprocessors. Perhaps this can
23250 be revisited in 2012. In the meantime, code should not expect
23251 #if to work with literals wider than 32 bits. */
23252 /* Test literals. */
23253 long long int ll = 9223372036854775807ll;
23254 long long int nll = -9223372036854775807LL;
23255 unsigned long long int ull = 18446744073709551615ULL;
23256 /* Test constant expressions. */
23257 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23258 ? 1 : -1)];
23259 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23260 ? 1 : -1)];
23261 int i = 63;
23262int
23263main ()
23264{
23265/* Test availability of runtime routines for shift and division. */
23266 long long int llmax = 9223372036854775807ll;
23267 unsigned long long int ullmax = 18446744073709551615ull;
23268 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23269 | (llmax / ll) | (llmax % ll)
23270 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23271 | (ullmax / ull) | (ullmax % ull));
23272 ;
23273 return 0;
23274}
23275
23276_ACEOF
23277if ac_fn_c_try_link "$LINENO"; then :
23278 if test "$cross_compiling" = yes; then :
23279 ac_cv_type_long_long_int=yes
23280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283#include <limits.h>
23284 #ifndef LLONG_MAX
23285 # define HALF \
23286 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23287 # define LLONG_MAX (HALF - 1 + HALF)
23288 #endif
23289int
23290main ()
23291{
23292long long int n = 1;
23293 int i;
23294 for (i = 0; ; i++)
23295 {
23296 long long int m = n << i;
23297 if (m >> i != n)
23298 return 1;
23299 if (LLONG_MAX / 2 < m)
23300 break;
23301 }
23302 return 0;
23303 ;
23304 return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_run "$LINENO"; then :
23308 ac_cv_type_long_long_int=yes
23309else
23310 ac_cv_type_long_long_int=no
23311fi
23312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23313 conftest.$ac_objext conftest.beam conftest.$ac_ext
23314fi
23315
23316else
23317 ac_cv_type_long_long_int=no
23318fi
23319rm -f core conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
23321fi
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23323$as_echo "$ac_cv_type_long_long_int" >&6; }
23324 if test $ac_cv_type_long_long_int = yes; then
23325
23326$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23327
23328 fi
23329
23330
23331
23332 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23333if test "x$ac_cv_type_intmax_t" = xyes; then :
23334
23335$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23336
23337else
23338 test $ac_cv_type_long_long_int = yes \
23339 && ac_type='long long int' \
23340 || ac_type='long int'
23341
23342cat >>confdefs.h <<_ACEOF
23343#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023344_ACEOF
23345
23346fi
23347
23348
cristy501c8042011-05-26 17:46:28 +000023349
23350 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23351if test "x$ac_cv_type_intptr_t" = xyes; then :
23352
23353$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023354
cristy3ed852e2009-09-05 21:47:34 +000023355else
cristy501c8042011-05-26 17:46:28 +000023356 for ac_type in 'int' 'long int' 'long long int'; do
23357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23358/* end confdefs.h. */
23359$ac_includes_default
23360int
23361main ()
23362{
23363static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023364test_array [0] = 0;
23365return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023366
23367 ;
23368 return 0;
23369}
23370_ACEOF
23371if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023372
23373cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023374#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023375_ACEOF
23376
cristy501c8042011-05-26 17:46:28 +000023377 ac_type=
23378fi
23379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 test -z "$ac_type" && break
23381 done
cristy3ed852e2009-09-05 21:47:34 +000023382fi
23383
23384
cristy3ed852e2009-09-05 21:47:34 +000023385
cristy501c8042011-05-26 17:46:28 +000023386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23387$as_echo_n "checking for long double... " >&6; }
23388if ${ac_cv_type_long_double+:} false; then :
23389 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023390else
cristy501c8042011-05-26 17:46:28 +000023391 if test "$GCC" = yes; then
23392 ac_cv_type_long_double=yes
23393 else
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395/* end confdefs.h. */
23396/* The Stardent Vistra knows sizeof (long double), but does
23397 not support it. */
23398 long double foo = 0.0L;
23399int
23400main ()
23401{
23402static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23403 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023404test_array [0] = 0;
23405return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023406
cristy501c8042011-05-26 17:46:28 +000023407 ;
23408 return 0;
23409}
cristy3ed852e2009-09-05 21:47:34 +000023410_ACEOF
cristy501c8042011-05-26 17:46:28 +000023411if ac_fn_c_try_compile "$LINENO"; then :
23412 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023413else
cristy501c8042011-05-26 17:46:28 +000023414 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023415fi
cristy501c8042011-05-26 17:46:28 +000023416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 fi
cristy3ed852e2009-09-05 21:47:34 +000023418fi
cristy501c8042011-05-26 17:46:28 +000023419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23420$as_echo "$ac_cv_type_long_double" >&6; }
23421 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023422
cristy501c8042011-05-26 17:46:28 +000023423$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023424
cristy501c8042011-05-26 17:46:28 +000023425 fi
23426
cristy3ed852e2009-09-05 21:47:34 +000023427
cristy8b350f62009-11-15 23:12:43 +000023428 { $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 +000023429$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023430if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 $as_echo_n "(cached) " >&6
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023434/* end confdefs.h. */
23435#include <float.h>
23436 long double const a[] =
23437 {
23438 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23439 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23440 };
23441 long double
23442 f (long double x)
23443 {
23444 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23445 + (x ? f (x) : 'c'));
23446 }
23447
23448int
23449main ()
23450{
23451static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23452 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23453 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23454 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23455 && (int) LDBL_EPSILON == 0
23456 )];
cristy14fefe52012-05-21 00:59:18 +000023457test_array [0] = 0;
23458return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023459
23460 ;
23461 return 0;
23462}
23463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023464if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023465 ac_cv_type_long_double_wider=yes
23466else
cristy8b350f62009-11-15 23:12:43 +000023467 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023468fi
cristy3ed852e2009-09-05 21:47:34 +000023469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470fi
cristy8b350f62009-11-15 23:12:43 +000023471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "$ac_cv_type_long_double_wider" >&6; }
23473 if test $ac_cv_type_long_double_wider = yes; then
23474
cristy8b350f62009-11-15 23:12:43 +000023475$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023476
23477 fi
23478
23479
cristy501c8042011-05-26 17:46:28 +000023480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23481$as_echo_n "checking for long long int... " >&6; }
23482if ${ac_cv_type_long_long_int+:} false; then :
23483 $as_echo_n "(cached) " >&6
23484else
23485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486/* end confdefs.h. */
23487
23488 /* For now, do not test the preprocessor; as of 2007 there are too many
23489 implementations with broken preprocessors. Perhaps this can
23490 be revisited in 2012. In the meantime, code should not expect
23491 #if to work with literals wider than 32 bits. */
23492 /* Test literals. */
23493 long long int ll = 9223372036854775807ll;
23494 long long int nll = -9223372036854775807LL;
23495 unsigned long long int ull = 18446744073709551615ULL;
23496 /* Test constant expressions. */
23497 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23498 ? 1 : -1)];
23499 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23500 ? 1 : -1)];
23501 int i = 63;
23502int
23503main ()
23504{
23505/* Test availability of runtime routines for shift and division. */
23506 long long int llmax = 9223372036854775807ll;
23507 unsigned long long int ullmax = 18446744073709551615ull;
23508 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23509 | (llmax / ll) | (llmax % ll)
23510 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23511 | (ullmax / ull) | (ullmax % ull));
23512 ;
23513 return 0;
23514}
23515
23516_ACEOF
23517if ac_fn_c_try_link "$LINENO"; then :
23518 if test "$cross_compiling" = yes; then :
23519 ac_cv_type_long_long_int=yes
23520else
23521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522/* end confdefs.h. */
23523#include <limits.h>
23524 #ifndef LLONG_MAX
23525 # define HALF \
23526 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23527 # define LLONG_MAX (HALF - 1 + HALF)
23528 #endif
23529int
23530main ()
23531{
23532long long int n = 1;
23533 int i;
23534 for (i = 0; ; i++)
23535 {
23536 long long int m = n << i;
23537 if (m >> i != n)
23538 return 1;
23539 if (LLONG_MAX / 2 < m)
23540 break;
23541 }
23542 return 0;
23543 ;
23544 return 0;
23545}
23546_ACEOF
23547if ac_fn_c_try_run "$LINENO"; then :
23548 ac_cv_type_long_long_int=yes
23549else
23550 ac_cv_type_long_long_int=no
23551fi
23552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23553 conftest.$ac_objext conftest.beam conftest.$ac_ext
23554fi
23555
23556else
23557 ac_cv_type_long_long_int=no
23558fi
23559rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
23561fi
23562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23563$as_echo "$ac_cv_type_long_long_int" >&6; }
23564 if test $ac_cv_type_long_long_int = yes; then
23565
23566$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23567
23568 fi
23569
23570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23571$as_echo_n "checking for mbstate_t... " >&6; }
23572if ${ac_cv_type_mbstate_t+:} false; then :
23573 $as_echo_n "(cached) " >&6
23574else
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576/* end confdefs.h. */
23577$ac_includes_default
23578# include <wchar.h>
23579int
23580main ()
23581{
23582mbstate_t x; return sizeof x;
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587if ac_fn_c_try_compile "$LINENO"; then :
23588 ac_cv_type_mbstate_t=yes
23589else
23590 ac_cv_type_mbstate_t=no
23591fi
23592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593fi
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23595$as_echo "$ac_cv_type_mbstate_t" >&6; }
23596 if test $ac_cv_type_mbstate_t = yes; then
23597
23598$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23599
23600 else
23601
23602$as_echo "#define mbstate_t int" >>confdefs.h
23603
23604 fi
23605ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23606if test "x$ac_cv_type_mode_t" = xyes; then :
23607
23608else
23609
23610cat >>confdefs.h <<_ACEOF
23611#define mode_t int
23612_ACEOF
23613
23614fi
23615
23616ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23617if test "x$ac_cv_type_off_t" = xyes; then :
23618
23619else
23620
23621cat >>confdefs.h <<_ACEOF
23622#define off_t long int
23623_ACEOF
23624
23625fi
23626
23627ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23628if test "x$ac_cv_type_pid_t" = xyes; then :
23629
23630else
23631
23632cat >>confdefs.h <<_ACEOF
23633#define pid_t int
23634_ACEOF
23635
23636fi
23637
23638ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23639if test "x$ac_cv_type_size_t" = xyes; then :
23640
23641else
23642
23643cat >>confdefs.h <<_ACEOF
23644#define size_t unsigned int
23645_ACEOF
23646
23647fi
23648
23649ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23650if test "x$ac_cv_type_ssize_t" = xyes; then :
23651
23652else
23653
23654cat >>confdefs.h <<_ACEOF
23655#define ssize_t int
23656_ACEOF
23657
23658fi
23659
23660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23661$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23662if ${ac_cv_type_uid_t+:} false; then :
23663 $as_echo_n "(cached) " >&6
23664else
23665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666/* end confdefs.h. */
23667#include <sys/types.h>
23668
23669_ACEOF
23670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23671 $EGREP "uid_t" >/dev/null 2>&1; then :
23672 ac_cv_type_uid_t=yes
23673else
23674 ac_cv_type_uid_t=no
23675fi
23676rm -f conftest*
23677
23678fi
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23680$as_echo "$ac_cv_type_uid_t" >&6; }
23681if test $ac_cv_type_uid_t = no; then
23682
23683$as_echo "#define uid_t int" >>confdefs.h
23684
23685
23686$as_echo "#define gid_t int" >>confdefs.h
23687
23688fi
23689
23690ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23691case $ac_cv_c_uint8_t in #(
23692 no|yes) ;; #(
23693 *)
23694
23695$as_echo "#define _UINT8_T 1" >>confdefs.h
23696
23697
23698cat >>confdefs.h <<_ACEOF
23699#define uint8_t $ac_cv_c_uint8_t
23700_ACEOF
23701;;
23702 esac
23703
23704ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23705case $ac_cv_c_uint16_t in #(
23706 no|yes) ;; #(
23707 *)
23708
23709
23710cat >>confdefs.h <<_ACEOF
23711#define uint16_t $ac_cv_c_uint16_t
23712_ACEOF
23713;;
23714 esac
23715
23716ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23717case $ac_cv_c_uint32_t in #(
23718 no|yes) ;; #(
23719 *)
23720
23721$as_echo "#define _UINT32_T 1" >>confdefs.h
23722
23723
23724cat >>confdefs.h <<_ACEOF
23725#define uint32_t $ac_cv_c_uint32_t
23726_ACEOF
23727;;
23728 esac
23729
23730ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23731case $ac_cv_c_uint64_t in #(
23732 no|yes) ;; #(
23733 *)
23734
23735$as_echo "#define _UINT64_T 1" >>confdefs.h
23736
23737
23738cat >>confdefs.h <<_ACEOF
23739#define uint64_t $ac_cv_c_uint64_t
23740_ACEOF
23741;;
23742 esac
23743
23744
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23746$as_echo_n "checking for unsigned long long int... " >&6; }
23747if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23748 $as_echo_n "(cached) " >&6
23749else
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751/* end confdefs.h. */
23752
23753 /* For now, do not test the preprocessor; as of 2007 there are too many
23754 implementations with broken preprocessors. Perhaps this can
23755 be revisited in 2012. In the meantime, code should not expect
23756 #if to work with literals wider than 32 bits. */
23757 /* Test literals. */
23758 long long int ll = 9223372036854775807ll;
23759 long long int nll = -9223372036854775807LL;
23760 unsigned long long int ull = 18446744073709551615ULL;
23761 /* Test constant expressions. */
23762 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23763 ? 1 : -1)];
23764 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23765 ? 1 : -1)];
23766 int i = 63;
23767int
23768main ()
23769{
23770/* Test availability of runtime routines for shift and division. */
23771 long long int llmax = 9223372036854775807ll;
23772 unsigned long long int ullmax = 18446744073709551615ull;
23773 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23774 | (llmax / ll) | (llmax % ll)
23775 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23776 | (ullmax / ull) | (ullmax % ull));
23777 ;
23778 return 0;
23779}
23780
23781_ACEOF
23782if ac_fn_c_try_link "$LINENO"; then :
23783 ac_cv_type_unsigned_long_long_int=yes
23784else
23785 ac_cv_type_unsigned_long_long_int=no
23786fi
23787rm -f core conftest.err conftest.$ac_objext \
23788 conftest$ac_exeext conftest.$ac_ext
23789fi
23790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23791$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23792 if test $ac_cv_type_unsigned_long_long_int = yes; then
23793
23794$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23795
23796 fi
23797
23798
23799
23800 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23801if test "x$ac_cv_type_uintmax_t" = xyes; then :
23802
23803$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23804
23805else
23806 test $ac_cv_type_unsigned_long_long_int = yes \
23807 && ac_type='unsigned long long int' \
23808 || ac_type='unsigned long int'
23809
23810cat >>confdefs.h <<_ACEOF
23811#define uintmax_t $ac_type
23812_ACEOF
23813
23814fi
23815
23816
23817
23818 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23819if test "x$ac_cv_type_uintptr_t" = xyes; then :
23820
23821$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23822
23823else
23824 for ac_type in 'unsigned int' 'unsigned long int' \
23825 'unsigned long long int'; do
23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23827/* end confdefs.h. */
23828$ac_includes_default
23829int
23830main ()
23831{
23832static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023833test_array [0] = 0;
23834return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023835
23836 ;
23837 return 0;
23838}
23839_ACEOF
23840if ac_fn_c_try_compile "$LINENO"; then :
23841
23842cat >>confdefs.h <<_ACEOF
23843#define uintptr_t $ac_type
23844_ACEOF
23845
23846 ac_type=
23847fi
23848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 test -z "$ac_type" && break
23850 done
23851fi
23852
23853
23854
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23856$as_echo_n "checking for unsigned long long int... " >&6; }
23857if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23858 $as_echo_n "(cached) " >&6
23859else
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861/* end confdefs.h. */
23862
23863 /* For now, do not test the preprocessor; as of 2007 there are too many
23864 implementations with broken preprocessors. Perhaps this can
23865 be revisited in 2012. In the meantime, code should not expect
23866 #if to work with literals wider than 32 bits. */
23867 /* Test literals. */
23868 long long int ll = 9223372036854775807ll;
23869 long long int nll = -9223372036854775807LL;
23870 unsigned long long int ull = 18446744073709551615ULL;
23871 /* Test constant expressions. */
23872 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23873 ? 1 : -1)];
23874 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23875 ? 1 : -1)];
23876 int i = 63;
23877int
23878main ()
23879{
23880/* Test availability of runtime routines for shift and division. */
23881 long long int llmax = 9223372036854775807ll;
23882 unsigned long long int ullmax = 18446744073709551615ull;
23883 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23884 | (llmax / ll) | (llmax % ll)
23885 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23886 | (ullmax / ull) | (ullmax % ull));
23887 ;
23888 return 0;
23889}
23890
23891_ACEOF
23892if ac_fn_c_try_link "$LINENO"; then :
23893 ac_cv_type_unsigned_long_long_int=yes
23894else
23895 ac_cv_type_unsigned_long_long_int=no
23896fi
23897rm -f core conftest.err conftest.$ac_objext \
23898 conftest$ac_exeext conftest.$ac_ext
23899fi
23900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23901$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23902 if test $ac_cv_type_unsigned_long_long_int = yes; then
23903
23904$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23905
23906 fi
23907
23908
cristy3ed852e2009-09-05 21:47:34 +000023909# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23910# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023913if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 $as_echo_n "(cached) " >&6
23915else
cristy8b350f62009-11-15 23:12:43 +000023916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023917/* end confdefs.h. */
23918$ac_includes_default
23919int
23920main ()
23921{
23922static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023923test_array [0] = 0;
23924return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023925
23926 ;
23927 return 0;
23928}
23929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023931 ac_cv_c_char_unsigned=no
23932else
cristy8b350f62009-11-15 23:12:43 +000023933 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023934fi
cristy3ed852e2009-09-05 21:47:34 +000023935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936fi
cristy8b350f62009-11-15 23:12:43 +000023937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023938$as_echo "$ac_cv_c_char_unsigned" >&6; }
23939if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023940 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023941
23942fi
23943
23944
23945# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23946# The cast to long int works around a bug in the HP C Compiler
23947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23949# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023952if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023953 $as_echo_n "(cached) " >&6
23954else
cristy8b350f62009-11-15 23:12:43 +000023955 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 +000023956
cristy3ed852e2009-09-05 21:47:34 +000023957else
cristy8b350f62009-11-15 23:12:43 +000023958 if test "$ac_cv_type_signed_short" = yes; then
23959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023961as_fn_error 77 "cannot compute sizeof (signed short)
23962See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023963 else
23964 ac_cv_sizeof_signed_short=0
23965 fi
23966fi
cristy8b350f62009-11-15 23:12:43 +000023967
cristy3ed852e2009-09-05 21:47:34 +000023968fi
cristy8b350f62009-11-15 23:12:43 +000023969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023970$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23971
23972
23973
23974cat >>confdefs.h <<_ACEOF
23975#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23976_ACEOF
23977
23978
23979
23980# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23981# The cast to long int works around a bug in the HP C Compiler
23982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23984# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023986$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023987if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023988 $as_echo_n "(cached) " >&6
23989else
cristy8b350f62009-11-15 23:12:43 +000023990 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 +000023991
cristy3ed852e2009-09-05 21:47:34 +000023992else
cristy8b350f62009-11-15 23:12:43 +000023993 if test "$ac_cv_type_unsigned_short" = yes; then
23994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023996as_fn_error 77 "cannot compute sizeof (unsigned short)
23997See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023998 else
23999 ac_cv_sizeof_unsigned_short=0
24000 fi
24001fi
cristy8b350f62009-11-15 23:12:43 +000024002
cristy3ed852e2009-09-05 21:47:34 +000024003fi
cristy8b350f62009-11-15 23:12:43 +000024004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024005$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24006
24007
24008
24009cat >>confdefs.h <<_ACEOF
24010#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24011_ACEOF
24012
24013
24014
24015# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24016# The cast to long int works around a bug in the HP C Compiler
24017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24019# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024021$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024022if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024023 $as_echo_n "(cached) " >&6
24024else
cristy8b350f62009-11-15 23:12:43 +000024025 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 +000024026
cristy3ed852e2009-09-05 21:47:34 +000024027else
cristy8b350f62009-11-15 23:12:43 +000024028 if test "$ac_cv_type_signed_int" = yes; then
24029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024031as_fn_error 77 "cannot compute sizeof (signed int)
24032See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024033 else
24034 ac_cv_sizeof_signed_int=0
24035 fi
24036fi
cristy8b350f62009-11-15 23:12:43 +000024037
cristy3ed852e2009-09-05 21:47:34 +000024038fi
cristy8b350f62009-11-15 23:12:43 +000024039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024040$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24041
24042
24043
24044cat >>confdefs.h <<_ACEOF
24045#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24046_ACEOF
24047
24048
24049
24050# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24051# The cast to long int works around a bug in the HP C Compiler
24052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24054# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024057if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024058 $as_echo_n "(cached) " >&6
24059else
cristy8b350f62009-11-15 23:12:43 +000024060 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 +000024061
cristy3ed852e2009-09-05 21:47:34 +000024062else
cristy8b350f62009-11-15 23:12:43 +000024063 if test "$ac_cv_type_unsigned_int" = yes; then
24064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024066as_fn_error 77 "cannot compute sizeof (unsigned int)
24067See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024068 else
24069 ac_cv_sizeof_unsigned_int=0
24070 fi
24071fi
cristy8b350f62009-11-15 23:12:43 +000024072
cristy3ed852e2009-09-05 21:47:34 +000024073fi
cristy8b350f62009-11-15 23:12:43 +000024074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024075$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24076
24077
24078
24079cat >>confdefs.h <<_ACEOF
24080#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24081_ACEOF
24082
24083
24084
24085# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24086# The cast to long int works around a bug in the HP C Compiler
24087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24089# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024092if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024093 $as_echo_n "(cached) " >&6
24094else
cristy8b350f62009-11-15 23:12:43 +000024095 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 +000024096
cristy3ed852e2009-09-05 21:47:34 +000024097else
cristy8b350f62009-11-15 23:12:43 +000024098 if test "$ac_cv_type_signed_long" = yes; then
24099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024101as_fn_error 77 "cannot compute sizeof (signed long)
24102See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024103 else
24104 ac_cv_sizeof_signed_long=0
24105 fi
24106fi
cristy8b350f62009-11-15 23:12:43 +000024107
cristy3ed852e2009-09-05 21:47:34 +000024108fi
cristy8b350f62009-11-15 23:12:43 +000024109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024110$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24111
24112
24113
24114cat >>confdefs.h <<_ACEOF
24115#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24116_ACEOF
24117
24118
24119
24120# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24121# The cast to long int works around a bug in the HP C Compiler
24122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24124# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024126$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024127if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 $as_echo_n "(cached) " >&6
24129else
cristy8b350f62009-11-15 23:12:43 +000024130 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 +000024131
cristy3ed852e2009-09-05 21:47:34 +000024132else
cristy8b350f62009-11-15 23:12:43 +000024133 if test "$ac_cv_type_unsigned_long" = yes; then
24134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024136as_fn_error 77 "cannot compute sizeof (unsigned long)
24137See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024138 else
24139 ac_cv_sizeof_unsigned_long=0
24140 fi
24141fi
cristy8b350f62009-11-15 23:12:43 +000024142
cristy3ed852e2009-09-05 21:47:34 +000024143fi
cristy8b350f62009-11-15 23:12:43 +000024144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024145$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24146
24147
24148
24149cat >>confdefs.h <<_ACEOF
24150#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24151_ACEOF
24152
24153
24154
24155# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24156# 'signed long long' is not supported then the value defined is zero.
24157# The cast to long int works around a bug in the HP C Compiler
24158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24160# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024163if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 $as_echo_n "(cached) " >&6
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 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 +000024167
cristy3ed852e2009-09-05 21:47:34 +000024168else
cristy8b350f62009-11-15 23:12:43 +000024169 if test "$ac_cv_type_signed_long_long" = yes; then
24170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024172as_fn_error 77 "cannot compute sizeof (signed long long)
24173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024174 else
24175 ac_cv_sizeof_signed_long_long=0
24176 fi
24177fi
cristy8b350f62009-11-15 23:12:43 +000024178
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24182
24183
24184
24185cat >>confdefs.h <<_ACEOF
24186#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24187_ACEOF
24188
24189
24190
24191# Obtain size of a 'unsigned long long' and define as
24192# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24193# supported then the value defined is zero.
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 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 +000024204
cristy3ed852e2009-09-05 21:47:34 +000024205else
cristy8b350f62009-11-15 23:12:43 +000024206 if test "$ac_cv_type_unsigned_long_long" = yes; then
24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024209as_fn_error 77 "cannot compute sizeof (unsigned long long)
24210See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024211 else
24212 ac_cv_sizeof_unsigned_long_long=0
24213 fi
24214fi
cristy8b350f62009-11-15 23:12:43 +000024215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24224_ACEOF
24225
24226
24227
24228# Obtain size of off_t and define as SIZEOF_OFF_T
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 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 +000024239
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristy8b350f62009-11-15 23:12:43 +000024241 if test "$ac_cv_type_off_t" = yes; then
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024244as_fn_error 77 "cannot compute sizeof (off_t)
24245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024246 else
24247 ac_cv_sizeof_off_t=0
24248 fi
24249fi
cristy8b350f62009-11-15 23:12:43 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_sizeof_off_t" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24259_ACEOF
24260
24261
24262
24263# Obtain size of size_t and define as SIZEOF_SIZE_T
24264# The cast to long int works around a bug in the HP C Compiler
24265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24267# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024270if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024271 $as_echo_n "(cached) " >&6
24272else
cristy8b350f62009-11-15 23:12:43 +000024273 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 +000024274
cristy3ed852e2009-09-05 21:47:34 +000024275else
cristy8b350f62009-11-15 23:12:43 +000024276 if test "$ac_cv_type_size_t" = yes; then
24277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024279as_fn_error 77 "cannot compute sizeof (size_t)
24280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024281 else
24282 ac_cv_sizeof_size_t=0
24283 fi
24284fi
cristy8b350f62009-11-15 23:12:43 +000024285
cristy3ed852e2009-09-05 21:47:34 +000024286fi
cristy8b350f62009-11-15 23:12:43 +000024287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024288$as_echo "$ac_cv_sizeof_size_t" >&6; }
24289
24290
24291
24292cat >>confdefs.h <<_ACEOF
24293#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24294_ACEOF
24295
24296
24297
cristy330e9352010-06-01 18:42:49 +000024298# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24299# The cast to long int works around a bug in the HP C Compiler
24300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24302# This bug is HP SR number 8606223364.
24303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24304$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024305if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024306 $as_echo_n "(cached) " >&6
24307else
24308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24309
24310else
24311 if test "$ac_cv_type_ssize_t" = yes; then
24312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024314as_fn_error 77 "cannot compute sizeof (ssize_t)
24315See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024316 else
24317 ac_cv_sizeof_ssize_t=0
24318 fi
24319fi
24320
24321fi
24322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24323$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24324
24325
24326
24327cat >>confdefs.h <<_ACEOF
24328#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24329_ACEOF
24330
24331
24332
cristy3ed852e2009-09-05 21:47:34 +000024333# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24334# The cast to long int works around a bug in the HP C Compiler
24335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24337# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024340if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024341 $as_echo_n "(cached) " >&6
24342else
cristy8b350f62009-11-15 23:12:43 +000024343 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 +000024344
cristy3ed852e2009-09-05 21:47:34 +000024345else
cristy8b350f62009-11-15 23:12:43 +000024346 if test "$ac_cv_type_unsigned_intp" = yes; then
24347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024349as_fn_error 77 "cannot compute sizeof (unsigned int*)
24350See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024351 else
24352 ac_cv_sizeof_unsigned_intp=0
24353 fi
24354fi
cristy8b350f62009-11-15 23:12:43 +000024355
cristy3ed852e2009-09-05 21:47:34 +000024356fi
cristy8b350f62009-11-15 23:12:43 +000024357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024358$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24359
24360
24361
24362cat >>confdefs.h <<_ACEOF
24363#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24364_ACEOF
24365
24366
24367
24368#
24369# Compute sized types for current CPU and compiler options.
24370#
24371
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo_n "checking for signed 8-bit type... " >&6; }
24374INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24376$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024377
24378
cristy8b350f62009-11-15 23:12:43 +000024379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024380$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24381UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024382{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24383$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024384
24385
cristy8b350f62009-11-15 23:12:43 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo_n "checking for signed 16-bit type... " >&6; }
24388INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024389{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24390$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024391
24392
cristy8b350f62009-11-15 23:12:43 +000024393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24395UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024396{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24397$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024398
24399
cristy8b350f62009-11-15 23:12:43 +000024400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024401$as_echo_n "checking for signed 32-bit type... " >&6; }
24402INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024403INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024404if test $ac_cv_sizeof_signed_int -eq 4; then
24405 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024406 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024407elif test $ac_cv_sizeof_signed_long -eq 4; then
24408 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024409 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024410fi
cristy09b53e12011-10-14 12:47:22 +000024411{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24412$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024413
24414
cristy6d5e20f2011-04-25 13:48:54 +000024415
cristy8b350f62009-11-15 23:12:43 +000024416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24418UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024419UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024420if test $ac_cv_sizeof_unsigned_int -eq 4; then
24421 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024422 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024423elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24424 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024425 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024426fi
cristy09b53e12011-10-14 12:47:22 +000024427{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24428$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024429
24430
cristy6d5e20f2011-04-25 13:48:54 +000024431
cristy8b350f62009-11-15 23:12:43 +000024432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024433$as_echo_n "checking for signed 64-bit type... " >&6; }
24434INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024435INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024436if test $ac_cv_sizeof_signed_long -eq 8; then
24437 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024438 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024439elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24440 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024441 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024442fi
cristy3a99dcf2011-12-17 01:29:40 +000024443case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024444 mingw* )
24445 INT64_F='"I64"'
24446 ;;
24447esac
cristy09b53e12011-10-14 12:47:22 +000024448{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24449$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024450
24451
cristy6d5e20f2011-04-25 13:48:54 +000024452
cristy8b350f62009-11-15 23:12:43 +000024453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024454$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24455UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024456UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024457if test $ac_cv_sizeof_unsigned_long -eq 8; then
24458 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024459 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024460elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24461 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024462 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy3a99dcf2011-12-17 01:29:40 +000024464case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024465 mingw* )
24466 UINT64_F='"I64"'
24467 ;;
24468esac
cristy09b53e12011-10-14 12:47:22 +000024469{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24470$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024471
24472
cristy6d5e20f2011-04-25 13:48:54 +000024473
cristy8b350f62009-11-15 23:12:43 +000024474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking for unsigned maximum type... " >&6; }
24476UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024477UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024478if test "$UINT64_T" != 'none'; then
24479 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024480 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024481elif test "$UINT32_T" != 'none'; then
24482 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024483 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024484fi
cristy09b53e12011-10-14 12:47:22 +000024485{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24486$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024487
24488
cristy6d5e20f2011-04-25 13:48:54 +000024489
cristy8b350f62009-11-15 23:12:43 +000024490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024491$as_echo_n "checking for pointer difference type... " >&6; }
24492UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024493UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024494if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24495 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024496 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024497elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24498 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024499 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024500fi
cristy09b53e12011-10-14 12:47:22 +000024501{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24502$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024503
24504
cristy6d5e20f2011-04-25 13:48:54 +000024505
cristy8b350f62009-11-15 23:12:43 +000024506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024509/* end confdefs.h. */
24510
24511int
24512main ()
24513{
24514{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24515 ;
24516 return 0;
24517}
24518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024519if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024520 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24521$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024522else
cristy09b53e12011-10-14 12:47:22 +000024523 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24524$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024528/* end confdefs.h. */
24529
24530int
24531main ()
24532{
24533{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24534 ;
24535 return 0;
24536}
24537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024538if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024539 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24540$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024541
cristy8b350f62009-11-15 23:12:43 +000024542$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024543
24544else
cristy09b53e12011-10-14 12:47:22 +000024545 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24546$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024547
cristy8b350f62009-11-15 23:12:43 +000024548$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024549
24550fi
cristy3ed852e2009-09-05 21:47:34 +000024551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552fi
cristy3ed852e2009-09-05 21:47:34 +000024553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24554
24555########
24556#
24557# Check for functions
24558#
24559########
cristy73bd4a52010-10-05 11:24:23 +000024560for ac_header in stdlib.h unistd.h
24561do :
24562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24563ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024565 cat >>confdefs.h <<_ACEOF
24566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567_ACEOF
24568
24569fi
24570
24571done
24572
24573for ac_func in getpagesize
24574do :
24575 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024576if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024577 cat >>confdefs.h <<_ACEOF
24578#define HAVE_GETPAGESIZE 1
24579_ACEOF
24580
24581fi
24582done
24583
24584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24585$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024586if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024587 $as_echo_n "(cached) " >&6
24588else
24589 if test "$cross_compiling" = yes; then :
24590 magick_cv_func_mmap_fileio=no
24591else
24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593/* end confdefs.h. */
24594$ac_includes_default
24595/* malloc might have been renamed as rpl_malloc. */
24596#undef malloc
24597
24598/*
24599 This test is derived from GNU Autoconf's similar macro.
24600 The purpose of this test is to verify that files may be memory
24601 mapped, and that memory mapping and file I/O are coherent.
24602
24603 The test creates a test file, memory maps the file, updates
24604 the file using the memory map, and then reads the file using
24605 file I/O to verify that the file contains the updates.
24606*/
24607
24608#include <fcntl.h>
24609#include <sys/mman.h>
24610
24611#if !STDC_HEADERS && !HAVE_STDLIB_H
24612char *malloc ();
24613#endif
24614
24615/* This mess was copied from the GNU getpagesize.h. */
24616#if !HAVE_GETPAGESIZE
24617/* Assume that all systems that can run configure have sys/param.h. */
24618# if !HAVE_SYS_PARAM_H
24619# define HAVE_SYS_PARAM_H 1
24620# endif
24621
24622# ifdef _SC_PAGESIZE
24623# define getpagesize() sysconf(_SC_PAGESIZE)
24624# else /* no _SC_PAGESIZE */
24625# if HAVE_SYS_PARAM_H
24626# include <sys/param.h>
24627# ifdef EXEC_PAGESIZE
24628# define getpagesize() EXEC_PAGESIZE
24629# else /* no EXEC_PAGESIZE */
24630# ifdef NBPG
24631# define getpagesize() NBPG * CLSIZE
24632# ifndef CLSIZE
24633# define CLSIZE 1
24634# endif /* no CLSIZE */
24635# else /* no NBPG */
24636# ifdef NBPC
24637# define getpagesize() NBPC
24638# else /* no NBPC */
24639# ifdef PAGESIZE
24640# define getpagesize() PAGESIZE
24641# endif /* PAGESIZE */
24642# endif /* no NBPC */
24643# endif /* no NBPG */
24644# endif /* no EXEC_PAGESIZE */
24645# else /* no HAVE_SYS_PARAM_H */
24646# define getpagesize() 8192 /* punt totally */
24647# endif /* no HAVE_SYS_PARAM_H */
24648# endif /* no _SC_PAGESIZE */
24649
24650#endif /* no HAVE_GETPAGESIZE */
24651
24652int
24653main ()
24654{
24655 char *data, *data2, *data3;
24656 int i, pagesize;
24657 int fd;
24658
24659 pagesize = getpagesize ();
24660
24661 /* First, make a file with some known garbage in it. */
24662 data = (char *) malloc (pagesize);
24663 if (!data)
24664 exit (1);
24665 for (i = 0; i < pagesize; ++i)
24666 *(data + i) = rand ();
24667 umask (0);
24668 fd = creat ("conftest.mmap", 0600);
24669 if (fd < 0)
24670 exit (1);
24671 if (write (fd, data, pagesize) != pagesize)
24672 exit (1);
24673 close (fd);
24674
24675 /* Mmap the file as read/write/shared and verify that we see the
24676 same garbage. */
24677 fd = open ("conftest.mmap", O_RDWR);
24678 if (fd < 0)
24679 exit (1);
24680 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24681 if (data2 == 0)
24682 exit (1);
24683 for (i = 0; i < pagesize; ++i)
24684 if (*(data + i) != *(data2 + i))
24685 exit (1);
24686
24687 /* Finally, make sure that changes to the mapped area
24688 percolate back to the file as seen by read(). */
24689 for (i = 0; i < pagesize; ++i)
24690 *(data2 + i) = *(data2 + i) + 1;
24691 data3 = (char *) malloc (pagesize);
24692 if (!data3)
24693 exit (1);
24694 if (read (fd, data3, pagesize) != pagesize)
24695 exit (1);
24696 for (i = 0; i < pagesize; ++i)
24697 if (*(data2 + i) != *(data3 + i))
24698 exit (1);
24699 close (fd);
24700 exit (0);
24701}
24702_ACEOF
24703if ac_fn_c_try_run "$LINENO"; then :
24704 magick_cv_func_mmap_fileio=yes
24705else
24706 magick_cv_func_mmap_fileio=no
24707fi
24708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24709 conftest.$ac_objext conftest.beam conftest.$ac_ext
24710fi
24711
24712fi
24713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24714$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24715if test $magick_cv_func_mmap_fileio = yes; then
24716
24717$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24718
24719fi
24720rm -f conftest.mmap
24721
cristy8b350f62009-11-15 23:12:43 +000024722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024724if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 $as_echo_n "(cached) " >&6
24726else
cristy8b350f62009-11-15 23:12:43 +000024727 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024728 ac_cv_func_closedir_void=yes
24729else
cristy8b350f62009-11-15 23:12:43 +000024730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024731/* end confdefs.h. */
24732$ac_includes_default
24733#include <$ac_header_dirent>
24734#ifndef __cplusplus
24735int closedir ();
24736#endif
24737
24738int
24739main ()
24740{
24741return closedir (opendir (".")) != 0;
24742 ;
24743 return 0;
24744}
24745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024746if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 ac_cv_func_closedir_void=no
24748else
cristy8b350f62009-11-15 23:12:43 +000024749 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024750fi
cristy8b350f62009-11-15 23:12:43 +000024751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24752 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024753fi
24754
cristy3ed852e2009-09-05 21:47:34 +000024755fi
cristy8b350f62009-11-15 23:12:43 +000024756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024757$as_echo "$ac_cv_func_closedir_void" >&6; }
24758if test $ac_cv_func_closedir_void = yes; then
24759
cristy8b350f62009-11-15 23:12:43 +000024760$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024761
24762fi
24763
cristycd4c5312009-11-22 01:19:08 +000024764
24765
24766
24767 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024768do :
24769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024770ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24771"
cristy98dddb52010-11-04 00:30:15 +000024772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024773 cat >>confdefs.h <<_ACEOF
24774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24775_ACEOF
24776
24777fi
24778
24779done
24780
cristycd4c5312009-11-22 01:19:08 +000024781
24782
24783
24784
24785
24786
24787
cristy3ed852e2009-09-05 21:47:34 +000024788for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024789do :
24790 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024791if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024792 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024793#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024794_ACEOF
24795
24796fi
24797done
24798
cristy8b350f62009-11-15 23:12:43 +000024799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024801if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024802 $as_echo_n "(cached) " >&6
24803else
cristy8b350f62009-11-15 23:12:43 +000024804 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 ac_cv_func_mmap_fixed_mapped=no
24806else
cristy8b350f62009-11-15 23:12:43 +000024807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024808/* end confdefs.h. */
24809$ac_includes_default
24810/* malloc might have been renamed as rpl_malloc. */
24811#undef malloc
24812
24813/* Thanks to Mike Haertel and Jim Avera for this test.
24814 Here is a matrix of mmap possibilities:
24815 mmap private not fixed
24816 mmap private fixed at somewhere currently unmapped
24817 mmap private fixed at somewhere already mapped
24818 mmap shared not fixed
24819 mmap shared fixed at somewhere currently unmapped
24820 mmap shared fixed at somewhere already mapped
24821 For private mappings, we should verify that changes cannot be read()
24822 back from the file, nor mmap's back from the file at a different
24823 address. (There have been systems where private was not correctly
24824 implemented like the infamous i386 svr4.0, and systems where the
24825 VM page cache was not coherent with the file system buffer cache
24826 like early versions of FreeBSD and possibly contemporary NetBSD.)
24827 For shared mappings, we should conversely verify that changes get
24828 propagated back to all the places they're supposed to be.
24829
24830 Grep wants private fixed already mapped.
24831 The main things grep needs to know about mmap are:
24832 * does it exist and is it safe to write into the mmap'd area
24833 * how to use it (BSD variants) */
24834
24835#include <fcntl.h>
24836#include <sys/mman.h>
24837
24838#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24839char *malloc ();
24840#endif
24841
24842/* This mess was copied from the GNU getpagesize.h. */
24843#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024844# ifdef _SC_PAGESIZE
24845# define getpagesize() sysconf(_SC_PAGESIZE)
24846# else /* no _SC_PAGESIZE */
24847# ifdef HAVE_SYS_PARAM_H
24848# include <sys/param.h>
24849# ifdef EXEC_PAGESIZE
24850# define getpagesize() EXEC_PAGESIZE
24851# else /* no EXEC_PAGESIZE */
24852# ifdef NBPG
24853# define getpagesize() NBPG * CLSIZE
24854# ifndef CLSIZE
24855# define CLSIZE 1
24856# endif /* no CLSIZE */
24857# else /* no NBPG */
24858# ifdef NBPC
24859# define getpagesize() NBPC
24860# else /* no NBPC */
24861# ifdef PAGESIZE
24862# define getpagesize() PAGESIZE
24863# endif /* PAGESIZE */
24864# endif /* no NBPC */
24865# endif /* no NBPG */
24866# endif /* no EXEC_PAGESIZE */
24867# else /* no HAVE_SYS_PARAM_H */
24868# define getpagesize() 8192 /* punt totally */
24869# endif /* no HAVE_SYS_PARAM_H */
24870# endif /* no _SC_PAGESIZE */
24871
24872#endif /* no HAVE_GETPAGESIZE */
24873
24874int
24875main ()
24876{
24877 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024878 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024879 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024880 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024881
24882 pagesize = getpagesize ();
24883
24884 /* First, make a file with some known garbage in it. */
24885 data = (char *) malloc (pagesize);
24886 if (!data)
24887 return 1;
24888 for (i = 0; i < pagesize; ++i)
24889 *(data + i) = rand ();
24890 umask (0);
24891 fd = creat ("conftest.mmap", 0600);
24892 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024893 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024894 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024895 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024896 close (fd);
24897
cristycd4c5312009-11-22 01:19:08 +000024898 /* Next, check that the tail of a page is zero-filled. File must have
24899 non-zero length, otherwise we risk SIGBUS for entire page. */
24900 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24901 if (fd2 < 0)
24902 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024903 cdata2 = "";
24904 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024905 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024906 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024907 if (data2 == MAP_FAILED)
24908 return 6;
24909 for (i = 0; i < pagesize; ++i)
24910 if (*(data2 + i))
24911 return 7;
24912 close (fd2);
24913 if (munmap (data2, pagesize))
24914 return 8;
24915
cristy3ed852e2009-09-05 21:47:34 +000024916 /* Next, try to mmap the file at a fixed address which already has
24917 something else allocated at it. If we can, also make sure that
24918 we see the same garbage. */
24919 fd = open ("conftest.mmap", O_RDWR);
24920 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024921 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024924 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024925 for (i = 0; i < pagesize; ++i)
24926 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024927 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024928
24929 /* Finally, make sure that changes to the mapped area do not
24930 percolate back to the file as seen by read(). (This is a bug on
24931 some variants of i386 svr4.0.) */
24932 for (i = 0; i < pagesize; ++i)
24933 *(data2 + i) = *(data2 + i) + 1;
24934 data3 = (char *) malloc (pagesize);
24935 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024936 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024937 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024938 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024939 for (i = 0; i < pagesize; ++i)
24940 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024941 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024942 close (fd);
24943 return 0;
24944}
24945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024946if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024947 ac_cv_func_mmap_fixed_mapped=yes
24948else
cristy8b350f62009-11-15 23:12:43 +000024949 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024950fi
cristy8b350f62009-11-15 23:12:43 +000024951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24952 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024953fi
24954
cristy3ed852e2009-09-05 21:47:34 +000024955fi
cristy8b350f62009-11-15 23:12:43 +000024956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024957$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24958if test $ac_cv_func_mmap_fixed_mapped = yes; then
24959
cristy8b350f62009-11-15 23:12:43 +000024960$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024961
24962fi
cristycd4c5312009-11-22 01:19:08 +000024963rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024964
cristy3ed852e2009-09-05 21:47:34 +000024965for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024966do :
24967 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024968if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024970#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024971_ACEOF
24972
24973fi
24974
24975done
24976
cristy3ed852e2009-09-05 21:47:34 +000024977for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024978do :
24979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 cat >>confdefs.h <<_ACEOF
24983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24984_ACEOF
24985
24986fi
24987done
24988
24989if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024991$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024992if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 $as_echo_n "(cached) " >&6
24994else
cristy8b350f62009-11-15 23:12:43 +000024995 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024996 ac_cv_func_fork_works=cross
24997else
cristy8b350f62009-11-15 23:12:43 +000024998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024999/* end confdefs.h. */
25000$ac_includes_default
25001int
25002main ()
25003{
25004
25005 /* By Ruediger Kuhlmann. */
25006 return fork () < 0;
25007
25008 ;
25009 return 0;
25010}
25011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025012if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025013 ac_cv_func_fork_works=yes
25014else
cristy8b350f62009-11-15 23:12:43 +000025015 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025016fi
cristy8b350f62009-11-15 23:12:43 +000025017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25018 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025019fi
25020
cristy3ed852e2009-09-05 21:47:34 +000025021fi
cristy8b350f62009-11-15 23:12:43 +000025022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025023$as_echo "$ac_cv_func_fork_works" >&6; }
25024
25025else
25026 ac_cv_func_fork_works=$ac_cv_func_fork
25027fi
25028if test "x$ac_cv_func_fork_works" = xcross; then
25029 case $host in
25030 *-*-amigaos* | *-*-msdosdjgpp*)
25031 # Override, as these systems have only a dummy fork() stub
25032 ac_cv_func_fork_works=no
25033 ;;
25034 *)
25035 ac_cv_func_fork_works=yes
25036 ;;
25037 esac
cristy8b350f62009-11-15 23:12:43 +000025038 { $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 +000025039$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25040fi
25041ac_cv_func_vfork_works=$ac_cv_func_vfork
25042if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025044$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025045if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025046 $as_echo_n "(cached) " >&6
25047else
cristy8b350f62009-11-15 23:12:43 +000025048 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025049 ac_cv_func_vfork_works=cross
25050else
cristy8b350f62009-11-15 23:12:43 +000025051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025052/* end confdefs.h. */
25053/* Thanks to Paul Eggert for this test. */
25054$ac_includes_default
25055#include <sys/wait.h>
25056#ifdef HAVE_VFORK_H
25057# include <vfork.h>
25058#endif
25059/* On some sparc systems, changes by the child to local and incoming
25060 argument registers are propagated back to the parent. The compiler
25061 is told about this with #include <vfork.h>, but some compilers
25062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25063 static variable whose address is put into a register that is
25064 clobbered by the vfork. */
25065static void
25066#ifdef __cplusplus
25067sparc_address_test (int arg)
25068# else
25069sparc_address_test (arg) int arg;
25070#endif
25071{
25072 static pid_t child;
25073 if (!child) {
25074 child = vfork ();
25075 if (child < 0) {
25076 perror ("vfork");
25077 _exit(2);
25078 }
25079 if (!child) {
25080 arg = getpid();
25081 write(-1, "", 0);
25082 _exit (arg);
25083 }
25084 }
25085}
25086
25087int
25088main ()
25089{
25090 pid_t parent = getpid ();
25091 pid_t child;
25092
25093 sparc_address_test (0);
25094
25095 child = vfork ();
25096
25097 if (child == 0) {
25098 /* Here is another test for sparc vfork register problems. This
25099 test uses lots of local variables, at least as many local
25100 variables as main has allocated so far including compiler
25101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25103 reuse the register of parent for one of the local variables,
25104 since it will think that parent can't possibly be used any more
25105 in this routine. Assigning to the local variable will thus
25106 munge parent in the parent process. */
25107 pid_t
25108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25110 /* Convince the compiler that p..p7 are live; otherwise, it might
25111 use the same hardware register for all 8 local variables. */
25112 if (p != p1 || p != p2 || p != p3 || p != p4
25113 || p != p5 || p != p6 || p != p7)
25114 _exit(1);
25115
25116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25117 from child file descriptors. If the child closes a descriptor
25118 before it execs or exits, this munges the parent's descriptor
25119 as well. Test for this by closing stdout in the child. */
25120 _exit(close(fileno(stdout)) != 0);
25121 } else {
25122 int status;
25123 struct stat st;
25124
25125 while (wait(&status) != child)
25126 ;
25127 return (
25128 /* Was there some problem with vforking? */
25129 child < 0
25130
25131 /* Did the child fail? (This shouldn't happen.) */
25132 || status
25133
25134 /* Did the vfork/compiler bug occur? */
25135 || parent != getpid()
25136
25137 /* Did the file descriptor bug occur? */
25138 || fstat(fileno(stdout), &st) != 0
25139 );
25140 }
25141}
25142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025143if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025144 ac_cv_func_vfork_works=yes
25145else
cristy8b350f62009-11-15 23:12:43 +000025146 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025147fi
cristy8b350f62009-11-15 23:12:43 +000025148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25149 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025150fi
25151
cristy3ed852e2009-09-05 21:47:34 +000025152fi
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo "$ac_cv_func_vfork_works" >&6; }
25155
25156fi;
25157if test "x$ac_cv_func_fork_works" = xcross; then
25158 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025159 { $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 +000025160$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25161fi
25162
25163if test "x$ac_cv_func_vfork_works" = xyes; then
25164
cristy8b350f62009-11-15 23:12:43 +000025165$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025166
25167else
25168
cristy8b350f62009-11-15 23:12:43 +000025169$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025170
25171fi
25172if test "x$ac_cv_func_fork_works" = xyes; then
25173
cristy8b350f62009-11-15 23:12:43 +000025174$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025175
25176fi
25177
cristy8b350f62009-11-15 23:12:43 +000025178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025180if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 $as_echo_n "(cached) " >&6
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025184 ac_cv_func_memcmp_working=no
25185else
cristy8b350f62009-11-15 23:12:43 +000025186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187/* end confdefs.h. */
25188$ac_includes_default
25189int
25190main ()
25191{
25192
25193 /* Some versions of memcmp are not 8-bit clean. */
25194 char c0 = '\100', c1 = '\200', c2 = '\201';
25195 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25196 return 1;
25197
25198 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25199 or more and with at least one buffer not starting on a 4-byte boundary.
25200 William Lewis provided this test program. */
25201 {
25202 char foo[21];
25203 char bar[21];
25204 int i;
25205 for (i = 0; i < 4; i++)
25206 {
25207 char *a = foo + i;
25208 char *b = bar + i;
25209 strcpy (a, "--------01111111");
25210 strcpy (b, "--------10000000");
25211 if (memcmp (a, b, 16) >= 0)
25212 return 1;
25213 }
25214 return 0;
25215 }
25216
25217 ;
25218 return 0;
25219}
25220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025221if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 ac_cv_func_memcmp_working=yes
25223else
cristy8b350f62009-11-15 23:12:43 +000025224 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025225fi
cristy8b350f62009-11-15 23:12:43 +000025226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25227 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025228fi
25229
cristy3ed852e2009-09-05 21:47:34 +000025230fi
cristy8b350f62009-11-15 23:12:43 +000025231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025232$as_echo "$ac_cv_func_memcmp_working" >&6; }
25233test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25234 *" memcmp.$ac_objext "* ) ;;
25235 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25236 ;;
25237esac
25238
25239
cristy3ed852e2009-09-05 21:47:34 +000025240for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025241do :
25242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25243ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025245 cat >>confdefs.h <<_ACEOF
25246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25247_ACEOF
25248
25249fi
25250
25251done
25252
cristy8b350f62009-11-15 23:12:43 +000025253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025254$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025255if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 $as_echo_n "(cached) " >&6
25257else
25258 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25259 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25260 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025262/* end confdefs.h. */
25263$ac_includes_default
25264#ifdef HAVE_SYS_SELECT_H
25265# include <sys/select.h>
25266#endif
25267#ifdef HAVE_SYS_SOCKET_H
25268# include <sys/socket.h>
25269#endif
25270
25271int
25272main ()
25273{
25274extern int select ($ac_arg1,
25275 $ac_arg234, $ac_arg234, $ac_arg234,
25276 $ac_arg5);
25277 ;
25278 return 0;
25279}
25280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025283fi
cristy3ed852e2009-09-05 21:47:34 +000025284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285 done
25286 done
25287done
25288# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025289: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025290
25291fi
cristy8b350f62009-11-15 23:12:43 +000025292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo "$ac_cv_func_select_args" >&6; }
25294ac_save_IFS=$IFS; IFS=','
25295set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25296IFS=$ac_save_IFS
25297shift
25298
25299cat >>confdefs.h <<_ACEOF
25300#define SELECT_TYPE_ARG1 $1
25301_ACEOF
25302
25303
25304cat >>confdefs.h <<_ACEOF
25305#define SELECT_TYPE_ARG234 ($2)
25306_ACEOF
25307
25308
25309cat >>confdefs.h <<_ACEOF
25310#define SELECT_TYPE_ARG5 ($3)
25311_ACEOF
25312
25313rm -f conftest*
25314
cristyda16f162011-02-19 23:52:17 +000025315if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025316 $as_echo_n "(cached) " >&6
25317else
25318 ac_cv_func_setvbuf_reversed=no
25319fi
25320
25321
cristy8b350f62009-11-15 23:12:43 +000025322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025323$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025324if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025325 $as_echo_n "(cached) " >&6
25326else
cristy8b350f62009-11-15 23:12:43 +000025327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025328/* end confdefs.h. */
25329#include <sys/types.h>
25330#include <signal.h>
25331
25332int
25333main ()
25334{
25335return *(signal (0, 0)) (0) == 1;
25336 ;
25337 return 0;
25338}
25339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025340if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 ac_cv_type_signal=int
25342else
cristy8b350f62009-11-15 23:12:43 +000025343 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025344fi
cristy3ed852e2009-09-05 21:47:34 +000025345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346fi
cristy8b350f62009-11-15 23:12:43 +000025347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025348$as_echo "$ac_cv_type_signal" >&6; }
25349
25350cat >>confdefs.h <<_ACEOF
25351#define RETSIGTYPE $ac_cv_type_signal
25352_ACEOF
25353
25354
cristy8b350f62009-11-15 23:12:43 +000025355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025357if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025358 $as_echo_n "(cached) " >&6
25359else
cristy8b350f62009-11-15 23:12:43 +000025360 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 ac_cv_func_strtod=no
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364/* end confdefs.h. */
25365
25366$ac_includes_default
25367#ifndef strtod
25368double strtod ();
25369#endif
25370int
25371main()
25372{
25373 {
25374 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25375 char *string = " +69";
25376 char *term;
25377 double value;
25378 value = strtod (string, &term);
25379 if (value != 69 || term != (string + 4))
25380 return 1;
25381 }
25382
25383 {
25384 /* Under Solaris 2.4, strtod returns the wrong value for the
25385 terminating character under some conditions. */
25386 char *string = "NaN";
25387 char *term;
25388 strtod (string, &term);
25389 if (term != string && *(term - 1) == 0)
25390 return 1;
25391 }
25392 return 0;
25393}
25394
25395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025396if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025397 ac_cv_func_strtod=yes
25398else
cristy8b350f62009-11-15 23:12:43 +000025399 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025400fi
cristy8b350f62009-11-15 23:12:43 +000025401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25402 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025403fi
25404
cristy3ed852e2009-09-05 21:47:34 +000025405fi
cristy8b350f62009-11-15 23:12:43 +000025406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo "$ac_cv_func_strtod" >&6; }
25408if test $ac_cv_func_strtod = no; then
25409 case " $LIBOBJS " in
25410 *" strtod.$ac_objext "* ) ;;
25411 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25412 ;;
25413esac
25414
cristy8b350f62009-11-15 23:12:43 +000025415ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025416if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025417
cristy3ed852e2009-09-05 21:47:34 +000025418fi
25419
cristy3ed852e2009-09-05 21:47:34 +000025420if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025422$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025423if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025424 $as_echo_n "(cached) " >&6
25425else
25426 ac_check_lib_save_LIBS=$LIBS
25427LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025429/* end confdefs.h. */
25430
25431/* Override any GCC internal prototype to avoid an error.
25432 Use char because int might match the return type of a GCC
25433 builtin and then its argument prototype would still apply. */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437char pow ();
25438int
25439main ()
25440{
25441return pow ();
25442 ;
25443 return 0;
25444}
25445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025447 ac_cv_lib_m_pow=yes
25448else
cristy8b350f62009-11-15 23:12:43 +000025449 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025450fi
cristy8b350f62009-11-15 23:12:43 +000025451rm -f core conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025453LIBS=$ac_check_lib_save_LIBS
25454fi
cristy8b350f62009-11-15 23:12:43 +000025455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025456$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025457if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025458 POW_LIB=-lm
25459else
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25462fi
25463
25464fi
25465
25466fi
25467
cristy7d4a1d62011-10-13 15:54:12 +000025468ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25469if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25470 ac_have_decl=1
25471else
25472 ac_have_decl=0
25473fi
25474
25475cat >>confdefs.h <<_ACEOF
25476#define HAVE_DECL_STRERROR_R $ac_have_decl
25477_ACEOF
25478
25479for ac_func in strerror_r
25480do :
25481 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25482if test "x$ac_cv_func_strerror_r" = xyes; then :
25483 cat >>confdefs.h <<_ACEOF
25484#define HAVE_STRERROR_R 1
25485_ACEOF
25486
25487fi
25488done
25489
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25491$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25492if ${ac_cv_func_strerror_r_char_p+:} false; then :
25493 $as_echo_n "(cached) " >&6
25494else
25495
25496 ac_cv_func_strerror_r_char_p=no
25497 if test $ac_cv_have_decl_strerror_r = yes; then
25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499/* end confdefs.h. */
25500$ac_includes_default
25501int
25502main ()
25503{
25504
25505 char buf[100];
25506 char x = *strerror_r (0, buf, sizeof buf);
25507 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025508 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025509
25510 ;
25511 return 0;
25512}
25513_ACEOF
25514if ac_fn_c_try_compile "$LINENO"; then :
25515 ac_cv_func_strerror_r_char_p=yes
25516fi
25517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518 else
25519 # strerror_r is not declared. Choose between
25520 # systems that have relatively inaccessible declarations for the
25521 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25522 # former has a strerror_r that returns char*, while the latter
25523 # has a strerror_r that returns `int'.
25524 # This test should segfault on the DEC system.
25525 if test "$cross_compiling" = yes; then :
25526 :
25527else
25528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529/* end confdefs.h. */
25530$ac_includes_default
25531 extern char *strerror_r ();
25532int
25533main ()
25534{
25535char buf[100];
25536 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025537 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025538 ;
25539 return 0;
25540}
25541_ACEOF
25542if ac_fn_c_try_run "$LINENO"; then :
25543 ac_cv_func_strerror_r_char_p=yes
25544fi
25545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25546 conftest.$ac_objext conftest.beam conftest.$ac_ext
25547fi
25548
25549 fi
25550
25551fi
25552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25553$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25554if test $ac_cv_func_strerror_r_char_p = yes; then
25555
25556$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25557
25558fi
25559
cristy3ed852e2009-09-05 21:47:34 +000025560for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025561do :
25562 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025563if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025564 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025565#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025566_ACEOF
25567
cristy8b350f62009-11-15 23:12:43 +000025568ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025569if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025570
cristy8b350f62009-11-15 23:12:43 +000025571$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025572
25573fi
25574
25575fi
25576done
25577
25578
25579
cristy161b9262010-03-20 19:34:32 +000025580#
25581# Find math library
25582#
25583MATH_LIBS=''
25584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25585$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025586if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025587 $as_echo_n "(cached) " >&6
25588else
25589 ac_check_lib_save_LIBS=$LIBS
25590LIBS="-lm $LIBS"
25591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592/* end confdefs.h. */
25593
25594/* Override any GCC internal prototype to avoid an error.
25595 Use char because int might match the return type of a GCC
25596 builtin and then its argument prototype would still apply. */
25597#ifdef __cplusplus
25598extern "C"
25599#endif
25600char sqrt ();
25601int
25602main ()
25603{
25604return sqrt ();
25605 ;
25606 return 0;
25607}
25608_ACEOF
25609if ac_fn_c_try_link "$LINENO"; then :
25610 ac_cv_lib_m_sqrt=yes
25611else
25612 ac_cv_lib_m_sqrt=no
25613fi
25614rm -f core conftest.err conftest.$ac_objext \
25615 conftest$ac_exeext conftest.$ac_ext
25616LIBS=$ac_check_lib_save_LIBS
25617fi
25618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25619$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025620if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025621 MATH_LIBS="-lm"
25622fi
25623
25624LIBS="$MATH_LIBS $LIBS"
25625
25626
cristy568c2d42012-07-27 01:41:20 +000025627for 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 +000025628do :
25629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 cat >>confdefs.h <<_ACEOF
25633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25634_ACEOF
25635
25636fi
25637done
25638
25639
cristye43a45e2009-09-28 14:49:00 +000025640#
25641# Check for clock_gettime().
25642#
cristy8b350f62009-11-15 23:12:43 +000025643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025644$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025645if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025646 $as_echo_n "(cached) " >&6
25647else
25648 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025650/* end confdefs.h. */
25651
25652/* Override any GCC internal prototype to avoid an error.
25653 Use char because int might match the return type of a GCC
25654 builtin and then its argument prototype would still apply. */
25655#ifdef __cplusplus
25656extern "C"
25657#endif
25658char clock_gettime ();
25659int
25660main ()
25661{
25662return clock_gettime ();
25663 ;
25664 return 0;
25665}
25666_ACEOF
25667for ac_lib in '' rt; do
25668 if test -z "$ac_lib"; then
25669 ac_res="none required"
25670 else
25671 ac_res=-l$ac_lib
25672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25673 fi
cristy8b350f62009-11-15 23:12:43 +000025674 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025675 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025676fi
cristy8b350f62009-11-15 23:12:43 +000025677rm -f core conftest.err conftest.$ac_objext \
25678 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025679 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025680 break
25681fi
25682done
cristyda16f162011-02-19 23:52:17 +000025683if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025684
cristye43a45e2009-09-28 14:49:00 +000025685else
25686 ac_cv_search_clock_gettime=no
25687fi
25688rm conftest.$ac_ext
25689LIBS=$ac_func_search_save_LIBS
25690fi
cristy8b350f62009-11-15 23:12:43 +000025691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025692$as_echo "$ac_cv_search_clock_gettime" >&6; }
25693ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025694if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25696
25697
cristy8b350f62009-11-15 23:12:43 +000025698$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025699
cristy8b350f62009-11-15 23:12:43 +000025700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025701$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025703/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025704
25705 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025706int
25707main ()
25708{
25709clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025710 ;
25711 return 0;
25712}
25713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025714if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025715
cristy09b53e12011-10-14 12:47:22 +000025716 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25717$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025718
cristy8b350f62009-11-15 23:12:43 +000025719$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025720
25721
25722else
cristy09b53e12011-10-14 12:47:22 +000025723 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25724$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025725
25726fi
cristye43a45e2009-09-28 14:49:00 +000025727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728
25729else
25730
cristy8b350f62009-11-15 23:12:43 +000025731 for ac_func in gettimeofday ftime
25732do :
25733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25734ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025735if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025736 cat >>confdefs.h <<_ACEOF
25737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25738_ACEOF
25739 break
25740fi
25741done
25742
25743
25744
25745fi
25746
25747
cristy3ed852e2009-09-05 21:47:34 +000025748########
25749#
25750# Check for function prototypes
25751#
25752########
25753
cristy8b350f62009-11-15 23:12:43 +000025754ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025755#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025756"
cristyda16f162011-02-19 23:52:17 +000025757if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025758 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025759else
cristy8b350f62009-11-15 23:12:43 +000025760 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025761fi
25762
cristy3ed852e2009-09-05 21:47:34 +000025763cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025764#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025766ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025767#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025768"
cristyda16f162011-02-19 23:52:17 +000025769if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025770 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025771else
cristy8b350f62009-11-15 23:12:43 +000025772 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025773fi
25774
cristy3ed852e2009-09-05 21:47:34 +000025775cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025776#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025777_ACEOF
25778
25779
cristy8b350f62009-11-15 23:12:43 +000025780ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025781#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025782"
cristyda16f162011-02-19 23:52:17 +000025783if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025784 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025785else
cristy8b350f62009-11-15 23:12:43 +000025786 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025787fi
25788
cristy3ed852e2009-09-05 21:47:34 +000025789cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025790#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025791_ACEOF
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025795#include <stdio.h>
25796#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025797"
cristyda16f162011-02-19 23:52:17 +000025798if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025799 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025800else
cristy8b350f62009-11-15 23:12:43 +000025801 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025802fi
25803
cristy3ed852e2009-09-05 21:47:34 +000025804cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025805#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025806_ACEOF
25807
25808
cristy3ed852e2009-09-05 21:47:34 +000025809########
25810#
25811# C++ Support Tests (For Magick++)
25812#
25813########
25814have_magick_plus_plus='no'
25815if test "$with_magick_plus_plus" = 'yes'; then
25816 OLIBS="$LIBS"
25817 LIBS=''
25818 ac_ext=cpp
25819ac_cpp='$CXXCPP $CPPFLAGS'
25820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25823
25824
25825 # Full set of headers used...
25826 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25827 # functional iomanip iosfwd iostream iterator list string strstream utility
25828 ac_ext=cpp
25829ac_cpp='$CXXCPP $CPPFLAGS'
25830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25833
25834 ac_ext=cpp
25835ac_cpp='$CXXCPP $CPPFLAGS'
25836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25839if test -z "$CXX"; then
25840 if test -n "$CCC"; then
25841 CXX=$CCC
25842 else
25843 if test -n "$ac_tool_prefix"; then
25844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25845 do
25846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025850if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025851 $as_echo_n "(cached) " >&6
25852else
25853 if test -n "$CXX"; then
25854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25855else
25856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25857for as_dir in $PATH
25858do
25859 IFS=$as_save_IFS
25860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025865 break 2
25866 fi
25867done
cristy8b350f62009-11-15 23:12:43 +000025868 done
cristy3ed852e2009-09-05 21:47:34 +000025869IFS=$as_save_IFS
25870
25871fi
25872fi
25873CXX=$ac_cv_prog_CXX
25874if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo "$CXX" >&6; }
25877else
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "no" >&6; }
25880fi
25881
25882
25883 test -n "$CXX" && break
25884 done
25885fi
25886if test -z "$CXX"; then
25887 ac_ct_CXX=$CXX
25888 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25889do
25890 # Extract the first word of "$ac_prog", so it can be a program name with args.
25891set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025894if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025895 $as_echo_n "(cached) " >&6
25896else
25897 if test -n "$ac_ct_CXX"; then
25898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25899else
25900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25901for as_dir in $PATH
25902do
25903 IFS=$as_save_IFS
25904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025907 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909 break 2
25910 fi
25911done
cristy8b350f62009-11-15 23:12:43 +000025912 done
cristy3ed852e2009-09-05 21:47:34 +000025913IFS=$as_save_IFS
25914
25915fi
25916fi
25917ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25918if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo "$ac_ct_CXX" >&6; }
25921else
cristy8b350f62009-11-15 23:12:43 +000025922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923$as_echo "no" >&6; }
25924fi
25925
25926
25927 test -n "$ac_ct_CXX" && break
25928done
25929
25930 if test "x$ac_ct_CXX" = x; then
25931 CXX="g++"
25932 else
25933 case $cross_compiling:$ac_tool_warned in
25934yes:)
cristy8b350f62009-11-15 23:12:43 +000025935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25937ac_tool_warned=yes ;;
25938esac
25939 CXX=$ac_ct_CXX
25940 fi
25941fi
25942
25943 fi
25944fi
25945# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025947set X $ac_compile
25948ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025949for ac_option in --version -v -V -qversion; do
25950 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025951case "(($ac_try" in
25952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953 *) ac_try_echo=$ac_try;;
25954esac
cristy8b350f62009-11-15 23:12:43 +000025955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25956$as_echo "$ac_try_echo"; } >&5
25957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025958 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025959 if test -s conftest.err; then
25960 sed '10a\
25961... rest of stderr output deleted ...
25962 10q' conftest.err >conftest.er1
25963 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025964 fi
cristycd4c5312009-11-22 01:19:08 +000025965 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }
25968done
cristy3ed852e2009-09-05 21:47:34 +000025969
cristy8b350f62009-11-15 23:12:43 +000025970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025972if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025973 $as_echo_n "(cached) " >&6
25974else
cristy8b350f62009-11-15 23:12:43 +000025975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978int
25979main ()
25980{
25981#ifndef __GNUC__
25982 choke me
25983#endif
25984
25985 ;
25986 return 0;
25987}
25988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025989if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025990 ac_compiler_gnu=yes
25991else
cristy8b350f62009-11-15 23:12:43 +000025992 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025993fi
cristy3ed852e2009-09-05 21:47:34 +000025994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25996
25997fi
cristy8b350f62009-11-15 23:12:43 +000025998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26000if test $ac_compiler_gnu = yes; then
26001 GXX=yes
26002else
26003 GXX=
26004fi
26005ac_test_CXXFLAGS=${CXXFLAGS+set}
26006ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026009if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 $as_echo_n "(cached) " >&6
26011else
26012 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26013 ac_cxx_werror_flag=yes
26014 ac_cv_prog_cxx_g=no
26015 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026017/* end confdefs.h. */
26018
26019int
26020main ()
26021{
26022
26023 ;
26024 return 0;
26025}
26026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026027if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 ac_cv_prog_cxx_g=yes
26029else
cristy8b350f62009-11-15 23:12:43 +000026030 CXXFLAGS=""
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032/* end confdefs.h. */
26033
26034int
26035main ()
26036{
26037
26038 ;
26039 return 0;
26040}
26041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026042if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026043
cristy8b350f62009-11-15 23:12:43 +000026044else
26045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026046 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048/* end confdefs.h. */
26049
26050int
26051main ()
26052{
26053
26054 ;
26055 return 0;
26056}
26057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026058if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026060fi
cristy3ed852e2009-09-05 21:47:34 +000026061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062fi
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
26066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26067fi
cristy8b350f62009-11-15 23:12:43 +000026068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026069$as_echo "$ac_cv_prog_cxx_g" >&6; }
26070if test "$ac_test_CXXFLAGS" = set; then
26071 CXXFLAGS=$ac_save_CXXFLAGS
26072elif test $ac_cv_prog_cxx_g = yes; then
26073 if test "$GXX" = yes; then
26074 CXXFLAGS="-g -O2"
26075 else
26076 CXXFLAGS="-g"
26077 fi
26078else
26079 if test "$GXX" = yes; then
26080 CXXFLAGS="-O2"
26081 else
26082 CXXFLAGS=
26083 fi
26084fi
26085ac_ext=cpp
26086ac_cpp='$CXXCPP $CPPFLAGS'
26087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26090
cristy73bd4a52010-10-05 11:24:23 +000026091depcc="$CXX" am_compiler_list=
26092
26093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26094$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026095if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026096 $as_echo_n "(cached) " >&6
26097else
26098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26099 # We make a subdir and do the tests there. Otherwise we can end up
26100 # making bogus files that we don't know about and never remove. For
26101 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026102 # making a dummy file named 'D' -- because '-MD' means "put the output
26103 # in D".
cristy7247bba2012-02-05 16:37:27 +000026104 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026105 mkdir conftest.dir
26106 # Copy depcomp to subdir because otherwise we won't find it if we're
26107 # using a relative directory.
26108 cp "$am_depcomp" conftest.dir
26109 cd conftest.dir
26110 # We will build objects and dependencies in a subdirectory because
26111 # it helps to detect inapplicable dependency modes. For instance
26112 # both Tru64's cc and ICC support -MD to output dependencies as a
26113 # side effect of compilation, but ICC will put the dependencies in
26114 # the current directory while Tru64 will put them in the object
26115 # directory.
26116 mkdir sub
26117
26118 am_cv_CXX_dependencies_compiler_type=none
26119 if test "$am_compiler_list" = ""; then
26120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26121 fi
26122 am__universal=false
26123 case " $depcc " in #(
26124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26125 esac
26126
26127 for depmode in $am_compiler_list; do
26128 # Setup a source with many dependencies, because some compilers
26129 # like to wrap large dependency lists on column 80 (with \), and
26130 # we should not choose a depcomp mode which is confused by this.
26131 #
26132 # We need to recreate these files for each test, as the compiler may
26133 # overwrite some of them when testing with obscure command lines.
26134 # This happens at least with the AIX C compiler.
26135 : > sub/conftest.c
26136 for i in 1 2 3 4 5 6; do
26137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026138 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26139 # Solaris 10 /bin/sh.
26140 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026141 done
26142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26143
cristyc0890a62012-07-19 00:18:20 +000026144 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026145 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026146 # handle '-M -o', and we need to detect this. Also, some Intel
26147 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026148 am__obj=sub/conftest.${OBJEXT-o}
26149 am__minus_obj="-o $am__obj"
26150 case $depmode in
26151 gcc)
26152 # This depmode causes a compiler race in universal mode.
26153 test "$am__universal" = false || continue
26154 ;;
26155 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026156 # After this tag, mechanisms are not by side-effect, so they'll
26157 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026158 if test "x$enable_dependency_tracking" = xyes; then
26159 continue
26160 else
26161 break
26162 fi
26163 ;;
cristy7247bba2012-02-05 16:37:27 +000026164 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026165 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026166 # not run yet. These depmodes are late enough in the game, and
26167 # so weak that their functioning should not be impacted.
26168 am__obj=conftest.${OBJEXT-o}
26169 am__minus_obj=
26170 ;;
26171 none) break ;;
26172 esac
26173 if depmode=$depmode \
26174 source=sub/conftest.c object=$am__obj \
26175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26177 >/dev/null 2>conftest.err &&
26178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26182 # icc doesn't choke on unknown options, it will just issue warnings
26183 # or remarks (even with -Werror). So we grep stderr for any message
26184 # that says an option was ignored or not supported.
26185 # When given -MP, icc 7.0 and 7.1 complain thusly:
26186 # icc: Command line warning: ignoring option '-M'; no argument required
26187 # The diagnosis changed in icc 8.0:
26188 # icc: Command line remark: option '-MP' not supported
26189 if (grep 'ignoring option' conftest.err ||
26190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26191 am_cv_CXX_dependencies_compiler_type=$depmode
26192 break
26193 fi
26194 fi
26195 done
26196
26197 cd ..
26198 rm -rf conftest.dir
26199else
26200 am_cv_CXX_dependencies_compiler_type=none
26201fi
26202
26203fi
26204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26205$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26206CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26207
26208 if
26209 test "x$enable_dependency_tracking" != xno \
26210 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26211 am__fastdepCXX_TRUE=
26212 am__fastdepCXX_FALSE='#'
26213else
26214 am__fastdepCXX_TRUE='#'
26215 am__fastdepCXX_FALSE=
26216fi
26217
26218
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26220$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026221if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026222 $as_echo_n "(cached) " >&6
26223else
26224
26225 ac_ext=cpp
26226ac_cpp='$CXXCPP $CPPFLAGS'
26227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26230
26231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232/* end confdefs.h. */
26233
26234int f(int x){return 1;}
26235int f(char x){return 1;}
26236int f(bool x){return 1;}
26237
26238int
26239main ()
26240{
26241bool b = true; return f(b);
26242 ;
26243 return 0;
26244}
26245_ACEOF
26246if ac_fn_cxx_try_compile "$LINENO"; then :
26247 ax_cv_cxx_bool=yes
26248else
26249 ax_cv_cxx_bool=no
26250fi
26251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 ac_ext=cpp
26253ac_cpp='$CXXCPP $CPPFLAGS'
26254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26257
26258
26259fi
26260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26261$as_echo "$ax_cv_cxx_bool" >&6; }
26262if test "$ax_cv_cxx_bool" = yes; then
26263
26264$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26265
26266fi
26267
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26269$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026270if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026271 $as_echo_n "(cached) " >&6
26272else
26273
26274 ac_ext=cpp
26275ac_cpp='$CXXCPP $CPPFLAGS'
26276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26279
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281/* end confdefs.h. */
26282namespace Outer { namespace Inner { int i = 0; }}
26283int
26284main ()
26285{
26286using namespace Outer::Inner; return i;
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291if ac_fn_cxx_try_compile "$LINENO"; then :
26292 ax_cv_cxx_namespaces=yes
26293else
26294 ax_cv_cxx_namespaces=no
26295fi
26296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 ac_ext=cpp
26298ac_cpp='$CXXCPP $CPPFLAGS'
26299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26302
26303
26304fi
26305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26306$as_echo "$ax_cv_cxx_namespaces" >&6; }
26307if test "$ax_cv_cxx_namespaces" = yes; then
26308
26309$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26310
26311fi
26312
26313
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26315$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026317 $as_echo_n "(cached) " >&6
26318else
26319
26320 ac_ext=cpp
26321ac_cpp='$CXXCPP $CPPFLAGS'
26322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26325
26326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327/* end confdefs.h. */
26328#include <iostream>
26329 std::istream& is = std::cin;
26330int
26331main ()
26332{
26333
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338if ac_fn_cxx_try_compile "$LINENO"; then :
26339 ax_cv_cxx_have_std_namespace=yes
26340else
26341 ax_cv_cxx_have_std_namespace=no
26342fi
26343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 ac_ext=cpp
26345ac_cpp='$CXXCPP $CPPFLAGS'
26346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26349
26350
26351fi
26352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26353$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26354 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26355
26356$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26357
26358 fi
26359
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26361$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026363 $as_echo_n "(cached) " >&6
26364else
26365
26366
26367 ac_ext=cpp
26368ac_cpp='$CXXCPP $CPPFLAGS'
26369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26372
26373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26374/* end confdefs.h. */
26375#include <iostream>
26376#include <map>
26377#include <iomanip>
26378#include <cmath>
26379#ifdef HAVE_NAMESPACES
26380using namespace std;
26381#endif
26382int
26383main ()
26384{
26385return 0;
26386 ;
26387 return 0;
26388}
26389_ACEOF
26390if ac_fn_cxx_try_compile "$LINENO"; then :
26391 ac_cv_cxx_have_std_libs=yes
26392else
26393 ac_cv_cxx_have_std_libs=no
26394fi
26395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396 ac_ext=cpp
26397ac_cpp='$CXXCPP $CPPFLAGS'
26398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26401
26402
26403fi
26404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26405$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26406if test "$ac_cv_cxx_have_std_libs" = yes; then
26407
26408$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26409
26410fi
26411
cristy3ed852e2009-09-05 21:47:34 +000026412
26413 OPENMP_CXXFLAGS=
26414 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026415if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 enableval=$enable_openmp;
26417fi
26418
26419 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26421$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026422if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 $as_echo_n "(cached) " >&6
26424else
cristy8b350f62009-11-15 23:12:43 +000026425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26426/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026427
26428#ifndef _OPENMP
26429 choke me
26430#endif
26431#include <omp.h>
26432int main () { return omp_get_num_threads (); }
26433
26434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026435if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 ac_cv_prog_cxx_openmp='none needed'
26437else
cristy8b350f62009-11-15 23:12:43 +000026438 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026439 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26440 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026441 ac_save_CXXFLAGS=$CXXFLAGS
26442 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026445
26446#ifndef _OPENMP
26447 choke me
26448#endif
26449#include <omp.h>
26450int main () { return omp_get_num_threads (); }
26451
26452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026453if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026454 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026455fi
cristy8b350f62009-11-15 23:12:43 +000026456rm -f core conftest.err conftest.$ac_objext \
26457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026458 CXXFLAGS=$ac_save_CXXFLAGS
26459 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26460 break
26461 fi
26462 done
26463fi
cristy8b350f62009-11-15 23:12:43 +000026464rm -f core conftest.err conftest.$ac_objext \
26465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026466fi
cristy8b350f62009-11-15 23:12:43 +000026467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26469 case $ac_cv_prog_cxx_openmp in #(
26470 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026471 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026472 *)
cristy8b350f62009-11-15 23:12:43 +000026473 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026474 esac
26475 fi
26476
26477
26478 ac_ext=c
26479ac_cpp='$CPP $CPPFLAGS'
26480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26482ac_compiler_gnu=$ac_cv_c_compiler_gnu
26483
26484
cristy8b350f62009-11-15 23:12:43 +000026485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26487 if \
cristy964cb7f2010-04-25 23:18:00 +000026488 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026489 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026490 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026491 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026492 have_magick_plus_plus='yes'
26493 else
26494 have_magick_plus_plus='no (failed tests)'
26495 fi
cristy09b53e12011-10-14 12:47:22 +000026496 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26497$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026498 LIBS="$OLIBS"
26499fi
cristy73bd4a52010-10-05 11:24:23 +000026500 if test "$have_magick_plus_plus" = 'yes'; then
26501 WITH_MAGICK_PLUS_PLUS_TRUE=
26502 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26503else
26504 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26505 WITH_MAGICK_PLUS_PLUS_FALSE=
26506fi
26507
cristy3ed852e2009-09-05 21:47:34 +000026508
26509# Only check for delegate libraries in subdirectories if requested.
26510if test "$enable_delegate_build" != 'no'; then
26511 # Check for delegate sub-directories and add -I & -L options as required.
26512 # This presumes that delegates are installed as detailed in the ImageMagick
26513 # README. If delegates are installed in a standard location where the
26514 # compiler will automatically find them then these options should not be
26515 # required.
26516
26517 #
26518 # Most delegates have includes in the same directory as the library, but not all...
26519 #
26520 # Includes
cristy2542fc62011-12-06 17:50:25 +000026521 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 +000026522 if test -d "$builddir/$dir"; then
26523 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26524 else
26525 if test -d "$srcdirfull/$dir"; then
26526 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26527 fi
26528 fi
26529 done
26530
26531 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026532 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 +000026533 if test -d "$builddir/$dir/.libs"; then
26534 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26535 else
26536 if test -d "$srcdirfull/$dir/.libs"; then
26537 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26538 fi
26539 fi
26540 if test -d "$builddir/$dir"; then
26541 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26542 else
26543 if test -d "$srcdirfull/$dir"; then
26544 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26545 fi
26546 fi
26547 done
26548fi
26549
26550# Assume that delegate headers reside under same directory as ImageMagick
26551# installation prefix.
26552MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26553
26554#
26555# Find the X11 RGB database
26556#
cristy8b350f62009-11-15 23:12:43 +000026557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026558$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026559if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 $as_echo_n "(cached) " >&6
26561else
26562 # Look for the header file in a standard set of common directories.
26563# Check X11 before X11Rn because it is often a symlink to the current release.
26564 for ac_dir in \
26565 /lib/usr/lib/X11 \
26566 /usr/X11/lib \
26567 /usr/X11R4/lib \
26568 /usr/X11R5/lib \
26569 /usr/X11R6/lib \
26570 /usr/X11R7/lib \
26571 /usr/X386/lib \
26572 /usr/XFree86/lib/X11 \
26573 /usr/athena/lib \
26574 /usr/lib \
26575 /usr/lib/X11 \
26576 /usr/lib/X11R4 \
26577 /usr/lib/X11R5 \
26578 /usr/lib/X11R6 \
26579 /usr/lib/X11R7 \
26580 /usr/local/X11/lib \
26581 /usr/local/X11R4/lib \
26582 /usr/local/X11R5/lib \
26583 /usr/local/X11R6/lib \
26584 /usr/local/lib \
26585 /usr/local/lib/X11 \
26586 /usr/local/lib/X11R4 \
26587 /usr/local/lib/X11R5 \
26588 /usr/local/lib/X11R6 \
26589 /usr/local/lib/X11R7 \
26590 /usr/local/x11r5/lib \
26591 /usr/lpp/Xamples/lib \
26592 /usr/openwin/lib \
26593 /usr/openwin/share/lib \
26594 /usr/unsupported/lib \
26595 /usr/x386/lib \
26596 ; do
26597 if test -f "$ac_dir/X11/rgb.txt"; then
26598 im_cv_x_configure="$ac_dir/X11/"
26599 break
26600 elif test -f "$ac_dir/rgb.txt"; then
26601 im_cv_x_configure="$ac_dir/"
26602 break
26603 fi
26604
26605 done
26606fi
cristy8b350f62009-11-15 23:12:43 +000026607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026608$as_echo "$im_cv_x_configure" >&6; }
26609X11_CONFIGURE_PATH="$im_cv_x_configure"
26610case "${build_os}" in
26611 mingw* )
26612 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26613 ;;
26614esac
26615
26616cat >>confdefs.h <<_ACEOF
26617#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26618_ACEOF
26619
26620
26621#
26622# Find OpenMP library
26623#
26624GOMP_LIBS=''
26625if test "$enable_openmp" != 'no'; then
26626 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026627 # Open64 (passes for GCC but uses different OpenMP implementation)
26628 if test "x$GOMP_LIBS" = x ; then
26629 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26631$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26632if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26633 $as_echo_n "(cached) " >&6
26634else
26635 ac_check_lib_save_LIBS=$LIBS
26636LIBS="-lopenmp $LIBS"
26637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638/* end confdefs.h. */
26639
26640/* Override any GCC internal prototype to avoid an error.
26641 Use char because int might match the return type of a GCC
26642 builtin and then its argument prototype would still apply. */
26643#ifdef __cplusplus
26644extern "C"
26645#endif
26646char omp_get_num_procs ();
26647int
26648main ()
26649{
26650return omp_get_num_procs ();
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655if ac_fn_c_try_link "$LINENO"; then :
26656 ac_cv_lib_openmp_omp_get_num_procs=yes
26657else
26658 ac_cv_lib_openmp_omp_get_num_procs=no
26659fi
26660rm -f core conftest.err conftest.$ac_objext \
26661 conftest$ac_exeext conftest.$ac_ext
26662LIBS=$ac_check_lib_save_LIBS
26663fi
26664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26665$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26666if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26667 GOMP_LIBS="-lopenmp"
26668fi
26669
26670 fi
26671 fi
26672 # GCC
26673 if test "x$GOMP_LIBS" = x ; then
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026675$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026676if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026677 $as_echo_n "(cached) " >&6
26678else
26679 ac_check_lib_save_LIBS=$LIBS
26680LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026682/* end confdefs.h. */
26683
26684/* Override any GCC internal prototype to avoid an error.
26685 Use char because int might match the return type of a GCC
26686 builtin and then its argument prototype would still apply. */
26687#ifdef __cplusplus
26688extern "C"
26689#endif
26690char GOMP_parallel_start ();
26691int
26692main ()
26693{
26694return GOMP_parallel_start ();
26695 ;
26696 return 0;
26697}
26698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026699if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026700 ac_cv_lib_gomp_GOMP_parallel_start=yes
26701else
cristy8b350f62009-11-15 23:12:43 +000026702 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026703fi
cristy8b350f62009-11-15 23:12:43 +000026704rm -f core conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706LIBS=$ac_check_lib_save_LIBS
26707fi
cristy8b350f62009-11-15 23:12:43 +000026708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026710if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026711 GOMP_LIBS="-lgomp"
26712fi
cristy18307f12011-12-30 01:20:16 +000026713
26714 fi
cristy3ed852e2009-09-05 21:47:34 +000026715 else
cristy18307f12011-12-30 01:20:16 +000026716 # Sun CC
26717 if test "x$GOMP_LIBS" = x ; then
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026719$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026720if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 $as_echo_n "(cached) " >&6
26722else
26723 ac_check_lib_save_LIBS=$LIBS
26724LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026726/* end confdefs.h. */
26727
26728/* Override any GCC internal prototype to avoid an error.
26729 Use char because int might match the return type of a GCC
26730 builtin and then its argument prototype would still apply. */
26731#ifdef __cplusplus
26732extern "C"
26733#endif
26734char sunw_mp_register_warn ();
26735int
26736main ()
26737{
26738return sunw_mp_register_warn ();
26739 ;
26740 return 0;
26741}
26742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026744 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26745else
cristy8b350f62009-11-15 23:12:43 +000026746 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026747fi
cristy8b350f62009-11-15 23:12:43 +000026748rm -f core conftest.err conftest.$ac_objext \
26749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026750LIBS=$ac_check_lib_save_LIBS
26751fi
cristy8b350f62009-11-15 23:12:43 +000026752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026753$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026754if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026755 GOMP_LIBS="-lmtsk"
26756fi
cristy18307f12011-12-30 01:20:16 +000026757
26758 fi
26759 # AIX xlc
26760 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026763if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026764 $as_echo_n "(cached) " >&6
26765else
26766 ac_check_lib_save_LIBS=$LIBS
26767LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026769/* end confdefs.h. */
26770
26771/* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
26774#ifdef __cplusplus
26775extern "C"
26776#endif
26777char _xlsmpFlush ();
26778int
26779main ()
26780{
26781return _xlsmpFlush ();
26782 ;
26783 return 0;
26784}
26785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026787 ac_cv_lib_xlsmp__xlsmpFlush=yes
26788else
cristy8b350f62009-11-15 23:12:43 +000026789 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026790fi
cristy8b350f62009-11-15 23:12:43 +000026791rm -f core conftest.err conftest.$ac_objext \
26792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026793LIBS=$ac_check_lib_save_LIBS
26794fi
cristy8b350f62009-11-15 23:12:43 +000026795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026796$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026797if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 GOMP_LIBS="-lxlsmp"
26799fi
cristy18307f12011-12-30 01:20:16 +000026800
26801 fi
26802 # SGI IRIX 6.5 MIPSpro C/C++
26803 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026806if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026807 $as_echo_n "(cached) " >&6
26808else
26809 ac_check_lib_save_LIBS=$LIBS
26810LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026812/* end confdefs.h. */
26813
26814/* Override any GCC internal prototype to avoid an error.
26815 Use char because int might match the return type of a GCC
26816 builtin and then its argument prototype would still apply. */
26817#ifdef __cplusplus
26818extern "C"
26819#endif
26820char mp_destroy ();
26821int
26822main ()
26823{
26824return mp_destroy ();
26825 ;
26826 return 0;
26827}
26828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026830 ac_cv_lib_mp_mp_destroy=yes
26831else
cristy8b350f62009-11-15 23:12:43 +000026832 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026833fi
cristy8b350f62009-11-15 23:12:43 +000026834rm -f core conftest.err conftest.$ac_objext \
26835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026836LIBS=$ac_check_lib_save_LIBS
26837fi
cristy8b350f62009-11-15 23:12:43 +000026838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026839$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026840if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026841 GOMP_LIBS="-lmp"
26842fi
cristy18307f12011-12-30 01:20:16 +000026843
26844 fi
cristy3ed852e2009-09-05 21:47:34 +000026845 fi
26846 LIBS="$GOMP_LIBS $LIBS"
26847fi
26848
26849
26850#
26851# Find Posix threads library
26852#
26853THREAD_LIBS=''
26854if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26855
26856 if test "x$PTHREAD_LIBS" = "x"; then
26857 case "${host_cpu}-${host_os}" in
26858 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026859
26860
26861
26862ac_ext=c
26863ac_cpp='$CPP $CPPFLAGS'
26864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26866ac_compiler_gnu=$ac_cv_c_compiler_gnu
26867
26868magick_pthread_lib_ok=no
26869
26870LIB=-lc_r
26871save_LIBS="$LIBS"
26872LIBS="$LIBS $LIB"
26873
26874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26875$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26877/* end confdefs.h. */
26878#include <pthread.h>
26879int
26880main ()
26881{
26882 pthread_t th;
26883 pthread_join(th, 0);
26884 pthread_attr_init(0);
26885 pthread_cleanup_push(0, 0);
26886 pthread_create(0,0,0,0);
26887 pthread_cleanup_pop(0);
26888 ;
26889 return 0;
26890}
26891_ACEOF
26892if ac_fn_c_try_link "$LINENO"; then :
26893 magick_pthread_lib_ok=yes
26894fi
26895rm -f core conftest.err conftest.$ac_objext \
26896 conftest$ac_exeext conftest.$ac_ext
26897
26898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26899$as_echo "${magick_pthread_lib_ok}" >&6; }
26900if test "$magick_pthread_lib_ok" = yes
26901then
26902 PTHREAD_LIBS=-lc_r
26903 :
26904else
26905
26906 :
26907fi
26908
26909LIBS="$save_LIBS"
26910
26911ac_ext=c
26912ac_cpp='$CPP $CPPFLAGS'
26913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26915ac_compiler_gnu=$ac_cv_c_compiler_gnu
26916
26917 ;;
cristy3ed852e2009-09-05 21:47:34 +000026918 esac
26919 fi
26920
26921 for lib in pthread pthreads; do
26922 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026923
26924
26925
26926ac_ext=c
26927ac_cpp='$CPP $CPPFLAGS'
26928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
26932magick_pthread_lib_ok=no
26933
26934LIB=-l$lib
26935save_LIBS="$LIBS"
26936LIBS="$LIBS $LIB"
26937
26938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26939$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26941/* end confdefs.h. */
26942#include <pthread.h>
26943int
26944main ()
26945{
26946 pthread_t th;
26947 pthread_join(th, 0);
26948 pthread_attr_init(0);
26949 pthread_cleanup_push(0, 0);
26950 pthread_create(0,0,0,0);
26951 pthread_cleanup_pop(0);
26952 ;
26953 return 0;
26954}
26955_ACEOF
26956if ac_fn_c_try_link "$LINENO"; then :
26957 magick_pthread_lib_ok=yes
26958fi
26959rm -f core conftest.err conftest.$ac_objext \
26960 conftest$ac_exeext conftest.$ac_ext
26961
26962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26963$as_echo "${magick_pthread_lib_ok}" >&6; }
26964if test "$magick_pthread_lib_ok" = yes
26965then
26966 PTHREAD_LIBS=-l$lib
26967 :
26968else
26969
26970 :
26971fi
26972
26973LIBS="$save_LIBS"
26974
26975ac_ext=c
26976ac_cpp='$CPP $CPPFLAGS'
26977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26979ac_compiler_gnu=$ac_cv_c_compiler_gnu
26980
26981
cristy3ed852e2009-09-05 21:47:34 +000026982 fi
26983 done
26984
26985 THREAD_LIBS="$PTHREAD_LIBS"
26986 LIBS="$LIBS $THREAD_LIBS"
26987fi
26988
26989
26990#
26991# Check for umem.
26992#
26993have_umem='no'
26994UMEM_LIBS=''
26995if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026997$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026998 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26999$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027000 failed=0
27001 passed=0
cristy8b350f62009-11-15 23:12:43 +000027002 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027003if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 passed=`expr $passed + 1`
27005else
27006 failed=`expr $failed + 1`
27007fi
27008
27009
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027012if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 $as_echo_n "(cached) " >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027018/* end confdefs.h. */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char umem_alloc ();
27027int
27028main ()
27029{
27030return umem_alloc ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_cv_lib_umem_umem_alloc=yes
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042LIBS=$ac_check_lib_save_LIBS
27043fi
cristy8b350f62009-11-15 23:12:43 +000027044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 passed=`expr $passed + 1`
27048else
27049 failed=`expr $failed + 1`
27050fi
27051
cristy8b350f62009-11-15 23:12:43 +000027052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027053$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027054if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027055 $as_echo_n "(cached) " >&6
27056else
27057 ac_check_lib_save_LIBS=$LIBS
27058LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027060/* end confdefs.h. */
27061
27062/* Override any GCC internal prototype to avoid an error.
27063 Use char because int might match the return type of a GCC
27064 builtin and then its argument prototype would still apply. */
27065#ifdef __cplusplus
27066extern "C"
27067#endif
27068char umem_free ();
27069int
27070main ()
27071{
27072return umem_free ();
27073 ;
27074 return 0;
27075}
27076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 ac_cv_lib_umem_umem_free=yes
27079else
cristy8b350f62009-11-15 23:12:43 +000027080 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027081fi
cristy8b350f62009-11-15 23:12:43 +000027082rm -f core conftest.err conftest.$ac_objext \
27083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027084LIBS=$ac_check_lib_save_LIBS
27085fi
cristy8b350f62009-11-15 23:12:43 +000027086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027087$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027088if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027089 passed=`expr $passed + 1`
27090else
27091 failed=`expr $failed + 1`
27092fi
27093
cristy8b350f62009-11-15 23:12:43 +000027094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027095$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27096 if test $passed -gt 0; then
27097 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27099$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027100 have_umem='no (failed tests)'
27101 else
27102 UMEM_LIBS='-lumem'
27103 LIBS="$UMEM_LIBS $LIBS"
27104
cristy8b350f62009-11-15 23:12:43 +000027105$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027106
cristy09b53e12011-10-14 12:47:22 +000027107 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27108$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027109 have_umem='yes'
27110 fi
27111 else
cristy09b53e12011-10-14 12:47:22 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27113$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027114 fi
27115fi
cristy73bd4a52010-10-05 11:24:23 +000027116 if test "$have_umem" = 'yes'; then
27117 HasUMEM_TRUE=
27118 HasUMEM_FALSE='#'
27119else
27120 HasUMEM_TRUE='#'
27121 HasUMEM_FALSE=
27122fi
27123
cristy3ed852e2009-09-05 21:47:34 +000027124
27125
27126#
27127# Add support for ccmalloc memory debugging library if requested
27128#
27129have_ccmalloc='no'
27130CCMALLOC_LIBS=''
27131if test "$enable_ccmalloc" = 'yes'; then
27132 # Extract the first word of "ccmalloc", so it can be a program name with args.
27133set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027136if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027137 $as_echo_n "(cached) " >&6
27138else
27139 case $CCMALLOCDelegate in
27140 [\\/]* | ?:[\\/]*)
27141 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27142 ;;
27143 *)
27144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27145for as_dir in $PATH
27146do
27147 IFS=$as_save_IFS
27148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027151 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027153 break 2
27154 fi
27155done
cristy8b350f62009-11-15 23:12:43 +000027156 done
cristy3ed852e2009-09-05 21:47:34 +000027157IFS=$as_save_IFS
27158
27159 ;;
27160esac
27161fi
27162CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27163if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo "$CCMALLOCDelegate" >&6; }
27166else
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo "no" >&6; }
27169fi
27170
27171
27172 if test -n "$CCMALLOCDelegate"; then
27173 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27174 OLIBS="$LIBS"
27175 # Assume that gcc is used with ccmalloc.
27176 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027185/* end confdefs.h. */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188 Use char because int might match the return type of a GCC
27189 builtin and then its argument prototype would still apply. */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char ccmalloc_malloc ();
27194int
27195main ()
27196{
27197return ccmalloc_malloc ();
27198 ;
27199 return 0;
27200}
27201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027206fi
cristy8b350f62009-11-15 23:12:43 +000027207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209LIBS=$ac_check_lib_save_LIBS
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27215fi
27216
27217 if test -n "$CCMALLOC_LIBS"; then
27218 LIBS="$OLIBS"
27219 LIBS="$LIBS $CCMALLOC_LIBS"
27220 have_ccmalloc='yes'
27221 else
27222 LIBS="$OLIBS"
27223 fi
27224 fi
27225fi
27226
27227#
27228# Add support for efence memory debugging library if requested
27229#
27230if test "$enable_efence" = 'yes'; then
27231 EFENCE_LIBS='-lefence'
27232 LIBS="$EFENCE_LIBS $LIBS"
27233fi
27234
cristy3ed852e2009-09-05 21:47:34 +000027235
27236#
27237# Check for BZLIB
27238#
27239
27240
27241# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027242if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 withval=$with_bzlib; with_bzlib=$withval
27244else
27245 with_bzlib='yes'
27246fi
27247
27248
27249if test "$with_bzlib" != 'yes'; then
27250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27251fi
27252
27253have_bzlib='no'
27254if test "$with_bzlib" != 'no'; then
27255 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027256 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27257$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27261$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027262 failed=0
27263 passed=0
27264 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027265 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027266if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 passed=`expr $passed + 1`
27268else
27269 failed=`expr $failed + 1`
27270fi
27271
27272
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027275if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 $as_echo_n "(cached) " >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281/* end confdefs.h. */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char BZ2_bzDecompress ();
27290int
27291main ()
27292{
27293return BZ2_bzDecompress ();
27294 ;
27295 return 0;
27296}
27297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27300else
cristy8b350f62009-11-15 23:12:43 +000027301 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027302fi
cristy8b350f62009-11-15 23:12:43 +000027303rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305LIBS=$ac_check_lib_save_LIBS
27306fi
cristy8b350f62009-11-15 23:12:43 +000027307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027309if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 found_libbz=`expr $found_libbz + 1`
27311fi
27312
27313 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027316if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
27319 ac_check_lib_save_LIBS=$LIBS
27320LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322/* end confdefs.h. */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char _imp__BZ2_decompress ();
27331int
27332main ()
27333{
27334return _imp__BZ2_decompress ();
27335 ;
27336 return 0;
27337}
27338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27341else
cristy8b350f62009-11-15 23:12:43 +000027342 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027343fi
cristy8b350f62009-11-15 23:12:43 +000027344rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 found_libbz=`expr $found_libbz + 1`
27352fi
27353
27354 fi
27355 if test $found_libbz -gt 0; then
27356 passed=`expr $passed + 1`
27357 else
27358 failed=`expr $failed + 1`
27359 fi
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking if BZLIB package is complete... " >&6; }
27362 if test $passed -gt 0; then
27363 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27365$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027366 have_bzlib='no (failed tests)'
27367 else
27368 BZLIB_LIBS='-lbz2'
27369 LIBS="$BZLIB_LIBS $LIBS"
27370
cristy8b350f62009-11-15 23:12:43 +000027371$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027372
cristy09b53e12011-10-14 12:47:22 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27374$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027375 have_bzlib='yes'
27376 fi
27377 else
cristy09b53e12011-10-14 12:47:22 +000027378 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27379$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027380 fi
27381fi
cristy73bd4a52010-10-05 11:24:23 +000027382 if test "$have_bzlib" = 'yes'; then
27383 BZLIB_DELEGATE_TRUE=
27384 BZLIB_DELEGATE_FALSE='#'
27385else
27386 BZLIB_DELEGATE_TRUE='#'
27387 BZLIB_DELEGATE_FALSE=
27388fi
27389
cristy3ed852e2009-09-05 21:47:34 +000027390
27391
27392#
27393# Find the X11 include and library directories.
27394#
27395IPC_LIBS=''
27396X11_LIBS=''
27397XEXT_LIBS=''
27398XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027400$as_echo_n "checking for X... " >&6; }
27401
27402
27403# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027404if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027405 withval=$with_x;
27406fi
27407
27408# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27409if test "x$with_x" = xno; then
27410 # The user explicitly disabled X.
27411 have_x=disabled
27412else
27413 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027414 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027415 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027416 $as_echo_n "(cached) " >&6
27417else
27418 # One or both of the vars are not set, and there is no cached value.
27419ac_x_includes=no ac_x_libraries=no
27420rm -f -r conftest.dir
27421if mkdir conftest.dir; then
27422 cd conftest.dir
27423 cat >Imakefile <<'_ACEOF'
27424incroot:
27425 @echo incroot='${INCROOT}'
27426usrlibdir:
27427 @echo usrlibdir='${USRLIBDIR}'
27428libdir:
27429 @echo libdir='${LIBDIR}'
27430_ACEOF
27431 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027433 for ac_var in incroot usrlibdir libdir; do
27434 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27435 done
27436 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27437 for ac_extension in a so sl dylib la dll; do
27438 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27439 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27440 ac_im_usrlibdir=$ac_im_libdir; break
27441 fi
27442 done
27443 # Screen out bogus values from the imake configuration. They are
27444 # bogus both because they are the default anyway, and because
27445 # using them would break gcc on systems where it needs fixed includes.
27446 case $ac_im_incroot in
27447 /usr/include) ac_x_includes= ;;
27448 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27449 esac
27450 case $ac_im_usrlibdir in
27451 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27452 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27453 esac
27454 fi
27455 cd ..
27456 rm -f -r conftest.dir
27457fi
27458
27459# Standard set of common directories for X headers.
27460# Check X11 before X11Rn because it is often a symlink to the current release.
27461ac_x_header_dirs='
27462/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027463/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027464/usr/X11R6/include
27465/usr/X11R5/include
27466/usr/X11R4/include
27467
27468/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027469/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027470/usr/include/X11R6
27471/usr/include/X11R5
27472/usr/include/X11R4
27473
27474/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027475/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027476/usr/local/X11R6/include
27477/usr/local/X11R5/include
27478/usr/local/X11R4/include
27479
27480/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027481/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027482/usr/local/include/X11R6
27483/usr/local/include/X11R5
27484/usr/local/include/X11R4
27485
27486/usr/X386/include
27487/usr/x386/include
27488/usr/XFree86/include/X11
27489
27490/usr/include
27491/usr/local/include
27492/usr/unsupported/include
27493/usr/athena/include
27494/usr/local/x11r5/include
27495/usr/lpp/Xamples/include
27496
27497/usr/openwin/include
27498/usr/openwin/share/include'
27499
27500if test "$ac_x_includes" = no; then
27501 # Guess where to find include files, by looking for Xlib.h.
27502 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027504/* end confdefs.h. */
27505#include <X11/Xlib.h>
27506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027507if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027508 # We can compile using X headers with no special include directory.
27509ac_x_includes=
27510else
cristyc7083c12009-10-14 03:16:55 +000027511 for ac_dir in $ac_x_header_dirs; do
27512 if test -r "$ac_dir/X11/Xlib.h"; then
27513 ac_x_includes=$ac_dir
27514 break
27515 fi
27516done
27517fi
cristyda16f162011-02-19 23:52:17 +000027518rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027519fi # $ac_x_includes = no
27520
27521if test "$ac_x_libraries" = no; then
27522 # Check for the libraries.
27523 # See if we find them without any special options.
27524 # Don't add to $LIBS permanently.
27525 ac_save_LIBS=$LIBS
27526 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027528/* end confdefs.h. */
27529#include <X11/Xlib.h>
27530int
27531main ()
27532{
27533XrmInitialize ()
27534 ;
27535 return 0;
27536}
27537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027538if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027539 LIBS=$ac_save_LIBS
27540# We can link X programs with no special library path.
27541ac_x_libraries=
27542else
cristy8b350f62009-11-15 23:12:43 +000027543 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027544for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27545do
27546 # Don't even attempt the hair of trying to link an X program!
27547 for ac_extension in a so sl dylib la dll; do
27548 if test -r "$ac_dir/libX11.$ac_extension"; then
27549 ac_x_libraries=$ac_dir
27550 break 2
27551 fi
27552 done
27553done
27554fi
cristy8b350f62009-11-15 23:12:43 +000027555rm -f core conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027557fi # $ac_x_libraries = no
27558
27559case $ac_x_includes,$ac_x_libraries in #(
27560 no,* | *,no | *\'*)
27561 # Didn't find X, or a directory has "'" in its name.
27562 ac_cv_have_x="have_x=no";; #(
27563 *)
27564 # Record where we found X for the cache.
27565 ac_cv_have_x="have_x=yes\
27566 ac_x_includes='$ac_x_includes'\
27567 ac_x_libraries='$ac_x_libraries'"
27568esac
27569fi
27570;; #(
27571 *) have_x=yes;;
27572 esac
27573 eval "$ac_cv_have_x"
27574fi # $with_x != no
27575
27576if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027578$as_echo "$have_x" >&6; }
27579 no_x=yes
27580else
27581 # If each of the values was on the command line, it overrides each guess.
27582 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27583 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27584 # Update the cache value to reflect the command line values.
27585 ac_cv_have_x="have_x=yes\
27586 ac_x_includes='$x_includes'\
27587 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027589$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27590fi
27591
cristy3ed852e2009-09-05 21:47:34 +000027592if test "$no_x" = yes; then
27593 # Not all programs may use this symbol, but it does not hurt to define it.
27594
cristy8b350f62009-11-15 23:12:43 +000027595$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027596
27597 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27598else
27599 if test -n "$x_includes"; then
27600 X_CFLAGS="$X_CFLAGS -I$x_includes"
27601 fi
27602
27603 # It would also be nice to do this for all -L options, not just this one.
27604 if test -n "$x_libraries"; then
27605 X_LIBS="$X_LIBS -L$x_libraries"
27606 # For Solaris; some versions of Sun CC require a space after -R and
27607 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27610 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27611 ac_xsave_c_werror_flag=$ac_c_werror_flag
27612 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027614/* end confdefs.h. */
27615
27616int
27617main ()
27618{
27619
27620 ;
27621 return 0;
27622}
27623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027624if ac_fn_c_try_link "$LINENO"; then :
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "no" >&6; }
27627 X_LIBS="$X_LIBS -R$x_libraries"
27628else
cristy8b350f62009-11-15 23:12:43 +000027629 LIBS="$ac_xsave_LIBS -R $x_libraries"
27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633int
27634main ()
27635{
27636
27637 ;
27638 return 0;
27639}
27640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027641if ac_fn_c_try_link "$LINENO"; then :
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027643$as_echo "yes" >&6; }
27644 X_LIBS="$X_LIBS -R $x_libraries"
27645else
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo "neither works" >&6; }
27648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651fi
cristy8b350f62009-11-15 23:12:43 +000027652rm -f core conftest.err conftest.$ac_objext \
27653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027654 ac_c_werror_flag=$ac_xsave_c_werror_flag
27655 LIBS=$ac_xsave_LIBS
27656 fi
27657
27658 # Check for system-dependent libraries X programs must link with.
27659 # Do this before checking for the system-independent R6 libraries
27660 # (-lICE), since we may need -lsocket or whatever for X linking.
27661
27662 if test "$ISC" = yes; then
27663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27664 else
27665 # Martyn Johnson says this is needed for Ultrix, if the X
27666 # libraries were built with DECnet support. And Karl Berry says
27667 # the Alpha needs dnet_stub (dnet does not exist).
27668 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670/* end confdefs.h. */
27671
27672/* Override any GCC internal prototype to avoid an error.
27673 Use char because int might match the return type of a GCC
27674 builtin and then its argument prototype would still apply. */
27675#ifdef __cplusplus
27676extern "C"
27677#endif
27678char XOpenDisplay ();
27679int
27680main ()
27681{
27682return XOpenDisplay ();
27683 ;
27684 return 0;
27685}
27686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027688
cristy8b350f62009-11-15 23:12:43 +000027689else
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710return dnet_ntoa ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_dnet_dnet_ntoa=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27728fi
27729
27730 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char dnet_ntoa ();
27748int
27749main ()
27750{
27751return dnet_ntoa ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27769fi
27770
27771 fi
27772fi
cristy8b350f62009-11-15 23:12:43 +000027773rm -f core conftest.err conftest.$ac_objext \
27774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027775 LIBS="$ac_xsave_LIBS"
27776
27777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27778 # to get the SysV transport functions.
27779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27780 # needs -lnsl.
27781 # The nsl library prevents programs from opening the X display
27782 # on Irix 5.2, according to T.E. Dickey.
27783 # The functions gethostbyname, getservbyname, and inet_addr are
27784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027785 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027786if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787
cristy3ed852e2009-09-05 21:47:34 +000027788fi
27789
cristy3ed852e2009-09-05 21:47:34 +000027790 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 $as_echo_n "(cached) " >&6
27795else
27796 ac_check_lib_save_LIBS=$LIBS
27797LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027799/* end confdefs.h. */
27800
27801/* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807char gethostbyname ();
27808int
27809main ()
27810{
27811return gethostbyname ();
27812 ;
27813 return 0;
27814}
27815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 ac_cv_lib_nsl_gethostbyname=yes
27818else
cristy8b350f62009-11-15 23:12:43 +000027819 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027820fi
cristy8b350f62009-11-15 23:12:43 +000027821rm -f core conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823LIBS=$ac_check_lib_save_LIBS
27824fi
cristy8b350f62009-11-15 23:12:43 +000027825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027826$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27829fi
27830
27831 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027833$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027834if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 $as_echo_n "(cached) " >&6
27836else
27837 ac_check_lib_save_LIBS=$LIBS
27838LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840/* end confdefs.h. */
27841
27842/* Override any GCC internal prototype to avoid an error.
27843 Use char because int might match the return type of a GCC
27844 builtin and then its argument prototype would still apply. */
27845#ifdef __cplusplus
27846extern "C"
27847#endif
27848char gethostbyname ();
27849int
27850main ()
27851{
27852return gethostbyname ();
27853 ;
27854 return 0;
27855}
27856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 ac_cv_lib_bsd_gethostbyname=yes
27859else
cristy8b350f62009-11-15 23:12:43 +000027860 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027861fi
cristy8b350f62009-11-15 23:12:43 +000027862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027864LIBS=$ac_check_lib_save_LIBS
27865fi
cristy8b350f62009-11-15 23:12:43 +000027866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027868if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27870fi
27871
27872 fi
27873 fi
27874
27875 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27876 # socket/setsockopt and other routines are undefined under SCO ODT
27877 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27878 # on later versions), says Simon Leinen: it contains gethostby*
27879 # variants that don't use the name server (or something). -lsocket
27880 # must be given before -lnsl if both are needed. We assume that
27881 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027882 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884
cristy3ed852e2009-09-05 21:47:34 +000027885fi
27886
cristy3ed852e2009-09-05 21:47:34 +000027887 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027889$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027890if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 $as_echo_n "(cached) " >&6
27892else
27893 ac_check_lib_save_LIBS=$LIBS
27894LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027896/* end confdefs.h. */
27897
27898/* Override any GCC internal prototype to avoid an error.
27899 Use char because int might match the return type of a GCC
27900 builtin and then its argument prototype would still apply. */
27901#ifdef __cplusplus
27902extern "C"
27903#endif
27904char connect ();
27905int
27906main ()
27907{
27908return connect ();
27909 ;
27910 return 0;
27911}
27912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 ac_cv_lib_socket_connect=yes
27915else
cristy8b350f62009-11-15 23:12:43 +000027916 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027917fi
cristy8b350f62009-11-15 23:12:43 +000027918rm -f core conftest.err conftest.$ac_objext \
27919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027920LIBS=$ac_check_lib_save_LIBS
27921fi
cristy8b350f62009-11-15 23:12:43 +000027922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027923$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027924if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027925 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27926fi
27927
27928 fi
27929
27930 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027931 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933
cristy3ed852e2009-09-05 21:47:34 +000027934fi
27935
cristy3ed852e2009-09-05 21:47:34 +000027936 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027938$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027939if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 $as_echo_n "(cached) " >&6
27941else
27942 ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945/* end confdefs.h. */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char remove ();
27954int
27955main ()
27956{
27957return remove ();
27958 ;
27959 return 0;
27960}
27961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 ac_cv_lib_posix_remove=yes
27964else
cristy8b350f62009-11-15 23:12:43 +000027965 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027966fi
cristy8b350f62009-11-15 23:12:43 +000027967rm -f core conftest.err conftest.$ac_objext \
27968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027969LIBS=$ac_check_lib_save_LIBS
27970fi
cristy8b350f62009-11-15 23:12:43 +000027971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027973if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27975fi
27976
27977 fi
27978
27979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027980 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982
cristy3ed852e2009-09-05 21:47:34 +000027983fi
27984
cristy3ed852e2009-09-05 21:47:34 +000027985 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 $as_echo_n "(cached) " >&6
27990else
27991 ac_check_lib_save_LIBS=$LIBS
27992LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994/* end confdefs.h. */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997 Use char because int might match the return type of a GCC
27998 builtin and then its argument prototype would still apply. */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char shmat ();
28003int
28004main ()
28005{
28006return shmat ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 ac_cv_lib_ipc_shmat=yes
28013else
cristy8b350f62009-11-15 23:12:43 +000028014 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028015fi
cristy8b350f62009-11-15 23:12:43 +000028016rm -f core conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028018LIBS=$ac_check_lib_save_LIBS
28019fi
cristy8b350f62009-11-15 23:12:43 +000028020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028022if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28024fi
28025
28026 fi
28027 fi
28028
28029 # Check for libraries that X11R6 Xt/Xaw programs need.
28030 ac_save_LDFLAGS=$LDFLAGS
28031 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28033 # check for ICE first), but we must link in the order -lSM -lICE or
28034 # we get undefined symbols. So assume we have SM if we have ICE.
28035 # These have to be linked with before -lX11, unlike the other
28036 # libraries we check for below, so use a different variable.
28037 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028039$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028040if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 $as_echo_n "(cached) " >&6
28042else
28043 ac_check_lib_save_LIBS=$LIBS
28044LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028046/* end confdefs.h. */
28047
28048/* Override any GCC internal prototype to avoid an error.
28049 Use char because int might match the return type of a GCC
28050 builtin and then its argument prototype would still apply. */
28051#ifdef __cplusplus
28052extern "C"
28053#endif
28054char IceConnectionNumber ();
28055int
28056main ()
28057{
28058return IceConnectionNumber ();
28059 ;
28060 return 0;
28061}
28062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 ac_cv_lib_ICE_IceConnectionNumber=yes
28065else
cristy8b350f62009-11-15 23:12:43 +000028066 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028067fi
cristy8b350f62009-11-15 23:12:43 +000028068rm -f core conftest.err conftest.$ac_objext \
28069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028070LIBS=$ac_check_lib_save_LIBS
28071fi
cristy8b350f62009-11-15 23:12:43 +000028072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028074if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28076fi
28077
28078 LDFLAGS=$ac_save_LDFLAGS
28079
28080fi
28081
28082if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28084$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028087 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28088$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028089 LDFLAGS="$LDFLAGS $X_LIBS"
28090 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28091 LIBS="$X11_LIBS $LIBS"
28092 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28093
28094
cristy8b350f62009-11-15 23:12:43 +000028095$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028096
28097 #
28098 # Check for X11 shared memory extension
28099 #
28100 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028101 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028102if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 have_shmctl='yes'
28104fi
28105
28106 if test "$have_shmctl" != 'yes'; then
28107 PERSIST_LIBS=$LIBS
28108 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110/* end confdefs.h. */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113 Use char because int might match the return type of a GCC
28114 builtin and then its argument prototype would still apply. */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char shmctl ();
28119int
28120main ()
28121{
28122return shmctl ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028129fi
cristy8b350f62009-11-15 23:12:43 +000028130rm -f core conftest.err conftest.$ac_objext \
28131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028132 LIBS=$PERSIST_LIBS
28133 fi
28134
28135 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028138if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 $as_echo_n "(cached) " >&6
28140else
28141 ac_check_lib_save_LIBS=$LIBS
28142LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028144/* end confdefs.h. */
28145
28146/* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
28149#ifdef __cplusplus
28150extern "C"
28151#endif
28152char XShmAttach ();
28153int
28154main ()
28155{
28156return XShmAttach ();
28157 ;
28158 return 0;
28159}
28160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 ac_cv_lib_Xext_XShmAttach=yes
28163else
cristy8b350f62009-11-15 23:12:43 +000028164 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028165fi
cristy8b350f62009-11-15 23:12:43 +000028166rm -f core conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028168LIBS=$ac_check_lib_save_LIBS
28169fi
cristy8b350f62009-11-15 23:12:43 +000028170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028171$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028172if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028173 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028174$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028175
28176fi
28177
28178 fi
28179
28180 #
28181 # Check for X11 shape extension
28182 #
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028185if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 $as_echo_n "(cached) " >&6
28187else
28188 ac_check_lib_save_LIBS=$LIBS
28189LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028191/* end confdefs.h. */
28192
28193/* Override any GCC internal prototype to avoid an error.
28194 Use char because int might match the return type of a GCC
28195 builtin and then its argument prototype would still apply. */
28196#ifdef __cplusplus
28197extern "C"
28198#endif
28199char XShapeCombineMask ();
28200int
28201main ()
28202{
28203return XShapeCombineMask ();
28204 ;
28205 return 0;
28206}
28207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 ac_cv_lib_Xext_XShapeCombineMask=yes
28210else
cristy8b350f62009-11-15 23:12:43 +000028211 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028212fi
cristy8b350f62009-11-15 23:12:43 +000028213rm -f core conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028215LIBS=$ac_check_lib_save_LIBS
28216fi
cristy8b350f62009-11-15 23:12:43 +000028217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028218$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028219if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028220 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028221$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028222
28223fi
28224
cristy8b350f62009-11-15 23:12:43 +000028225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 $as_echo_n "(cached) " >&6
28229else
28230 ac_check_lib_save_LIBS=$LIBS
28231LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233/* end confdefs.h. */
28234
28235/* Override any GCC internal prototype to avoid an error.
28236 Use char because int might match the return type of a GCC
28237 builtin and then its argument prototype would still apply. */
28238#ifdef __cplusplus
28239extern "C"
28240#endif
28241char XtSetEventDispatcher ();
28242int
28243main ()
28244{
28245return XtSetEventDispatcher ();
28246 ;
28247 return 0;
28248}
28249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28252else
cristy8b350f62009-11-15 23:12:43 +000028253 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028254fi
cristy8b350f62009-11-15 23:12:43 +000028255rm -f core conftest.err conftest.$ac_objext \
28256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028257LIBS=$ac_check_lib_save_LIBS
28258fi
cristy8b350f62009-11-15 23:12:43 +000028259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028261if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 XT_LIBS='-lXt'
28263fi
28264
28265 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28266fi
28267if test "$no_x" != 'yes'; then
28268 have_x='yes'
28269else
28270 have_x='no'
28271fi
cristy73bd4a52010-10-05 11:24:23 +000028272 if test "$have_x" = 'yes'; then
28273 X11_DELEGATE_TRUE=
28274 X11_DELEGATE_FALSE='#'
28275else
28276 X11_DELEGATE_TRUE='#'
28277 X11_DELEGATE_FALSE=
28278fi
28279
cristy3ed852e2009-09-05 21:47:34 +000028280
28281
28282
28283
28284#
28285# Check for ZLIB
28286#
28287
28288# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028289if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 withval=$with_zlib; with_zlib=$withval
28291else
28292 with_zlib='yes'
28293fi
28294
28295
28296if test "$with_zlib" != 'yes'; then
28297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28298fi
28299
28300have_zlib='no'
28301ZLIB_LIBS=''
28302if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28304$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28308$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028309 ZLIB_LIBS=''
28310 failed=0
28311 passed=0
cristy8b350f62009-11-15 23:12:43 +000028312 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028313if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 passed=`expr $passed + 1`
28315else
28316 failed=`expr $failed + 1`
28317fi
28318
28319
cristy8b350f62009-11-15 23:12:43 +000028320 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028321if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028322 passed=`expr $passed + 1`
28323else
28324 failed=`expr $failed + 1`
28325fi
28326
28327
cristy8b350f62009-11-15 23:12:43 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028329$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028330if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028331 $as_echo_n "(cached) " >&6
28332else
28333 ac_check_lib_save_LIBS=$LIBS
28334LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028336/* end confdefs.h. */
28337
28338/* Override any GCC internal prototype to avoid an error.
28339 Use char because int might match the return type of a GCC
28340 builtin and then its argument prototype would still apply. */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char compress ();
28345int
28346main ()
28347{
28348return compress ();
28349 ;
28350 return 0;
28351}
28352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 ac_cv_lib_z_compress=yes
28355else
cristy8b350f62009-11-15 23:12:43 +000028356 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028357fi
cristy8b350f62009-11-15 23:12:43 +000028358rm -f core conftest.err conftest.$ac_objext \
28359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028360LIBS=$ac_check_lib_save_LIBS
28361fi
cristy8b350f62009-11-15 23:12:43 +000028362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028364if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 passed=`expr $passed + 1`
28366else
28367 failed=`expr $failed + 1`
28368fi
28369
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028372if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 $as_echo_n "(cached) " >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char uncompress ();
28387int
28388main ()
28389{
28390return uncompress ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 ac_cv_lib_z_uncompress=yes
28397else
cristy8b350f62009-11-15 23:12:43 +000028398 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028399fi
cristy8b350f62009-11-15 23:12:43 +000028400rm -f core conftest.err conftest.$ac_objext \
28401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028402LIBS=$ac_check_lib_save_LIBS
28403fi
cristy8b350f62009-11-15 23:12:43 +000028404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028406if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 passed=`expr $passed + 1`
28408else
28409 failed=`expr $failed + 1`
28410fi
28411
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028414if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 $as_echo_n "(cached) " >&6
28416else
28417 ac_check_lib_save_LIBS=$LIBS
28418LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028420/* end confdefs.h. */
28421
28422/* Override any GCC internal prototype to avoid an error.
28423 Use char because int might match the return type of a GCC
28424 builtin and then its argument prototype would still apply. */
28425#ifdef __cplusplus
28426extern "C"
28427#endif
28428char deflate ();
28429int
28430main ()
28431{
28432return deflate ();
28433 ;
28434 return 0;
28435}
28436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 ac_cv_lib_z_deflate=yes
28439else
cristy8b350f62009-11-15 23:12:43 +000028440 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028441fi
cristy8b350f62009-11-15 23:12:43 +000028442rm -f core conftest.err conftest.$ac_objext \
28443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028444LIBS=$ac_check_lib_save_LIBS
28445fi
cristy8b350f62009-11-15 23:12:43 +000028446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028448if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028449 passed=`expr $passed + 1`
28450else
28451 failed=`expr $failed + 1`
28452fi
28453
cristy8b350f62009-11-15 23:12:43 +000028454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 $as_echo_n "(cached) " >&6
28458else
28459 ac_check_lib_save_LIBS=$LIBS
28460LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462/* end confdefs.h. */
28463
28464/* Override any GCC internal prototype to avoid an error.
28465 Use char because int might match the return type of a GCC
28466 builtin and then its argument prototype would still apply. */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470char inflate ();
28471int
28472main ()
28473{
28474return inflate ();
28475 ;
28476 return 0;
28477}
28478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 ac_cv_lib_z_inflate=yes
28481else
cristy8b350f62009-11-15 23:12:43 +000028482 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028483fi
cristy8b350f62009-11-15 23:12:43 +000028484rm -f core conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028486LIBS=$ac_check_lib_save_LIBS
28487fi
cristy8b350f62009-11-15 23:12:43 +000028488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028490if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 passed=`expr $passed + 1`
28492else
28493 failed=`expr $failed + 1`
28494fi
28495
cristy8b350f62009-11-15 23:12:43 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028498if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 $as_echo_n "(cached) " >&6
28500else
28501 ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504/* end confdefs.h. */
28505
28506/* Override any GCC internal prototype to avoid an error.
28507 Use char because int might match the return type of a GCC
28508 builtin and then its argument prototype would still apply. */
28509#ifdef __cplusplus
28510extern "C"
28511#endif
28512char gzseek ();
28513int
28514main ()
28515{
28516return gzseek ();
28517 ;
28518 return 0;
28519}
28520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 ac_cv_lib_z_gzseek=yes
28523else
cristy8b350f62009-11-15 23:12:43 +000028524 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028525fi
cristy8b350f62009-11-15 23:12:43 +000028526rm -f core conftest.err conftest.$ac_objext \
28527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028528LIBS=$ac_check_lib_save_LIBS
28529fi
cristy8b350f62009-11-15 23:12:43 +000028530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028532if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028533 passed=`expr $passed + 1`
28534else
28535 failed=`expr $failed + 1`
28536fi
28537
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028540if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 $as_echo_n "(cached) " >&6
28542else
28543 ac_check_lib_save_LIBS=$LIBS
28544LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546/* end confdefs.h. */
28547
28548/* Override any GCC internal prototype to avoid an error.
28549 Use char because int might match the return type of a GCC
28550 builtin and then its argument prototype would still apply. */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554char gztell ();
28555int
28556main ()
28557{
28558return gztell ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 ac_cv_lib_z_gztell=yes
28565else
cristy8b350f62009-11-15 23:12:43 +000028566 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028567fi
cristy8b350f62009-11-15 23:12:43 +000028568rm -f core conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028570LIBS=$ac_check_lib_save_LIBS
28571fi
cristy8b350f62009-11-15 23:12:43 +000028572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028574if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 passed=`expr $passed + 1`
28576else
28577 failed=`expr $failed + 1`
28578fi
28579
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo_n "checking if ZLIB package is complete... " >&6; }
28582 if test $passed -gt 0; then
28583 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028584 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28585$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028586 have_zlib='no (failed tests)'
28587 else
28588 ZLIB_LIBS='-lz'
28589 LIBS="$ZLIB_LIBS $LIBS"
28590
cristy8b350f62009-11-15 23:12:43 +000028591$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028592
cristy09b53e12011-10-14 12:47:22 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28594$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028595 have_zlib='yes'
28596 fi
28597 else
cristy09b53e12011-10-14 12:47:22 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28599$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028600 fi
28601fi
cristy73bd4a52010-10-05 11:24:23 +000028602 if test "$have_zlib" = 'yes'; then
28603 ZLIB_DELEGATE_TRUE=
28604 ZLIB_DELEGATE_FALSE='#'
28605else
28606 ZLIB_DELEGATE_TRUE='#'
28607 ZLIB_DELEGATE_FALSE=
28608fi
28609
cristy3ed852e2009-09-05 21:47:34 +000028610
28611
28612#
28613# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28614#
28615LIB_DL=''
28616if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028619if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 $as_echo_n "(cached) " >&6
28621else
28622 ac_check_lib_save_LIBS=$LIBS
28623LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028625/* end confdefs.h. */
28626
28627/* Override any GCC internal prototype to avoid an error.
28628 Use char because int might match the return type of a GCC
28629 builtin and then its argument prototype would still apply. */
28630#ifdef __cplusplus
28631extern "C"
28632#endif
28633char dlopen ();
28634int
28635main ()
28636{
28637return dlopen ();
28638 ;
28639 return 0;
28640}
28641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028642if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028643 ac_cv_lib_dl_dlopen=yes
28644else
cristy8b350f62009-11-15 23:12:43 +000028645 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028646fi
cristy8b350f62009-11-15 23:12:43 +000028647rm -f core conftest.err conftest.$ac_objext \
28648 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028649LIBS=$ac_check_lib_save_LIBS
28650fi
cristy8b350f62009-11-15 23:12:43 +000028651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028654 LIB_DL='-ldl'
28655fi
28656
28657 LIBS="$LIB_DL $LIBS"
28658fi
28659
28660
28661
28662#
28663# Check for Autotrace delegate library.
28664#
28665
28666# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028667if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028668 withval=$with_autotrace; with_autotrace=$withval
28669else
28670 with_autotrace='no'
28671fi
28672
28673
28674if test "$with_autotrace" != 'yes'; then
28675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28676fi
28677
28678have_autotrace='no'
28679AUTOTRACE_CFLAGS=""
28680AUTOTRACE_LIBS=""
28681AUTOTRACE_PKG=""
28682if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28684$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028685
28686pkg_failed=no
28687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28688$as_echo_n "checking for AUTOTRACE... " >&6; }
28689
28690if test -n "$AUTOTRACE_CFLAGS"; then
28691 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28692 elif test -n "$PKG_CONFIG"; then
28693 if test -n "$PKG_CONFIG" && \
28694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28695 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28696 ac_status=$?
28697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28698 test $ac_status = 0; }; then
28699 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28700else
28701 pkg_failed=yes
28702fi
28703 else
28704 pkg_failed=untried
28705fi
28706if test -n "$AUTOTRACE_LIBS"; then
28707 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28708 elif test -n "$PKG_CONFIG"; then
28709 if test -n "$PKG_CONFIG" && \
28710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28711 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28712 ac_status=$?
28713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28714 test $ac_status = 0; }; then
28715 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28716else
28717 pkg_failed=yes
28718fi
28719 else
28720 pkg_failed=untried
28721fi
28722
28723
28724
28725if test $pkg_failed = yes; then
28726
28727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28728 _pkg_short_errors_supported=yes
28729else
28730 _pkg_short_errors_supported=no
28731fi
28732 if test $_pkg_short_errors_supported = yes; then
28733 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28734 else
28735 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28736 fi
28737 # Put the nasty error message in config.log where it belongs
28738 echo "$AUTOTRACE_PKG_ERRORS" >&5
28739
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28741$as_echo "no" >&6; }
28742 have_autotrace=no
28743elif test $pkg_failed = untried; then
28744 have_autotrace=no
28745else
28746 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28747 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28749$as_echo "yes" >&6; }
28750 have_autotrace=yes
28751fi
cristy09b53e12011-10-14 12:47:22 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28753$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028754fi
28755
28756if test "$have_autotrace" = 'yes'; then
28757 failed=0
28758
cristy8b350f62009-11-15 23:12:43 +000028759$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028760
28761 if test "$with_modules" = 'no'; then
28762 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28763 fi
28764fi
28765
cristy73bd4a52010-10-05 11:24:23 +000028766 if test "$have_autotrace" = 'yes'; then
28767 AUTOTRACE_DELEGATE_TRUE=
28768 AUTOTRACE_DELEGATE_FALSE='#'
28769else
28770 AUTOTRACE_DELEGATE_TRUE='#'
28771 AUTOTRACE_DELEGATE_FALSE=
28772fi
28773
cristy3ed852e2009-09-05 21:47:34 +000028774
28775
28776
28777
28778#
28779# Check for Display Postscript delegate library.
28780#
28781
28782# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028783if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028784 withval=$with_dps; with_dps=$withval
28785else
28786 with_dps='yes'
28787fi
28788
28789
28790if test "$with_dps" != 'yes'; then
28791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28792fi
28793
28794have_dps='no'
28795DPS_LIBS=''
28796if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028800$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028801 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28802$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028803 failed=0
28804 passed=0
28805 PERSIST_CPPFLAGS="$CPPFLAGS"
28806 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028807 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 +000028808if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028809 passed=`expr $passed + 1`
28810else
28811 failed=`expr $failed + 1`
28812fi
28813
28814
28815 # DPS issues:
28816 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28817 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28818 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28819 # ImageMagick itself doesn't use -lXt.
28820 have_libdps='no'
28821 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028823$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028824if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028825 $as_echo_n "(cached) " >&6
28826else
28827 ac_check_lib_save_LIBS=$LIBS
28828LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028830/* end confdefs.h. */
28831
28832/* Override any GCC internal prototype to avoid an error.
28833 Use char because int might match the return type of a GCC
28834 builtin and then its argument prototype would still apply. */
28835#ifdef __cplusplus
28836extern "C"
28837#endif
28838char DPSInitialize ();
28839int
28840main ()
28841{
28842return DPSInitialize ();
28843 ;
28844 return 0;
28845}
28846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028848 ac_cv_lib_dps_DPSInitialize=yes
28849else
cristy8b350f62009-11-15 23:12:43 +000028850 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028851fi
cristy8b350f62009-11-15 23:12:43 +000028852rm -f core conftest.err conftest.$ac_objext \
28853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028854LIBS=$ac_check_lib_save_LIBS
28855fi
cristy8b350f62009-11-15 23:12:43 +000028856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028857$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028858if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028859 have_libdps='yes'
28860else
28861 have_libdps='no'
28862fi
28863
28864 if test "$have_libdps" != 'yes'; then
28865 # Unset cache variable so we can try again.
28866 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028868$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028869if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028870 $as_echo_n "(cached) " >&6
28871else
28872 ac_check_lib_save_LIBS=$LIBS
28873LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028875/* end confdefs.h. */
28876
28877/* Override any GCC internal prototype to avoid an error.
28878 Use char because int might match the return type of a GCC
28879 builtin and then its argument prototype would still apply. */
28880#ifdef __cplusplus
28881extern "C"
28882#endif
28883char DPSInitialize ();
28884int
28885main ()
28886{
28887return DPSInitialize ();
28888 ;
28889 return 0;
28890}
28891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028893 ac_cv_lib_dps_DPSInitialize=yes
28894else
cristy8b350f62009-11-15 23:12:43 +000028895 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028896fi
cristy8b350f62009-11-15 23:12:43 +000028897rm -f core conftest.err conftest.$ac_objext \
28898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028899LIBS=$ac_check_lib_save_LIBS
28900fi
cristy8b350f62009-11-15 23:12:43 +000028901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028902$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028903if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 have_libdps='yes'
28905else
28906 have_libdps='no'
28907fi
28908
28909 if test "$have_libdps" = 'yes'; then
28910 LIBDPS_XT='-lXt'
28911 fi
28912 fi
28913 if test "$have_libdps" = 'yes'; then
28914 passed=`expr $passed + 1`
28915 else
28916 failed=`expr $failed + 1`
28917 fi
cristy8b350f62009-11-15 23:12:43 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028919$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028920if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028921 $as_echo_n "(cached) " >&6
28922else
28923 ac_check_lib_save_LIBS=$LIBS
28924LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028926/* end confdefs.h. */
28927
28928/* Override any GCC internal prototype to avoid an error.
28929 Use char because int might match the return type of a GCC
28930 builtin and then its argument prototype would still apply. */
28931#ifdef __cplusplus
28932extern "C"
28933#endif
28934char XDPSPixelsPerPoint ();
28935int
28936main ()
28937{
28938return XDPSPixelsPerPoint ();
28939 ;
28940 return 0;
28941}
28942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028944 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28945else
cristy8b350f62009-11-15 23:12:43 +000028946 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028947fi
cristy8b350f62009-11-15 23:12:43 +000028948rm -f core conftest.err conftest.$ac_objext \
28949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028950LIBS=$ac_check_lib_save_LIBS
28951fi
cristy8b350f62009-11-15 23:12:43 +000028952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028953$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028954if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028955 passed=`expr $passed + 1`
28956else
28957 failed=`expr $failed + 1`
28958fi
28959
cristy8b350f62009-11-15 23:12:43 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028961$as_echo_n "checking if DPS package is complete... " >&6; }
28962 if test $passed -gt 0; then
28963 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28965$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028966 have_dps='no (failed tests)'
28967 CPPFLAGS="$PERSIST_CPPFLAGS"
28968 else
28969 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28970 LIBS="$DPS_LIBS $LIBS"
28971
cristy8b350f62009-11-15 23:12:43 +000028972$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028973
cristy09b53e12011-10-14 12:47:22 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28975$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028976 have_dps='yes'
28977 fi
28978 else
cristy09b53e12011-10-14 12:47:22 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28980$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028981 CPPFLAGS=$PERSIST_CPPFLAGS
28982 fi
28983fi
cristy73bd4a52010-10-05 11:24:23 +000028984 if test "$have_dps" = 'yes'; then
28985 DPS_DELEGATE_TRUE=
28986 DPS_DELEGATE_FALSE='#'
28987else
28988 DPS_DELEGATE_TRUE='#'
28989 DPS_DELEGATE_FALSE=
28990fi
28991
cristy3ed852e2009-09-05 21:47:34 +000028992
28993
28994
28995#
28996# Check for DJVU delegate library.
28997#
28998
28999# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029000if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029001 withval=$with_djvu; with_djvu=$withval
29002else
29003 with_djvu='yes'
29004fi
29005
29006
29007if test "$with_djvu" != 'yes'; then
29008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29009fi
29010
29011have_djvu='no'
29012DJVU_LIBS=''
29013if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029014 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29015$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29019$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029020 failed=0
29021 passed=0
cristy8b350f62009-11-15 23:12:43 +000029022 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 +000029023if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029024 passed=`expr $passed + 1`
29025else
29026 failed=`expr $failed + 1`
29027fi
29028
29029
cristy8b350f62009-11-15 23:12:43 +000029030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029032if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029033 $as_echo_n "(cached) " >&6
29034else
29035 ac_check_lib_save_LIBS=$LIBS
29036LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029038/* end confdefs.h. */
29039
29040/* Override any GCC internal prototype to avoid an error.
29041 Use char because int might match the return type of a GCC
29042 builtin and then its argument prototype would still apply. */
29043#ifdef __cplusplus
29044extern "C"
29045#endif
29046char ddjvu_context_create ();
29047int
29048main ()
29049{
29050return ddjvu_context_create ();
29051 ;
29052 return 0;
29053}
29054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029056 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29057else
cristy8b350f62009-11-15 23:12:43 +000029058 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029059fi
cristy8b350f62009-11-15 23:12:43 +000029060rm -f core conftest.err conftest.$ac_objext \
29061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029062LIBS=$ac_check_lib_save_LIBS
29063fi
cristy8b350f62009-11-15 23:12:43 +000029064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029066if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 passed=`expr $passed + 1`
29068else
29069 failed=`expr $failed + 1`
29070fi
29071
cristy8b350f62009-11-15 23:12:43 +000029072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029073$as_echo_n "checking if DJVU package is complete... " >&6; }
29074 if test $passed -gt 0; then
29075 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29077$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029078 have_djvu='no (failed tests)'
29079 else
29080 DJVU_LIBS='-ldjvulibre'
29081 LIBS="$DJVU_LIBS $LIBS"
29082
cristy8b350f62009-11-15 23:12:43 +000029083$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029084
cristy09b53e12011-10-14 12:47:22 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29086$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029087 have_djvu='yes'
29088 fi
29089 else
cristy09b53e12011-10-14 12:47:22 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29091$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029092 fi
29093fi
cristy73bd4a52010-10-05 11:24:23 +000029094 if test "$have_djvu" = 'yes'; then
29095 DJVU_DELEGATE_TRUE=
29096 DJVU_DELEGATE_FALSE='#'
29097else
29098 DJVU_DELEGATE_TRUE='#'
29099 DJVU_DELEGATE_FALSE=
29100fi
29101
cristy3ed852e2009-09-05 21:47:34 +000029102
29103
29104
29105#
cristy430a7312010-01-21 20:44:04 +000029106# Set DejaVu font directory.
29107#
29108
29109# Check whether --with-dejavu-font-dir was given.
29110if test "${with_dejavu_font_dir+set}" = set; then :
29111 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29112else
29113 with_dejavu_font_dir='default'
29114fi
29115
29116
29117if test "$with_dejavu_font_dir" != 'default'; then
29118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29119fi
29120
29121
29122#
cristy3ed852e2009-09-05 21:47:34 +000029123# Check for FFTW delegate library.
29124#
29125
29126# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029127if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029128 withval=$with_fftw; with_fftw=$withval
29129else
29130 with_fftw='yes'
29131fi
29132
29133
29134if test "$with_fftw" != 'yes'; then
29135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29136fi
29137
cristy81beccd2011-10-03 18:17:24 +000029138have_fftw='no'
29139FFTW_LIBS=''
29140if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29142$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29144$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29146$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029147 failed=0
29148 passed=0
29149 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29150if test "x$ac_cv_header_fftw3_h" = xyes; then :
29151 passed=`expr $passed + 1`
29152else
29153 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029154fi
29155
cristy81beccd2011-10-03 18:17:24 +000029156
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29158$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29159if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29160 $as_echo_n "(cached) " >&6
29161else
29162 ac_check_lib_save_LIBS=$LIBS
29163LIBS="-lfftw3 $LIBS"
29164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165/* end confdefs.h. */
29166
29167/* Override any GCC internal prototype to avoid an error.
29168 Use char because int might match the return type of a GCC
29169 builtin and then its argument prototype would still apply. */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173char fftw_execute ();
29174int
29175main ()
29176{
29177return fftw_execute ();
29178 ;
29179 return 0;
29180}
29181_ACEOF
29182if ac_fn_c_try_link "$LINENO"; then :
29183 ac_cv_lib_fftw3_fftw_execute=yes
29184else
29185 ac_cv_lib_fftw3_fftw_execute=no
29186fi
29187rm -f core conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
29189LIBS=$ac_check_lib_save_LIBS
29190fi
29191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29192$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29193if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29194 passed=`expr $passed + 1`
29195else
29196 failed=`expr $failed + 1`
29197fi
29198
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29200$as_echo_n "checking if FFTW package is complete... " >&6; }
29201 if test $passed -gt 0; then
29202 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29204$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029205 have_fftw='no (failed tests)'
29206 else
29207 FFTW_LIBS='-lfftw3'
29208 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029209
cristy8b350f62009-11-15 23:12:43 +000029210$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029211
cristy09b53e12011-10-14 12:47:22 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29213$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029214 have_fftw='yes'
29215 fi
29216 else
cristy09b53e12011-10-14 12:47:22 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29218$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029219 fi
29220fi
cristy73bd4a52010-10-05 11:24:23 +000029221 if test "$have_fftw" = 'yes'; then
29222 FFTW_DELEGATE_TRUE=
29223 FFTW_DELEGATE_FALSE='#'
29224else
29225 FFTW_DELEGATE_TRUE='#'
29226 FFTW_DELEGATE_FALSE=
29227fi
29228
cristy3ed852e2009-09-05 21:47:34 +000029229
29230
29231
29232#
29233# Check for FlashPIX delegate library.
29234#
29235
29236# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029237if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029238 withval=$with_fpx; with_fpx=$withval
29239else
29240 with_fpx='yes'
29241fi
29242
29243
29244if test "$with_fpx" != 'yes'; then
29245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29246fi
29247
29248have_fpx='no'
29249FPX_LIBS=''
29250if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29252$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29256$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029257 failed=0
29258 passed=0
29259 ac_ext=cpp
29260ac_cpp='$CXXCPP $CPPFLAGS'
29261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264
29265
cristy8b350f62009-11-15 23:12:43 +000029266ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029267if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 passed=`expr $passed + 1`
29269else
29270 failed=`expr $failed + 1`
29271fi
29272
29273
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029276if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029277 $as_echo_n "(cached) " >&6
29278else
29279 ac_check_lib_save_LIBS=$LIBS
29280LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029282/* end confdefs.h. */
29283
29284/* Override any GCC internal prototype to avoid an error.
29285 Use char because int might match the return type of a GCC
29286 builtin and then its argument prototype would still apply. */
29287#ifdef __cplusplus
29288extern "C"
29289#endif
29290char FPX_OpenImageByFilename ();
29291int
29292main ()
29293{
29294return FPX_OpenImageByFilename ();
29295 ;
29296 return 0;
29297}
29298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029299if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29301else
cristy8b350f62009-11-15 23:12:43 +000029302 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029303fi
cristy8b350f62009-11-15 23:12:43 +000029304rm -f core conftest.err conftest.$ac_objext \
29305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029306LIBS=$ac_check_lib_save_LIBS
29307fi
cristy8b350f62009-11-15 23:12:43 +000029308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029309$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029310if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029311 passed=`expr $passed + 1`
29312else
29313 failed=`expr $failed + 1`
29314fi
29315
29316 ac_ext=c
29317ac_cpp='$CPP $CPPFLAGS'
29318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320ac_compiler_gnu=$ac_cv_c_compiler_gnu
29321
cristy8b350f62009-11-15 23:12:43 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029323$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29324 if test $passed -gt 0; then
29325 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29327$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029328 have_fpx='no (failed tests)'
29329 else
29330 FPX_LIBS='-lfpx'
29331
cristy8b350f62009-11-15 23:12:43 +000029332$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029333
cristy09b53e12011-10-14 12:47:22 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29335$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029336 have_fpx='yes'
29337 PERLMAINCC="$CXX"
29338 fi
29339 else
cristy09b53e12011-10-14 12:47:22 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29341$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029342 fi
29343fi
cristy73bd4a52010-10-05 11:24:23 +000029344 if test "$have_fpx" = 'yes'; then
29345 FPX_DELEGATE_TRUE=
29346 FPX_DELEGATE_FALSE='#'
29347else
29348 FPX_DELEGATE_TRUE='#'
29349 FPX_DELEGATE_FALSE=
29350fi
29351
cristy3ed852e2009-09-05 21:47:34 +000029352
29353
29354
29355#
29356# Check for fontconfig delegate library.
29357#
29358
29359# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029360if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029361 withval=$with_fontconfig; with_fontconfig=$withval
29362else
cristyfc3d0222012-02-07 15:05:57 +000029363 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029364fi
29365
29366
29367if test "$with_fontconfig" != 'yes'; then
29368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29369fi
29370
29371have_fontconfig='no'
29372FONTCONFIG_CFLAGS=""
29373FONTCONFIG_LIBS=""
29374FONTCONFIG_PKG=""
29375if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029376 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29377$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029378
29379pkg_failed=no
29380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29381$as_echo_n "checking for FONTCONFIG... " >&6; }
29382
29383if test -n "$FONTCONFIG_CFLAGS"; then
29384 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29385 elif test -n "$PKG_CONFIG"; then
29386 if test -n "$PKG_CONFIG" && \
29387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29388 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29389 ac_status=$?
29390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391 test $ac_status = 0; }; then
29392 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29393else
29394 pkg_failed=yes
29395fi
29396 else
29397 pkg_failed=untried
29398fi
29399if test -n "$FONTCONFIG_LIBS"; then
29400 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29401 elif test -n "$PKG_CONFIG"; then
29402 if test -n "$PKG_CONFIG" && \
29403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29404 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29405 ac_status=$?
29406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29407 test $ac_status = 0; }; then
29408 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29409else
29410 pkg_failed=yes
29411fi
29412 else
29413 pkg_failed=untried
29414fi
29415
29416
29417
29418if test $pkg_failed = yes; then
29419
29420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29421 _pkg_short_errors_supported=yes
29422else
29423 _pkg_short_errors_supported=no
29424fi
29425 if test $_pkg_short_errors_supported = yes; then
29426 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29427 else
29428 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29429 fi
29430 # Put the nasty error message in config.log where it belongs
29431 echo "$FONTCONFIG_PKG_ERRORS" >&5
29432
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29434$as_echo "no" >&6; }
29435 have_fontconfig=no
29436elif test $pkg_failed = untried; then
29437 have_fontconfig=no
29438else
29439 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29440 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442$as_echo "yes" >&6; }
29443 have_fontconfig=yes
29444fi
cristy09b53e12011-10-14 12:47:22 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29446$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029447fi
29448
29449if test "$have_fontconfig" = 'yes'; then
29450
cristy8b350f62009-11-15 23:12:43 +000029451$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029452
cristyd09bcf92010-03-25 03:04:45 +000029453 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029454 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029455 fi
cristy3ed852e2009-09-05 21:47:34 +000029456fi
29457
cristy73bd4a52010-10-05 11:24:23 +000029458 if test "$have_fontconfig" = 'yes'; then
29459 FONTCONFIG_DELEGATE_TRUE=
29460 FONTCONFIG_DELEGATE_FALSE='#'
29461else
29462 FONTCONFIG_DELEGATE_TRUE='#'
29463 FONTCONFIG_DELEGATE_FALSE=
29464fi
29465
cristy3ed852e2009-09-05 21:47:34 +000029466
29467
29468
29469
29470#
cristy81beccd2011-10-03 18:17:24 +000029471# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029472#
29473
29474# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029475if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029476 withval=$with_freetype; with_freetype=$withval
29477else
29478 with_freetype='yes'
29479fi
29480
29481
cristy81beccd2011-10-03 18:17:24 +000029482
cristy3ed852e2009-09-05 21:47:34 +000029483if test "$with_freetype" != 'yes'; then
29484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29485fi
29486
cristy81beccd2011-10-03 18:17:24 +000029487have_freetype='no'
29488FREETYPE_LIBS=''
29489if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029490 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29491$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29493$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29495$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029496 failed=0
29497 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029498 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029499 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029500 freetype_config=''
29501 # Allow the user to specify the location of freetype.
29502 if test "$with_freetype" != 'yes'; then
29503 if test -x "${with_freetype}/bin/freetype-config"; then
29504 freetype_config="${with_freetype}/bin/freetype-config"
29505 elif test -x "${with_freetype}"; then
29506 freetype_config=${with_freetype}
29507 fi
29508 fi
29509 if test -z "$freetype_config"; then
29510 # Extract the first word of "freetype-config", so it can be a program name with args.
29511set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29513$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029514if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029515 $as_echo_n "(cached) " >&6
29516else
cristy98ca0f52011-10-08 23:19:10 +000029517 case $freetype_config in
29518 [\\/]* | ?:[\\/]*)
29519 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29520 ;;
29521 *)
29522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029523for as_dir in $PATH
29524do
29525 IFS=$as_save_IFS
29526 test -z "$as_dir" && as_dir=.
29527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029529 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29531 break 2
29532 fi
29533done
29534 done
29535IFS=$as_save_IFS
29536
cristy98ca0f52011-10-08 23:19:10 +000029537 ;;
29538esac
cristy81beccd2011-10-03 18:17:24 +000029539fi
cristy98ca0f52011-10-08 23:19:10 +000029540freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029541if test -n "$freetype_config"; then
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29543$as_echo "$freetype_config" >&6; }
29544else
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029547fi
29548
cristy98ca0f52011-10-08 23:19:10 +000029549 fi
29550 if test -n "$freetype_config"; then
29551 freetype_prefix=`${freetype_config} --prefix`
29552 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29553 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29554 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029555 fi
29556
29557 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029559$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29560if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29561 $as_echo_n "(cached) " >&6
29562else
29563 ac_check_lib_save_LIBS=$LIBS
29564LIBS="-lfreetype $LIBS"
29565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566/* end confdefs.h. */
29567
29568/* Override any GCC internal prototype to avoid an error.
29569 Use char because int might match the return type of a GCC
29570 builtin and then its argument prototype would still apply. */
29571#ifdef __cplusplus
29572extern "C"
29573#endif
29574char FT_Init_FreeType ();
29575int
29576main ()
29577{
29578return FT_Init_FreeType ();
29579 ;
29580 return 0;
29581}
29582_ACEOF
29583if ac_fn_c_try_link "$LINENO"; then :
29584 ac_cv_lib_freetype_FT_Init_FreeType=yes
29585else
29586 ac_cv_lib_freetype_FT_Init_FreeType=no
29587fi
29588rm -f core conftest.err conftest.$ac_objext \
29589 conftest$ac_exeext conftest.$ac_ext
29590LIBS=$ac_check_lib_save_LIBS
29591fi
29592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29593$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29594if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29595 FREETYPE_LIBS='-lfreetype'
29596fi
29597
cristy98ca0f52011-10-08 23:19:10 +000029598 if test "$FREETYPE_LIBS" != ''; then
29599 passed=`expr $passed + 1`
29600 else
29601 failed=`expr $failed + 1`
29602 LDFLAGS="$PERSIST_LDFLAGS"
29603 fi
cristy81beccd2011-10-03 18:17:24 +000029604 fi
29605
29606 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29607if test "x$ac_cv_header_ft2build_h" = xyes; then :
29608 FT2BUILD_H='#include <ft2build.h>'
29609else
29610 ft2build=''
29611fi
29612
29613
29614 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29615"
29616if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29617 have_freetype_h='yes'
29618else
29619 have_freetype_h='no'
29620fi
29621
29622
cristy98ca0f52011-10-08 23:19:10 +000029623 if test "$have_freetype_h" = 'yes'; then
29624 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029625 else
cristy98ca0f52011-10-08 23:19:10 +000029626 failed=`expr $failed + 1`
29627 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029628 fi
29629
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29631$as_echo_n "checking if FreeType package is complete... " >&6; }
29632 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029633 if test $failed -gt 0; then
29634 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29636$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029637 have_freetype='no (failed tests)'
29638 else
29639 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029640
cristy8b350f62009-11-15 23:12:43 +000029641$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029642
cristy98ca0f52011-10-08 23:19:10 +000029643 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029644
29645$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29646
cristy81beccd2011-10-03 18:17:24 +000029647 fi
cristy09b53e12011-10-14 12:47:22 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29649$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029650 have_freetype='yes'
29651 fi
cristy81beccd2011-10-03 18:17:24 +000029652 else
cristy09b53e12011-10-14 12:47:22 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29654$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029655 fi
29656fi
cristy73bd4a52010-10-05 11:24:23 +000029657 if test "$have_freetype" = 'yes'; then
29658 FREETYPE_DELEGATE_TRUE=
29659 FREETYPE_DELEGATE_FALSE='#'
29660else
29661 FREETYPE_DELEGATE_TRUE='#'
29662 FREETYPE_DELEGATE_FALSE=
29663fi
29664
cristy3ed852e2009-09-05 21:47:34 +000029665
29666
29667
cristy3ed852e2009-09-05 21:47:34 +000029668#
29669# Check for Ghostscript library or framework.
29670#
29671# Test for iapi.h & test for gsapi_new_instance in -lgs
29672# or -framework Ghostscript
29673
29674
29675# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029676if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 withval=$with_gslib; with_gslib=$withval
29678else
29679 with_gslib='no'
29680fi
29681
29682
cristyb7931f12009-09-25 10:22:21 +000029683gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029684if test "$with_gslib" != 'yes'; then
29685 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29686fi
29687
29688have_gslib='no'
29689GS_LIBS=''
29690if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29692$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29696$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029697 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029698 failed=0
29699 passed=0
cristy8b350f62009-11-15 23:12:43 +000029700 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 +000029701if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 passed=`expr $passed + 1`
29703else
29704 failed=`expr $failed + 1`
29705fi
29706
29707
cristy8b350f62009-11-15 23:12:43 +000029708 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 +000029709if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 passed=`expr $passed + 1`
29711else
29712 failed=`expr $failed + 1`
29713fi
29714
29715
cristy73bd4a52010-10-05 11:24:23 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29717$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029718if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029719 $as_echo_n "(cached) " >&6
29720else
29721 ac_check_framework_save_LIBS=$LIBS
29722LIBS="-framework Ghostscript $LIBS"
29723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724/* end confdefs.h. */
29725
29726/* Override any GCC internal prototype to avoid an error.
29727 Use char because int might match the return type of a GCC
29728 builtin and then its argument prototype would still apply. */
29729#ifdef __cplusplus
29730extern "C"
29731#endif
29732char gsapi_new_instance ();
29733int
29734main ()
29735{
29736return gsapi_new_instance ();
29737 ;
29738 return 0;
29739}
29740_ACEOF
29741if ac_fn_c_try_link "$LINENO"; then :
29742 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29743else
29744 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29745fi
29746rm -f core conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
29748LIBS=$ac_check_framework_save_LIBS
29749fi
29750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29751$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29752if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29753 framework=`expr $framework + 1`
29754else
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029756$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029757if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 $as_echo_n "(cached) " >&6
29759else
29760 ac_check_lib_save_LIBS=$LIBS
29761LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029763/* end confdefs.h. */
29764
29765/* Override any GCC internal prototype to avoid an error.
29766 Use char because int might match the return type of a GCC
29767 builtin and then its argument prototype would still apply. */
29768#ifdef __cplusplus
29769extern "C"
29770#endif
29771char gsapi_new_instance ();
29772int
29773main ()
29774{
29775return gsapi_new_instance ();
29776 ;
29777 return 0;
29778}
29779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029781 ac_cv_lib_gs_gsapi_new_instance=yes
29782else
cristy8b350f62009-11-15 23:12:43 +000029783 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029784fi
cristy8b350f62009-11-15 23:12:43 +000029785rm -f core conftest.err conftest.$ac_objext \
29786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029787LIBS=$ac_check_lib_save_LIBS
29788fi
cristy8b350f62009-11-15 23:12:43 +000029789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029791if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029792 passed=`expr $passed + 1`
29793else
29794 failed=`expr $failed + 1`
29795fi
cristy73bd4a52010-10-05 11:24:23 +000029796
29797fi
cristy8b350f62009-11-15 23:12:43 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29800 if test $passed -gt 0; then
29801 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29803$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029804 have_gslib='no (failed tests)'
29805 else
29806 if test $framework -gt 0; then
29807 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029808 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029809 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29810$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029811 else
cristy09b53e12011-10-14 12:47:22 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29813$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029814 GS_LIBS='-lgs'
29815 fi
29816 LIBS="$GS_LIBS $LIBS"
29817
cristy8b350f62009-11-15 23:12:43 +000029818$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029819
29820 have_gslib='yes'
29821 fi
29822 else
cristy09b53e12011-10-14 12:47:22 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29824$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029825 fi
29826fi
cristy73bd4a52010-10-05 11:24:23 +000029827 if test "$have_gslib" = 'yes'; then
29828 GS_DELEGATE_TRUE=
29829 GS_DELEGATE_FALSE='#'
29830else
29831 GS_DELEGATE_TRUE='#'
29832 GS_DELEGATE_FALSE=
29833fi
29834
cristy3ed852e2009-09-05 21:47:34 +000029835
29836
29837# Set default font search path
29838
29839# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029840if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029841 withval=$with_fontpath; with_fontpath=$withval
29842else
29843 with_fontpath=''
29844fi
29845
29846
29847if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29848 with_fontpath=''
29849else
29850
29851cat >>confdefs.h <<_ACEOF
29852#define MAGICK_FONT_PATH "$with_fontpath"
29853_ACEOF
29854
29855fi
29856if test "$with_fontpath=" != ''; then
29857 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29858fi
29859
29860# Set Ghostscript font directory
29861
29862# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029863if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029864 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29865else
29866 with_gs_font_dir='default'
29867fi
29868
29869
29870if test "$with_gs_font_dir" != 'default'; then
29871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29872fi
29873
29874
29875#
29876# Check for GVC delegate library.
29877#
29878
29879# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029880if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029881 withval=$with_gvc; with_gvc=$withval
29882else
cristy1b70dc82012-07-01 23:15:05 +000029883 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029884fi
29885
29886
29887if test "$with_gvc" != 'yes'; then
29888 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29889fi
29890
29891GVC_PKG=""
29892if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29894$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029895
29896pkg_failed=no
29897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29898$as_echo_n "checking for GVC... " >&6; }
29899
29900if test -n "$GVC_CFLAGS"; then
29901 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29902 elif test -n "$PKG_CONFIG"; then
29903 if test -n "$PKG_CONFIG" && \
29904 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29905 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29906 ac_status=$?
29907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908 test $ac_status = 0; }; then
29909 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29910else
29911 pkg_failed=yes
29912fi
29913 else
29914 pkg_failed=untried
29915fi
29916if test -n "$GVC_LIBS"; then
29917 pkg_cv_GVC_LIBS="$GVC_LIBS"
29918 elif test -n "$PKG_CONFIG"; then
29919 if test -n "$PKG_CONFIG" && \
29920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29921 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29922 ac_status=$?
29923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29924 test $ac_status = 0; }; then
29925 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29926else
29927 pkg_failed=yes
29928fi
29929 else
29930 pkg_failed=untried
29931fi
29932
29933
29934
29935if test $pkg_failed = yes; then
29936
29937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29938 _pkg_short_errors_supported=yes
29939else
29940 _pkg_short_errors_supported=no
29941fi
29942 if test $_pkg_short_errors_supported = yes; then
29943 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29944 else
29945 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29946 fi
29947 # Put the nasty error message in config.log where it belongs
29948 echo "$GVC_PKG_ERRORS" >&5
29949
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29951$as_echo "no" >&6; }
29952 have_gvc=no
29953elif test $pkg_failed = untried; then
29954 have_gvc=no
29955else
29956 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29957 GVC_LIBS=$pkg_cv_GVC_LIBS
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29959$as_echo "yes" >&6; }
29960 have_gvc=yes
29961fi
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29963$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029964fi
29965
29966if test "$have_gvc" = 'yes'; then
29967
cristy8b350f62009-11-15 23:12:43 +000029968$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029969
29970 if test "$with_modules" = 'no'; then
29971 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29972 fi
29973fi
29974
cristy73bd4a52010-10-05 11:24:23 +000029975 if test "$have_gvc" = 'yes'; then
29976 GVC_DELEGATE_TRUE=
29977 GVC_DELEGATE_FALSE='#'
29978else
29979 GVC_DELEGATE_TRUE='#'
29980 GVC_DELEGATE_FALSE=
29981fi
29982
cristy3ed852e2009-09-05 21:47:34 +000029983
29984
29985
29986
29987#
29988# Check for JBIG delegate library.
29989#
29990
29991
29992# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029993if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 withval=$with_jbig; with_jbig=$withval
29995else
29996 with_jbig='yes'
29997fi
29998
29999
30000have_jbig='no'
30001JBIG_LIBS=''
30002if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30004$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030006$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30008$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030009 failed=0
30010 passed=0
cristy8b350f62009-11-15 23:12:43 +000030011 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030012if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030013 passed=`expr $passed + 1`
30014else
30015 failed=`expr $failed + 1`
30016fi
30017
30018
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030021if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030022 $as_echo_n "(cached) " >&6
30023else
30024 ac_check_lib_save_LIBS=$LIBS
30025LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030027/* end confdefs.h. */
30028
30029/* Override any GCC internal prototype to avoid an error.
30030 Use char because int might match the return type of a GCC
30031 builtin and then its argument prototype would still apply. */
30032#ifdef __cplusplus
30033extern "C"
30034#endif
30035char jbg_dec_init ();
30036int
30037main ()
30038{
30039return jbg_dec_init ();
30040 ;
30041 return 0;
30042}
30043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030044if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030045 ac_cv_lib_jbig_jbg_dec_init=yes
30046else
cristy8b350f62009-11-15 23:12:43 +000030047 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030048fi
cristy8b350f62009-11-15 23:12:43 +000030049rm -f core conftest.err conftest.$ac_objext \
30050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030051LIBS=$ac_check_lib_save_LIBS
30052fi
cristy8b350f62009-11-15 23:12:43 +000030053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030054$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030055if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030056 passed=`expr $passed + 1`
30057else
30058 failed=`expr $failed + 1`
30059fi
30060
cristy8b350f62009-11-15 23:12:43 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062$as_echo_n "checking if JBIG package is complete... " >&6; }
30063 if test $passed -gt 0; then
30064 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30066$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030067 have_jbig='no (failed tests)'
30068 else
30069 JBIG_LIBS='-ljbig'
30070 LIBS="$JBIG_LIBS $LIBS"
30071
cristy8b350f62009-11-15 23:12:43 +000030072$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030073
cristy09b53e12011-10-14 12:47:22 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30075$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030076 have_jbig='yes'
30077 fi
30078 else
cristy09b53e12011-10-14 12:47:22 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30080$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030081 fi
30082fi
cristy73bd4a52010-10-05 11:24:23 +000030083 if test "$have_jbig" = 'yes'; then
30084 JBIG_DELEGATE_TRUE=
30085 JBIG_DELEGATE_FALSE='#'
30086else
30087 JBIG_DELEGATE_TRUE='#'
30088 JBIG_DELEGATE_FALSE=
30089fi
30090
cristy3ed852e2009-09-05 21:47:34 +000030091
30092
30093
30094#
30095# Check for JPEG delegate library.
30096#
30097
30098# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030099if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030100 withval=$with_jpeg; with_jpeg=$withval
30101else
30102 with_jpeg='yes'
30103fi
30104
30105
30106if test "$with_jpeg" != 'yes'; then
30107 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30108fi
30109
30110have_jpeg='no'
30111JPEG_LIBS=''
30112if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30114$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030116$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30118$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030119 failed=0
30120 passed=0
cristy8b350f62009-11-15 23:12:43 +000030121 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030122if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 passed=`expr $passed + 1`
30124else
30125 failed=`expr $failed + 1`
30126fi
30127
30128
cristy8b350f62009-11-15 23:12:43 +000030129 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030130if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030131 passed=`expr $passed + 1`
30132else
30133 failed=`expr $failed + 1`
30134fi
30135
30136
cristy8b350f62009-11-15 23:12:43 +000030137 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030138if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030139 passed=`expr $passed + 1`
30140else
30141 failed=`expr $failed + 1`
30142fi
30143
30144
cristy8b350f62009-11-15 23:12:43 +000030145 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030146if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030147 passed=`expr $passed + 1`
30148else
30149 failed=`expr $failed + 1`
30150fi
30151
30152
cristy8b350f62009-11-15 23:12:43 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030155if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 $as_echo_n "(cached) " >&6
30157else
30158 ac_check_lib_save_LIBS=$LIBS
30159LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030161/* end confdefs.h. */
30162
30163/* Override any GCC internal prototype to avoid an error.
30164 Use char because int might match the return type of a GCC
30165 builtin and then its argument prototype would still apply. */
30166#ifdef __cplusplus
30167extern "C"
30168#endif
30169char jpeg_read_header ();
30170int
30171main ()
30172{
30173return jpeg_read_header ();
30174 ;
30175 return 0;
30176}
30177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030179 ac_cv_lib_jpeg_jpeg_read_header=yes
30180else
cristy8b350f62009-11-15 23:12:43 +000030181 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030182fi
cristy8b350f62009-11-15 23:12:43 +000030183rm -f core conftest.err conftest.$ac_objext \
30184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030185LIBS=$ac_check_lib_save_LIBS
30186fi
cristy8b350f62009-11-15 23:12:43 +000030187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030189if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030190 passed=`expr $passed + 1`
30191else
30192 failed=`expr $failed + 1`
30193fi
30194
30195
30196# Test for compatible JPEG library
30197if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030200if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030201 $as_echo_n "(cached) " >&6
30202else
cristy8b350f62009-11-15 23:12:43 +000030203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030204/* end confdefs.h. */
30205#include <stdio.h>
30206#include <stdlib.h>
30207#include <jpeglib.h>
30208
30209int
30210main ()
30211{
30212
30213#if JPEG_LIB_VERSION < 62
30214#error IJG JPEG library must be version 6b or newer!
30215#endif
30216return 0;
30217
30218 ;
30219 return 0;
30220}
30221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030222if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030223 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30224else
cristy8b350f62009-11-15 23:12:43 +000030225 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030226fi
cristy3ed852e2009-09-05 21:47:34 +000030227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30228fi
cristy8b350f62009-11-15 23:12:43 +000030229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30231fi
cristy8b350f62009-11-15 23:12:43 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo_n "checking if JPEG package is complete... " >&6; }
30234 if test $passed -gt 0; then
30235 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30237$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030238 have_jpeg='no (failed tests)'
30239 else
30240 JPEG_LIBS='-ljpeg'
30241 LIBS="$JPEG_LIBS $LIBS"
30242
cristy8b350f62009-11-15 23:12:43 +000030243$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030244
cristy09b53e12011-10-14 12:47:22 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30246$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030247 have_jpeg='yes'
30248 fi
30249 else
cristy09b53e12011-10-14 12:47:22 +000030250 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30251$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030252 fi
30253fi
cristy73bd4a52010-10-05 11:24:23 +000030254 if test "$have_jpeg" = 'yes'; then
30255 JPEG_DELEGATE_TRUE=
30256 JPEG_DELEGATE_FALSE='#'
30257else
30258 JPEG_DELEGATE_TRUE='#'
30259 JPEG_DELEGATE_FALSE=
30260fi
30261
cristy3ed852e2009-09-05 21:47:34 +000030262
30263
30264
30265#
30266# Check for JPEG Version 2 delegate library.
30267#
30268
30269# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030270if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030271 withval=$with_jp2; with_jp2=$withval
30272else
30273 with_jp2='yes'
30274fi
30275
30276
30277if test "$with_jp2" != 'yes'; then
30278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30279fi
30280
30281have_jp2='no'
30282JP2_LIBS=''
30283if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030284 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30285$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030288 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30289$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030290 failed=0
30291 passed=0
cristy8b350f62009-11-15 23:12:43 +000030292 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 +000030293if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030294 passed=`expr $passed + 1`
30295else
30296 failed=`expr $failed + 1`
30297fi
30298
30299
cristy8b350f62009-11-15 23:12:43 +000030300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030302if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030303 $as_echo_n "(cached) " >&6
30304else
30305 ac_check_lib_save_LIBS=$LIBS
30306LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030308/* end confdefs.h. */
30309
30310/* Override any GCC internal prototype to avoid an error.
30311 Use char because int might match the return type of a GCC
30312 builtin and then its argument prototype would still apply. */
30313#ifdef __cplusplus
30314extern "C"
30315#endif
30316char jas_stream_fopen ();
30317int
30318main ()
30319{
30320return jas_stream_fopen ();
30321 ;
30322 return 0;
30323}
30324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030326 ac_cv_lib_jasper_jas_stream_fopen=yes
30327else
cristy8b350f62009-11-15 23:12:43 +000030328 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030329fi
cristy8b350f62009-11-15 23:12:43 +000030330rm -f core conftest.err conftest.$ac_objext \
30331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030332LIBS=$ac_check_lib_save_LIBS
30333fi
cristy8b350f62009-11-15 23:12:43 +000030334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030335$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030336if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030337 passed=`expr $passed + 1`
30338else
30339 failed=`expr $failed + 1`
30340fi
30341
cristy8b350f62009-11-15 23:12:43 +000030342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030343$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30344 if test $passed -gt 0; then
30345 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030346 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30347$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030348 have_jp2='no (failed tests)'
30349 else
30350 JP2_LIBS='-ljasper'
30351 LIBS="$JP2_LIBS $LIBS"
30352
cristy8b350f62009-11-15 23:12:43 +000030353$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030354
cristy09b53e12011-10-14 12:47:22 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30356$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030357 have_jp2='yes'
30358 fi
30359 else
cristy09b53e12011-10-14 12:47:22 +000030360 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30361$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030362 fi
30363fi
cristy73bd4a52010-10-05 11:24:23 +000030364 if test "$have_jp2" = 'yes'; then
30365 JP2_DELEGATE_TRUE=
30366 JP2_DELEGATE_FALSE='#'
30367else
30368 JP2_DELEGATE_TRUE='#'
30369 JP2_DELEGATE_FALSE=
30370fi
30371
cristy3ed852e2009-09-05 21:47:34 +000030372
30373
30374
30375#
30376# Check for LCMS delegate library.
30377#
cristy71203402010-06-18 13:12:03 +000030378# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030379
30380# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030381if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030382 withval=$with_lcms; with_lcms=$withval
30383else
30384 with_lcms='yes'
30385fi
30386
cristy71203402010-06-18 13:12:03 +000030387if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30389fi
30390
cristy71203402010-06-18 13:12:03 +000030391# Disable LCMS2.
30392
30393# Check whether --with-lcms2 was given.
30394if test "${with_lcms2+set}" = set; then :
30395 withval=$with_lcms2; with_lcms2=$withval
30396else
30397 with_lcms2='yes'
30398fi
30399
30400if test "$with_lcms2" != 'yes' ; then
30401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30402fi
30403
30404have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030405LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030406if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030407 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30408$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30410$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030411 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30412$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030413 failed=0
30414 passed=0
30415 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030416
30417 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030418 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030419if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030420 have_lcms_header='yes'
30421fi
30422
30423
30424 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030425
30426$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30427
cristy71203402010-06-18 13:12:03 +000030428 passed=`expr $passed + 1`
30429 fi
30430
30431 # Check for <lcms2/lcms2.h)
30432 if test "$have_lcms_header" != 'yes'; then
30433 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 +000030434if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030435 have_lcms_header='yes'
30436fi
30437
30438
cristy71203402010-06-18 13:12:03 +000030439 if test "$have_lcms_header" = 'yes'; then
30440 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030441
cristy71203402010-06-18 13:12:03 +000030442$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030443
cristy71203402010-06-18 13:12:03 +000030444 fi
cristyd09bcf92010-03-25 03:04:45 +000030445 fi
cristy71203402010-06-18 13:12:03 +000030446
30447 # Failed to find lcms header?
30448 if test "$have_lcms_header" != 'yes'; then
30449 failed=`expr $failed + 1`
30450 fi
30451
30452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30453$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030454if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030455 $as_echo_n "(cached) " >&6
30456else
30457 ac_check_lib_save_LIBS=$LIBS
30458LIBS="-llcms2 $LIBS"
30459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30460/* end confdefs.h. */
30461
30462/* Override any GCC internal prototype to avoid an error.
30463 Use char because int might match the return type of a GCC
30464 builtin and then its argument prototype would still apply. */
30465#ifdef __cplusplus
30466extern "C"
30467#endif
cristy71203402010-06-18 13:12:03 +000030468char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030469int
30470main ()
30471{
cristy71203402010-06-18 13:12:03 +000030472return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030473 ;
30474 return 0;
30475}
30476_ACEOF
30477if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030478 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030479else
cristy71203402010-06-18 13:12:03 +000030480 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030481fi
30482rm -f core conftest.err conftest.$ac_objext \
30483 conftest$ac_exeext conftest.$ac_ext
30484LIBS=$ac_check_lib_save_LIBS
30485fi
cristy71203402010-06-18 13:12:03 +000030486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30487$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030488if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030489 passed=`expr $passed + 1`
30490else
30491 failed=`expr $failed + 1`
30492fi
30493
cristy71203402010-06-18 13:12:03 +000030494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30495$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030496 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030497 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30499$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030500 have_lcms2='no (failed tests)'
30501 else
30502 LCMS_LIBS='-llcms2'
30503 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30505$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030506 have_lcms2='yes'
30507 fi
cristyd09bcf92010-03-25 03:04:45 +000030508 else
cristy09b53e12011-10-14 12:47:22 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30510$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030511 fi
30512fi
30513
cristy71203402010-06-18 13:12:03 +000030514#
30515# Check for LCMS v1 (1.11 or later)
30516#
30517if test $have_lcms2 = 'yes'; then
30518 with_lcms='no'
30519fi
30520
30521have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030522if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30524$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30526$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30528$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030529 failed=0
30530 passed=0
30531 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030532
30533 # Check for <lcms.h>
30534 if test "$have_lcms_header" != 'yes'; then
30535 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030536if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030537 have_lcms_header='yes'
30538fi
30539
30540
cristy71203402010-06-18 13:12:03 +000030541 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030542 passed=`expr $passed + 1`
30543
cristy8b350f62009-11-15 23:12:43 +000030544$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030545
cristy71203402010-06-18 13:12:03 +000030546 fi
30547 fi
30548
30549 # Check for <lcms/lcms.h>
30550 if test "$have_lcms_header" != 'yes'; then
30551 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 +000030552if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030553 have_lcms_header='yes'
30554fi
30555
30556
cristy71203402010-06-18 13:12:03 +000030557 if test "$have_lcms_header" = 'yes'; then
30558 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030559
cristy8b350f62009-11-15 23:12:43 +000030560$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030561
cristy71203402010-06-18 13:12:03 +000030562 fi
cristy3ed852e2009-09-05 21:47:34 +000030563 fi
cristy71203402010-06-18 13:12:03 +000030564
30565 # Failed to find lcms header?
30566 if test "$have_lcms_header" != 'yes'; then
30567 failed=`expr $failed + 1`
30568 fi
30569
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30571$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030572if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030573 $as_echo_n "(cached) " >&6
30574else
30575 ac_check_lib_save_LIBS=$LIBS
30576LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030578/* end confdefs.h. */
30579
30580/* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
30583#ifdef __cplusplus
30584extern "C"
30585#endif
cristy71203402010-06-18 13:12:03 +000030586char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030587int
30588main ()
30589{
cristy71203402010-06-18 13:12:03 +000030590return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030591 ;
30592 return 0;
30593}
30594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030595if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030596 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030597else
cristy71203402010-06-18 13:12:03 +000030598 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030599fi
cristy8b350f62009-11-15 23:12:43 +000030600rm -f core conftest.err conftest.$ac_objext \
30601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030602LIBS=$ac_check_lib_save_LIBS
30603fi
cristy71203402010-06-18 13:12:03 +000030604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30605$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030606if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030607 passed=`expr $passed + 1`
30608else
30609 failed=`expr $failed + 1`
30610fi
30611
cristy8b350f62009-11-15 23:12:43 +000030612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030613$as_echo_n "checking if LCMS package is complete... " >&6; }
30614 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030615 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030616 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30617$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030618 have_lcms='no (failed tests)'
30619 else
30620 LCMS_LIBS='-llcms'
30621 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030622 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30623$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030624 have_lcms='yes'
30625 fi
cristy3ed852e2009-09-05 21:47:34 +000030626 else
cristy09b53e12011-10-14 12:47:22 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30628$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030629 fi
30630fi
cristy71203402010-06-18 13:12:03 +000030631
cristy73bd4a52010-10-05 11:24:23 +000030632 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30633 LCMS_DELEGATE_TRUE=
30634 LCMS_DELEGATE_FALSE='#'
30635else
30636 LCMS_DELEGATE_TRUE='#'
30637 LCMS_DELEGATE_FALSE=
30638fi
30639
cristy71203402010-06-18 13:12:03 +000030640if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30641
30642$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30643
30644fi
30645
cristy3ed852e2009-09-05 21:47:34 +000030646
30647
30648
30649#
30650# Check for the LQR (Liquid Rescale) delegate library.
30651#
30652
30653# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030654if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030655 withval=$with_lqr; with_lqr=$withval
30656else
30657 with_lqr='yes'
30658fi
30659
30660
30661if test "$with_lqr" != 'yes'; then
30662 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30663fi
30664
30665have_lqr='no'
30666LQR_CFLAGS=""
30667LQR_LIBS=""
30668LQR_PKG=""
30669if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030670 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30671$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030672
30673pkg_failed=no
30674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30675$as_echo_n "checking for LQR... " >&6; }
30676
30677if test -n "$LQR_CFLAGS"; then
30678 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30679 elif test -n "$PKG_CONFIG"; then
30680 if test -n "$PKG_CONFIG" && \
30681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30682 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30683 ac_status=$?
30684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30685 test $ac_status = 0; }; then
30686 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30687else
30688 pkg_failed=yes
30689fi
30690 else
30691 pkg_failed=untried
30692fi
30693if test -n "$LQR_LIBS"; then
30694 pkg_cv_LQR_LIBS="$LQR_LIBS"
30695 elif test -n "$PKG_CONFIG"; then
30696 if test -n "$PKG_CONFIG" && \
30697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30698 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30699 ac_status=$?
30700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701 test $ac_status = 0; }; then
30702 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30703else
30704 pkg_failed=yes
30705fi
30706 else
30707 pkg_failed=untried
30708fi
30709
30710
30711
30712if test $pkg_failed = yes; then
30713
30714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30715 _pkg_short_errors_supported=yes
30716else
30717 _pkg_short_errors_supported=no
30718fi
30719 if test $_pkg_short_errors_supported = yes; then
30720 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30721 else
30722 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30723 fi
30724 # Put the nasty error message in config.log where it belongs
30725 echo "$LQR_PKG_ERRORS" >&5
30726
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30728$as_echo "no" >&6; }
30729 have_lqr=no
30730elif test $pkg_failed = untried; then
30731 have_lqr=no
30732else
30733 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30734 LQR_LIBS=$pkg_cv_LQR_LIBS
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30736$as_echo "yes" >&6; }
30737 have_lqr=yes
30738fi
cristy09b53e12011-10-14 12:47:22 +000030739 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30740$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030741fi
30742
30743if test "$have_lqr" = 'yes'; then
30744
cristy8b350f62009-11-15 23:12:43 +000030745$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030746
30747 CFLAGS="$LQR_CFLAGS $CFLAGS"
30748fi
30749
cristy73bd4a52010-10-05 11:24:23 +000030750 if test "$have_lqr" = 'yes'; then
30751 LQR_DELEGATE_TRUE=
30752 LQR_DELEGATE_FALSE='#'
30753else
30754 LQR_DELEGATE_TRUE='#'
30755 LQR_DELEGATE_FALSE=
30756fi
30757
cristy3ed852e2009-09-05 21:47:34 +000030758
30759
30760
30761
cristy81beccd2011-10-03 18:17:24 +000030762# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030763
30764# Check whether --with-lzma was given.
30765if test "${with_lzma+set}" = set; then :
30766 withval=$with_lzma; with_lzma=$withval
30767else
30768 with_lzma='yes'
30769fi
30770
cristy81beccd2011-10-03 18:17:24 +000030771if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30773fi
30774
cristyb94e5002011-11-14 13:20:10 +000030775LZMA_PKG=""
30776if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30778$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030779
30780pkg_failed=no
30781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030782$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030783
30784if test -n "$LZMA_CFLAGS"; then
30785 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30786 elif test -n "$PKG_CONFIG"; then
30787 if test -n "$PKG_CONFIG" && \
30788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30789 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30790 ac_status=$?
30791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792 test $ac_status = 0; }; then
30793 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30794else
30795 pkg_failed=yes
30796fi
30797 else
30798 pkg_failed=untried
30799fi
30800if test -n "$LZMA_LIBS"; then
30801 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30802 elif test -n "$PKG_CONFIG"; then
30803 if test -n "$PKG_CONFIG" && \
30804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30805 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30806 ac_status=$?
30807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808 test $ac_status = 0; }; then
30809 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30810else
30811 pkg_failed=yes
30812fi
30813 else
30814 pkg_failed=untried
30815fi
30816
30817
30818
30819if test $pkg_failed = yes; then
30820
30821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30822 _pkg_short_errors_supported=yes
30823else
30824 _pkg_short_errors_supported=no
30825fi
30826 if test $_pkg_short_errors_supported = yes; then
30827 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30828 else
30829 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30830 fi
30831 # Put the nasty error message in config.log where it belongs
30832 echo "$LZMA_PKG_ERRORS" >&5
30833
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30835$as_echo "no" >&6; }
30836 have_lzma=no
30837elif test $pkg_failed = untried; then
30838 have_lzma=no
30839else
30840 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30841 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843$as_echo "yes" >&6; }
30844 have_lzma=yes
30845fi
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030847$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030848fi
30849
cristyb94e5002011-11-14 13:20:10 +000030850if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030851
30852$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30853
cristyb94e5002011-11-14 13:20:10 +000030854 if test "$with_modules" = 'no'; then
30855 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030856 fi
cristyfbb0ef02010-12-19 02:32:11 +000030857fi
cristyb94e5002011-11-14 13:20:10 +000030858
cristyfbb0ef02010-12-19 02:32:11 +000030859 if test "$have_lzma" = 'yes'; then
30860 LZMA_DELEGATE_TRUE=
30861 LZMA_DELEGATE_FALSE='#'
30862else
30863 LZMA_DELEGATE_TRUE='#'
30864 LZMA_DELEGATE_FALSE=
30865fi
30866
30867
30868
30869
cristyb94e5002011-11-14 13:20:10 +000030870
cristy3ed852e2009-09-05 21:47:34 +000030871#
30872# Check for the OpenEXR delegate library.
30873#
30874
30875# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030876if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030877 withval=$with_openexr; with_openexr=$withval
30878else
30879 with_openexr='yes'
30880fi
30881
30882
30883if test "$with_openexr" != 'yes'; then
30884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30885fi
30886
30887have_openexr='no'
30888OPENEXR_CFLAGS=""
30889OPENEXR_LIBS=""
30890OPENEXR_PKG=""
30891if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030892 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30893$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030894
30895pkg_failed=no
30896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30897$as_echo_n "checking for OPENEXR... " >&6; }
30898
30899if test -n "$OPENEXR_CFLAGS"; then
30900 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30901 elif test -n "$PKG_CONFIG"; then
30902 if test -n "$PKG_CONFIG" && \
30903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30904 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30905 ac_status=$?
30906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907 test $ac_status = 0; }; then
30908 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30909else
30910 pkg_failed=yes
30911fi
30912 else
30913 pkg_failed=untried
30914fi
30915if test -n "$OPENEXR_LIBS"; then
30916 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30917 elif test -n "$PKG_CONFIG"; then
30918 if test -n "$PKG_CONFIG" && \
30919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30920 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30921 ac_status=$?
30922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30923 test $ac_status = 0; }; then
30924 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30925else
30926 pkg_failed=yes
30927fi
30928 else
30929 pkg_failed=untried
30930fi
30931
30932
30933
30934if test $pkg_failed = yes; then
30935
30936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30937 _pkg_short_errors_supported=yes
30938else
30939 _pkg_short_errors_supported=no
30940fi
30941 if test $_pkg_short_errors_supported = yes; then
30942 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30943 else
30944 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30945 fi
30946 # Put the nasty error message in config.log where it belongs
30947 echo "$OPENEXR_PKG_ERRORS" >&5
30948
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950$as_echo "no" >&6; }
30951 have_openexr=no
30952elif test $pkg_failed = untried; then
30953 have_openexr=no
30954else
30955 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30956 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30958$as_echo "yes" >&6; }
30959 have_openexr=yes
30960fi
cristy09b53e12011-10-14 12:47:22 +000030961 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30962$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030963fi
30964
30965if test "$have_openexr" = 'yes'; then
30966
cristy8b350f62009-11-15 23:12:43 +000030967$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030968
30969 if test "$with_modules" = 'no'; then
30970 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30971 fi
30972fi
30973
cristy73bd4a52010-10-05 11:24:23 +000030974 if test "$have_openexr" = 'yes'; then
30975 OPENEXR_DELEGATE_TRUE=
30976 OPENEXR_DELEGATE_FALSE='#'
30977else
30978 OPENEXR_DELEGATE_TRUE='#'
30979 OPENEXR_DELEGATE_FALSE=
30980fi
30981
cristy3ed852e2009-09-05 21:47:34 +000030982
30983
30984
30985
30986#
cristy41cbe8a2011-10-27 01:35:18 +000030987# Check for PANGO delegate library.
30988#
30989
30990# Check whether --with-pango was given.
30991if test "${with_pango+set}" = set; then :
30992 withval=$with_pango; with_pango=$withval
30993else
cristyfc3d0222012-02-07 15:05:57 +000030994 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030995fi
30996
30997
30998if test "$with_pango" != 'yes'; then
30999 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31000fi
31001
31002have_pango='no'
cristya054b762012-03-26 23:16:00 +000031003have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031004PANGO_CFLAGS=""
31005PANGO_LIBS=""
31006PANGO_PKG=""
31007if test "x$with_pango" = "xyes"; then
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31009$as_echo "-------------------------------------------------------------" >&6; }
31010
31011pkg_failed=no
31012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31013$as_echo_n "checking for PANGO... " >&6; }
31014
31015if test -n "$PANGO_CFLAGS"; then
31016 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31017 elif test -n "$PKG_CONFIG"; then
31018 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31020 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031021 ac_status=$?
31022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31023 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031024 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031025else
31026 pkg_failed=yes
31027fi
31028 else
31029 pkg_failed=untried
31030fi
31031if test -n "$PANGO_LIBS"; then
31032 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31033 elif test -n "$PKG_CONFIG"; then
31034 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31036 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031040 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031041else
31042 pkg_failed=yes
31043fi
31044 else
31045 pkg_failed=untried
31046fi
31047
31048
31049
31050if test $pkg_failed = yes; then
31051
31052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31053 _pkg_short_errors_supported=yes
31054else
31055 _pkg_short_errors_supported=no
31056fi
31057 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031058 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031059 else
cristya054b762012-03-26 23:16:00 +000031060 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031061 fi
31062 # Put the nasty error message in config.log where it belongs
31063 echo "$PANGO_PKG_ERRORS" >&5
31064
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31066$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031067 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031068elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031069 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031070else
31071 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31072 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031075 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031076fi
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31078$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031079
31080pkg_failed=no
31081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31082$as_echo_n "checking for PANGO... " >&6; }
31083
31084if test -n "$PANGO_CFLAGS"; then
31085 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31086 elif test -n "$PKG_CONFIG"; then
31087 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31089 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031090 ac_status=$?
31091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31092 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031093 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031094else
31095 pkg_failed=yes
31096fi
31097 else
31098 pkg_failed=untried
31099fi
31100if test -n "$PANGO_LIBS"; then
31101 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31102 elif test -n "$PKG_CONFIG"; then
31103 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31105 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031106 ac_status=$?
31107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31108 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031109 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031110else
31111 pkg_failed=yes
31112fi
31113 else
31114 pkg_failed=untried
31115fi
31116
31117
31118
31119if test $pkg_failed = yes; then
31120
31121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31122 _pkg_short_errors_supported=yes
31123else
31124 _pkg_short_errors_supported=no
31125fi
31126 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031127 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031128 else
cristy2542fc62011-12-06 17:50:25 +000031129 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031130 fi
31131 # Put the nasty error message in config.log where it belongs
31132 echo "$PANGO_PKG_ERRORS" >&5
31133
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31135$as_echo "no" >&6; }
31136 have_pango=no
31137elif test $pkg_failed = untried; then
31138 have_pango=no
31139else
31140 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31141 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31143$as_echo "yes" >&6; }
31144 have_pango=yes
31145fi
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31147$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031148fi
31149
31150if test "$have_pango" = 'yes'; then
31151
31152$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31153
31154 if test "$with_modules" = 'no'; then
31155 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31156 fi
31157fi
31158
cristya054b762012-03-26 23:16:00 +000031159if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031160
cristya054b762012-03-26 23:16:00 +000031161$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031162
31163 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031164 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031165 fi
31166fi
31167
31168 if test "$have_pango" = 'yes'; then
31169 PANGO_DELEGATE_TRUE=
31170 PANGO_DELEGATE_FALSE='#'
31171else
31172 PANGO_DELEGATE_TRUE='#'
31173 PANGO_DELEGATE_FALSE=
31174fi
31175
cristya054b762012-03-26 23:16:00 +000031176 if test "$have_pangocairo" = 'yes'; then
31177 PANGOCAIRO_DELEGATE_TRUE=
31178 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031179else
cristya054b762012-03-26 23:16:00 +000031180 PANGOCAIRO_DELEGATE_TRUE='#'
31181 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031182fi
31183
31184
31185
31186
31187
31188#
cristy3ed852e2009-09-05 21:47:34 +000031189# Check for PNG delegate library.
31190#
31191
31192# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031193if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031194 withval=$with_png; with_png=$withval
31195else
31196 with_png='yes'
31197fi
31198
31199
31200if test "$with_png" != 'yes'; then
31201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31202fi
31203
cristy81beccd2011-10-03 18:17:24 +000031204have_png='no'
31205PNG_LIBS=''
31206
31207if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031208 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31209$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31211$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031212 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31213$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031214 failed=0
31215 passed=0
31216 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31217if test "x$ac_cv_header_png_h" = xyes; then :
31218 passed=`expr $passed + 1`
31219else
31220 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031221fi
31222
cristy81beccd2011-10-03 18:17:24 +000031223
31224
31225 if test $passed -gt 0; then
31226 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031227 if test "$have_png" = 'no' ; then
31228 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031229 pnglib='png'
31230 else
31231 pnglib="png1${var}"
31232 fi
31233
31234# Test for compatible LIBPNG library
31235 failed=0
31236 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031237 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031238 if test "${pnglib}" != 'png' ; then
31239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31240$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31242/* end confdefs.h. */
31243#include <stdio.h>
31244#include <stdlib.h>
31245#include <png.h>
31246
31247int
31248main ()
31249{
31250
31251#if PNG_LIBPNG_VER_MINOR != ${var}
31252#error LIBPNG library must be version 1${var}!
31253Kaboom, Kaboom
31254#endif
31255return 0;
31256
31257 ;
31258 return 0;
31259}
31260_ACEOF
31261if ac_fn_c_try_compile "$LINENO"; then :
31262 ac_cv_libpng_ok='yes'
31263else
31264 ac_cv_libpng_ok='no'
31265fi
31266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267 if test "$ac_cv_libpng_ok" = 'yes' ; then
31268 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031269 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31270$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031271 else
31272 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031273 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31274$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031275 fi
31276 else
31277 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031278 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31279$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031280 fi
31281 fi
31282
31283 if test $passed -gt 0 -a $failed -le 0; then
31284 if test "1${var}" = '15' ; then
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31286$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31287if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31288 $as_echo_n "(cached) " >&6
31289else
31290 ac_check_lib_save_LIBS=$LIBS
31291LIBS="-lpng15 $LIBS"
31292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31293/* end confdefs.h. */
31294
31295/* Override any GCC internal prototype to avoid an error.
31296 Use char because int might match the return type of a GCC
31297 builtin and then its argument prototype would still apply. */
31298#ifdef __cplusplus
31299extern "C"
31300#endif
31301char png_get_io_ptr ();
31302int
31303main ()
31304{
31305return png_get_io_ptr ();
31306 ;
31307 return 0;
31308}
31309_ACEOF
31310if ac_fn_c_try_link "$LINENO"; then :
31311 ac_cv_lib_png15_png_get_io_ptr=yes
31312else
31313 ac_cv_lib_png15_png_get_io_ptr=no
31314fi
31315rm -f core conftest.err conftest.$ac_objext \
31316 conftest$ac_exeext conftest.$ac_ext
31317LIBS=$ac_check_lib_save_LIBS
31318fi
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31320$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31321if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31322 passed=`expr $passed + 1`
31323else
31324 failed=`expr $failed + 1`
31325fi
31326
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31328$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31329if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31330 $as_echo_n "(cached) " >&6
31331else
31332 ac_check_lib_save_LIBS=$LIBS
31333LIBS="-lpng15 $LIBS"
31334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335/* end confdefs.h. */
31336
31337/* Override any GCC internal prototype to avoid an error.
31338 Use char because int might match the return type of a GCC
31339 builtin and then its argument prototype would still apply. */
31340#ifdef __cplusplus
31341extern "C"
31342#endif
31343char png_longjmp ();
31344int
31345main ()
31346{
31347return png_longjmp ();
31348 ;
31349 return 0;
31350}
31351_ACEOF
31352if ac_fn_c_try_link "$LINENO"; then :
31353 ac_cv_lib_png15_png_longjmp=yes
31354else
31355 ac_cv_lib_png15_png_longjmp=no
31356fi
31357rm -f core conftest.err conftest.$ac_objext \
31358 conftest$ac_exeext conftest.$ac_ext
31359LIBS=$ac_check_lib_save_LIBS
31360fi
31361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31362$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31363if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31364 passed=`expr $passed + 1`
31365else
31366 failed=`expr $failed + 1`
31367fi
31368
31369 fi
31370 if test "1${var}" = '14' ; then
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31372$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31373if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31374 $as_echo_n "(cached) " >&6
31375else
31376 ac_check_lib_save_LIBS=$LIBS
31377LIBS="-lpng14 $LIBS"
31378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379/* end confdefs.h. */
31380
31381/* Override any GCC internal prototype to avoid an error.
31382 Use char because int might match the return type of a GCC
31383 builtin and then its argument prototype would still apply. */
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char png_get_io_ptr ();
31388int
31389main ()
31390{
31391return png_get_io_ptr ();
31392 ;
31393 return 0;
31394}
31395_ACEOF
31396if ac_fn_c_try_link "$LINENO"; then :
31397 ac_cv_lib_png14_png_get_io_ptr=yes
31398else
31399 ac_cv_lib_png14_png_get_io_ptr=no
31400fi
31401rm -f core conftest.err conftest.$ac_objext \
31402 conftest$ac_exeext conftest.$ac_ext
31403LIBS=$ac_check_lib_save_LIBS
31404fi
31405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31406$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31407if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31408 passed=`expr $passed + 1`
31409else
31410 failed=`expr $failed + 1`
31411fi
31412
31413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31414$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31415if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31416 $as_echo_n "(cached) " >&6
31417else
31418 ac_check_lib_save_LIBS=$LIBS
31419LIBS="-lpng14 $LIBS"
31420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31421/* end confdefs.h. */
31422
31423/* Override any GCC internal prototype to avoid an error.
31424 Use char because int might match the return type of a GCC
31425 builtin and then its argument prototype would still apply. */
31426#ifdef __cplusplus
31427extern "C"
31428#endif
31429char png_get_io_state ();
31430int
31431main ()
31432{
31433return png_get_io_state ();
31434 ;
31435 return 0;
31436}
31437_ACEOF
31438if ac_fn_c_try_link "$LINENO"; then :
31439 ac_cv_lib_png14_png_get_io_state=yes
31440else
31441 ac_cv_lib_png14_png_get_io_state=no
31442fi
31443rm -f core conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
31445LIBS=$ac_check_lib_save_LIBS
31446fi
31447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31448$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31449if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31450 passed=`expr $passed + 1`
31451else
31452 failed=`expr $failed + 1`
31453fi
31454
31455 fi
31456 if test "1${var}" = '12' ; then
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31458$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31459if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31460 $as_echo_n "(cached) " >&6
31461else
31462 ac_check_lib_save_LIBS=$LIBS
31463LIBS="-lpng12 $LIBS"
31464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31465/* end confdefs.h. */
31466
31467/* Override any GCC internal prototype to avoid an error.
31468 Use char because int might match the return type of a GCC
31469 builtin and then its argument prototype would still apply. */
31470#ifdef __cplusplus
31471extern "C"
31472#endif
31473char png_get_io_ptr ();
31474int
31475main ()
31476{
31477return png_get_io_ptr ();
31478 ;
31479 return 0;
31480}
31481_ACEOF
31482if ac_fn_c_try_link "$LINENO"; then :
31483 ac_cv_lib_png12_png_get_io_ptr=yes
31484else
31485 ac_cv_lib_png12_png_get_io_ptr=no
31486fi
31487rm -f core conftest.err conftest.$ac_objext \
31488 conftest$ac_exeext conftest.$ac_ext
31489LIBS=$ac_check_lib_save_LIBS
31490fi
31491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31492$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31493if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31494 passed=`expr $passed + 1`
31495else
31496 failed=`expr $failed + 1`
31497fi
31498
31499 fi
31500 if test "1${var}" = '1' ; then
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31502$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31503if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31504 $as_echo_n "(cached) " >&6
31505else
31506 ac_check_lib_save_LIBS=$LIBS
31507LIBS="-lpng $LIBS"
31508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31509/* end confdefs.h. */
31510
31511/* Override any GCC internal prototype to avoid an error.
31512 Use char because int might match the return type of a GCC
31513 builtin and then its argument prototype would still apply. */
31514#ifdef __cplusplus
31515extern "C"
31516#endif
31517char png_get_io_ptr ();
31518int
31519main ()
31520{
31521return png_get_io_ptr ();
31522 ;
31523 return 0;
31524}
31525_ACEOF
31526if ac_fn_c_try_link "$LINENO"; then :
31527 ac_cv_lib_png_png_get_io_ptr=yes
31528else
31529 ac_cv_lib_png_png_get_io_ptr=no
31530fi
31531rm -f core conftest.err conftest.$ac_objext \
31532 conftest$ac_exeext conftest.$ac_ext
31533LIBS=$ac_check_lib_save_LIBS
31534fi
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31536$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31537if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31538 passed=`expr $passed + 1`
31539else
31540 failed=`expr $failed + 1`
31541fi
31542
31543 fi
31544 if test $passed -gt 0 -a $failed -le 0 ; then
31545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31546$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31547 if test $passed -gt 0 ; then
31548 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31550$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031551 have_png='no (failed tests)'
31552 else
31553 PNG_LIBS="-l${pnglib}"
31554 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031555
cristy8b350f62009-11-15 23:12:43 +000031556$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031557
cristy09b53e12011-10-14 12:47:22 +000031558 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31559$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031560 have_png='yes'
31561 fi
31562 fi
31563 fi
31564 fi
31565 fi
31566 done
31567 fi
cristy3ed852e2009-09-05 21:47:34 +000031568fi
cristy64877302011-08-23 19:10:31 +000031569
cristy73bd4a52010-10-05 11:24:23 +000031570 if test "$have_png" = 'yes'; then
31571 PNG_DELEGATE_TRUE=
31572 PNG_DELEGATE_FALSE='#'
31573else
31574 PNG_DELEGATE_TRUE='#'
31575 PNG_DELEGATE_FALSE=
31576fi
31577
cristy3ed852e2009-09-05 21:47:34 +000031578
cristy50d3f5c2011-09-10 20:09:06 +000031579
cristy3ed852e2009-09-05 21:47:34 +000031580
31581
31582#
31583# Check for RSVG delegate library.
31584#
31585
31586# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031587if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031588 withval=$with_rsvg; with_rsvg=$withval
31589else
cristy1164d5f2012-08-15 00:58:25 +000031590 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031591fi
31592
31593
31594if test "$with_rsvg" != 'yes'; then
31595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31596fi
31597
31598have_rsvg='no'
31599have_cairo='no'
31600RSVG_CFLAGS=""
31601RSVG_LIBS=""
31602RSVG_PKG=""
31603if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031604 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31605$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031606
31607pkg_failed=no
31608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31609$as_echo_n "checking for RSVG... " >&6; }
31610
31611if test -n "$RSVG_CFLAGS"; then
31612 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31613 elif test -n "$PKG_CONFIG"; then
31614 if test -n "$PKG_CONFIG" && \
31615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31616 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31617 ac_status=$?
31618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31619 test $ac_status = 0; }; then
31620 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31621else
31622 pkg_failed=yes
31623fi
31624 else
31625 pkg_failed=untried
31626fi
31627if test -n "$RSVG_LIBS"; then
31628 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31629 elif test -n "$PKG_CONFIG"; then
31630 if test -n "$PKG_CONFIG" && \
31631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31632 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31633 ac_status=$?
31634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31635 test $ac_status = 0; }; then
31636 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31637else
31638 pkg_failed=yes
31639fi
31640 else
31641 pkg_failed=untried
31642fi
31643
31644
31645
31646if test $pkg_failed = yes; then
31647
31648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31649 _pkg_short_errors_supported=yes
31650else
31651 _pkg_short_errors_supported=no
31652fi
31653 if test $_pkg_short_errors_supported = yes; then
31654 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31655 else
31656 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31657 fi
31658 # Put the nasty error message in config.log where it belongs
31659 echo "$RSVG_PKG_ERRORS" >&5
31660
31661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31662$as_echo "no" >&6; }
31663 have_rsvg=no
31664elif test $pkg_failed = untried; then
31665 have_rsvg=no
31666else
31667 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31668 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670$as_echo "yes" >&6; }
31671 have_rsvg=yes
31672fi
cristy09b53e12011-10-14 12:47:22 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31674$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031675
31676pkg_failed=no
31677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31678$as_echo_n "checking for CAIRO_SVG... " >&6; }
31679
31680if test -n "$CAIRO_SVG_CFLAGS"; then
31681 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31682 elif test -n "$PKG_CONFIG"; then
31683 if test -n "$PKG_CONFIG" && \
31684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31685 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31686 ac_status=$?
31687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31688 test $ac_status = 0; }; then
31689 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31690else
31691 pkg_failed=yes
31692fi
31693 else
31694 pkg_failed=untried
31695fi
31696if test -n "$CAIRO_SVG_LIBS"; then
31697 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31698 elif test -n "$PKG_CONFIG"; then
31699 if test -n "$PKG_CONFIG" && \
31700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31701 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31702 ac_status=$?
31703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31704 test $ac_status = 0; }; then
31705 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31706else
31707 pkg_failed=yes
31708fi
31709 else
31710 pkg_failed=untried
31711fi
31712
31713
31714
31715if test $pkg_failed = yes; then
31716
31717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31718 _pkg_short_errors_supported=yes
31719else
31720 _pkg_short_errors_supported=no
31721fi
31722 if test $_pkg_short_errors_supported = yes; then
31723 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31724 else
31725 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31726 fi
31727 # Put the nasty error message in config.log where it belongs
31728 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31729
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31731$as_echo "no" >&6; }
31732 have_cairo=no
31733elif test $pkg_failed = untried; then
31734 have_cairo=no
31735else
31736 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31737 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31739$as_echo "yes" >&6; }
31740 have_cairo=yes
31741fi
cristy09b53e12011-10-14 12:47:22 +000031742 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31743$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031744fi
31745
31746if test "$have_rsvg" = 'yes'; then
31747
cristy8b350f62009-11-15 23:12:43 +000031748$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031749
31750 if test "$with_modules" = 'no'; then
31751 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31752 fi
31753fi
31754
31755if test "$have_cairo" = 'yes'; then
31756
cristy8b350f62009-11-15 23:12:43 +000031757$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031758
31759 if test "$with_modules" = 'no'; then
31760 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31761 fi
31762fi
31763
cristy73bd4a52010-10-05 11:24:23 +000031764 if test "$have_rsvg" = 'yes'; then
31765 RSVG_DELEGATE_TRUE=
31766 RSVG_DELEGATE_FALSE='#'
31767else
31768 RSVG_DELEGATE_TRUE='#'
31769 RSVG_DELEGATE_FALSE=
31770fi
31771
31772 if test "$have_cairo" = 'yes'; then
31773 CAIRO_DELEGATE_TRUE=
31774 CAIRO_DELEGATE_FALSE='#'
31775else
31776 CAIRO_DELEGATE_TRUE='#'
31777 CAIRO_DELEGATE_FALSE=
31778fi
31779
cristy3ed852e2009-09-05 21:47:34 +000031780
31781
31782
31783
31784#
31785# Check for TIFF delegate library.
31786#
31787
31788# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031789if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031790 withval=$with_tiff; with_tiff=$withval
31791else
31792 with_tiff='yes'
31793fi
31794
31795
31796if test "$with_tiff" != 'yes'; then
31797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31798fi
31799
31800have_tiff='no'
31801TIFF_LIBS=''
31802if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31804$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31808$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031809 failed=0
31810 passed=0
cristy8b350f62009-11-15 23:12:43 +000031811 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031812if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031813 passed=`expr $passed + 1`
31814else
31815 failed=`expr $failed + 1`
31816fi
31817
31818
cristy8b350f62009-11-15 23:12:43 +000031819 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031820if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031821 passed=`expr $passed + 1`
31822else
31823 failed=`expr $failed + 1`
31824fi
31825
31826
cristy8b350f62009-11-15 23:12:43 +000031827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031829if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031830 $as_echo_n "(cached) " >&6
31831else
31832 ac_check_lib_save_LIBS=$LIBS
31833LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031835/* end confdefs.h. */
31836
31837/* Override any GCC internal prototype to avoid an error.
31838 Use char because int might match the return type of a GCC
31839 builtin and then its argument prototype would still apply. */
31840#ifdef __cplusplus
31841extern "C"
31842#endif
31843char TIFFOpen ();
31844int
31845main ()
31846{
31847return TIFFOpen ();
31848 ;
31849 return 0;
31850}
31851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 ac_cv_lib_tiff_TIFFOpen=yes
31854else
cristy8b350f62009-11-15 23:12:43 +000031855 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031856fi
cristy8b350f62009-11-15 23:12:43 +000031857rm -f core conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031859LIBS=$ac_check_lib_save_LIBS
31860fi
cristy8b350f62009-11-15 23:12:43 +000031861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031863if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031864 passed=`expr $passed + 1`
31865else
31866 failed=`expr $failed + 1`
31867fi
31868
cristy8b350f62009-11-15 23:12:43 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031871if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031872 $as_echo_n "(cached) " >&6
31873else
31874 ac_check_lib_save_LIBS=$LIBS
31875LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031877/* end confdefs.h. */
31878
31879/* Override any GCC internal prototype to avoid an error.
31880 Use char because int might match the return type of a GCC
31881 builtin and then its argument prototype would still apply. */
31882#ifdef __cplusplus
31883extern "C"
31884#endif
31885char TIFFClientOpen ();
31886int
31887main ()
31888{
31889return TIFFClientOpen ();
31890 ;
31891 return 0;
31892}
31893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 ac_cv_lib_tiff_TIFFClientOpen=yes
31896else
cristy8b350f62009-11-15 23:12:43 +000031897 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031898fi
cristy8b350f62009-11-15 23:12:43 +000031899rm -f core conftest.err conftest.$ac_objext \
31900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031901LIBS=$ac_check_lib_save_LIBS
31902fi
cristy8b350f62009-11-15 23:12:43 +000031903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031904$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031905if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031906 passed=`expr $passed + 1`
31907else
31908 failed=`expr $failed + 1`
31909fi
31910
cristy8b350f62009-11-15 23:12:43 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031913if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031914 $as_echo_n "(cached) " >&6
31915else
31916 ac_check_lib_save_LIBS=$LIBS
31917LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031919/* end confdefs.h. */
31920
31921/* Override any GCC internal prototype to avoid an error.
31922 Use char because int might match the return type of a GCC
31923 builtin and then its argument prototype would still apply. */
31924#ifdef __cplusplus
31925extern "C"
31926#endif
31927char TIFFIsByteSwapped ();
31928int
31929main ()
31930{
31931return TIFFIsByteSwapped ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31938else
cristy8b350f62009-11-15 23:12:43 +000031939 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031940fi
cristy8b350f62009-11-15 23:12:43 +000031941rm -f core conftest.err conftest.$ac_objext \
31942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031943LIBS=$ac_check_lib_save_LIBS
31944fi
cristy8b350f62009-11-15 23:12:43 +000031945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031947if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031948 passed=`expr $passed + 1`
31949else
31950 failed=`expr $failed + 1`
31951fi
31952
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031955if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031956 $as_echo_n "(cached) " >&6
31957else
31958 ac_check_lib_save_LIBS=$LIBS
31959LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031961/* end confdefs.h. */
31962
31963/* Override any GCC internal prototype to avoid an error.
31964 Use char because int might match the return type of a GCC
31965 builtin and then its argument prototype would still apply. */
31966#ifdef __cplusplus
31967extern "C"
31968#endif
31969char TIFFReadRGBATile ();
31970int
31971main ()
31972{
31973return TIFFReadRGBATile ();
31974 ;
31975 return 0;
31976}
31977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031979 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31980else
cristy8b350f62009-11-15 23:12:43 +000031981 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031982fi
cristy8b350f62009-11-15 23:12:43 +000031983rm -f core conftest.err conftest.$ac_objext \
31984 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031985LIBS=$ac_check_lib_save_LIBS
31986fi
cristy8b350f62009-11-15 23:12:43 +000031987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031989if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031990 passed=`expr $passed + 1`
31991else
31992 failed=`expr $failed + 1`
31993fi
31994
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031997if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031998 $as_echo_n "(cached) " >&6
31999else
32000 ac_check_lib_save_LIBS=$LIBS
32001LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032003/* end confdefs.h. */
32004
32005/* Override any GCC internal prototype to avoid an error.
32006 Use char because int might match the return type of a GCC
32007 builtin and then its argument prototype would still apply. */
32008#ifdef __cplusplus
32009extern "C"
32010#endif
32011char TIFFReadRGBAStrip ();
32012int
32013main ()
32014{
32015return TIFFReadRGBAStrip ();
32016 ;
32017 return 0;
32018}
32019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032020if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032021 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32022else
cristy8b350f62009-11-15 23:12:43 +000032023 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032024fi
cristy8b350f62009-11-15 23:12:43 +000032025rm -f core conftest.err conftest.$ac_objext \
32026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032027LIBS=$ac_check_lib_save_LIBS
32028fi
cristy8b350f62009-11-15 23:12:43 +000032029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032030$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032031if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 passed=`expr $passed + 1`
32033else
32034 failed=`expr $failed + 1`
32035fi
32036
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo_n "checking if TIFF package is complete... " >&6; }
32039 if test $passed -gt 0; then
32040 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32042$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032043 have_tiff='no (failed tests)'
32044 else
32045 TIFF_LIBS='-ltiff'
32046 LIBS="$TIFF_LIBS $LIBS"
32047
cristy8b350f62009-11-15 23:12:43 +000032048$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032049
cristy09b53e12011-10-14 12:47:22 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32051$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032052 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032053 for ac_header in tiffconf.h
32054do :
32055 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032056if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032057 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032058#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032059_ACEOF
32060
32061fi
32062
32063done
32064
cristy8b350f62009-11-15 23:12:43 +000032065 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032066 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32067 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32068 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032069do :
32070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032072if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032073 cat >>confdefs.h <<_ACEOF
32074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32075_ACEOF
32076
32077fi
32078done
32079
32080 fi
32081 else
cristy09b53e12011-10-14 12:47:22 +000032082 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32083$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032084 fi
32085fi
cristy73bd4a52010-10-05 11:24:23 +000032086 if test "$have_tiff" = 'yes'; then
32087 TIFF_DELEGATE_TRUE=
32088 TIFF_DELEGATE_FALSE='#'
32089else
32090 TIFF_DELEGATE_TRUE='#'
32091 TIFF_DELEGATE_FALSE=
32092fi
32093
cristy3ed852e2009-09-05 21:47:34 +000032094
32095
32096
32097#
cristyb1860752011-03-14 00:27:46 +000032098# Check for WEBP delegate library.
32099#
32100
32101# Check whether --with-webp was given.
32102if test "${with_webp+set}" = set; then :
32103 withval=$with_webp; with_webp=$withval
32104else
32105 with_webp='yes'
32106fi
32107
32108
32109if test "$with_webp" != 'yes'; then
32110 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32111fi
32112
32113have_webp='no'
32114WEBP_LIBS=''
32115if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32117$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32119$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32121$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032122 failed=0
32123 passed=0
32124 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32125if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32126 passed=`expr $passed + 1`
32127else
32128 failed=`expr $failed + 1`
32129fi
32130
32131
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32133$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32134if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32135 $as_echo_n "(cached) " >&6
32136else
32137 ac_check_lib_save_LIBS=$LIBS
32138LIBS="-lwebp $LIBS"
32139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140/* end confdefs.h. */
32141
32142/* Override any GCC internal prototype to avoid an error.
32143 Use char because int might match the return type of a GCC
32144 builtin and then its argument prototype would still apply. */
32145#ifdef __cplusplus
32146extern "C"
32147#endif
32148char WebPDecodeRGB ();
32149int
32150main ()
32151{
32152return WebPDecodeRGB ();
32153 ;
32154 return 0;
32155}
32156_ACEOF
32157if ac_fn_c_try_link "$LINENO"; then :
32158 ac_cv_lib_webp_WebPDecodeRGB=yes
32159else
32160 ac_cv_lib_webp_WebPDecodeRGB=no
32161fi
32162rm -f core conftest.err conftest.$ac_objext \
32163 conftest$ac_exeext conftest.$ac_ext
32164LIBS=$ac_check_lib_save_LIBS
32165fi
32166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32167$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32168if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32169 passed=`expr $passed + 1`
32170else
32171 failed=`expr $failed + 1`
32172fi
32173
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32175$as_echo_n "checking if WEBP package is complete... " >&6; }
32176 if test $passed -gt 0; then
32177 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032178 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32179$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032180 have_webp='no (failed tests)'
32181 else
32182 WEBP_LIBS='-lwebp'
32183 LIBS="$WEBP_LIBS $LIBS"
32184
32185$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32186
cristy09b53e12011-10-14 12:47:22 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32188$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032189 have_webp='yes'
32190 fi
32191 else
cristy09b53e12011-10-14 12:47:22 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32193$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032194 fi
32195fi
32196 if test "$have_webp" = 'yes'; then
32197 WEBP_DELEGATE_TRUE=
32198 WEBP_DELEGATE_FALSE='#'
32199else
32200 WEBP_DELEGATE_TRUE='#'
32201 WEBP_DELEGATE_FALSE=
32202fi
32203
32204
32205
32206
32207#
cristy3ed852e2009-09-05 21:47:34 +000032208# Set Windows font directory.
32209#
32210
32211# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032212if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032213 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32214else
32215 with_windows_font_dir=''
32216fi
32217
32218if test "$with_windows_font_dir" != '' ; then
32219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32220fi
32221
32222
32223#
32224# Check for WMF delegate library.
32225#
32226
32227# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032228if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032229 withval=$with_wmf; with_wmf=$withval
32230else
cristyfc3d0222012-02-07 15:05:57 +000032231 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032232fi
32233
32234
32235if test "$with_wmf" != 'yes'; then
32236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32237fi
32238
32239have_wmf='no'
32240WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032241WMF_LIBS_DEPS=''
32242OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032243if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32245$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032247$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32249$as_echo "" >&6; }
32250 have_libwmf='no'
32251 have_libwmflite='no'
32252 have_libwmf_ipa_h='no'
32253
32254 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32255"
32256if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32257 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032258fi
32259
32260
cristy03f7cf92011-12-15 01:40:41 +000032261 if test "$have_libwmf_ipa_h" = 'yes'; then
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32263$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32264if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032265 $as_echo_n "(cached) " >&6
32266else
32267 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032268LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032270/* end confdefs.h. */
32271
32272/* Override any GCC internal prototype to avoid an error.
32273 Use char because int might match the return type of a GCC
32274 builtin and then its argument prototype would still apply. */
32275#ifdef __cplusplus
32276extern "C"
32277#endif
cristy03f7cf92011-12-15 01:40:41 +000032278char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032279int
32280main ()
32281{
cristy03f7cf92011-12-15 01:40:41 +000032282return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032283 ;
32284 return 0;
32285}
32286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032287if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032288 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032289else
cristy03f7cf92011-12-15 01:40:41 +000032290 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032291fi
cristy8b350f62009-11-15 23:12:43 +000032292rm -f core conftest.err conftest.$ac_objext \
32293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032294LIBS=$ac_check_lib_save_LIBS
32295fi
cristy03f7cf92011-12-15 01:40:41 +000032296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32297$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32298if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32299 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032300fi
32301
cristy03f7cf92011-12-15 01:40:41 +000032302 if test "$have_libwmflite" = 'yes'; then
32303
32304$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32305
32306 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032307 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032308 have_wmf='yes'
32309 else
32310 WMF_LIBS_DEPS=''
32311 WMF_CONFIG_LIBS=`libwmf-config --libs`
32312 for lib in xml2 expat freetype jpeg png z; do
32313 testlib="-l${lib}"
32314 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32315 done
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32317$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32318if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32319 $as_echo_n "(cached) " >&6
32320else
32321 ac_check_lib_save_LIBS=$LIBS
32322LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32324/* end confdefs.h. */
32325
32326/* Override any GCC internal prototype to avoid an error.
32327 Use char because int might match the return type of a GCC
32328 builtin and then its argument prototype would still apply. */
32329#ifdef __cplusplus
32330extern "C"
32331#endif
32332char wmf_api_create ();
32333int
32334main ()
32335{
32336return wmf_api_create ();
32337 ;
32338 return 0;
32339}
32340_ACEOF
32341if ac_fn_c_try_link "$LINENO"; then :
32342 ac_cv_lib_wmf_wmf_api_create=yes
32343else
32344 ac_cv_lib_wmf_wmf_api_create=no
32345fi
32346rm -f core conftest.err conftest.$ac_objext \
32347 conftest$ac_exeext conftest.$ac_ext
32348LIBS=$ac_check_lib_save_LIBS
32349fi
32350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32351$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32352if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32353 have_libwmf='yes'
32354fi
32355
32356 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032357
cristy8b350f62009-11-15 23:12:43 +000032358$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032359
cristy03f7cf92011-12-15 01:40:41 +000032360 WMF_LIBS='-lwmf'
32361 LIBS="$WMF_LIBS $LIBS"
32362 have_wmf='yes'
32363 else
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32365$as_echo "no -- some components failed test" >&6; }
32366 have_wmf='no (failed tests)'
32367 have_wmflite='no (failed tests)'
32368 LIBS="$OLIBS"
32369 WMF_LIBS=''
32370 fi
glennrp33e524b2011-08-24 17:41:57 +000032371 fi
cristy03f7cf92011-12-15 01:40:41 +000032372 fi
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32374$as_echo_n "checking if WMF package is complete... " >&6; }
32375 if test "$have_wmf" = 'yes'; then
32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032378 else
cristy03f7cf92011-12-15 01:40:41 +000032379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032381 fi
cristy3ed852e2009-09-05 21:47:34 +000032382fi
cristy73bd4a52010-10-05 11:24:23 +000032383 if test "$have_wmf" = 'yes'; then
32384 WMF_DELEGATE_TRUE=
32385 WMF_DELEGATE_FALSE='#'
32386else
32387 WMF_DELEGATE_TRUE='#'
32388 WMF_DELEGATE_FALSE=
32389fi
32390
cristy3ed852e2009-09-05 21:47:34 +000032391
32392
32393
cristy81beccd2011-10-03 18:17:24 +000032394
32395
cristy3ed852e2009-09-05 21:47:34 +000032396#
32397# Check for XML delegate library.
32398#
32399
32400# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032401if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 withval=$with_xml; with_xml=$withval
32403else
cristyfc3d0222012-02-07 15:05:57 +000032404 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032405fi
32406
32407
cristy81beccd2011-10-03 18:17:24 +000032408if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32410fi
32411
cristy81beccd2011-10-03 18:17:24 +000032412have_xml='no'
32413XML_LIBS=''
32414if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032415 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32416$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32418$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032419 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32420$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032421 PERSIST_LDFLAGS=$LDFLAGS
32422 PERSIST_CPPFLAGS=$CPPFLAGS
32423 xml2_config=''
32424 # Extract the first word of "xml2-config", so it can be a program name with args.
32425set dummy xml2-config; ac_word=$2
32426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32427$as_echo_n "checking for $ac_word... " >&6; }
32428if ${ac_cv_path_xml2_config+:} false; then :
32429 $as_echo_n "(cached) " >&6
32430else
32431 case $xml2_config in
32432 [\\/]* | ?:[\\/]*)
32433 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32434 ;;
32435 *)
32436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32437for as_dir in $PATH
32438do
32439 IFS=$as_save_IFS
32440 test -z "$as_dir" && as_dir=.
32441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032443 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32445 break 2
32446 fi
32447done
32448 done
32449IFS=$as_save_IFS
32450
32451 ;;
32452esac
32453fi
32454xml2_config=$ac_cv_path_xml2_config
32455if test -n "$xml2_config"; then
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32457$as_echo "$xml2_config" >&6; }
32458else
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32460$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032461fi
32462
cristy81beccd2011-10-03 18:17:24 +000032463 if test -n "$xml2_config"; then
32464 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32465 # the shared library installed under /usr/lib, whereas the package
32466 # installs itself under $prefix/libxml and $prefix/lib.
32467 xml2_prefix=`xml2-config --prefix`
32468 if test -d "${xml2_prefix}/include/libxml2"; then
32469 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32470 fi
32471 if test "${xml2_prefix}" != '/usr'; then
32472 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32473 fi
32474 fi
32475 failed=0
32476 passed=0
32477 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32478if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32479 passed=`expr $passed + 1`
32480else
32481 failed=`expr $failed + 1`
32482fi
32483
32484
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32486$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32487if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32488 $as_echo_n "(cached) " >&6
32489else
32490 ac_check_lib_save_LIBS=$LIBS
32491LIBS="-lxml2 $LIBS"
32492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493/* end confdefs.h. */
32494
32495/* Override any GCC internal prototype to avoid an error.
32496 Use char because int might match the return type of a GCC
32497 builtin and then its argument prototype would still apply. */
32498#ifdef __cplusplus
32499extern "C"
32500#endif
32501char xmlSAXVersion ();
32502int
32503main ()
32504{
32505return xmlSAXVersion ();
32506 ;
32507 return 0;
32508}
32509_ACEOF
32510if ac_fn_c_try_link "$LINENO"; then :
32511 ac_cv_lib_xml2_xmlSAXVersion=yes
32512else
32513 ac_cv_lib_xml2_xmlSAXVersion=no
32514fi
32515rm -f core conftest.err conftest.$ac_objext \
32516 conftest$ac_exeext conftest.$ac_ext
32517LIBS=$ac_check_lib_save_LIBS
32518fi
32519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32520$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32521if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32522 passed=`expr $passed + 1`
32523else
32524 failed=`expr $failed + 1`
32525fi
32526
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32528$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32529if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32530 $as_echo_n "(cached) " >&6
32531else
32532 ac_check_lib_save_LIBS=$LIBS
32533LIBS="-lxml2 $LIBS"
32534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32535/* end confdefs.h. */
32536
32537/* Override any GCC internal prototype to avoid an error.
32538 Use char because int might match the return type of a GCC
32539 builtin and then its argument prototype would still apply. */
32540#ifdef __cplusplus
32541extern "C"
32542#endif
32543char xmlParseChunk ();
32544int
32545main ()
32546{
32547return xmlParseChunk ();
32548 ;
32549 return 0;
32550}
32551_ACEOF
32552if ac_fn_c_try_link "$LINENO"; then :
32553 ac_cv_lib_xml2_xmlParseChunk=yes
32554else
32555 ac_cv_lib_xml2_xmlParseChunk=no
32556fi
32557rm -f core conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32562$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32563if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32564 passed=`expr $passed + 1`
32565else
32566 failed=`expr $failed + 1`
32567fi
32568
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32570$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32571if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32572 $as_echo_n "(cached) " >&6
32573else
32574 ac_check_lib_save_LIBS=$LIBS
32575LIBS="-lxml2 $LIBS"
32576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32577/* end confdefs.h. */
32578
32579/* Override any GCC internal prototype to avoid an error.
32580 Use char because int might match the return type of a GCC
32581 builtin and then its argument prototype would still apply. */
32582#ifdef __cplusplus
32583extern "C"
32584#endif
32585char xmlCreatePushParserCtxt ();
32586int
32587main ()
32588{
32589return xmlCreatePushParserCtxt ();
32590 ;
32591 return 0;
32592}
32593_ACEOF
32594if ac_fn_c_try_link "$LINENO"; then :
32595 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32596else
32597 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32598fi
32599rm -f core conftest.err conftest.$ac_objext \
32600 conftest$ac_exeext conftest.$ac_ext
32601LIBS=$ac_check_lib_save_LIBS
32602fi
32603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32604$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32605if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32606 passed=`expr $passed + 1`
32607else
32608 failed=`expr $failed + 1`
32609fi
32610
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32612$as_echo_n "checking if XML package is complete... " >&6; }
32613 if test $passed -gt 0; then
32614 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032615 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32616$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032617 have_xml='no (failed tests)'
32618 LDFLAGS="$PERSIST_LDFLAGS"
32619 CPPFLAGS="$PERSIST_CPPFLAGS"
32620 else
32621 XML_LIBS='-lxml2'
32622 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032623
cristy8b350f62009-11-15 23:12:43 +000032624$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032625
cristy09b53e12011-10-14 12:47:22 +000032626 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32627$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032628 have_xml='yes'
32629 fi
32630 else
cristy09b53e12011-10-14 12:47:22 +000032631 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32632$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032633 fi
32634fi
cristy73bd4a52010-10-05 11:24:23 +000032635 if test "$have_xml" = 'yes'; then
32636 XML_DELEGATE_TRUE=
32637 XML_DELEGATE_FALSE='#'
32638else
32639 XML_DELEGATE_TRUE='#'
32640 XML_DELEGATE_FALSE=
32641fi
32642
cristy3ed852e2009-09-05 21:47:34 +000032643
32644
32645
32646# Substitute compiler name to build/link PerlMagick
32647#
32648
32649
32650#
32651# Configure install Paths
32652#
cristy7def36a2011-10-28 19:04:41 +000032653
cristy2a11bef2011-10-28 18:33:11 +000032654# Path to ImageMagick header files
32655INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032656INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32657DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032658case "${build_os}" in
32659 mingw* )
32660 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32661 ;;
32662esac
32663
32664cat >>confdefs.h <<_ACEOF
32665#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32666_ACEOF
32667
32668
cristy3ed852e2009-09-05 21:47:34 +000032669
32670# Subdirectory under lib to place ImageMagick lib files
32671LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32672
32673cat >>confdefs.h <<_ACEOF
32674#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32675_ACEOF
32676
32677
32678# Path to ImageMagick bin directory
32679EXECUTABLE_PATH="${BIN_DIR}"
32680DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32681case "${build_os}" in
32682 mingw* )
32683 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32684 ;;
32685esac
32686
32687cat >>confdefs.h <<_ACEOF
32688#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32689_ACEOF
32690
32691
32692
32693# Path to ImageMagick lib
32694LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32695DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32696case "${build_os}" in
32697 mingw* )
32698 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32699 ;;
32700esac
32701
32702cat >>confdefs.h <<_ACEOF
32703#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32704_ACEOF
32705
32706
32707
cristy3ed852e2009-09-05 21:47:34 +000032708#
32709# Subdirectory under lib to place ImageMagick coder module files
32710CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32711
32712cat >>confdefs.h <<_ACEOF
32713#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32714_ACEOF
32715
32716CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32717DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32718case "${build_os}" in
32719 mingw* )
32720 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32721 ;;
32722esac
32723
32724cat >>confdefs.h <<_ACEOF
32725#define CODER_PATH "$DEFINE_CODER_PATH"
32726_ACEOF
32727
32728
32729
32730#
32731# Subdirectory under lib to place ImageMagick filter module files
32732FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32733
32734cat >>confdefs.h <<_ACEOF
32735#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32736_ACEOF
32737
32738FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32739DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32740case "${build_os}" in
32741 mingw* )
32742 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32743 ;;
32744esac
32745
32746cat >>confdefs.h <<_ACEOF
32747#define FILTER_PATH "$DEFINE_FILTER_PATH"
32748_ACEOF
32749
32750
32751
32752#
32753# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032754DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032755DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32756DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032757case "${build_os}" in
32758 mingw* )
32759 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32760 ;;
32761esac
32762
32763cat >>confdefs.h <<_ACEOF
32764#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32765_ACEOF
32766
32767
32768
cristy2a11bef2011-10-28 18:33:11 +000032769# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032770CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032771
32772cat >>confdefs.h <<_ACEOF
32773#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32774_ACEOF
32775
cristy7def36a2011-10-28 19:04:41 +000032776CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032777DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32778case "${build_os}" in
32779 mingw* )
32780 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32781 ;;
32782esac
32783
32784cat >>confdefs.h <<_ACEOF
32785#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32786_ACEOF
32787
32788
32789
cristy2a11bef2011-10-28 18:33:11 +000032790# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032791SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032792
32793cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032794#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032795_ACEOF
32796
cristy670aa3c2011-11-03 00:54:00 +000032797SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032798DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032799case "${build_os}" in
32800 mingw* )
cristy4f820712011-04-01 12:35:43 +000032801 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032802 ;;
32803esac
32804
32805cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032806#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032807_ACEOF
32808
32809
32810
cristy408ebcd2011-11-14 01:36:57 +000032811# Subdirectory to place architecture-dependent configuration files
32812SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032813
32814cat >>confdefs.h <<_ACEOF
32815#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32816_ACEOF
32817
cristy408ebcd2011-11-14 01:36:57 +000032818SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32819DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032820case "${build_os}" in
32821 mingw* )
32822 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32823 ;;
32824esac
32825
32826cat >>confdefs.h <<_ACEOF
32827#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32828_ACEOF
32829
32830
32831
cristy3ed852e2009-09-05 21:47:34 +000032832#
32833# program_transform_name is formed for use in a Makefile, so create a
32834# modified version for use in a shell script.
32835configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32836
32837# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032838{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32839$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032842{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32843$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032844AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032845BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032846BZIPDelegateDefault='bzip2'
32847BrowseDelegateDefault='xdg-open'
32848CGMDecodeDelegateDefault='ralcgm'
32849CatDelegateDefault='cat'
32850DNGDecodeDelegateDefault='ufraw-batch'
32851GVCDecodeDelegateDefault='dot'
32852DVIDecodeDelegateDefault='dvips'
32853EchoDelegateDefault='echo'
32854EditorDelegateDefault='xterm'
32855FIGDecodeDelegateDefault='fig2dev'
32856ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32857DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32858MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32859GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032860HPGLDecodeDelegateDefault='hp2xx'
32861HTMLDecodeDelegateDefault='html2ps'
32862ILBMDecodeDelegateDefault='ilbmtoppm'
32863ILBMEncodeDelegateDefault='ppmtoilbm'
32864LPDelegateDefault='lp'
32865LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032866LaunchDelegateDefault='gimp'
32867MANDelegateDefault='groff'
32868MPEGDecodeDelegateDefault='ffmpeg'
32869MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032870MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032871MVDelegateDefault='mv'
32872PCLDelegateDefault='pcl6'
32873PGPDecodeDelegateDefault='pgpv'
32874POVDelegateDefault='povray'
32875if test "$native_win32_build" = 'yes'; then
32876 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032877elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032878 PSDelegateDefault='gsc'
32879else
32880 PSDelegateDefault='gs'
32881fi
32882RLEEncodeDelegateDefault='rawtorle'
32883RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032884RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032885SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032886SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032887TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032888UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032889WMFDecodeDelegateDefault='wmf2eps'
32890WWWDecodeDelegateDefault='curl'
32891XPSDelegateDefault='gxps'
32892ZipDelegateDefault='gzip'
32893
32894# Search for delegates
32895# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32896set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032899if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032900 $as_echo_n "(cached) " >&6
32901else
32902 case $AutotraceDecodeDelegate in
32903 [\\/]* | ?:[\\/]*)
32904 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32905 ;;
32906 *)
32907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910 IFS=$as_save_IFS
32911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032914 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916 break 2
32917 fi
32918done
cristy8b350f62009-11-15 23:12:43 +000032919 done
cristy3ed852e2009-09-05 21:47:34 +000032920IFS=$as_save_IFS
32921
32922 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32923 ;;
32924esac
32925fi
32926AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32927if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "$AutotraceDecodeDelegate" >&6; }
32930else
cristy8b350f62009-11-15 23:12:43 +000032931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo "no" >&6; }
32933fi
32934
32935
cristy3ed852e2009-09-05 21:47:34 +000032936# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32937set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032940if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032941 $as_echo_n "(cached) " >&6
32942else
32943 case $BlenderDecodeDelegate in
32944 [\\/]* | ?:[\\/]*)
32945 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32946 ;;
32947 *)
32948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32949for as_dir in $PATH
32950do
32951 IFS=$as_save_IFS
32952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032955 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957 break 2
32958 fi
32959done
cristy8b350f62009-11-15 23:12:43 +000032960 done
cristy3ed852e2009-09-05 21:47:34 +000032961IFS=$as_save_IFS
32962
32963 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32964 ;;
32965esac
32966fi
32967BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32968if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "$BlenderDecodeDelegate" >&6; }
32971else
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "no" >&6; }
32974fi
32975
32976
32977# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32978set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032981if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032982 $as_echo_n "(cached) " >&6
32983else
32984 case $BZIPDelegate in
32985 [\\/]* | ?:[\\/]*)
32986 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32987 ;;
32988 *)
32989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992 IFS=$as_save_IFS
32993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032996 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998 break 2
32999 fi
33000done
cristy8b350f62009-11-15 23:12:43 +000033001 done
cristy3ed852e2009-09-05 21:47:34 +000033002IFS=$as_save_IFS
33003
33004 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33005 ;;
33006esac
33007fi
33008BZIPDelegate=$ac_cv_path_BZIPDelegate
33009if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$BZIPDelegate" >&6; }
33012else
cristy8b350f62009-11-15 23:12:43 +000033013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo "no" >&6; }
33015fi
33016
33017
33018# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
33019set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033022if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033023 $as_echo_n "(cached) " >&6
33024else
33025 case $BrowseDelegate in
33026 [\\/]* | ?:[\\/]*)
33027 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33028 ;;
33029 *)
33030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33031for as_dir in $PATH
33032do
33033 IFS=$as_save_IFS
33034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033037 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039 break 2
33040 fi
33041done
cristy8b350f62009-11-15 23:12:43 +000033042 done
cristy3ed852e2009-09-05 21:47:34 +000033043IFS=$as_save_IFS
33044
33045 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
33046 ;;
33047esac
33048fi
33049BrowseDelegate=$ac_cv_path_BrowseDelegate
33050if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "$BrowseDelegate" >&6; }
33053else
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "no" >&6; }
33056fi
33057
33058
33059# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33060set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033063if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033064 $as_echo_n "(cached) " >&6
33065else
33066 case $CGMDecodeDelegate in
33067 [\\/]* | ?:[\\/]*)
33068 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33069 ;;
33070 *)
33071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33072for as_dir in $PATH
33073do
33074 IFS=$as_save_IFS
33075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033078 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080 break 2
33081 fi
33082done
cristy8b350f62009-11-15 23:12:43 +000033083 done
cristy3ed852e2009-09-05 21:47:34 +000033084IFS=$as_save_IFS
33085
33086 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33087 ;;
33088esac
33089fi
33090CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33091if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "$CGMDecodeDelegate" >&6; }
33094else
cristy8b350f62009-11-15 23:12:43 +000033095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo "no" >&6; }
33097fi
33098
33099
33100# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33101set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033104if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033105 $as_echo_n "(cached) " >&6
33106else
33107 case $CatDelegate in
33108 [\\/]* | ?:[\\/]*)
33109 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33110 ;;
33111 *)
33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33113for as_dir in $PATH
33114do
33115 IFS=$as_save_IFS
33116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033119 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121 break 2
33122 fi
33123done
cristy8b350f62009-11-15 23:12:43 +000033124 done
cristy3ed852e2009-09-05 21:47:34 +000033125IFS=$as_save_IFS
33126
33127 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33128 ;;
33129esac
33130fi
33131CatDelegate=$ac_cv_path_CatDelegate
33132if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "$CatDelegate" >&6; }
33135else
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "no" >&6; }
33138fi
33139
33140
33141# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33142set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033145if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033146 $as_echo_n "(cached) " >&6
33147else
33148 case $DNGDecodeDelegate in
33149 [\\/]* | ?:[\\/]*)
33150 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33151 ;;
33152 *)
33153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154for as_dir in $PATH
33155do
33156 IFS=$as_save_IFS
33157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033160 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162 break 2
33163 fi
33164done
cristy8b350f62009-11-15 23:12:43 +000033165 done
cristy3ed852e2009-09-05 21:47:34 +000033166IFS=$as_save_IFS
33167
33168 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33169 ;;
33170esac
33171fi
33172DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33173if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "$DNGDecodeDelegate" >&6; }
33176else
cristy8b350f62009-11-15 23:12:43 +000033177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo "no" >&6; }
33179fi
33180
33181
33182# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33183set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033186if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033187 $as_echo_n "(cached) " >&6
33188else
33189 case $GVCDecodeDelegate in
33190 [\\/]* | ?:[\\/]*)
33191 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33192 ;;
33193 *)
33194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33195for as_dir in $PATH
33196do
33197 IFS=$as_save_IFS
33198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033201 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203 break 2
33204 fi
33205done
cristy8b350f62009-11-15 23:12:43 +000033206 done
cristy3ed852e2009-09-05 21:47:34 +000033207IFS=$as_save_IFS
33208
33209 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33210 ;;
33211esac
33212fi
33213GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33214if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "$GVCDecodeDelegate" >&6; }
33217else
cristy8b350f62009-11-15 23:12:43 +000033218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo "no" >&6; }
33220fi
33221
33222
33223# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33224set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033227if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033228 $as_echo_n "(cached) " >&6
33229else
33230 case $DVIDecodeDelegate in
33231 [\\/]* | ?:[\\/]*)
33232 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33233 ;;
33234 *)
33235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033242 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244 break 2
33245 fi
33246done
cristy8b350f62009-11-15 23:12:43 +000033247 done
cristy3ed852e2009-09-05 21:47:34 +000033248IFS=$as_save_IFS
33249
33250 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33251 ;;
33252esac
33253fi
33254DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33255if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "$DVIDecodeDelegate" >&6; }
33258else
cristy8b350f62009-11-15 23:12:43 +000033259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo "no" >&6; }
33261fi
33262
33263
33264# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33265set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033268if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033269 $as_echo_n "(cached) " >&6
33270else
33271 case $EchoDelegate in
33272 [\\/]* | ?:[\\/]*)
33273 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33274 ;;
33275 *)
33276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33277for as_dir in $PATH
33278do
33279 IFS=$as_save_IFS
33280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033283 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285 break 2
33286 fi
33287done
cristy8b350f62009-11-15 23:12:43 +000033288 done
cristy3ed852e2009-09-05 21:47:34 +000033289IFS=$as_save_IFS
33290
33291 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33292 ;;
33293esac
33294fi
33295EchoDelegate=$ac_cv_path_EchoDelegate
33296if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "$EchoDelegate" >&6; }
33299else
cristy8b350f62009-11-15 23:12:43 +000033300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo "no" >&6; }
33302fi
33303
33304
33305# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33306set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033309if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033310 $as_echo_n "(cached) " >&6
33311else
33312 case $EditorDelegate in
33313 [\\/]* | ?:[\\/]*)
33314 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33315 ;;
33316 *)
33317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318for as_dir in $PATH
33319do
33320 IFS=$as_save_IFS
33321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033324 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326 break 2
33327 fi
33328done
cristy8b350f62009-11-15 23:12:43 +000033329 done
cristy3ed852e2009-09-05 21:47:34 +000033330IFS=$as_save_IFS
33331
33332 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33333 ;;
33334esac
33335fi
33336EditorDelegate=$ac_cv_path_EditorDelegate
33337if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "$EditorDelegate" >&6; }
33340else
cristy8b350f62009-11-15 23:12:43 +000033341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo "no" >&6; }
33343fi
33344
33345
33346# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33347set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033350if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033351 $as_echo_n "(cached) " >&6
33352else
33353 case $FIGDecodeDelegate in
33354 [\\/]* | ?:[\\/]*)
33355 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33356 ;;
33357 *)
33358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33359for as_dir in $PATH
33360do
33361 IFS=$as_save_IFS
33362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033365 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367 break 2
33368 fi
33369done
cristy8b350f62009-11-15 23:12:43 +000033370 done
cristy3ed852e2009-09-05 21:47:34 +000033371IFS=$as_save_IFS
33372
33373 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33374 ;;
33375esac
33376fi
33377FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33378if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "$FIGDecodeDelegate" >&6; }
33381else
cristy8b350f62009-11-15 23:12:43 +000033382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo "no" >&6; }
33384fi
33385
33386
33387# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33388set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $ConvertDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033406 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
33414 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33415 ;;
33416esac
33417fi
33418ConvertDelegate=$ac_cv_path_ConvertDelegate
33419if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "$ConvertDelegate" >&6; }
33422else
cristy8b350f62009-11-15 23:12:43 +000033423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo "no" >&6; }
33425fi
33426
33427
33428# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33429set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033432if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033433 $as_echo_n "(cached) " >&6
33434else
33435 case $DisplayDelegate in
33436 [\\/]* | ?:[\\/]*)
33437 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33438 ;;
33439 *)
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441for as_dir in $PATH
33442do
33443 IFS=$as_save_IFS
33444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033447 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449 break 2
33450 fi
33451done
cristy8b350f62009-11-15 23:12:43 +000033452 done
cristy3ed852e2009-09-05 21:47:34 +000033453IFS=$as_save_IFS
33454
33455 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33456 ;;
33457esac
33458fi
33459DisplayDelegate=$ac_cv_path_DisplayDelegate
33460if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "$DisplayDelegate" >&6; }
33463else
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "no" >&6; }
33466fi
33467
33468
33469# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33470set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033473if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033474 $as_echo_n "(cached) " >&6
33475else
33476 case $MogrifyDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033488 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490 break 2
33491 fi
33492done
cristy8b350f62009-11-15 23:12:43 +000033493 done
cristy3ed852e2009-09-05 21:47:34 +000033494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33497 ;;
33498esac
33499fi
33500MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33501if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$MogrifyDelegate" >&6; }
33504else
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "no" >&6; }
33507fi
33508
33509
33510# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33511set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033514if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033515 $as_echo_n "(cached) " >&6
33516else
33517 case $GnuplotDecodeDelegate in
33518 [\\/]* | ?:[\\/]*)
33519 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33520 ;;
33521 *)
33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33523for as_dir in $PATH
33524do
33525 IFS=$as_save_IFS
33526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033529 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531 break 2
33532 fi
33533done
cristy8b350f62009-11-15 23:12:43 +000033534 done
cristy3ed852e2009-09-05 21:47:34 +000033535IFS=$as_save_IFS
33536
33537 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33538 ;;
33539esac
33540fi
33541GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33542if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "$GnuplotDecodeDelegate" >&6; }
33545else
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo "no" >&6; }
33548fi
33549
33550
cristy3ed852e2009-09-05 21:47:34 +000033551# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33552set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 case $HPGLDecodeDelegate in
33559 [\\/]* | ?:[\\/]*)
33560 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33561 ;;
33562 *)
33563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33564for as_dir in $PATH
33565do
33566 IFS=$as_save_IFS
33567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033570 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572 break 2
33573 fi
33574done
cristy8b350f62009-11-15 23:12:43 +000033575 done
cristy3ed852e2009-09-05 21:47:34 +000033576IFS=$as_save_IFS
33577
33578 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33579 ;;
33580esac
33581fi
33582HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33583if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$HPGLDecodeDelegate" >&6; }
33586else
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "no" >&6; }
33589fi
33590
33591
33592# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33593set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033596if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033597 $as_echo_n "(cached) " >&6
33598else
33599 case $HTMLDecodeDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033611 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613 break 2
33614 fi
33615done
cristy8b350f62009-11-15 23:12:43 +000033616 done
cristy3ed852e2009-09-05 21:47:34 +000033617IFS=$as_save_IFS
33618
33619 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33620 ;;
33621esac
33622fi
33623HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33624if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "$HTMLDecodeDelegate" >&6; }
33627else
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "no" >&6; }
33630fi
33631
33632
33633# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33634set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033637if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033638 $as_echo_n "(cached) " >&6
33639else
33640 case $ILBMDecodeDelegate in
33641 [\\/]* | ?:[\\/]*)
33642 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33643 ;;
33644 *)
33645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33646for as_dir in $PATH
33647do
33648 IFS=$as_save_IFS
33649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033652 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654 break 2
33655 fi
33656done
cristy8b350f62009-11-15 23:12:43 +000033657 done
cristy3ed852e2009-09-05 21:47:34 +000033658IFS=$as_save_IFS
33659
33660 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33661 ;;
33662esac
33663fi
33664ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33665if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "$ILBMDecodeDelegate" >&6; }
33668else
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "no" >&6; }
33671fi
33672
33673
33674# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33675set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033678if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033679 $as_echo_n "(cached) " >&6
33680else
33681 case $ILBMEncodeDelegate in
33682 [\\/]* | ?:[\\/]*)
33683 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33684 ;;
33685 *)
33686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33687for as_dir in $PATH
33688do
33689 IFS=$as_save_IFS
33690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033693 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695 break 2
33696 fi
33697done
cristy8b350f62009-11-15 23:12:43 +000033698 done
cristy3ed852e2009-09-05 21:47:34 +000033699IFS=$as_save_IFS
33700
33701 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33702 ;;
33703esac
33704fi
33705ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33706if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "$ILBMEncodeDelegate" >&6; }
33709else
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "no" >&6; }
33712fi
33713
33714
33715# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33716set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033719if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033720 $as_echo_n "(cached) " >&6
33721else
33722 case $LPDelegate in
33723 [\\/]* | ?:[\\/]*)
33724 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33725 ;;
33726 *)
33727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33728for as_dir in $PATH
33729do
33730 IFS=$as_save_IFS
33731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033734 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736 break 2
33737 fi
33738done
cristy8b350f62009-11-15 23:12:43 +000033739 done
cristy3ed852e2009-09-05 21:47:34 +000033740IFS=$as_save_IFS
33741
33742 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33743 ;;
33744esac
33745fi
33746LPDelegate=$ac_cv_path_LPDelegate
33747if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "$LPDelegate" >&6; }
33750else
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo "no" >&6; }
33753fi
33754
33755
33756# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33757set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033760if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033761 $as_echo_n "(cached) " >&6
33762else
33763 case $LPRDelegate in
33764 [\\/]* | ?:[\\/]*)
33765 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33766 ;;
33767 *)
33768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33769for as_dir in $PATH
33770do
33771 IFS=$as_save_IFS
33772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033775 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777 break 2
33778 fi
33779done
cristy8b350f62009-11-15 23:12:43 +000033780 done
cristy3ed852e2009-09-05 21:47:34 +000033781IFS=$as_save_IFS
33782
33783 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33784 ;;
33785esac
33786fi
33787LPRDelegate=$ac_cv_path_LPRDelegate
33788if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$LPRDelegate" >&6; }
33791else
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "no" >&6; }
33794fi
33795
33796
cristy3ed852e2009-09-05 21:47:34 +000033797# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33798set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033801if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033802 $as_echo_n "(cached) " >&6
33803else
33804 case $LaunchDelegate in
33805 [\\/]* | ?:[\\/]*)
33806 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33807 ;;
33808 *)
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812 IFS=$as_save_IFS
33813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033816 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818 break 2
33819 fi
33820done
cristy8b350f62009-11-15 23:12:43 +000033821 done
cristy3ed852e2009-09-05 21:47:34 +000033822IFS=$as_save_IFS
33823
33824 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33825 ;;
33826esac
33827fi
33828LaunchDelegate=$ac_cv_path_LaunchDelegate
33829if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "$LaunchDelegate" >&6; }
33832else
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "no" >&6; }
33835fi
33836
33837
33838# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33839set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033842if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033843 $as_echo_n "(cached) " >&6
33844else
33845 case $MANDelegate in
33846 [\\/]* | ?:[\\/]*)
33847 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33848 ;;
33849 *)
33850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033857 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33866 ;;
33867esac
33868fi
33869MANDelegate=$ac_cv_path_MANDelegate
33870if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$MANDelegate" >&6; }
33873else
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "no" >&6; }
33876fi
33877
33878
33879# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33880set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033883if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033884 $as_echo_n "(cached) " >&6
33885else
33886 case $MPEGDecodeDelegate in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033898 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900 break 2
33901 fi
33902done
cristy8b350f62009-11-15 23:12:43 +000033903 done
cristy3ed852e2009-09-05 21:47:34 +000033904IFS=$as_save_IFS
33905
33906 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33907 ;;
33908esac
33909fi
33910MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33911if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "$MPEGDecodeDelegate" >&6; }
33914else
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "no" >&6; }
33917fi
33918
33919
33920# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33921set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033924if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033925 $as_echo_n "(cached) " >&6
33926else
33927 case $MPEGEncodeDelegate in
33928 [\\/]* | ?:[\\/]*)
33929 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33930 ;;
33931 *)
33932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935 IFS=$as_save_IFS
33936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033939 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941 break 2
33942 fi
33943done
cristy8b350f62009-11-15 23:12:43 +000033944 done
cristy3ed852e2009-09-05 21:47:34 +000033945IFS=$as_save_IFS
33946
33947 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33948 ;;
33949esac
33950fi
33951MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33952if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "$MPEGEncodeDelegate" >&6; }
33955else
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "no" >&6; }
33958fi
33959
33960
cristy935c86e2010-06-05 23:50:07 +000033961# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33962set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033965if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033966 $as_echo_n "(cached) " >&6
33967else
33968 case $MrSIDDecodeDelegate in
33969 [\\/]* | ?:[\\/]*)
33970 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33971 ;;
33972 *)
33973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33974for as_dir in $PATH
33975do
33976 IFS=$as_save_IFS
33977 test -z "$as_dir" && as_dir=.
33978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033980 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33982 break 2
33983 fi
33984done
33985 done
33986IFS=$as_save_IFS
33987
33988 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33989 ;;
33990esac
33991fi
33992MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33993if test -n "$MrSIDDecodeDelegate"; then
33994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33995$as_echo "$MrSIDDecodeDelegate" >&6; }
33996else
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998$as_echo "no" >&6; }
33999fi
34000
34001
cristy3ed852e2009-09-05 21:47:34 +000034002# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34003set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034006if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034007 $as_echo_n "(cached) " >&6
34008else
34009 case $MVDelegate in
34010 [\\/]* | ?:[\\/]*)
34011 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34012 ;;
34013 *)
34014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34015for as_dir in $PATH
34016do
34017 IFS=$as_save_IFS
34018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034021 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023 break 2
34024 fi
34025done
cristy8b350f62009-11-15 23:12:43 +000034026 done
cristy3ed852e2009-09-05 21:47:34 +000034027IFS=$as_save_IFS
34028
34029 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34030 ;;
34031esac
34032fi
34033MVDelegate=$ac_cv_path_MVDelegate
34034if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo "$MVDelegate" >&6; }
34037else
cristy8b350f62009-11-15 23:12:43 +000034038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo "no" >&6; }
34040fi
34041
34042
34043# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34044set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034047if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034048 $as_echo_n "(cached) " >&6
34049else
34050 case $PCLDelegate in
34051 [\\/]* | ?:[\\/]*)
34052 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34053 ;;
34054 *)
34055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34056for as_dir in $PATH
34057do
34058 IFS=$as_save_IFS
34059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034062 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064 break 2
34065 fi
34066done
cristy8b350f62009-11-15 23:12:43 +000034067 done
cristy3ed852e2009-09-05 21:47:34 +000034068IFS=$as_save_IFS
34069
34070 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34071 ;;
34072esac
34073fi
34074PCLDelegate=$ac_cv_path_PCLDelegate
34075if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "$PCLDelegate" >&6; }
34078else
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo "no" >&6; }
34081fi
34082
34083
34084# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34085set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034088if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034089 $as_echo_n "(cached) " >&6
34090else
34091 case $PGPDecodeDelegate in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034103 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105 break 2
34106 fi
34107done
cristy8b350f62009-11-15 23:12:43 +000034108 done
cristy3ed852e2009-09-05 21:47:34 +000034109IFS=$as_save_IFS
34110
34111 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34112 ;;
34113esac
34114fi
34115PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34116if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo "$PGPDecodeDelegate" >&6; }
34119else
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "no" >&6; }
34122fi
34123
34124
34125# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34126set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034129if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034130 $as_echo_n "(cached) " >&6
34131else
34132 case $POVDelegate in
34133 [\\/]* | ?:[\\/]*)
34134 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34135 ;;
34136 *)
34137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34138for as_dir in $PATH
34139do
34140 IFS=$as_save_IFS
34141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034144 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146 break 2
34147 fi
34148done
cristy8b350f62009-11-15 23:12:43 +000034149 done
cristy3ed852e2009-09-05 21:47:34 +000034150IFS=$as_save_IFS
34151
34152 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34153 ;;
34154esac
34155fi
34156POVDelegate=$ac_cv_path_POVDelegate
34157if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$POVDelegate" >&6; }
34160else
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "no" >&6; }
34163fi
34164
34165
34166for ac_prog in gsx gsc "$PSDelegateDefault"
34167do
34168 # Extract the first word of "$ac_prog", so it can be a program name with args.
34169set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034172if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034173 $as_echo_n "(cached) " >&6
34174else
34175 case $PSDelegate in
34176 [\\/]* | ?:[\\/]*)
34177 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34178 ;;
34179 *)
34180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34181for as_dir in $PATH
34182do
34183 IFS=$as_save_IFS
34184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034187 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189 break 2
34190 fi
34191done
cristy8b350f62009-11-15 23:12:43 +000034192 done
cristy3ed852e2009-09-05 21:47:34 +000034193IFS=$as_save_IFS
34194
34195 ;;
34196esac
34197fi
34198PSDelegate=$ac_cv_path_PSDelegate
34199if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo "$PSDelegate" >&6; }
34202else
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "no" >&6; }
34205fi
34206
34207
34208 test -n "$PSDelegate" && break
34209done
34210test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34211
34212# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34213set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034216if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034217 $as_echo_n "(cached) " >&6
34218else
34219 case $RLEEncodeDelegate in
34220 [\\/]* | ?:[\\/]*)
34221 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34222 ;;
34223 *)
34224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225for as_dir in $PATH
34226do
34227 IFS=$as_save_IFS
34228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034231 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233 break 2
34234 fi
34235done
cristy8b350f62009-11-15 23:12:43 +000034236 done
cristy3ed852e2009-09-05 21:47:34 +000034237IFS=$as_save_IFS
34238
34239 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34240 ;;
34241esac
34242fi
34243RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34244if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo "$RLEEncodeDelegate" >&6; }
34247else
cristy8b350f62009-11-15 23:12:43 +000034248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034249$as_echo "no" >&6; }
34250fi
34251
34252
34253# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34254set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034257if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034258 $as_echo_n "(cached) " >&6
34259else
34260 case $RMDelegate in
34261 [\\/]* | ?:[\\/]*)
34262 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34263 ;;
34264 *)
34265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34266for as_dir in $PATH
34267do
34268 IFS=$as_save_IFS
34269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034272 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274 break 2
34275 fi
34276done
cristy8b350f62009-11-15 23:12:43 +000034277 done
cristy3ed852e2009-09-05 21:47:34 +000034278IFS=$as_save_IFS
34279
34280 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34281 ;;
34282esac
34283fi
34284RMDelegate=$ac_cv_path_RMDelegate
34285if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo "$RMDelegate" >&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
cristy4689cf02010-02-17 21:15:45 +000034294# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34295set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034298if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034299 $as_echo_n "(cached) " >&6
34300else
34301 case $RSVGDecodeDelegate in
34302 [\\/]* | ?:[\\/]*)
34303 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34304 ;;
34305 *)
34306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34307for as_dir in $PATH
34308do
34309 IFS=$as_save_IFS
34310 test -z "$as_dir" && as_dir=.
34311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034313 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34315 break 2
34316 fi
34317done
34318 done
34319IFS=$as_save_IFS
34320
34321 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34322 ;;
34323esac
34324fi
34325RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34326if test -n "$RSVGDecodeDelegate"; then
34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34328$as_echo "$RSVGDecodeDelegate" >&6; }
34329else
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34331$as_echo "no" >&6; }
34332fi
34333
34334
cristy3ed852e2009-09-05 21:47:34 +000034335# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034339if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034340 $as_echo_n "(cached) " >&6
34341else
34342 case $SCANDecodeDelegate in
34343 [\\/]* | ?:[\\/]*)
34344 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34345 ;;
34346 *)
34347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350 IFS=$as_save_IFS
34351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034354 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356 break 2
34357 fi
34358done
cristy8b350f62009-11-15 23:12:43 +000034359 done
cristy3ed852e2009-09-05 21:47:34 +000034360IFS=$as_save_IFS
34361
34362 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34363 ;;
34364esac
34365fi
34366SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34367if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034369$as_echo "$SCANDecodeDelegate" >&6; }
34370else
cristy8b350f62009-11-15 23:12:43 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo "no" >&6; }
34373fi
34374
34375
cristyec6934f2012-08-14 18:38:40 +000034376# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34377set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34379$as_echo_n "checking for $ac_word... " >&6; }
34380if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34381 $as_echo_n "(cached) " >&6
34382else
34383 case $SVGDecodeDelegate in
34384 [\\/]* | ?:[\\/]*)
34385 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34386 ;;
34387 *)
34388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391 IFS=$as_save_IFS
34392 test -z "$as_dir" && as_dir=.
34393 for ac_exec_ext in '' $ac_executable_extensions; do
34394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34395 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34397 break 2
34398 fi
34399done
34400 done
34401IFS=$as_save_IFS
34402
34403 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34404 ;;
34405esac
34406fi
34407SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34408if test -n "$SVGDecodeDelegate"; then
34409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34410$as_echo "$SVGDecodeDelegate" >&6; }
34411else
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413$as_echo "no" >&6; }
34414fi
34415
34416
cristy3ed852e2009-09-05 21:47:34 +000034417# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34418set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034421if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034422 $as_echo_n "(cached) " >&6
34423else
34424 case $TXTDelegate in
34425 [\\/]* | ?:[\\/]*)
34426 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34427 ;;
34428 *)
34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034436 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438 break 2
34439 fi
34440done
cristy8b350f62009-11-15 23:12:43 +000034441 done
cristy3ed852e2009-09-05 21:47:34 +000034442IFS=$as_save_IFS
34443
34444 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34445 ;;
34446esac
34447fi
34448TXTDelegate=$ac_cv_path_TXTDelegate
34449if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "$TXTDelegate" >&6; }
34452else
cristy8b350f62009-11-15 23:12:43 +000034453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo "no" >&6; }
34455fi
34456
34457
cristy5ac9ac82010-07-29 13:24:24 +000034458# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34459set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034462if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034463 $as_echo_n "(cached) " >&6
34464else
34465 case $UniconvertorDelegate in
34466 [\\/]* | ?:[\\/]*)
34467 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34468 ;;
34469 *)
34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473 IFS=$as_save_IFS
34474 test -z "$as_dir" && as_dir=.
34475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034477 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34479 break 2
34480 fi
34481done
34482 done
34483IFS=$as_save_IFS
34484
34485 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34486 ;;
34487esac
34488fi
34489UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34490if test -n "$UniconvertorDelegate"; then
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34492$as_echo "$UniconvertorDelegate" >&6; }
34493else
34494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495$as_echo "no" >&6; }
34496fi
34497
34498
cristy3ed852e2009-09-05 21:47:34 +000034499# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34500set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034503if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034504 $as_echo_n "(cached) " >&6
34505else
34506 case $WMFDecodeDelegate in
34507 [\\/]* | ?:[\\/]*)
34508 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34509 ;;
34510 *)
34511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514 IFS=$as_save_IFS
34515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034518 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520 break 2
34521 fi
34522done
cristy8b350f62009-11-15 23:12:43 +000034523 done
cristy3ed852e2009-09-05 21:47:34 +000034524IFS=$as_save_IFS
34525
34526 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34527 ;;
34528esac
34529fi
34530WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34531if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034533$as_echo "$WMFDecodeDelegate" >&6; }
34534else
cristy8b350f62009-11-15 23:12:43 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034536$as_echo "no" >&6; }
34537fi
34538
34539
34540# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34541set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 case $WWWDecodeDelegate in
34548 [\\/]* | ?:[\\/]*)
34549 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34550 ;;
34551 *)
34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555 IFS=$as_save_IFS
34556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034559 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561 break 2
34562 fi
34563done
cristy8b350f62009-11-15 23:12:43 +000034564 done
cristy3ed852e2009-09-05 21:47:34 +000034565IFS=$as_save_IFS
34566
34567 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34568 ;;
34569esac
34570fi
34571WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34572if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo "$WWWDecodeDelegate" >&6; }
34575else
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "no" >&6; }
34578fi
34579
34580
34581# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34582set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034585if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034586 $as_echo_n "(cached) " >&6
34587else
34588 case $XPSDelegate in
34589 [\\/]* | ?:[\\/]*)
34590 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34591 ;;
34592 *)
34593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34594for as_dir in $PATH
34595do
34596 IFS=$as_save_IFS
34597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034600 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602 break 2
34603 fi
34604done
cristy8b350f62009-11-15 23:12:43 +000034605 done
cristy3ed852e2009-09-05 21:47:34 +000034606IFS=$as_save_IFS
34607
34608 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34609 ;;
34610esac
34611fi
34612XPSDelegate=$ac_cv_path_XPSDelegate
34613if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "$XPSDelegate" >&6; }
34616else
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "no" >&6; }
34619fi
34620
34621
34622# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34623set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034626if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034627 $as_echo_n "(cached) " >&6
34628else
34629 case $ZipDelegate in
34630 [\\/]* | ?:[\\/]*)
34631 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34632 ;;
34633 *)
34634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637 IFS=$as_save_IFS
34638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034641 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643 break 2
34644 fi
34645done
cristy8b350f62009-11-15 23:12:43 +000034646 done
cristy3ed852e2009-09-05 21:47:34 +000034647IFS=$as_save_IFS
34648
34649 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34650 ;;
34651esac
34652fi
34653ZipDelegate=$ac_cv_path_ZipDelegate
34654if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo "$ZipDelegate" >&6; }
34657else
cristy8b350f62009-11-15 23:12:43 +000034658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo "no" >&6; }
34660fi
34661
34662
34663
34664# Prefer lpr to lp; lp needs options tacked on.
34665if test "$LPRDelegate" != no; then
34666 PrintDelegate="$LPRDelegate"
34667else
34668 PrintDelegate="$LPDelegate -c -s"
34669fi
34670
34671
34672# Installed ImageMagick utiltity paths
34673ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34674DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34675MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34676
34677# Set delegate booleans
34678have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34679have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34680have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34681have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34682have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034683have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034684have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34685have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034686have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34687have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34688
34689#
34690# Test for font directories
34691#
34692type_include_files=''
34693
cristy430a7312010-01-21 20:44:04 +000034694# Dejavu fonts.
34695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34696$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34697dejavu_font_dir=''
34698if test "${with_dejavu_font_dir}" != 'default'; then
34699 dejavu_font_dir="${with_dejavu_font_dir}/"
34700else
34701 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34702 if test -f "${font_dir}DejaVuSerif.ttf"; then
34703 dejavu_font_dir="${font_dir}"
34704 break 1
34705 fi
34706 done
34707fi
34708if test "${dejavu_font_dir}x" != 'x'; then
34709 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034710 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34711$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034712else
cristy09b53e12011-10-14 12:47:22 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34714$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034715fi
34716
34717
cristy3ed852e2009-09-05 21:47:34 +000034718# Windows
34719windows_font_dir=''
34720if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34721 windows_font_dir="${with_windows_font_dir}/"
34722fi
cristy430a7312010-01-21 20:44:04 +000034723if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034724 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34725 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34726 fi
34727 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34728 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34729 fi
34730 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34731 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34732 fi
34733fi
cristy430a7312010-01-21 20:44:04 +000034734if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034735 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34736fi
34737
34738
34739# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34742ghostscript_font_dir=''
34743if test "${with_gs_font_dir}" != 'default'; then
34744 ghostscript_font_dir="${with_gs_font_dir}/"
34745else
34746 if test "${native_win32_build}" = 'yes'; then
34747 # Native Windows Build
34748 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34749 if test -f "${font_dir}a010013l.pfb"; then
34750 ghostscript_font_dir="$font_dir"
34751 break 1
34752 fi
34753 done
34754 if test "${PSDelegate}" != 'gswin32c'; then
34755 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34756 fi
34757 else
34758 # Linux / Mac OS X / Unix Build
34759 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
34760 if test -f "${font_dir}a010013l.pfb"; then
34761 ghostscript_font_dir="${font_dir}"
34762 break 1
34763 fi
34764 done
34765 if test "${ghostscript_font_dir}x" = 'x'; then
34766 if test "$PSDelegate" != 'gs'; then
34767 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34768 fi
34769 fi
34770 fi
34771fi
34772if test "${ghostscript_font_dir}x" != 'x'; then
34773 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34775$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034776else
cristy09b53e12011-10-14 12:47:22 +000034777 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34778$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034779fi
34780
34781case "${build_os}" in
34782 mingw* )
34783 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34784 ;;
34785esac
34786
34787
34788
34789#
34790# Handle case where user doesn't want frozen paths
34791#
34792if test "$with_frozenpaths" != 'yes'; then
34793 # Re-set delegate definitions to default (no paths)
34794 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034795 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34796 BZIPDelegate="$BZIPDelegateDefault"
34797 BrowseDelegate="$BrowseDelegateDefault"
34798 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34799 CatDelegate="$CatDelegateDefault"
34800 ConvertDelegate="$ConvertDelegateDefault"
34801 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34802 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34803 EchoDelegate="$EchoDelegateDefault"
34804 EditorDelegate="$EditorDelegateDefault"
34805 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34806 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34807 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34808 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34809 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34810 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34811 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034812 LaunchDelegate="$LaunchDelegateDefault"
34813 MANDelegate="$MANDelegateDefault"
34814 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34815 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034816 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034817 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34818 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034819 PCLDelegate="$PCLDelegateDefault"
34820 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34821 POVDelegate="$POVDelegateDefault"
34822 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034823 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34824 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034825 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034826 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034827 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034828 ShowImageDelegate="$ShowImageDelegateDefault"
34829 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034830 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034831 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34832 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34833 XPSDelegate="$XPSDelegateDefault"
34834 ZipDelegate="$ZipDelegateDefault"
34835fi
34836
34837# Delegate substitutions
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
cristy3ed852e2009-09-05 21:47:34 +000034878#
34879# RPM support.
34880#
34881RPM=''
34882for ac_prog in gnutar gtar tar
34883do
34884 # Extract the first word of "$ac_prog", so it can be a program name with args.
34885set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034888if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034889 $as_echo_n "(cached) " >&6
34890else
34891 if test -n "$TAR"; then
34892 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34893else
34894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34895for as_dir in $PATH
34896do
34897 IFS=$as_save_IFS
34898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034901 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903 break 2
34904 fi
34905done
cristy8b350f62009-11-15 23:12:43 +000034906 done
cristy3ed852e2009-09-05 21:47:34 +000034907IFS=$as_save_IFS
34908
34909fi
34910fi
34911TAR=$ac_cv_prog_TAR
34912if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034914$as_echo "$TAR" >&6; }
34915else
cristy8b350f62009-11-15 23:12:43 +000034916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo "no" >&6; }
34918fi
34919
34920
34921 test -n "$TAR" && break
34922done
34923
34924for ac_prog in perl
34925do
34926 # Extract the first word of "$ac_prog", so it can be a program name with args.
34927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034930if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034931 $as_echo_n "(cached) " >&6
34932else
34933 if test -n "$PERL"; then
34934 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34935else
34936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34937for as_dir in $PATH
34938do
34939 IFS=$as_save_IFS
34940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034943 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945 break 2
34946 fi
34947done
cristy8b350f62009-11-15 23:12:43 +000034948 done
cristy3ed852e2009-09-05 21:47:34 +000034949IFS=$as_save_IFS
34950
34951fi
34952fi
34953PERL=$ac_cv_prog_PERL
34954if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo "$PERL" >&6; }
34957else
cristy8b350f62009-11-15 23:12:43 +000034958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034959$as_echo "no" >&6; }
34960fi
34961
34962
34963 test -n "$PERL" && break
34964done
34965
34966for ac_prog in rpmbuild rpm
34967do
34968 # Extract the first word of "$ac_prog", so it can be a program name with args.
34969set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034972if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034973 $as_echo_n "(cached) " >&6
34974else
34975 if test -n "$RPM"; then
34976 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34977else
34978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34979for as_dir in $PATH
34980do
34981 IFS=$as_save_IFS
34982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034985 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987 break 2
34988 fi
34989done
cristy8b350f62009-11-15 23:12:43 +000034990 done
cristy3ed852e2009-09-05 21:47:34 +000034991IFS=$as_save_IFS
34992
34993fi
34994fi
34995RPM=$ac_cv_prog_RPM
34996if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998$as_echo "$RPM" >&6; }
34999else
cristy8b350f62009-11-15 23:12:43 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo "no" >&6; }
35002fi
35003
35004
35005 test -n "$RPM" && break
35006done
35007
35008
cristy73bd4a52010-10-05 11:24:23 +000035009ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35010
35011
35012AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35013
35014
35015AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35016
35017
35018AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35019
35020
35021 if test "x$RPM" != "x" ; then
35022 RPM_DELEGATE_TRUE=
35023 RPM_DELEGATE_FALSE='#'
35024else
35025 RPM_DELEGATE_TRUE='#'
35026 RPM_DELEGATE_FALSE=
35027fi
35028
cristy3ed852e2009-09-05 21:47:34 +000035029
35030#
35031# 7ZIP support (http://p7zip.sourceforge.net/)
35032#
35033P7ZIP=''
35034for ac_prog in 7za
35035do
35036 # Extract the first word of "$ac_prog", so it can be a program name with args.
35037set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035040if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035041 $as_echo_n "(cached) " >&6
35042else
35043 if test -n "$P7ZIP"; then
35044 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35045else
35046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35047for as_dir in $PATH
35048do
35049 IFS=$as_save_IFS
35050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035053 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055 break 2
35056 fi
35057done
cristy8b350f62009-11-15 23:12:43 +000035058 done
cristy3ed852e2009-09-05 21:47:34 +000035059IFS=$as_save_IFS
35060
35061fi
35062fi
35063P7ZIP=$ac_cv_prog_P7ZIP
35064if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035066$as_echo "$P7ZIP" >&6; }
35067else
cristy8b350f62009-11-15 23:12:43 +000035068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035069$as_echo "no" >&6; }
35070fi
35071
35072
35073 test -n "$P7ZIP" && break
35074done
35075
35076
cristy73bd4a52010-10-05 11:24:23 +000035077 if test "x$P7ZIP" != "x" ; then
35078 P7ZIP_DELEGATE_TRUE=
35079 P7ZIP_DELEGATE_FALSE='#'
35080else
35081 P7ZIP_DELEGATE_TRUE='#'
35082 P7ZIP_DELEGATE_FALSE=
35083fi
35084
cristy3ed852e2009-09-05 21:47:34 +000035085
35086#
35087# ZIP support (http://www.info-zip.org/Zip.html)
35088#
35089ZIP=''
35090for ac_prog in zip
35091do
35092 # Extract the first word of "$ac_prog", so it can be a program name with args.
35093set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035096if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035097 $as_echo_n "(cached) " >&6
35098else
35099 if test -n "$ZIP"; then
35100 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35101else
35102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35103for as_dir in $PATH
35104do
35105 IFS=$as_save_IFS
35106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035109 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111 break 2
35112 fi
35113done
cristy8b350f62009-11-15 23:12:43 +000035114 done
cristy3ed852e2009-09-05 21:47:34 +000035115IFS=$as_save_IFS
35116
35117fi
35118fi
35119ZIP=$ac_cv_prog_ZIP
35120if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035122$as_echo "$ZIP" >&6; }
35123else
cristy8b350f62009-11-15 23:12:43 +000035124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035125$as_echo "no" >&6; }
35126fi
35127
35128
35129 test -n "$ZIP" && break
35130done
35131
35132
cristy73bd4a52010-10-05 11:24:23 +000035133 if test "x$ZIP" != "x" ; then
35134 ZIP_DELEGATE_TRUE=
35135 ZIP_DELEGATE_FALSE='#'
35136else
35137 ZIP_DELEGATE_TRUE='#'
35138 ZIP_DELEGATE_FALSE=
35139fi
35140
cristy3ed852e2009-09-05 21:47:34 +000035141
35142#
35143# GhostPCL related configuration.
35144#
35145PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035146PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035147PCLMonoDevice=pbmraw
35148if test -z "$PCLVersion"; then
35149 PCLVersion='unknown'
35150fi
35151if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035152 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35153$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35157$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035158 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo_n "checking for pcl color device... " >&6; }
35161 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35162 :
35163 else
35164 PCLColorDevice=ppmraw
35165 fi
cristy09b53e12011-10-14 12:47:22 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35167$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035168
35169 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo_n "checking for pcl CMYK device... " >&6; }
35172 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35173 :
35174 else
35175 PCLCMYKDevice=$PCLColorDevice
35176 fi
cristy09b53e12011-10-14 12:47:22 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35178$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035179
35180 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035182$as_echo_n "checking for pcl mono device... " >&6; }
35183 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35184 :
35185 else
35186 PCLMonoDevice=$PCLColorDevice
35187 fi
cristy09b53e12011-10-14 12:47:22 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35189$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035190fi
35191
35192
35193
35194
35195
35196
35197#
35198# GhostXPS related configuration.
35199#
35200XPSColorDevice=ppmraw
35201XPSCMYKDevice=bmpsep8
35202XPSMonoDevice=pbmraw
35203if test -z "$XPSVersion"; then
35204 XPSVersion='unknown'
35205fi
35206if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035207 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35208$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35212$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035213 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035215$as_echo_n "checking for xps color device... " >&6; }
35216 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35217 :
35218 else
35219 XPSColorDevice=ppmraw
35220 fi
cristy09b53e12011-10-14 12:47:22 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35222$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035223
35224 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo_n "checking for xps CMYK device... " >&6; }
35227 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35228 :
35229 else
35230 XPSCMYKDevice=$XPSColorDevice
35231 fi
cristy09b53e12011-10-14 12:47:22 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35233$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035234
35235 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035237$as_echo_n "checking for xps mono device... " >&6; }
35238 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35239 :
35240 else
35241 XPSMonoDevice=$XPSColorDevice
35242 fi
cristy09b53e12011-10-14 12:47:22 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35244$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035245fi
35246
35247
35248
35249
35250
35251
35252#
35253# Ghostscript related configuration.
35254#
cristya97426c2011-02-04 01:41:27 +000035255GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035256GSColorDevice=pnmraw
35257GSCMYKDevice=pam
35258GSMonoDevice=pbmraw
35259GSPDFDevice=pdfwrite
35260GSPSDevice=pswrite
35261GSEPSDevice=epswrite
35262GSVersion='unknown'
35263if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35265$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35269$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035271$as_echo_n "checking for Ghostscript version... " >&6; }
35272 if GSVersion=`$PSDelegate --version`; then
35273 :
35274 else
35275 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35276 fi
cristy09b53e12011-10-14 12:47:22 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35278$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035279
35280 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035282$as_echo_n "checking for gs alpha device... " >&6; }
35283 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35284 :
35285 else
35286 GSAlphaDevice=pnmraw
35287 fi
cristy09b53e12011-10-14 12:47:22 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35289$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035290
35291 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035293$as_echo_n "checking for gs color device... " >&6; }
35294 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35295 :
35296 else
35297 GSColorDevice=pnmraw
35298 fi
cristy09b53e12011-10-14 12:47:22 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35300$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035301
35302 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035304$as_echo_n "checking for gs CMYK device... " >&6; }
35305 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35306 :
35307 else
35308 GSCMYKDevice=bmpsep8
35309 fi
cristy09b53e12011-10-14 12:47:22 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35311$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035312
35313 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035315$as_echo_n "checking for gs mono device... " >&6; }
35316 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35317 :
35318 else
35319 GSMonoDevice=$GSColorDevice
35320 fi
cristy09b53e12011-10-14 12:47:22 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35322$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035323
35324 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo_n "checking for gs PDF writing device... " >&6; }
35327 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35328 :
35329 else
35330 GSPDFDevice=nodevice
35331 fi
cristy09b53e12011-10-14 12:47:22 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35333$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035334
35335 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo_n "checking for gs PS writing device... " >&6; }
35338 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35339 :
35340 else
35341 GSPSDevice=nodevice
35342 fi
cristy09b53e12011-10-14 12:47:22 +000035343 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35344$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035345
35346 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035348$as_echo_n "checking for gs EPS writing device... " >&6; }
35349 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35350 :
35351 else
35352 GSEPSDevice=nodevice
35353 fi
cristy09b53e12011-10-14 12:47:22 +000035354 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35355$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035356fi
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367#
35368# PerlMagick-related configuration
35369#
35370
35371# Look for PERL if PerlMagick requested
35372# If name/path of desired PERL interpreter is specified, look for that one first
35373have_perl='no'
35374if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035375 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35376$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035378$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35380$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035381 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035384if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035385 $as_echo_n "(cached) " >&6
35386else
35387 ac_cv_path_PERL="$with_perl"
35388fi
cristy8b350f62009-11-15 23:12:43 +000035389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035390$as_echo "$ac_cv_path_PERL" >&6; };
35391 PERL=$ac_cv_path_PERL
35392 have_perl="$ac_cv_path_PERL"
35393 else
35394 for ac_prog in perl perl5
35395do
35396 # Extract the first word of "$ac_prog", so it can be a program name with args.
35397set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035400if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035401 $as_echo_n "(cached) " >&6
35402else
35403 case $PERL in
35404 [\\/]* | ?:[\\/]*)
35405 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35406 ;;
35407 *)
35408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35409for as_dir in $PATH
35410do
35411 IFS=$as_save_IFS
35412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035415 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035417 break 2
35418 fi
35419done
cristy8b350f62009-11-15 23:12:43 +000035420 done
cristy3ed852e2009-09-05 21:47:34 +000035421IFS=$as_save_IFS
35422
35423 ;;
35424esac
35425fi
35426PERL=$ac_cv_path_PERL
35427if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035429$as_echo "$PERL" >&6; }
35430else
cristy8b350f62009-11-15 23:12:43 +000035431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035432$as_echo "no" >&6; }
35433fi
35434
35435
35436 test -n "$PERL" && break
35437done
35438 if test "$ac_cv_path_PERL"; then
35439 have_perl="$ac_cv_path_PERL"
35440 fi
35441 fi
35442fi
35443
cristy949301e2010-01-06 01:38:40 +000035444if test "$with_perl" != 'yes' ; then
35445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35446fi
35447
35448PERL_SUPPORTS_DESTDIR='no'
35449
cristy3ed852e2009-09-05 21:47:34 +000035450with_perl_static='no'
35451with_perl_dynamic='no'
35452if test "$have_perl" != 'no'; then
35453 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35454 with_perl_static='yes'
35455 fi
35456 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35457 with_perl_dynamic='yes'
35458 fi
35459 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035460
35461
35462
35463
35464 if test -n "$PERL"; then :
35465
35466 ax_perl_version="5.8.1"
35467
35468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35469$as_echo_n "checking for perl version... " >&6; }
35470
35471 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35472
35473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35474$as_echo "$perl_version" >&6; }
35475
35476 PERL_VERSION=$perl_version
35477
35478
35479
35480
35481
35482 # Used to indicate true or false condition
35483 ax_compare_version=false
35484
35485 # Convert the two version strings to be compared into a format that
35486 # allows a simple string comparison. The end result is that a version
35487 # string of the form 1.12.5-r617 will be converted to the form
35488 # 0001001200050617. In other words, each number is zero padded to four
35489 # digits, and non digits are removed.
35490
35491 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35492 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35493 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35494 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35495 -e 's/[^0-9]//g'`
35496
35497
35498 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35499 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35500 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35501 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35502 -e 's/[^0-9]//g'`
35503
35504
35505 ax_compare_version=`echo "x$ax_compare_version_A
35506x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35507
35508
35509
35510 if test "$ax_compare_version" = "true" ; then
35511
35512 :
35513 PERL_SUPPORTS_DESTDIR='yes'
35514
35515 else
35516 :
35517 PERL_SUPPORTS_DESTDIR='no'
35518
35519 fi
35520
35521
35522else
35523
35524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35525$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35526 PERL_SUPPORTS_DESTDIR='no'
35527
cristy3ed852e2009-09-05 21:47:34 +000035528fi
cristy73bd4a52010-10-05 11:24:23 +000035529
35530fi
35531 if test "$have_perl" != 'no'; then
35532 WITH_PERL_TRUE=
35533 WITH_PERL_FALSE='#'
35534else
35535 WITH_PERL_TRUE='#'
35536 WITH_PERL_FALSE=
35537fi
35538
35539 if test $with_perl_static = 'yes'; then
35540 WITH_PERL_STATIC_TRUE=
35541 WITH_PERL_STATIC_FALSE='#'
35542else
35543 WITH_PERL_STATIC_TRUE='#'
35544 WITH_PERL_STATIC_FALSE=
35545fi
35546
35547 if test $with_perl_dynamic = 'yes'; then
35548 WITH_PERL_DYNAMIC_TRUE=
35549 WITH_PERL_DYNAMIC_FALSE='#'
35550else
35551 WITH_PERL_DYNAMIC_TRUE='#'
35552 WITH_PERL_DYNAMIC_FALSE=
35553fi
35554
cristy3ed852e2009-09-05 21:47:34 +000035555
35556
35557# Determine path to pick up MagickCore library from for use with building PerlMagick
35558MAGICKCORE_PATH="${LIB_DIR}"
35559if test $with_perl_static = 'yes'; then
35560 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35561 libtool_objdir=$objdir
35562
35563 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035564 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035565fi
35566
35567
35568# Create a simple string containing format names for all delegate libraries
35569DELEGATES=''
35570if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35571if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35572if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35573if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35574if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35575if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35576if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35577if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35578if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35579if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35580if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35581if test "$have_jpeg" = 'yes'; then
35582 DELEGATES="$DELEGATES jpeg";
35583 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35584fi
35585if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035586if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035587if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35588if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035589if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035590if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35591if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035592if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035593if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35594if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35595if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35596if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35597if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35598if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35599if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35600
35601
35602
35603#
35604# Handle special compiler flags
35605#
35606
35607# Add '-p' if prof source profiling support enabled
35608if test "$enable_prof" = 'yes'; then
35609 CFLAGS="-p $CFLAGS"
35610 CXXFLAGS="-p $CXXFLAGS"
35611 LDFLAGS="-p $LDFLAGS"
35612fi
35613
35614# Add '-pg' if gprof source profiling support enabled
35615if test "$enable_gprof" = 'yes'; then
35616 CFLAGS="-pg $CFLAGS"
35617 CXXFLAGS="-pg $CXXFLAGS"
35618 LDFLAGS="-pg $LDFLAGS"
35619fi
35620
35621# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35622# This is a gcc-specific feature
35623if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035625$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035626if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035627 $as_echo_n "(cached) " >&6
35628else
35629 ac_check_lib_save_LIBS=$LIBS
35630LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035632/* end confdefs.h. */
35633
35634/* Override any GCC internal prototype to avoid an error.
35635 Use char because int might match the return type of a GCC
35636 builtin and then its argument prototype would still apply. */
35637#ifdef __cplusplus
35638extern "C"
35639#endif
35640char _gcov_init ();
35641int
35642main ()
35643{
35644return _gcov_init ();
35645 ;
35646 return 0;
35647}
35648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035650 ac_cv_lib_gcov__gcov_init=yes
35651else
cristy8b350f62009-11-15 23:12:43 +000035652 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035653fi
cristy8b350f62009-11-15 23:12:43 +000035654rm -f core conftest.err conftest.$ac_objext \
35655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035656LIBS=$ac_check_lib_save_LIBS
35657fi
cristy8b350f62009-11-15 23:12:43 +000035658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035659$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035660if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035661 cat >>confdefs.h <<_ACEOF
35662#define HAVE_LIBGCOV 1
35663_ACEOF
35664
35665 LIBS="-lgcov $LIBS"
35666
35667fi
35668
cristy8b350f62009-11-15 23:12:43 +000035669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035670$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035671if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035672 $as_echo_n "(cached) " >&6
35673else
35674 ac_check_lib_save_LIBS=$LIBS
35675LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035677/* end confdefs.h. */
35678
35679/* Override any GCC internal prototype to avoid an error.
35680 Use char because int might match the return type of a GCC
35681 builtin and then its argument prototype would still apply. */
35682#ifdef __cplusplus
35683extern "C"
35684#endif
35685char __gcov_init ();
35686int
35687main ()
35688{
35689return __gcov_init ();
35690 ;
35691 return 0;
35692}
35693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035694if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035695 ac_cv_lib_gcov___gcov_init=yes
35696else
cristy8b350f62009-11-15 23:12:43 +000035697 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035698fi
cristy8b350f62009-11-15 23:12:43 +000035699rm -f core conftest.err conftest.$ac_objext \
35700 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035701LIBS=$ac_check_lib_save_LIBS
35702fi
cristy8b350f62009-11-15 23:12:43 +000035703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035704$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035705if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035706 cat >>confdefs.h <<_ACEOF
35707#define HAVE_LIBGCOV 1
35708_ACEOF
35709
35710 LIBS="-lgcov $LIBS"
35711
35712fi
35713
35714 case "$target_os" in
35715 darwin*)
35716 OSX_GCOV_LDFLAG="-Wl,-single_module"
35717 ;;
35718 *)
35719 OSX_GCOV_LDFLAG=""
35720 ;;
35721 esac
35722
35723 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35724 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35725 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35726fi
35727
35728#
35729# Build library dependency list for libMagickCore
35730#
35731
35732MAGICK_LIBLTDL='' # Libltdl for build
35733MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35734MAGICK_LTDLDEPS='' # extra libltdl dependencies
35735if test "$with_ltdl" != 'no'
35736then
35737 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35738 MAGICK_API_LIBLTDL='-lltdl'
35739 fi
35740 MAGICK_LIBLTDL=${LIBLTDL}
35741 MAGICK_LTDLDEPS=${LTDLDEPS}
35742fi
35743
35744
35745
35746if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035747 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 +000035748else
cristy41cbe8a2011-10-27 01:35:18 +000035749 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 +000035750fi
35751
35752
35753#
35754# Remove extraneous spaces from output variables (asthetic)
35755#
35756X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35757X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35758X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35759X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35760
35761CC=`echo $CC | sed -e 's/ */ /g'`
35762CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35763CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35764CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35765DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35766DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35767LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35768TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35769MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35770#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35771
35772# Pass only user-provided LIBS as "global" libraries
35773LIBS=$USER_LIBS
35774
35775#AC_SUBST(CPPFLAGS)
35776
35777#AC_SUBST(LDFLAGS)
35778#AC_SUBST(X_PRE_LIBS)
35779#AC_SUBST(X_LIBS)
35780#AC_SUBST(X_EXTRA_LIBS)
35781
35782MAGICK_CFLAGS=$CFLAGS
35783MAGICK_CXXFLAGS="$CXXFLAGS"
35784MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35785MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35786MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35787MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35788
35789
35790
35791
35792
35793
35794
35795
cristyfd9dcd42010-08-08 18:07:02 +000035796
cristy3ed852e2009-09-05 21:47:34 +000035797# Set configured scripts to executable.
35798ac_config_commands="$ac_config_commands default"
35799
cristy2bd4b6e2012-07-22 15:29:11 +000035800ac_config_commands="$ac_config_commands magick.sh.in"
35801
cristy3ed852e2009-09-05 21:47:34 +000035802ac_config_commands="$ac_config_commands MagickCore-config.in"
35803
cristy3ed852e2009-09-05 21:47:34 +000035804ac_config_commands="$ac_config_commands MagickWand-config.in"
35805
cristy3ed852e2009-09-05 21:47:34 +000035806ac_config_commands="$ac_config_commands Magick++-config.in"
35807
35808ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35809
35810
cristy09b53e12011-10-14 12:47:22 +000035811{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35812$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35813{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35814$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035815cat >confcache <<\_ACEOF
35816# This file is a shell script that caches the results of configure
35817# tests run on this system so they can be shared between configure
35818# scripts and configure runs, see configure's option --config-cache.
35819# It is not useful on other systems. If it contains results you don't
35820# want to keep, you may remove or edit it.
35821#
35822# config.status only pays attention to the cache file if you give it
35823# the --recheck option to rerun configure.
35824#
35825# `ac_cv_env_foo' variables (set or unset) will be overridden when
35826# loading this file, other *unset* `ac_cv_foo' will be assigned the
35827# following values.
35828
35829_ACEOF
35830
35831# The following way of writing the cache mishandles newlines in values,
35832# but we know of no workaround that is simple, portable, and efficient.
35833# So, we kill variables containing newlines.
35834# Ultrix sh set writes to stderr and can't be redirected directly,
35835# and sets the high bit in the cache file unless we assign to the vars.
35836(
35837 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35838 eval ac_val=\$$ac_var
35839 case $ac_val in #(
35840 *${as_nl}*)
35841 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035842 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35844 esac
35845 case $ac_var in #(
35846 _ | IFS | as_nl) ;; #(
35847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035848 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035849 esac ;;
35850 esac
35851 done
35852
35853 (set) 2>&1 |
35854 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35855 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035856 # `set' does not quote correctly, so add quotes: double-quote
35857 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035858 sed -n \
35859 "s/'/'\\\\''/g;
35860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35861 ;; #(
35862 *)
35863 # `set' quotes correctly as required by POSIX, so do not add quotes.
35864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35865 ;;
35866 esac |
35867 sort
35868) |
35869 sed '
35870 /^ac_cv_env_/b end
35871 t clear
35872 :clear
35873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35874 t end
35875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35876 :end' >>confcache
35877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35878 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035879 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035880 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035881$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035882 if test ! -f "$cache_file" || test -h "$cache_file"; then
35883 cat confcache >"$cache_file"
35884 else
35885 case $cache_file in #(
35886 */* | ?:*)
35887 mv -f confcache "$cache_file"$$ &&
35888 mv -f "$cache_file"$$ "$cache_file" ;; #(
35889 *)
35890 mv -f confcache "$cache_file" ;;
35891 esac
35892 fi
35893 fi
cristy3ed852e2009-09-05 21:47:34 +000035894 else
cristy8b350f62009-11-15 23:12:43 +000035895 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035896$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35897 fi
35898fi
35899rm -f confcache
35900
35901test "x$prefix" = xNONE && prefix=$ac_default_prefix
35902# Let make expand exec_prefix.
35903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35904
35905DEFS=-DHAVE_CONFIG_H
35906
35907ac_libobjs=
35908ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035909U=
cristy3ed852e2009-09-05 21:47:34 +000035910for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35911 # 1. Remove the extension, and $U if already installed.
35912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35913 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35915 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035916 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35917 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035918done
35919LIBOBJS=$ac_libobjs
35920
35921LTLIBOBJS=$ac_ltlibobjs
35922
35923
cristyc0890a62012-07-19 00:18:20 +000035924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35925$as_echo_n "checking that generated files are newer than configure... " >&6; }
35926 if test -n "$am_sleep_pid"; then
35927 # Hide warnings about reused PIDs.
35928 wait $am_sleep_pid 2>/dev/null
35929 fi
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35931$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035932 if test -n "$EXEEXT"; then
35933 am__EXEEXT_TRUE=
35934 am__EXEEXT_FALSE='#'
35935else
35936 am__EXEEXT_TRUE='#'
35937 am__EXEEXT_FALSE=
35938fi
cristy3ed852e2009-09-05 21:47:34 +000035939
cristy73bd4a52010-10-05 11:24:23 +000035940if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035941 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
35944if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
35948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
35956if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
cristy73bd4a52010-10-05 11:24:23 +000035972if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
35976if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
35980LT_CONFIG_H=config/config.h
35981
35982 _ltdl_libobjs=
35983 _ltdl_ltlibobjs=
35984 if test -n "$_LT_LIBOBJS"; then
35985 # Remove the extension.
35986 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35987 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35988 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35989 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35990 done
35991 fi
35992 ltdl_LIBOBJS=$_ltdl_libobjs
35993
35994 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35995
35996
35997if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
36001if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
36005if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
cristy71d8c202012-03-20 17:05:01 +000036013if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36014 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
cristy73bd4a52010-10-05 11:24:23 +000036017
36018if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036019 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
36022if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036023 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
36026if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036027 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036028Usually this means the macro was only invoked conditionally." "$LINENO" 5
36029fi
36030if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
36034if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
36042if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
36062if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036071 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
36074if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036075 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036083 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
36086if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036087 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
36090if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036091 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
36094if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036095 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036096Usually this means the macro was only invoked conditionally." "$LINENO" 5
36097fi
cristyfbb0ef02010-12-19 02:32:11 +000036098if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36099 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36100Usually this means the macro was only invoked conditionally." "$LINENO" 5
36101fi
cristy73bd4a52010-10-05 11:24:23 +000036102if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036103 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036104Usually this means the macro was only invoked conditionally." "$LINENO" 5
36105fi
cristy41cbe8a2011-10-27 01:35:18 +000036106if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36107 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36108Usually this means the macro was only invoked conditionally." "$LINENO" 5
36109fi
cristya054b762012-03-26 23:16:00 +000036110if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36111 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036112Usually this means the macro was only invoked conditionally." "$LINENO" 5
36113fi
cristy73bd4a52010-10-05 11:24:23 +000036114if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036115 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036116Usually this means the macro was only invoked conditionally." "$LINENO" 5
36117fi
36118if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036119 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036120Usually this means the macro was only invoked conditionally." "$LINENO" 5
36121fi
36122if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036123 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036124Usually this means the macro was only invoked conditionally." "$LINENO" 5
36125fi
36126if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036127 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036128Usually this means the macro was only invoked conditionally." "$LINENO" 5
36129fi
cristyb1860752011-03-14 00:27:46 +000036130if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36131 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36132Usually this means the macro was only invoked conditionally." "$LINENO" 5
36133fi
cristy73bd4a52010-10-05 11:24:23 +000036134if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036135 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036136Usually this means the macro was only invoked conditionally." "$LINENO" 5
36137fi
36138if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036139 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036140Usually this means the macro was only invoked conditionally." "$LINENO" 5
36141fi
36142if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036143 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036144Usually this means the macro was only invoked conditionally." "$LINENO" 5
36145fi
36146if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036147 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036148Usually this means the macro was only invoked conditionally." "$LINENO" 5
36149fi
36150if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036151 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036152Usually this means the macro was only invoked conditionally." "$LINENO" 5
36153fi
36154if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036155 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036156Usually this means the macro was only invoked conditionally." "$LINENO" 5
36157fi
36158if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036159 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036160Usually this means the macro was only invoked conditionally." "$LINENO" 5
36161fi
36162if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036163 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036164Usually this means the macro was only invoked conditionally." "$LINENO" 5
36165fi
cristy3ed852e2009-09-05 21:47:34 +000036166
cristyda16f162011-02-19 23:52:17 +000036167: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036168ac_write_fail=0
36169ac_clean_files_save=$ac_clean_files
36170ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036171{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036172$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036173as_write_fail=0
36174cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036175#! $SHELL
36176# Generated by $as_me.
36177# Run this file to recreate the current configuration.
36178# Compiler output produced by configure, useful for debugging
36179# configure, is in config.log if it exists.
36180
36181debug=false
36182ac_cs_recheck=false
36183ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036184
cristy8b350f62009-11-15 23:12:43 +000036185SHELL=\${CONFIG_SHELL-$SHELL}
36186export SHELL
36187_ASEOF
36188cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36189## -------------------- ##
36190## M4sh Initialization. ##
36191## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036192
36193# Be more Bourne compatible
36194DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036195if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036196 emulate sh
36197 NULLCMD=:
36198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36199 # is contrary to our usage. Disable this feature.
36200 alias -g '${1+"$@"}'='"$@"'
36201 setopt NO_GLOB_SUBST
36202else
cristy8b350f62009-11-15 23:12:43 +000036203 case `(set -o) 2>/dev/null` in #(
36204 *posix*) :
36205 set -o posix ;; #(
36206 *) :
36207 ;;
cristy3ed852e2009-09-05 21:47:34 +000036208esac
cristy3ed852e2009-09-05 21:47:34 +000036209fi
36210
36211
cristy3ed852e2009-09-05 21:47:34 +000036212as_nl='
36213'
36214export as_nl
36215# Printing a long string crashes Solaris 7 /usr/bin/printf.
36216as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36217as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36218as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036219# Prefer a ksh shell builtin over an external printf program on Solaris,
36220# but without wasting forks for bash or zsh.
36221if test -z "$BASH_VERSION$ZSH_VERSION" \
36222 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36223 as_echo='print -r --'
36224 as_echo_n='print -rn --'
36225elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036226 as_echo='printf %s\n'
36227 as_echo_n='printf %s'
36228else
36229 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36230 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36231 as_echo_n='/usr/ucb/echo -n'
36232 else
36233 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36234 as_echo_n_body='eval
36235 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036236 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036237 *"$as_nl"*)
36238 expr "X$arg" : "X\\(.*\\)$as_nl";
36239 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36240 esac;
36241 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36242 '
36243 export as_echo_n_body
36244 as_echo_n='sh -c $as_echo_n_body as_echo'
36245 fi
36246 export as_echo_body
36247 as_echo='sh -c $as_echo_body as_echo'
36248fi
36249
36250# The user is always right.
36251if test "${PATH_SEPARATOR+set}" != set; then
36252 PATH_SEPARATOR=:
36253 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36254 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36255 PATH_SEPARATOR=';'
36256 }
36257fi
36258
cristy3ed852e2009-09-05 21:47:34 +000036259
36260# IFS
36261# We need space, tab and new line, in precisely that order. Quoting is
36262# there to prevent editors from complaining about space-tab.
36263# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36264# splitting by setting IFS to empty value.)
36265IFS=" "" $as_nl"
36266
36267# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036268as_myself=
cristy8b350f62009-11-15 23:12:43 +000036269case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036270 *[\\/]* ) as_myself=$0 ;;
36271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36272for as_dir in $PATH
36273do
36274 IFS=$as_save_IFS
36275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36277 done
cristy3ed852e2009-09-05 21:47:34 +000036278IFS=$as_save_IFS
36279
36280 ;;
36281esac
36282# We did not find ourselves, most probably we were run as `sh COMMAND'
36283# in which case we are not to be found in the path.
36284if test "x$as_myself" = x; then
36285 as_myself=$0
36286fi
36287if test ! -f "$as_myself"; then
36288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036289 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036290fi
36291
cristy8b350f62009-11-15 23:12:43 +000036292# Unset variables that we do not need and which cause bugs (e.g. in
36293# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36294# suppresses any "Segmentation fault" message there. '((' could
36295# trigger a bug in pdksh 5.2.14.
36296for as_var in BASH_ENV ENV MAIL MAILPATH
36297do eval test x\${$as_var+set} = xset \
36298 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036299done
36300PS1='$ '
36301PS2='> '
36302PS4='+ '
36303
36304# NLS nuisances.
36305LC_ALL=C
36306export LC_ALL
36307LANGUAGE=C
36308export LANGUAGE
36309
cristy8b350f62009-11-15 23:12:43 +000036310# CDPATH.
36311(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36312
36313
cristy98dddb52010-11-04 00:30:15 +000036314# as_fn_error STATUS ERROR [LINENO LOG_FD]
36315# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036316# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36317# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036318# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036319as_fn_error ()
36320{
cristy98dddb52010-11-04 00:30:15 +000036321 as_status=$1; test $as_status -eq 0 && as_status=1
36322 if test "$4"; then
36323 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36324 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036325 fi
cristy98dddb52010-11-04 00:30:15 +000036326 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036327 as_fn_exit $as_status
36328} # as_fn_error
36329
36330
36331# as_fn_set_status STATUS
36332# -----------------------
36333# Set $? to STATUS, without forking.
36334as_fn_set_status ()
36335{
36336 return $1
36337} # as_fn_set_status
36338
36339# as_fn_exit STATUS
36340# -----------------
36341# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36342as_fn_exit ()
36343{
36344 set +e
36345 as_fn_set_status $1
36346 exit $1
36347} # as_fn_exit
36348
36349# as_fn_unset VAR
36350# ---------------
36351# Portably unset VAR.
36352as_fn_unset ()
36353{
36354 { eval $1=; unset $1;}
36355}
36356as_unset=as_fn_unset
36357# as_fn_append VAR VALUE
36358# ----------------------
36359# Append the text in VALUE to the end of the definition contained in VAR. Take
36360# advantage of any shell optimizations that allow amortized linear growth over
36361# repeated appends, instead of the typical quadratic growth present in naive
36362# implementations.
36363if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36364 eval 'as_fn_append ()
36365 {
36366 eval $1+=\$2
36367 }'
36368else
36369 as_fn_append ()
36370 {
36371 eval $1=\$$1\$2
36372 }
36373fi # as_fn_append
36374
36375# as_fn_arith ARG...
36376# ------------------
36377# Perform arithmetic evaluation on the ARGs, and store the result in the
36378# global $as_val. Take advantage of shells that can avoid forks. The arguments
36379# must be portable across $(()) and expr.
36380if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36381 eval 'as_fn_arith ()
36382 {
36383 as_val=$(( $* ))
36384 }'
36385else
36386 as_fn_arith ()
36387 {
36388 as_val=`expr "$@" || test $? -eq 1`
36389 }
36390fi # as_fn_arith
36391
36392
cristy3ed852e2009-09-05 21:47:34 +000036393if expr a : '\(a\)' >/dev/null 2>&1 &&
36394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36395 as_expr=expr
36396else
36397 as_expr=false
36398fi
36399
36400if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36401 as_basename=basename
36402else
36403 as_basename=false
36404fi
36405
cristy8b350f62009-11-15 23:12:43 +000036406if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36407 as_dirname=dirname
36408else
36409 as_dirname=false
36410fi
cristy3ed852e2009-09-05 21:47:34 +000036411
cristy3ed852e2009-09-05 21:47:34 +000036412as_me=`$as_basename -- "$0" ||
36413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36414 X"$0" : 'X\(//\)$' \| \
36415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36416$as_echo X/"$0" |
36417 sed '/^.*\/\([^/][^/]*\)\/*$/{
36418 s//\1/
36419 q
36420 }
36421 /^X\/\(\/\/\)$/{
36422 s//\1/
36423 q
36424 }
36425 /^X\/\(\/\).*/{
36426 s//\1/
36427 q
36428 }
36429 s/.*/./; q'`
36430
cristy8b350f62009-11-15 23:12:43 +000036431# Avoid depending upon Character Ranges.
36432as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36433as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36434as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36435as_cr_digits='0123456789'
36436as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036437
36438ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036439case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036440-n*)
cristy8b350f62009-11-15 23:12:43 +000036441 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036442 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036443 xy) ECHO_C='\c';;
36444 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36445 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036446 esac;;
36447*)
36448 ECHO_N='-n';;
36449esac
cristy3ed852e2009-09-05 21:47:34 +000036450
36451rm -f conf$$ conf$$.exe conf$$.file
36452if test -d conf$$.dir; then
36453 rm -f conf$$.dir/conf$$.file
36454else
36455 rm -f conf$$.dir
36456 mkdir conf$$.dir 2>/dev/null
36457fi
36458if (echo >conf$$.file) 2>/dev/null; then
36459 if ln -s conf$$.file conf$$ 2>/dev/null; then
36460 as_ln_s='ln -s'
36461 # ... but there are two gotchas:
36462 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36463 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036464 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036465 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036466 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036467 elif ln conf$$.file conf$$ 2>/dev/null; then
36468 as_ln_s=ln
36469 else
cristy14fefe52012-05-21 00:59:18 +000036470 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036471 fi
36472else
cristy14fefe52012-05-21 00:59:18 +000036473 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036474fi
36475rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36476rmdir conf$$.dir 2>/dev/null
36477
cristy8b350f62009-11-15 23:12:43 +000036478
36479# as_fn_mkdir_p
36480# -------------
36481# Create "$as_dir" as a directory, including parents if necessary.
36482as_fn_mkdir_p ()
36483{
36484
36485 case $as_dir in #(
36486 -*) as_dir=./$as_dir;;
36487 esac
36488 test -d "$as_dir" || eval $as_mkdir_p || {
36489 as_dirs=
36490 while :; do
36491 case $as_dir in #(
36492 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36493 *) as_qdir=$as_dir;;
36494 esac
36495 as_dirs="'$as_qdir' $as_dirs"
36496 as_dir=`$as_dirname -- "$as_dir" ||
36497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36498 X"$as_dir" : 'X\(//\)[^/]' \| \
36499 X"$as_dir" : 'X\(//\)$' \| \
36500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36501$as_echo X"$as_dir" |
36502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36503 s//\1/
36504 q
36505 }
36506 /^X\(\/\/\)[^/].*/{
36507 s//\1/
36508 q
36509 }
36510 /^X\(\/\/\)$/{
36511 s//\1/
36512 q
36513 }
36514 /^X\(\/\).*/{
36515 s//\1/
36516 q
36517 }
36518 s/.*/./; q'`
36519 test -d "$as_dir" && break
36520 done
36521 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036522 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036523
36524
36525} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036526if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036527 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036528else
36529 test -d ./-p && rmdir ./-p
36530 as_mkdir_p=false
36531fi
36532
cristy14fefe52012-05-21 00:59:18 +000036533
36534# as_fn_executable_p FILE
36535# -----------------------
36536# Test if FILE is an executable regular file.
36537as_fn_executable_p ()
36538{
36539 test -f "$1" && test -x "$1"
36540} # as_fn_executable_p
36541as_test_x='test -x'
36542as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036543
36544# Sed expression to map a string onto a valid CPP name.
36545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36546
36547# Sed expression to map a string onto a valid variable name.
36548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36549
36550
36551exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036552## ----------------------------------- ##
36553## Main body of $CONFIG_STATUS script. ##
36554## ----------------------------------- ##
36555_ASEOF
36556test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036557
cristy8b350f62009-11-15 23:12:43 +000036558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36559# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036560# report actual input values of CONFIG_FILES etc. instead of their
36561# values after options handling.
36562ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036563This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036564generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036565
36566 CONFIG_FILES = $CONFIG_FILES
36567 CONFIG_HEADERS = $CONFIG_HEADERS
36568 CONFIG_LINKS = $CONFIG_LINKS
36569 CONFIG_COMMANDS = $CONFIG_COMMANDS
36570 $ $0 $@
36571
36572on `(hostname || uname -n) 2>/dev/null | sed 1q`
36573"
36574
36575_ACEOF
36576
36577case $ac_config_files in *"
36578"*) set x $ac_config_files; shift; ac_config_files=$*;;
36579esac
36580
36581case $ac_config_headers in *"
36582"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36583esac
36584
36585
36586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36587# Files that config.status was made for.
36588config_files="$ac_config_files"
36589config_headers="$ac_config_headers"
36590config_commands="$ac_config_commands"
36591
36592_ACEOF
36593
36594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36595ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036596\`$as_me' instantiates files and other configuration actions
36597from templates according to the current configuration. Unless the files
36598and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036599
cristy8b350f62009-11-15 23:12:43 +000036600Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036601
36602 -h, --help print this help, then exit
36603 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036604 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036605 -q, --quiet, --silent
36606 do not print progress messages
36607 -d, --debug don't remove temporary files
36608 --recheck update $as_me by reconfiguring in the same conditions
36609 --file=FILE[:TEMPLATE]
36610 instantiate the configuration file FILE
36611 --header=FILE[:TEMPLATE]
36612 instantiate the configuration header FILE
36613
36614Configuration files:
36615$config_files
36616
36617Configuration headers:
36618$config_headers
36619
36620Configuration commands:
36621$config_commands
36622
cristy8b350f62009-11-15 23:12:43 +000036623Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036624
36625_ACEOF
36626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036627ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036628ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036629ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036630configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036631 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036632
cristy14fefe52012-05-21 00:59:18 +000036633Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036634This config.status script is free software; the Free Software Foundation
36635gives unlimited permission to copy, distribute and modify it."
36636
36637ac_pwd='$ac_pwd'
36638srcdir='$srcdir'
36639INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036640MKDIR_P='$MKDIR_P'
36641AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036642test -n "\$AWK" || AWK=awk
36643_ACEOF
36644
36645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36646# The default lists apply if the user does not specify any file.
36647ac_need_defaults=:
36648while test $# != 0
36649do
36650 case $1 in
cristyda16f162011-02-19 23:52:17 +000036651 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36654 ac_shift=:
36655 ;;
cristyda16f162011-02-19 23:52:17 +000036656 --*=)
36657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36658 ac_optarg=
36659 ac_shift=:
36660 ;;
cristy3ed852e2009-09-05 21:47:34 +000036661 *)
36662 ac_option=$1
36663 ac_optarg=$2
36664 ac_shift=shift
36665 ;;
36666 esac
36667
36668 case $ac_option in
36669 # Handling of the options.
36670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36671 ac_cs_recheck=: ;;
36672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36673 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036674 --config | --confi | --conf | --con | --co | --c )
36675 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036676 --debug | --debu | --deb | --de | --d | -d )
36677 debug=: ;;
36678 --file | --fil | --fi | --f )
36679 $ac_shift
36680 case $ac_optarg in
36681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036682 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036683 esac
cristy8b350f62009-11-15 23:12:43 +000036684 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036685 ac_need_defaults=false;;
36686 --header | --heade | --head | --hea )
36687 $ac_shift
36688 case $ac_optarg in
36689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36690 esac
cristy8b350f62009-11-15 23:12:43 +000036691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036692 ac_need_defaults=false;;
36693 --he | --h)
36694 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036695 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036696Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036697 --help | --hel | -h )
36698 $as_echo "$ac_cs_usage"; exit ;;
36699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36701 ac_cs_silent=: ;;
36702
36703 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036704 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036705Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036706
cristy8b350f62009-11-15 23:12:43 +000036707 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036708 ac_need_defaults=false ;;
36709
36710 esac
36711 shift
36712done
36713
36714ac_configure_extra_args=
36715
36716if $ac_cs_silent; then
36717 exec 6>/dev/null
36718 ac_configure_extra_args="$ac_configure_extra_args --silent"
36719fi
36720
36721_ACEOF
36722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36723if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036724 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036725 shift
36726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36727 CONFIG_SHELL='$SHELL'
36728 export CONFIG_SHELL
36729 exec "\$@"
36730fi
36731
36732_ACEOF
36733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36734exec 5>>config.log
36735{
36736 echo
36737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36738## Running $as_me. ##
36739_ASBOX
36740 $as_echo "$ac_log"
36741} >&5
36742
36743_ACEOF
36744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036745#
36746# INIT-COMMANDS
36747#
36748PACKAGE="$PACKAGE"
36749AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36750
36751
36752# The HP-UX ksh and POSIX shell print the target directory to stdout
36753# if CDPATH is set.
36754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36755
36756sed_quote_subst='$sed_quote_subst'
36757double_quote_subst='$double_quote_subst'
36758delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036759SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36760Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36761GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36762EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36763FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36764SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36765ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36766LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36767macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36768macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36769AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36770DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36771OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36773enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36774pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36775enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036776PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036777host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36778host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36779host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36780build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36781build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36782build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36783NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36784LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36785max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36786ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36787exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36788lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36789lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36790lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036791lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36792lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036793reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36794reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36795deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36796file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036797file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36798want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36799sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036800AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36801AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036802archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036803STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36804RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36805old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36806old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36807old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36808lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36809CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36810CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36811compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36812GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36813lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36814lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36815lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36816lt_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 +000036817nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36818lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036819objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36820MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36821lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036822lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036823lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036824lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36825lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36826need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036827MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036828DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36829NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36830LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36831OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36832OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36833libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36834shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36835extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36836archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36837enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36838export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36839whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36840compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36841old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36842old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36843archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36844archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36845module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36846module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36847with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36848allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36849no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36850hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036851hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36852hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36853hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36854hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36855hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36856hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36857inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36858link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036859always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36860export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36861exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36862include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36863prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036864postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036865file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36866variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36867need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36868need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36869version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36870runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36871shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36872shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36873libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36874library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36875soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36876install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36877postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36878postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36879finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36880finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36881hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36882sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36883sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36884hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36885enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36886enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36887enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36888old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36889striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36890compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36891predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36892postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36893predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36894postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36895compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36896LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36897reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36898reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36899old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36900compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36901GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36902lt_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 +000036903lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036904lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036905lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36906lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36907archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36908enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36909export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36910whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36911compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36912old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36913old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36914archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36915archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36916module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36917module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36919allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36920no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36921hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036922hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36923hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36924hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36925hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36926hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36928inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36929link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036930always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36931export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36932exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36933include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36934prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036935postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036936file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36937hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36938compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36939predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36940postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36941predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36942postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36943compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036944
36945LTCC='$LTCC'
36946LTCFLAGS='$LTCFLAGS'
36947compiler='$compiler_DEFAULT'
36948
cristy0c60a692010-11-04 01:09:47 +000036949# A function that is used when there is no print builtin or printf.
36950func_fallback_echo ()
36951{
36952 eval 'cat <<_LTECHO_EOF
36953\$1
36954_LTECHO_EOF'
36955}
36956
cristy73bd4a52010-10-05 11:24:23 +000036957# Quote evaled strings.
36958for var in SED \
36959GREP \
36960EGREP \
36961FGREP \
cristy0c60a692010-11-04 01:09:47 +000036962SHELL \
36963ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036964LD \
cristy0c60a692010-11-04 01:09:47 +000036965AS \
36966DLLTOOL \
36967OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036968PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036969NM \
36970LN_S \
36971lt_SP2NL \
36972lt_NL2SP \
36973reload_flag \
36974deplibs_check_method \
36975file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036976file_magic_glob \
36977want_nocaseglob \
36978sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036979AR \
36980AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036981archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036982STRIP \
36983RANLIB \
36984CC \
36985CFLAGS \
36986compiler \
36987lt_cv_sys_global_symbol_pipe \
36988lt_cv_sys_global_symbol_to_cdecl \
36989lt_cv_sys_global_symbol_to_c_name_address \
36990lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036991nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036992lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036993lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036994lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036995lt_prog_compiler_static \
36996lt_cv_prog_compiler_c_o \
36997need_locks \
cristyda16f162011-02-19 23:52:17 +000036998MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036999DSYMUTIL \
37000NMEDIT \
37001LIPO \
37002OTOOL \
37003OTOOL64 \
37004shrext_cmds \
37005export_dynamic_flag_spec \
37006whole_archive_flag_spec \
37007compiler_needs_object \
37008with_gnu_ld \
37009allow_undefined_flag \
37010no_undefined_flag \
37011hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037012hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037013exclude_expsyms \
37014include_expsyms \
37015file_list_spec \
37016variables_saved_for_relink \
37017libname_spec \
37018library_names_spec \
37019soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037020install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037021finish_eval \
37022old_striplib \
37023striplib \
37024compiler_lib_search_dirs \
37025predep_objects \
37026postdep_objects \
37027predeps \
37028postdeps \
37029compiler_lib_search_path \
37030LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037031reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037032compiler_CXX \
37033lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037034lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037035lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037036lt_prog_compiler_static_CXX \
37037lt_cv_prog_compiler_c_o_CXX \
37038export_dynamic_flag_spec_CXX \
37039whole_archive_flag_spec_CXX \
37040compiler_needs_object_CXX \
37041with_gnu_ld_CXX \
37042allow_undefined_flag_CXX \
37043no_undefined_flag_CXX \
37044hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037045hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037046exclude_expsyms_CXX \
37047include_expsyms_CXX \
37048file_list_spec_CXX \
37049compiler_lib_search_dirs_CXX \
37050predep_objects_CXX \
37051postdep_objects_CXX \
37052predeps_CXX \
37053postdeps_CXX \
37054compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037056 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037058 ;;
37059 *)
37060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37061 ;;
37062 esac
37063done
37064
37065# Double-quote double-evaled strings.
37066for var in reload_cmds \
37067old_postinstall_cmds \
37068old_postuninstall_cmds \
37069old_archive_cmds \
37070extract_expsyms_cmds \
37071old_archive_from_new_cmds \
37072old_archive_from_expsyms_cmds \
37073archive_cmds \
37074archive_expsym_cmds \
37075module_cmds \
37076module_expsym_cmds \
37077export_symbols_cmds \
37078prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037079postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037080postinstall_cmds \
37081postuninstall_cmds \
37082finish_cmds \
37083sys_lib_search_path_spec \
37084sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037085reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037086old_archive_cmds_CXX \
37087old_archive_from_new_cmds_CXX \
37088old_archive_from_expsyms_cmds_CXX \
37089archive_cmds_CXX \
37090archive_expsym_cmds_CXX \
37091module_cmds_CXX \
37092module_expsym_cmds_CXX \
37093export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037094prelink_cmds_CXX \
37095postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037097 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037099 ;;
37100 *)
37101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37102 ;;
37103 esac
37104done
37105
cristy73bd4a52010-10-05 11:24:23 +000037106ac_aux_dir='$ac_aux_dir'
37107xsi_shell='$xsi_shell'
37108lt_shell_append='$lt_shell_append'
37109
37110# See if we are running on zsh, and set the options which allow our
37111# commands through without removal of \ escapes INIT.
37112if test -n "\${ZSH_VERSION+set}" ; then
37113 setopt NO_GLOB_SUBST
37114fi
37115
37116
37117 PACKAGE='$PACKAGE'
37118 VERSION='$VERSION'
37119 TIMESTAMP='$TIMESTAMP'
37120 RM='$RM'
37121 ofile='$ofile'
37122
37123
37124
37125
37126
37127
cristy3ed852e2009-09-05 21:47:34 +000037128_ACEOF
37129
37130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37131
37132# Handling of arguments.
37133for ac_config_target in $ac_config_targets
37134do
37135 case $ac_config_target in
37136 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037137 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037138 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37139 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37140 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37141 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37142 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037143 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037144 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37145 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37146 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37147 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37148 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037149 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037150 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37151 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037152 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37153 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37154 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037155 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37156 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37157 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37158 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37159 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy0cf6da52012-08-25 00:35:24 +000037160 "tests/common.shi") CONFIG_FILES="$CONFIG_FILES tests/common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037161 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37162 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37163 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37164 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37165 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37166 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37167 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37168 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37169 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37170 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37171 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37172 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037173 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37174 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037175 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37176 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037177 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037178 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037179 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037180 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037181 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37182 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37183
cristy98dddb52010-11-04 00:30:15 +000037184 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037185 esac
37186done
37187
37188
37189# If the user did not use the arguments to specify the items to instantiate,
37190# then the envvar interface is used. Set only those that are not.
37191# We use the long form for the default assignment because of an extremely
37192# bizarre bug on SunOS 4.1.3.
37193if $ac_need_defaults; then
37194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37197fi
37198
37199# Have a temporary directory for convenience. Make it in the build tree
37200# simply because there is no reason against having it here, and in addition,
37201# creating and moving files from /tmp can sometimes cause problems.
37202# Hook for its removal unless debugging.
37203# Note that there is a small window in which the directory will not be cleaned:
37204# after its creation but before its name has been assigned to `$tmp'.
37205$debug ||
37206{
cristyda16f162011-02-19 23:52:17 +000037207 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037208 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037209 : "${ac_tmp:=$tmp}"
37210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037211' 0
cristy8b350f62009-11-15 23:12:43 +000037212 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037213}
37214# Create a (secure) tmp directory for tmp files.
37215
37216{
37217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037218 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037219} ||
37220{
37221 tmp=./conf$$-$RANDOM
37222 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037223} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037224ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037225
37226# Set up the scripts for CONFIG_FILES section.
37227# No need to generate them if there are no CONFIG_FILES.
37228# This happens for instance with `./config.status config.h'.
37229if test -n "$CONFIG_FILES"; then
37230
37231
cristy8b350f62009-11-15 23:12:43 +000037232ac_cr=`echo X | tr X '\015'`
37233# On cygwin, bash can eat \r inside `` if the user requested igncr.
37234# But we know of no other shell where ac_cr would be empty at this
37235# point, so we can use a bashism as a fallback.
37236if test "x$ac_cr" = x; then
37237 eval ac_cr=\$\'\\r\'
37238fi
cristy3ed852e2009-09-05 21:47:34 +000037239ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37240if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037241 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037242else
37243 ac_cs_awk_cr=$ac_cr
37244fi
37245
cristyda16f162011-02-19 23:52:17 +000037246echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037247_ACEOF
37248
37249
37250{
37251 echo "cat >conf$$subs.awk <<_ACEOF" &&
37252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37253 echo "_ACEOF"
37254} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37256ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037257ac_delim='%!_!# '
37258for ac_last_try in false false false false false :; do
37259 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037261
37262 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37263 if test $ac_delim_n = $ac_delim_num; then
37264 break
37265 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037267 else
37268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37269 fi
37270done
37271rm -f conf$$subs.sh
37272
37273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037274cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037275_ACEOF
37276sed -n '
37277h
37278s/^/S["/; s/!.*/"]=/
37279p
37280g
37281s/^[^!]*!//
37282:repl
37283t repl
37284s/'"$ac_delim"'$//
37285t delim
37286:nl
37287h
cristycd4c5312009-11-22 01:19:08 +000037288s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037289t more1
37290s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37291p
37292n
37293b repl
37294:more1
37295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37296p
37297g
37298s/.\{148\}//
37299t nl
37300:delim
37301h
cristycd4c5312009-11-22 01:19:08 +000037302s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037303t more2
37304s/["\\]/\\&/g; s/^/"/; s/$/"/
37305p
37306b
37307:more2
37308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37309p
37310g
37311s/.\{148\}//
37312t delim
37313' <conf$$subs.awk | sed '
37314/^[^""]/{
37315 N
37316 s/\n//
37317}
37318' >>$CONFIG_STATUS || ac_write_fail=1
37319rm -f conf$$subs.awk
37320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37321_ACAWK
cristyda16f162011-02-19 23:52:17 +000037322cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037323 for (key in S) S_is_set[key] = 1
37324 FS = ""
37325
37326}
37327{
37328 line = $ 0
37329 nfields = split(line, field, "@")
37330 substed = 0
37331 len = length(field[1])
37332 for (i = 2; i < nfields; i++) {
37333 key = field[i]
37334 keylen = length(key)
37335 if (S_is_set[key]) {
37336 value = S[key]
37337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37338 len += length(value) + length(field[++i])
37339 substed = 1
37340 } else
37341 len += 1 + keylen
37342 }
37343
37344 print line
37345}
37346
37347_ACAWK
37348_ACEOF
37349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37350if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37352else
37353 cat
cristyda16f162011-02-19 23:52:17 +000037354fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037355 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037356_ACEOF
37357
cristy98dddb52010-11-04 00:30:15 +000037358# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37359# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037360# trailing colons and then remove the whole line if VPATH becomes empty
37361# (actually we leave an empty line to preserve line numbers).
37362if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37364h
37365s///
37366s/^/:/
37367s/[ ]*$/:/
37368s/:\$(srcdir):/:/g
37369s/:\${srcdir}:/:/g
37370s/:@srcdir@:/:/g
37371s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037372s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037373x
37374s/\(=[ ]*\).*/\1/
37375G
37376s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037377s/^[^=]*=[ ]*$//
37378}'
37379fi
37380
37381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37382fi # test -n "$CONFIG_FILES"
37383
37384# Set up the scripts for CONFIG_HEADERS section.
37385# No need to generate them if there are no CONFIG_HEADERS.
37386# This happens for instance with `./config.status Makefile'.
37387if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037388cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037389BEGIN {
37390_ACEOF
37391
37392# Transform confdefs.h into an awk script `defines.awk', embedded as
37393# here-document in config.status, that substitutes the proper values into
37394# config.h.in to produce config.h.
37395
37396# Create a delimiter string that does not exist in confdefs.h, to ease
37397# handling of long lines.
37398ac_delim='%!_!# '
37399for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037400 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37401 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037402 break
37403 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037404 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037405 else
37406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37407 fi
37408done
37409
37410# For the awk script, D is an array of macro values keyed by name,
37411# likewise P contains macro parameters if any. Preserve backslash
37412# newline sequences.
37413
37414ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37415sed -n '
37416s/.\{148\}/&'"$ac_delim"'/g
37417t rset
37418:rset
37419s/^[ ]*#[ ]*define[ ][ ]*/ /
37420t def
37421d
37422:def
37423s/\\$//
37424t bsnl
37425s/["\\]/\\&/g
37426s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37427D["\1"]=" \3"/p
37428s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37429d
37430:bsnl
37431s/["\\]/\\&/g
37432s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37433D["\1"]=" \3\\\\\\n"\\/p
37434t cont
37435s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37436t cont
37437d
37438:cont
37439n
37440s/.\{148\}/&'"$ac_delim"'/g
37441t clear
37442:clear
37443s/\\$//
37444t bsnlc
37445s/["\\]/\\&/g; s/^/"/; s/$/"/p
37446d
37447:bsnlc
37448s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37449b cont
37450' <confdefs.h | sed '
37451s/'"$ac_delim"'/"\\\
37452"/g' >>$CONFIG_STATUS || ac_write_fail=1
37453
37454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37455 for (key in D) D_is_set[key] = 1
37456 FS = ""
37457}
37458/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37459 line = \$ 0
37460 split(line, arg, " ")
37461 if (arg[1] == "#") {
37462 defundef = arg[2]
37463 mac1 = arg[3]
37464 } else {
37465 defundef = substr(arg[1], 2)
37466 mac1 = arg[2]
37467 }
37468 split(mac1, mac2, "(") #)
37469 macro = mac2[1]
37470 prefix = substr(line, 1, index(line, defundef) - 1)
37471 if (D_is_set[macro]) {
37472 # Preserve the white space surrounding the "#".
37473 print prefix "define", macro P[macro] D[macro]
37474 next
37475 } else {
37476 # Replace #undef with comments. This is necessary, for example,
37477 # in the case of _POSIX_SOURCE, which is predefined and required
37478 # on some systems where configure will not decide to define it.
37479 if (defundef == "undef") {
37480 print "/*", prefix defundef, macro, "*/"
37481 next
37482 }
37483 }
37484}
37485{ print }
37486_ACAWK
37487_ACEOF
37488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037489 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037490fi # test -n "$CONFIG_HEADERS"
37491
37492
37493eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37494shift
37495for ac_tag
37496do
37497 case $ac_tag in
37498 :[FHLC]) ac_mode=$ac_tag; continue;;
37499 esac
37500 case $ac_mode$ac_tag in
37501 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037503 :[FH]-) ac_tag=-:-;;
37504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37505 esac
37506 ac_save_IFS=$IFS
37507 IFS=:
37508 set x $ac_tag
37509 IFS=$ac_save_IFS
37510 shift
37511 ac_file=$1
37512 shift
37513
37514 case $ac_mode in
37515 :L) ac_source=$1;;
37516 :[FH])
37517 ac_file_inputs=
37518 for ac_f
37519 do
37520 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037521 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037522 *) # Look for the file first in the build tree, then in the source tree
37523 # (if the path is not absolute). The absolute path cannot be DOS-style,
37524 # because $ac_f cannot contain `:'.
37525 test -f "$ac_f" ||
37526 case $ac_f in
37527 [\\/$]*) false;;
37528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37529 esac ||
cristy98dddb52010-11-04 00:30:15 +000037530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037531 esac
37532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037533 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037534 done
37535
37536 # Let's still pretend it is `configure' which instantiates (i.e., don't
37537 # use $as_me), people would be surprised to read:
37538 # /* config.h. Generated by config.status. */
37539 configure_input='Generated from '`
37540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37541 `' by configure.'
37542 if test x"$ac_file" != x-; then
37543 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037545$as_echo "$as_me: creating $ac_file" >&6;}
37546 fi
37547 # Neutralize special characters interpreted by sed in replacement strings.
37548 case $configure_input in #(
37549 *\&* | *\|* | *\\* )
37550 ac_sed_conf_input=`$as_echo "$configure_input" |
37551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37552 *) ac_sed_conf_input=$configure_input;;
37553 esac
37554
37555 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037558 esac
37559 ;;
37560 esac
37561
37562 ac_dir=`$as_dirname -- "$ac_file" ||
37563$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37564 X"$ac_file" : 'X\(//\)[^/]' \| \
37565 X"$ac_file" : 'X\(//\)$' \| \
37566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37567$as_echo X"$ac_file" |
37568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37569 s//\1/
37570 q
37571 }
37572 /^X\(\/\/\)[^/].*/{
37573 s//\1/
37574 q
37575 }
37576 /^X\(\/\/\)$/{
37577 s//\1/
37578 q
37579 }
37580 /^X\(\/\).*/{
37581 s//\1/
37582 q
37583 }
37584 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037585 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037586 ac_builddir=.
37587
37588case "$ac_dir" in
37589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37590*)
37591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37592 # A ".." for each directory in $ac_dir_suffix.
37593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37594 case $ac_top_builddir_sub in
37595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37597 esac ;;
37598esac
37599ac_abs_top_builddir=$ac_pwd
37600ac_abs_builddir=$ac_pwd$ac_dir_suffix
37601# for backward compatibility:
37602ac_top_builddir=$ac_top_build_prefix
37603
37604case $srcdir in
37605 .) # We are building in place.
37606 ac_srcdir=.
37607 ac_top_srcdir=$ac_top_builddir_sub
37608 ac_abs_top_srcdir=$ac_pwd ;;
37609 [\\/]* | ?:[\\/]* ) # Absolute name.
37610 ac_srcdir=$srcdir$ac_dir_suffix;
37611 ac_top_srcdir=$srcdir
37612 ac_abs_top_srcdir=$srcdir ;;
37613 *) # Relative name.
37614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37615 ac_top_srcdir=$ac_top_build_prefix$srcdir
37616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37617esac
37618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37619
37620
37621 case $ac_mode in
37622 :F)
37623 #
37624 # CONFIG_FILE
37625 #
37626
37627 case $INSTALL in
37628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37630 esac
cristy73bd4a52010-10-05 11:24:23 +000037631 ac_MKDIR_P=$MKDIR_P
37632 case $MKDIR_P in
37633 [\\/$]* | ?:[\\/]* ) ;;
37634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37635 esac
cristy3ed852e2009-09-05 21:47:34 +000037636_ACEOF
37637
37638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37639# If the template does not know about datarootdir, expand it.
37640# FIXME: This hack should be removed a few years after 2.60.
37641ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037642ac_sed_dataroot='
37643/datarootdir/ {
37644 p
37645 q
37646}
37647/@datadir@/p
37648/@docdir@/p
37649/@infodir@/p
37650/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037651/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37653*datarootdir*) ac_datarootdir_seen=yes;;
37654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037656$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37657_ACEOF
37658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37659 ac_datarootdir_hack='
37660 s&@datadir@&$datadir&g
37661 s&@docdir@&$docdir&g
37662 s&@infodir@&$infodir&g
37663 s&@localedir@&$localedir&g
37664 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037665 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037666esac
37667_ACEOF
37668
37669# Neutralize VPATH when `$srcdir' = `.'.
37670# Shell code in configure.ac might set extrasub.
37671# FIXME: do we really want to maintain this feature?
37672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37673ac_sed_extra="$ac_vpsub
37674$extrasub
37675_ACEOF
37676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37677:t
37678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37679s|@configure_input@|$ac_sed_conf_input|;t t
37680s&@top_builddir@&$ac_top_builddir_sub&;t t
37681s&@top_build_prefix@&$ac_top_build_prefix&;t t
37682s&@srcdir@&$ac_srcdir&;t t
37683s&@abs_srcdir@&$ac_abs_srcdir&;t t
37684s&@top_srcdir@&$ac_top_srcdir&;t t
37685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37686s&@builddir@&$ac_builddir&;t t
37687s&@abs_builddir@&$ac_abs_builddir&;t t
37688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37689s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037690s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037691$ac_datarootdir_hack
37692"
cristyda16f162011-02-19 23:52:17 +000037693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037695
37696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037701which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037702$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037703which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037704
cristyda16f162011-02-19 23:52:17 +000037705 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037706 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037709 esac \
cristy98dddb52010-11-04 00:30:15 +000037710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037711 ;;
37712 :H)
37713 #
37714 # CONFIG_HEADER
37715 #
37716 if test x"$ac_file" != x-; then
37717 {
37718 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37720 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037724$as_echo "$as_me: $ac_file is unchanged" >&6;}
37725 else
37726 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037727 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037729 fi
37730 else
37731 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037733 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037734 fi
cristy73bd4a52010-10-05 11:24:23 +000037735# Compute "$ac_file"'s index in $config_headers.
37736_am_arg="$ac_file"
37737_am_stamp_count=1
37738for _am_header in $config_headers :; do
37739 case $_am_header in
37740 $_am_arg | $_am_arg:* )
37741 break ;;
37742 * )
37743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37744 esac
37745done
37746echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37747$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37748 X"$_am_arg" : 'X\(//\)[^/]' \| \
37749 X"$_am_arg" : 'X\(//\)$' \| \
37750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37751$as_echo X"$_am_arg" |
37752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37753 s//\1/
37754 q
37755 }
37756 /^X\(\/\/\)[^/].*/{
37757 s//\1/
37758 q
37759 }
37760 /^X\(\/\/\)$/{
37761 s//\1/
37762 q
37763 }
37764 /^X\(\/\).*/{
37765 s//\1/
37766 q
37767 }
37768 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037769 ;;
37770
cristy8b350f62009-11-15 23:12:43 +000037771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037772$as_echo "$as_me: executing $ac_file commands" >&6;}
37773 ;;
37774 esac
37775
37776
37777 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037778 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037779ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37780ac_prefix_conf_PKG=`echo MagickCore`
37781ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37782ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37783ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37784if test ".$ac_prefix_conf_INP" = "."; then
37785 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37786 case "$ac_file" in
37787 *.h) ac_prefix_conf_INP=$ac_file ;;
37788 *)
37789 esac
37790 test ".$ac_prefix_conf_INP" != "." && break
37791 done
37792fi
37793if test ".$ac_prefix_conf_INP" = "."; then
37794 case "$ac_prefix_conf_OUT" in
37795 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37796 ;;
37797 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37798 ;;
37799 *) ac_prefix_conf_INP=config.h
37800 ;;
37801 esac
37802fi
37803if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037804 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037805else
37806 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37807 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37808 fi fi
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37810$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37811 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037812 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37813 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37814 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37815 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37816 $as_echo "#endif/" >> conftest.prefix
37817 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37818 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37819 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037820 # now executing _script on _DEF input to create _OUT output file
37821 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37822 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37823 echo ' ' >>$tmp/pconfig.h
37824 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37825
37826 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37827 echo ' ' >>$tmp/pconfig.h
37828 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37829 echo "#endif" >>$tmp/pconfig.h
37830 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37832$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37833 else
37834 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37835$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37836 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37837 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37838 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37839$as_echo X"$ac_prefix_conf_OUT" |
37840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37841 s//\1/
37842 q
37843 }
37844 /^X\(\/\/\)[^/].*/{
37845 s//\1/
37846 q
37847 }
37848 /^X\(\/\/\)$/{
37849 s//\1/
37850 q
37851 }
37852 /^X\(\/\).*/{
37853 s//\1/
37854 q
37855 }
37856 s/.*/./; q'`
37857 as_dir="$ac_dir"; as_fn_mkdir_p
37858 rm -f "$ac_prefix_conf_OUT"
37859 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37860 fi
37861 cp conftest.prefix _configs.sed
37862 else
cristy98dddb52010-11-04 00:30:15 +000037863 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 +000037864 fi
37865 rm -f conftest.*
37866fi
37867 ;;
37868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37869 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37870 # are listed without --file. Let's play safe and only enable the eval
37871 # if we detect the quoting.
37872 case $CONFIG_FILES in
37873 *\'*) eval set x "$CONFIG_FILES" ;;
37874 *) set x $CONFIG_FILES ;;
37875 esac
37876 shift
37877 for mf
37878 do
37879 # Strip MF so we end up with the name of the file.
37880 mf=`echo "$mf" | sed -e 's/:.*$//'`
37881 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037882 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037883 # some people rename them; so instead we look at the file content.
37884 # Grep'ing the first line is not enough: some people post-process
37885 # each Makefile.in and add a new line on top of each file to say so.
37886 # Grep'ing the whole file is not good either: AIX grep has a line
37887 # limit of 2048, but all sed's we know have understand at least 4000.
37888 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37889 dirpart=`$as_dirname -- "$mf" ||
37890$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37891 X"$mf" : 'X\(//\)[^/]' \| \
37892 X"$mf" : 'X\(//\)$' \| \
37893 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37894$as_echo X"$mf" |
37895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37896 s//\1/
37897 q
37898 }
37899 /^X\(\/\/\)[^/].*/{
37900 s//\1/
37901 q
37902 }
37903 /^X\(\/\/\)$/{
37904 s//\1/
37905 q
37906 }
37907 /^X\(\/\).*/{
37908 s//\1/
37909 q
37910 }
37911 s/.*/./; q'`
37912 else
37913 continue
37914 fi
37915 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037916 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037917 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37918 test -z "$DEPDIR" && continue
37919 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37920 test -z "am__include" && continue
37921 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037922 # Find all dependency output files, they are included files with
37923 # $(DEPDIR) in their names. We invoke sed twice because it is the
37924 # simplest approach to changing $(DEPDIR) to its actual value in the
37925 # expansion.
37926 for file in `sed -n "
37927 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037928 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037929 # Make sure the directory exists.
37930 test -f "$dirpart/$file" && continue
37931 fdir=`$as_dirname -- "$file" ||
37932$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37933 X"$file" : 'X\(//\)[^/]' \| \
37934 X"$file" : 'X\(//\)$' \| \
37935 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37936$as_echo X"$file" |
37937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37938 s//\1/
37939 q
37940 }
37941 /^X\(\/\/\)[^/].*/{
37942 s//\1/
37943 q
37944 }
37945 /^X\(\/\/\)$/{
37946 s//\1/
37947 q
37948 }
37949 /^X\(\/\).*/{
37950 s//\1/
37951 q
37952 }
37953 s/.*/./; q'`
37954 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37955 # echo "creating $dirpart/$file"
37956 echo '# dummy' > "$dirpart/$file"
37957 done
37958 done
37959}
37960 ;;
37961 "libtool":C)
37962
37963 # See if we are running on zsh, and set the options which allow our
37964 # commands through without removal of \ escapes.
37965 if test -n "${ZSH_VERSION+set}" ; then
37966 setopt NO_GLOB_SUBST
37967 fi
37968
37969 cfgfile="${ofile}T"
37970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37971 $RM "$cfgfile"
37972
37973 cat <<_LT_EOF >> "$cfgfile"
37974#! $SHELL
37975
37976# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37977# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37979# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37980#
37981# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037982# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37983# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037984# Written by Gordon Matzigkeit, 1996
37985#
37986# This file is part of GNU Libtool.
37987#
37988# GNU Libtool is free software; you can redistribute it and/or
37989# modify it under the terms of the GNU General Public License as
37990# published by the Free Software Foundation; either version 2 of
37991# the License, or (at your option) any later version.
37992#
37993# As a special exception to the GNU General Public License,
37994# if you distribute this file as part of a program or library that
37995# is built using GNU Libtool, you may include this file under the
37996# same distribution terms that you use for the rest of that program.
37997#
37998# GNU Libtool is distributed in the hope that it will be useful,
37999# but WITHOUT ANY WARRANTY; without even the implied warranty of
38000# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38001# GNU General Public License for more details.
38002#
38003# You should have received a copy of the GNU General Public License
38004# along with GNU Libtool; see the file COPYING. If not, a copy
38005# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38006# obtained by writing to the Free Software Foundation, Inc.,
38007# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38008
38009
38010# The names of the tagged configurations supported by this script.
38011available_tags="CXX "
38012
38013# ### BEGIN LIBTOOL CONFIG
38014
38015# A sed program that does not truncate output.
38016SED=$lt_SED
38017
38018# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38019Xsed="\$SED -e 1s/^X//"
38020
38021# A grep program that handles long lines.
38022GREP=$lt_GREP
38023
38024# An ERE matcher.
38025EGREP=$lt_EGREP
38026
38027# A literal string matcher.
38028FGREP=$lt_FGREP
38029
cristy0c60a692010-11-04 01:09:47 +000038030# Shell to use when invoking shell scripts.
38031SHELL=$lt_SHELL
38032
38033# An echo program that protects backslashes.
38034ECHO=$lt_ECHO
38035
cristy73bd4a52010-10-05 11:24:23 +000038036# Which release of libtool.m4 was used?
38037macro_version=$macro_version
38038macro_revision=$macro_revision
38039
38040# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038041AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038042
38043# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038044DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038045
38046# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038047OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038048
38049# Whether or not to build shared libraries.
38050build_libtool_libs=$enable_shared
38051
38052# Whether or not to build static libraries.
38053build_old_libs=$enable_static
38054
38055# What type of objects to build.
38056pic_mode=$pic_mode
38057
38058# Whether or not to optimize for fast installation.
38059fast_install=$enable_fast_install
38060
cristy99bd5232011-12-07 14:38:20 +000038061# The PATH separator for the build system.
38062PATH_SEPARATOR=$lt_PATH_SEPARATOR
38063
cristy73bd4a52010-10-05 11:24:23 +000038064# The host system.
38065host_alias=$host_alias
38066host=$host
38067host_os=$host_os
38068
38069# The build system.
38070build_alias=$build_alias
38071build=$build
38072build_os=$build_os
38073
38074# A BSD- or MS-compatible name lister.
38075NM=$lt_NM
38076
38077# Whether we need soft or hard links.
38078LN_S=$lt_LN_S
38079
38080# What is the maximum length of a command?
38081max_cmd_len=$max_cmd_len
38082
38083# Object file suffix (normally "o").
38084objext=$ac_objext
38085
38086# Executable file suffix (normally "").
38087exeext=$exeext
38088
38089# whether the shell understands "unset".
38090lt_unset=$lt_unset
38091
38092# turn spaces into newlines.
38093SP2NL=$lt_lt_SP2NL
38094
38095# turn newlines into spaces.
38096NL2SP=$lt_lt_NL2SP
38097
cristyda16f162011-02-19 23:52:17 +000038098# convert \$build file names to \$host format.
38099to_host_file_cmd=$lt_cv_to_host_file_cmd
38100
38101# convert \$build files to toolchain format.
38102to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38103
cristy73bd4a52010-10-05 11:24:23 +000038104# Method to check whether dependent libraries are shared objects.
38105deplibs_check_method=$lt_deplibs_check_method
38106
cristyda16f162011-02-19 23:52:17 +000038107# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038108file_magic_cmd=$lt_file_magic_cmd
38109
cristyda16f162011-02-19 23:52:17 +000038110# How to find potential files when deplibs_check_method = "file_magic".
38111file_magic_glob=$lt_file_magic_glob
38112
38113# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38114want_nocaseglob=$lt_want_nocaseglob
38115
38116# Command to associate shared and link libraries.
38117sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38118
cristy73bd4a52010-10-05 11:24:23 +000038119# The archiver.
38120AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038121
38122# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038123AR_FLAGS=$lt_AR_FLAGS
38124
cristyda16f162011-02-19 23:52:17 +000038125# How to feed a file listing to the archiver.
38126archiver_list_spec=$lt_archiver_list_spec
38127
cristy73bd4a52010-10-05 11:24:23 +000038128# A symbol stripping program.
38129STRIP=$lt_STRIP
38130
38131# Commands used to install an old-style archive.
38132RANLIB=$lt_RANLIB
38133old_postinstall_cmds=$lt_old_postinstall_cmds
38134old_postuninstall_cmds=$lt_old_postuninstall_cmds
38135
cristy0c60a692010-11-04 01:09:47 +000038136# Whether to use a lock for old archive extraction.
38137lock_old_archive_extraction=$lock_old_archive_extraction
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# A C compiler.
38140LTCC=$lt_CC
38141
38142# LTCC compiler flags.
38143LTCFLAGS=$lt_CFLAGS
38144
38145# Take the output of nm and produce a listing of raw symbols and C names.
38146global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38147
38148# Transform the output of nm in a proper C declaration.
38149global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38150
38151# Transform the output of nm in a C name address pair.
38152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38153
38154# Transform the output of nm in a C name address pair when lib prefix is needed.
38155global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38156
cristyda16f162011-02-19 23:52:17 +000038157# Specify filename containing input files for \$NM.
38158nm_file_list_spec=$lt_nm_file_list_spec
38159
38160# The root where to search for dependent libraries,and in which our libraries should be installed.
38161lt_sysroot=$lt_sysroot
38162
cristy73bd4a52010-10-05 11:24:23 +000038163# The name of the directory that contains temporary libtool files.
38164objdir=$objdir
38165
cristy73bd4a52010-10-05 11:24:23 +000038166# Used to examine libraries when file_magic_cmd begins with "file".
38167MAGIC_CMD=$MAGIC_CMD
38168
38169# Must we lock files when doing compilation?
38170need_locks=$lt_need_locks
38171
cristyda16f162011-02-19 23:52:17 +000038172# Manifest tool.
38173MANIFEST_TOOL=$lt_MANIFEST_TOOL
38174
cristy73bd4a52010-10-05 11:24:23 +000038175# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38176DSYMUTIL=$lt_DSYMUTIL
38177
38178# Tool to change global to local symbols on Mac OS X.
38179NMEDIT=$lt_NMEDIT
38180
38181# Tool to manipulate fat objects and archives on Mac OS X.
38182LIPO=$lt_LIPO
38183
38184# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38185OTOOL=$lt_OTOOL
38186
38187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38188OTOOL64=$lt_OTOOL64
38189
38190# Old archive suffix (normally "a").
38191libext=$libext
38192
38193# Shared library suffix (normally ".so").
38194shrext_cmds=$lt_shrext_cmds
38195
38196# The commands to extract the exported symbol list from a shared archive.
38197extract_expsyms_cmds=$lt_extract_expsyms_cmds
38198
38199# Variables whose values should be saved in libtool wrapper scripts and
38200# restored at link time.
38201variables_saved_for_relink=$lt_variables_saved_for_relink
38202
38203# Do we need the "lib" prefix for modules?
38204need_lib_prefix=$need_lib_prefix
38205
38206# Do we need a version for libraries?
38207need_version=$need_version
38208
38209# Library versioning type.
38210version_type=$version_type
38211
38212# Shared library runtime path variable.
38213runpath_var=$runpath_var
38214
38215# Shared library path variable.
38216shlibpath_var=$shlibpath_var
38217
38218# Is shlibpath searched before the hard-coded library search path?
38219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38220
38221# Format of library name prefix.
38222libname_spec=$lt_libname_spec
38223
38224# List of archive names. First name is the real one, the rest are links.
38225# The last name is the one that the linker finds with -lNAME
38226library_names_spec=$lt_library_names_spec
38227
38228# The coded name of the library, if different from the real name.
38229soname_spec=$lt_soname_spec
38230
cristy0c60a692010-11-04 01:09:47 +000038231# Permission mode override for installation of shared libraries.
38232install_override_mode=$lt_install_override_mode
38233
cristy73bd4a52010-10-05 11:24:23 +000038234# Command to use after installation of a shared archive.
38235postinstall_cmds=$lt_postinstall_cmds
38236
38237# Command to use after uninstallation of a shared archive.
38238postuninstall_cmds=$lt_postuninstall_cmds
38239
38240# Commands used to finish a libtool library installation in a directory.
38241finish_cmds=$lt_finish_cmds
38242
38243# As "finish_cmds", except a single script fragment to be evaled but
38244# not shown.
38245finish_eval=$lt_finish_eval
38246
38247# Whether we should hardcode library paths into libraries.
38248hardcode_into_libs=$hardcode_into_libs
38249
38250# Compile-time system search path for libraries.
38251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38252
38253# Run-time system search path for libraries.
38254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38255
38256# Whether dlopen is supported.
38257dlopen_support=$enable_dlopen
38258
38259# Whether dlopen of programs is supported.
38260dlopen_self=$enable_dlopen_self
38261
38262# Whether dlopen of statically linked programs is supported.
38263dlopen_self_static=$enable_dlopen_self_static
38264
38265# Commands to strip libraries.
38266old_striplib=$lt_old_striplib
38267striplib=$lt_striplib
38268
38269
38270# The linker used to build libraries.
38271LD=$lt_LD
38272
cristy0c60a692010-11-04 01:09:47 +000038273# How to create reloadable object files.
38274reload_flag=$lt_reload_flag
38275reload_cmds=$lt_reload_cmds
38276
cristy73bd4a52010-10-05 11:24:23 +000038277# Commands used to build an old-style archive.
38278old_archive_cmds=$lt_old_archive_cmds
38279
38280# A language specific compiler.
38281CC=$lt_compiler
38282
38283# Is the compiler the GNU compiler?
38284with_gcc=$GCC
38285
38286# Compiler flag to turn off builtin functions.
38287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38288
cristy73bd4a52010-10-05 11:24:23 +000038289# Additional compiler flags for building library objects.
38290pic_flag=$lt_lt_prog_compiler_pic
38291
cristyda16f162011-02-19 23:52:17 +000038292# How to pass a linker flag through the compiler.
38293wl=$lt_lt_prog_compiler_wl
38294
cristy73bd4a52010-10-05 11:24:23 +000038295# Compiler flag to prevent dynamic linking.
38296link_static_flag=$lt_lt_prog_compiler_static
38297
38298# Does compiler simultaneously support -c and -o options?
38299compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38300
38301# Whether or not to add -lc for building shared libraries.
38302build_libtool_need_lc=$archive_cmds_need_lc
38303
38304# Whether or not to disallow shared libs when runtime libs are static.
38305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38306
38307# Compiler flag to allow reflexive dlopens.
38308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38309
38310# Compiler flag to generate shared objects directly from archives.
38311whole_archive_flag_spec=$lt_whole_archive_flag_spec
38312
38313# Whether the compiler copes with passing no objects directly.
38314compiler_needs_object=$lt_compiler_needs_object
38315
38316# Create an old-style archive from a shared archive.
38317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38318
38319# Create a temporary old-style archive to link instead of a shared archive.
38320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38321
38322# Commands used to build a shared archive.
38323archive_cmds=$lt_archive_cmds
38324archive_expsym_cmds=$lt_archive_expsym_cmds
38325
38326# Commands used to build a loadable module if different from building
38327# a shared archive.
38328module_cmds=$lt_module_cmds
38329module_expsym_cmds=$lt_module_expsym_cmds
38330
38331# Whether we are building with GNU ld or not.
38332with_gnu_ld=$lt_with_gnu_ld
38333
38334# Flag that allows shared libraries with undefined symbols to be built.
38335allow_undefined_flag=$lt_allow_undefined_flag
38336
38337# Flag that enforces no undefined symbols.
38338no_undefined_flag=$lt_no_undefined_flag
38339
38340# Flag to hardcode \$libdir into a binary during linking.
38341# This must work even if \$libdir does not exist
38342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38343
cristy73bd4a52010-10-05 11:24:23 +000038344# Whether we need a single "-rpath" flag with a separated argument.
38345hardcode_libdir_separator=$lt_hardcode_libdir_separator
38346
38347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38348# DIR into the resulting binary.
38349hardcode_direct=$hardcode_direct
38350
38351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38352# DIR into the resulting binary and the resulting library dependency is
38353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38354# library is relocated.
38355hardcode_direct_absolute=$hardcode_direct_absolute
38356
38357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38358# into the resulting binary.
38359hardcode_minus_L=$hardcode_minus_L
38360
38361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38362# into the resulting binary.
38363hardcode_shlibpath_var=$hardcode_shlibpath_var
38364
38365# Set to "yes" if building a shared library automatically hardcodes DIR
38366# into the library and all subsequent libraries and executables linked
38367# against it.
38368hardcode_automatic=$hardcode_automatic
38369
38370# Set to yes if linker adds runtime paths of dependent libraries
38371# to runtime path list.
38372inherit_rpath=$inherit_rpath
38373
38374# Whether libtool must link a program against all its dependency libraries.
38375link_all_deplibs=$link_all_deplibs
38376
cristy73bd4a52010-10-05 11:24:23 +000038377# Set to "yes" if exported symbols are required.
38378always_export_symbols=$always_export_symbols
38379
38380# The commands to list exported symbols.
38381export_symbols_cmds=$lt_export_symbols_cmds
38382
38383# Symbols that should not be listed in the preloaded symbols.
38384exclude_expsyms=$lt_exclude_expsyms
38385
38386# Symbols that must always be exported.
38387include_expsyms=$lt_include_expsyms
38388
38389# Commands necessary for linking programs (against libraries) with templates.
38390prelink_cmds=$lt_prelink_cmds
38391
cristyda16f162011-02-19 23:52:17 +000038392# Commands necessary for finishing linking programs.
38393postlink_cmds=$lt_postlink_cmds
38394
cristy73bd4a52010-10-05 11:24:23 +000038395# Specify filename containing input files.
38396file_list_spec=$lt_file_list_spec
38397
38398# How to hardcode a shared library path into an executable.
38399hardcode_action=$hardcode_action
38400
38401# The directories searched by this compiler when creating a shared library.
38402compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38403
38404# Dependencies to place before and after the objects being linked to
38405# create a shared library.
38406predep_objects=$lt_predep_objects
38407postdep_objects=$lt_postdep_objects
38408predeps=$lt_predeps
38409postdeps=$lt_postdeps
38410
38411# The library search path used internally by the compiler when linking
38412# a shared library.
38413compiler_lib_search_path=$lt_compiler_lib_search_path
38414
38415# ### END LIBTOOL CONFIG
38416
38417_LT_EOF
38418
38419 case $host_os in
38420 aix3*)
38421 cat <<\_LT_EOF >> "$cfgfile"
38422# AIX sometimes has problems with the GCC collect2 program. For some
38423# reason, if we set the COLLECT_NAMES environment variable, the problems
38424# vanish in a puff of smoke.
38425if test "X${COLLECT_NAMES+set}" != Xset; then
38426 COLLECT_NAMES=
38427 export COLLECT_NAMES
38428fi
38429_LT_EOF
38430 ;;
38431 esac
38432
38433
38434ltmain="$ac_aux_dir/ltmain.sh"
38435
38436
38437 # We use sed instead of cat because bash on DJGPP gets confused if
38438 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38439 # text mode, it properly converts lines to CR/LF. This bash problem
38440 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038441 sed '$q' "$ltmain" >> "$cfgfile" \
38442 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038443
cristyda16f162011-02-19 23:52:17 +000038444 if test x"$xsi_shell" = xyes; then
38445 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38446func_dirname ()\
38447{\
38448\ case ${1} in\
38449\ */*) func_dirname_result="${1%/*}${2}" ;;\
38450\ * ) func_dirname_result="${3}" ;;\
38451\ esac\
38452} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38453 && mv -f "$cfgfile.tmp" "$cfgfile" \
38454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38455test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038456
38457
cristyda16f162011-02-19 23:52:17 +000038458 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38459func_basename ()\
38460{\
38461\ func_basename_result="${1##*/}"\
38462} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38463 && mv -f "$cfgfile.tmp" "$cfgfile" \
38464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38465test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038466
38467
cristyda16f162011-02-19 23:52:17 +000038468 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38469func_dirname_and_basename ()\
38470{\
38471\ case ${1} in\
38472\ */*) func_dirname_result="${1%/*}${2}" ;;\
38473\ * ) func_dirname_result="${3}" ;;\
38474\ esac\
38475\ func_basename_result="${1##*/}"\
38476} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38477 && mv -f "$cfgfile.tmp" "$cfgfile" \
38478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38479test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038480
cristyda16f162011-02-19 23:52:17 +000038481
38482 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38483func_stripname ()\
38484{\
38485\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38486\ # positional parameters, so assign one to ordinary parameter first.\
38487\ func_stripname_result=${3}\
38488\ func_stripname_result=${func_stripname_result#"${1}"}\
38489\ func_stripname_result=${func_stripname_result%"${2}"}\
38490} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38491 && mv -f "$cfgfile.tmp" "$cfgfile" \
38492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38493test 0 -eq $? || _lt_function_replace_fail=:
38494
38495
38496 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38497func_split_long_opt ()\
38498{\
38499\ func_split_long_opt_name=${1%%=*}\
38500\ func_split_long_opt_arg=${1#*=}\
38501} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38502 && mv -f "$cfgfile.tmp" "$cfgfile" \
38503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38504test 0 -eq $? || _lt_function_replace_fail=:
38505
38506
38507 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38508func_split_short_opt ()\
38509{\
38510\ func_split_short_opt_arg=${1#??}\
38511\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38512} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38513 && mv -f "$cfgfile.tmp" "$cfgfile" \
38514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38515test 0 -eq $? || _lt_function_replace_fail=:
38516
38517
38518 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38519func_lo2o ()\
38520{\
38521\ case ${1} in\
38522\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38523\ *) func_lo2o_result=${1} ;;\
38524\ esac\
38525} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38526 && mv -f "$cfgfile.tmp" "$cfgfile" \
38527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38528test 0 -eq $? || _lt_function_replace_fail=:
38529
38530
38531 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38532func_xform ()\
38533{\
38534 func_xform_result=${1%.*}.lo\
38535} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38536 && mv -f "$cfgfile.tmp" "$cfgfile" \
38537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38538test 0 -eq $? || _lt_function_replace_fail=:
38539
38540
38541 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38542func_arith ()\
38543{\
38544 func_arith_result=$(( $* ))\
38545} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38546 && mv -f "$cfgfile.tmp" "$cfgfile" \
38547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38548test 0 -eq $? || _lt_function_replace_fail=:
38549
38550
38551 sed -e '/^func_len ()$/,/^} # func_len /c\
38552func_len ()\
38553{\
38554 func_len_result=${#1}\
38555} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38556 && mv -f "$cfgfile.tmp" "$cfgfile" \
38557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38558test 0 -eq $? || _lt_function_replace_fail=:
38559
38560fi
38561
38562if test x"$lt_shell_append" = xyes; then
38563 sed -e '/^func_append ()$/,/^} # func_append /c\
38564func_append ()\
38565{\
38566 eval "${1}+=\\${2}"\
38567} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38568 && mv -f "$cfgfile.tmp" "$cfgfile" \
38569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38570test 0 -eq $? || _lt_function_replace_fail=:
38571
38572
38573 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38574func_append_quoted ()\
38575{\
38576\ func_quote_for_eval "${2}"\
38577\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38578} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38579 && mv -f "$cfgfile.tmp" "$cfgfile" \
38580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38581test 0 -eq $? || _lt_function_replace_fail=:
38582
38583
38584 # Save a `func_append' function call where possible by direct use of '+='
38585 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38586 && mv -f "$cfgfile.tmp" "$cfgfile" \
38587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38588 test 0 -eq $? || _lt_function_replace_fail=:
38589else
38590 # Save a `func_append' function call even when '+=' is not available
38591 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38592 && mv -f "$cfgfile.tmp" "$cfgfile" \
38593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38594 test 0 -eq $? || _lt_function_replace_fail=:
38595fi
38596
38597if test x"$_lt_function_replace_fail" = x":"; then
38598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38599$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38600fi
38601
38602
38603 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38605 chmod +x "$ofile"
38606
38607
38608 cat <<_LT_EOF >> "$ofile"
38609
38610# ### BEGIN LIBTOOL TAG CONFIG: CXX
38611
38612# The linker used to build libraries.
38613LD=$lt_LD_CXX
38614
cristy0c60a692010-11-04 01:09:47 +000038615# How to create reloadable object files.
38616reload_flag=$lt_reload_flag_CXX
38617reload_cmds=$lt_reload_cmds_CXX
38618
cristy73bd4a52010-10-05 11:24:23 +000038619# Commands used to build an old-style archive.
38620old_archive_cmds=$lt_old_archive_cmds_CXX
38621
38622# A language specific compiler.
38623CC=$lt_compiler_CXX
38624
38625# Is the compiler the GNU compiler?
38626with_gcc=$GCC_CXX
38627
38628# Compiler flag to turn off builtin functions.
38629no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38630
cristy73bd4a52010-10-05 11:24:23 +000038631# Additional compiler flags for building library objects.
38632pic_flag=$lt_lt_prog_compiler_pic_CXX
38633
cristyda16f162011-02-19 23:52:17 +000038634# How to pass a linker flag through the compiler.
38635wl=$lt_lt_prog_compiler_wl_CXX
38636
cristy73bd4a52010-10-05 11:24:23 +000038637# Compiler flag to prevent dynamic linking.
38638link_static_flag=$lt_lt_prog_compiler_static_CXX
38639
38640# Does compiler simultaneously support -c and -o options?
38641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38642
38643# Whether or not to add -lc for building shared libraries.
38644build_libtool_need_lc=$archive_cmds_need_lc_CXX
38645
38646# Whether or not to disallow shared libs when runtime libs are static.
38647allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38648
38649# Compiler flag to allow reflexive dlopens.
38650export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38651
38652# Compiler flag to generate shared objects directly from archives.
38653whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38654
38655# Whether the compiler copes with passing no objects directly.
38656compiler_needs_object=$lt_compiler_needs_object_CXX
38657
38658# Create an old-style archive from a shared archive.
38659old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38660
38661# Create a temporary old-style archive to link instead of a shared archive.
38662old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38663
38664# Commands used to build a shared archive.
38665archive_cmds=$lt_archive_cmds_CXX
38666archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38667
38668# Commands used to build a loadable module if different from building
38669# a shared archive.
38670module_cmds=$lt_module_cmds_CXX
38671module_expsym_cmds=$lt_module_expsym_cmds_CXX
38672
38673# Whether we are building with GNU ld or not.
38674with_gnu_ld=$lt_with_gnu_ld_CXX
38675
38676# Flag that allows shared libraries with undefined symbols to be built.
38677allow_undefined_flag=$lt_allow_undefined_flag_CXX
38678
38679# Flag that enforces no undefined symbols.
38680no_undefined_flag=$lt_no_undefined_flag_CXX
38681
38682# Flag to hardcode \$libdir into a binary during linking.
38683# This must work even if \$libdir does not exist
38684hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38685
cristy73bd4a52010-10-05 11:24:23 +000038686# Whether we need a single "-rpath" flag with a separated argument.
38687hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38688
38689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38690# DIR into the resulting binary.
38691hardcode_direct=$hardcode_direct_CXX
38692
38693# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38694# DIR into the resulting binary and the resulting library dependency is
38695# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38696# library is relocated.
38697hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38698
38699# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38700# into the resulting binary.
38701hardcode_minus_L=$hardcode_minus_L_CXX
38702
38703# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38704# into the resulting binary.
38705hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38706
38707# Set to "yes" if building a shared library automatically hardcodes DIR
38708# into the library and all subsequent libraries and executables linked
38709# against it.
38710hardcode_automatic=$hardcode_automatic_CXX
38711
38712# Set to yes if linker adds runtime paths of dependent libraries
38713# to runtime path list.
38714inherit_rpath=$inherit_rpath_CXX
38715
38716# Whether libtool must link a program against all its dependency libraries.
38717link_all_deplibs=$link_all_deplibs_CXX
38718
cristy73bd4a52010-10-05 11:24:23 +000038719# Set to "yes" if exported symbols are required.
38720always_export_symbols=$always_export_symbols_CXX
38721
38722# The commands to list exported symbols.
38723export_symbols_cmds=$lt_export_symbols_cmds_CXX
38724
38725# Symbols that should not be listed in the preloaded symbols.
38726exclude_expsyms=$lt_exclude_expsyms_CXX
38727
38728# Symbols that must always be exported.
38729include_expsyms=$lt_include_expsyms_CXX
38730
38731# Commands necessary for linking programs (against libraries) with templates.
38732prelink_cmds=$lt_prelink_cmds_CXX
38733
cristyda16f162011-02-19 23:52:17 +000038734# Commands necessary for finishing linking programs.
38735postlink_cmds=$lt_postlink_cmds_CXX
38736
cristy73bd4a52010-10-05 11:24:23 +000038737# Specify filename containing input files.
38738file_list_spec=$lt_file_list_spec_CXX
38739
38740# How to hardcode a shared library path into an executable.
38741hardcode_action=$hardcode_action_CXX
38742
38743# The directories searched by this compiler when creating a shared library.
38744compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38745
38746# Dependencies to place before and after the objects being linked to
38747# create a shared library.
38748predep_objects=$lt_predep_objects_CXX
38749postdep_objects=$lt_postdep_objects_CXX
38750predeps=$lt_predeps_CXX
38751postdeps=$lt_postdeps_CXX
38752
38753# The library search path used internally by the compiler when linking
38754# a shared library.
38755compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38756
38757# ### END LIBTOOL TAG CONFIG: CXX
38758_LT_EOF
38759
38760 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038761 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038762 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038763 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038764 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38765 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38766
38767 esac
38768done # for ac_tag
38769
38770
cristy8b350f62009-11-15 23:12:43 +000038771as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038772_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038773ac_clean_files=$ac_clean_files_save
38774
38775test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038776 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038777
38778
38779# configure is writing to config.log, and then calls config.status.
38780# config.status does its own redirection, appending to config.log.
38781# Unfortunately, on DOS this fails, as config.log is still kept open
38782# by configure, so config.status won't be able to write to it; its
38783# output is simply discarded. So we exec the FD to /dev/null,
38784# effectively closing config.log, so it can be properly (re)opened and
38785# appended to by config.status. When coming back to configure, we
38786# need to make the FD available again.
38787if test "$no_create" != yes; then
38788 ac_cs_success=:
38789 ac_config_status_args=
38790 test "$silent" = yes &&
38791 ac_config_status_args="$ac_config_status_args --quiet"
38792 exec 5>/dev/null
38793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38794 exec 5>>config.log
38795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38796 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038797 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038798fi
38799if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038801$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38802fi
38803
38804
38805rm -f magick-version
38806
cristy430a7312010-01-21 20:44:04 +000038807result_dejavu_font_dir='none'
38808if test "${dejavu_font_dir}x" != 'x'; then
38809 result_dejavu_font_dir=$dejavu_font_dir
38810fi
38811
cristy3ed852e2009-09-05 21:47:34 +000038812result_ghostscript_font_dir='none'
38813if test "${ghostscript_font_dir}x" != 'x'; then
38814 result_ghostscript_font_dir=$ghostscript_font_dir
38815fi
38816
38817result_windows_font_dir='none'
38818if test "${windows_font_dir}x" != 'x'; then
38819 result_windows_font_dir=${windows_font_dir}
38820fi
38821
cristy09b53e12011-10-14 12:47:22 +000038822{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038823ImageMagick is configured as follows. Please verify that this configuration
38824matches your expectations.
38825
38826Host system type: $host
38827Build system type: $build
38828
38829 Option Value
38830-------------------------------------------------------------------------------
38831Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38832Static libraries --enable-static=$enable_static $libtool_build_static_libs
38833Module support --with-modules=$with_modules $with_modules
38834GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38835Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38836High Dynamic Range Imagery
38837 --enable-hdri=$enable_hdri $enable_hdri
38838
38839Delegate Configuration:
38840BZLIB --with-bzlib=$with_bzlib $have_bzlib
38841Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038842Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038843DJVU --with-djvu=$with_djvu $have_djvu
38844DPS --with-dps=$with_dps $have_dps
38845FFTW --with-fftw=$with_fftw $have_fftw
38846FlashPIX --with-fpx=$with_fpx $have_fpx
38847FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38848FreeType --with-freetype=$with_freetype $have_freetype
38849GhostPCL None $PCLDelegate ($PCLVersion)
38850GhostXPS None $XPSDelegate ($XPSVersion)
38851Ghostscript None $PSDelegate ($GSVersion)
38852Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38853Ghostscript lib --with-gslib=$with_gslib $have_gslib
38854Graphviz --with-gvc=$with_gvc $have_gvc
38855JBIG --with-jbig=$with_jbig $have_jbig
38856JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38857JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038858LCMS v1 --with-lcms=$with_lcms $have_lcms
38859LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038860LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038861LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038862Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38863OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038864PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038865PERL --with-perl=$with_perl $have_perl
38866PNG --with-png=$with_png $have_png
38867RSVG --with-rsvg=$with_rsvg $have_rsvg
38868TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038869WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038870Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38871WMF --with-wmf=$with_wmf $have_wmf
38872X11 --with-x=$with_x $have_x
38873XML --with-xml=$with_xml $have_xml
38874ZLIB --with-zlib=$with_zlib $have_zlib
38875
38876X11 Configuration:
38877 X_CFLAGS = $X_CFLAGS
38878 X_PRE_LIBS = $X_PRE_LIBS
38879 X_LIBS = $X_LIBS
38880 X_EXTRA_LIBS = $X_EXTRA_LIBS
38881
38882Options used to compile and link:
38883 PREFIX = $PREFIX_DIR
38884 EXEC-PREFIX = $EXEC_PREFIX_DIR
38885 VERSION = $PACKAGE_VERSION
38886 CC = $CC
38887 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038888 CPPFLAGS = $MAGICK_CPPFLAGS
38889 PCFLAGS = $MAGICK_PCFLAGS
38890 DEFS = $DEFS
38891 LDFLAGS = $LDFLAGS
38892 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38893 LIBS = $MAGICK_LIBS
38894 CXX = $CXX
38895 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038896 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038897" >&5
cristy09b53e12011-10-14 12:47:22 +000038898$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038899ImageMagick is configured as follows. Please verify that this configuration
38900matches your expectations.
38901
38902Host system type: $host
38903Build system type: $build
38904
38905 Option Value
38906-------------------------------------------------------------------------------
38907Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38908Static libraries --enable-static=$enable_static $libtool_build_static_libs
38909Module support --with-modules=$with_modules $with_modules
38910GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38911Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38912High Dynamic Range Imagery
38913 --enable-hdri=$enable_hdri $enable_hdri
38914
38915Delegate Configuration:
38916BZLIB --with-bzlib=$with_bzlib $have_bzlib
38917Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038918Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038919DJVU --with-djvu=$with_djvu $have_djvu
38920DPS --with-dps=$with_dps $have_dps
38921FFTW --with-fftw=$with_fftw $have_fftw
38922FlashPIX --with-fpx=$with_fpx $have_fpx
38923FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38924FreeType --with-freetype=$with_freetype $have_freetype
38925GhostPCL None $PCLDelegate ($PCLVersion)
38926GhostXPS None $XPSDelegate ($XPSVersion)
38927Ghostscript None $PSDelegate ($GSVersion)
38928Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38929Ghostscript lib --with-gslib=$with_gslib $have_gslib
38930Graphviz --with-gvc=$with_gvc $have_gvc
38931JBIG --with-jbig=$with_jbig $have_jbig
38932JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38933JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038934LCMS v1 --with-lcms=$with_lcms $have_lcms
38935LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038936LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038937LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038938Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38939OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038940PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038941PERL --with-perl=$with_perl $have_perl
38942PNG --with-png=$with_png $have_png
38943RSVG --with-rsvg=$with_rsvg $have_rsvg
38944TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038945WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038946Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38947WMF --with-wmf=$with_wmf $have_wmf
38948X11 --with-x=$with_x $have_x
38949XML --with-xml=$with_xml $have_xml
38950ZLIB --with-zlib=$with_zlib $have_zlib
38951
38952X11 Configuration:
38953 X_CFLAGS = $X_CFLAGS
38954 X_PRE_LIBS = $X_PRE_LIBS
38955 X_LIBS = $X_LIBS
38956 X_EXTRA_LIBS = $X_EXTRA_LIBS
38957
38958Options used to compile and link:
38959 PREFIX = $PREFIX_DIR
38960 EXEC-PREFIX = $EXEC_PREFIX_DIR
38961 VERSION = $PACKAGE_VERSION
38962 CC = $CC
38963 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038964 CPPFLAGS = $MAGICK_CPPFLAGS
38965 PCFLAGS = $MAGICK_PCFLAGS
38966 DEFS = $DEFS
38967 LDFLAGS = $LDFLAGS
38968 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38969 LIBS = $MAGICK_LIBS
38970 CXX = $CXX
38971 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038972 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038973" >&6;}