blob: df4000c80e701ea7de3cd9f6c53d98bb0ca9cca7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 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#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $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 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872MAGICK_HDRI
873DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876WITH_MODULES_FALSE
877WITH_MODULES_TRUE
878WITH_SHARED_LIBS_FALSE
879WITH_SHARED_LIBS_TRUE
880LTDLOPEN
881LT_CONFIG_H
882CONVENIENCE_LTDL_FALSE
883CONVENIENCE_LTDL_TRUE
884INSTALL_LTDL_FALSE
885INSTALL_LTDL_TRUE
886ARGZ_H
887sys_symbol_underscore
888LIBADD_DL
889LT_DLPREOPEN
890LIBADD_DLD_LINK
891LIBADD_SHL_LOAD
892LIBADD_DLOPEN
893LT_DLLOADERS
894INCLTDL
895LTDLINCL
896LTDLDEPS
897LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000898LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000899CXXCPP
900OTOOL64
901OTOOL
902LIPO
903NMEDIT
904DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000905MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000906RANLIB
cristyda16f162011-02-19 23:52:17 +0000907ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000908AR
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LIBTOOL
913OBJDUMP
914DLLTOOL
915AS
cristy3ed852e2009-09-05 21:47:34 +0000916LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000918CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000919OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920PTHREAD_CFLAGS
921PTHREAD_LIBS
922PTHREAD_CC
923ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000924SHAREARCH_DIR
925INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000926WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000927USING_CL_FALSE
928USING_CL_TRUE
929CYGWIN_BUILD_FALSE
930CYGWIN_BUILD_TRUE
931WIN32_NATIVE_BUILD_FALSE
932WIN32_NATIVE_BUILD_TRUE
933WINGDI32_DELEGATE_FALSE
934WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000935GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000937LN_S
cristy3ed852e2009-09-05 21:47:34 +0000938LD
cristy73bd4a52010-10-05 11:24:23 +0000939FGREP
940SED
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000944ac_ct_CXX
945CXXFLAGS
946CXX
cristya0b81c32010-01-22 02:54:33 +0000947EGREP
948GREP
949CPP
cristy73bd4a52010-10-05 11:24:23 +0000950am__fastdepCC_FALSE
951am__fastdepCC_TRUE
952CCDEPMODE
953AMDEPBACKSLASH
954AMDEP_FALSE
955AMDEP_TRUE
956am__quote
957am__include
958DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000959OBJEXT
960EXEEXT
961ac_ct_CC
962CPPFLAGS
963LDFLAGS
964CFLAGS
965CC
966DIRSEP
967MAGICK_FILTER_MODULE_PATH
968MAGICK_CONFIGURE_BUILD_PATH
969MAGICK_CONFIGURE_SRC_PATH
970MAGICK_CODER_MODULE_PATH
971MAN_DIR
972INFO_DIR
973PERSISTINCLUDE_DIR
974INCLUDE_DIR
975LIB_DIR
976LOCALSTATE_DIR
977SHAREDSTATE_DIR
978SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000979DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000980DATA_DIR
981LIBEXEC_DIR
982SBIN_DIR
983BIN_DIR
984EXEC_PREFIX_DIR
985PREFIX_DIR
986CONFIG_STATUS_DEPENDENCIES
987MAGICK_LIB_VERSION_NUMBER
988MAGICK_LIB_VERSION_TEXT
989MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000990AM_BACKSLASH
991AM_DEFAULT_VERBOSITY
992am__untar
993am__tar
994AMTAR
995am__leading_dot
996SET_MAKE
997AWK
998mkdir_p
999MKDIR_P
1000INSTALL_STRIP_PROGRAM
1001STRIP
1002install_sh
1003MAKEINFO
1004AUTOHEADER
1005AUTOMAKE
1006AUTOCONF
1007ACLOCAL
1008VERSION
1009PACKAGE
1010CYGPATH_W
1011am__isrc
1012INSTALL_DATA
1013INSTALL_SCRIPT
1014INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001015PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001016PACKAGE_RELEASE_DATE
1017PACKAGE_LIB_VERSION_NUMBER
1018PACKAGE_LIB_VERSION
1019PACKAGE_CHANGE_DATE
1020PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001021PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001022MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001023MAGICK_LIBRARY_VERSION_INFO
1024MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001025MAGICK_LIBRARY_AGE
1026MAGICK_LIBRARY_REVISION
1027MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001028MAGICK_TARGET_OS
1029MAGICK_TARGET_VENDOR
1030MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001031target_os
1032target_vendor
1033target_cpu
1034target
1035host_os
1036host_vendor
1037host_cpu
1038host
1039build_os
1040build_vendor
1041build_cpu
1042build
1043CONFIGURE_ARGS
1044DISTCHECK_CONFIG_FLAGS
1045target_alias
1046host_alias
1047build_alias
1048LIBS
1049ECHO_T
1050ECHO_N
1051ECHO_C
1052DEFS
1053mandir
1054localedir
1055libdir
1056psdir
1057pdfdir
1058dvidir
1059htmldir
1060infodir
1061docdir
1062oldincludedir
1063includedir
1064localstatedir
1065sharedstatedir
1066sysconfdir
1067datadir
1068datarootdir
1069libexecdir
1070sbindir
1071bindir
1072program_transform_name
1073prefix
1074exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001075PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001076PACKAGE_BUGREPORT
1077PACKAGE_STRING
1078PACKAGE_VERSION
1079PACKAGE_TARNAME
1080PACKAGE_NAME
1081PATH_SEPARATOR
1082SHELL'
1083ac_subst_files=''
1084ac_user_opts='
1085enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001086enable_silent_rules
1087enable_dependency_tracking
1088with_gnu_ld
1089with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001090enable_bounds_checking
1091enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001092with_includearch_dir
1093with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001094with_threads
1095enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001096enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001097enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001098enable_shared
1099enable_static
1100with_pic
1101enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001102with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001103enable_libtool_lock
1104with_included_ltdl
1105with_ltdl_include
1106with_ltdl_lib
1107enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001108with_modules
1109enable_delegate_build
1110enable_deprecated
1111enable_installed
1112enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001113enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001114enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001115enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001116enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001117enable_ccmalloc
1118enable_efence
1119enable_prof
1120enable_gprof
1121enable_gcov
1122with_method_prefix
1123with_quantum_depth
1124with_cache
1125with_frozenpaths
1126with_magick_plus_plus
1127with_perl
1128with_perl_options
1129with_umem
1130with_libstdc
1131with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001132with_x
cristy3ed852e2009-09-05 21:47:34 +00001133with_zlib
1134with_autotrace
1135with_dps
1136with_djvu
cristy430a7312010-01-21 20:44:04 +00001137with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001138with_fftw
1139with_fpx
1140with_fontconfig
1141with_freetype
1142with_gslib
1143with_fontpath
1144with_gs_font_dir
1145with_gvc
1146with_jbig
1147with_jpeg
1148with_jp2
1149with_lcms
cristy71203402010-06-18 13:12:03 +00001150with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001151with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001152with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001153with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001154with_pango
cristy3ed852e2009-09-05 21:47:34 +00001155with_png
1156with_rsvg
1157with_tiff
cristyb1860752011-03-14 00:27:46 +00001158with_webp
cristy3ed852e2009-09-05 21:47:34 +00001159with_windows_font_dir
1160with_wmf
1161with_xml
1162'
1163 ac_precious_vars='build_alias
1164host_alias
1165target_alias
1166CC
1167CFLAGS
1168LDFLAGS
1169LIBS
1170CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001171CPP
cristy3ed852e2009-09-05 21:47:34 +00001172CXX
1173CXXFLAGS
1174CCC
cristy73bd4a52010-10-05 11:24:23 +00001175PKG_CONFIG
1176CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001177XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001178AUTOTRACE_CFLAGS
1179AUTOTRACE_LIBS
1180FONTCONFIG_CFLAGS
1181FONTCONFIG_LIBS
1182GVC_CFLAGS
1183GVC_LIBS
1184LQR_CFLAGS
1185LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001186LZMA_CFLAGS
1187LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001188OPENEXR_CFLAGS
1189OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001190PANGO_CFLAGS
1191PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001192RSVG_CFLAGS
1193RSVG_LIBS
1194CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001195CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001196
1197
1198# Initialize some variables set by options.
1199ac_init_help=
1200ac_init_version=false
1201ac_unrecognized_opts=
1202ac_unrecognized_sep=
1203# The variables have the same names as the options, with
1204# dashes changed to underlines.
1205cache_file=/dev/null
1206exec_prefix=NONE
1207no_create=
1208no_recursion=
1209prefix=NONE
1210program_prefix=NONE
1211program_suffix=NONE
1212program_transform_name=s,x,x,
1213silent=
1214site=
1215srcdir=
1216verbose=
1217x_includes=NONE
1218x_libraries=NONE
1219
1220# Installation directory options.
1221# These are left unexpanded so users can "make install exec_prefix=/foo"
1222# and all the variables that are supposed to be based on exec_prefix
1223# by default will actually change.
1224# Use braces instead of parens because sh, perl, etc. also accept them.
1225# (The list follows the same order as the GNU Coding Standards.)
1226bindir='${exec_prefix}/bin'
1227sbindir='${exec_prefix}/sbin'
1228libexecdir='${exec_prefix}/libexec'
1229datarootdir='${prefix}/share'
1230datadir='${datarootdir}'
1231sysconfdir='${prefix}/etc'
1232sharedstatedir='${prefix}/com'
1233localstatedir='${prefix}/var'
1234includedir='${prefix}/include'
1235oldincludedir='/usr/include'
1236docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237infodir='${datarootdir}/info'
1238htmldir='${docdir}'
1239dvidir='${docdir}'
1240pdfdir='${docdir}'
1241psdir='${docdir}'
1242libdir='${exec_prefix}/lib'
1243localedir='${datarootdir}/locale'
1244mandir='${datarootdir}/man'
1245
1246ac_prev=
1247ac_dashdash=
1248for ac_option
1249do
1250 # If the previous option needs an argument, assign it.
1251 if test -n "$ac_prev"; then
1252 eval $ac_prev=\$ac_option
1253 ac_prev=
1254 continue
1255 fi
1256
1257 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001258 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259 *=) ac_optarg= ;;
1260 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001261 esac
1262
1263 # Accept the important Cygnus configure options, so we can diagnose typos.
1264
1265 case $ac_dashdash$ac_option in
1266 --)
1267 ac_dashdash=yes ;;
1268
1269 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270 ac_prev=bindir ;;
1271 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272 bindir=$ac_optarg ;;
1273
1274 -build | --build | --buil | --bui | --bu)
1275 ac_prev=build_alias ;;
1276 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277 build_alias=$ac_optarg ;;
1278
1279 -cache-file | --cache-file | --cache-fil | --cache-fi \
1280 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281 ac_prev=cache_file ;;
1282 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284 cache_file=$ac_optarg ;;
1285
1286 --config-cache | -C)
1287 cache_file=config.cache ;;
1288
1289 -datadir | --datadir | --datadi | --datad)
1290 ac_prev=datadir ;;
1291 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292 datadir=$ac_optarg ;;
1293
1294 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295 | --dataroo | --dataro | --datar)
1296 ac_prev=datarootdir ;;
1297 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299 datarootdir=$ac_optarg ;;
1300
1301 -disable-* | --disable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=no ;;
1316
1317 -docdir | --docdir | --docdi | --doc | --do)
1318 ac_prev=docdir ;;
1319 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320 docdir=$ac_optarg ;;
1321
1322 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323 ac_prev=dvidir ;;
1324 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325 dvidir=$ac_optarg ;;
1326
1327 -enable-* | --enable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001331 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"enable_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval enable_$ac_useropt=\$ac_optarg ;;
1342
1343 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345 | --exec | --exe | --ex)
1346 ac_prev=exec_prefix ;;
1347 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349 | --exec=* | --exe=* | --ex=*)
1350 exec_prefix=$ac_optarg ;;
1351
1352 -gas | --gas | --ga | --g)
1353 # Obsolete; use --with-gas.
1354 with_gas=yes ;;
1355
1356 -help | --help | --hel | --he | -h)
1357 ac_init_help=long ;;
1358 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359 ac_init_help=recursive ;;
1360 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361 ac_init_help=short ;;
1362
1363 -host | --host | --hos | --ho)
1364 ac_prev=host_alias ;;
1365 -host=* | --host=* | --hos=* | --ho=*)
1366 host_alias=$ac_optarg ;;
1367
1368 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369 ac_prev=htmldir ;;
1370 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371 | --ht=*)
1372 htmldir=$ac_optarg ;;
1373
1374 -includedir | --includedir | --includedi | --included | --include \
1375 | --includ | --inclu | --incl | --inc)
1376 ac_prev=includedir ;;
1377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378 | --includ=* | --inclu=* | --incl=* | --inc=*)
1379 includedir=$ac_optarg ;;
1380
1381 -infodir | --infodir | --infodi | --infod | --info | --inf)
1382 ac_prev=infodir ;;
1383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384 infodir=$ac_optarg ;;
1385
1386 -libdir | --libdir | --libdi | --libd)
1387 ac_prev=libdir ;;
1388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389 libdir=$ac_optarg ;;
1390
1391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392 | --libexe | --libex | --libe)
1393 ac_prev=libexecdir ;;
1394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395 | --libexe=* | --libex=* | --libe=*)
1396 libexecdir=$ac_optarg ;;
1397
1398 -localedir | --localedir | --localedi | --localed | --locale)
1399 ac_prev=localedir ;;
1400 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401 localedir=$ac_optarg ;;
1402
1403 -localstatedir | --localstatedir | --localstatedi | --localstated \
1404 | --localstate | --localstat | --localsta | --localst | --locals)
1405 ac_prev=localstatedir ;;
1406 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408 localstatedir=$ac_optarg ;;
1409
1410 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411 ac_prev=mandir ;;
1412 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413 mandir=$ac_optarg ;;
1414
1415 -nfp | --nfp | --nf)
1416 # Obsolete; use --without-fp.
1417 with_fp=no ;;
1418
1419 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420 | --no-cr | --no-c | -n)
1421 no_create=yes ;;
1422
1423 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425 no_recursion=yes ;;
1426
1427 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429 | --oldin | --oldi | --old | --ol | --o)
1430 ac_prev=oldincludedir ;;
1431 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434 oldincludedir=$ac_optarg ;;
1435
1436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437 ac_prev=prefix ;;
1438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439 prefix=$ac_optarg ;;
1440
1441 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442 | --program-pre | --program-pr | --program-p)
1443 ac_prev=program_prefix ;;
1444 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446 program_prefix=$ac_optarg ;;
1447
1448 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449 | --program-suf | --program-su | --program-s)
1450 ac_prev=program_suffix ;;
1451 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453 program_suffix=$ac_optarg ;;
1454
1455 -program-transform-name | --program-transform-name \
1456 | --program-transform-nam | --program-transform-na \
1457 | --program-transform-n | --program-transform- \
1458 | --program-transform | --program-transfor \
1459 | --program-transfo | --program-transf \
1460 | --program-trans | --program-tran \
1461 | --progr-tra | --program-tr | --program-t)
1462 ac_prev=program_transform_name ;;
1463 -program-transform-name=* | --program-transform-name=* \
1464 | --program-transform-nam=* | --program-transform-na=* \
1465 | --program-transform-n=* | --program-transform-=* \
1466 | --program-transform=* | --program-transfor=* \
1467 | --program-transfo=* | --program-transf=* \
1468 | --program-trans=* | --program-tran=* \
1469 | --progr-tra=* | --program-tr=* | --program-t=*)
1470 program_transform_name=$ac_optarg ;;
1471
1472 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473 ac_prev=pdfdir ;;
1474 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475 pdfdir=$ac_optarg ;;
1476
1477 -psdir | --psdir | --psdi | --psd | --ps)
1478 ac_prev=psdir ;;
1479 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480 psdir=$ac_optarg ;;
1481
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1484 silent=yes ;;
1485
1486 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487 ac_prev=sbindir ;;
1488 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489 | --sbi=* | --sb=*)
1490 sbindir=$ac_optarg ;;
1491
1492 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494 | --sharedst | --shareds | --shared | --share | --shar \
1495 | --sha | --sh)
1496 ac_prev=sharedstatedir ;;
1497 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500 | --sha=* | --sh=*)
1501 sharedstatedir=$ac_optarg ;;
1502
1503 -site | --site | --sit)
1504 ac_prev=site ;;
1505 -site=* | --site=* | --sit=*)
1506 site=$ac_optarg ;;
1507
1508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509 ac_prev=srcdir ;;
1510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511 srcdir=$ac_optarg ;;
1512
1513 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514 | --syscon | --sysco | --sysc | --sys | --sy)
1515 ac_prev=sysconfdir ;;
1516 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518 sysconfdir=$ac_optarg ;;
1519
1520 -target | --target | --targe | --targ | --tar | --ta | --t)
1521 ac_prev=target_alias ;;
1522 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523 target_alias=$ac_optarg ;;
1524
1525 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526 verbose=yes ;;
1527
1528 -version | --version | --versio | --versi | --vers | -V)
1529 ac_init_version=: ;;
1530
1531 -with-* | --with-*)
1532 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533 # Reject names that are not valid shell variable names.
1534 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001535 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001536 ac_useropt_orig=$ac_useropt
1537 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538 case $ac_user_opts in
1539 *"
1540"with_$ac_useropt"
1541"*) ;;
1542 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543 ac_unrecognized_sep=', ';;
1544 esac
1545 eval with_$ac_useropt=\$ac_optarg ;;
1546
1547 -without-* | --without-*)
1548 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549 # Reject names that are not valid shell variable names.
1550 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001551 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001552 ac_useropt_orig=$ac_useropt
1553 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554 case $ac_user_opts in
1555 *"
1556"with_$ac_useropt"
1557"*) ;;
1558 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559 ac_unrecognized_sep=', ';;
1560 esac
1561 eval with_$ac_useropt=no ;;
1562
1563 --x)
1564 # Obsolete; use --with-x.
1565 with_x=yes ;;
1566
1567 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568 | --x-incl | --x-inc | --x-in | --x-i)
1569 ac_prev=x_includes ;;
1570 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572 x_includes=$ac_optarg ;;
1573
1574 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576 ac_prev=x_libraries ;;
1577 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579 x_libraries=$ac_optarg ;;
1580
cristy98dddb52010-11-04 00:30:15 +00001581 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001583 ;;
1584
1585 *=*)
1586 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001588 case $ac_envvar in #(
1589 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001591 esac
cristy3ed852e2009-09-05 21:47:34 +00001592 eval $ac_envvar=\$ac_optarg
1593 export $ac_envvar ;;
1594
1595 *)
1596 # FIXME: should be removed in autoconf 3.0.
1597 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001600 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 esac
1604done
1605
1606if test -n "$ac_prev"; then
1607 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001609fi
1610
1611if test -n "$ac_unrecognized_opts"; then
1612 case $enable_option_checking in
1613 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001614 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001615 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616 esac
1617fi
1618
1619# Check all directory arguments for consistency.
1620for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621 datadir sysconfdir sharedstatedir localstatedir includedir \
1622 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623 libdir localedir mandir
1624do
1625 eval ac_val=\$$ac_var
1626 # Remove trailing slashes.
1627 case $ac_val in
1628 */ )
1629 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630 eval $ac_var=\$ac_val;;
1631 esac
1632 # Be sure to have absolute directory names.
1633 case $ac_val in
1634 [\\/$]* | ?:[\\/]* ) continue;;
1635 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636 esac
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001638done
1639
1640# There might be people who depend on the old broken behavior: `$host'
1641# used to hold the argument of --host etc.
1642# FIXME: To remove some day.
1643build=$build_alias
1644host=$host_alias
1645target=$target_alias
1646
1647# FIXME: To remove some day.
1648if test "x$host_alias" != x; then
1649 if test "x$build_alias" = x; then
1650 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001651 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1652 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001653 elif test "x$build_alias" != "x$host_alias"; then
1654 cross_compiling=yes
1655 fi
1656fi
1657
1658ac_tool_prefix=
1659test -n "$host_alias" && ac_tool_prefix=$host_alias-
1660
1661test "$silent" = yes && exec 6>/dev/null
1662
1663
1664ac_pwd=`pwd` && test -n "$ac_pwd" &&
1665ac_ls_di=`ls -di .` &&
1666ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001667 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001668test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001669 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001670
1671
1672# Find the source files, if location was not specified.
1673if test -z "$srcdir"; then
1674 ac_srcdir_defaulted=yes
1675 # Try the directory containing this script, then the parent directory.
1676 ac_confdir=`$as_dirname -- "$as_myself" ||
1677$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678 X"$as_myself" : 'X\(//\)[^/]' \| \
1679 X"$as_myself" : 'X\(//\)$' \| \
1680 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681$as_echo X"$as_myself" |
1682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\/\)[^/].*/{
1687 s//\1/
1688 q
1689 }
1690 /^X\(\/\/\)$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\).*/{
1695 s//\1/
1696 q
1697 }
1698 s/.*/./; q'`
1699 srcdir=$ac_confdir
1700 if test ! -r "$srcdir/$ac_unique_file"; then
1701 srcdir=..
1702 fi
1703else
1704 ac_srcdir_defaulted=no
1705fi
1706if test ! -r "$srcdir/$ac_unique_file"; then
1707 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001708 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001709fi
1710ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1711ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001712 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001713 pwd)`
1714# When building in place, set srcdir=.
1715if test "$ac_abs_confdir" = "$ac_pwd"; then
1716 srcdir=.
1717fi
1718# Remove unnecessary trailing slashes from srcdir.
1719# Double slashes in file names in object file debugging info
1720# mess up M-x gdb in Emacs.
1721case $srcdir in
1722*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1723esac
1724for ac_var in $ac_precious_vars; do
1725 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1726 eval ac_env_${ac_var}_value=\$${ac_var}
1727 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1728 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729done
1730
1731#
1732# Report the --help message.
1733#
1734if test "$ac_init_help" = "long"; then
1735 # Omit some internal or obsolete options to make the list less imposing.
1736 # This message is too long to be a string in the A/UX 3.1 sh.
1737 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001738\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001739
1740Usage: $0 [OPTION]... [VAR=VALUE]...
1741
1742To assign environment variables (e.g., CC, CFLAGS...), specify them as
1743VAR=VALUE. See below for descriptions of some of the useful variables.
1744
1745Defaults for the options are specified in brackets.
1746
1747Configuration:
1748 -h, --help display this help and exit
1749 --help=short display options specific to this package
1750 --help=recursive display the short help of all the included packages
1751 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001752 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001753 --cache-file=FILE cache test results in FILE [disabled]
1754 -C, --config-cache alias for \`--cache-file=config.cache'
1755 -n, --no-create do not create output files
1756 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1757
1758Installation directories:
1759 --prefix=PREFIX install architecture-independent files in PREFIX
1760 [$ac_default_prefix]
1761 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1762 [PREFIX]
1763
1764By default, \`make install' will install all the files in
1765\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1766an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1767for instance \`--prefix=\$HOME'.
1768
1769For better control, use the options below.
1770
1771Fine tuning of the installation directories:
1772 --bindir=DIR user executables [EPREFIX/bin]
1773 --sbindir=DIR system admin executables [EPREFIX/sbin]
1774 --libexecdir=DIR program executables [EPREFIX/libexec]
1775 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1776 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1777 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1778 --libdir=DIR object code libraries [EPREFIX/lib]
1779 --includedir=DIR C header files [PREFIX/include]
1780 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1781 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1782 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1783 --infodir=DIR info documentation [DATAROOTDIR/info]
1784 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1785 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001786 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001787 --htmldir=DIR html documentation [DOCDIR]
1788 --dvidir=DIR dvi documentation [DOCDIR]
1789 --pdfdir=DIR pdf documentation [DOCDIR]
1790 --psdir=DIR ps documentation [DOCDIR]
1791_ACEOF
1792
1793 cat <<\_ACEOF
1794
cristy73bd4a52010-10-05 11:24:23 +00001795Program names:
1796 --program-prefix=PREFIX prepend PREFIX to installed program names
1797 --program-suffix=SUFFIX append SUFFIX to installed program names
1798 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1799
cristy3ed852e2009-09-05 21:47:34 +00001800X features:
1801 --x-includes=DIR X include files are in DIR
1802 --x-libraries=DIR X library files are in DIR
1803
1804System types:
1805 --build=BUILD configure for building on BUILD [guessed]
1806 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1807 --target=TARGET configure for building compilers for TARGET [HOST]
1808_ACEOF
1809fi
1810
1811if test -n "$ac_init_help"; then
1812 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001813 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001814 esac
1815 cat <<\_ACEOF
1816
1817Optional Features:
1818 --disable-option-checking ignore unrecognized --enable/--with options
1819 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1820 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001821 --enable-silent-rules less verbose build output (undo: `make V=1')
1822 --disable-silent-rules verbose build output (undo: `make V=0')
1823 --disable-dependency-tracking speeds up one-time build
1824 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001825 --bounds-checking enable run-time bounds-checking
1826 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001827 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001829 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001830 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001831 --enable-shared[=PKGS] build shared libraries [default=yes]
1832 --enable-static[=PKGS] build static libraries [default=yes]
1833 --enable-fast-install[=PKGS]
1834 optimize for fast installation [default=yes]
1835 --disable-libtool-lock avoid locking (might break parallel builds)
1836 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001837 --enable-delegate-build look for delegate libraries in build directory
1838 --disable-deprecated exclude deprecated methods in MagickCore and
1839 MagickWand API's
1840 --disable-installed Formally install ImageMagick under PREFIX
1841 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001842 --enable-zero-configuration
1843 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001844 zero-configuration ImageMagick
1845 --enable-hdri accurately represent the wide range of intensity
1846 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001847 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001848 --enable-maintainer-mode enable make rules and dependencies not useful
1849 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001850 --enable-ccmalloc enable 'ccmalloc' memory debug support
1851 --enable-efence enable 'efence' memory debug support
1852 --enable-prof enable 'prof' profiling support
1853 --enable-gprof enable 'gprof' profiling support
1854 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001855 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001856
1857Optional Packages:
1858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001860 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1861 --with-dmalloc use dmalloc, as in
1862 http://www.dmalloc.com/dmalloc.tar.gz
cristy670aa3c2011-11-03 00:54:00 +00001863 --includearch-dir=DIR ARCH specific include directory
1864 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001866 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001867 both]
cristyda16f162011-02-19 23:52:17 +00001868 --with-sysroot=DIR Search for dependent libraries within DIR
1869 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001870 --with-included-ltdl use the GNU ltdl sources included here
1871 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1872 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001873 --with-modules enable building dynamically loadable modules
1874 --with-method-prefix=PREFIX
1875 prefix MagickCore API methods
1876 --with-quantum-depth=DEPTH
1877 number of bits in a pixel quantum (default 16)
1878 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1879 memory)
1880 --with-frozenpaths freeze delegate paths
1881 --without-magick-plus-plus
1882 disable build/install of Magick++
1883 --with-perl enable build/install of PerlMagick
1884 --with-perl-options=OPTIONS
1885 options to pass on command-line when generating
1886 PerlMagick's build file
1887 --with-umem enable umem memory allocation library support
1888 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1889 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001890 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-zlib disable ZLIB support
1892 --with-autotrace enable autotrace support
1893 --without-dps disable Display Postscript support
1894 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001895 --with-dejavu-font-dir=DIR
1896 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-fftw disable FFTW support
1898 --without-fpx disable FlashPIX support
1899 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001900 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001901 --without-gslib enable Ghostscript library support
1902 --with-fontpath=DIR prepend to default font search path
1903 --with-gs-font-dir=DIR Ghostscript font directory
1904 --without-gvc disable GVC support
1905 --without-jbig disable JBIG support
1906 --without-jpeg disable JPEG support
1907 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001908 --without-lcms disable lcms (v1.1X) support
1909 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001910 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001911 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001912 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001913 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-png disable PNG support
1915 --without-rsvg disable RSVG support
1916 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001917 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-windows-font-dir=DIR
1919 directory containing MS-Windows fonts
1920 --without-wmf disable WMF support
1921 --without-xml disable XML support
1922
1923Some influential environment variables:
1924 CC C compiler command
1925 CFLAGS C compiler flags
1926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1927 nonstandard directory <lib dir>
1928 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001929 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001930 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001931 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001932 CXX C++ compiler command
1933 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001934 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001935 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001936 XMKMF Path to xmkmf, Makefile generator for X Window System
1937 AUTOTRACE_CFLAGS
1938 C compiler flags for AUTOTRACE, overriding pkg-config
1939 AUTOTRACE_LIBS
1940 linker flags for AUTOTRACE, overriding pkg-config
1941 FONTCONFIG_CFLAGS
1942 C compiler flags for FONTCONFIG, overriding pkg-config
1943 FONTCONFIG_LIBS
1944 linker flags for FONTCONFIG, overriding pkg-config
1945 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1946 GVC_LIBS linker flags for GVC, overriding pkg-config
1947 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1948 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001949 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1950 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001951 OPENEXR_CFLAGS
1952 C compiler flags for OPENEXR, overriding pkg-config
1953 OPENEXR_LIBS
1954 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001955 PANGO_CFLAGS
1956 C compiler flags for PANGO, overriding pkg-config
1957 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001958 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1959 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1960 CAIRO_SVG_CFLAGS
1961 C compiler flags for CAIRO_SVG, overriding pkg-config
1962 CAIRO_SVG_LIBS
1963 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001964
1965Use these variables to override the choices made by `configure' or to help
1966it to find libraries and programs with nonstandard names/locations.
1967
1968Report bugs to <http://www.imagemagick.org>.
1969_ACEOF
1970ac_status=$?
1971fi
1972
1973if test "$ac_init_help" = "recursive"; then
1974 # If there are subdirs, report their specific --help.
1975 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1976 test -d "$ac_dir" ||
1977 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1978 continue
1979 ac_builddir=.
1980
1981case "$ac_dir" in
1982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983*)
1984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1985 # A ".." for each directory in $ac_dir_suffix.
1986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1987 case $ac_top_builddir_sub in
1988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1990 esac ;;
1991esac
1992ac_abs_top_builddir=$ac_pwd
1993ac_abs_builddir=$ac_pwd$ac_dir_suffix
1994# for backward compatibility:
1995ac_top_builddir=$ac_top_build_prefix
1996
1997case $srcdir in
1998 .) # We are building in place.
1999 ac_srcdir=.
2000 ac_top_srcdir=$ac_top_builddir_sub
2001 ac_abs_top_srcdir=$ac_pwd ;;
2002 [\\/]* | ?:[\\/]* ) # Absolute name.
2003 ac_srcdir=$srcdir$ac_dir_suffix;
2004 ac_top_srcdir=$srcdir
2005 ac_abs_top_srcdir=$srcdir ;;
2006 *) # Relative name.
2007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2008 ac_top_srcdir=$ac_top_build_prefix$srcdir
2009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2010esac
2011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012
2013 cd "$ac_dir" || { ac_status=$?; continue; }
2014 # Check for guested configure.
2015 if test -f "$ac_srcdir/configure.gnu"; then
2016 echo &&
2017 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2018 elif test -f "$ac_srcdir/configure"; then
2019 echo &&
2020 $SHELL "$ac_srcdir/configure" --help=recursive
2021 else
2022 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 fi || ac_status=$?
2024 cd "$ac_pwd" || { ac_status=$?; break; }
2025 done
2026fi
2027
2028test -n "$ac_init_help" && exit $ac_status
2029if $ac_init_version; then
2030 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002031ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002032generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002033
cristy98dddb52010-11-04 00:30:15 +00002034Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002035This configure script is free software; the Free Software Foundation
2036gives unlimited permission to copy, distribute and modify it.
2037_ACEOF
2038 exit
2039fi
cristy8b350f62009-11-15 23:12:43 +00002040
2041## ------------------------ ##
2042## Autoconf initialization. ##
2043## ------------------------ ##
2044
2045# ac_fn_c_try_compile LINENO
2046# --------------------------
2047# Try to compile conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_c_try_compile ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext
2052 if { { ac_try="$ac_compile"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_compile") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_c_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest.$ac_objext; then :
2071 ac_retval=0
2072else
2073 $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
2077fi
cristyda16f162011-02-19 23:52:17 +00002078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002079 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002080
2081} # ac_fn_c_try_compile
2082
cristy95646052009-11-28 23:05:30 +00002083# ac_fn_c_try_cpp LINENO
2084# ----------------------
2085# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_cpp ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095$as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 ac_status=$?
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2102 fi
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002104 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2106 test ! -s conftest.err
2107 }; then :
2108 ac_retval=0
2109else
2110 $as_echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=1
2114fi
cristyda16f162011-02-19 23:52:17 +00002115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002116 as_fn_set_status $ac_retval
2117
2118} # ac_fn_c_try_cpp
2119
cristy8b350f62009-11-15 23:12:43 +00002120# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121# -------------------------------------------------------
2122# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123# the include files in INCLUDES and setting the cache variable VAR
2124# accordingly.
2125ac_fn_c_check_header_mongrel ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002128 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002131if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002132 $as_echo_n "(cached) " >&6
2133fi
2134eval ac_res=\$$3
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137else
2138 # Is the header compilable?
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140$as_echo_n "checking $2 usability... " >&6; }
2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144#include <$2>
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_header_compiler=yes
2148else
2149 ac_header_compiler=no
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153$as_echo "$ac_header_compiler" >&6; }
2154
2155# Is the header present?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157$as_echo_n "checking $2 presence... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160#include <$2>
2161_ACEOF
2162if ac_fn_c_try_cpp "$LINENO"; then :
2163 ac_header_preproc=yes
2164else
2165 ac_header_preproc=no
2166fi
cristyda16f162011-02-19 23:52:17 +00002167rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169$as_echo "$ac_header_preproc" >&6; }
2170
2171# So? What about this header?
2172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173 yes:no: )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ;;
2179 no:yes:* )
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2183$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2187$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002190( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002191## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002192## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002193 ) | sed "s/^/$as_me: WARNING: /" >&2
2194 ;;
2195esac
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002198if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002199 $as_echo_n "(cached) " >&6
2200else
2201 eval "$3=\$ac_header_compiler"
2202fi
2203eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206fi
cristyda16f162011-02-19 23:52:17 +00002207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002208
2209} # ac_fn_c_check_header_mongrel
2210
2211# ac_fn_c_try_run LINENO
2212# ----------------------
2213# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2214# that executables *can* be run.
2215ac_fn_c_try_run ()
2216{
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if { { ac_try="$ac_link"
2219case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2229 { { case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_try") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; }; }; then :
2239 ac_retval=0
2240else
2241 $as_echo "$as_me: program exited with status $ac_status" >&5
2242 $as_echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_retval=$ac_status
2246fi
2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002249 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002250
2251} # ac_fn_c_try_run
2252
2253# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2254# -------------------------------------------------------
2255# Tests whether HEADER exists and can be compiled using the include files in
2256# INCLUDES, setting the cache variable VAR accordingly.
2257ac_fn_c_check_header_compile ()
2258{
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002262if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002263 $as_echo_n "(cached) " >&6
2264else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 eval "$3=yes"
2272else
2273 eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002281
2282} # ac_fn_c_check_header_compile
2283
cristya0b81c32010-01-22 02:54:33 +00002284# ac_fn_cxx_try_compile LINENO
2285# ----------------------------
2286# Try to compile conftest.$ac_ext, and return whether this succeeded.
2287ac_fn_cxx_try_compile ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2292case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297$as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2304 fi
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_cxx_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 ac_retval=1
2316fi
cristyda16f162011-02-19 23:52:17 +00002317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002318 as_fn_set_status $ac_retval
2319
2320} # ac_fn_cxx_try_compile
2321
cristy8b350f62009-11-15 23:12:43 +00002322# ac_fn_c_try_link LINENO
2323# -----------------------
2324# Try to link conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_c_try_link ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 $as_test_x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352else
2353 $as_echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_retval=1
2357fi
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002364 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002365
2366} # ac_fn_c_try_link
2367
cristy73bd4a52010-10-05 11:24:23 +00002368# ac_fn_c_check_func LINENO FUNC VAR
2369# ----------------------------------
2370# Tests whether FUNC exists, setting the cache variable VAR accordingly
2371ac_fn_c_check_func ()
2372{
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002376if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002377 $as_echo_n "(cached) " >&6
2378else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380/* end confdefs.h. */
2381/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2383#define $2 innocuous_$2
2384
2385/* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $2 (); below.
2387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2388 <limits.h> exists even on freestanding compilers. */
2389
2390#ifdef __STDC__
2391# include <limits.h>
2392#else
2393# include <assert.h>
2394#endif
2395
2396#undef $2
2397
2398/* Override any GCC internal prototype to avoid an error.
2399 Use char because int might match the return type of a GCC
2400 builtin and then its argument prototype would still apply. */
2401#ifdef __cplusplus
2402extern "C"
2403#endif
2404char $2 ();
2405/* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408#if defined __stub_$2 || defined __stub___$2
2409choke me
2410#endif
2411
2412int
2413main ()
2414{
2415return $2 ();
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_link "$LINENO"; then :
2421 eval "$3=yes"
2422else
2423 eval "$3=no"
2424fi
2425rm -f core conftest.err conftest.$ac_objext \
2426 conftest$ac_exeext conftest.$ac_ext
2427fi
2428eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002432
2433} # ac_fn_c_check_func
2434
2435# ac_fn_cxx_try_cpp LINENO
2436# ------------------------
2437# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2438ac_fn_cxx_try_cpp ()
2439{
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 if { { ac_try="$ac_cpp conftest.$ac_ext"
2442case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447$as_echo "$ac_try_echo"; } >&5
2448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449 ac_status=$?
2450 if test -s conftest.err; then
2451 grep -v '^ *+' conftest.err >conftest.er1
2452 cat conftest.er1 >&5
2453 mv -f conftest.er1 conftest.err
2454 fi
2455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002456 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002457 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2458 test ! -s conftest.err
2459 }; then :
2460 ac_retval=0
2461else
2462 $as_echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_retval=1
2466fi
cristyda16f162011-02-19 23:52:17 +00002467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002468 as_fn_set_status $ac_retval
2469
2470} # ac_fn_cxx_try_cpp
2471
2472# ac_fn_cxx_try_link LINENO
2473# -------------------------
2474# Try to link conftest.$ac_ext, and return whether this succeeded.
2475ac_fn_cxx_try_link ()
2476{
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { { ac_try="$ac_link"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; } && {
2495 test -z "$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest$ac_exeext && {
2498 test "$cross_compiling" = yes ||
2499 $as_test_x conftest$ac_exeext
2500 }; then :
2501 ac_retval=0
2502else
2503 $as_echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507fi
2508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510 # interfere with the next link command; also delete a directory that is
2511 # left behind by Apple's compiler. We do this before executing the actions.
2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002514 as_fn_set_status $ac_retval
2515
2516} # ac_fn_cxx_try_link
2517
cristy98dddb52010-11-04 00:30:15 +00002518# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2519# ---------------------------------------------
2520# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2521# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002522ac_fn_c_check_decl ()
2523{
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002525 as_decl_name=`echo $2|sed 's/ *(.*//'`
2526 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2528$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002529if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002530 $as_echo_n "(cached) " >&6
2531else
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
cristy98dddb52010-11-04 00:30:15 +00002538#ifndef $as_decl_name
2539#ifdef __cplusplus
2540 (void) $as_decl_use;
2541#else
2542 (void) $as_decl_name;
2543#endif
cristy73bd4a52010-10-05 11:24:23 +00002544#endif
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 eval "$3=yes"
2552else
2553 eval "$3=no"
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002561
2562} # ac_fn_c_check_decl
2563
cristy8b350f62009-11-15 23:12:43 +00002564# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2565# -------------------------------------------
2566# Tests whether TYPE exists after having included INCLUDES, setting cache
2567# variable VAR accordingly.
2568ac_fn_c_check_type ()
2569{
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002573if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002574 $as_echo_n "(cached) " >&6
2575else
2576 eval "$3=no"
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578/* end confdefs.h. */
2579$4
2580int
2581main ()
2582{
2583if (sizeof ($2))
2584 return 0;
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589if ac_fn_c_try_compile "$LINENO"; then :
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591/* end confdefs.h. */
2592$4
2593int
2594main ()
2595{
2596if (sizeof (($2)))
2597 return 0;
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603
2604else
2605 eval "$3=yes"
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002615
2616} # ac_fn_c_check_type
2617
cristy92703d82010-04-26 00:18:18 +00002618# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2619# ----------------------------------------------------
2620# Tries to find if the field MEMBER exists in type AGGR, after including
2621# INCLUDES, setting cache variable VAR accordingly.
2622ac_fn_c_check_member ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2626$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002627if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632$5
2633int
2634main ()
2635{
2636static $2 ac_aggr;
2637if (ac_aggr.$3)
2638return 0;
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_compile "$LINENO"; then :
2644 eval "$4=yes"
2645else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$5
2649int
2650main ()
2651{
2652static $2 ac_aggr;
2653if (sizeof ac_aggr.$3)
2654return 0;
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660 eval "$4=yes"
2661else
2662 eval "$4=no"
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668eval ac_res=\$$4
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002672
2673} # ac_fn_c_check_member
2674
cristy501c8042011-05-26 17:46:28 +00002675# ac_fn_c_find_intX_t LINENO BITS VAR
2676# -----------------------------------
2677# Finds a signed integer type with width BITS, setting cache variable VAR
2678# accordingly.
2679ac_fn_c_find_intX_t ()
2680{
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2683$as_echo_n "checking for int$2_t... " >&6; }
2684if eval \${$3+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 eval "$3=no"
2688 # Order is important - never check a type that is potentially smaller
2689 # than half of the expected target width.
2690 for ac_type in int$2_t 'int' 'long int' \
2691 'long long int' 'short int' 'signed char'; do
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693/* end confdefs.h. */
2694$ac_includes_default
2695 enum { N = $2 / 2 - 1 };
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$ac_includes_default
2710 enum { N = $2 / 2 - 1 };
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2715 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723
2724else
2725 case $ac_type in #(
2726 int$2_t) :
2727 eval "$3=yes" ;; #(
2728 *) :
2729 eval "$3=\$ac_type" ;;
2730esac
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 if eval test \"x\$"$3"\" = x"no"; then :
2736
2737else
2738 break
2739fi
2740 done
2741fi
2742eval ac_res=\$$3
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744$as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747} # ac_fn_c_find_intX_t
2748
2749# ac_fn_c_find_uintX_t LINENO BITS VAR
2750# ------------------------------------
2751# Finds an unsigned integer type with width BITS, setting cache variable VAR
2752# accordingly.
2753ac_fn_c_find_uintX_t ()
2754{
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2757$as_echo_n "checking for uint$2_t... " >&6; }
2758if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760else
2761 eval "$3=no"
2762 # Order is important - never check a type that is potentially smaller
2763 # than half of the expected target width.
2764 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2765 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h. */
2768$ac_includes_default
2769int
2770main ()
2771{
2772static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2773test_array [0] = 0
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779if ac_fn_c_try_compile "$LINENO"; then :
2780 case $ac_type in #(
2781 uint$2_t) :
2782 eval "$3=yes" ;; #(
2783 *) :
2784 eval "$3=\$ac_type" ;;
2785esac
2786fi
2787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 if eval test \"x\$"$3"\" = x"no"; then :
2789
2790else
2791 break
2792fi
2793 done
2794fi
2795eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797$as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799
2800} # ac_fn_c_find_uintX_t
2801
cristy8b350f62009-11-15 23:12:43 +00002802# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2803# --------------------------------------------
2804# Tries to find the compile-time value of EXPR in a program that includes
2805# INCLUDES, setting VAR accordingly. Returns whether the value could be
2806# computed
2807ac_fn_c_compute_int ()
2808{
2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2810 if test "$cross_compiling" = yes; then
2811 # Depending upon the size, compute the lo and hi bounds.
2812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813/* end confdefs.h. */
2814$4
2815int
2816main ()
2817{
2818static int test_array [1 - 2 * !(($2) >= 0)];
2819test_array [0] = 0
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825if ac_fn_c_try_compile "$LINENO"; then :
2826 ac_lo=0 ac_mid=0
2827 while :; do
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$4
2831int
2832main ()
2833{
2834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2835test_array [0] = 0
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_hi=$ac_mid; break
2843else
2844 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2845 if test $ac_lo -le $ac_mid; then
2846 ac_lo= ac_hi=
2847 break
2848 fi
2849 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$4
2857int
2858main ()
2859{
2860static int test_array [1 - 2 * !(($2) < 0)];
2861test_array [0] = 0
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_hi=-1 ac_mid=-1
2869 while :; do
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2877test_array [0] = 0
2878
2879 ;
2880 return 0;
2881}
2882_ACEOF
2883if ac_fn_c_try_compile "$LINENO"; then :
2884 ac_lo=$ac_mid; break
2885else
2886 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2887 if test $ac_mid -le $ac_hi; then
2888 ac_lo= ac_hi=
2889 break
2890 fi
2891 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2892fi
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 done
2895else
2896 ac_lo= ac_hi=
2897fi
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899fi
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901# Binary search between lo and hi bounds.
2902while test "x$ac_lo" != "x$ac_hi"; do
2903 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2911test_array [0] = 0
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_hi=$ac_mid
2919else
2920 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923done
2924case $ac_lo in #((
2925?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2926'') ac_retval=1 ;;
2927esac
2928 else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931$4
2932static long int longval () { return $2; }
2933static unsigned long int ulongval () { return $2; }
2934#include <stdio.h>
2935#include <stdlib.h>
2936int
2937main ()
2938{
2939
2940 FILE *f = fopen ("conftest.val", "w");
2941 if (! f)
2942 return 1;
2943 if (($2) < 0)
2944 {
2945 long int i = longval ();
2946 if (i != ($2))
2947 return 1;
2948 fprintf (f, "%ld", i);
2949 }
2950 else
2951 {
2952 unsigned long int i = ulongval ();
2953 if (i != ($2))
2954 return 1;
2955 fprintf (f, "%lu", i);
2956 }
2957 /* Do not output a trailing newline, as this causes \r\n confusion
2958 on some platforms. */
2959 return ferror (f) || fclose (f) != 0;
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965if ac_fn_c_try_run "$LINENO"; then :
2966 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2967else
2968 ac_retval=1
2969fi
2970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2971 conftest.$ac_objext conftest.beam conftest.$ac_ext
2972rm -f conftest.val
2973
2974 fi
cristyda16f162011-02-19 23:52:17 +00002975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002976 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002977
2978} # ac_fn_c_compute_int
2979
2980# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2981# ---------------------------------------------------------
2982# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2983# the include files in INCLUDES and setting the cache variable VAR
2984# accordingly.
2985ac_fn_cxx_check_header_mongrel ()
2986{
2987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002988 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2990$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002991if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002992 $as_echo_n "(cached) " >&6
2993fi
2994eval ac_res=\$$3
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2996$as_echo "$ac_res" >&6; }
2997else
2998 # Is the header compilable?
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3000$as_echo_n "checking $2 usability... " >&6; }
3001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h. */
3003$4
3004#include <$2>
3005_ACEOF
3006if ac_fn_cxx_try_compile "$LINENO"; then :
3007 ac_header_compiler=yes
3008else
3009 ac_header_compiler=no
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3013$as_echo "$ac_header_compiler" >&6; }
3014
3015# Is the header present?
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3017$as_echo_n "checking $2 presence... " >&6; }
3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020#include <$2>
3021_ACEOF
3022if ac_fn_cxx_try_cpp "$LINENO"; then :
3023 ac_header_preproc=yes
3024else
3025 ac_header_preproc=no
3026fi
cristyda16f162011-02-19 23:52:17 +00003027rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3029$as_echo "$ac_header_preproc" >&6; }
3030
3031# So? What about this header?
3032case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3033 yes:no: )
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3035$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3038 ;;
3039 no:yes:* )
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3041$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3043$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3045$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3047$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003050( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003051## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003052## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003053 ) | sed "s/^/$as_me: WARNING: /" >&2
3054 ;;
3055esac
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3057$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003058if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003059 $as_echo_n "(cached) " >&6
3060else
3061 eval "$3=\$ac_header_compiler"
3062fi
3063eval ac_res=\$$3
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066fi
cristyda16f162011-02-19 23:52:17 +00003067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003068
3069} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003070cat >config.log <<_ACEOF
3071This file contains any messages produced by compilers while
3072running configure, to aid debugging if configure makes a mistake.
3073
cristy29eb34e2011-10-16 00:46:08 +00003074It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003075generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003076
3077 $ $0 $@
3078
3079_ACEOF
3080exec 5>>config.log
3081{
3082cat <<_ASUNAME
3083## --------- ##
3084## Platform. ##
3085## --------- ##
3086
3087hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3088uname -m = `(uname -m) 2>/dev/null || echo unknown`
3089uname -r = `(uname -r) 2>/dev/null || echo unknown`
3090uname -s = `(uname -s) 2>/dev/null || echo unknown`
3091uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092
3093/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3094/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095
3096/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3097/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3098/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3099/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3100/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3101/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3102/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3103
3104_ASUNAME
3105
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003111 $as_echo "PATH: $as_dir"
3112 done
cristy3ed852e2009-09-05 21:47:34 +00003113IFS=$as_save_IFS
3114
3115} >&5
3116
3117cat >&5 <<_ACEOF
3118
3119
3120## ----------- ##
3121## Core tests. ##
3122## ----------- ##
3123
3124_ACEOF
3125
3126
3127# Keep a trace of the command line.
3128# Strip out --no-create and --no-recursion so they do not pile up.
3129# Strip out --silent because we don't want to record it for future runs.
3130# Also quote any args containing shell meta-characters.
3131# Make two passes to allow for proper duplicate-argument suppression.
3132ac_configure_args=
3133ac_configure_args0=
3134ac_configure_args1=
3135ac_must_keep_next=false
3136for ac_pass in 1 2
3137do
3138 for ac_arg
3139 do
3140 case $ac_arg in
3141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3143 | -silent | --silent | --silen | --sile | --sil)
3144 continue ;;
3145 *\'*)
3146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 esac
3148 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003150 2)
cristy8b350f62009-11-15 23:12:43 +00003151 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003152 if test $ac_must_keep_next = true; then
3153 ac_must_keep_next=false # Got value, back to normal.
3154 else
3155 case $ac_arg in
3156 *=* | --config-cache | -C | -disable-* | --disable-* \
3157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3159 | -with-* | --with-* | -without-* | --without-* | --x)
3160 case "$ac_configure_args0 " in
3161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3162 esac
3163 ;;
3164 -* ) ac_must_keep_next=true ;;
3165 esac
3166 fi
cristy8b350f62009-11-15 23:12:43 +00003167 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003168 ;;
3169 esac
3170 done
3171done
cristy8b350f62009-11-15 23:12:43 +00003172{ ac_configure_args0=; unset ac_configure_args0;}
3173{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003174
3175# When interrupted or exit'd, cleanup temporary files, and complete
3176# config.log. We remove comments because anyway the quotes in there
3177# would cause problems or look ugly.
3178# WARNING: Use '\'' to represent an apostrophe within the trap.
3179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3180trap 'exit_status=$?
3181 # Save into config.log some information that might help in debugging.
3182 {
3183 echo
3184
cristy98dddb52010-11-04 00:30:15 +00003185 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003186## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003187## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003188 echo
3189 # The following way of writing the cache mishandles newlines in values,
3190(
3191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3192 eval ac_val=\$$ac_var
3193 case $ac_val in #(
3194 *${as_nl}*)
3195 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3198 esac
3199 case $ac_var in #(
3200 _ | IFS | as_nl) ;; #(
3201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003202 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 esac ;;
3204 esac
3205 done
3206 (set) 2>&1 |
3207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3208 *${as_nl}ac_space=\ *)
3209 sed -n \
3210 "s/'\''/'\''\\\\'\'''\''/g;
3211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3212 ;; #(
3213 *)
3214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3215 ;;
3216 esac |
3217 sort
3218)
3219 echo
3220
cristy98dddb52010-11-04 00:30:15 +00003221 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003222## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003223## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003224 echo
3225 for ac_var in $ac_subst_vars
3226 do
3227 eval ac_val=\$$ac_var
3228 case $ac_val in
3229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3230 esac
3231 $as_echo "$ac_var='\''$ac_val'\''"
3232 done | sort
3233 echo
3234
3235 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003236 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003237## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003238## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003239 echo
3240 for ac_var in $ac_subst_files
3241 do
3242 eval ac_val=\$$ac_var
3243 case $ac_val in
3244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245 esac
3246 $as_echo "$ac_var='\''$ac_val'\''"
3247 done | sort
3248 echo
3249 fi
3250
3251 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003252 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003253## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003254## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003255 echo
3256 cat confdefs.h
3257 echo
3258 fi
3259 test "$ac_signal" != 0 &&
3260 $as_echo "$as_me: caught signal $ac_signal"
3261 $as_echo "$as_me: exit $exit_status"
3262 } >&5
3263 rm -f core *.core core.conftest.* &&
3264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3265 exit $exit_status
3266' 0
3267for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003269done
3270ac_signal=0
3271
3272# confdefs.h avoids OS command line length limits that DEFS can exceed.
3273rm -f -r conftest* confdefs.h
3274
cristy8b350f62009-11-15 23:12:43 +00003275$as_echo "/* confdefs.h */" > confdefs.h
3276
cristy3ed852e2009-09-05 21:47:34 +00003277# Predefined preprocessor variables.
3278
3279cat >>confdefs.h <<_ACEOF
3280#define PACKAGE_NAME "$PACKAGE_NAME"
3281_ACEOF
3282
cristy3ed852e2009-09-05 21:47:34 +00003283cat >>confdefs.h <<_ACEOF
3284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3285_ACEOF
3286
cristy3ed852e2009-09-05 21:47:34 +00003287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE_VERSION "$PACKAGE_VERSION"
3289_ACEOF
3290
cristy3ed852e2009-09-05 21:47:34 +00003291cat >>confdefs.h <<_ACEOF
3292#define PACKAGE_STRING "$PACKAGE_STRING"
3293_ACEOF
3294
cristy3ed852e2009-09-05 21:47:34 +00003295cat >>confdefs.h <<_ACEOF
3296#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3297_ACEOF
3298
cristy8b350f62009-11-15 23:12:43 +00003299cat >>confdefs.h <<_ACEOF
3300#define PACKAGE_URL "$PACKAGE_URL"
3301_ACEOF
3302
cristy3ed852e2009-09-05 21:47:34 +00003303
3304# Let the site file select an alternate cache file if it wants to.
3305# Prefer an explicitly selected file to automatically selected ones.
3306ac_site_file1=NONE
3307ac_site_file2=NONE
3308if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003309 # We do not want a PATH search for config.site.
3310 case $CONFIG_SITE in #((
3311 -*) ac_site_file1=./$CONFIG_SITE;;
3312 */*) ac_site_file1=$CONFIG_SITE;;
3313 *) ac_site_file1=./$CONFIG_SITE;;
3314 esac
cristy3ed852e2009-09-05 21:47:34 +00003315elif test "x$prefix" != xNONE; then
3316 ac_site_file1=$prefix/share/config.site
3317 ac_site_file2=$prefix/etc/config.site
3318else
3319 ac_site_file1=$ac_default_prefix/share/config.site
3320 ac_site_file2=$ac_default_prefix/etc/config.site
3321fi
3322for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3323do
3324 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003327$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3328 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003329 . "$ac_site_file" \
3330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332as_fn_error $? "failed to load site script $ac_site_file
3333See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003334 fi
3335done
3336
3337if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003338 # Some versions of bash will fail to source /dev/null (special files
3339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: loading cache $cache_file" >&6;}
3343 case $cache_file in
3344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3345 *) . "./$cache_file";;
3346 esac
3347 fi
3348else
cristy8b350f62009-11-15 23:12:43 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003350$as_echo "$as_me: creating cache $cache_file" >&6;}
3351 >$cache_file
3352fi
3353
cristycd4c5312009-11-22 01:19:08 +00003354as_fn_append ac_header_list " stdlib.h"
3355as_fn_append ac_header_list " unistd.h"
3356as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003357# Check that the precious variables saved in the cache have kept the same
3358# value.
3359ac_cache_corrupted=false
3360for ac_var in $ac_precious_vars; do
3361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362 eval ac_new_set=\$ac_env_${ac_var}_set
3363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364 eval ac_new_val=\$ac_env_${ac_var}_value
3365 case $ac_old_set,$ac_new_set in
3366 set,)
cristy8b350f62009-11-15 23:12:43 +00003367 { $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 +00003368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369 ac_cache_corrupted=: ;;
3370 ,set)
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373 ac_cache_corrupted=: ;;
3374 ,);;
3375 *)
3376 if test "x$ac_old_val" != "x$ac_new_val"; then
3377 # differences in whitespace do not lead to failure.
3378 ac_old_val_w=`echo x $ac_old_val`
3379 ac_new_val_w=`echo x $ac_new_val`
3380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383 ac_cache_corrupted=:
3384 else
cristy8b350f62009-11-15 23:12:43 +00003385 { $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 +00003386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387 eval $ac_var=\$ac_old_val
3388 fi
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3393 fi;;
3394 esac
3395 # Pass precious variables to config.status.
3396 if test "$ac_new_set" = set; then
3397 case $ac_new_val in
3398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399 *) ac_arg=$ac_var=$ac_new_val ;;
3400 esac
3401 case " $ac_configure_args " in
3402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003404 esac
3405 fi
3406done
3407if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003413fi
cristy8b350f62009-11-15 23:12:43 +00003414## -------------------- ##
3415## Main body of script. ##
3416## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425
3426ac_aux_dir=
3427for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003428 if test -f "$ac_dir/install-sh"; then
3429 ac_aux_dir=$ac_dir
3430 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 break
3432 elif test -f "$ac_dir/install.sh"; then
3433 ac_aux_dir=$ac_dir
3434 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 break
3436 elif test -f "$ac_dir/shtool"; then
3437 ac_aux_dir=$ac_dir
3438 ac_install_sh="$ac_aux_dir/shtool install -c"
3439 break
3440 fi
cristy3ed852e2009-09-05 21:47:34 +00003441done
3442if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003443 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444fi
3445
3446# These three variables are undocumented and unsupported,
3447# and are intended to be withdrawn in a future Autoconf release.
3448# They can cause serious problems if a builder's source tree is in a directory
3449# whose full name contains unusual characters.
3450ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3451ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3452ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3453
3454
3455
3456
3457ac_config_headers="$ac_config_headers config/config.h"
3458
cristy24fc1fe2010-10-23 21:13:01 +00003459
cristy4c08aed2011-07-01 19:47:50 +00003460ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003461
cristy4c08aed2011-07-01 19:47:50 +00003462ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003463
3464
3465#
3466# Save initial user-tunable values
3467#
3468USER_LIBS=$LIBS
3469for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3470 eval isset=\${$var+set}
3471 if test "$isset" = 'set'; then
3472 eval val=$`echo $var`
3473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3474 fi
3475done
3476
3477
3478CONFIGURE_ARGS="$0 ${ac_configure_args}"
3479
3480
3481# Source file containing package/library versioning information.
3482. ${srcdir}/version.sh
3483
cristy15a88782010-01-31 23:24:49 +00003484echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003485# Make sure we can run config.sub.
3486$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003488
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003491if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003492 $as_echo_n "(cached) " >&6
3493else
3494 ac_build_alias=$build_alias
3495test "x$ac_build_alias" = x &&
3496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3497test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003499ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501
3502fi
cristy8b350f62009-11-15 23:12:43 +00003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003504$as_echo "$ac_cv_build" >&6; }
3505case $ac_cv_build in
3506*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003507*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003508esac
3509build=$ac_cv_build
3510ac_save_IFS=$IFS; IFS='-'
3511set x $ac_cv_build
3512shift
3513build_cpu=$1
3514build_vendor=$2
3515shift; shift
3516# Remember, the first character of IFS is used to create $*,
3517# except with old shells:
3518build_os=$*
3519IFS=$ac_save_IFS
3520case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3521
3522
cristy8b350f62009-11-15 23:12:43 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003525if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003526 $as_echo_n "(cached) " >&6
3527else
3528 if test "x$host_alias" = x; then
3529 ac_cv_host=$ac_cv_build
3530else
3531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003533fi
3534
3535fi
cristy8b350f62009-11-15 23:12:43 +00003536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo "$ac_cv_host" >&6; }
3538case $ac_cv_host in
3539*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003540*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003541esac
3542host=$ac_cv_host
3543ac_save_IFS=$IFS; IFS='-'
3544set x $ac_cv_host
3545shift
3546host_cpu=$1
3547host_vendor=$2
3548shift; shift
3549# Remember, the first character of IFS is used to create $*,
3550# except with old shells:
3551host_os=$*
3552IFS=$ac_save_IFS
3553case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3554
3555
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003558if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003559 $as_echo_n "(cached) " >&6
3560else
3561 if test "x$target_alias" = x; then
3562 ac_cv_target=$ac_cv_host
3563else
3564 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003566fi
3567
3568fi
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo "$ac_cv_target" >&6; }
3571case $ac_cv_target in
3572*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003573*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003574esac
3575target=$ac_cv_target
3576ac_save_IFS=$IFS; IFS='-'
3577set x $ac_cv_target
3578shift
3579target_cpu=$1
3580target_vendor=$2
3581shift; shift
3582# Remember, the first character of IFS is used to create $*,
3583# except with old shells:
3584target_os=$*
3585IFS=$ac_save_IFS
3586case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3587
3588
3589# The aliases save the names the user supplied, while $host etc.
3590# will get canonicalized.
3591test -n "$target_alias" &&
3592 test "$program_prefix$program_suffix$program_transform_name" = \
3593 NONENONEs,x,x, &&
3594 program_prefix=${target_alias}-
3595
cristy837d6dc2010-02-27 01:16:57 +00003596
3597
3598
cristy19615b82011-04-13 20:02:01 +00003599MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003600
3601
cristy19615b82011-04-13 20:02:01 +00003602MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003603
3604
cristy19615b82011-04-13 20:02:01 +00003605MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003606
3607
cristy3ed852e2009-09-05 21:47:34 +00003608# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003609MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3610
3611MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3612
cristy18307f12011-12-30 01:20:16 +00003613MAGICK_SVN_REVISION=6261
cristyd694ca32011-03-27 21:42:54 +00003614
3615
cristy3ed852e2009-09-05 21:47:34 +00003616
3617
3618# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620$as_echo_n "checking whether build environment is sane... " >&6; }
3621# Just in case
3622sleep 1
3623echo timestamp > conftest.file
3624# Reject unsafe characters in $srcdir or the absolute working directory
3625# name. Accept space and tab only in the latter.
3626am_lf='
3627'
3628case `pwd` in
3629 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003631esac
3632case $srcdir in
3633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003635esac
cristy3ed852e2009-09-05 21:47:34 +00003636
cristy73bd4a52010-10-05 11:24:23 +00003637# Do `set' in a subshell so we don't clobber the current shell's
3638# arguments. Must try -L first in case configure is actually a
3639# symlink; some systems play weird games with the mod time of symlinks
3640# (eg FreeBSD returns the mod time of the symlink's containing
3641# directory).
3642if (
3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3645 # -L didn't work.
3646 set X `ls -t "$srcdir/configure" conftest.file`
3647 fi
3648 rm -f conftest.file
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3651
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003657alias in your environment" "$LINENO" 5
3658 fi
3659
3660 test "$2" = conftest.file
3661 )
3662then
3663 # Ok.
3664 :
3665else
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003667Check your system clock" "$LINENO" 5
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670$as_echo "yes" >&6; }
3671
3672am__api_version='1.11'
3673
3674# Find a good install program. We prefer a C program (faster),
3675# so one script is as good as another. But avoid the broken or
3676# incompatible versions:
3677# SysV /etc/install, /usr/sbin/install
3678# SunOS /usr/etc/install
3679# IRIX /sbin/install
3680# AIX /bin/install
3681# AmigaOS /C/install, which installs bootblocks on floppy discs
3682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685# OS/2's system install, which has a completely different semantic
3686# ./install, which can be erroneously created by make from ./install.sh.
3687# Reject install programs that cannot install multiple files.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003691if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003692 $as_echo_n "(cached) " >&6
3693else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3700case $as_dir/ in #((
3701 ./ | .// | /[cC]/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704 /usr/ucb/* ) ;;
3705 *)
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3708 # by default.
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3715 :
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3719 :
3720 else
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3724 mkdir conftest.dir
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3729 then
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 fi
3735 done
3736 done
3737 ;;
3738esac
3739
3740 done
3741IFS=$as_save_IFS
3742
3743rm -rf conftest.one conftest.two conftest.dir
3744
3745fi
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3754 fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757$as_echo "$INSTALL" >&6; }
3758
3759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760# It thinks the first close brace ends the variable substitution.
3761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767test "$program_prefix" != NONE &&
3768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3769# Use a double $ so make ignores it.
3770test "$program_suffix" != NONE &&
3771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3772# Double any \ or $.
3773# By default was `s,x,x', remove it if useless.
3774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3776
3777# expand $ac_aux_dir to an absolute path
3778am_aux_dir=`cd $ac_aux_dir && pwd`
3779
3780if test x"${MISSING+set}" != xset; then
3781 case $am_aux_dir in
3782 *\ * | *\ *)
3783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3784 *)
3785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3786 esac
3787fi
3788# Use eval to expand $SHELL
3789if eval "$MISSING --run true"; then
3790 am_missing_run="$MISSING --run "
3791else
3792 am_missing_run=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3794$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3795fi
3796
3797if test x"${install_sh}" != xset; then
3798 case $am_aux_dir in
3799 *\ * | *\ *)
3800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3801 *)
3802 install_sh="\${SHELL} $am_aux_dir/install-sh"
3803 esac
3804fi
3805
3806# Installed binaries are usually stripped using `strip' when the user
3807# run `make install-strip'. However `strip' might not be the right
3808# tool to use in cross-compilation environments, therefore Automake
3809# will honor the `STRIP' environment variable to overrule this program.
3810if test "$cross_compiling" != no; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3813set dummy ${ac_tool_prefix}strip; ac_word=$2
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003816if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003817 $as_echo_n "(cached) " >&6
3818else
3819 if test -n "$STRIP"; then
3820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
3834 done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839STRIP=$ac_cv_prog_STRIP
3840if test -n "$STRIP"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3842$as_echo "$STRIP" >&6; }
3843else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845$as_echo "no" >&6; }
3846fi
3847
3848
3849fi
3850if test -z "$ac_cv_prog_STRIP"; then
3851 ac_ct_STRIP=$STRIP
3852 # Extract the first word of "strip", so it can be a program name with args.
3853set dummy strip; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003856if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003857 $as_echo_n "(cached) " >&6
3858else
3859 if test -n "$ac_ct_STRIP"; then
3860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_STRIP="strip"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3880if test -n "$ac_ct_STRIP"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3882$as_echo "$ac_ct_STRIP" >&6; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888 if test "x$ac_ct_STRIP" = x; then
3889 STRIP=":"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892yes:)
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895ac_tool_warned=yes ;;
3896esac
3897 STRIP=$ac_ct_STRIP
3898 fi
3899else
3900 STRIP="$ac_cv_prog_STRIP"
3901fi
3902
3903fi
3904INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3907$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3908if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003909 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in mkdir gmkdir; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3921 'mkdir (GNU coreutils) '* | \
3922 'mkdir (coreutils) '* | \
3923 'mkdir (fileutils) '4.1*)
3924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3925 break 3;;
3926 esac
3927 done
3928 done
3929 done
3930IFS=$as_save_IFS
3931
3932fi
3933
3934 test -d ./--version && rmdir ./--version
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
3937 else
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 MKDIR_P="$ac_install_sh -d"
3943 fi
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3946$as_echo "$MKDIR_P" >&6; }
3947
3948mkdir_p="$MKDIR_P"
3949case $mkdir_p in
3950 [\\/$]* | ?:[\\/]*) ;;
3951 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3952esac
3953
3954for ac_prog in gawk mawk nawk awk
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003960if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003961 $as_echo_n "(cached) " >&6
3962else
3963 if test -n "$AWK"; then
3964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_AWK="$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978 done
3979IFS=$as_save_IFS
3980
3981fi
3982fi
3983AWK=$ac_cv_prog_AWK
3984if test -n "$AWK"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3986$as_echo "$AWK" >&6; }
3987else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
3990fi
3991
3992
3993 test -n "$AWK" && break
3994done
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3998set x ${MAKE-make}
3999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004001 $as_echo_n "(cached) " >&6
4002else
4003 cat >conftest.make <<\_ACEOF
4004SHELL = /bin/sh
4005all:
4006 @echo '@@@%%%=$(MAKE)=@@@%%%'
4007_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004009case `${MAKE-make} -f conftest.make 2>/dev/null` in
4010 *@@@%%%=?*=@@@%%%*)
4011 eval ac_cv_prog_make_${ac_make}_set=yes;;
4012 *)
4013 eval ac_cv_prog_make_${ac_make}_set=no;;
4014esac
4015rm -f conftest.make
4016fi
4017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019$as_echo "yes" >&6; }
4020 SET_MAKE=
4021else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024 SET_MAKE="MAKE=${MAKE-make}"
4025fi
4026
4027rm -rf .tst 2>/dev/null
4028mkdir .tst 2>/dev/null
4029if test -d .tst; then
4030 am__leading_dot=.
4031else
4032 am__leading_dot=_
4033fi
4034rmdir .tst 2>/dev/null
4035
cristya448bd22011-10-14 12:38:13 +00004036# Check whether --enable-silent-rules was given.
4037if test "${enable_silent_rules+set}" = set; then :
4038 enableval=$enable_silent_rules;
4039fi
4040
4041case $enable_silent_rules in
4042yes) AM_DEFAULT_VERBOSITY=0;;
4043no) AM_DEFAULT_VERBOSITY=1;;
4044*) AM_DEFAULT_VERBOSITY=1;;
4045esac
4046AM_BACKSLASH='\'
4047
cristy73bd4a52010-10-05 11:24:23 +00004048if test "`cd $srcdir && pwd`" != "`pwd`"; then
4049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4050 # is not polluted with repeated "-I."
4051 am__isrc=' -I$(srcdir)'
4052 # test to see if srcdir already configured
4053 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004055 fi
4056fi
4057
4058# test whether we have cygpath
4059if test -z "$CYGPATH_W"; then
4060 if (cygpath --version) >/dev/null 2>/dev/null; then
4061 CYGPATH_W='cygpath -w'
4062 else
4063 CYGPATH_W=echo
4064 fi
4065fi
4066
4067
4068# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004069 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004070 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004071
4072
cristya448bd22011-10-14 12:38:13 +00004073cat >>confdefs.h <<_ACEOF
4074#define PACKAGE "$PACKAGE"
4075_ACEOF
4076
4077
4078cat >>confdefs.h <<_ACEOF
4079#define VERSION "$VERSION"
4080_ACEOF
4081
cristy73bd4a52010-10-05 11:24:23 +00004082# Some tools Automake needs.
4083
4084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4085
4086
4087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4088
4089
4090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4091
4092
4093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4094
4095
4096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4097
4098# We need awk for the "check" target. The system "awk" is bad on
4099# some platforms.
4100# Always define AMTAR for backward compatibility.
4101
4102AMTAR=${AMTAR-"${am_missing_run}tar"}
4103
4104am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4105
4106
4107
4108
4109
cristy3ed852e2009-09-05 21:47:34 +00004110
4111# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004112# Check whether --enable-silent-rules was given.
4113if test "${enable_silent_rules+set}" = set; then :
4114 enableval=$enable_silent_rules;
4115fi
4116
4117case $enable_silent_rules in
4118yes) AM_DEFAULT_VERBOSITY=0;;
4119no) AM_DEFAULT_VERBOSITY=1;;
4120*) AM_DEFAULT_VERBOSITY=0;;
4121esac
4122AM_BACKSLASH='\'
4123
cristy3ed852e2009-09-05 21:47:34 +00004124
4125MAGICK_LIB_VERSION="0x"
4126if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4127 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4128fi
4129MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4130if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4131 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4132fi
4133MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4134if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4135 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4136fi
4137MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4138
4139
4140# Definition used to define MagickLibVersionText in version.h
4141MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4142
4143
4144# Definition used to define MagickLibVersionNumber in version.h
4145MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4146
4147
4148# Regenerate config.status if ChangeLog or version.sh is updated.
4149CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4150
4151
4152PERLMAINCC=$CC
4153
4154MAGICK_CFLAGS=''
4155MAGICK_CPPFLAGS=$CPPFLAGS_USER
4156MAGICK_PCFLAGS=$CPPFLAGS_USER
4157MAGICK_LDFLAGS=''
4158MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004159MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004160
4161#
4162# Evaluate shell variable equivalents to Makefile directory variables
4163#
4164if test "x$prefix" = xNONE; then
4165 prefix=$ac_default_prefix
4166fi
4167# Let make expand exec_prefix.
4168if test "x$exec_prefix" = xNONE; then
4169 exec_prefix='${prefix}'
4170fi
4171
4172#
4173eval "eval PREFIX_DIR=${prefix}"
4174
4175eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4176
4177eval "eval BIN_DIR=$bindir"
4178
4179eval "eval SBIN_DIR=$sbindir"
4180
4181eval "eval LIBEXEC_DIR=$libexecdir"
4182
4183eval "eval DATA_DIR=$datadir"
4184
cristyd55889c2011-03-27 00:50:24 +00004185eval "eval DOC_DIR=$docdir"
4186
cristy3ed852e2009-09-05 21:47:34 +00004187eval "eval SYSCONF_DIR=$sysconfdir"
4188
4189eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4190
4191eval "eval LOCALSTATE_DIR=$localstatedir"
4192
4193eval "eval LIB_DIR=$libdir"
4194
4195eval "eval INCLUDE_DIR=$includedir"
4196
4197eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4198
4199eval "eval INFO_DIR=$infodir"
4200
4201eval "eval MAN_DIR=$mandir"
4202
4203
4204# Get full paths to source and build directories
4205srcdirfull="`cd $srcdir && pwd`"
4206builddir="`pwd`"
4207
4208#
4209# Compute variables useful for running uninstalled software.
4210#
4211MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4212MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4213MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4214MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4215DIRSEP=':'
4216case "${build_os}" in
4217 mingw* )
4218 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4219 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4220 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4221 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4222 DIRSEP=';'
4223 ;;
4224esac
4225case "${host_os}" in
4226 mingw* )
4227 DIRSEP=';'
4228 ;;
4229esac
4230
4231
4232
4233
4234
4235
cristya0b81c32010-01-22 02:54:33 +00004236
4237#
4238# Enable OS features.
4239#
cristy73bd4a52010-10-05 11:24:23 +00004240DEPDIR="${am__leading_dot}deps"
4241
4242ac_config_commands="$ac_config_commands depfiles"
4243
4244
4245am_make=${MAKE-make}
4246cat > confinc << 'END'
4247am__doit:
4248 @echo this is the am__doit target
4249.PHONY: am__doit
4250END
4251# If we don't find an include directive, just comment out the code.
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4253$as_echo_n "checking for style of include used by $am_make... " >&6; }
4254am__include="#"
4255am__quote=
4256_am_result=none
4257# First try GNU make style include.
4258echo "include confinc" > confmf
4259# Ignore all kinds of additional output from `make'.
4260case `$am_make -s -f confmf 2> /dev/null` in #(
4261*the\ am__doit\ target*)
4262 am__include=include
4263 am__quote=
4264 _am_result=GNU
4265 ;;
4266esac
4267# Now try BSD make style include.
4268if test "$am__include" = "#"; then
4269 echo '.include "confinc"' > confmf
4270 case `$am_make -s -f confmf 2> /dev/null` in #(
4271 *the\ am__doit\ target*)
4272 am__include=.include
4273 am__quote="\""
4274 _am_result=BSD
4275 ;;
4276 esac
4277fi
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4281$as_echo "$_am_result" >&6; }
4282rm -f confinc confmf
4283
4284# Check whether --enable-dependency-tracking was given.
4285if test "${enable_dependency_tracking+set}" = set; then :
4286 enableval=$enable_dependency_tracking;
4287fi
4288
4289if test "x$enable_dependency_tracking" != xno; then
4290 am_depcomp="$ac_aux_dir/depcomp"
4291 AMDEPBACKSLASH='\'
4292fi
4293 if test "x$enable_dependency_tracking" != xno; then
4294 AMDEP_TRUE=
4295 AMDEP_FALSE='#'
4296else
4297 AMDEP_TRUE='#'
4298 AMDEP_FALSE=
4299fi
4300
4301
cristy3ed852e2009-09-05 21:47:34 +00004302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004312if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327 break 2
4328 fi
4329done
cristy8b350f62009-11-15 23:12:43 +00004330 done
cristy3ed852e2009-09-05 21:47:34 +00004331IFS=$as_save_IFS
4332
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo "$CC" >&6; }
4339else
cristy8b350f62009-11-15 23:12:43 +00004340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$ac_cv_prog_CC"; then
4347 ac_ct_CC=$CC
4348 # Extract the first word of "gcc", so it can be a program name with args.
4349set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004352if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004353 $as_echo_n "(cached) " >&6
4354else
4355 if test -n "$ac_ct_CC"; then
4356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367 break 2
4368 fi
4369done
cristy8b350f62009-11-15 23:12:43 +00004370 done
cristy3ed852e2009-09-05 21:47:34 +00004371IFS=$as_save_IFS
4372
4373fi
4374fi
4375ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378$as_echo "$ac_ct_CC" >&6; }
4379else
cristy8b350f62009-11-15 23:12:43 +00004380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381$as_echo "no" >&6; }
4382fi
4383
4384 if test "x$ac_ct_CC" = x; then
4385 CC=""
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
cristy8b350f62009-11-15 23:12:43 +00004389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391ac_tool_warned=yes ;;
4392esac
4393 CC=$ac_ct_CC
4394 fi
4395else
4396 CC="$ac_cv_prog_CC"
4397fi
4398
4399if test -z "$CC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004405if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420 break 2
4421 fi
4422done
cristy8b350f62009-11-15 23:12:43 +00004423 done
cristy3ed852e2009-09-05 21:47:34 +00004424IFS=$as_save_IFS
4425
4426fi
4427fi
4428CC=$ac_cv_prog_CC
4429if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004431$as_echo "$CC" >&6; }
4432else
cristy8b350f62009-11-15 23:12:43 +00004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo "no" >&6; }
4435fi
4436
4437
4438 fi
4439fi
4440if test -z "$CC"; then
4441 # Extract the first word of "cc", so it can be a program name with args.
4442set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004445if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4450else
4451 ac_prog_rejected=no
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460 ac_prog_rejected=yes
4461 continue
4462 fi
4463 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465 break 2
4466 fi
4467done
cristy8b350f62009-11-15 23:12:43 +00004468 done
cristy3ed852e2009-09-05 21:47:34 +00004469IFS=$as_save_IFS
4470
4471if test $ac_prog_rejected = yes; then
4472 # We found a bogon in the path, so make sure we never use it.
4473 set dummy $ac_cv_prog_CC
4474 shift
4475 if test $# != 0; then
4476 # We chose a different compiler from the bogus one.
4477 # However, it has the same basename, so the bogon will be chosen
4478 # first if we set CC to just the basename; use the full file name.
4479 shift
4480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481 fi
4482fi
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$CC"; then
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in cl.exe
4499 do
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004504if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004505 $as_echo_n "(cached) " >&6
4506else
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519 break 2
4520 fi
4521done
cristy8b350f62009-11-15 23:12:43 +00004522 done
cristy3ed852e2009-09-05 21:47:34 +00004523IFS=$as_save_IFS
4524
4525fi
4526fi
4527CC=$ac_cv_prog_CC
4528if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$CC" >&6; }
4531else
cristy8b350f62009-11-15 23:12:43 +00004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "no" >&6; }
4534fi
4535
4536
4537 test -n "$CC" && break
4538 done
4539fi
4540if test -z "$CC"; then
4541 ac_ct_CC=$CC
4542 for ac_prog in cl.exe
4543do
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004548if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$ac_ct_CC"; then
4552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563 break 2
4564 fi
4565done
cristy8b350f62009-11-15 23:12:43 +00004566 done
cristy3ed852e2009-09-05 21:47:34 +00004567IFS=$as_save_IFS
4568
4569fi
4570fi
4571ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$ac_ct_CC" >&6; }
4575else
cristy8b350f62009-11-15 23:12:43 +00004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "no" >&6; }
4578fi
4579
4580
4581 test -n "$ac_ct_CC" && break
4582done
4583
4584 if test "x$ac_ct_CC" = x; then
4585 CC=""
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588yes:)
cristy8b350f62009-11-15 23:12:43 +00004589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593 CC=$ac_ct_CC
4594 fi
4595fi
4596
4597fi
4598
4599
cristy8b350f62009-11-15 23:12:43 +00004600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004602as_fn_error $? "no acceptable C compiler found in \$PATH
4603See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004604
4605# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607set X $ac_compile
4608ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004609for ac_option in --version -v -V -qversion; do
4610 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
cristy8b350f62009-11-15 23:12:43 +00004615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004618 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004619 if test -s conftest.err; then
4620 sed '10a\
4621... rest of stderr output deleted ...
4622 10q' conftest.err >conftest.er1
4623 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004624 fi
cristycd4c5312009-11-22 01:19:08 +00004625 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }
4628done
cristy3ed852e2009-09-05 21:47:34 +00004629
cristy8b350f62009-11-15 23:12:43 +00004630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004631/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004632
cristy3ed852e2009-09-05 21:47:34 +00004633int
4634main ()
4635{
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004643# Try to create an executable without -o first, disregard a.out.
4644# It will help us diagnose broken compilers, and finding out an intuition
4645# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4647$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4649
4650# The possible output files:
4651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4652
4653ac_rmfiles=
4654for ac_file in $ac_files
4655do
4656 case $ac_file in
4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4658 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4659 esac
4660done
4661rm -f $ac_rmfiles
4662
cristy8b350f62009-11-15 23:12:43 +00004663if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004664case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667esac
cristy8b350f62009-11-15 23:12:43 +00004668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004670 (eval "$ac_link_default") 2>&5
4671 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4676# in a Makefile. We should not override ac_cv_exeext if it was cached,
4677# so that the user can short-circuit this test for compilers unknown to
4678# Autoconf.
4679for ac_file in $ac_files ''
4680do
4681 test -f "$ac_file" || continue
4682 case $ac_file in
4683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4684 ;;
4685 [ab].out )
4686 # We found the default executable, but exeext='' is most
4687 # certainly right.
4688 break;;
4689 *.* )
cristy8b350f62009-11-15 23:12:43 +00004690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004691 then :; else
4692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4693 fi
4694 # We set ac_cv_exeext here because the later test for it is not
4695 # safe: cross compilers may not add the suffix if given an `-o'
4696 # argument, so we may need to know it at that point already.
4697 # Even if this section looks crufty: it has the advantage of
4698 # actually working.
4699 break;;
4700 * )
4701 break;;
4702 esac
4703done
4704test "$ac_cv_exeext" = no && ac_cv_exeext=
4705
4706else
4707 ac_file=''
4708fi
cristy8b350f62009-11-15 23:12:43 +00004709if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713sed 's/^/| /' conftest.$ac_ext >&5
4714
cristy8b350f62009-11-15 23:12:43 +00004715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004717as_fn_error 77 "C compiler cannot create executables
4718See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004722fi
cristycd4c5312009-11-22 01:19:08 +00004723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4724$as_echo_n "checking for C compiler default output file name... " >&6; }
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4726$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004727ac_exeext=$ac_cv_exeext
4728
cristycd4c5312009-11-22 01:19:08 +00004729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004730ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004733if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004734case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737esac
cristy8b350f62009-11-15 23:12:43 +00004738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004740 (eval "$ac_link") 2>&5
4741 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4746# work properly (i.e., refer to `conftest.exe'), while it won't with
4747# `rm'.
4748for ac_file in conftest.exe conftest conftest.*; do
4749 test -f "$ac_file" || continue
4750 case $ac_file in
4751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4753 break;;
4754 * ) break;;
4755 esac
4756done
4757else
cristy8b350f62009-11-15 23:12:43 +00004758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004760as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4761See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004762fi
cristycd4c5312009-11-22 01:19:08 +00004763rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo "$ac_cv_exeext" >&6; }
4766
4767rm -f conftest.$ac_ext
4768EXEEXT=$ac_cv_exeext
4769ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <stdio.h>
4773int
4774main ()
4775{
4776FILE *f = fopen ("conftest.out", "w");
4777 return ferror (f) || fclose (f) != 0;
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783ac_clean_files="$ac_clean_files conftest.out"
4784# Check that the compiler produces executables we can run. If not, either
4785# the compiler is broken, or we cross compile.
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4787$as_echo_n "checking whether we are cross compiling... " >&6; }
4788if test "$cross_compiling" != yes; then
4789 { { ac_try="$ac_link"
4790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795$as_echo "$ac_try_echo"; } >&5
4796 (eval "$ac_link") 2>&5
4797 ac_status=$?
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4800 if { ac_try='./conftest$ac_cv_exeext'
4801 { { case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806$as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_try") 2>&5
4808 ac_status=$?
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; }; }; then
4811 cross_compiling=no
4812 else
4813 if test "$cross_compiling" = maybe; then
4814 cross_compiling=yes
4815 else
4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004818as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004819If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004820See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004821 fi
4822 fi
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4825$as_echo "$cross_compiling" >&6; }
4826
4827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4828ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004831if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004832 $as_echo_n "(cached) " >&6
4833else
cristy8b350f62009-11-15 23:12:43 +00004834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004835/* end confdefs.h. */
4836
4837int
4838main ()
4839{
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004846if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
cristy8b350f62009-11-15 23:12:43 +00004851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004853 (eval "$ac_compile") 2>&5
4854 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004857 for ac_file in conftest.o conftest.obj conftest.*; do
4858 test -f "$ac_file" || continue;
4859 case $ac_file in
4860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4862 break;;
4863 esac
4864done
4865else
4866 $as_echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
cristy8b350f62009-11-15 23:12:43 +00004869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004871as_fn_error $? "cannot compute suffix of object files: cannot compile
4872See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874rm -f conftest.$ac_cv_objext conftest.$ac_ext
4875fi
cristy8b350f62009-11-15 23:12:43 +00004876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004877$as_echo "$ac_cv_objext" >&6; }
4878OBJEXT=$ac_cv_objext
4879ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004882if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004883 $as_echo_n "(cached) " >&6
4884else
cristy8b350f62009-11-15 23:12:43 +00004885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891#ifndef __GNUC__
4892 choke me
4893#endif
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004899if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004900 ac_compiler_gnu=yes
4901else
cristy8b350f62009-11-15 23:12:43 +00004902 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004903fi
cristy3ed852e2009-09-05 21:47:34 +00004904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906
4907fi
cristy8b350f62009-11-15 23:12:43 +00004908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912else
4913 GCC=
4914fi
4915ac_test_CFLAGS=${CFLAGS+set}
4916ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004919if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 $as_echo_n "(cached) " >&6
4921else
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4924 ac_cv_prog_cc_g=no
4925 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004938 ac_cv_prog_cc_g=yes
4939else
cristy8b350f62009-11-15 23:12:43 +00004940 CFLAGS=""
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004953
cristy8b350f62009-11-15 23:12:43 +00004954else
4955 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004956 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004958/* end confdefs.h. */
4959
4960int
4961main ()
4962{
4963
4964 ;
4965 return 0;
4966}
4967_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004968if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004969 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004970fi
cristy3ed852e2009-09-05 21:47:34 +00004971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972fi
cristy3ed852e2009-09-05 21:47:34 +00004973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
cristy3ed852e2009-09-05 21:47:34 +00004975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977fi
cristy8b350f62009-11-15 23:12:43 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo "$ac_cv_prog_cc_g" >&6; }
4980if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4984 CFLAGS="-g -O2"
4985 else
4986 CFLAGS="-g"
4987 fi
4988else
4989 if test "$GCC" = yes; then
4990 CFLAGS="-O2"
4991 else
4992 CFLAGS=
4993 fi
4994fi
cristy8b350f62009-11-15 23:12:43 +00004995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004997if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004998 $as_echo_n "(cached) " >&6
4999else
5000 ac_cv_prog_cc_c89=no
5001ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005003/* end confdefs.h. */
5004#include <stdarg.h>
5005#include <stdio.h>
5006#include <sys/types.h>
5007#include <sys/stat.h>
5008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009struct buf { int x; };
5010FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011static char *e (p, i)
5012 char **p;
5013 int i;
5014{
5015 return p[i];
5016}
5017static char *f (char * (*g) (char **, int), char **p, ...)
5018{
5019 char *s;
5020 va_list v;
5021 va_start (v,p);
5022 s = g (p, va_arg (v,int));
5023 va_end (v);
5024 return s;
5025}
5026
5027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
5030 as 'x'. The following induces an error, until -std is added to get
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
5033 that's true only with -std. */
5034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5035
5036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5038#define FOO(x) 'x'
5039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040
5041int test (int i, double x);
5042struct s1 {int (*f) (int a);};
5043struct s2 {int (*f) (double a);};
5044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5045int argc;
5046char **argv;
5047int
5048main ()
5049{
5050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 ;
5052 return 0;
5053}
5054_ACEOF
5055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5057do
5058 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005059 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005060 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005061fi
cristy3ed852e2009-09-05 21:47:34 +00005062rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c89" != "xno" && break
5064done
5065rm -f conftest.$ac_ext
5066CC=$ac_save_CC
5067
5068fi
5069# AC_CACHE_VAL
5070case "x$ac_cv_prog_cc_c89" in
5071 x)
cristy8b350f62009-11-15 23:12:43 +00005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005073$as_echo "none needed" >&6; } ;;
5074 xno)
cristy8b350f62009-11-15 23:12:43 +00005075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005076$as_echo "unsupported" >&6; } ;;
5077 *)
5078 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5081esac
cristy8b350f62009-11-15 23:12:43 +00005082if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005083
cristy8b350f62009-11-15 23:12:43 +00005084fi
cristy3ed852e2009-09-05 21:47:34 +00005085
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005091
cristy73bd4a52010-10-05 11:24:23 +00005092depcc="$CC" am_compiler_list=
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5095$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005096if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005097 $as_echo_n "(cached) " >&6
5098else
5099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5100 # We make a subdir and do the tests there. Otherwise we can end up
5101 # making bogus files that we don't know about and never remove. For
5102 # instance it was reported that on HP-UX the gcc test will end up
5103 # making a dummy file named `D' -- because `-MD' means `put the output
5104 # in D'.
5105 mkdir conftest.dir
5106 # Copy depcomp to subdir because otherwise we won't find it if we're
5107 # using a relative directory.
5108 cp "$am_depcomp" conftest.dir
5109 cd conftest.dir
5110 # We will build objects and dependencies in a subdirectory because
5111 # it helps to detect inapplicable dependency modes. For instance
5112 # both Tru64's cc and ICC support -MD to output dependencies as a
5113 # side effect of compilation, but ICC will put the dependencies in
5114 # the current directory while Tru64 will put them in the object
5115 # directory.
5116 mkdir sub
5117
5118 am_cv_CC_dependencies_compiler_type=none
5119 if test "$am_compiler_list" = ""; then
5120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5121 fi
5122 am__universal=false
5123 case " $depcc " in #(
5124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5125 esac
5126
5127 for depmode in $am_compiler_list; do
5128 # Setup a source with many dependencies, because some compilers
5129 # like to wrap large dependency lists on column 80 (with \), and
5130 # we should not choose a depcomp mode which is confused by this.
5131 #
5132 # We need to recreate these files for each test, as the compiler may
5133 # overwrite some of them when testing with obscure command lines.
5134 # This happens at least with the AIX C compiler.
5135 : > sub/conftest.c
5136 for i in 1 2 3 4 5 6; do
5137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5139 # Solaris 8's {/usr,}/bin/sh.
5140 touch sub/conftst$i.h
5141 done
5142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5143
5144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5145 # mode. It turns out that the SunPro C++ compiler does not properly
5146 # handle `-M -o', and we need to detect this. Also, some Intel
5147 # versions had trouble with output in subdirs
5148 am__obj=sub/conftest.${OBJEXT-o}
5149 am__minus_obj="-o $am__obj"
5150 case $depmode in
5151 gcc)
5152 # This depmode causes a compiler race in universal mode.
5153 test "$am__universal" = false || continue
5154 ;;
5155 nosideeffect)
5156 # after this tag, mechanisms are not by side-effect, so they'll
5157 # only be used when explicitly requested
5158 if test "x$enable_dependency_tracking" = xyes; then
5159 continue
5160 else
5161 break
5162 fi
5163 ;;
5164 msvisualcpp | msvcmsys)
5165 # This compiler won't grok `-c -o', but also, the minuso test has
5166 # not run yet. These depmodes are late enough in the game, and
5167 # so weak that their functioning should not be impacted.
5168 am__obj=conftest.${OBJEXT-o}
5169 am__minus_obj=
5170 ;;
5171 none) break ;;
5172 esac
5173 if depmode=$depmode \
5174 source=sub/conftest.c object=$am__obj \
5175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5177 >/dev/null 2>conftest.err &&
5178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5182 # icc doesn't choke on unknown options, it will just issue warnings
5183 # or remarks (even with -Werror). So we grep stderr for any message
5184 # that says an option was ignored or not supported.
5185 # When given -MP, icc 7.0 and 7.1 complain thusly:
5186 # icc: Command line warning: ignoring option '-M'; no argument required
5187 # The diagnosis changed in icc 8.0:
5188 # icc: Command line remark: option '-MP' not supported
5189 if (grep 'ignoring option' conftest.err ||
5190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5191 am_cv_CC_dependencies_compiler_type=$depmode
5192 break
5193 fi
5194 fi
5195 done
5196
5197 cd ..
5198 rm -rf conftest.dir
5199else
5200 am_cv_CC_dependencies_compiler_type=none
5201fi
5202
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5205$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5206CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5207
5208 if
5209 test "x$enable_dependency_tracking" != xno \
5210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5211 am__fastdepCC_TRUE=
5212 am__fastdepCC_FALSE='#'
5213else
5214 am__fastdepCC_TRUE='#'
5215 am__fastdepCC_FALSE=
5216fi
5217
5218
cristy3ed852e2009-09-05 21:47:34 +00005219
cristya0b81c32010-01-22 02:54:33 +00005220ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5226$as_echo_n "checking how to run the C preprocessor... " >&6; }
5227# On Suns, sometimes $CPP names a directory.
5228if test -n "$CPP" && test -d "$CPP"; then
5229 CPP=
5230fi
5231if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005232 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005233 $as_echo_n "(cached) " >&6
5234else
5235 # Double quotes because CPP needs to be expanded
5236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5237 do
5238 ac_preproc_ok=false
5239for ac_c_preproc_warn_flag in '' yes
5240do
5241 # Use a header file that comes with gcc, so configuring glibc
5242 # with a fresh cross-compiler works.
5243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244 # <limits.h> exists even on freestanding compilers.
5245 # On the NeXT, cc -E runs the code through the compiler's parser,
5246 # not just through cpp. "Syntax error" is here to catch this case.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h. */
5249#ifdef __STDC__
5250# include <limits.h>
5251#else
5252# include <assert.h>
5253#endif
5254 Syntax error
5255_ACEOF
5256if ac_fn_c_try_cpp "$LINENO"; then :
5257
5258else
5259 # Broken: fails on valid input.
5260continue
5261fi
cristyda16f162011-02-19 23:52:17 +00005262rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005263
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h. */
5268#include <ac_nonexistent.h>
5269_ACEOF
5270if ac_fn_c_try_cpp "$LINENO"; then :
5271 # Broken: success on invalid input.
5272continue
5273else
5274 # Passes both tests.
5275ac_preproc_ok=:
5276break
5277fi
cristyda16f162011-02-19 23:52:17 +00005278rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005279
5280done
5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005282rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005283if $ac_preproc_ok; then :
5284 break
5285fi
5286
5287 done
5288 ac_cv_prog_CPP=$CPP
5289
5290fi
5291 CPP=$ac_cv_prog_CPP
5292else
5293 ac_cv_prog_CPP=$CPP
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5296$as_echo "$CPP" >&6; }
5297ac_preproc_ok=false
5298for ac_c_preproc_warn_flag in '' yes
5299do
5300 # Use a header file that comes with gcc, so configuring glibc
5301 # with a fresh cross-compiler works.
5302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 # <limits.h> exists even on freestanding compilers.
5304 # On the NeXT, cc -E runs the code through the compiler's parser,
5305 # not just through cpp. "Syntax error" is here to catch this case.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#ifdef __STDC__
5309# include <limits.h>
5310#else
5311# include <assert.h>
5312#endif
5313 Syntax error
5314_ACEOF
5315if ac_fn_c_try_cpp "$LINENO"; then :
5316
5317else
5318 # Broken: fails on valid input.
5319continue
5320fi
cristyda16f162011-02-19 23:52:17 +00005321rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005322
5323 # OK, works on sane cases. Now check whether nonexistent headers
5324 # can be detected and how.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <ac_nonexistent.h>
5328_ACEOF
5329if ac_fn_c_try_cpp "$LINENO"; then :
5330 # Broken: success on invalid input.
5331continue
5332else
5333 # Passes both tests.
5334ac_preproc_ok=:
5335break
5336fi
cristyda16f162011-02-19 23:52:17 +00005337rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005338
5339done
5340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005341rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005342if $ac_preproc_ok; then :
5343
5344else
5345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005347as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5348See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005349fi
5350
5351ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5359$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005360if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005361 $as_echo_n "(cached) " >&6
5362else
5363 if test -z "$GREP"; then
5364 ac_path_GREP_found=false
5365 # Loop through the user's path and test for each of PROGNAME-LIST
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_prog in grep ggrep; do
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5374 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5375# Check for GNU ac_path_GREP and select it if it is found.
5376 # Check for GNU $ac_path_GREP
5377case `"$ac_path_GREP" --version 2>&1` in
5378*GNU*)
5379 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5380*)
5381 ac_count=0
5382 $as_echo_n 0123456789 >"conftest.in"
5383 while :
5384 do
5385 cat "conftest.in" "conftest.in" >"conftest.tmp"
5386 mv "conftest.tmp" "conftest.in"
5387 cp "conftest.in" "conftest.nl"
5388 $as_echo 'GREP' >> "conftest.nl"
5389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5391 as_fn_arith $ac_count + 1 && ac_count=$as_val
5392 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5393 # Best one so far, save it but keep looking for a better one
5394 ac_cv_path_GREP="$ac_path_GREP"
5395 ac_path_GREP_max=$ac_count
5396 fi
5397 # 10*(2^10) chars as input seems more than enough
5398 test $ac_count -gt 10 && break
5399 done
5400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5401esac
5402
5403 $ac_path_GREP_found && break 3
5404 done
5405 done
5406 done
5407IFS=$as_save_IFS
5408 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005409 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005410 fi
5411else
5412 ac_cv_path_GREP=$GREP
5413fi
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5417$as_echo "$ac_cv_path_GREP" >&6; }
5418 GREP="$ac_cv_path_GREP"
5419
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5422$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005423if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005424 $as_echo_n "(cached) " >&6
5425else
5426 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5427 then ac_cv_path_EGREP="$GREP -E"
5428 else
5429 if test -z "$EGREP"; then
5430 ac_path_EGREP_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_prog in egrep; do
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5440 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5441# Check for GNU ac_path_EGREP and select it if it is found.
5442 # Check for GNU $ac_path_EGREP
5443case `"$ac_path_EGREP" --version 2>&1` in
5444*GNU*)
5445 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5446*)
5447 ac_count=0
5448 $as_echo_n 0123456789 >"conftest.in"
5449 while :
5450 do
5451 cat "conftest.in" "conftest.in" >"conftest.tmp"
5452 mv "conftest.tmp" "conftest.in"
5453 cp "conftest.in" "conftest.nl"
5454 $as_echo 'EGREP' >> "conftest.nl"
5455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457 as_fn_arith $ac_count + 1 && ac_count=$as_val
5458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5459 # Best one so far, save it but keep looking for a better one
5460 ac_cv_path_EGREP="$ac_path_EGREP"
5461 ac_path_EGREP_max=$ac_count
5462 fi
5463 # 10*(2^10) chars as input seems more than enough
5464 test $ac_count -gt 10 && break
5465 done
5466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467esac
5468
5469 $ac_path_EGREP_found && break 3
5470 done
5471 done
5472 done
5473IFS=$as_save_IFS
5474 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005475 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005476 fi
5477else
5478 ac_cv_path_EGREP=$EGREP
5479fi
5480
5481 fi
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5484$as_echo "$ac_cv_path_EGREP" >&6; }
5485 EGREP="$ac_cv_path_EGREP"
5486
5487
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5489$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005490if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005491 $as_echo_n "(cached) " >&6
5492else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#include <stdlib.h>
5496#include <stdarg.h>
5497#include <string.h>
5498#include <float.h>
5499
5500int
5501main ()
5502{
5503
5504 ;
5505 return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_header_stdc=yes
5510else
5511 ac_cv_header_stdc=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514
5515if test $ac_cv_header_stdc = yes; then
5516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h. */
5519#include <string.h>
5520
5521_ACEOF
5522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523 $EGREP "memchr" >/dev/null 2>&1; then :
5524
5525else
5526 ac_cv_header_stdc=no
5527fi
5528rm -f conftest*
5529
5530fi
5531
5532if test $ac_cv_header_stdc = yes; then
5533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h. */
5536#include <stdlib.h>
5537
5538_ACEOF
5539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 $EGREP "free" >/dev/null 2>&1; then :
5541
5542else
5543 ac_cv_header_stdc=no
5544fi
5545rm -f conftest*
5546
5547fi
5548
5549if test $ac_cv_header_stdc = yes; then
5550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551 if test "$cross_compiling" = yes; then :
5552 :
5553else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h. */
5556#include <ctype.h>
5557#include <stdlib.h>
5558#if ((' ' & 0x0FF) == 0x020)
5559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5561#else
5562# define ISLOWER(c) \
5563 (('a' <= (c) && (c) <= 'i') \
5564 || ('j' <= (c) && (c) <= 'r') \
5565 || ('s' <= (c) && (c) <= 'z'))
5566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5567#endif
5568
5569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570int
5571main ()
5572{
5573 int i;
5574 for (i = 0; i < 256; i++)
5575 if (XOR (islower (i), ISLOWER (i))
5576 || toupper (i) != TOUPPER (i))
5577 return 2;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_run "$LINENO"; then :
5582
5583else
5584 ac_cv_header_stdc=no
5585fi
5586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587 conftest.$ac_objext conftest.beam conftest.$ac_ext
5588fi
5589
5590fi
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5593$as_echo "$ac_cv_header_stdc" >&6; }
5594if test $ac_cv_header_stdc = yes; then
5595
5596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5597
5598fi
5599
5600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602 inttypes.h stdint.h unistd.h
5603do :
5604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5606"
cristy98dddb52010-11-04 00:30:15 +00005607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005608 cat >>confdefs.h <<_ACEOF
5609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610_ACEOF
5611
5612fi
5613
5614done
5615
5616
5617
5618 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 +00005619if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005620 MINIX=yes
5621else
5622 MINIX=
5623fi
5624
5625
5626 if test "$MINIX" = yes; then
5627
5628$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5629
5630
5631$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5632
5633
5634$as_echo "#define _MINIX 1" >>confdefs.h
5635
5636 fi
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5640$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005641if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h. */
5646
5647# define __EXTENSIONS__ 1
5648 $ac_includes_default
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_safe_to_define___extensions__=yes
5659else
5660 ac_cv_safe_to_define___extensions__=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5665$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5666 test $ac_cv_safe_to_define___extensions__ = yes &&
5667 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5668
5669 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5670
5671 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5672
5673 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5674
5675 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5676
5677
5678
5679# Check for programs
5680ac_ext=c
5681ac_cpp='$CPP $CPPFLAGS'
5682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}gcc; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005690if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005691 $as_echo_n "(cached) " >&6
5692else
5693 if test -n "$CC"; then
5694 ac_cv_prog_CC="$CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713CC=$ac_cv_prog_CC
5714if test -n "$CC"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5716$as_echo "$CC" >&6; }
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
5723fi
5724if test -z "$ac_cv_prog_CC"; then
5725 ac_ct_CC=$CC
5726 # Extract the first word of "gcc", so it can be a program name with args.
5727set dummy gcc; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005730if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$ac_ct_CC"; then
5734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_ac_ct_CC="gcc"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748 done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753ac_ct_CC=$ac_cv_prog_ac_ct_CC
5754if test -n "$ac_ct_CC"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5756$as_echo "$ac_ct_CC" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762 if test "x$ac_ct_CC" = x; then
5763 CC=""
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766yes:)
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769ac_tool_warned=yes ;;
5770esac
5771 CC=$ac_ct_CC
5772 fi
5773else
5774 CC="$ac_cv_prog_CC"
5775fi
5776
5777if test -z "$CC"; then
5778 if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5780set dummy ${ac_tool_prefix}cc; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005783if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005784 $as_echo_n "(cached) " >&6
5785else
5786 if test -n "$CC"; then
5787 ac_cv_prog_CC="$CC" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_prog_CC="${ac_tool_prefix}cc"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800done
5801 done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806CC=$ac_cv_prog_CC
5807if test -n "$CC"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5809$as_echo "$CC" >&6; }
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816 fi
5817fi
5818if test -z "$CC"; then
5819 # Extract the first word of "cc", so it can be a program name with args.
5820set dummy cc; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005823if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005824 $as_echo_n "(cached) " >&6
5825else
5826 if test -n "$CC"; then
5827 ac_cv_prog_CC="$CC" # Let the user override the test.
5828else
5829 ac_prog_rejected=no
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5838 ac_prog_rejected=yes
5839 continue
5840 fi
5841 ac_cv_prog_CC="cc"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849if test $ac_prog_rejected = yes; then
5850 # We found a bogon in the path, so make sure we never use it.
5851 set dummy $ac_cv_prog_CC
5852 shift
5853 if test $# != 0; then
5854 # We chose a different compiler from the bogus one.
5855 # However, it has the same basename, so the bogon will be chosen
5856 # first if we set CC to just the basename; use the full file name.
5857 shift
5858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5859 fi
5860fi
5861fi
5862fi
5863CC=$ac_cv_prog_CC
5864if test -n "$CC"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5866$as_echo "$CC" >&6; }
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872
5873fi
5874if test -z "$CC"; then
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in cl.exe
5877 do
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005882if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005883 $as_echo_n "(cached) " >&6
5884else
5885 if test -n "$CC"; then
5886 ac_cv_prog_CC="$CC" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900 done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905CC=$ac_cv_prog_CC
5906if test -n "$CC"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5908$as_echo "$CC" >&6; }
5909else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915 test -n "$CC" && break
5916 done
5917fi
5918if test -z "$CC"; then
5919 ac_ct_CC=$CC
5920 for ac_prog in cl.exe
5921do
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923set dummy $ac_prog; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005926if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005927 $as_echo_n "(cached) " >&6
5928else
5929 if test -n "$ac_ct_CC"; then
5930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_CC="$ac_prog"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_CC=$ac_cv_prog_ac_ct_CC
5950if test -n "$ac_ct_CC"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5952$as_echo "$ac_ct_CC" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959 test -n "$ac_ct_CC" && break
5960done
5961
5962 if test "x$ac_ct_CC" = x; then
5963 CC=""
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 CC=$ac_ct_CC
5972 fi
5973fi
5974
5975fi
5976
5977
5978test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005980as_fn_error $? "no acceptable C compiler found in \$PATH
5981See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005982
5983# Provide some information about the compiler.
5984$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5985set X $ac_compile
5986ac_compiler=$2
5987for ac_option in --version -v -V -qversion; do
5988 { { ac_try="$ac_compiler $ac_option >&5"
5989case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5994$as_echo "$ac_try_echo"; } >&5
5995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5996 ac_status=$?
5997 if test -s conftest.err; then
5998 sed '10a\
5999... rest of stderr output deleted ...
6000 10q' conftest.err >conftest.er1
6001 cat conftest.er1 >&5
6002 fi
6003 rm -f conftest.er1 conftest.err
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; }
6006done
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6009$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h. */
6015
6016int
6017main ()
6018{
6019#ifndef __GNUC__
6020 choke me
6021#endif
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_compiler_gnu=yes
6029else
6030 ac_compiler_gnu=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033ac_cv_c_compiler_gnu=$ac_compiler_gnu
6034
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6037$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6038if test $ac_compiler_gnu = yes; then
6039 GCC=yes
6040else
6041 GCC=
6042fi
6043ac_test_CFLAGS=${CFLAGS+set}
6044ac_save_CFLAGS=$CFLAGS
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6046$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006047if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006048 $as_echo_n "(cached) " >&6
6049else
6050 ac_save_c_werror_flag=$ac_c_werror_flag
6051 ac_c_werror_flag=yes
6052 ac_cv_prog_cc_g=no
6053 CFLAGS="-g"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_prog_cc_g=yes
6067else
6068 CFLAGS=""
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h. */
6071
6072int
6073main ()
6074{
6075
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081
6082else
6083 ac_c_werror_flag=$ac_save_c_werror_flag
6084 CFLAGS="-g"
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h. */
6087
6088int
6089main ()
6090{
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097 ac_cv_prog_cc_g=yes
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 ac_c_werror_flag=$ac_save_c_werror_flag
6105fi
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6107$as_echo "$ac_cv_prog_cc_g" >&6; }
6108if test "$ac_test_CFLAGS" = set; then
6109 CFLAGS=$ac_save_CFLAGS
6110elif test $ac_cv_prog_cc_g = yes; then
6111 if test "$GCC" = yes; then
6112 CFLAGS="-g -O2"
6113 else
6114 CFLAGS="-g"
6115 fi
6116else
6117 if test "$GCC" = yes; then
6118 CFLAGS="-O2"
6119 else
6120 CFLAGS=
6121 fi
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6124$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006125if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006126 $as_echo_n "(cached) " >&6
6127else
6128 ac_cv_prog_cc_c89=no
6129ac_save_CC=$CC
6130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h. */
6132#include <stdarg.h>
6133#include <stdio.h>
6134#include <sys/types.h>
6135#include <sys/stat.h>
6136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6137struct buf { int x; };
6138FILE * (*rcsopen) (struct buf *, struct stat *, int);
6139static char *e (p, i)
6140 char **p;
6141 int i;
6142{
6143 return p[i];
6144}
6145static char *f (char * (*g) (char **, int), char **p, ...)
6146{
6147 char *s;
6148 va_list v;
6149 va_start (v,p);
6150 s = g (p, va_arg (v,int));
6151 va_end (v);
6152 return s;
6153}
6154
6155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6156 function prototypes and stuff, but not '\xHH' hex character constants.
6157 These don't provoke an error unfortunately, instead are silently treated
6158 as 'x'. The following induces an error, until -std is added to get
6159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6160 array size at least. It's necessary to write '\x00'==0 to get something
6161 that's true only with -std. */
6162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6163
6164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6165 inside strings and character constants. */
6166#define FOO(x) 'x'
6167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6168
6169int test (int i, double x);
6170struct s1 {int (*f) (int a);};
6171struct s2 {int (*f) (double a);};
6172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6173int argc;
6174char **argv;
6175int
6176main ()
6177{
6178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6185do
6186 CC="$ac_save_CC $ac_arg"
6187 if ac_fn_c_try_compile "$LINENO"; then :
6188 ac_cv_prog_cc_c89=$ac_arg
6189fi
6190rm -f core conftest.err conftest.$ac_objext
6191 test "x$ac_cv_prog_cc_c89" != "xno" && break
6192done
6193rm -f conftest.$ac_ext
6194CC=$ac_save_CC
6195
6196fi
6197# AC_CACHE_VAL
6198case "x$ac_cv_prog_cc_c89" in
6199 x)
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6201$as_echo "none needed" >&6; } ;;
6202 xno)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6204$as_echo "unsupported" >&6; } ;;
6205 *)
6206 CC="$CC $ac_cv_prog_cc_c89"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6209esac
6210if test "x$ac_cv_prog_cc_c89" != xno; then :
6211
6212fi
6213
6214ac_ext=c
6215ac_cpp='$CPP $CPPFLAGS'
6216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
cristy73bd4a52010-10-05 11:24:23 +00006220depcc="$CC" am_compiler_list=
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6223$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006225 $as_echo_n "(cached) " >&6
6226else
6227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6228 # We make a subdir and do the tests there. Otherwise we can end up
6229 # making bogus files that we don't know about and never remove. For
6230 # instance it was reported that on HP-UX the gcc test will end up
6231 # making a dummy file named `D' -- because `-MD' means `put the output
6232 # in D'.
6233 mkdir conftest.dir
6234 # Copy depcomp to subdir because otherwise we won't find it if we're
6235 # using a relative directory.
6236 cp "$am_depcomp" conftest.dir
6237 cd conftest.dir
6238 # We will build objects and dependencies in a subdirectory because
6239 # it helps to detect inapplicable dependency modes. For instance
6240 # both Tru64's cc and ICC support -MD to output dependencies as a
6241 # side effect of compilation, but ICC will put the dependencies in
6242 # the current directory while Tru64 will put them in the object
6243 # directory.
6244 mkdir sub
6245
6246 am_cv_CC_dependencies_compiler_type=none
6247 if test "$am_compiler_list" = ""; then
6248 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6249 fi
6250 am__universal=false
6251 case " $depcc " in #(
6252 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6253 esac
6254
6255 for depmode in $am_compiler_list; do
6256 # Setup a source with many dependencies, because some compilers
6257 # like to wrap large dependency lists on column 80 (with \), and
6258 # we should not choose a depcomp mode which is confused by this.
6259 #
6260 # We need to recreate these files for each test, as the compiler may
6261 # overwrite some of them when testing with obscure command lines.
6262 # This happens at least with the AIX C compiler.
6263 : > sub/conftest.c
6264 for i in 1 2 3 4 5 6; do
6265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6266 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6267 # Solaris 8's {/usr,}/bin/sh.
6268 touch sub/conftst$i.h
6269 done
6270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6271
6272 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6273 # mode. It turns out that the SunPro C++ compiler does not properly
6274 # handle `-M -o', and we need to detect this. Also, some Intel
6275 # versions had trouble with output in subdirs
6276 am__obj=sub/conftest.${OBJEXT-o}
6277 am__minus_obj="-o $am__obj"
6278 case $depmode in
6279 gcc)
6280 # This depmode causes a compiler race in universal mode.
6281 test "$am__universal" = false || continue
6282 ;;
6283 nosideeffect)
6284 # after this tag, mechanisms are not by side-effect, so they'll
6285 # only be used when explicitly requested
6286 if test "x$enable_dependency_tracking" = xyes; then
6287 continue
6288 else
6289 break
6290 fi
6291 ;;
6292 msvisualcpp | msvcmsys)
6293 # This compiler won't grok `-c -o', but also, the minuso test has
6294 # not run yet. These depmodes are late enough in the game, and
6295 # so weak that their functioning should not be impacted.
6296 am__obj=conftest.${OBJEXT-o}
6297 am__minus_obj=
6298 ;;
6299 none) break ;;
6300 esac
6301 if depmode=$depmode \
6302 source=sub/conftest.c object=$am__obj \
6303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6304 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6305 >/dev/null 2>conftest.err &&
6306 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6308 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6310 # icc doesn't choke on unknown options, it will just issue warnings
6311 # or remarks (even with -Werror). So we grep stderr for any message
6312 # that says an option was ignored or not supported.
6313 # When given -MP, icc 7.0 and 7.1 complain thusly:
6314 # icc: Command line warning: ignoring option '-M'; no argument required
6315 # The diagnosis changed in icc 8.0:
6316 # icc: Command line remark: option '-MP' not supported
6317 if (grep 'ignoring option' conftest.err ||
6318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6319 am_cv_CC_dependencies_compiler_type=$depmode
6320 break
6321 fi
6322 fi
6323 done
6324
6325 cd ..
6326 rm -rf conftest.dir
6327else
6328 am_cv_CC_dependencies_compiler_type=none
6329fi
6330
6331fi
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6333$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6335
6336 if
6337 test "x$enable_dependency_tracking" != xno \
6338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6339 am__fastdepCC_TRUE=
6340 am__fastdepCC_FALSE='#'
6341else
6342 am__fastdepCC_TRUE='#'
6343 am__fastdepCC_FALSE=
6344fi
6345
6346
cristy95646052009-11-28 23:05:30 +00006347ac_ext=cpp
6348ac_cpp='$CXXCPP $CPPFLAGS'
6349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6352if test -z "$CXX"; then
6353 if test -n "$CCC"; then
6354 CXX=$CCC
6355 else
6356 if test -n "$ac_tool_prefix"; then
6357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6358 do
6359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006363if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006364 $as_echo_n "(cached) " >&6
6365else
6366 if test -n "$CXX"; then
6367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380done
6381 done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386CXX=$ac_cv_prog_CXX
6387if test -n "$CXX"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6389$as_echo "$CXX" >&6; }
6390else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393fi
6394
6395
6396 test -n "$CXX" && break
6397 done
6398fi
6399if test -z "$CXX"; then
6400 ac_ct_CXX=$CXX
6401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6402do
6403 # Extract the first word of "$ac_prog", so it can be a program name with args.
6404set dummy $ac_prog; ac_word=$2
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006407if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006408 $as_echo_n "(cached) " >&6
6409else
6410 if test -n "$ac_ct_CXX"; then
6411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_CXX="$ac_prog"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424done
6425 done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6431if test -n "$ac_ct_CXX"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6433$as_echo "$ac_ct_CXX" >&6; }
6434else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439
6440 test -n "$ac_ct_CXX" && break
6441done
6442
6443 if test "x$ac_ct_CXX" = x; then
6444 CXX="g++"
6445 else
6446 case $cross_compiling:$ac_tool_warned in
6447yes:)
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450ac_tool_warned=yes ;;
6451esac
6452 CXX=$ac_ct_CXX
6453 fi
6454fi
6455
6456 fi
6457fi
6458# Provide some information about the compiler.
6459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6460set X $ac_compile
6461ac_compiler=$2
6462for ac_option in --version -v -V -qversion; do
6463 { { ac_try="$ac_compiler $ac_option >&5"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6469$as_echo "$ac_try_echo"; } >&5
6470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6471 ac_status=$?
6472 if test -s conftest.err; then
6473 sed '10a\
6474... rest of stderr output deleted ...
6475 10q' conftest.err >conftest.er1
6476 cat conftest.er1 >&5
6477 fi
6478 rm -f conftest.er1 conftest.err
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }
6481done
6482
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6484$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006485if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006486 $as_echo_n "(cached) " >&6
6487else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h. */
6490
6491int
6492main ()
6493{
6494#ifndef __GNUC__
6495 choke me
6496#endif
6497
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502if ac_fn_cxx_try_compile "$LINENO"; then :
6503 ac_compiler_gnu=yes
6504else
6505 ac_compiler_gnu=no
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6509
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6512$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6513if test $ac_compiler_gnu = yes; then
6514 GXX=yes
6515else
6516 GXX=
6517fi
6518ac_test_CXXFLAGS=${CXXFLAGS+set}
6519ac_save_CXXFLAGS=$CXXFLAGS
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6521$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006522if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006523 $as_echo_n "(cached) " >&6
6524else
6525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6526 ac_cxx_werror_flag=yes
6527 ac_cv_prog_cxx_g=no
6528 CXXFLAGS="-g"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532int
6533main ()
6534{
6535
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_cxx_try_compile "$LINENO"; then :
6541 ac_cv_prog_cxx_g=yes
6542else
6543 CXXFLAGS=""
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h. */
6546
6547int
6548main ()
6549{
6550
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555if ac_fn_cxx_try_compile "$LINENO"; then :
6556
6557else
6558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6559 CXXFLAGS="-g"
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h. */
6562
6563int
6564main ()
6565{
6566
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571if ac_fn_cxx_try_compile "$LINENO"; then :
6572 ac_cv_prog_cxx_g=yes
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6580fi
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6582$as_echo "$ac_cv_prog_cxx_g" >&6; }
6583if test "$ac_test_CXXFLAGS" = set; then
6584 CXXFLAGS=$ac_save_CXXFLAGS
6585elif test $ac_cv_prog_cxx_g = yes; then
6586 if test "$GXX" = yes; then
6587 CXXFLAGS="-g -O2"
6588 else
6589 CXXFLAGS="-g"
6590 fi
6591else
6592 if test "$GXX" = yes; then
6593 CXXFLAGS="-O2"
6594 else
6595 CXXFLAGS=
6596 fi
6597fi
6598ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
cristy73bd4a52010-10-05 11:24:23 +00006604depcc="$CXX" am_compiler_list=
6605
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6607$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006608if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006609 $as_echo_n "(cached) " >&6
6610else
6611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6612 # We make a subdir and do the tests there. Otherwise we can end up
6613 # making bogus files that we don't know about and never remove. For
6614 # instance it was reported that on HP-UX the gcc test will end up
6615 # making a dummy file named `D' -- because `-MD' means `put the output
6616 # in D'.
6617 mkdir conftest.dir
6618 # Copy depcomp to subdir because otherwise we won't find it if we're
6619 # using a relative directory.
6620 cp "$am_depcomp" conftest.dir
6621 cd conftest.dir
6622 # We will build objects and dependencies in a subdirectory because
6623 # it helps to detect inapplicable dependency modes. For instance
6624 # both Tru64's cc and ICC support -MD to output dependencies as a
6625 # side effect of compilation, but ICC will put the dependencies in
6626 # the current directory while Tru64 will put them in the object
6627 # directory.
6628 mkdir sub
6629
6630 am_cv_CXX_dependencies_compiler_type=none
6631 if test "$am_compiler_list" = ""; then
6632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6633 fi
6634 am__universal=false
6635 case " $depcc " in #(
6636 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6637 esac
6638
6639 for depmode in $am_compiler_list; do
6640 # Setup a source with many dependencies, because some compilers
6641 # like to wrap large dependency lists on column 80 (with \), and
6642 # we should not choose a depcomp mode which is confused by this.
6643 #
6644 # We need to recreate these files for each test, as the compiler may
6645 # overwrite some of them when testing with obscure command lines.
6646 # This happens at least with the AIX C compiler.
6647 : > sub/conftest.c
6648 for i in 1 2 3 4 5 6; do
6649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6651 # Solaris 8's {/usr,}/bin/sh.
6652 touch sub/conftst$i.h
6653 done
6654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6655
6656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6657 # mode. It turns out that the SunPro C++ compiler does not properly
6658 # handle `-M -o', and we need to detect this. Also, some Intel
6659 # versions had trouble with output in subdirs
6660 am__obj=sub/conftest.${OBJEXT-o}
6661 am__minus_obj="-o $am__obj"
6662 case $depmode in
6663 gcc)
6664 # This depmode causes a compiler race in universal mode.
6665 test "$am__universal" = false || continue
6666 ;;
6667 nosideeffect)
6668 # after this tag, mechanisms are not by side-effect, so they'll
6669 # only be used when explicitly requested
6670 if test "x$enable_dependency_tracking" = xyes; then
6671 continue
6672 else
6673 break
6674 fi
6675 ;;
6676 msvisualcpp | msvcmsys)
6677 # This compiler won't grok `-c -o', but also, the minuso test has
6678 # not run yet. These depmodes are late enough in the game, and
6679 # so weak that their functioning should not be impacted.
6680 am__obj=conftest.${OBJEXT-o}
6681 am__minus_obj=
6682 ;;
6683 none) break ;;
6684 esac
6685 if depmode=$depmode \
6686 source=sub/conftest.c object=$am__obj \
6687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6689 >/dev/null 2>conftest.err &&
6690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6694 # icc doesn't choke on unknown options, it will just issue warnings
6695 # or remarks (even with -Werror). So we grep stderr for any message
6696 # that says an option was ignored or not supported.
6697 # When given -MP, icc 7.0 and 7.1 complain thusly:
6698 # icc: Command line warning: ignoring option '-M'; no argument required
6699 # The diagnosis changed in icc 8.0:
6700 # icc: Command line remark: option '-MP' not supported
6701 if (grep 'ignoring option' conftest.err ||
6702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6703 am_cv_CXX_dependencies_compiler_type=$depmode
6704 break
6705 fi
6706 fi
6707 done
6708
6709 cd ..
6710 rm -rf conftest.dir
6711else
6712 am_cv_CXX_dependencies_compiler_type=none
6713fi
6714
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6717$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6718CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6719
6720 if
6721 test "x$enable_dependency_tracking" != xno \
6722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6723 am__fastdepCXX_TRUE=
6724 am__fastdepCXX_FALSE='#'
6725else
6726 am__fastdepCXX_TRUE='#'
6727 am__fastdepCXX_FALSE=
6728fi
6729
6730
cristy8b350f62009-11-15 23:12:43 +00006731 case $ac_cv_prog_cc_stdc in #(
6732 no) :
6733 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6734 *) :
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006736$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006737if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006738 $as_echo_n "(cached) " >&6
6739else
6740 ac_cv_prog_cc_c99=no
6741ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006743/* end confdefs.h. */
6744#include <stdarg.h>
6745#include <stdbool.h>
6746#include <stdlib.h>
6747#include <wchar.h>
6748#include <stdio.h>
6749
6750// Check varargs macros. These examples are taken from C99 6.10.3.5.
6751#define debug(...) fprintf (stderr, __VA_ARGS__)
6752#define showlist(...) puts (#__VA_ARGS__)
6753#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6754static void
6755test_varargs_macros (void)
6756{
6757 int x = 1234;
6758 int y = 5678;
6759 debug ("Flag");
6760 debug ("X = %d\n", x);
6761 showlist (The first, second, and third items.);
6762 report (x>y, "x is %d but y is %d", x, y);
6763}
6764
6765// Check long long types.
6766#define BIG64 18446744073709551615ull
6767#define BIG32 4294967295ul
6768#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6769#if !BIG_OK
6770 your preprocessor is broken;
6771#endif
6772#if BIG_OK
6773#else
6774 your preprocessor is broken;
6775#endif
6776static long long int bignum = -9223372036854775807LL;
6777static unsigned long long int ubignum = BIG64;
6778
6779struct incomplete_array
6780{
6781 int datasize;
6782 double data[];
6783};
6784
6785struct named_init {
6786 int number;
6787 const wchar_t *name;
6788 double average;
6789};
6790
6791typedef const char *ccp;
6792
6793static inline int
6794test_restrict (ccp restrict text)
6795{
6796 // See if C++-style comments work.
6797 // Iterate through items via the restricted pointer.
6798 // Also check for declarations in for loops.
6799 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6800 continue;
6801 return 0;
6802}
6803
6804// Check varargs and va_copy.
6805static void
6806test_varargs (const char *format, ...)
6807{
6808 va_list args;
6809 va_start (args, format);
6810 va_list args_copy;
6811 va_copy (args_copy, args);
6812
6813 const char *str;
6814 int number;
6815 float fnumber;
6816
6817 while (*format)
6818 {
6819 switch (*format++)
6820 {
6821 case 's': // string
6822 str = va_arg (args_copy, const char *);
6823 break;
6824 case 'd': // int
6825 number = va_arg (args_copy, int);
6826 break;
6827 case 'f': // float
6828 fnumber = va_arg (args_copy, double);
6829 break;
6830 default:
6831 break;
6832 }
6833 }
6834 va_end (args_copy);
6835 va_end (args);
6836}
6837
6838int
6839main ()
6840{
6841
6842 // Check bool.
6843 _Bool success = false;
6844
6845 // Check restrict.
6846 if (test_restrict ("String literal") == 0)
6847 success = true;
6848 char *restrict newvar = "Another string";
6849
6850 // Check varargs.
6851 test_varargs ("s, d' f .", "string", 65, 34.234);
6852 test_varargs_macros ();
6853
6854 // Check flexible array members.
6855 struct incomplete_array *ia =
6856 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6857 ia->datasize = 10;
6858 for (int i = 0; i < ia->datasize; ++i)
6859 ia->data[i] = i * 1.234;
6860
6861 // Check named initializers.
6862 struct named_init ni = {
6863 .number = 34,
6864 .name = L"Test wide string",
6865 .average = 543.34343,
6866 };
6867
6868 ni.number = 58;
6869
6870 int dynamic_array[ni.number];
6871 dynamic_array[ni.number - 1] = 543;
6872
6873 // work around unused variable warnings
6874 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6875 || dynamic_array[ni.number - 1] != 543);
6876
6877 ;
6878 return 0;
6879}
6880_ACEOF
6881for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6882do
6883 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006884 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006885 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006886fi
cristy3ed852e2009-09-05 21:47:34 +00006887rm -f core conftest.err conftest.$ac_objext
6888 test "x$ac_cv_prog_cc_c99" != "xno" && break
6889done
6890rm -f conftest.$ac_ext
6891CC=$ac_save_CC
6892
6893fi
6894# AC_CACHE_VAL
6895case "x$ac_cv_prog_cc_c99" in
6896 x)
cristy8b350f62009-11-15 23:12:43 +00006897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "none needed" >&6; } ;;
6899 xno)
cristy8b350f62009-11-15 23:12:43 +00006900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006901$as_echo "unsupported" >&6; } ;;
6902 *)
6903 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006905$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6906esac
cristy8b350f62009-11-15 23:12:43 +00006907if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006908 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6909else
cristy8b350f62009-11-15 23:12:43 +00006910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006912if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006913 $as_echo_n "(cached) " >&6
6914else
6915 ac_cv_prog_cc_c89=no
6916ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006918/* end confdefs.h. */
6919#include <stdarg.h>
6920#include <stdio.h>
6921#include <sys/types.h>
6922#include <sys/stat.h>
6923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6924struct buf { int x; };
6925FILE * (*rcsopen) (struct buf *, struct stat *, int);
6926static char *e (p, i)
6927 char **p;
6928 int i;
6929{
6930 return p[i];
6931}
6932static char *f (char * (*g) (char **, int), char **p, ...)
6933{
6934 char *s;
6935 va_list v;
6936 va_start (v,p);
6937 s = g (p, va_arg (v,int));
6938 va_end (v);
6939 return s;
6940}
6941
6942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6943 function prototypes and stuff, but not '\xHH' hex character constants.
6944 These don't provoke an error unfortunately, instead are silently treated
6945 as 'x'. The following induces an error, until -std is added to get
6946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6947 array size at least. It's necessary to write '\x00'==0 to get something
6948 that's true only with -std. */
6949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6950
6951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6952 inside strings and character constants. */
6953#define FOO(x) 'x'
6954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6955
6956int test (int i, double x);
6957struct s1 {int (*f) (int a);};
6958struct s2 {int (*f) (double a);};
6959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6960int argc;
6961char **argv;
6962int
6963main ()
6964{
6965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6966 ;
6967 return 0;
6968}
6969_ACEOF
6970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6972do
6973 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006974 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006975 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006976fi
cristy3ed852e2009-09-05 21:47:34 +00006977rm -f core conftest.err conftest.$ac_objext
6978 test "x$ac_cv_prog_cc_c89" != "xno" && break
6979done
6980rm -f conftest.$ac_ext
6981CC=$ac_save_CC
6982
6983fi
6984# AC_CACHE_VAL
6985case "x$ac_cv_prog_cc_c89" in
6986 x)
cristy8b350f62009-11-15 23:12:43 +00006987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006988$as_echo "none needed" >&6; } ;;
6989 xno)
cristy8b350f62009-11-15 23:12:43 +00006990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006991$as_echo "unsupported" >&6; } ;;
6992 *)
6993 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6996esac
cristy8b350f62009-11-15 23:12:43 +00006997if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006998 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6999else
7000 ac_cv_prog_cc_stdc=no
7001fi
7002
cristy3ed852e2009-09-05 21:47:34 +00007003fi
cristy3ed852e2009-09-05 21:47:34 +00007004 ;;
7005esac
cristy8b350f62009-11-15 23:12:43 +00007006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007008 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007009 $as_echo_n "(cached) " >&6
7010fi
7011
cristy8b350f62009-11-15 23:12:43 +00007012 case $ac_cv_prog_cc_stdc in #(
7013 no) :
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7015$as_echo "unsupported" >&6; } ;; #(
7016 '') :
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7018$as_echo "none needed" >&6; } ;; #(
7019 *) :
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007021$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7022esac
7023
cristy3ed852e2009-09-05 21:47:34 +00007024ac_ext=c
7025ac_cpp='$CPP $CPPFLAGS'
7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo_n "checking how to run the C preprocessor... " >&6; }
7031# On Suns, sometimes $CPP names a directory.
7032if test -n "$CPP" && test -d "$CPP"; then
7033 CPP=
7034fi
7035if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007036 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007037 $as_echo_n "(cached) " >&6
7038else
7039 # Double quotes because CPP needs to be expanded
7040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7041 do
7042 ac_preproc_ok=false
7043for ac_c_preproc_warn_flag in '' yes
7044do
7045 # Use a header file that comes with gcc, so configuring glibc
7046 # with a fresh cross-compiler works.
7047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 # <limits.h> exists even on freestanding compilers.
7049 # On the NeXT, cc -E runs the code through the compiler's parser,
7050 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052/* end confdefs.h. */
7053#ifdef __STDC__
7054# include <limits.h>
7055#else
7056# include <assert.h>
7057#endif
7058 Syntax error
7059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007060if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007061
cristy8b350f62009-11-15 23:12:43 +00007062else
cristy3ed852e2009-09-05 21:47:34 +00007063 # Broken: fails on valid input.
7064continue
7065fi
cristyda16f162011-02-19 23:52:17 +00007066rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007067
7068 # OK, works on sane cases. Now check whether nonexistent headers
7069 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007071/* end confdefs.h. */
7072#include <ac_nonexistent.h>
7073_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007074if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007075 # Broken: success on invalid input.
7076continue
7077else
cristy3ed852e2009-09-05 21:47:34 +00007078 # Passes both tests.
7079ac_preproc_ok=:
7080break
7081fi
cristyda16f162011-02-19 23:52:17 +00007082rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007083
7084done
7085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007086rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007087if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007088 break
7089fi
7090
7091 done
7092 ac_cv_prog_CPP=$CPP
7093
7094fi
7095 CPP=$ac_cv_prog_CPP
7096else
7097 ac_cv_prog_CPP=$CPP
7098fi
cristy8b350f62009-11-15 23:12:43 +00007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$CPP" >&6; }
7101ac_preproc_ok=false
7102for ac_c_preproc_warn_flag in '' yes
7103do
7104 # Use a header file that comes with gcc, so configuring glibc
7105 # with a fresh cross-compiler works.
7106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 # <limits.h> exists even on freestanding compilers.
7108 # On the NeXT, cc -E runs the code through the compiler's parser,
7109 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007111/* end confdefs.h. */
7112#ifdef __STDC__
7113# include <limits.h>
7114#else
7115# include <assert.h>
7116#endif
7117 Syntax error
7118_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007119if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007120
cristy8b350f62009-11-15 23:12:43 +00007121else
cristy3ed852e2009-09-05 21:47:34 +00007122 # Broken: fails on valid input.
7123continue
7124fi
cristyda16f162011-02-19 23:52:17 +00007125rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007126
7127 # OK, works on sane cases. Now check whether nonexistent headers
7128 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007130/* end confdefs.h. */
7131#include <ac_nonexistent.h>
7132_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007133if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007134 # Broken: success on invalid input.
7135continue
7136else
cristy3ed852e2009-09-05 21:47:34 +00007137 # Passes both tests.
7138ac_preproc_ok=:
7139break
7140fi
cristyda16f162011-02-19 23:52:17 +00007141rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007142
7143done
7144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007145rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007146if $ac_preproc_ok; then :
7147
cristy3ed852e2009-09-05 21:47:34 +00007148else
cristy8b350f62009-11-15 23:12:43 +00007149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007151as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7152See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007153fi
7154
7155ac_ext=c
7156ac_cpp='$CPP $CPPFLAGS'
7157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
cristy73bd4a52010-10-05 11:24:23 +00007161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7162$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007163if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007164 $as_echo_n "(cached) " >&6
7165else
7166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7167 for ac_i in 1 2 3 4 5 6 7; do
7168 ac_script="$ac_script$as_nl$ac_script"
7169 done
7170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7171 { ac_script=; unset ac_script;}
7172 if test -z "$SED"; then
7173 ac_path_SED_found=false
7174 # Loop through the user's path and test for each of PROGNAME-LIST
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_prog in sed gsed; do
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7183 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7184# Check for GNU ac_path_SED and select it if it is found.
7185 # Check for GNU $ac_path_SED
7186case `"$ac_path_SED" --version 2>&1` in
7187*GNU*)
7188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7189*)
7190 ac_count=0
7191 $as_echo_n 0123456789 >"conftest.in"
7192 while :
7193 do
7194 cat "conftest.in" "conftest.in" >"conftest.tmp"
7195 mv "conftest.tmp" "conftest.in"
7196 cp "conftest.in" "conftest.nl"
7197 $as_echo '' >> "conftest.nl"
7198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7200 as_fn_arith $ac_count + 1 && ac_count=$as_val
7201 if test $ac_count -gt ${ac_path_SED_max-0}; then
7202 # Best one so far, save it but keep looking for a better one
7203 ac_cv_path_SED="$ac_path_SED"
7204 ac_path_SED_max=$ac_count
7205 fi
7206 # 10*(2^10) chars as input seems more than enough
7207 test $ac_count -gt 10 && break
7208 done
7209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7210esac
7211
7212 $ac_path_SED_found && break 3
7213 done
7214 done
7215 done
7216IFS=$as_save_IFS
7217 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007219 fi
7220else
7221 ac_cv_path_SED=$SED
7222fi
7223
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7226$as_echo "$ac_cv_path_SED" >&6; }
7227 SED="$ac_cv_path_SED"
7228 rm -f conftest.sed
7229
7230test -z "$SED" && SED=sed
7231Xsed="$SED -e 1s/^X//"
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7244$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007245if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007246 $as_echo_n "(cached) " >&6
7247else
7248 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7249 then ac_cv_path_FGREP="$GREP -F"
7250 else
7251 if test -z "$FGREP"; then
7252 ac_path_FGREP_found=false
7253 # Loop through the user's path and test for each of PROGNAME-LIST
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_prog in fgrep; do
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7262 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7263# Check for GNU ac_path_FGREP and select it if it is found.
7264 # Check for GNU $ac_path_FGREP
7265case `"$ac_path_FGREP" --version 2>&1` in
7266*GNU*)
7267 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7268*)
7269 ac_count=0
7270 $as_echo_n 0123456789 >"conftest.in"
7271 while :
7272 do
7273 cat "conftest.in" "conftest.in" >"conftest.tmp"
7274 mv "conftest.tmp" "conftest.in"
7275 cp "conftest.in" "conftest.nl"
7276 $as_echo 'FGREP' >> "conftest.nl"
7277 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7279 as_fn_arith $ac_count + 1 && ac_count=$as_val
7280 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7281 # Best one so far, save it but keep looking for a better one
7282 ac_cv_path_FGREP="$ac_path_FGREP"
7283 ac_path_FGREP_max=$ac_count
7284 fi
7285 # 10*(2^10) chars as input seems more than enough
7286 test $ac_count -gt 10 && break
7287 done
7288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7289esac
7290
7291 $ac_path_FGREP_found && break 3
7292 done
7293 done
7294 done
7295IFS=$as_save_IFS
7296 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007297 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007298 fi
7299else
7300 ac_cv_path_FGREP=$FGREP
7301fi
7302
7303 fi
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7306$as_echo "$ac_cv_path_FGREP" >&6; }
7307 FGREP="$ac_cv_path_FGREP"
7308
7309
7310test -z "$GREP" && GREP=grep
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
cristy0c60a692010-11-04 01:09:47 +00007328ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7330ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7333$as_echo_n "checking how to print strings... " >&6; }
7334# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007335if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007336 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7337 ECHO='print -r --'
7338elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7339 ECHO='printf %s\n'
7340else
7341 # Use this function as a fallback that always works.
7342 func_fallback_echo ()
7343 {
7344 eval 'cat <<_LTECHO_EOF
7345$1
7346_LTECHO_EOF'
7347 }
7348 ECHO='func_fallback_echo'
7349fi
7350
7351# func_echo_all arg...
7352# Invoke $ECHO with all args, space-separated.
7353func_echo_all ()
7354{
7355 $ECHO ""
7356}
7357
7358case "$ECHO" in
7359 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7360$as_echo "printf" >&6; } ;;
7361 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7362$as_echo "print -r" >&6; } ;;
7363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7364$as_echo "cat" >&6; } ;;
7365esac
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
cristy73bd4a52010-10-05 11:24:23 +00007380
7381
7382# Check whether --with-gnu-ld was given.
7383if test "${with_gnu_ld+set}" = set; then :
7384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7385else
7386 with_gnu_ld=no
7387fi
7388
7389ac_prog=ld
7390if test "$GCC" = yes; then
7391 # Check if gcc -print-prog-name=ld gives a path.
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7393$as_echo_n "checking for ld used by $CC... " >&6; }
7394 case $host in
7395 *-*-mingw*)
7396 # gcc leaves a trailing carriage return which upsets mingw
7397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7398 *)
7399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7400 esac
7401 case $ac_prog in
7402 # Accept absolute paths.
7403 [\\/]* | ?:[\\/]*)
7404 re_direlt='/[^/][^/]*/\.\./'
7405 # Canonicalize the pathname of ld
7406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7409 done
7410 test -z "$LD" && LD="$ac_prog"
7411 ;;
7412 "")
7413 # If it fails, then pretend we aren't using GCC.
7414 ac_prog=ld
7415 ;;
7416 *)
7417 # If it is relative, then search for the first ld in PATH.
7418 with_gnu_ld=unknown
7419 ;;
7420 esac
7421elif test "$with_gnu_ld" = yes; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7423$as_echo_n "checking for GNU ld... " >&6; }
7424else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7426$as_echo_n "checking for non-GNU ld... " >&6; }
7427fi
cristyda16f162011-02-19 23:52:17 +00007428if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007429 $as_echo_n "(cached) " >&6
7430else
7431 if test -z "$LD"; then
7432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433 for ac_dir in $PATH; do
7434 IFS="$lt_save_ifs"
7435 test -z "$ac_dir" && ac_dir=.
7436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7437 lt_cv_path_LD="$ac_dir/$ac_prog"
7438 # Check to see if the program is GNU ld. I'd rather use --version,
7439 # but apparently some variants of GNU ld only accept -v.
7440 # Break only if it was the GNU/non-GNU ld that we prefer.
7441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7442 *GNU* | *'with BFD'*)
7443 test "$with_gnu_ld" != no && break
7444 ;;
7445 *)
7446 test "$with_gnu_ld" != yes && break
7447 ;;
7448 esac
7449 fi
7450 done
7451 IFS="$lt_save_ifs"
7452else
7453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7454fi
7455fi
7456
7457LD="$lt_cv_path_LD"
7458if test -n "$LD"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7460$as_echo "$LD" >&6; }
7461else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
cristy98dddb52010-11-04 00:30:15 +00007465test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7467$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007468if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007469 $as_echo_n "(cached) " >&6
7470else
7471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7472case `$LD -v 2>&1 </dev/null` in
7473*GNU* | *'with BFD'*)
7474 lt_cv_prog_gnu_ld=yes
7475 ;;
7476*)
7477 lt_cv_prog_gnu_ld=no
7478 ;;
7479esac
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7482$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7483with_gnu_ld=$lt_cv_prog_gnu_ld
7484
7485
7486
7487
7488
7489
7490
7491
7492
cristy3ed852e2009-09-05 21:47:34 +00007493
cristy837d6dc2010-02-27 01:16:57 +00007494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7495$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007496if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007497 $as_echo_n "(cached) " >&6
7498else
7499 ac_cv_prog_cc_c99=no
7500ac_save_CC=$CC
7501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503#include <stdarg.h>
7504#include <stdbool.h>
7505#include <stdlib.h>
7506#include <wchar.h>
7507#include <stdio.h>
7508
7509// Check varargs macros. These examples are taken from C99 6.10.3.5.
7510#define debug(...) fprintf (stderr, __VA_ARGS__)
7511#define showlist(...) puts (#__VA_ARGS__)
7512#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7513static void
7514test_varargs_macros (void)
7515{
7516 int x = 1234;
7517 int y = 5678;
7518 debug ("Flag");
7519 debug ("X = %d\n", x);
7520 showlist (The first, second, and third items.);
7521 report (x>y, "x is %d but y is %d", x, y);
7522}
7523
7524// Check long long types.
7525#define BIG64 18446744073709551615ull
7526#define BIG32 4294967295ul
7527#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7528#if !BIG_OK
7529 your preprocessor is broken;
7530#endif
7531#if BIG_OK
7532#else
7533 your preprocessor is broken;
7534#endif
7535static long long int bignum = -9223372036854775807LL;
7536static unsigned long long int ubignum = BIG64;
7537
7538struct incomplete_array
7539{
7540 int datasize;
7541 double data[];
7542};
7543
7544struct named_init {
7545 int number;
7546 const wchar_t *name;
7547 double average;
7548};
7549
7550typedef const char *ccp;
7551
7552static inline int
7553test_restrict (ccp restrict text)
7554{
7555 // See if C++-style comments work.
7556 // Iterate through items via the restricted pointer.
7557 // Also check for declarations in for loops.
7558 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7559 continue;
7560 return 0;
7561}
7562
7563// Check varargs and va_copy.
7564static void
7565test_varargs (const char *format, ...)
7566{
7567 va_list args;
7568 va_start (args, format);
7569 va_list args_copy;
7570 va_copy (args_copy, args);
7571
7572 const char *str;
7573 int number;
7574 float fnumber;
7575
7576 while (*format)
7577 {
7578 switch (*format++)
7579 {
7580 case 's': // string
7581 str = va_arg (args_copy, const char *);
7582 break;
7583 case 'd': // int
7584 number = va_arg (args_copy, int);
7585 break;
7586 case 'f': // float
7587 fnumber = va_arg (args_copy, double);
7588 break;
7589 default:
7590 break;
7591 }
7592 }
7593 va_end (args_copy);
7594 va_end (args);
7595}
7596
7597int
7598main ()
7599{
7600
7601 // Check bool.
7602 _Bool success = false;
7603
7604 // Check restrict.
7605 if (test_restrict ("String literal") == 0)
7606 success = true;
7607 char *restrict newvar = "Another string";
7608
7609 // Check varargs.
7610 test_varargs ("s, d' f .", "string", 65, 34.234);
7611 test_varargs_macros ();
7612
7613 // Check flexible array members.
7614 struct incomplete_array *ia =
7615 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7616 ia->datasize = 10;
7617 for (int i = 0; i < ia->datasize; ++i)
7618 ia->data[i] = i * 1.234;
7619
7620 // Check named initializers.
7621 struct named_init ni = {
7622 .number = 34,
7623 .name = L"Test wide string",
7624 .average = 543.34343,
7625 };
7626
7627 ni.number = 58;
7628
7629 int dynamic_array[ni.number];
7630 dynamic_array[ni.number - 1] = 543;
7631
7632 // work around unused variable warnings
7633 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7634 || dynamic_array[ni.number - 1] != 543);
7635
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7641do
7642 CC="$ac_save_CC $ac_arg"
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 ac_cv_prog_cc_c99=$ac_arg
7645fi
7646rm -f core conftest.err conftest.$ac_objext
7647 test "x$ac_cv_prog_cc_c99" != "xno" && break
7648done
7649rm -f conftest.$ac_ext
7650CC=$ac_save_CC
7651
7652fi
7653# AC_CACHE_VAL
7654case "x$ac_cv_prog_cc_c99" in
7655 x)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7657$as_echo "none needed" >&6; } ;;
7658 xno)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7660$as_echo "unsupported" >&6; } ;;
7661 *)
7662 CC="$CC $ac_cv_prog_cc_c99"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7664$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7665esac
7666if test "x$ac_cv_prog_cc_c99" != xno; then :
7667
7668fi
7669
7670
cristy73bd4a52010-10-05 11:24:23 +00007671if test "x$CC" != xcc; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7673$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7674else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7676$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7677fi
7678set dummy $CC; ac_cc=`$as_echo "$2" |
7679 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007680if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007681 $as_echo_n "(cached) " >&6
7682else
cristy73bd4a52010-10-05 11:24:23 +00007683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h. */
7685
7686int
7687main ()
7688{
7689
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694# Make sure it works both with $CC and with simple cc.
7695# We do the test twice because some compilers refuse to overwrite an
7696# existing .o file with -o, though they will create one.
7697ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7698rm -f conftest2.*
7699if { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; } &&
7709 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7714$as_echo "$ac_try_echo"; } >&5
7715 (eval "$ac_try") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; };
7719then
7720 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7721 if test "x$CC" != xcc; then
7722 # Test first that cc exists at all.
7723 if { ac_try='cc -c conftest.$ac_ext >&5'
7724 { { case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727esac
7728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7729$as_echo "$ac_try_echo"; } >&5
7730 (eval "$ac_try") 2>&5
7731 ac_status=$?
7732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733 test $ac_status = 0; }; }; then
7734 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7735 rm -f conftest2.*
7736 if { { case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742 (eval "$ac_try") 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; } &&
7746 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7751$as_echo "$ac_try_echo"; } >&5
7752 (eval "$ac_try") 2>&5
7753 ac_status=$?
7754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755 test $ac_status = 0; };
7756 then
7757 # cc works too.
7758 :
7759 else
7760 # cc exists but doesn't like -o.
7761 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7762 fi
7763 fi
7764 fi
7765else
7766 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7767fi
7768rm -f core conftest*
7769
7770fi
7771if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7773$as_echo "yes" >&6; }
7774else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777
7778$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7779
7780fi
7781
7782# FIXME: we rely on the cache variable name because
7783# there is no other way.
7784set dummy $CC
7785am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7786eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7787if test "$am_t" != yes; then
7788 # Losing compiler, so override with the script.
7789 # FIXME: It is wrong to rewrite CC.
7790 # But if we don't then we get into trouble of one sort or another.
7791 # A longer-term fix would be to have automake use am__CC in this case,
7792 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7793 CC="$am_aux_dir/compile $CC"
7794fi
7795
7796
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7798$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007799if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007800 $as_echo_n "(cached) " >&6
7801else
7802 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 ac_save_CFLAGS="$CFLAGS"
7810for 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" #
7811do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814
7815int
7816main ()
7817{
cristy24fc1fe2010-10-23 21:13:01 +00007818
cristy73bd4a52010-10-05 11:24:23 +00007819 ;
7820 return 0;
7821}
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"; then :
7824 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827done
7828 CFLAGS="$ac_save_CFLAGS"
7829 ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7838$as_echo "$ac_cv_cflags_warn_all" >&6; }
7839case ".$ac_cv_cflags_warn_all" in
7840 .ok|.ok,*) ;;
7841 .|.no|.no,*)
7842 ;;
7843 *)
7844 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7845 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7846 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7847 ac_status=$?
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }
7850 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7851 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7852 ac_status=$?
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; }
7855 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7856 fi
7857 ;;
nicolas6237c462010-10-05 06:11:49 +00007858esac
cristy3ed852e2009-09-05 21:47:34 +00007859
cristya0b81c32010-01-22 02:54:33 +00007860
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7862$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7863set x ${MAKE-make}
7864ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007865if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007866 $as_echo_n "(cached) " >&6
7867else
7868 cat >conftest.make <<\_ACEOF
7869SHELL = /bin/sh
7870all:
7871 @echo '@@@%%%=$(MAKE)=@@@%%%'
7872_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007873# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007874case `${MAKE-make} -f conftest.make 2>/dev/null` in
7875 *@@@%%%=?*=@@@%%%*)
7876 eval ac_cv_prog_make_${ac_make}_set=yes;;
7877 *)
7878 eval ac_cv_prog_make_${ac_make}_set=no;;
7879esac
7880rm -f conftest.make
7881fi
7882if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884$as_echo "yes" >&6; }
7885 SET_MAKE=
7886else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889 SET_MAKE="MAKE=${MAKE-make}"
7890fi
7891
cristy8b350f62009-11-15 23:12:43 +00007892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007893$as_echo_n "checking whether ln -s works... " >&6; }
7894LN_S=$as_ln_s
7895if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007897$as_echo "yes" >&6; }
7898else
cristy8b350f62009-11-15 23:12:43 +00007899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007900$as_echo "no, using $LN_S" >&6; }
7901fi
7902
cristy73bd4a52010-10-05 11:24:23 +00007903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7904$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7905
7906# Check whether --with-dmalloc was given.
7907if test "${with_dmalloc+set}" = set; then :
7908 withval=$with_dmalloc; if test "$withval" = yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911
7912$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7913
7914 LIBS="$LIBS -ldmalloc"
7915 LDFLAGS="$LDFLAGS -g"
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7928$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007929if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007930 $as_echo_n "(cached) " >&6
7931else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h. */
7934#include <stdlib.h>
7935 static void foo(void) __attribute__ ((unused));
7936 static void
7937 foo(void) {
7938 exit(1);
7939 }
7940
7941int
7942main ()
7943{
7944
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950 ax_cv___attribute__=yes
7951else
7952 ax_cv___attribute__=no
7953
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7959$as_echo "$ax_cv___attribute__" >&6; }
7960 if test "$ax_cv___attribute__" = "yes"; then
7961
7962$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7963
7964 fi
7965
7966
7967
7968if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007974if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007975 $as_echo_n "(cached) " >&6
7976else
7977 case $PKG_CONFIG in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997 ;;
7998esac
7999fi
8000PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8001if test -n "$PKG_CONFIG"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8003$as_echo "$PKG_CONFIG" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_path_PKG_CONFIG"; then
8012 ac_pt_PKG_CONFIG=$PKG_CONFIG
8013 # Extract the first word of "pkg-config", so it can be a program name with args.
8014set dummy pkg-config; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008017if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008018 $as_echo_n "(cached) " >&6
8019else
8020 case $ac_pt_PKG_CONFIG in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8023 ;;
8024 *)
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037 done
8038IFS=$as_save_IFS
8039
8040 ;;
8041esac
8042fi
8043ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8044if test -n "$ac_pt_PKG_CONFIG"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8046$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8047else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052 if test "x$ac_pt_PKG_CONFIG" = x; then
8053 PKG_CONFIG=""
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056yes:)
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059ac_tool_warned=yes ;;
8060esac
8061 PKG_CONFIG=$ac_pt_PKG_CONFIG
8062 fi
8063else
8064 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8065fi
8066
8067fi
8068if test -n "$PKG_CONFIG"; then
8069 _pkg_min_version=0.9.0
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8071$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8072 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8074$as_echo "yes" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078 PKG_CONFIG=""
8079 fi
8080
8081fi
cristy3ed852e2009-09-05 21:47:34 +00008082
8083#
cristy3ed852e2009-09-05 21:47:34 +00008084# Enable run-time checking.
8085#
8086# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008087if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8089else
8090 enable_bounds_checking='no'
8091fi
8092
8093
8094if test "$enable_bounds_checking" = yes; then
8095
cristy8b350f62009-11-15 23:12:43 +00008096$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008097
8098fi
8099
8100#
8101# Tests for Windows
8102#
8103
8104
cristy73bd4a52010-10-05 11:24:23 +00008105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8106$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008107if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008108 $as_echo_n "(cached) " >&6
8109else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h. */
8112
8113int
8114main ()
8115{
8116#ifndef _MSC_VER
8117 choke me
8118#endif
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_compile "$LINENO"; then :
8125 ax_compiler_ms=yes
8126else
8127 ax_compiler_ms=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130ax_cv_c_compiler_ms=$ax_compiler_ms
8131
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8134$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008135
8136GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008137native_win32_build='no'
8138cygwin_build='no'
8139case "${host_os}" in
8140 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008141 cygwin_build='yes'
8142 GDI32_LIBS='-lgdi32'
8143 ;;
8144 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008145 native_win32_build='yes'
8146 GDI32_LIBS='-lgdi32'
8147 ;;
8148esac
8149if test "${GDI32_LIBS}x" != 'x'; then
8150
cristy8b350f62009-11-15 23:12:43 +00008151$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008152
8153fi
8154
cristy73bd4a52010-10-05 11:24:23 +00008155 if test "${GDI32_LIBS}x" != 'x' ; then
8156 WINGDI32_DELEGATE_TRUE=
8157 WINGDI32_DELEGATE_FALSE='#'
8158else
8159 WINGDI32_DELEGATE_TRUE='#'
8160 WINGDI32_DELEGATE_FALSE=
8161fi
8162
8163 if test "${native_win32_build}" = 'yes' ; then
8164 WIN32_NATIVE_BUILD_TRUE=
8165 WIN32_NATIVE_BUILD_FALSE='#'
8166else
8167 WIN32_NATIVE_BUILD_TRUE='#'
8168 WIN32_NATIVE_BUILD_FALSE=
8169fi
8170
8171 if test "${cygwin_build}" = 'yes' ; then
8172 CYGWIN_BUILD_TRUE=
8173 CYGWIN_BUILD_FALSE='#'
8174else
8175 CYGWIN_BUILD_TRUE='#'
8176 CYGWIN_BUILD_FALSE=
8177fi
8178
8179 if test "x${CC}" = 'xcl.exe' ; then
8180 USING_CL_TRUE=
8181 USING_CL_FALSE='#'
8182else
8183 USING_CL_TRUE='#'
8184 USING_CL_FALSE=
8185fi
8186
cristy3ed852e2009-09-05 21:47:34 +00008187
8188WinPathScript="${srcdirfull}/winpath.sh"
8189
8190
8191#
8192# Compiler flags tweaks
8193#
8194if test "${GCC}" != "yes"; then
8195 case "${host}" in
8196 *-*-hpux* )
8197 # aCC: HP ANSI C++ B3910B A.03.34
8198 CFLAGS="${CFLAGS} -Wp,-H30000"
8199 if test -n "${CXXFLAGS}"; then
8200 CXXFLAGS='-AA'
8201 else
8202 CXXFLAGS="${CXXFLAGS} -AA"
8203 fi
8204 ;;
8205 *-dec-osf5.* )
8206 # Compaq alphaev68-dec-osf5.1 compiler
8207 if test -n "${CXXFLAGS}"; then
8208 CXXFLAGS='-std strict_ansi -noimplicit_include'
8209 else
8210 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8211 fi
8212 esac
8213fi
8214
8215# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008217$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008218if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008219 $as_echo_n "(cached) " >&6
8220else
8221
8222im_cv_ld_lazyload='none'
8223case "${host}" in
8224 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8225 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8226 im_cv_ld_lazyload='-Wl,-zlazyload'
8227 fi
8228 ;;
8229esac
8230
8231fi
cristy8b350f62009-11-15 23:12:43 +00008232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008233$as_echo "$im_cv_ld_lazyload" >&6; }
8234if test "${im_cv_ld_lazyload}" != 'none' ; then
8235 if test -z "${LDFLAGS}" ; then
8236 LDFLAGS="${im_cv_ld_lazyload}"
8237 else
8238 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8239 fi
8240fi
8241
8242case "$host" in
8243*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008244 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008245if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008246 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8247else
8248 build_osxuniversal=no
8249fi
8250
8251
8252 if test "${build_osxuniversal}" != no ; then
8253 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008254 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008255Please re-run configure with these options:
8256 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008257 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008258 fi
8259 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8260 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8261 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8262 fi
8263 ;;
8264esac
8265
cristy0151ae12011-10-28 16:32:29 +00008266#
8267# ARCH specific include directory
8268#
8269
cristy670aa3c2011-11-03 00:54:00 +00008270# Check whether --with-includearch-dir was given.
8271if test "${with_includearch_dir+set}" = set; then :
8272 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008273else
cristy670aa3c2011-11-03 00:54:00 +00008274 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008275fi
8276
8277
cristy670aa3c2011-11-03 00:54:00 +00008278eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008279
cristy0151ae12011-10-28 16:32:29 +00008280
8281#
8282# ARCH specific configuration directory
8283#
8284
cristy670aa3c2011-11-03 00:54:00 +00008285# Check whether --with-sharearch-dir was given.
8286if test "${with_sharearch_dir+set}" = set; then :
8287 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008288else
cristy408ebcd2011-11-14 01:36:57 +00008289 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008290fi
8291
8292
cristy670aa3c2011-11-03 00:54:00 +00008293eval "eval SHAREARCH_DIR=$sharearch_dir"
8294SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008295
cristy0151ae12011-10-28 16:32:29 +00008296
8297#
cristy3ed852e2009-09-05 21:47:34 +00008298# Enable support for threads
8299
8300# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008301if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008302 withval=$with_threads; with_threads=$withval
8303else
8304 with_threads='yes'
8305fi
8306
8307
8308have_threads=no
8309if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008310
8311
cristy73bd4a52010-10-05 11:24:23 +00008312ac_ext=c
8313ac_cpp='$CPP $CPPFLAGS'
8314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318ax_pthread_ok=no
8319
8320# We used to check for pthread.h first, but this fails if pthread.h
8321# requires special compiler flags (e.g. on True64 or Sequent).
8322# It gets checked for in the link test anyway.
8323
8324# First of all, check if the user has set any of the PTHREAD_LIBS,
8325# etcetera environment variables, and if threads linking works using
8326# them:
8327if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8328 save_CFLAGS="$CFLAGS"
8329 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8330 save_LIBS="$LIBS"
8331 LIBS="$PTHREAD_LIBS $LIBS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8333$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h. */
8336
8337/* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8340#ifdef __cplusplus
8341extern "C"
8342#endif
8343char pthread_join ();
8344int
8345main ()
8346{
8347return pthread_join ();
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_link "$LINENO"; then :
8353 ax_pthread_ok=yes
8354fi
8355rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8358$as_echo "$ax_pthread_ok" >&6; }
8359 if test x"$ax_pthread_ok" = xno; then
8360 PTHREAD_LIBS=""
8361 PTHREAD_CFLAGS=""
8362 fi
8363 LIBS="$save_LIBS"
8364 CFLAGS="$save_CFLAGS"
8365fi
8366
8367# We must check for the threads library under a number of different
8368# names; the ordering is very important because some systems
8369# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8370# libraries is broken (non-POSIX).
8371
8372# Create a list of thread flags to try. Items starting with a "-" are
8373# C compiler flags, and other items are library names, except for "none"
8374# which indicates that we try without any flags at all, and "pthread-config"
8375# which is a program returning the flags for the Pth emulation library.
8376
cristy18307f12011-12-30 01:20:16 +00008377ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008378
8379# The ordering *is* (sometimes) important. Some notes on the
8380# individual items follow:
8381
8382# pthreads: AIX (must check this before -lpthread)
8383# none: in case threads are in libc; should be tried before -Kthread and
8384# other compiler flags to prevent continual compiler warnings
8385# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8386# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8387# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8388# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8389# -pthreads: Solaris/gcc
8390# -mthreads: Mingw32/gcc, Lynx/gcc
8391# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8392# doesn't hurt to check since this sometimes defines pthreads too;
8393# also defines -D_REENTRANT)
8394# ... -mt is also the pthreads flag for HP/aCC
8395# pthread: Linux, etcetera
8396# --thread-safe: KAI C++
8397# pthread-config: use pthread-config program (for GNU Pth library)
8398
8399case "${host_cpu}-${host_os}" in
8400 *solaris*)
8401
8402 # On Solaris (at least, for some versions), libc contains stubbed
8403 # (non-functional) versions of the pthreads routines, so link-based
8404 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8405 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8406 # a function called by this macro, so we could check for that, but
8407 # who knows whether they'll stub that too in a future libc.) So,
8408 # we'll just look for -pthreads and -lpthread first:
8409
8410 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8411 ;;
8412
cristya316db12011-10-24 00:49:45 +00008413 *-darwin*)
8414 ax_pthread_flags="-pthread $ax_pthread_flags"
8415 ;;
cristy73bd4a52010-10-05 11:24:23 +00008416esac
8417
8418if test x"$ax_pthread_ok" = xno; then
8419for flag in $ax_pthread_flags; do
8420
8421 case $flag in
8422 none)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8424$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8425 ;;
8426
8427 -*)
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8429$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8430 PTHREAD_CFLAGS="$flag"
8431 ;;
8432
cristya316db12011-10-24 00:49:45 +00008433 pthread-config)
8434 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008435set dummy pthread-config; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008438if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008439 $as_echo_n "(cached) " >&6
8440else
8441 if test -n "$ax_pthread_config"; then
8442 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_prog_ax_pthread_config="yes"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455done
8456 done
8457IFS=$as_save_IFS
8458
8459 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8460fi
8461fi
8462ax_pthread_config=$ac_cv_prog_ax_pthread_config
8463if test -n "$ax_pthread_config"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8465$as_echo "$ax_pthread_config" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
cristya316db12011-10-24 00:49:45 +00008472 if test x"$ax_pthread_config" = xno; then continue; fi
8473 PTHREAD_CFLAGS="`pthread-config --cflags`"
8474 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8475 ;;
cristy73bd4a52010-10-05 11:24:23 +00008476
8477 *)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8479$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8480 PTHREAD_LIBS="-l$flag"
8481 ;;
8482 esac
8483
8484 save_LIBS="$LIBS"
8485 save_CFLAGS="$CFLAGS"
8486 LIBS="$PTHREAD_LIBS $LIBS"
8487 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8488
8489 # Check for various functions. We must include pthread.h,
8490 # since some functions may be macros. (On the Sequent, we
8491 # need a special flag -Kthread to make this header compile.)
8492 # We check for pthread_join because it is in -lpthread on IRIX
8493 # while pthread_create is in libc. We check for pthread_attr_init
8494 # due to DEC craziness with -lpthreads. We check for
8495 # pthread_cleanup_push because it is one of the few pthread
8496 # functions on Solaris that doesn't have a non-functional libc stub.
8497 # We try pthread_create on general principles.
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h. */
8500#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008501 static void routine(void *a) { a = 0; }
8502 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008503int
8504main ()
8505{
8506pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008507 pthread_create(&th, 0, start_routine, 0);
8508 pthread_join(th, 0);
8509 pthread_attr_init(&attr);
8510 pthread_cleanup_push(routine, 0);
8511 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008512 ;
8513 return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
8517 ax_pthread_ok=yes
8518fi
8519rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521
8522 LIBS="$save_LIBS"
8523 CFLAGS="$save_CFLAGS"
8524
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8526$as_echo "$ax_pthread_ok" >&6; }
8527 if test "x$ax_pthread_ok" = xyes; then
8528 break;
8529 fi
8530
8531 PTHREAD_LIBS=""
8532 PTHREAD_CFLAGS=""
8533done
8534fi
8535
8536# Various other checks:
8537if test "x$ax_pthread_ok" = xyes; then
8538 save_LIBS="$LIBS"
8539 LIBS="$PTHREAD_LIBS $LIBS"
8540 save_CFLAGS="$CFLAGS"
8541 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8542
8543 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008545$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008546 attr_name=unknown
8547 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008549/* end confdefs.h. */
8550#include <pthread.h>
8551int
8552main ()
8553{
cristya316db12011-10-24 00:49:45 +00008554int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008555 ;
8556 return 0;
8557}
8558_ACEOF
8559if ac_fn_c_try_link "$LINENO"; then :
8560 attr_name=$attr; break
8561fi
8562rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008564 done
cristy73bd4a52010-10-05 11:24:23 +00008565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8566$as_echo "$attr_name" >&6; }
8567 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8568
8569cat >>confdefs.h <<_ACEOF
8570#define PTHREAD_CREATE_JOINABLE $attr_name
8571_ACEOF
8572
8573 fi
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8576$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8577 flag=no
8578 case "${host_cpu}-${host_os}" in
8579 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8580 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8581 esac
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8583$as_echo "${flag}" >&6; }
8584 if test "x$flag" != xno; then
8585 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8586 fi
8587
cristya316db12011-10-24 00:49:45 +00008588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8589$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8590if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592else
8593
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h. */
8596
8597 #include <pthread.h>
8598int
8599main ()
8600{
8601int i = PTHREAD_PRIO_INHERIT;
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606if ac_fn_c_try_link "$LINENO"; then :
8607 ax_cv_PTHREAD_PRIO_INHERIT=yes
8608else
8609 ax_cv_PTHREAD_PRIO_INHERIT=no
8610fi
8611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8616$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8617 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8618
8619$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8620
8621fi
8622
cristy73bd4a52010-10-05 11:24:23 +00008623 LIBS="$save_LIBS"
8624 CFLAGS="$save_CFLAGS"
8625
8626 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008627 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008628 for ac_prog in xlc_r cc_r
8629do
8630 # Extract the first word of "$ac_prog", so it can be a program name with args.
8631set dummy $ac_prog; ac_word=$2
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008634if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008635 $as_echo_n "(cached) " >&6
8636else
8637 if test -n "$PTHREAD_CC"; then
8638 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_PTHREAD_CC="$ac_prog"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651done
8652 done
8653IFS=$as_save_IFS
8654
8655fi
8656fi
8657PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8658if test -n "$PTHREAD_CC"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8660$as_echo "$PTHREAD_CC" >&6; }
8661else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
8664fi
8665
8666
8667 test -n "$PTHREAD_CC" && break
8668done
8669test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8670
8671 else
8672 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008673 fi
cristy73bd4a52010-10-05 11:24:23 +00008674else
8675 PTHREAD_CC="$CC"
8676fi
8677
8678
8679
8680
8681
8682# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8683if test x"$ax_pthread_ok" = xyes; then
8684
8685$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8686
8687 :
8688else
8689 ax_pthread_ok=no
8690
8691fi
8692ac_ext=c
8693ac_cpp='$CPP $CPPFLAGS'
8694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8696ac_compiler_gnu=$ac_cv_c_compiler_gnu
8697
8698
cristy7acf8fb2010-09-23 19:58:53 +00008699 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008700 have_threads=yes
8701 DEF_THREAD="$PTHREAD_CFLAGS"
8702 CFLAGS="$CFLAGS $DEF_THREAD"
8703 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8704 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008705 { $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 +00008706$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8707 CC="$PTHREAD_CC"
8708 fi
cristy55bf91c2010-09-24 00:29:41 +00008709
8710$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8711
cristy3ed852e2009-09-05 21:47:34 +00008712 fi
8713fi
8714
8715# Enable support for OpenMP
8716if test "$have_threads" != 'yes'; then
8717 ac_cv_prog_c_openmp=unsupported
8718fi
8719
8720 OPENMP_CFLAGS=
8721 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008722if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 enableval=$enable_openmp;
8724fi
8725
8726 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008728$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008729if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008730 $as_echo_n "(cached) " >&6
8731else
cristy8b350f62009-11-15 23:12:43 +00008732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008734
8735#ifndef _OPENMP
8736 choke me
8737#endif
8738#include <omp.h>
8739int main () { return omp_get_num_threads (); }
8740
8741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008743 ac_cv_prog_c_openmp='none needed'
8744else
cristy8b350f62009-11-15 23:12:43 +00008745 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008746 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8747 ac_save_CFLAGS=$CFLAGS
8748 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008751
8752#ifndef _OPENMP
8753 choke me
8754#endif
8755#include <omp.h>
8756int main () { return omp_get_num_threads (); }
8757
8758_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008760 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008761fi
cristy8b350f62009-11-15 23:12:43 +00008762rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008764 CFLAGS=$ac_save_CFLAGS
8765 if test "$ac_cv_prog_c_openmp" != unsupported; then
8766 break
8767 fi
8768 done
8769fi
cristy8b350f62009-11-15 23:12:43 +00008770rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008772fi
cristy8b350f62009-11-15 23:12:43 +00008773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008774$as_echo "$ac_cv_prog_c_openmp" >&6; }
8775 case $ac_cv_prog_c_openmp in #(
8776 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008777 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008778 *)
cristy8b350f62009-11-15 23:12:43 +00008779 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008780 esac
8781 fi
8782
8783
8784CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8785MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8786
cristy391f1ce2010-09-09 17:23:28 +00008787if test "$enable_openmp" != no; then
8788 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8789 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8790 fi
8791fi
cristy3ed852e2009-09-05 21:47:34 +00008792
cristy736173a2009-09-20 21:18:22 +00008793# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008794
8795
cristy73bd4a52010-10-05 11:24:23 +00008796ac_ext=c
8797ac_cpp='$CPP $CPPFLAGS'
8798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801
8802ax_pthread_ok=no
8803
8804# We used to check for pthread.h first, but this fails if pthread.h
8805# requires special compiler flags (e.g. on True64 or Sequent).
8806# It gets checked for in the link test anyway.
8807
8808# First of all, check if the user has set any of the PTHREAD_LIBS,
8809# etcetera environment variables, and if threads linking works using
8810# them:
8811if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8812 save_CFLAGS="$CFLAGS"
8813 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8814 save_LIBS="$LIBS"
8815 LIBS="$PTHREAD_LIBS $LIBS"
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8817$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h. */
8820
8821/* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8824#ifdef __cplusplus
8825extern "C"
8826#endif
8827char pthread_join ();
8828int
8829main ()
8830{
8831return pthread_join ();
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_link "$LINENO"; then :
8837 ax_pthread_ok=yes
8838fi
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8842$as_echo "$ax_pthread_ok" >&6; }
8843 if test x"$ax_pthread_ok" = xno; then
8844 PTHREAD_LIBS=""
8845 PTHREAD_CFLAGS=""
8846 fi
8847 LIBS="$save_LIBS"
8848 CFLAGS="$save_CFLAGS"
8849fi
8850
8851# We must check for the threads library under a number of different
8852# names; the ordering is very important because some systems
8853# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8854# libraries is broken (non-POSIX).
8855
8856# Create a list of thread flags to try. Items starting with a "-" are
8857# C compiler flags, and other items are library names, except for "none"
8858# which indicates that we try without any flags at all, and "pthread-config"
8859# which is a program returning the flags for the Pth emulation library.
8860
cristy18307f12011-12-30 01:20:16 +00008861ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008862
8863# The ordering *is* (sometimes) important. Some notes on the
8864# individual items follow:
8865
8866# pthreads: AIX (must check this before -lpthread)
8867# none: in case threads are in libc; should be tried before -Kthread and
8868# other compiler flags to prevent continual compiler warnings
8869# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8870# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8871# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8872# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8873# -pthreads: Solaris/gcc
8874# -mthreads: Mingw32/gcc, Lynx/gcc
8875# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8876# doesn't hurt to check since this sometimes defines pthreads too;
8877# also defines -D_REENTRANT)
8878# ... -mt is also the pthreads flag for HP/aCC
8879# pthread: Linux, etcetera
8880# --thread-safe: KAI C++
8881# pthread-config: use pthread-config program (for GNU Pth library)
8882
8883case "${host_cpu}-${host_os}" in
8884 *solaris*)
8885
8886 # On Solaris (at least, for some versions), libc contains stubbed
8887 # (non-functional) versions of the pthreads routines, so link-based
8888 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8889 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8890 # a function called by this macro, so we could check for that, but
8891 # who knows whether they'll stub that too in a future libc.) So,
8892 # we'll just look for -pthreads and -lpthread first:
8893
8894 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8895 ;;
8896
cristya316db12011-10-24 00:49:45 +00008897 *-darwin*)
8898 ax_pthread_flags="-pthread $ax_pthread_flags"
8899 ;;
cristy73bd4a52010-10-05 11:24:23 +00008900esac
8901
8902if test x"$ax_pthread_ok" = xno; then
8903for flag in $ax_pthread_flags; do
8904
8905 case $flag in
8906 none)
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8908$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8909 ;;
8910
8911 -*)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8913$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8914 PTHREAD_CFLAGS="$flag"
8915 ;;
8916
cristya316db12011-10-24 00:49:45 +00008917 pthread-config)
8918 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008919set dummy pthread-config; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008922if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008923 $as_echo_n "(cached) " >&6
8924else
8925 if test -n "$ax_pthread_config"; then
8926 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_prog_ax_pthread_config="yes"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8944fi
8945fi
8946ax_pthread_config=$ac_cv_prog_ax_pthread_config
8947if test -n "$ax_pthread_config"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8949$as_echo "$ax_pthread_config" >&6; }
8950else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
8955
cristya316db12011-10-24 00:49:45 +00008956 if test x"$ax_pthread_config" = xno; then continue; fi
8957 PTHREAD_CFLAGS="`pthread-config --cflags`"
8958 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8959 ;;
cristy73bd4a52010-10-05 11:24:23 +00008960
8961 *)
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8963$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8964 PTHREAD_LIBS="-l$flag"
8965 ;;
8966 esac
8967
8968 save_LIBS="$LIBS"
8969 save_CFLAGS="$CFLAGS"
8970 LIBS="$PTHREAD_LIBS $LIBS"
8971 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8972
8973 # Check for various functions. We must include pthread.h,
8974 # since some functions may be macros. (On the Sequent, we
8975 # need a special flag -Kthread to make this header compile.)
8976 # We check for pthread_join because it is in -lpthread on IRIX
8977 # while pthread_create is in libc. We check for pthread_attr_init
8978 # due to DEC craziness with -lpthreads. We check for
8979 # pthread_cleanup_push because it is one of the few pthread
8980 # functions on Solaris that doesn't have a non-functional libc stub.
8981 # We try pthread_create on general principles.
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h. */
8984#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008985 static void routine(void *a) { a = 0; }
8986 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008987int
8988main ()
8989{
8990pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008991 pthread_create(&th, 0, start_routine, 0);
8992 pthread_join(th, 0);
8993 pthread_attr_init(&attr);
8994 pthread_cleanup_push(routine, 0);
8995 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008996 ;
8997 return 0;
8998}
8999_ACEOF
9000if ac_fn_c_try_link "$LINENO"; then :
9001 ax_pthread_ok=yes
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005
9006 LIBS="$save_LIBS"
9007 CFLAGS="$save_CFLAGS"
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9010$as_echo "$ax_pthread_ok" >&6; }
9011 if test "x$ax_pthread_ok" = xyes; then
9012 break;
9013 fi
9014
9015 PTHREAD_LIBS=""
9016 PTHREAD_CFLAGS=""
9017done
9018fi
9019
9020# Various other checks:
9021if test "x$ax_pthread_ok" = xyes; then
9022 save_LIBS="$LIBS"
9023 LIBS="$PTHREAD_LIBS $LIBS"
9024 save_CFLAGS="$CFLAGS"
9025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9026
9027 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009029$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009030 attr_name=unknown
9031 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009033/* end confdefs.h. */
9034#include <pthread.h>
9035int
9036main ()
9037{
cristya316db12011-10-24 00:49:45 +00009038int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"; then :
9044 attr_name=$attr; break
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009048 done
cristy73bd4a52010-10-05 11:24:23 +00009049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9050$as_echo "$attr_name" >&6; }
9051 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9052
9053cat >>confdefs.h <<_ACEOF
9054#define PTHREAD_CREATE_JOINABLE $attr_name
9055_ACEOF
9056
9057 fi
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9060$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9061 flag=no
9062 case "${host_cpu}-${host_os}" in
9063 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9064 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9065 esac
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9067$as_echo "${flag}" >&6; }
9068 if test "x$flag" != xno; then
9069 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9070 fi
9071
cristya316db12011-10-24 00:49:45 +00009072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9073$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9074if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076else
9077
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080
9081 #include <pthread.h>
9082int
9083main ()
9084{
9085int i = PTHREAD_PRIO_INHERIT;
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_link "$LINENO"; then :
9091 ax_cv_PTHREAD_PRIO_INHERIT=yes
9092else
9093 ax_cv_PTHREAD_PRIO_INHERIT=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9100$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9101 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9102
9103$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9104
9105fi
9106
cristy73bd4a52010-10-05 11:24:23 +00009107 LIBS="$save_LIBS"
9108 CFLAGS="$save_CFLAGS"
9109
9110 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009111 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009112 for ac_prog in xlc_r cc_r
9113do
9114 # Extract the first word of "$ac_prog", so it can be a program name with args.
9115set dummy $ac_prog; ac_word=$2
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009118if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009119 $as_echo_n "(cached) " >&6
9120else
9121 if test -n "$PTHREAD_CC"; then
9122 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9123else
9124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125for as_dir in $PATH
9126do
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_prog_PTHREAD_CC="$ac_prog"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135done
9136 done
9137IFS=$as_save_IFS
9138
9139fi
9140fi
9141PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9142if test -n "$PTHREAD_CC"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9144$as_echo "$PTHREAD_CC" >&6; }
9145else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147$as_echo "no" >&6; }
9148fi
9149
9150
9151 test -n "$PTHREAD_CC" && break
9152done
9153test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9154
9155 else
9156 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009157 fi
cristy73bd4a52010-10-05 11:24:23 +00009158else
9159 PTHREAD_CC="$CC"
9160fi
9161
9162
9163
9164
9165
9166# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9167if test x"$ax_pthread_ok" = xyes; then
9168
9169$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9170
9171 :
9172else
9173 ax_pthread_ok=no
9174
9175fi
9176ac_ext=c
9177ac_cpp='$CPP $CPPFLAGS'
9178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180ac_compiler_gnu=$ac_cv_c_compiler_gnu
9181
9182
9183
9184# Check whether --enable-opencl was given.
9185if test "${enable_opencl+set}" = set; then :
9186 enableval=$enable_opencl; disable_opencl=$enableval
9187else
9188 disable_opencl='yes'
9189fi
9190
9191
9192if test "$disable_opencl" = 'yes'; then
9193 ac_ext=c
9194ac_cpp='$CPP $CPPFLAGS'
9195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9197ac_compiler_gnu=$ac_cv_c_compiler_gnu
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9200$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009201if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009202 $as_echo_n "(cached) " >&6
9203else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h. */
9206
9207int
9208main ()
9209{
9210#ifndef _MSC_VER
9211 choke me
9212#endif
9213
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_compile "$LINENO"; then :
9219 ax_compiler_ms=yes
9220else
9221 ax_compiler_ms=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224ax_cv_c_compiler_ms=$ax_compiler_ms
9225
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9228$as_echo "$ax_cv_c_compiler_ms" >&6; }
9229 if test X$ax_compiler_ms = Xno; then :
9230 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9231fi
9232
9233 ax_save_CPPFLAGS=$CPPFLAGS
9234 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9235 for ac_header in CL/cl.h OpenCL/cl.h
9236do :
9237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009240 cat >>confdefs.h <<_ACEOF
9241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242_ACEOF
9243
9244fi
9245
9246done
9247
9248 CPPFLAGS=$ax_save_CPPFLAGS
9249
9250 for ac_header in windows.h
9251do :
9252 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009253if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009254 cat >>confdefs.h <<_ACEOF
9255#define HAVE_WINDOWS_H 1
9256_ACEOF
9257
9258fi
9259
9260done
9261
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9266$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009267if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009268 $as_echo_n "(cached) " >&6
9269else
9270 ax_cv_check_cl_libcl=no
9271 case $host_cpu in
9272 x86_64) ax_check_cl_libdir=lib64 ;;
9273 *) ax_check_cl_libdir=lib ;;
9274 esac
9275 ax_save_CPPFLAGS=$CPPFLAGS
9276 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9277 ax_save_LIBS=$LIBS
9278 LIBS=""
9279 ax_check_libs="-lOpenCL -lCL -lclparser"
9280 for ax_lib in $ax_check_libs; do
9281 if test X$ax_compiler_ms = Xyes; then :
9282 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9283else
9284 ax_try_lib=$ax_lib
9285fi
9286 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h. */
9289
9290 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9291 # include <windows.h>
9292 # endif
9293 # ifdef HAVE_CL_CL_H
9294 # include <CL/cl.h>
9295 # elif defined(HAVE_OPENCL_CL_H)
9296 # include <OpenCL/cl.h>
9297 # else
9298 # error no CL.h
9299 # endif
9300int
9301main ()
9302{
9303clCreateContextFromType(0,0,0,0,0)
9304 ;
9305 return 0;
9306}
9307_ACEOF
9308if ac_fn_c_try_link "$LINENO"; then :
9309 ax_cv_check_cl_libcl=$ax_try_lib; break
9310else
9311 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"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h. */
9314
9315 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9316 # include <windows.h>
9317 # endif
9318 # ifdef HAVE_CL_CL_H
9319 # include <CL/cl.h>
9320 # elif defined(HAVE_OPENCL_CL_H)
9321 # include <OpenCL/cl.h>
9322 # else
9323 # error no CL.h
9324 # endif
9325int
9326main ()
9327{
9328clCreateContextFromType(0,0,0,0,0)
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333if ac_fn_c_try_link "$LINENO"; then :
9334 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9335else
cristy78c5a0c2010-12-04 20:00:59 +00009336 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 +00009337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
9339
9340 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9341 # include <windows.h>
9342 # endif
9343 # ifdef HAVE_CL_CL_H
9344 # include <CL/cl.h>
9345 # elif defined(HAVE_OPENCL_CL_H)
9346 # include <OpenCL/cl.h>
9347 # else
9348 # error no CL.h
9349 # endif
9350int
9351main ()
9352{
9353clCreateContextFromType(0,0,0,0,0)
9354 ;
9355 return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"; then :
9359 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9360fi
9361rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 done
9370
cristyc3f8b8e2011-12-22 14:55:16 +00009371 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009372 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h. */
9375
9376 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9377 # include <windows.h>
9378 # endif
9379 # ifdef HAVE_CL_CL_H
9380 # include <CL/cl.h>
9381 # elif defined(HAVE_OPENCL_CL_H)
9382 # include <OpenCL/cl.h>
9383 # else
9384 # error no CL.h
9385 # endif
9386int
9387main ()
9388{
9389clCreateContextFromType(0,0,0,0,0)
9390 ;
9391 return 0;
9392}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"; then :
9395 ax_cv_check_cl_libcl=$LIBS
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399fi
9400
9401 LIBS=$ax_save_LIBS
9402 CPPFLAGS=$ax_save_CPPFLAGS
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9405$as_echo "$ax_cv_check_cl_libcl" >&6; }
9406
9407 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9408 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9409else
9410 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9411$as_echo "#define _OPENCL 1" >>confdefs.h
9412
9413fi
9414 ac_ext=c
9415ac_cpp='$CPP $CPPFLAGS'
9416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9418ac_compiler_gnu=$ac_cv_c_compiler_gnu
9419
9420fi
9421
9422
9423
9424
cristyc7083c12009-10-14 03:16:55 +00009425CFLAGS="$CL_CFLAGS $CFLAGS"
9426LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009427
cristy391f1ce2010-09-09 17:23:28 +00009428if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009429 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009430 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9431 fi
cristyfd9dcd42010-08-08 18:07:02 +00009432fi
cristy2e8b51d2009-10-17 18:26:15 +00009433
cristy3ed852e2009-09-05 21:47:34 +00009434########
9435#
9436# Check for large file support
9437#
9438########
9439# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009440if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009441 enableval=$enable_largefile;
9442fi
9443
9444if test "$enable_largefile" != no; then
9445
cristy8b350f62009-11-15 23:12:43 +00009446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009447$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009448if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009449 $as_echo_n "(cached) " >&6
9450else
9451 ac_cv_sys_largefile_CC=no
9452 if test "$GCC" != yes; then
9453 ac_save_CC=$CC
9454 while :; do
9455 # IRIX 6.2 and later do not support large files by default,
9456 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009458/* end confdefs.h. */
9459#include <sys/types.h>
9460 /* Check that off_t can represent 2**63 - 1 correctly.
9461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9462 since some C++ compilers masquerading as C compilers
9463 incorrectly reject 9223372036854775807. */
9464#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9466 && LARGE_OFF_T % 2147483647 == 1)
9467 ? 1 : -1];
9468int
9469main ()
9470{
9471
9472 ;
9473 return 0;
9474}
9475_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009476 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext
9480 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009481 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009482 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009483fi
cristy3ed852e2009-09-05 21:47:34 +00009484rm -f core conftest.err conftest.$ac_objext
9485 break
9486 done
9487 CC=$ac_save_CC
9488 rm -f conftest.$ac_ext
9489 fi
9490fi
cristy8b350f62009-11-15 23:12:43 +00009491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9493 if test "$ac_cv_sys_largefile_CC" != no; then
9494 CC=$CC$ac_cv_sys_largefile_CC
9495 fi
9496
cristy8b350f62009-11-15 23:12:43 +00009497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009498$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009499if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009500 $as_echo_n "(cached) " >&6
9501else
9502 while :; do
cristy8b350f62009-11-15 23:12:43 +00009503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009504/* end confdefs.h. */
9505#include <sys/types.h>
9506 /* Check that off_t can represent 2**63 - 1 correctly.
9507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9508 since some C++ compilers masquerading as C compilers
9509 incorrectly reject 9223372036854775807. */
9510#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9512 && LARGE_OFF_T % 2147483647 == 1)
9513 ? 1 : -1];
9514int
9515main ()
9516{
9517
9518 ;
9519 return 0;
9520}
9521_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009522if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009524fi
cristy3ed852e2009-09-05 21:47:34 +00009525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009527/* end confdefs.h. */
9528#define _FILE_OFFSET_BITS 64
9529#include <sys/types.h>
9530 /* Check that off_t can represent 2**63 - 1 correctly.
9531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9532 since some C++ compilers masquerading as C compilers
9533 incorrectly reject 9223372036854775807. */
9534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9536 && LARGE_OFF_T % 2147483647 == 1)
9537 ? 1 : -1];
9538int
9539main ()
9540{
9541
9542 ;
9543 return 0;
9544}
9545_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009546if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009547 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009548fi
cristy3ed852e2009-09-05 21:47:34 +00009549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 ac_cv_sys_file_offset_bits=unknown
9551 break
9552done
9553fi
cristy8b350f62009-11-15 23:12:43 +00009554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009555$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9556case $ac_cv_sys_file_offset_bits in #(
9557 no | unknown) ;;
9558 *)
9559cat >>confdefs.h <<_ACEOF
9560#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9561_ACEOF
9562;;
9563esac
9564rm -rf conftest*
9565 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009568if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 $as_echo_n "(cached) " >&6
9570else
9571 while :; do
cristy8b350f62009-11-15 23:12:43 +00009572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009573/* end confdefs.h. */
9574#include <sys/types.h>
9575 /* Check that off_t can represent 2**63 - 1 correctly.
9576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9577 since some C++ compilers masquerading as C compilers
9578 incorrectly reject 9223372036854775807. */
9579#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9581 && LARGE_OFF_T % 2147483647 == 1)
9582 ? 1 : -1];
9583int
9584main ()
9585{
9586
9587 ;
9588 return 0;
9589}
9590_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009592 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009593fi
cristy3ed852e2009-09-05 21:47:34 +00009594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009596/* end confdefs.h. */
9597#define _LARGE_FILES 1
9598#include <sys/types.h>
9599 /* Check that off_t can represent 2**63 - 1 correctly.
9600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9601 since some C++ compilers masquerading as C compilers
9602 incorrectly reject 9223372036854775807. */
9603#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9605 && LARGE_OFF_T % 2147483647 == 1)
9606 ? 1 : -1];
9607int
9608main ()
9609{
9610
9611 ;
9612 return 0;
9613}
9614_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009615if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009616 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009617fi
cristy3ed852e2009-09-05 21:47:34 +00009618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 ac_cv_sys_large_files=unknown
9620 break
9621done
9622fi
cristy8b350f62009-11-15 23:12:43 +00009623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009624$as_echo "$ac_cv_sys_large_files" >&6; }
9625case $ac_cv_sys_large_files in #(
9626 no | unknown) ;;
9627 *)
9628cat >>confdefs.h <<_ACEOF
9629#define _LARGE_FILES $ac_cv_sys_large_files
9630_ACEOF
9631;;
9632esac
9633rm -rf conftest*
9634 fi
9635fi
9636
cristy8b350f62009-11-15 23:12:43 +00009637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009638$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009639if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009640 $as_echo_n "(cached) " >&6
9641else
9642 while :; do
cristy8b350f62009-11-15 23:12:43 +00009643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009644/* end confdefs.h. */
9645#include <sys/types.h> /* for off_t */
9646 #include <stdio.h>
9647int
9648main ()
9649{
9650int (*fp) (FILE *, off_t, int) = fseeko;
9651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9652 ;
9653 return 0;
9654}
9655_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009657 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009658fi
cristy8b350f62009-11-15 23:12:43 +00009659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009662/* end confdefs.h. */
9663#define _LARGEFILE_SOURCE 1
9664#include <sys/types.h> /* for off_t */
9665 #include <stdio.h>
9666int
9667main ()
9668{
9669int (*fp) (FILE *, off_t, int) = fseeko;
9670 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9671 ;
9672 return 0;
9673}
9674_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009676 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009677fi
cristy8b350f62009-11-15 23:12:43 +00009678rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009680 ac_cv_sys_largefile_source=unknown
9681 break
9682done
9683fi
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$ac_cv_sys_largefile_source" >&6; }
9686case $ac_cv_sys_largefile_source in #(
9687 no | unknown) ;;
9688 *)
9689cat >>confdefs.h <<_ACEOF
9690#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9691_ACEOF
9692;;
9693esac
9694rm -rf conftest*
9695
9696# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9697# in glibc 2.1.3, but that breaks too many other things.
9698# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9699if test $ac_cv_sys_largefile_source != unknown; then
9700
cristy8b350f62009-11-15 23:12:43 +00009701$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009702
9703fi
9704
9705LFS_CPPFLAGS=''
9706if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009707 case $ac_cv_sys_file_offset_bits in
9708 no)
9709 # nothing to do here as the host supports LFS fine
9710 ;;
9711 unknown)
cristy8b350f62009-11-15 23:12:43 +00009712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009713$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009714 if test "$cross_compiling" = yes; then :
9715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009717as_fn_error $? "cannot run test program while cross compiling
9718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009719else
cristy8b350f62009-11-15 23:12:43 +00009720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009722#include <unistd.h>
9723 main () {
9724 exit(!(sizeof(off_t) == 8));
9725 }
cristyda16f162011-02-19 23:52:17 +00009726int
9727main ()
9728{
9729
9730 ;
9731 return 0;
9732}
cristy3ed852e2009-09-05 21:47:34 +00009733_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009734if ac_fn_c_try_run "$LINENO"; then :
9735 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009736
cristy09b53e12011-10-14 12:47:22 +00009737 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9738$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009739else
cristy09b53e12011-10-14 12:47:22 +00009740 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9741$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009742fi
cristy8b350f62009-11-15 23:12:43 +00009743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9744 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009745fi
9746
cristyc1e0cc12011-09-21 16:41:16 +00009747 ;;
9748 *)
9749 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9750 ;;
9751 esac
cristy3ed852e2009-09-05 21:47:34 +00009752 if test "$ac_cv_sys_large_files" != 'no'; then
9753 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9754 fi
9755 if test "$ac_cv_sys_largefile_source" != 'no'; then
9756 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9757 fi
9758fi
9759
9760
cristy3ed852e2009-09-05 21:47:34 +00009761# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009762enable_dlopen=yes
9763
9764
9765
9766case `pwd` in
9767 *\ * | *\ *)
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9769$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9770esac
9771
9772
9773
cristy99bd5232011-12-07 14:38:20 +00009774macro_version='2.4.2'
9775macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789ltmain="$ac_aux_dir/ltmain.sh"
9790
cristy0c60a692010-11-04 01:09:47 +00009791# Backslashify metacharacters that are still active within
9792# double-quoted strings.
9793sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9794
9795# Same as above, but do not quote variable references.
9796double_quote_subst='s/\(["`\\]\)/\\\1/g'
9797
9798# Sed substitution to delay expansion of an escaped shell variable in a
9799# double_quote_subst'ed string.
9800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9801
9802# Sed substitution to delay expansion of an escaped single quote.
9803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9804
9805# Sed substitution to avoid accidental globbing in evaled expressions
9806no_glob_subst='s/\*/\\\*/g'
9807
cristy73bd4a52010-10-05 11:24:23 +00009808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9809$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009810if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009811 $as_echo_n "(cached) " >&6
9812else
9813 if test -n "$NM"; then
9814 # Let the user override the test.
9815 lt_cv_path_NM="$NM"
9816else
9817 lt_nm_to_check="${ac_tool_prefix}nm"
9818 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9819 lt_nm_to_check="$lt_nm_to_check nm"
9820 fi
9821 for lt_tmp_nm in $lt_nm_to_check; do
9822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9823 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9824 IFS="$lt_save_ifs"
9825 test -z "$ac_dir" && ac_dir=.
9826 tmp_nm="$ac_dir/$lt_tmp_nm"
9827 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9828 # Check to see if the nm accepts a BSD-compat flag.
9829 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9830 # nm: unknown option "B" ignored
9831 # Tru64's nm complains that /dev/null is an invalid object file
9832 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9833 */dev/null* | *'Invalid file or object type'*)
9834 lt_cv_path_NM="$tmp_nm -B"
9835 break
9836 ;;
9837 *)
9838 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9839 */dev/null*)
9840 lt_cv_path_NM="$tmp_nm -p"
9841 break
9842 ;;
9843 *)
9844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9845 continue # so that we can try to find one that supports BSD flags
9846 ;;
9847 esac
9848 ;;
9849 esac
9850 fi
9851 done
9852 IFS="$lt_save_ifs"
9853 done
9854 : ${lt_cv_path_NM=no}
9855fi
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9858$as_echo "$lt_cv_path_NM" >&6; }
9859if test "$lt_cv_path_NM" != "no"; then
9860 NM="$lt_cv_path_NM"
9861else
9862 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009863 if test -n "$DUMPBIN"; then :
9864 # Let the user override the test.
9865 else
9866 if test -n "$ac_tool_prefix"; then
9867 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009868 do
9869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009873if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009874 $as_echo_n "(cached) " >&6
9875else
9876 if test -n "$DUMPBIN"; then
9877 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9878else
9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880for as_dir in $PATH
9881do
9882 IFS=$as_save_IFS
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9886 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 break 2
9889 fi
9890done
9891 done
9892IFS=$as_save_IFS
9893
9894fi
9895fi
9896DUMPBIN=$ac_cv_prog_DUMPBIN
9897if test -n "$DUMPBIN"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9899$as_echo "$DUMPBIN" >&6; }
9900else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903fi
9904
9905
9906 test -n "$DUMPBIN" && break
9907 done
9908fi
9909if test -z "$DUMPBIN"; then
9910 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009911 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009912do
9913 # Extract the first word of "$ac_prog", so it can be a program name with args.
9914set dummy $ac_prog; ac_word=$2
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009917if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009918 $as_echo_n "(cached) " >&6
9919else
9920 if test -n "$ac_ct_DUMPBIN"; then
9921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934done
9935 done
9936IFS=$as_save_IFS
9937
9938fi
9939fi
9940ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9941if test -n "$ac_ct_DUMPBIN"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9943$as_echo "$ac_ct_DUMPBIN" >&6; }
9944else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949
9950 test -n "$ac_ct_DUMPBIN" && break
9951done
9952
9953 if test "x$ac_ct_DUMPBIN" = x; then
9954 DUMPBIN=":"
9955 else
9956 case $cross_compiling:$ac_tool_warned in
9957yes:)
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9960ac_tool_warned=yes ;;
9961esac
9962 DUMPBIN=$ac_ct_DUMPBIN
9963 fi
9964fi
9965
cristy0c60a692010-11-04 01:09:47 +00009966 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9967 *COFF*)
9968 DUMPBIN="$DUMPBIN -symbols"
9969 ;;
9970 *)
9971 DUMPBIN=:
9972 ;;
9973 esac
9974 fi
cristy73bd4a52010-10-05 11:24:23 +00009975
9976 if test "$DUMPBIN" != ":"; then
9977 NM="$DUMPBIN"
9978 fi
9979fi
9980test -z "$NM" && NM=nm
9981
9982
9983
9984
9985
9986
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9988$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009989if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009990 $as_echo_n "(cached) " >&6
9991else
9992 lt_cv_nm_interface="BSD nm"
9993 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009994 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009995 (eval "$ac_compile" 2>conftest.err)
9996 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009997 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009998 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9999 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010000 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010001 cat conftest.out >&5
10002 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10003 lt_cv_nm_interface="MS dumpbin"
10004 fi
10005 rm -f conftest*
10006fi
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10008$as_echo "$lt_cv_nm_interface" >&6; }
10009
10010# find the maximum length of command line arguments
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10012$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010013if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010014 $as_echo_n "(cached) " >&6
10015else
10016 i=0
10017 teststring="ABCD"
10018
10019 case $build_os in
10020 msdosdjgpp*)
10021 # On DJGPP, this test can blow up pretty badly due to problems in libc
10022 # (any single argument exceeding 2000 bytes causes a buffer overrun
10023 # during glob expansion). Even if it were fixed, the result of this
10024 # check would be larger than it should be.
10025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10026 ;;
10027
10028 gnu*)
10029 # Under GNU Hurd, this test is not required because there is
10030 # no limit to the length of command line arguments.
10031 # Libtool will interpret -1 as no limit whatsoever
10032 lt_cv_sys_max_cmd_len=-1;
10033 ;;
10034
10035 cygwin* | mingw* | cegcc*)
10036 # On Win9x/ME, this test blows up -- it succeeds, but takes
10037 # about 5 minutes as the teststring grows exponentially.
10038 # Worse, since 9x/ME are not pre-emptively multitasking,
10039 # you end up with a "frozen" computer, even though with patience
10040 # the test eventually succeeds (with a max line length of 256k).
10041 # Instead, let's just punt: use the minimum linelength reported by
10042 # all of the supported platforms: 8192 (on NT/2K/XP).
10043 lt_cv_sys_max_cmd_len=8192;
10044 ;;
10045
cristy0c60a692010-11-04 01:09:47 +000010046 mint*)
10047 # On MiNT this can take a long time and run out of memory.
10048 lt_cv_sys_max_cmd_len=8192;
10049 ;;
10050
cristy73bd4a52010-10-05 11:24:23 +000010051 amigaos*)
10052 # On AmigaOS with pdksh, this test takes hours, literally.
10053 # So we just punt and use a minimum line length of 8192.
10054 lt_cv_sys_max_cmd_len=8192;
10055 ;;
10056
10057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10058 # This has been around since 386BSD, at least. Likely further.
10059 if test -x /sbin/sysctl; then
10060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10061 elif test -x /usr/sbin/sysctl; then
10062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10063 else
10064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10065 fi
10066 # And add a safety zone
10067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10069 ;;
10070
10071 interix*)
10072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10073 lt_cv_sys_max_cmd_len=196608
10074 ;;
10075
cristy99bd5232011-12-07 14:38:20 +000010076 os2*)
10077 # The test takes a long time on OS/2.
10078 lt_cv_sys_max_cmd_len=8192
10079 ;;
10080
cristy73bd4a52010-10-05 11:24:23 +000010081 osf*)
10082 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10083 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10084 # nice to cause kernel panics so lets avoid the loop below.
10085 # First set a reasonable default.
10086 lt_cv_sys_max_cmd_len=16384
10087 #
10088 if test -x /sbin/sysconfig; then
10089 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10090 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10091 esac
10092 fi
10093 ;;
10094 sco3.2v5*)
10095 lt_cv_sys_max_cmd_len=102400
10096 ;;
10097 sysv5* | sco5v6* | sysv4.2uw2*)
10098 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10099 if test -n "$kargmax"; then
10100 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10101 else
10102 lt_cv_sys_max_cmd_len=32768
10103 fi
10104 ;;
10105 *)
10106 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10107 if test -n "$lt_cv_sys_max_cmd_len"; then
10108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10110 else
10111 # Make teststring a little bigger before we do anything with it.
10112 # a 1K string should be a reasonable start.
10113 for i in 1 2 3 4 5 6 7 8 ; do
10114 teststring=$teststring$teststring
10115 done
10116 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10117 # If test is not a shell built-in, we'll probably end up computing a
10118 # maximum length that is only half of the actual maximum length, but
10119 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010120 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010121 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010122 test $i != 17 # 1/2 MB should be enough
10123 do
10124 i=`expr $i + 1`
10125 teststring=$teststring$teststring
10126 done
10127 # Only check the string length outside the loop.
10128 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10129 teststring=
10130 # Add a significant safety factor because C++ compilers can tack on
10131 # massive amounts of additional arguments before passing them to the
10132 # linker. It appears as though 1/2 is a usable value.
10133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10134 fi
10135 ;;
10136 esac
10137
10138fi
10139
10140if test -n $lt_cv_sys_max_cmd_len ; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10142$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10143else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10145$as_echo "none" >&6; }
10146fi
10147max_cmd_len=$lt_cv_sys_max_cmd_len
10148
10149
10150
10151
10152
10153
10154: ${CP="cp -f"}
10155: ${MV="mv -f"}
10156: ${RM="rm -f"}
10157
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10159$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10160# Try some XSI features
10161xsi_shell=no
10162( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010163 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10164 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010165 && eval 'test $(( 1 + 1 )) -eq 2 \
10166 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10167 && xsi_shell=yes
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10169$as_echo "$xsi_shell" >&6; }
10170
10171
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10173$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10174lt_shell_append=no
10175( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10176 >/dev/null 2>&1 \
10177 && lt_shell_append=yes
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10179$as_echo "$lt_shell_append" >&6; }
10180
10181
10182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10183 lt_unset=unset
10184else
10185 lt_unset=false
10186fi
10187
10188
10189
10190
10191
10192# test EBCDIC or ASCII
10193case `echo X|tr X '\101'` in
10194 A) # ASCII based system
10195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10196 lt_SP2NL='tr \040 \012'
10197 lt_NL2SP='tr \015\012 \040\040'
10198 ;;
10199 *) # EBCDIC based system
10200 lt_SP2NL='tr \100 \n'
10201 lt_NL2SP='tr \r\n \100\100'
10202 ;;
10203esac
10204
10205
10206
10207
10208
10209
10210
10211
10212
cristyda16f162011-02-19 23:52:17 +000010213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10214$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10215if ${lt_cv_to_host_file_cmd+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217else
10218 case $host in
10219 *-*-mingw* )
10220 case $build in
10221 *-*-mingw* ) # actually msys
10222 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10223 ;;
10224 *-*-cygwin* )
10225 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10226 ;;
10227 * ) # otherwise, assume *nix
10228 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10229 ;;
10230 esac
10231 ;;
10232 *-*-cygwin* )
10233 case $build in
10234 *-*-mingw* ) # actually msys
10235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10236 ;;
10237 *-*-cygwin* )
10238 lt_cv_to_host_file_cmd=func_convert_file_noop
10239 ;;
10240 * ) # otherwise, assume *nix
10241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10242 ;;
10243 esac
10244 ;;
10245 * ) # unhandled hosts (and "normal" native builds)
10246 lt_cv_to_host_file_cmd=func_convert_file_noop
10247 ;;
10248esac
10249
10250fi
10251
10252to_host_file_cmd=$lt_cv_to_host_file_cmd
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10254$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10255
10256
10257
10258
10259
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10261$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10262if ${lt_cv_to_tool_file_cmd+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264else
10265 #assume ordinary cross tools, or native build.
10266lt_cv_to_tool_file_cmd=func_convert_file_noop
10267case $host in
10268 *-*-mingw* )
10269 case $build in
10270 *-*-mingw* ) # actually msys
10271 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10272 ;;
10273 esac
10274 ;;
10275esac
10276
10277fi
10278
10279to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10281$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10282
10283
10284
10285
10286
cristy73bd4a52010-10-05 11:24:23 +000010287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10288$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010289if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010290 $as_echo_n "(cached) " >&6
10291else
10292 lt_cv_ld_reload_flag='-r'
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10295$as_echo "$lt_cv_ld_reload_flag" >&6; }
10296reload_flag=$lt_cv_ld_reload_flag
10297case $reload_flag in
10298"" | " "*) ;;
10299*) reload_flag=" $reload_flag" ;;
10300esac
10301reload_cmds='$LD$reload_flag -o $output$reload_objs'
10302case $host_os in
cristyda16f162011-02-19 23:52:17 +000010303 cygwin* | mingw* | pw32* | cegcc*)
10304 if test "$GCC" != yes; then
10305 reload_cmds=false
10306 fi
10307 ;;
cristy73bd4a52010-10-05 11:24:23 +000010308 darwin*)
10309 if test "$GCC" = yes; then
10310 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10311 else
10312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10313 fi
10314 ;;
10315esac
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325if test -n "$ac_tool_prefix"; then
10326 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10327set dummy ${ac_tool_prefix}objdump; ac_word=$2
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 if test -n "$OBJDUMP"; then
10334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348 done
10349IFS=$as_save_IFS
10350
10351fi
10352fi
10353OBJDUMP=$ac_cv_prog_OBJDUMP
10354if test -n "$OBJDUMP"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10356$as_echo "$OBJDUMP" >&6; }
10357else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
10360fi
10361
10362
10363fi
10364if test -z "$ac_cv_prog_OBJDUMP"; then
10365 ac_ct_OBJDUMP=$OBJDUMP
10366 # Extract the first word of "objdump", so it can be a program name with args.
10367set dummy objdump; ac_word=$2
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010370if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010371 $as_echo_n "(cached) " >&6
10372else
10373 if test -n "$ac_ct_OBJDUMP"; then
10374 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10375else
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10386 fi
10387done
10388 done
10389IFS=$as_save_IFS
10390
10391fi
10392fi
10393ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10394if test -n "$ac_ct_OBJDUMP"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10396$as_echo "$ac_ct_OBJDUMP" >&6; }
10397else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
10400fi
10401
10402 if test "x$ac_ct_OBJDUMP" = x; then
10403 OBJDUMP="false"
10404 else
10405 case $cross_compiling:$ac_tool_warned in
10406yes:)
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10409ac_tool_warned=yes ;;
10410esac
10411 OBJDUMP=$ac_ct_OBJDUMP
10412 fi
10413else
10414 OBJDUMP="$ac_cv_prog_OBJDUMP"
10415fi
10416
10417test -z "$OBJDUMP" && OBJDUMP=objdump
10418
10419
10420
10421
10422
10423
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10425$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010426if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010427 $as_echo_n "(cached) " >&6
10428else
10429 lt_cv_file_magic_cmd='$MAGIC_CMD'
10430lt_cv_file_magic_test_file=
10431lt_cv_deplibs_check_method='unknown'
10432# Need to set the preceding variable on all platforms that support
10433# interlibrary dependencies.
10434# 'none' -- dependencies not supported.
10435# `unknown' -- same as none, but documents that we really don't know.
10436# 'pass_all' -- all dependencies passed with no checks.
10437# 'test_compile' -- check by making test program.
10438# 'file_magic [[regex]]' -- check by looking for files in library path
10439# which responds to the $file_magic_cmd with a given extended regex.
10440# If you have `file' or equivalent on your system and you're not sure
10441# whether `pass_all' will *always* work, you probably want this one.
10442
10443case $host_os in
10444aix[4-9]*)
10445 lt_cv_deplibs_check_method=pass_all
10446 ;;
10447
10448beos*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452bsdi[45]*)
10453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10454 lt_cv_file_magic_cmd='/usr/bin/file -L'
10455 lt_cv_file_magic_test_file=/shlib/libc.so
10456 ;;
10457
10458cygwin*)
10459 # func_win32_libid is a shell function defined in ltmain.sh
10460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10461 lt_cv_file_magic_cmd='func_win32_libid'
10462 ;;
10463
10464mingw* | pw32*)
10465 # Base MSYS/MinGW do not provide the 'file' command needed by
10466 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10467 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010468 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10469 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10471 lt_cv_file_magic_cmd='func_win32_libid'
10472 else
cristy0c60a692010-11-04 01:09:47 +000010473 # Keep this pattern in sync with the one in func_win32_libid.
10474 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 +000010475 lt_cv_file_magic_cmd='$OBJDUMP -f'
10476 fi
10477 ;;
10478
cristy0c60a692010-11-04 01:09:47 +000010479cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010480 # use the weaker test based on 'objdump'. See mingw*.
10481 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10482 lt_cv_file_magic_cmd='$OBJDUMP -f'
10483 ;;
10484
10485darwin* | rhapsody*)
10486 lt_cv_deplibs_check_method=pass_all
10487 ;;
10488
10489freebsd* | dragonfly*)
10490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10491 case $host_cpu in
10492 i*86 )
10493 # Not sure whether the presence of OpenBSD here was a mistake.
10494 # Let's accept both of them until this is cleared up.
10495 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10496 lt_cv_file_magic_cmd=/usr/bin/file
10497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10498 ;;
10499 esac
10500 else
10501 lt_cv_deplibs_check_method=pass_all
10502 fi
10503 ;;
10504
10505gnu*)
10506 lt_cv_deplibs_check_method=pass_all
10507 ;;
10508
cristy0c60a692010-11-04 01:09:47 +000010509haiku*)
10510 lt_cv_deplibs_check_method=pass_all
10511 ;;
10512
cristy73bd4a52010-10-05 11:24:23 +000010513hpux10.20* | hpux11*)
10514 lt_cv_file_magic_cmd=/usr/bin/file
10515 case $host_cpu in
10516 ia64*)
10517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10518 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10519 ;;
10520 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010521 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 +000010522 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10523 ;;
10524 *)
cristy0c60a692010-11-04 01:09:47 +000010525 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 +000010526 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10527 ;;
10528 esac
10529 ;;
10530
10531interix[3-9]*)
10532 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10534 ;;
10535
10536irix5* | irix6* | nonstopux*)
10537 case $LD in
10538 *-32|*"-32 ") libmagic=32-bit;;
10539 *-n32|*"-n32 ") libmagic=N32;;
10540 *-64|*"-64 ") libmagic=64-bit;;
10541 *) libmagic=never-match;;
10542 esac
10543 lt_cv_deplibs_check_method=pass_all
10544 ;;
10545
cristy99bd5232011-12-07 14:38:20 +000010546# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010547linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010548 lt_cv_deplibs_check_method=pass_all
10549 ;;
10550
10551netbsd*)
10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10554 else
10555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10556 fi
10557 ;;
10558
10559newos6*)
10560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10561 lt_cv_file_magic_cmd=/usr/bin/file
10562 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10563 ;;
10564
10565*nto* | *qnx*)
10566 lt_cv_deplibs_check_method=pass_all
10567 ;;
10568
10569openbsd*)
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10572 else
10573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10574 fi
10575 ;;
10576
10577osf3* | osf4* | osf5*)
10578 lt_cv_deplibs_check_method=pass_all
10579 ;;
10580
10581rdos*)
10582 lt_cv_deplibs_check_method=pass_all
10583 ;;
10584
10585solaris*)
10586 lt_cv_deplibs_check_method=pass_all
10587 ;;
10588
10589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10590 lt_cv_deplibs_check_method=pass_all
10591 ;;
10592
10593sysv4 | sysv4.3*)
10594 case $host_vendor in
10595 motorola)
10596 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]'
10597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10598 ;;
10599 ncr)
10600 lt_cv_deplibs_check_method=pass_all
10601 ;;
10602 sequent)
10603 lt_cv_file_magic_cmd='/bin/file'
10604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10605 ;;
10606 sni)
10607 lt_cv_file_magic_cmd='/bin/file'
10608 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10609 lt_cv_file_magic_test_file=/lib/libc.so
10610 ;;
10611 siemens)
10612 lt_cv_deplibs_check_method=pass_all
10613 ;;
10614 pc)
10615 lt_cv_deplibs_check_method=pass_all
10616 ;;
10617 esac
10618 ;;
10619
10620tpf*)
10621 lt_cv_deplibs_check_method=pass_all
10622 ;;
10623esac
10624
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10627$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010628
10629file_magic_glob=
10630want_nocaseglob=no
10631if test "$build" = "$host"; then
10632 case $host_os in
10633 mingw* | pw32*)
10634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10635 want_nocaseglob=yes
10636 else
10637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10638 fi
10639 ;;
10640 esac
10641fi
10642
cristy73bd4a52010-10-05 11:24:23 +000010643file_magic_cmd=$lt_cv_file_magic_cmd
10644deplibs_check_method=$lt_cv_deplibs_check_method
10645test -z "$deplibs_check_method" && deplibs_check_method=unknown
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
cristyda16f162011-02-19 23:52:17 +000010658
10659
10660
10661
10662
10663
10664
10665
10666
10667
cristy73bd4a52010-10-05 11:24:23 +000010668if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10670set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010673if ${ac_cv_prog_DLLTOOL+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675else
10676 if test -n "$DLLTOOL"; then
10677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10678else
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691 done
10692IFS=$as_save_IFS
10693
10694fi
10695fi
10696DLLTOOL=$ac_cv_prog_DLLTOOL
10697if test -n "$DLLTOOL"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10699$as_echo "$DLLTOOL" >&6; }
10700else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
10703fi
10704
10705
10706fi
10707if test -z "$ac_cv_prog_DLLTOOL"; then
10708 ac_ct_DLLTOOL=$DLLTOOL
10709 # Extract the first word of "dlltool", so it can be a program name with args.
10710set dummy dlltool; ac_word=$2
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712$as_echo_n "checking for $ac_word... " >&6; }
10713if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715else
10716 if test -n "$ac_ct_DLLTOOL"; then
10717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10718else
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730done
10731 done
10732IFS=$as_save_IFS
10733
10734fi
10735fi
10736ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10737if test -n "$ac_ct_DLLTOOL"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10739$as_echo "$ac_ct_DLLTOOL" >&6; }
10740else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
10743fi
10744
10745 if test "x$ac_ct_DLLTOOL" = x; then
10746 DLLTOOL="false"
10747 else
10748 case $cross_compiling:$ac_tool_warned in
10749yes:)
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10752ac_tool_warned=yes ;;
10753esac
10754 DLLTOOL=$ac_ct_DLLTOOL
10755 fi
10756else
10757 DLLTOOL="$ac_cv_prog_DLLTOOL"
10758fi
10759
10760test -z "$DLLTOOL" && DLLTOOL=dlltool
10761
10762
10763
10764
10765
10766
10767
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10769$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10770if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772else
10773 lt_cv_sharedlib_from_linklib_cmd='unknown'
10774
10775case $host_os in
10776cygwin* | mingw* | pw32* | cegcc*)
10777 # two different shell functions defined in ltmain.sh
10778 # decide which to use based on capabilities of $DLLTOOL
10779 case `$DLLTOOL --help 2>&1` in
10780 *--identify-strict*)
10781 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10782 ;;
10783 *)
10784 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10785 ;;
10786 esac
10787 ;;
10788*)
10789 # fallback: assume linklib IS sharedlib
10790 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10791 ;;
10792esac
10793
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10796$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10797sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10798test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10799
10800
10801
10802
10803
10804
10805
10806if test -n "$ac_tool_prefix"; then
10807 for ac_prog in ar
10808 do
10809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812$as_echo_n "checking for $ac_word... " >&6; }
10813if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$AR"; then
10817 ac_cv_prog_AR="$AR" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010826 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831 done
10832IFS=$as_save_IFS
10833
10834fi
10835fi
10836AR=$ac_cv_prog_AR
10837if test -n "$AR"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10839$as_echo "$AR" >&6; }
10840else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843fi
10844
10845
cristyda16f162011-02-19 23:52:17 +000010846 test -n "$AR" && break
10847 done
cristy73bd4a52010-10-05 11:24:23 +000010848fi
cristyda16f162011-02-19 23:52:17 +000010849if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010850 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010851 for ac_prog in ar
10852do
10853 # Extract the first word of "$ac_prog", so it can be a program name with args.
10854set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010857if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010858 $as_echo_n "(cached) " >&6
10859else
10860 if test -n "$ac_ct_AR"; then
10861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010870 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875 done
10876IFS=$as_save_IFS
10877
10878fi
10879fi
10880ac_ct_AR=$ac_cv_prog_ac_ct_AR
10881if test -n "$ac_ct_AR"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10883$as_echo "$ac_ct_AR" >&6; }
10884else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
10887fi
10888
cristyda16f162011-02-19 23:52:17 +000010889
10890 test -n "$ac_ct_AR" && break
10891done
10892
cristy73bd4a52010-10-05 11:24:23 +000010893 if test "x$ac_ct_AR" = x; then
10894 AR="false"
10895 else
10896 case $cross_compiling:$ac_tool_warned in
10897yes:)
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900ac_tool_warned=yes ;;
10901esac
10902 AR=$ac_ct_AR
10903 fi
cristy73bd4a52010-10-05 11:24:23 +000010904fi
10905
cristyda16f162011-02-19 23:52:17 +000010906: ${AR=ar}
10907: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
cristyda16f162011-02-19 23:52:17 +000010919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10920$as_echo_n "checking for archiver @FILE support... " >&6; }
10921if ${lt_cv_ar_at_file+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 lt_cv_ar_at_file=no
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h. */
10927
10928int
10929main ()
10930{
10931
10932 ;
10933 return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_compile "$LINENO"; then :
10937 echo conftest.$ac_objext > conftest.lst
10938 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10940 (eval $lt_ar_try) 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; }
10944 if test "$ac_status" -eq 0; then
10945 # Ensure the archiver fails upon bogus file names.
10946 rm -f conftest.$ac_objext libconftest.a
10947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10948 (eval $lt_ar_try) 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10951 test $ac_status = 0; }
10952 if test "$ac_status" -ne 0; then
10953 lt_cv_ar_at_file=@
10954 fi
10955 fi
10956 rm -f conftest.* libconftest.a
10957
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10963$as_echo "$lt_cv_ar_at_file" >&6; }
10964
10965if test "x$lt_cv_ar_at_file" = xno; then
10966 archiver_list_spec=
10967else
10968 archiver_list_spec=$lt_cv_ar_at_file
10969fi
10970
10971
10972
10973
10974
10975
10976
cristy73bd4a52010-10-05 11:24:23 +000010977if test -n "$ac_tool_prefix"; then
10978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10979set dummy ${ac_tool_prefix}strip; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010982if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010983 $as_echo_n "(cached) " >&6
10984else
10985 if test -n "$STRIP"; then
10986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000 done
11001IFS=$as_save_IFS
11002
11003fi
11004fi
11005STRIP=$ac_cv_prog_STRIP
11006if test -n "$STRIP"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11008$as_echo "$STRIP" >&6; }
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014
11015fi
11016if test -z "$ac_cv_prog_STRIP"; then
11017 ac_ct_STRIP=$STRIP
11018 # Extract the first word of "strip", so it can be a program name with args.
11019set dummy strip; ac_word=$2
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011022if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011023 $as_echo_n "(cached) " >&6
11024else
11025 if test -n "$ac_ct_STRIP"; then
11026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11027else
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_prog_ac_ct_STRIP="strip"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039done
11040 done
11041IFS=$as_save_IFS
11042
11043fi
11044fi
11045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11046if test -n "$ac_ct_STRIP"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11048$as_echo "$ac_ct_STRIP" >&6; }
11049else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
11052fi
11053
11054 if test "x$ac_ct_STRIP" = x; then
11055 STRIP=":"
11056 else
11057 case $cross_compiling:$ac_tool_warned in
11058yes:)
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11061ac_tool_warned=yes ;;
11062esac
11063 STRIP=$ac_ct_STRIP
11064 fi
11065else
11066 STRIP="$ac_cv_prog_STRIP"
11067fi
11068
11069test -z "$STRIP" && STRIP=:
11070
11071
11072
11073
11074
11075
11076if test -n "$ac_tool_prefix"; then
11077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011081if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011082 $as_echo_n "(cached) " >&6
11083else
11084 if test -n "$RANLIB"; then
11085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11086else
11087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088for as_dir in $PATH
11089do
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11097 fi
11098done
11099 done
11100IFS=$as_save_IFS
11101
11102fi
11103fi
11104RANLIB=$ac_cv_prog_RANLIB
11105if test -n "$RANLIB"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11107$as_echo "$RANLIB" >&6; }
11108else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
11111fi
11112
11113
11114fi
11115if test -z "$ac_cv_prog_RANLIB"; then
11116 ac_ct_RANLIB=$RANLIB
11117 # Extract the first word of "ranlib", so it can be a program name with args.
11118set dummy ranlib; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011121if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011122 $as_echo_n "(cached) " >&6
11123else
11124 if test -n "$ac_ct_RANLIB"; then
11125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_ac_ct_RANLIB="ranlib"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138done
11139 done
11140IFS=$as_save_IFS
11141
11142fi
11143fi
11144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11145if test -n "$ac_ct_RANLIB"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11147$as_echo "$ac_ct_RANLIB" >&6; }
11148else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151fi
11152
11153 if test "x$ac_ct_RANLIB" = x; then
11154 RANLIB=":"
11155 else
11156 case $cross_compiling:$ac_tool_warned in
11157yes:)
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11160ac_tool_warned=yes ;;
11161esac
11162 RANLIB=$ac_ct_RANLIB
11163 fi
11164else
11165 RANLIB="$ac_cv_prog_RANLIB"
11166fi
11167
11168test -z "$RANLIB" && RANLIB=:
11169
11170
11171
11172
11173
11174
11175# Determine commands to create old-style static archives.
11176old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11177old_postinstall_cmds='chmod 644 $oldlib'
11178old_postuninstall_cmds=
11179
11180if test -n "$RANLIB"; then
11181 case $host_os in
11182 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011184 ;;
11185 *)
cristy99bd5232011-12-07 14:38:20 +000011186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011187 ;;
11188 esac
cristy99bd5232011-12-07 14:38:20 +000011189 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011190fi
11191
cristy0c60a692010-11-04 01:09:47 +000011192case $host_os in
11193 darwin*)
11194 lock_old_archive_extraction=yes ;;
11195 *)
11196 lock_old_archive_extraction=no ;;
11197esac
11198
11199
11200
11201
11202
11203
cristy73bd4a52010-10-05 11:24:23 +000011204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237# If no C compiler was specified, use CC.
11238LTCC=${LTCC-"$CC"}
11239
11240# If no C compiler flags were specified, use CFLAGS.
11241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11242
11243# Allow CC to be a program name with arguments.
11244compiler=$CC
11245
11246
11247# Check for command to grab the raw symbol name followed by C symbol from nm.
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11249$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011250if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011251 $as_echo_n "(cached) " >&6
11252else
11253
11254# These are sane defaults that work on at least a few old systems.
11255# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11256
11257# Character class describing NM global symbol codes.
11258symcode='[BCDEGRST]'
11259
11260# Regexp to match symbols that can be accessed directly from C.
11261sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11262
11263# Define system-specific variables.
11264case $host_os in
11265aix*)
11266 symcode='[BCDT]'
11267 ;;
11268cygwin* | mingw* | pw32* | cegcc*)
11269 symcode='[ABCDGISTW]'
11270 ;;
11271hpux*)
11272 if test "$host_cpu" = ia64; then
11273 symcode='[ABCDEGRST]'
11274 fi
11275 ;;
11276irix* | nonstopux*)
11277 symcode='[BCDEGRST]'
11278 ;;
11279osf*)
11280 symcode='[BCDEGQRST]'
11281 ;;
11282solaris*)
11283 symcode='[BDRT]'
11284 ;;
11285sco3.2v5*)
11286 symcode='[DT]'
11287 ;;
11288sysv4.2uw2*)
11289 symcode='[DT]'
11290 ;;
11291sysv5* | sco5v6* | unixware* | OpenUNIX*)
11292 symcode='[ABDT]'
11293 ;;
11294sysv4)
11295 symcode='[DFNSTU]'
11296 ;;
11297esac
11298
11299# If we're using GNU nm, then use its standard symbol codes.
11300case `$NM -V 2>&1` in
11301*GNU* | *'with BFD'*)
11302 symcode='[ABCDGIRSTW]' ;;
11303esac
11304
11305# Transform an extracted symbol line into a proper C declaration.
11306# Some systems (esp. on ia64) link data and code symbols differently,
11307# so use this general approach.
11308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11309
11310# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011311lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11312lt_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 +000011313
11314# Handle CRLF in mingw tool chain
11315opt_cr=
11316case $build_os in
11317mingw*)
11318 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11319 ;;
11320esac
11321
11322# Try without a prefix underscore, then with it.
11323for ac_symprfx in "" "_"; do
11324
11325 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11326 symxfrm="\\1 $ac_symprfx\\2 \\2"
11327
11328 # Write the raw and C identifiers.
11329 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11330 # Fake it for dumpbin and say T for any non-static function
11331 # and D for any global variable.
11332 # Also find C++ and __fastcall symbols from MSVC++,
11333 # which start with @ or ?.
11334 lt_cv_sys_global_symbol_pipe="$AWK '"\
11335" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011336" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011337" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11338" \$ 0!~/External *\|/{next};"\
11339" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11340" {if(hide[section]) next};"\
11341" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11342" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11343" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11344" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11345" ' prfx=^$ac_symprfx"
11346 else
11347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11348 fi
cristyda16f162011-02-19 23:52:17 +000011349 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011350
11351 # Check to see that the pipe works correctly.
11352 pipe_works=no
11353
11354 rm -f conftest*
11355 cat > conftest.$ac_ext <<_LT_EOF
11356#ifdef __cplusplus
11357extern "C" {
11358#endif
11359char nm_test_var;
11360void nm_test_func(void);
11361void nm_test_func(void){}
11362#ifdef __cplusplus
11363}
11364#endif
11365int main(){nm_test_var='a';nm_test_func();return(0);}
11366_LT_EOF
11367
11368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11369 (eval $ac_compile) 2>&5
11370 ac_status=$?
11371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; }; then
11373 # Now try to grab the symbols.
11374 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11376 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011377 ac_status=$?
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } && test -s "$nlist"; then
11380 # Try sorting and uniquifying the output.
11381 if sort "$nlist" | uniq > "$nlist"T; then
11382 mv -f "$nlist"T "$nlist"
11383 else
11384 rm -f "$nlist"T
11385 fi
11386
11387 # Make sure that we snagged all the symbols we need.
11388 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11389 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11390 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011391/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11392#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11393/* DATA imports from DLLs on WIN32 con't be const, because runtime
11394 relocations are performed -- see ld's documentation on pseudo-relocs. */
11395# define LT_DLSYM_CONST
11396#elif defined(__osf__)
11397/* This system does not cope well with relocations in const data. */
11398# define LT_DLSYM_CONST
11399#else
11400# define LT_DLSYM_CONST const
11401#endif
11402
cristy73bd4a52010-10-05 11:24:23 +000011403#ifdef __cplusplus
11404extern "C" {
11405#endif
11406
11407_LT_EOF
11408 # Now generate the symbol file.
11409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11410
11411 cat <<_LT_EOF >> conftest.$ac_ext
11412
11413/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011414LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011415 const char *name;
11416 void *address;
11417}
11418lt__PROGRAM__LTX_preloaded_symbols[] =
11419{
11420 { "@PROGRAM@", (void *) 0 },
11421_LT_EOF
11422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11423 cat <<\_LT_EOF >> conftest.$ac_ext
11424 {0, (void *) 0}
11425};
11426
11427/* This works around a problem in FreeBSD linker */
11428#ifdef FREEBSD_WORKAROUND
11429static const void *lt_preloaded_setup() {
11430 return lt__PROGRAM__LTX_preloaded_symbols;
11431}
11432#endif
11433
11434#ifdef __cplusplus
11435}
11436#endif
11437_LT_EOF
11438 # Now try linking the two files.
11439 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011440 lt_globsym_save_LIBS=$LIBS
11441 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011442 LIBS="conftstm.$ac_objext"
11443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445 (eval $ac_link) 2>&5
11446 ac_status=$?
11447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11449 pipe_works=yes
11450 fi
cristyda16f162011-02-19 23:52:17 +000011451 LIBS=$lt_globsym_save_LIBS
11452 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011453 else
11454 echo "cannot find nm_test_func in $nlist" >&5
11455 fi
11456 else
11457 echo "cannot find nm_test_var in $nlist" >&5
11458 fi
11459 else
11460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11461 fi
11462 else
11463 echo "$progname: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 fi
11466 rm -rf conftest* conftst*
11467
11468 # Do not use the global_symbol_pipe unless it works.
11469 if test "$pipe_works" = yes; then
11470 break
11471 else
11472 lt_cv_sys_global_symbol_pipe=
11473 fi
11474done
11475
11476fi
11477
11478if test -z "$lt_cv_sys_global_symbol_pipe"; then
11479 lt_cv_sys_global_symbol_to_cdecl=
11480fi
11481if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11483$as_echo "failed" >&6; }
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11486$as_echo "ok" >&6; }
11487fi
11488
cristyda16f162011-02-19 23:52:17 +000011489# Response file support.
11490if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11491 nm_file_list_spec='@'
11492elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11493 nm_file_list_spec='@'
11494fi
cristy73bd4a52010-10-05 11:24:23 +000011495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
cristyda16f162011-02-19 23:52:17 +000011516
11517
11518
11519
11520
11521
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11523$as_echo_n "checking for sysroot... " >&6; }
11524
11525# Check whether --with-sysroot was given.
11526if test "${with_sysroot+set}" = set; then :
11527 withval=$with_sysroot;
11528else
11529 with_sysroot=no
11530fi
11531
11532
11533lt_sysroot=
11534case ${with_sysroot} in #(
11535 yes)
11536 if test "$GCC" = yes; then
11537 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11538 fi
11539 ;; #(
11540 /*)
11541 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11542 ;; #(
11543 no|'')
11544 ;; #(
11545 *)
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11547$as_echo "${with_sysroot}" >&6; }
11548 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11549 ;;
11550esac
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11553$as_echo "${lt_sysroot:-no}" >&6; }
11554
11555
11556
11557
11558
cristy73bd4a52010-10-05 11:24:23 +000011559# Check whether --enable-libtool-lock was given.
11560if test "${enable_libtool_lock+set}" = set; then :
11561 enableval=$enable_libtool_lock;
11562fi
11563
11564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11565
11566# Some flags need to be propagated to the compiler or linker for good
11567# libtool support.
11568case $host in
11569ia64-*-hpux*)
11570 # Find out which ABI we are using.
11571 echo 'int i;' > conftest.$ac_ext
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11573 (eval $ac_compile) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; }; then
11577 case `/usr/bin/file conftest.$ac_objext` in
11578 *ELF-32*)
11579 HPUX_IA64_MODE="32"
11580 ;;
11581 *ELF-64*)
11582 HPUX_IA64_MODE="64"
11583 ;;
11584 esac
11585 fi
11586 rm -rf conftest*
11587 ;;
11588*-*-irix6*)
11589 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011590 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11592 (eval $ac_compile) 2>&5
11593 ac_status=$?
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; }; then
11596 if test "$lt_cv_prog_gnu_ld" = yes; then
11597 case `/usr/bin/file conftest.$ac_objext` in
11598 *32-bit*)
11599 LD="${LD-ld} -melf32bsmip"
11600 ;;
11601 *N32*)
11602 LD="${LD-ld} -melf32bmipn32"
11603 ;;
11604 *64-bit*)
11605 LD="${LD-ld} -melf64bmip"
11606 ;;
11607 esac
11608 else
11609 case `/usr/bin/file conftest.$ac_objext` in
11610 *32-bit*)
11611 LD="${LD-ld} -32"
11612 ;;
11613 *N32*)
11614 LD="${LD-ld} -n32"
11615 ;;
11616 *64-bit*)
11617 LD="${LD-ld} -64"
11618 ;;
11619 esac
11620 fi
11621 fi
11622 rm -rf conftest*
11623 ;;
11624
11625x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11626s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11627 # Find out which ABI we are using.
11628 echo 'int i;' > conftest.$ac_ext
11629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11630 (eval $ac_compile) 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; }; then
11634 case `/usr/bin/file conftest.o` in
11635 *32-bit*)
11636 case $host in
11637 x86_64-*kfreebsd*-gnu)
11638 LD="${LD-ld} -m elf_i386_fbsd"
11639 ;;
11640 x86_64-*linux*)
11641 LD="${LD-ld} -m elf_i386"
11642 ;;
11643 ppc64-*linux*|powerpc64-*linux*)
11644 LD="${LD-ld} -m elf32ppclinux"
11645 ;;
11646 s390x-*linux*)
11647 LD="${LD-ld} -m elf_s390"
11648 ;;
11649 sparc64-*linux*)
11650 LD="${LD-ld} -m elf32_sparc"
11651 ;;
11652 esac
11653 ;;
11654 *64-bit*)
11655 case $host in
11656 x86_64-*kfreebsd*-gnu)
11657 LD="${LD-ld} -m elf_x86_64_fbsd"
11658 ;;
11659 x86_64-*linux*)
11660 LD="${LD-ld} -m elf_x86_64"
11661 ;;
11662 ppc*-*linux*|powerpc*-*linux*)
11663 LD="${LD-ld} -m elf64ppc"
11664 ;;
11665 s390*-*linux*|s390*-*tpf*)
11666 LD="${LD-ld} -m elf64_s390"
11667 ;;
11668 sparc*-*linux*)
11669 LD="${LD-ld} -m elf64_sparc"
11670 ;;
11671 esac
11672 ;;
11673 esac
11674 fi
11675 rm -rf conftest*
11676 ;;
11677
11678*-*-sco3.2v5*)
11679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11680 SAVE_CFLAGS="$CFLAGS"
11681 CFLAGS="$CFLAGS -belf"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11683$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011684if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011685 $as_echo_n "(cached) " >&6
11686else
11687 ac_ext=c
11688ac_cpp='$CPP $CPPFLAGS'
11689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11691ac_compiler_gnu=$ac_cv_c_compiler_gnu
11692
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694/* end confdefs.h. */
11695
11696int
11697main ()
11698{
11699
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704if ac_fn_c_try_link "$LINENO"; then :
11705 lt_cv_cc_needs_belf=yes
11706else
11707 lt_cv_cc_needs_belf=no
11708fi
11709rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 ac_ext=c
11712ac_cpp='$CPP $CPPFLAGS'
11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11719$as_echo "$lt_cv_cc_needs_belf" >&6; }
11720 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11721 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11722 CFLAGS="$SAVE_CFLAGS"
11723 fi
11724 ;;
cristy99bd5232011-12-07 14:38:20 +000011725*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011726 # Find out which ABI we are using.
11727 echo 'int i;' > conftest.$ac_ext
11728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11729 (eval $ac_compile) 2>&5
11730 ac_status=$?
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; }; then
11733 case `/usr/bin/file conftest.o` in
11734 *64-bit*)
11735 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011736 yes*)
11737 case $host in
11738 i?86-*-solaris*)
11739 LD="${LD-ld} -m elf_x86_64"
11740 ;;
11741 sparc*-*-solaris*)
11742 LD="${LD-ld} -m elf64_sparc"
11743 ;;
11744 esac
11745 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11746 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11747 LD="${LD-ld}_sol2"
11748 fi
11749 ;;
cristy73bd4a52010-10-05 11:24:23 +000011750 *)
11751 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11752 LD="${LD-ld} -64"
11753 fi
11754 ;;
11755 esac
11756 ;;
11757 esac
11758 fi
11759 rm -rf conftest*
11760 ;;
11761esac
11762
11763need_locks="$enable_libtool_lock"
11764
cristyda16f162011-02-19 23:52:17 +000011765if test -n "$ac_tool_prefix"; then
11766 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11767set dummy ${ac_tool_prefix}mt; ac_word=$2
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
11770if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772else
11773 if test -n "$MANIFEST_TOOL"; then
11774 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787done
11788 done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11794if test -n "$MANIFEST_TOOL"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11796$as_echo "$MANIFEST_TOOL" >&6; }
11797else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
11800fi
11801
11802
11803fi
11804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11806 # Extract the first word of "mt", so it can be a program name with args.
11807set dummy mt; ac_word=$2
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
11810if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812else
11813 if test -n "$ac_ct_MANIFEST_TOOL"; then
11814 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827done
11828 done
11829IFS=$as_save_IFS
11830
11831fi
11832fi
11833ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11834if test -n "$ac_ct_MANIFEST_TOOL"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11836$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11837else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
11840fi
11841
11842 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11843 MANIFEST_TOOL=":"
11844 else
11845 case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11852 fi
11853else
11854 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11855fi
11856
11857test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11859$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11860if ${lt_cv_path_mainfest_tool+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862else
11863 lt_cv_path_mainfest_tool=no
11864 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11865 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11866 cat conftest.err >&5
11867 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11868 lt_cv_path_mainfest_tool=yes
11869 fi
11870 rm -f conftest*
11871fi
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11873$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11874if test "x$lt_cv_path_mainfest_tool" != xyes; then
11875 MANIFEST_TOOL=:
11876fi
11877
11878
11879
11880
11881
cristy73bd4a52010-10-05 11:24:23 +000011882
11883 case $host_os in
11884 rhapsody* | darwin*)
11885 if test -n "$ac_tool_prefix"; then
11886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011890if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011891 $as_echo_n "(cached) " >&6
11892else
11893 if test -n "$DSYMUTIL"; then
11894 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11895else
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907done
11908 done
11909IFS=$as_save_IFS
11910
11911fi
11912fi
11913DSYMUTIL=$ac_cv_prog_DSYMUTIL
11914if test -n "$DSYMUTIL"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11916$as_echo "$DSYMUTIL" >&6; }
11917else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
11920fi
11921
11922
11923fi
11924if test -z "$ac_cv_prog_DSYMUTIL"; then
11925 ac_ct_DSYMUTIL=$DSYMUTIL
11926 # Extract the first word of "dsymutil", so it can be a program name with args.
11927set dummy dsymutil; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$ac_ct_DSYMUTIL"; then
11934 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948 done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11954if test -n "$ac_ct_DSYMUTIL"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11956$as_echo "$ac_ct_DSYMUTIL" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962 if test "x$ac_ct_DSYMUTIL" = x; then
11963 DSYMUTIL=":"
11964 else
11965 case $cross_compiling:$ac_tool_warned in
11966yes:)
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969ac_tool_warned=yes ;;
11970esac
11971 DSYMUTIL=$ac_ct_DSYMUTIL
11972 fi
11973else
11974 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11975fi
11976
11977 if test -n "$ac_tool_prefix"; then
11978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11979set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011982if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011983 $as_echo_n "(cached) " >&6
11984else
11985 if test -n "$NMEDIT"; then
11986 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11987else
11988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989for as_dir in $PATH
11990do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11998 fi
11999done
12000 done
12001IFS=$as_save_IFS
12002
12003fi
12004fi
12005NMEDIT=$ac_cv_prog_NMEDIT
12006if test -n "$NMEDIT"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12008$as_echo "$NMEDIT" >&6; }
12009else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011$as_echo "no" >&6; }
12012fi
12013
12014
12015fi
12016if test -z "$ac_cv_prog_NMEDIT"; then
12017 ac_ct_NMEDIT=$NMEDIT
12018 # Extract the first word of "nmedit", so it can be a program name with args.
12019set dummy nmedit; ac_word=$2
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012023 $as_echo_n "(cached) " >&6
12024else
12025 if test -n "$ac_ct_NMEDIT"; then
12026 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12035 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039done
12040 done
12041IFS=$as_save_IFS
12042
12043fi
12044fi
12045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12046if test -n "$ac_ct_NMEDIT"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12048$as_echo "$ac_ct_NMEDIT" >&6; }
12049else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052fi
12053
12054 if test "x$ac_ct_NMEDIT" = x; then
12055 NMEDIT=":"
12056 else
12057 case $cross_compiling:$ac_tool_warned in
12058yes:)
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12061ac_tool_warned=yes ;;
12062esac
12063 NMEDIT=$ac_ct_NMEDIT
12064 fi
12065else
12066 NMEDIT="$ac_cv_prog_NMEDIT"
12067fi
12068
12069 if test -n "$ac_tool_prefix"; then
12070 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12071set dummy ${ac_tool_prefix}lipo; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012074if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012075 $as_echo_n "(cached) " >&6
12076else
12077 if test -n "$LIPO"; then
12078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091done
12092 done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097LIPO=$ac_cv_prog_LIPO
12098if test -n "$LIPO"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12100$as_echo "$LIPO" >&6; }
12101else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107fi
12108if test -z "$ac_cv_prog_LIPO"; then
12109 ac_ct_LIPO=$LIPO
12110 # Extract the first word of "lipo", so it can be a program name with args.
12111set dummy lipo; ac_word=$2
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012114if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012115 $as_echo_n "(cached) " >&6
12116else
12117 if test -n "$ac_ct_LIPO"; then
12118 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12127 ac_cv_prog_ac_ct_LIPO="lipo"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12130 fi
12131done
12132 done
12133IFS=$as_save_IFS
12134
12135fi
12136fi
12137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12138if test -n "$ac_ct_LIPO"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12140$as_echo "$ac_ct_LIPO" >&6; }
12141else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
12144fi
12145
12146 if test "x$ac_ct_LIPO" = x; then
12147 LIPO=":"
12148 else
12149 case $cross_compiling:$ac_tool_warned in
12150yes:)
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12153ac_tool_warned=yes ;;
12154esac
12155 LIPO=$ac_ct_LIPO
12156 fi
12157else
12158 LIPO="$ac_cv_prog_LIPO"
12159fi
12160
12161 if test -n "$ac_tool_prefix"; then
12162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12163set dummy ${ac_tool_prefix}otool; ac_word=$2
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012166if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012167 $as_echo_n "(cached) " >&6
12168else
12169 if test -n "$OTOOL"; then
12170 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12171else
12172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173for as_dir in $PATH
12174do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12182 fi
12183done
12184 done
12185IFS=$as_save_IFS
12186
12187fi
12188fi
12189OTOOL=$ac_cv_prog_OTOOL
12190if test -n "$OTOOL"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12192$as_echo "$OTOOL" >&6; }
12193else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196fi
12197
12198
12199fi
12200if test -z "$ac_cv_prog_OTOOL"; then
12201 ac_ct_OTOOL=$OTOOL
12202 # Extract the first word of "otool", so it can be a program name with args.
12203set dummy otool; ac_word=$2
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012207 $as_echo_n "(cached) " >&6
12208else
12209 if test -n "$ac_ct_OTOOL"; then
12210 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12211else
12212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $PATH
12214do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_prog_ac_ct_OTOOL="otool"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223done
12224 done
12225IFS=$as_save_IFS
12226
12227fi
12228fi
12229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12230if test -n "$ac_ct_OTOOL"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12232$as_echo "$ac_ct_OTOOL" >&6; }
12233else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235$as_echo "no" >&6; }
12236fi
12237
12238 if test "x$ac_ct_OTOOL" = x; then
12239 OTOOL=":"
12240 else
12241 case $cross_compiling:$ac_tool_warned in
12242yes:)
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12245ac_tool_warned=yes ;;
12246esac
12247 OTOOL=$ac_ct_OTOOL
12248 fi
12249else
12250 OTOOL="$ac_cv_prog_OTOOL"
12251fi
12252
12253 if test -n "$ac_tool_prefix"; then
12254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12255set dummy ${ac_tool_prefix}otool64; ac_word=$2
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012258if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012259 $as_echo_n "(cached) " >&6
12260else
12261 if test -n "$OTOOL64"; then
12262 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12263else
12264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265for as_dir in $PATH
12266do
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12274 fi
12275done
12276 done
12277IFS=$as_save_IFS
12278
12279fi
12280fi
12281OTOOL64=$ac_cv_prog_OTOOL64
12282if test -n "$OTOOL64"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12284$as_echo "$OTOOL64" >&6; }
12285else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287$as_echo "no" >&6; }
12288fi
12289
12290
12291fi
12292if test -z "$ac_cv_prog_OTOOL64"; then
12293 ac_ct_OTOOL64=$OTOOL64
12294 # Extract the first word of "otool64", so it can be a program name with args.
12295set dummy otool64; ac_word=$2
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012299 $as_echo_n "(cached) " >&6
12300else
12301 if test -n "$ac_ct_OTOOL64"; then
12302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12303else
12304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305for as_dir in $PATH
12306do
12307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12311 ac_cv_prog_ac_ct_OTOOL64="otool64"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 break 2
12314 fi
12315done
12316 done
12317IFS=$as_save_IFS
12318
12319fi
12320fi
12321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12322if test -n "$ac_ct_OTOOL64"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12324$as_echo "$ac_ct_OTOOL64" >&6; }
12325else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329
12330 if test "x$ac_ct_OTOOL64" = x; then
12331 OTOOL64=":"
12332 else
12333 case $cross_compiling:$ac_tool_warned in
12334yes:)
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12337ac_tool_warned=yes ;;
12338esac
12339 OTOOL64=$ac_ct_OTOOL64
12340 fi
12341else
12342 OTOOL64="$ac_cv_prog_OTOOL64"
12343fi
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12372$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012373if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012374 $as_echo_n "(cached) " >&6
12375else
12376 lt_cv_apple_cc_single_mod=no
12377 if test -z "${LT_MULTI_MODULE}"; then
12378 # By default we will add the -single_module flag. You can override
12379 # by either setting the environment variable LT_MULTI_MODULE
12380 # non-empty at configure time, or by adding -multi_module to the
12381 # link flags.
12382 rm -rf libconftest.dylib*
12383 echo "int foo(void){return 1;}" > conftest.c
12384 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12385-dynamiclib -Wl,-single_module conftest.c" >&5
12386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12387 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12388 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012389 # If there is a non-empty error log, and "single_module"
12390 # appears in it, assume the flag caused a linker warning
12391 if test -s conftest.err && $GREP single_module conftest.err; then
12392 cat conftest.err >&5
12393 # Otherwise, if the output was created with a 0 exit code from
12394 # the compiler, it worked.
12395 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012396 lt_cv_apple_cc_single_mod=yes
12397 else
12398 cat conftest.err >&5
12399 fi
12400 rm -rf libconftest.dylib*
12401 rm -f conftest.*
12402 fi
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12405$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012406
cristy73bd4a52010-10-05 11:24:23 +000012407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12408$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012409if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012410 $as_echo_n "(cached) " >&6
12411else
12412 lt_cv_ld_exported_symbols_list=no
12413 save_LDFLAGS=$LDFLAGS
12414 echo "_main" > conftest.sym
12415 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
12418
12419int
12420main ()
12421{
12422
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_link "$LINENO"; then :
12428 lt_cv_ld_exported_symbols_list=yes
12429else
12430 lt_cv_ld_exported_symbols_list=no
12431fi
12432rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LDFLAGS="$save_LDFLAGS"
12435
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12438$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012439
cristy0c60a692010-11-04 01:09:47 +000012440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12441$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012442if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012443 $as_echo_n "(cached) " >&6
12444else
12445 lt_cv_ld_force_load=no
12446 cat > conftest.c << _LT_EOF
12447int forced_loaded() { return 2;}
12448_LT_EOF
12449 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12450 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12451 echo "$AR cru libconftest.a conftest.o" >&5
12452 $AR cru libconftest.a conftest.o 2>&5
12453 echo "$RANLIB libconftest.a" >&5
12454 $RANLIB libconftest.a 2>&5
12455 cat > conftest.c << _LT_EOF
12456int main() { return 0;}
12457_LT_EOF
12458 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12459 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12460 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012461 if test -s conftest.err && $GREP force_load conftest.err; then
12462 cat conftest.err >&5
12463 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012464 lt_cv_ld_force_load=yes
12465 else
12466 cat conftest.err >&5
12467 fi
12468 rm -f conftest.err libconftest.a conftest conftest.c
12469 rm -rf conftest.dSYM
12470
12471fi
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12473$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012474 case $host_os in
12475 rhapsody* | darwin1.[012])
12476 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12477 darwin1.*)
12478 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12479 darwin*) # darwin 5.x on
12480 # if running on 10.5 or later, the deployment target defaults
12481 # to the OS version, if on x86, and 10.4, the deployment
12482 # target defaults to 10.4. Don't you love it?
12483 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12484 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12485 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12486 10.[012]*)
12487 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12488 10.*)
12489 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12490 esac
12491 ;;
12492 esac
12493 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12494 _lt_dar_single_mod='$single_module'
12495 fi
12496 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12497 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12498 else
12499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12500 fi
cristy0c60a692010-11-04 01:09:47 +000012501 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012502 _lt_dsymutil='~$DSYMUTIL $lib || :'
12503 else
12504 _lt_dsymutil=
12505 fi
12506 ;;
12507 esac
12508
12509for ac_header in dlfcn.h
12510do :
12511 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12512"
cristyda16f162011-02-19 23:52:17 +000012513if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 cat >>confdefs.h <<_ACEOF
12515#define HAVE_DLFCN_H 1
12516_ACEOF
12517
12518fi
12519
12520done
12521
12522
12523
cristy73bd4a52010-10-05 11:24:23 +000012524
cristyda16f162011-02-19 23:52:17 +000012525func_stripname_cnf ()
12526{
12527 case ${2} in
12528 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12529 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12530 esac
12531} # func_stripname_cnf
12532
12533
12534
cristy73bd4a52010-10-05 11:24:23 +000012535
12536
12537# Set options
12538enable_win32_dll=yes
12539
12540case $host in
cristy0c60a692010-11-04 01:09:47 +000012541*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012542 if test -n "$ac_tool_prefix"; then
12543 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12544set dummy ${ac_tool_prefix}as; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012547if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012548 $as_echo_n "(cached) " >&6
12549else
12550 if test -n "$AS"; then
12551 ac_cv_prog_AS="$AS" # Let the user override the test.
12552else
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_AS="${ac_tool_prefix}as"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564done
12565 done
12566IFS=$as_save_IFS
12567
12568fi
12569fi
12570AS=$ac_cv_prog_AS
12571if test -n "$AS"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12573$as_echo "$AS" >&6; }
12574else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
12577fi
12578
12579
12580fi
12581if test -z "$ac_cv_prog_AS"; then
12582 ac_ct_AS=$AS
12583 # Extract the first word of "as", so it can be a program name with args.
12584set dummy as; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012587if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012588 $as_echo_n "(cached) " >&6
12589else
12590 if test -n "$ac_ct_AS"; then
12591 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12592else
12593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_ac_ct_AS="as"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608fi
12609fi
12610ac_ct_AS=$ac_cv_prog_ac_ct_AS
12611if test -n "$ac_ct_AS"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12613$as_echo "$ac_ct_AS" >&6; }
12614else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619 if test "x$ac_ct_AS" = x; then
12620 AS="false"
12621 else
12622 case $cross_compiling:$ac_tool_warned in
12623yes:)
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12626ac_tool_warned=yes ;;
12627esac
12628 AS=$ac_ct_AS
12629 fi
12630else
12631 AS="$ac_cv_prog_AS"
12632fi
12633
12634 if test -n "$ac_tool_prefix"; then
12635 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12636set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012639if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012640 $as_echo_n "(cached) " >&6
12641else
12642 if test -n "$DLLTOOL"; then
12643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12644else
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656done
12657 done
12658IFS=$as_save_IFS
12659
12660fi
12661fi
12662DLLTOOL=$ac_cv_prog_DLLTOOL
12663if test -n "$DLLTOOL"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12665$as_echo "$DLLTOOL" >&6; }
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670
12671
12672fi
12673if test -z "$ac_cv_prog_DLLTOOL"; then
12674 ac_ct_DLLTOOL=$DLLTOOL
12675 # Extract the first word of "dlltool", so it can be a program name with args.
12676set dummy dlltool; ac_word=$2
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012679if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012680 $as_echo_n "(cached) " >&6
12681else
12682 if test -n "$ac_ct_DLLTOOL"; then
12683 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12684else
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696done
12697 done
12698IFS=$as_save_IFS
12699
12700fi
12701fi
12702ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12703if test -n "$ac_ct_DLLTOOL"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12705$as_echo "$ac_ct_DLLTOOL" >&6; }
12706else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709fi
12710
12711 if test "x$ac_ct_DLLTOOL" = x; then
12712 DLLTOOL="false"
12713 else
12714 case $cross_compiling:$ac_tool_warned in
12715yes:)
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12718ac_tool_warned=yes ;;
12719esac
12720 DLLTOOL=$ac_ct_DLLTOOL
12721 fi
12722else
12723 DLLTOOL="$ac_cv_prog_DLLTOOL"
12724fi
12725
12726 if test -n "$ac_tool_prefix"; then
12727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12728set dummy ${ac_tool_prefix}objdump; ac_word=$2
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012731if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012732 $as_echo_n "(cached) " >&6
12733else
12734 if test -n "$OBJDUMP"; then
12735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12736else
12737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738for as_dir in $PATH
12739do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748done
12749 done
12750IFS=$as_save_IFS
12751
12752fi
12753fi
12754OBJDUMP=$ac_cv_prog_OBJDUMP
12755if test -n "$OBJDUMP"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12757$as_echo "$OBJDUMP" >&6; }
12758else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764fi
12765if test -z "$ac_cv_prog_OBJDUMP"; then
12766 ac_ct_OBJDUMP=$OBJDUMP
12767 # Extract the first word of "objdump", so it can be a program name with args.
12768set dummy objdump; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012771if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012772 $as_echo_n "(cached) " >&6
12773else
12774 if test -n "$ac_ct_OBJDUMP"; then
12775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789 done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12795if test -n "$ac_ct_OBJDUMP"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12797$as_echo "$ac_ct_OBJDUMP" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803 if test "x$ac_ct_OBJDUMP" = x; then
12804 OBJDUMP="false"
12805 else
12806 case $cross_compiling:$ac_tool_warned in
12807yes:)
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12810ac_tool_warned=yes ;;
12811esac
12812 OBJDUMP=$ac_ct_OBJDUMP
12813 fi
12814else
12815 OBJDUMP="$ac_cv_prog_OBJDUMP"
12816fi
12817
12818 ;;
12819esac
12820
12821test -z "$AS" && AS=as
12822
12823
12824
12825
12826
12827test -z "$DLLTOOL" && DLLTOOL=dlltool
12828
12829
12830
12831
12832
12833test -z "$OBJDUMP" && OBJDUMP=objdump
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843 # Check whether --enable-shared was given.
12844if test "${enable_shared+set}" = set; then :
12845 enableval=$enable_shared; p=${PACKAGE-default}
12846 case $enableval in
12847 yes) enable_shared=yes ;;
12848 no) enable_shared=no ;;
12849 *)
12850 enable_shared=no
12851 # Look at the argument we got. We use all the common list separators.
12852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12853 for pkg in $enableval; do
12854 IFS="$lt_save_ifs"
12855 if test "X$pkg" = "X$p"; then
12856 enable_shared=yes
12857 fi
12858 done
12859 IFS="$lt_save_ifs"
12860 ;;
12861 esac
12862else
12863 enable_shared=yes
12864fi
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874 # Check whether --enable-static was given.
12875if test "${enable_static+set}" = set; then :
12876 enableval=$enable_static; p=${PACKAGE-default}
12877 case $enableval in
12878 yes) enable_static=yes ;;
12879 no) enable_static=no ;;
12880 *)
12881 enable_static=no
12882 # Look at the argument we got. We use all the common list separators.
12883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12884 for pkg in $enableval; do
12885 IFS="$lt_save_ifs"
12886 if test "X$pkg" = "X$p"; then
12887 enable_static=yes
12888 fi
12889 done
12890 IFS="$lt_save_ifs"
12891 ;;
12892 esac
12893else
12894 enable_static=yes
12895fi
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906# Check whether --with-pic was given.
12907if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012908 withval=$with_pic; lt_p=${PACKAGE-default}
12909 case $withval in
12910 yes|no) pic_mode=$withval ;;
12911 *)
12912 pic_mode=default
12913 # Look at the argument we got. We use all the common list separators.
12914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12915 for lt_pkg in $withval; do
12916 IFS="$lt_save_ifs"
12917 if test "X$lt_pkg" = "X$lt_p"; then
12918 pic_mode=yes
12919 fi
12920 done
12921 IFS="$lt_save_ifs"
12922 ;;
12923 esac
cristy73bd4a52010-10-05 11:24:23 +000012924else
12925 pic_mode=default
12926fi
12927
12928
12929test -z "$pic_mode" && pic_mode=default
12930
12931
12932
12933
12934
12935
12936
12937 # Check whether --enable-fast-install was given.
12938if test "${enable_fast_install+set}" = set; then :
12939 enableval=$enable_fast_install; p=${PACKAGE-default}
12940 case $enableval in
12941 yes) enable_fast_install=yes ;;
12942 no) enable_fast_install=no ;;
12943 *)
12944 enable_fast_install=no
12945 # Look at the argument we got. We use all the common list separators.
12946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12947 for pkg in $enableval; do
12948 IFS="$lt_save_ifs"
12949 if test "X$pkg" = "X$p"; then
12950 enable_fast_install=yes
12951 fi
12952 done
12953 IFS="$lt_save_ifs"
12954 ;;
12955 esac
12956else
12957 enable_fast_install=yes
12958fi
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970# This can be used to rebuild libtool when needed
12971LIBTOOL_DEPS="$ltmain"
12972
12973# Always use our own libtool.
12974LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
cristy0c60a692010-11-04 01:09:47 +000013000
cristy99bd5232011-12-07 14:38:20 +000013001
13002
13003
13004
cristy73bd4a52010-10-05 11:24:23 +000013005test -z "$LN_S" && LN_S="ln -s"
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020if test -n "${ZSH_VERSION+set}" ; then
13021 setopt NO_GLOB_SUBST
13022fi
13023
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13025$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013026if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013027 $as_echo_n "(cached) " >&6
13028else
13029 rm -f .libs 2>/dev/null
13030mkdir .libs 2>/dev/null
13031if test -d .libs; then
13032 lt_cv_objdir=.libs
13033else
13034 # MS-DOS does not allow filenames that begin with a dot.
13035 lt_cv_objdir=_libs
13036fi
13037rmdir .libs 2>/dev/null
13038fi
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13040$as_echo "$lt_cv_objdir" >&6; }
13041objdir=$lt_cv_objdir
13042
13043
13044
13045
13046
13047cat >>confdefs.h <<_ACEOF
13048#define LT_OBJDIR "$lt_cv_objdir/"
13049_ACEOF
13050
13051
13052
13053
cristy73bd4a52010-10-05 11:24:23 +000013054case $host_os in
13055aix3*)
13056 # AIX sometimes has problems with the GCC collect2 program. For some
13057 # reason, if we set the COLLECT_NAMES environment variable, the problems
13058 # vanish in a puff of smoke.
13059 if test "X${COLLECT_NAMES+set}" != Xset; then
13060 COLLECT_NAMES=
13061 export COLLECT_NAMES
13062 fi
13063 ;;
13064esac
13065
cristy73bd4a52010-10-05 11:24:23 +000013066# Global variables:
13067ofile=libtool
13068can_build_shared=yes
13069
13070# All known linkers require a `.a' archive for static linking (except MSVC,
13071# which needs '.lib').
13072libext=a
13073
13074with_gnu_ld="$lt_cv_prog_gnu_ld"
13075
13076old_CC="$CC"
13077old_CFLAGS="$CFLAGS"
13078
13079# Set sane defaults for various variables
13080test -z "$CC" && CC=cc
13081test -z "$LTCC" && LTCC=$CC
13082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13083test -z "$LD" && LD=ld
13084test -z "$ac_objext" && ac_objext=o
13085
13086for cc_temp in $compiler""; do
13087 case $cc_temp in
13088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13090 \-*) ;;
13091 *) break;;
13092 esac
13093done
cristy0c60a692010-11-04 01:09:47 +000013094cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013095
13096
13097# Only perform the check for file, if the check method requires it
13098test -z "$MAGIC_CMD" && MAGIC_CMD=file
13099case $deplibs_check_method in
13100file_magic*)
13101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13103$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013104if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013105 $as_echo_n "(cached) " >&6
13106else
13107 case $MAGIC_CMD in
13108[\\/*] | ?:[\\/]*)
13109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13110 ;;
13111*)
13112 lt_save_MAGIC_CMD="$MAGIC_CMD"
13113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13115 for ac_dir in $ac_dummy; do
13116 IFS="$lt_save_ifs"
13117 test -z "$ac_dir" && ac_dir=.
13118 if test -f $ac_dir/${ac_tool_prefix}file; then
13119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13120 if test -n "$file_magic_test_file"; then
13121 case $deplibs_check_method in
13122 "file_magic "*)
13123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13126 $EGREP "$file_magic_regex" > /dev/null; then
13127 :
13128 else
13129 cat <<_LT_EOF 1>&2
13130
13131*** Warning: the command libtool uses to detect shared libraries,
13132*** $file_magic_cmd, produces output that libtool cannot recognize.
13133*** The result is that libtool may fail to recognize shared libraries
13134*** as such. This will affect the creation of libtool libraries that
13135*** depend on shared libraries, but programs linked with such libtool
13136*** libraries will work regardless of this problem. Nevertheless, you
13137*** may want to report the problem to your system manager and/or to
13138*** bug-libtool@gnu.org
13139
13140_LT_EOF
13141 fi ;;
13142 esac
13143 fi
13144 break
13145 fi
13146 done
13147 IFS="$lt_save_ifs"
13148 MAGIC_CMD="$lt_save_MAGIC_CMD"
13149 ;;
13150esac
13151fi
13152
13153MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13154if test -n "$MAGIC_CMD"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13156$as_echo "$MAGIC_CMD" >&6; }
13157else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162
13163
13164
13165
13166if test -z "$lt_cv_path_MAGIC_CMD"; then
13167 if test -n "$ac_tool_prefix"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13169$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013170if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013171 $as_echo_n "(cached) " >&6
13172else
13173 case $MAGIC_CMD in
13174[\\/*] | ?:[\\/]*)
13175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13176 ;;
13177*)
13178 lt_save_MAGIC_CMD="$MAGIC_CMD"
13179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13181 for ac_dir in $ac_dummy; do
13182 IFS="$lt_save_ifs"
13183 test -z "$ac_dir" && ac_dir=.
13184 if test -f $ac_dir/file; then
13185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13186 if test -n "$file_magic_test_file"; then
13187 case $deplibs_check_method in
13188 "file_magic "*)
13189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13192 $EGREP "$file_magic_regex" > /dev/null; then
13193 :
13194 else
13195 cat <<_LT_EOF 1>&2
13196
13197*** Warning: the command libtool uses to detect shared libraries,
13198*** $file_magic_cmd, produces output that libtool cannot recognize.
13199*** The result is that libtool may fail to recognize shared libraries
13200*** as such. This will affect the creation of libtool libraries that
13201*** depend on shared libraries, but programs linked with such libtool
13202*** libraries will work regardless of this problem. Nevertheless, you
13203*** may want to report the problem to your system manager and/or to
13204*** bug-libtool@gnu.org
13205
13206_LT_EOF
13207 fi ;;
13208 esac
13209 fi
13210 break
13211 fi
13212 done
13213 IFS="$lt_save_ifs"
13214 MAGIC_CMD="$lt_save_MAGIC_CMD"
13215 ;;
13216esac
13217fi
13218
13219MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13220if test -n "$MAGIC_CMD"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13222$as_echo "$MAGIC_CMD" >&6; }
13223else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
13226fi
13227
13228
13229 else
13230 MAGIC_CMD=:
13231 fi
13232fi
13233
13234 fi
13235 ;;
13236esac
13237
13238# Use C for the default configuration in the libtool script
13239
13240lt_save_CC="$CC"
13241ac_ext=c
13242ac_cpp='$CPP $CPPFLAGS'
13243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245ac_compiler_gnu=$ac_cv_c_compiler_gnu
13246
13247
13248# Source file extension for C test sources.
13249ac_ext=c
13250
13251# Object file extension for compiled C test sources.
13252objext=o
13253objext=$objext
13254
13255# Code to be used in simple compile tests
13256lt_simple_compile_test_code="int some_variable = 0;"
13257
13258# Code to be used in simple link tests
13259lt_simple_link_test_code='int main(){return(0);}'
13260
13261
13262
13263
13264
13265
13266
13267# If no C compiler was specified, use CC.
13268LTCC=${LTCC-"$CC"}
13269
13270# If no C compiler flags were specified, use CFLAGS.
13271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13272
13273# Allow CC to be a program name with arguments.
13274compiler=$CC
13275
13276# Save the default compiler, since it gets overwritten when the other
13277# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13278compiler_DEFAULT=$CC
13279
13280# save warnings/boilerplate of simple test code
13281ac_outfile=conftest.$ac_objext
13282echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13284_lt_compiler_boilerplate=`cat conftest.err`
13285$RM conftest*
13286
13287ac_outfile=conftest.$ac_objext
13288echo "$lt_simple_link_test_code" >conftest.$ac_ext
13289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13290_lt_linker_boilerplate=`cat conftest.err`
13291$RM -r conftest*
13292
13293
13294## CAVEAT EMPTOR:
13295## There is no encapsulation within the following macros, do not change
13296## the running order or otherwise move them around unless you know exactly
13297## what you are doing...
13298if test -n "$compiler"; then
13299
13300lt_prog_compiler_no_builtin_flag=
13301
13302if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013303 case $cc_basename in
13304 nvcc*)
13305 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13306 *)
13307 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13308 esac
cristy73bd4a52010-10-05 11:24:23 +000013309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13311$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 lt_cv_prog_compiler_rtti_exceptions=no
13316 ac_outfile=conftest.$ac_objext
13317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318 lt_compiler_flag="-fno-rtti -fno-exceptions"
13319 # Insert the option either (1) after the last *FLAGS variable, or
13320 # (2) before a word containing "conftest.", or (3) at the end.
13321 # Note that $ac_compile itself does not contain backslashes and begins
13322 # with a dollar sign (not a hyphen), so the echo should work correctly.
13323 # The option is referenced via a variable to avoid confusing sed.
13324 lt_compile=`echo "$ac_compile" | $SED \
13325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13327 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013329 (eval "$lt_compile" 2>conftest.err)
13330 ac_status=$?
13331 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013333 if (exit $ac_status) && test -s "$ac_outfile"; then
13334 # The compiler can only warn and ignore the option if not recognized
13335 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13339 lt_cv_prog_compiler_rtti_exceptions=yes
13340 fi
13341 fi
13342 $RM conftest*
13343
13344fi
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13346$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13347
13348if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13350else
13351 :
13352fi
13353
13354fi
13355
13356
13357
13358
13359
13360
13361 lt_prog_compiler_wl=
13362lt_prog_compiler_pic=
13363lt_prog_compiler_static=
13364
cristy73bd4a52010-10-05 11:24:23 +000013365
13366 if test "$GCC" = yes; then
13367 lt_prog_compiler_wl='-Wl,'
13368 lt_prog_compiler_static='-static'
13369
13370 case $host_os in
13371 aix*)
13372 # All AIX code is PIC.
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static='-Bstatic'
13376 fi
13377 ;;
13378
13379 amigaos*)
13380 case $host_cpu in
13381 powerpc)
13382 # see comment about AmigaOS4 .so support
13383 lt_prog_compiler_pic='-fPIC'
13384 ;;
13385 m68k)
13386 # FIXME: we need at least 68020 code to build shared libraries, but
13387 # adding the `-m68020' flag to GCC prevents building anything better,
13388 # like `-m68040'.
13389 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13390 ;;
13391 esac
13392 ;;
13393
13394 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13395 # PIC is the default for these OSes.
13396 ;;
13397
13398 mingw* | cygwin* | pw32* | os2* | cegcc*)
13399 # This hack is so that the source file can tell whether it is being
13400 # built for inclusion in a dll (and should export symbols for example).
13401 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13402 # (--disable-auto-import) libraries
13403 lt_prog_compiler_pic='-DDLL_EXPORT'
13404 ;;
13405
13406 darwin* | rhapsody*)
13407 # PIC is the default on this platform
13408 # Common symbols not allowed in MH_DYLIB files
13409 lt_prog_compiler_pic='-fno-common'
13410 ;;
13411
cristy0c60a692010-11-04 01:09:47 +000013412 haiku*)
13413 # PIC is the default for Haiku.
13414 # The "-static" flag exists, but is broken.
13415 lt_prog_compiler_static=
13416 ;;
13417
cristy73bd4a52010-10-05 11:24:23 +000013418 hpux*)
13419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13421 # sets the default TLS model and affects inlining.
13422 case $host_cpu in
13423 hppa*64*)
13424 # +Z the default
13425 ;;
13426 *)
13427 lt_prog_compiler_pic='-fPIC'
13428 ;;
13429 esac
13430 ;;
13431
13432 interix[3-9]*)
13433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13434 # Instead, we relocate shared libraries at runtime.
13435 ;;
13436
13437 msdosdjgpp*)
13438 # Just because we use GCC doesn't mean we suddenly get shared libraries
13439 # on systems that don't support them.
13440 lt_prog_compiler_can_build_shared=no
13441 enable_shared=no
13442 ;;
13443
13444 *nto* | *qnx*)
13445 # QNX uses GNU C++, but need to define -shared option too, otherwise
13446 # it will coredump.
13447 lt_prog_compiler_pic='-fPIC -shared'
13448 ;;
13449
13450 sysv4*MP*)
13451 if test -d /usr/nec; then
13452 lt_prog_compiler_pic=-Kconform_pic
13453 fi
13454 ;;
13455
13456 *)
13457 lt_prog_compiler_pic='-fPIC'
13458 ;;
13459 esac
cristy0c60a692010-11-04 01:09:47 +000013460
13461 case $cc_basename in
13462 nvcc*) # Cuda Compiler Driver 2.2
13463 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013464 if test -n "$lt_prog_compiler_pic"; then
13465 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13466 fi
cristy0c60a692010-11-04 01:09:47 +000013467 ;;
13468 esac
cristy73bd4a52010-10-05 11:24:23 +000013469 else
13470 # PORTME Check for flag to pass linker flags through the system compiler.
13471 case $host_os in
13472 aix*)
13473 lt_prog_compiler_wl='-Wl,'
13474 if test "$host_cpu" = ia64; then
13475 # AIX 5 now supports IA64 processor
13476 lt_prog_compiler_static='-Bstatic'
13477 else
13478 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13479 fi
13480 ;;
13481
13482 mingw* | cygwin* | pw32* | os2* | cegcc*)
13483 # This hack is so that the source file can tell whether it is being
13484 # built for inclusion in a dll (and should export symbols for example).
13485 lt_prog_compiler_pic='-DDLL_EXPORT'
13486 ;;
13487
13488 hpux9* | hpux10* | hpux11*)
13489 lt_prog_compiler_wl='-Wl,'
13490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13491 # not for PA HP-UX.
13492 case $host_cpu in
13493 hppa*64*|ia64*)
13494 # +Z the default
13495 ;;
13496 *)
13497 lt_prog_compiler_pic='+Z'
13498 ;;
13499 esac
13500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13501 lt_prog_compiler_static='${wl}-a ${wl}archive'
13502 ;;
13503
13504 irix5* | irix6* | nonstopux*)
13505 lt_prog_compiler_wl='-Wl,'
13506 # PIC (with -KPIC) is the default.
13507 lt_prog_compiler_static='-non_shared'
13508 ;;
13509
cristy0c60a692010-11-04 01:09:47 +000013510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013511 case $cc_basename in
13512 # old Intel for x86_64 which still supported -KPIC.
13513 ecc*)
13514 lt_prog_compiler_wl='-Wl,'
13515 lt_prog_compiler_pic='-KPIC'
13516 lt_prog_compiler_static='-static'
13517 ;;
13518 # icc used to be incompatible with GCC.
13519 # ICC 10 doesn't accept -KPIC any more.
13520 icc* | ifort*)
13521 lt_prog_compiler_wl='-Wl,'
13522 lt_prog_compiler_pic='-fPIC'
13523 lt_prog_compiler_static='-static'
13524 ;;
13525 # Lahey Fortran 8.1.
13526 lf95*)
13527 lt_prog_compiler_wl='-Wl,'
13528 lt_prog_compiler_pic='--shared'
13529 lt_prog_compiler_static='--static'
13530 ;;
cristyda16f162011-02-19 23:52:17 +000013531 nagfor*)
13532 # NAG Fortran compiler
13533 lt_prog_compiler_wl='-Wl,-Wl,,'
13534 lt_prog_compiler_pic='-PIC'
13535 lt_prog_compiler_static='-Bstatic'
13536 ;;
cristy0c60a692010-11-04 01:09:47 +000013537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013538 # Portland Group compilers (*not* the Pentium gcc compiler,
13539 # which looks to be a dead project)
13540 lt_prog_compiler_wl='-Wl,'
13541 lt_prog_compiler_pic='-fpic'
13542 lt_prog_compiler_static='-Bstatic'
13543 ;;
13544 ccc*)
13545 lt_prog_compiler_wl='-Wl,'
13546 # All Alpha code is PIC.
13547 lt_prog_compiler_static='-non_shared'
13548 ;;
cristy0c60a692010-11-04 01:09:47 +000013549 xl* | bgxl* | bgf* | mpixl*)
13550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013551 lt_prog_compiler_wl='-Wl,'
13552 lt_prog_compiler_pic='-qpic'
13553 lt_prog_compiler_static='-qstaticlink'
13554 ;;
13555 *)
13556 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013557 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13559 lt_prog_compiler_pic='-KPIC'
13560 lt_prog_compiler_static='-Bstatic'
13561 lt_prog_compiler_wl=''
13562 ;;
cristy99bd5232011-12-07 14:38:20 +000013563 *Sun\ F* | *Sun*Fortran*)
13564 lt_prog_compiler_pic='-KPIC'
13565 lt_prog_compiler_static='-Bstatic'
13566 lt_prog_compiler_wl='-Qoption ld '
13567 ;;
cristy73bd4a52010-10-05 11:24:23 +000013568 *Sun\ C*)
13569 # Sun C 5.9
13570 lt_prog_compiler_pic='-KPIC'
13571 lt_prog_compiler_static='-Bstatic'
13572 lt_prog_compiler_wl='-Wl,'
13573 ;;
cristy99bd5232011-12-07 14:38:20 +000013574 *Intel*\ [CF]*Compiler*)
13575 lt_prog_compiler_wl='-Wl,'
13576 lt_prog_compiler_pic='-fPIC'
13577 lt_prog_compiler_static='-static'
13578 ;;
13579 *Portland\ Group*)
13580 lt_prog_compiler_wl='-Wl,'
13581 lt_prog_compiler_pic='-fpic'
13582 lt_prog_compiler_static='-Bstatic'
13583 ;;
cristy73bd4a52010-10-05 11:24:23 +000013584 esac
13585 ;;
13586 esac
13587 ;;
13588
13589 newsos6)
13590 lt_prog_compiler_pic='-KPIC'
13591 lt_prog_compiler_static='-Bstatic'
13592 ;;
13593
13594 *nto* | *qnx*)
13595 # QNX uses GNU C++, but need to define -shared option too, otherwise
13596 # it will coredump.
13597 lt_prog_compiler_pic='-fPIC -shared'
13598 ;;
13599
13600 osf3* | osf4* | osf5*)
13601 lt_prog_compiler_wl='-Wl,'
13602 # All OSF/1 code is PIC.
13603 lt_prog_compiler_static='-non_shared'
13604 ;;
13605
13606 rdos*)
13607 lt_prog_compiler_static='-non_shared'
13608 ;;
13609
13610 solaris*)
13611 lt_prog_compiler_pic='-KPIC'
13612 lt_prog_compiler_static='-Bstatic'
13613 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013614 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013615 lt_prog_compiler_wl='-Qoption ld ';;
13616 *)
13617 lt_prog_compiler_wl='-Wl,';;
13618 esac
13619 ;;
13620
13621 sunos4*)
13622 lt_prog_compiler_wl='-Qoption ld '
13623 lt_prog_compiler_pic='-PIC'
13624 lt_prog_compiler_static='-Bstatic'
13625 ;;
13626
13627 sysv4 | sysv4.2uw2* | sysv4.3*)
13628 lt_prog_compiler_wl='-Wl,'
13629 lt_prog_compiler_pic='-KPIC'
13630 lt_prog_compiler_static='-Bstatic'
13631 ;;
13632
13633 sysv4*MP*)
13634 if test -d /usr/nec ;then
13635 lt_prog_compiler_pic='-Kconform_pic'
13636 lt_prog_compiler_static='-Bstatic'
13637 fi
13638 ;;
13639
13640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13641 lt_prog_compiler_wl='-Wl,'
13642 lt_prog_compiler_pic='-KPIC'
13643 lt_prog_compiler_static='-Bstatic'
13644 ;;
13645
13646 unicos*)
13647 lt_prog_compiler_wl='-Wl,'
13648 lt_prog_compiler_can_build_shared=no
13649 ;;
13650
13651 uts4*)
13652 lt_prog_compiler_pic='-pic'
13653 lt_prog_compiler_static='-Bstatic'
13654 ;;
13655
13656 *)
13657 lt_prog_compiler_can_build_shared=no
13658 ;;
13659 esac
13660 fi
13661
13662case $host_os in
13663 # For platforms which do not support PIC, -DPIC is meaningless:
13664 *djgpp*)
13665 lt_prog_compiler_pic=
13666 ;;
13667 *)
13668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13669 ;;
13670esac
cristy73bd4a52010-10-05 11:24:23 +000013671
cristyda16f162011-02-19 23:52:17 +000013672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13674if ${lt_cv_prog_compiler_pic+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676else
13677 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13680$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013682
13683#
13684# Check to make sure the PIC flag actually works.
13685#
13686if test -n "$lt_prog_compiler_pic"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013689if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013690 $as_echo_n "(cached) " >&6
13691else
13692 lt_cv_prog_compiler_pic_works=no
13693 ac_outfile=conftest.$ac_objext
13694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13696 # Insert the option either (1) after the last *FLAGS variable, or
13697 # (2) before a word containing "conftest.", or (3) at the end.
13698 # Note that $ac_compile itself does not contain backslashes and begins
13699 # with a dollar sign (not a hyphen), so the echo should work correctly.
13700 # The option is referenced via a variable to avoid confusing sed.
13701 lt_compile=`echo "$ac_compile" | $SED \
13702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13704 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013706 (eval "$lt_compile" 2>conftest.err)
13707 ac_status=$?
13708 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013710 if (exit $ac_status) && test -s "$ac_outfile"; then
13711 # The compiler can only warn and ignore the option if not recognized
13712 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13716 lt_cv_prog_compiler_pic_works=yes
13717 fi
13718 fi
13719 $RM conftest*
13720
13721fi
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13723$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13724
13725if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13726 case $lt_prog_compiler_pic in
13727 "" | " "*) ;;
13728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13729 esac
13730else
13731 lt_prog_compiler_pic=
13732 lt_prog_compiler_can_build_shared=no
13733fi
13734
13735fi
13736
13737
13738
13739
13740
13741
cristyda16f162011-02-19 23:52:17 +000013742
13743
13744
13745
13746
cristy73bd4a52010-10-05 11:24:23 +000013747#
13748# Check to make sure the static flag actually works.
13749#
13750wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13752$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013753if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013754 $as_echo_n "(cached) " >&6
13755else
13756 lt_cv_prog_compiler_static_works=no
13757 save_LDFLAGS="$LDFLAGS"
13758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13761 # The linker can only warn and ignore the option if not recognized
13762 # So say no if there are warnings
13763 if test -s conftest.err; then
13764 # Append any errors to the config.log.
13765 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013766 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13768 if diff conftest.exp conftest.er2 >/dev/null; then
13769 lt_cv_prog_compiler_static_works=yes
13770 fi
13771 else
13772 lt_cv_prog_compiler_static_works=yes
13773 fi
13774 fi
13775 $RM -r conftest*
13776 LDFLAGS="$save_LDFLAGS"
13777
13778fi
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13780$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13781
13782if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13783 :
13784else
13785 lt_prog_compiler_static=
13786fi
13787
13788
13789
13790
13791
13792
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013796if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013797 $as_echo_n "(cached) " >&6
13798else
13799 lt_cv_prog_compiler_c_o=no
13800 $RM -r conftest 2>/dev/null
13801 mkdir conftest
13802 cd conftest
13803 mkdir out
13804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13805
13806 lt_compiler_flag="-o out/conftest2.$ac_objext"
13807 # Insert the option either (1) after the last *FLAGS variable, or
13808 # (2) before a word containing "conftest.", or (3) at the end.
13809 # Note that $ac_compile itself does not contain backslashes and begins
13810 # with a dollar sign (not a hyphen), so the echo should work correctly.
13811 lt_compile=`echo "$ac_compile" | $SED \
13812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013816 (eval "$lt_compile" 2>out/conftest.err)
13817 ac_status=$?
13818 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13821 then
13822 # The compiler can only warn and ignore the option if not recognized
13823 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13827 lt_cv_prog_compiler_c_o=yes
13828 fi
13829 fi
13830 chmod u+w . 2>&5
13831 $RM conftest*
13832 # SGI C++ compiler will create directory out/ii_files/ for
13833 # template instantiation
13834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13835 $RM out/* && rmdir out
13836 cd ..
13837 $RM -r conftest
13838 $RM conftest*
13839
13840fi
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13842$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13843
13844
13845
13846
13847
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13850$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013851if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013852 $as_echo_n "(cached) " >&6
13853else
13854 lt_cv_prog_compiler_c_o=no
13855 $RM -r conftest 2>/dev/null
13856 mkdir conftest
13857 cd conftest
13858 mkdir out
13859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13860
13861 lt_compiler_flag="-o out/conftest2.$ac_objext"
13862 # Insert the option either (1) after the last *FLAGS variable, or
13863 # (2) before a word containing "conftest.", or (3) at the end.
13864 # Note that $ac_compile itself does not contain backslashes and begins
13865 # with a dollar sign (not a hyphen), so the echo should work correctly.
13866 lt_compile=`echo "$ac_compile" | $SED \
13867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13869 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013871 (eval "$lt_compile" 2>out/conftest.err)
13872 ac_status=$?
13873 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13876 then
13877 # The compiler can only warn and ignore the option if not recognized
13878 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13882 lt_cv_prog_compiler_c_o=yes
13883 fi
13884 fi
13885 chmod u+w . 2>&5
13886 $RM conftest*
13887 # SGI C++ compiler will create directory out/ii_files/ for
13888 # template instantiation
13889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13890 $RM out/* && rmdir out
13891 cd ..
13892 $RM -r conftest
13893 $RM conftest*
13894
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13897$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13898
13899
13900
13901
13902hard_links="nottested"
13903if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13904 # do not overwrite the value of need_locks provided by the user
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13906$as_echo_n "checking if we can lock with hard links... " >&6; }
13907 hard_links=yes
13908 $RM conftest*
13909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13910 touch conftest.a
13911 ln conftest.a conftest.b 2>&5 || hard_links=no
13912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13914$as_echo "$hard_links" >&6; }
13915 if test "$hard_links" = no; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13917$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13918 need_locks=warn
13919 fi
13920else
13921 need_locks=no
13922fi
13923
13924
13925
13926
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13931
13932 runpath_var=
13933 allow_undefined_flag=
13934 always_export_symbols=no
13935 archive_cmds=
13936 archive_expsym_cmds=
13937 compiler_needs_object=no
13938 enable_shared_with_static_runtimes=no
13939 export_dynamic_flag_spec=
13940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13941 hardcode_automatic=no
13942 hardcode_direct=no
13943 hardcode_direct_absolute=no
13944 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000013945 hardcode_libdir_separator=
13946 hardcode_minus_L=no
13947 hardcode_shlibpath_var=unsupported
13948 inherit_rpath=no
13949 link_all_deplibs=unknown
13950 module_cmds=
13951 module_expsym_cmds=
13952 old_archive_from_new_cmds=
13953 old_archive_from_expsyms_cmds=
13954 thread_safe_flag_spec=
13955 whole_archive_flag_spec=
13956 # include_expsyms should be a list of space-separated symbols to be *always*
13957 # included in the symbol list
13958 include_expsyms=
13959 # exclude_expsyms can be an extended regexp of symbols to exclude
13960 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13961 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13962 # as well as any symbol that contains `d'.
13963 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13964 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13965 # platforms (ab)use it in PIC code, but their linkers get confused if
13966 # the symbol is explicitly referenced. Since portable code cannot
13967 # rely on this symbol name, it's probably fine to never include it in
13968 # preloaded symbol tables.
13969 # Exclude shared library initialization/finalization symbols.
13970 extract_expsyms_cmds=
13971
13972 case $host_os in
13973 cygwin* | mingw* | pw32* | cegcc*)
13974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13975 # When not using gcc, we currently assume that we are using
13976 # Microsoft Visual C++.
13977 if test "$GCC" != yes; then
13978 with_gnu_ld=no
13979 fi
13980 ;;
13981 interix*)
13982 # we just hope/assume this is gcc and not c89 (= MSVC++)
13983 with_gnu_ld=yes
13984 ;;
13985 openbsd*)
13986 with_gnu_ld=no
13987 ;;
13988 esac
13989
13990 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013991
13992 # On some targets, GNU ld is compatible enough with the native linker
13993 # that we're better off using the native interface for both.
13994 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013995 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013996 case $host_os in
13997 aix*)
13998 # The AIX port of GNU ld has always aspired to compatibility
13999 # with the native linker. However, as the warning in the GNU ld
14000 # block says, versions before 2.19.5* couldn't really create working
14001 # shared libraries, regardless of the interface used.
14002 case `$LD -v 2>&1` in
14003 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14004 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14005 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14006 *)
14007 lt_use_gnu_ld_interface=yes
14008 ;;
14009 esac
14010 ;;
14011 *)
14012 lt_use_gnu_ld_interface=yes
14013 ;;
14014 esac
14015 fi
14016
14017 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014018 # If archive_cmds runs LD, not CC, wlarc should be empty
14019 wlarc='${wl}'
14020
14021 # Set some defaults for GNU ld with shared library support. These
14022 # are reset later if shared libraries are not supported. Putting them
14023 # here allows them to be overridden if necessary.
14024 runpath_var=LD_RUN_PATH
14025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14026 export_dynamic_flag_spec='${wl}--export-dynamic'
14027 # ancient GNU ld didn't support --whole-archive et. al.
14028 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14029 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14030 else
14031 whole_archive_flag_spec=
14032 fi
14033 supports_anon_versioning=no
14034 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014035 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14039 *\ 2.11.*) ;; # other 2.11 versions
14040 *) supports_anon_versioning=yes ;;
14041 esac
14042
14043 # See if GNU ld supports shared libraries.
14044 case $host_os in
14045 aix[3-9]*)
14046 # On AIX/PPC, the GNU linker is very broken
14047 if test "$host_cpu" != ia64; then
14048 ld_shlibs=no
14049 cat <<_LT_EOF 1>&2
14050
cristy0c60a692010-11-04 01:09:47 +000014051*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014052*** to be unable to reliably create shared libraries on AIX.
14053*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014054*** really care for shared libraries, you may want to install binutils
14055*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14056*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014057
14058_LT_EOF
14059 fi
14060 ;;
14061
14062 amigaos*)
14063 case $host_cpu in
14064 powerpc)
14065 # see comment about AmigaOS4 .so support
14066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 archive_expsym_cmds=''
14068 ;;
14069 m68k)
14070 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)'
14071 hardcode_libdir_flag_spec='-L$libdir'
14072 hardcode_minus_L=yes
14073 ;;
14074 esac
14075 ;;
14076
14077 beos*)
14078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14079 allow_undefined_flag=unsupported
14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081 # support --undefined. This deserves some investigation. FIXME
14082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 else
14084 ld_shlibs=no
14085 fi
14086 ;;
14087
14088 cygwin* | mingw* | pw32* | cegcc*)
14089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014092 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014093 allow_undefined_flag=unsupported
14094 always_export_symbols=no
14095 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014096 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'
14097 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 +000014098
14099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14101 # If the export-symbols file already is a .def file (1st line
14102 # is EXPORTS), use it as is; otherwise, prepend...
14103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14104 cp $export_symbols $output_objdir/$soname.def;
14105 else
14106 echo EXPORTS > $output_objdir/$soname.def;
14107 cat $export_symbols >> $output_objdir/$soname.def;
14108 fi~
14109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14110 else
14111 ld_shlibs=no
14112 fi
14113 ;;
14114
cristy0c60a692010-11-04 01:09:47 +000014115 haiku*)
14116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14117 link_all_deplibs=yes
14118 ;;
14119
cristy73bd4a52010-10-05 11:24:23 +000014120 interix[3-9]*)
14121 hardcode_direct=no
14122 hardcode_shlibpath_var=no
14123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14124 export_dynamic_flag_spec='${wl}-E'
14125 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14126 # Instead, shared libraries are loaded at an image base (0x10000000 by
14127 # default) and relocated if they conflict, which is a slow very memory
14128 # consuming and fragmenting process. To avoid this, we pick a random,
14129 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14130 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14132 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'
14133 ;;
14134
cristy0c60a692010-11-04 01:09:47 +000014135 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014136 tmp_diet=no
14137 if test "$host_os" = linux-dietlibc; then
14138 case $cc_basename in
14139 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14140 esac
14141 fi
14142 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14143 && test "$tmp_diet" = no
14144 then
cristyda16f162011-02-19 23:52:17 +000014145 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014146 tmp_sharedflag='-shared'
14147 case $cc_basename,$host_cpu in
14148 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014149 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 +000014150 tmp_addflag=' $pic_flag'
14151 ;;
cristy0c60a692010-11-04 01:09:47 +000014152 pgf77* | pgf90* | pgf95* | pgfortran*)
14153 # Portland Group f77 and f90 compilers
14154 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 +000014155 tmp_addflag=' $pic_flag -Mnomain' ;;
14156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14157 tmp_addflag=' -i_dynamic' ;;
14158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14159 tmp_addflag=' -i_dynamic -nofor_main' ;;
14160 ifc* | ifort*) # Intel Fortran compiler
14161 tmp_addflag=' -nofor_main' ;;
14162 lf95*) # Lahey Fortran 8.1
14163 whole_archive_flag_spec=
14164 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014165 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014166 tmp_sharedflag='-qmkshrobj'
14167 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014168 nvcc*) # Cuda Compiler Driver 2.2
14169 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'
14170 compiler_needs_object=yes
14171 ;;
cristy73bd4a52010-10-05 11:24:23 +000014172 esac
14173 case `$CC -V 2>&1 | sed 5q` in
14174 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014175 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 +000014176 compiler_needs_object=yes
14177 tmp_sharedflag='-G' ;;
14178 *Sun\ F*) # Sun Fortran 8.3
14179 tmp_sharedflag='-G' ;;
14180 esac
14181 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182
14183 if test "x$supports_anon_versioning" = xyes; then
14184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14186 echo "local: *; };" >> $output_objdir/$libname.ver~
14187 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14188 fi
14189
14190 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014191 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014192 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14193 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014195 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014196 if test "x$supports_anon_versioning" = xyes; then
14197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14199 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014200 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014201 fi
14202 ;;
14203 esac
14204 else
14205 ld_shlibs=no
14206 fi
14207 ;;
14208
14209 netbsd*)
14210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14211 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14212 wlarc=
14213 else
cristyda16f162011-02-19 23:52:17 +000014214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215 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 +000014216 fi
14217 ;;
14218
14219 solaris*)
14220 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14221 ld_shlibs=no
14222 cat <<_LT_EOF 1>&2
14223
14224*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14225*** create shared libraries on Solaris systems. Therefore, libtool
14226*** is disabling shared libraries support. We urge you to upgrade GNU
14227*** binutils to release 2.9.1 or newer. Another option is to modify
14228*** your PATH or compiler configuration so that the native linker is
14229*** used, and then restart.
14230
14231_LT_EOF
14232 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14234 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 +000014235 else
14236 ld_shlibs=no
14237 fi
14238 ;;
14239
14240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14241 case `$LD -v 2>&1` in
14242 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14243 ld_shlibs=no
14244 cat <<_LT_EOF 1>&2
14245
14246*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14247*** reliably create shared libraries on SCO systems. Therefore, libtool
14248*** is disabling shared libraries support. We urge you to upgrade GNU
14249*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14250*** your PATH or compiler configuration so that the native linker is
14251*** used, and then restart.
14252
14253_LT_EOF
14254 ;;
14255 *)
14256 # For security reasons, it is highly recommended that you always
14257 # use absolute paths for naming shared libraries, and exclude the
14258 # DT_RUNPATH tag from executables and libraries. But doing so
14259 # requires that you compile everything twice, which is a pain.
14260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14264 else
14265 ld_shlibs=no
14266 fi
14267 ;;
14268 esac
14269 ;;
14270
14271 sunos4*)
14272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14273 wlarc=
14274 hardcode_direct=yes
14275 hardcode_shlibpath_var=no
14276 ;;
14277
14278 *)
14279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14281 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 +000014282 else
14283 ld_shlibs=no
14284 fi
14285 ;;
14286 esac
14287
14288 if test "$ld_shlibs" = no; then
14289 runpath_var=
14290 hardcode_libdir_flag_spec=
14291 export_dynamic_flag_spec=
14292 whole_archive_flag_spec=
14293 fi
14294 else
14295 # PORTME fill in a description of your system's linker (not GNU ld)
14296 case $host_os in
14297 aix3*)
14298 allow_undefined_flag=unsupported
14299 always_export_symbols=yes
14300 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'
14301 # Note: this linker hardcodes the directories in LIBPATH if there
14302 # are no directories specified by -L.
14303 hardcode_minus_L=yes
14304 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14305 # Neither direct hardcoding nor static linking is supported with a
14306 # broken collect2.
14307 hardcode_direct=unsupported
14308 fi
14309 ;;
14310
14311 aix[4-9]*)
14312 if test "$host_cpu" = ia64; then
14313 # On IA64, the linker does run time linking by default, so we don't
14314 # have to do anything special.
14315 aix_use_runtimelinking=no
14316 exp_sym_flag='-Bexport'
14317 no_entry_flag=""
14318 else
14319 # If we're using GNU nm, then we don't want the "-C" option.
14320 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014321 # Also, AIX nm treats weak defined symbols like other global
14322 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014324 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 +000014325 else
14326 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'
14327 fi
14328 aix_use_runtimelinking=no
14329
14330 # Test if we are trying to use run time linking or normal
14331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14332 # need to do runtime linking.
14333 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14334 for ld_flag in $LDFLAGS; do
14335 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14336 aix_use_runtimelinking=yes
14337 break
14338 fi
14339 done
14340 ;;
14341 esac
14342
14343 exp_sym_flag='-bexport'
14344 no_entry_flag='-bnoentry'
14345 fi
14346
14347 # When large executables or shared objects are built, AIX ld can
14348 # have problems creating the table of contents. If linking a library
14349 # or program results in "error TOC overflow" add -mminimal-toc to
14350 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14351 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14352
14353 archive_cmds=''
14354 hardcode_direct=yes
14355 hardcode_direct_absolute=yes
14356 hardcode_libdir_separator=':'
14357 link_all_deplibs=yes
14358 file_list_spec='${wl}-f,'
14359
14360 if test "$GCC" = yes; then
14361 case $host_os in aix4.[012]|aix4.[012].*)
14362 # We only want to do this on AIX 4.2 and lower, the check
14363 # below for broken collect2 doesn't work under 4.3+
14364 collect2name=`${CC} -print-prog-name=collect2`
14365 if test -f "$collect2name" &&
14366 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14367 then
14368 # We have reworked collect2
14369 :
14370 else
14371 # We have old collect2
14372 hardcode_direct=unsupported
14373 # It fails to find uninstalled libraries when the uninstalled
14374 # path is not listed in the libpath. Setting hardcode_minus_L
14375 # to unsupported forces relinking
14376 hardcode_minus_L=yes
14377 hardcode_libdir_flag_spec='-L$libdir'
14378 hardcode_libdir_separator=
14379 fi
14380 ;;
14381 esac
14382 shared_flag='-shared'
14383 if test "$aix_use_runtimelinking" = yes; then
14384 shared_flag="$shared_flag "'${wl}-G'
14385 fi
14386 else
14387 # not using gcc
14388 if test "$host_cpu" = ia64; then
14389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14390 # chokes on -Wl,-G. The following line is correct:
14391 shared_flag='-G'
14392 else
14393 if test "$aix_use_runtimelinking" = yes; then
14394 shared_flag='${wl}-G'
14395 else
14396 shared_flag='${wl}-bM:SRE'
14397 fi
14398 fi
14399 fi
14400
14401 export_dynamic_flag_spec='${wl}-bexpall'
14402 # It seems that -bexpall does not export symbols beginning with
14403 # underscore (_), so it is better to generate a list of symbols to export.
14404 always_export_symbols=yes
14405 if test "$aix_use_runtimelinking" = yes; then
14406 # Warning - without using the other runtime loading flags (-brtl),
14407 # -berok will link without error, but may produce a broken library.
14408 allow_undefined_flag='-berok'
14409 # Determine the default libpath from the value encoded in an
14410 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014411 if test "${lt_cv_aix_libpath+set}" = set; then
14412 aix_libpath=$lt_cv_aix_libpath
14413else
14414 if ${lt_cv_aix_libpath_+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014418/* end confdefs.h. */
14419
14420int
14421main ()
14422{
14423
14424 ;
14425 return 0;
14426}
14427_ACEOF
14428if ac_fn_c_try_link "$LINENO"; then :
14429
cristyda16f162011-02-19 23:52:17 +000014430 lt_aix_libpath_sed='
14431 /Import File Strings/,/^$/ {
14432 /^0/ {
14433 s/^0 *\([^ ]*\) *$/\1/
14434 p
14435 }
14436 }'
14437 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14438 # Check for a 64-bit object if we didn't find anything.
14439 if test -z "$lt_cv_aix_libpath_"; then
14440 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14441 fi
cristy73bd4a52010-10-05 11:24:23 +000014442fi
14443rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014445 if test -z "$lt_cv_aix_libpath_"; then
14446 lt_cv_aix_libpath_="/usr/lib:/lib"
14447 fi
14448
14449fi
14450
14451 aix_libpath=$lt_cv_aix_libpath_
14452fi
cristy73bd4a52010-10-05 11:24:23 +000014453
14454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014455 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 +000014456 else
14457 if test "$host_cpu" = ia64; then
14458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14459 allow_undefined_flag="-z nodefs"
14460 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"
14461 else
14462 # Determine the default libpath from the value encoded in an
14463 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014464 if test "${lt_cv_aix_libpath+set}" = set; then
14465 aix_libpath=$lt_cv_aix_libpath
14466else
14467 if ${lt_cv_aix_libpath_+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014471/* end confdefs.h. */
14472
14473int
14474main ()
14475{
14476
14477 ;
14478 return 0;
14479}
14480_ACEOF
14481if ac_fn_c_try_link "$LINENO"; then :
14482
cristyda16f162011-02-19 23:52:17 +000014483 lt_aix_libpath_sed='
14484 /Import File Strings/,/^$/ {
14485 /^0/ {
14486 s/^0 *\([^ ]*\) *$/\1/
14487 p
14488 }
14489 }'
14490 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14491 # Check for a 64-bit object if we didn't find anything.
14492 if test -z "$lt_cv_aix_libpath_"; then
14493 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14494 fi
cristy73bd4a52010-10-05 11:24:23 +000014495fi
14496rm -f core conftest.err conftest.$ac_objext \
14497 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014498 if test -z "$lt_cv_aix_libpath_"; then
14499 lt_cv_aix_libpath_="/usr/lib:/lib"
14500 fi
14501
14502fi
14503
14504 aix_libpath=$lt_cv_aix_libpath_
14505fi
cristy73bd4a52010-10-05 11:24:23 +000014506
14507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14508 # Warning - without using the other run time loading flags,
14509 # -berok will link without error, but may produce a broken library.
14510 no_undefined_flag=' ${wl}-bernotok'
14511 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014512 if test "$with_gnu_ld" = yes; then
14513 # We only use this code for GNU lds that support --whole-archive.
14514 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14515 else
14516 # Exported symbols can be pulled into shared objects from archives
14517 whole_archive_flag_spec='$convenience'
14518 fi
cristy73bd4a52010-10-05 11:24:23 +000014519 archive_cmds_need_lc=yes
14520 # This is similar to how AIX traditionally builds its shared libraries.
14521 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'
14522 fi
14523 fi
14524 ;;
14525
14526 amigaos*)
14527 case $host_cpu in
14528 powerpc)
14529 # see comment about AmigaOS4 .so support
14530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14531 archive_expsym_cmds=''
14532 ;;
14533 m68k)
14534 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)'
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_minus_L=yes
14537 ;;
14538 esac
14539 ;;
14540
14541 bsdi[45]*)
14542 export_dynamic_flag_spec=-rdynamic
14543 ;;
14544
14545 cygwin* | mingw* | pw32* | cegcc*)
14546 # When not using gcc, we currently assume that we are using
14547 # Microsoft Visual C++.
14548 # hardcode_libdir_flag_spec is actually meaningless, as there is
14549 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014550 case $cc_basename in
14551 cl*)
14552 # Native MSVC
14553 hardcode_libdir_flag_spec=' '
14554 allow_undefined_flag=unsupported
14555 always_export_symbols=yes
14556 file_list_spec='@'
14557 # Tell ltmain to make .lib files, not .a files.
14558 libext=lib
14559 # Tell ltmain to make .dll files, not .so files.
14560 shrext_cmds=".dll"
14561 # FIXME: Setting linknames here is a bad hack.
14562 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14563 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14564 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14565 else
14566 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14567 fi~
14568 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14569 linknames='
14570 # The linker will not automatically build a static lib if we build a DLL.
14571 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14572 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014573 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14575 # Don't use ranlib
14576 old_postinstall_cmds='chmod 644 $oldlib'
14577 postlink_cmds='lt_outputfile="@OUTPUT@"~
14578 lt_tool_outputfile="@TOOL_OUTPUT@"~
14579 case $lt_outputfile in
14580 *.exe|*.EXE) ;;
14581 *)
14582 lt_outputfile="$lt_outputfile.exe"
14583 lt_tool_outputfile="$lt_tool_outputfile.exe"
14584 ;;
14585 esac~
14586 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14587 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14588 $RM "$lt_outputfile.manifest";
14589 fi'
14590 ;;
14591 *)
14592 # Assume MSVC wrapper
14593 hardcode_libdir_flag_spec=' '
14594 allow_undefined_flag=unsupported
14595 # Tell ltmain to make .lib files, not .a files.
14596 libext=lib
14597 # Tell ltmain to make .dll files, not .so files.
14598 shrext_cmds=".dll"
14599 # FIXME: Setting linknames here is a bad hack.
14600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14601 # The linker will automatically build a .lib file if we build a DLL.
14602 old_archive_from_new_cmds='true'
14603 # FIXME: Should let the user specify the lib program.
14604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14605 enable_shared_with_static_runtimes=yes
14606 ;;
14607 esac
cristy73bd4a52010-10-05 11:24:23 +000014608 ;;
14609
14610 darwin* | rhapsody*)
14611
14612
14613 archive_cmds_need_lc=no
14614 hardcode_direct=no
14615 hardcode_automatic=yes
14616 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014617 if test "$lt_cv_ld_force_load" = "yes"; then
14618 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 +000014619
cristy0c60a692010-11-04 01:09:47 +000014620 else
14621 whole_archive_flag_spec=''
14622 fi
cristy73bd4a52010-10-05 11:24:23 +000014623 link_all_deplibs=yes
14624 allow_undefined_flag="$_lt_dar_allow_undefined"
14625 case $cc_basename in
14626 ifort*) _lt_dar_can_shared=yes ;;
14627 *) _lt_dar_can_shared=$GCC ;;
14628 esac
14629 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014630 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14633 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}"
14634 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}"
14635
14636 else
14637 ld_shlibs=no
14638 fi
14639
14640 ;;
14641
14642 dgux*)
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_libdir_flag_spec='-L$libdir'
14645 hardcode_shlibpath_var=no
14646 ;;
14647
cristy73bd4a52010-10-05 11:24:23 +000014648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14649 # support. Future versions do this automatically, but an explicit c++rt0.o
14650 # does not break anything, and helps significantly (at the cost of a little
14651 # extra space).
14652 freebsd2.2*)
14653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14654 hardcode_libdir_flag_spec='-R$libdir'
14655 hardcode_direct=yes
14656 hardcode_shlibpath_var=no
14657 ;;
14658
14659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014660 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14662 hardcode_direct=yes
14663 hardcode_minus_L=yes
14664 hardcode_shlibpath_var=no
14665 ;;
14666
14667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14668 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014670 hardcode_libdir_flag_spec='-R$libdir'
14671 hardcode_direct=yes
14672 hardcode_shlibpath_var=no
14673 ;;
14674
14675 hpux9*)
14676 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014677 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 +000014678 else
14679 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'
14680 fi
14681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14682 hardcode_libdir_separator=:
14683 hardcode_direct=yes
14684
14685 # hardcode_minus_L: Not really in the search PATH,
14686 # but as the default location of the library.
14687 hardcode_minus_L=yes
14688 export_dynamic_flag_spec='${wl}-E'
14689 ;;
14690
14691 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014692 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014693 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 +000014694 else
14695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14696 fi
14697 if test "$with_gnu_ld" = no; then
14698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014699 hardcode_libdir_separator=:
14700 hardcode_direct=yes
14701 hardcode_direct_absolute=yes
14702 export_dynamic_flag_spec='${wl}-E'
14703 # hardcode_minus_L: Not really in the search PATH,
14704 # but as the default location of the library.
14705 hardcode_minus_L=yes
14706 fi
14707 ;;
14708
14709 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014711 case $host_cpu in
14712 hppa*64*)
14713 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 ;;
14715 ia64*)
cristyda16f162011-02-19 23:52:17 +000014716 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014717 ;;
14718 *)
cristyda16f162011-02-19 23:52:17 +000014719 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 +000014720 ;;
14721 esac
14722 else
14723 case $host_cpu in
14724 hppa*64*)
14725 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 ;;
14727 ia64*)
14728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14729 ;;
14730 *)
cristy0c60a692010-11-04 01:09:47 +000014731
14732 # Older versions of the 11.00 compiler do not understand -b yet
14733 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14735$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014736if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014737 $as_echo_n "(cached) " >&6
14738else
14739 lt_cv_prog_compiler__b=no
14740 save_LDFLAGS="$LDFLAGS"
14741 LDFLAGS="$LDFLAGS -b"
14742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14744 # The linker can only warn and ignore the option if not recognized
14745 # So say no if there are warnings
14746 if test -s conftest.err; then
14747 # Append any errors to the config.log.
14748 cat conftest.err 1>&5
14749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751 if diff conftest.exp conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler__b=yes
14753 fi
14754 else
14755 lt_cv_prog_compiler__b=yes
14756 fi
14757 fi
14758 $RM -r conftest*
14759 LDFLAGS="$save_LDFLAGS"
14760
14761fi
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14763$as_echo "$lt_cv_prog_compiler__b" >&6; }
14764
14765if test x"$lt_cv_prog_compiler__b" = xyes; then
14766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14767else
14768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14769fi
14770
cristy73bd4a52010-10-05 11:24:23 +000014771 ;;
14772 esac
14773 fi
14774 if test "$with_gnu_ld" = no; then
14775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator=:
14777
14778 case $host_cpu in
14779 hppa*64*|ia64*)
14780 hardcode_direct=no
14781 hardcode_shlibpath_var=no
14782 ;;
14783 *)
14784 hardcode_direct=yes
14785 hardcode_direct_absolute=yes
14786 export_dynamic_flag_spec='${wl}-E'
14787
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L=yes
14791 ;;
14792 esac
14793 fi
14794 ;;
14795
14796 irix5* | irix6* | nonstopux*)
14797 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014798 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 +000014799 # Try to use the -exported_symbol ld option, if it does not
14800 # work, assume that -exports_file does not work either and
14801 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014802 # This should be the same for all languages, so no per-tag cache variable.
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14804$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14805if ${lt_cv_irix_exported_symbol+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807else
14808 save_LDFLAGS="$LDFLAGS"
14809 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014811/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014812int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014813_ACEOF
14814if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014815 lt_cv_irix_exported_symbol=yes
14816else
14817 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014821 LDFLAGS="$save_LDFLAGS"
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14824$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14825 if test "$lt_cv_irix_exported_symbol" = yes; then
14826 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'
14827 fi
cristy73bd4a52010-10-05 11:24:23 +000014828 else
cristy0c60a692010-11-04 01:09:47 +000014829 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'
14830 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 +000014831 fi
14832 archive_cmds_need_lc='no'
14833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14834 hardcode_libdir_separator=:
14835 inherit_rpath=yes
14836 link_all_deplibs=yes
14837 ;;
14838
14839 netbsd*)
14840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14842 else
14843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14844 fi
14845 hardcode_libdir_flag_spec='-R$libdir'
14846 hardcode_direct=yes
14847 hardcode_shlibpath_var=no
14848 ;;
14849
14850 newsos6)
14851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_direct=yes
14853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14854 hardcode_libdir_separator=:
14855 hardcode_shlibpath_var=no
14856 ;;
14857
14858 *nto* | *qnx*)
14859 ;;
14860
14861 openbsd*)
14862 if test -f /usr/libexec/ld.so; then
14863 hardcode_direct=yes
14864 hardcode_shlibpath_var=no
14865 hardcode_direct_absolute=yes
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14868 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14870 export_dynamic_flag_spec='${wl}-E'
14871 else
14872 case $host_os in
14873 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_libdir_flag_spec='-R$libdir'
14876 ;;
14877 *)
14878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14880 ;;
14881 esac
14882 fi
14883 else
14884 ld_shlibs=no
14885 fi
14886 ;;
14887
14888 os2*)
14889 hardcode_libdir_flag_spec='-L$libdir'
14890 hardcode_minus_L=yes
14891 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014892 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 +000014893 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14894 ;;
14895
14896 osf3*)
14897 if test "$GCC" = yes; then
14898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014899 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 +000014900 else
14901 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014902 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 +000014903 fi
14904 archive_cmds_need_lc='no'
14905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator=:
14907 ;;
14908
14909 osf4* | osf5*) # as osf3* with the addition of -msym flag
14910 if test "$GCC" = yes; then
14911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014912 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 +000014913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14914 else
14915 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014916 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 +000014917 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 +000014918 $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 +000014919
14920 # Both c and cxx compiler support -rpath directly
14921 hardcode_libdir_flag_spec='-rpath $libdir'
14922 fi
14923 archive_cmds_need_lc='no'
14924 hardcode_libdir_separator=:
14925 ;;
14926
14927 solaris*)
14928 no_undefined_flag=' -z defs'
14929 if test "$GCC" = yes; then
14930 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014931 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 +000014932 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 +000014933 $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 +000014934 else
14935 case `$CC -V 2>&1` in
14936 *"Compilers 5.0"*)
14937 wlarc=''
14938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14941 ;;
14942 *)
14943 wlarc='${wl}'
14944 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14946 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14947 ;;
14948 esac
14949 fi
14950 hardcode_libdir_flag_spec='-R$libdir'
14951 hardcode_shlibpath_var=no
14952 case $host_os in
14953 solaris2.[0-5] | solaris2.[0-5].*) ;;
14954 *)
14955 # The compiler driver will combine and reorder linker options,
14956 # but understands `-z linker_flag'. GCC discards it without `$wl',
14957 # but is careful enough not to reorder.
14958 # Supported since Solaris 2.6 (maybe 2.5.1?)
14959 if test "$GCC" = yes; then
14960 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14961 else
14962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14963 fi
14964 ;;
14965 esac
14966 link_all_deplibs=yes
14967 ;;
14968
14969 sunos4*)
14970 if test "x$host_vendor" = xsequent; then
14971 # Use $CC to link under sequent, because it throws in some extra .o
14972 # files that make .init and .fini sections work.
14973 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14974 else
14975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14976 fi
14977 hardcode_libdir_flag_spec='-L$libdir'
14978 hardcode_direct=yes
14979 hardcode_minus_L=yes
14980 hardcode_shlibpath_var=no
14981 ;;
14982
14983 sysv4)
14984 case $host_vendor in
14985 sni)
14986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_direct=yes # is this really true???
14988 ;;
14989 siemens)
14990 ## LD is ld it makes a PLAMLIB
14991 ## CC just makes a GrossModule.
14992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14993 reload_cmds='$CC -r -o $output$reload_objs'
14994 hardcode_direct=no
14995 ;;
14996 motorola)
14997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14999 ;;
15000 esac
15001 runpath_var='LD_RUN_PATH'
15002 hardcode_shlibpath_var=no
15003 ;;
15004
15005 sysv4.3*)
15006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_shlibpath_var=no
15008 export_dynamic_flag_spec='-Bexport'
15009 ;;
15010
15011 sysv4*MP*)
15012 if test -d /usr/nec; then
15013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014 hardcode_shlibpath_var=no
15015 runpath_var=LD_RUN_PATH
15016 hardcode_runpath_var=yes
15017 ld_shlibs=yes
15018 fi
15019 ;;
15020
15021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15022 no_undefined_flag='${wl}-z,text'
15023 archive_cmds_need_lc=no
15024 hardcode_shlibpath_var=no
15025 runpath_var='LD_RUN_PATH'
15026
15027 if test "$GCC" = yes; then
15028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 else
15031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 fi
15034 ;;
15035
15036 sysv5* | sco3.2v5* | sco5v6*)
15037 # Note: We can NOT use -z defs as we might desire, because we do not
15038 # link with -lc, and that would cause any symbols used from libc to
15039 # always be unresolved, which means just about no library would
15040 # ever link correctly. If we're not using GNU ld we use -z text
15041 # though, which does catch some bad symbols but isn't as heavy-handed
15042 # as -z defs.
15043 no_undefined_flag='${wl}-z,text'
15044 allow_undefined_flag='${wl}-z,nodefs'
15045 archive_cmds_need_lc=no
15046 hardcode_shlibpath_var=no
15047 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15048 hardcode_libdir_separator=':'
15049 link_all_deplibs=yes
15050 export_dynamic_flag_spec='${wl}-Bexport'
15051 runpath_var='LD_RUN_PATH'
15052
15053 if test "$GCC" = yes; then
15054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 else
15057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 fi
15060 ;;
15061
15062 uts4*)
15063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_libdir_flag_spec='-L$libdir'
15065 hardcode_shlibpath_var=no
15066 ;;
15067
15068 *)
15069 ld_shlibs=no
15070 ;;
15071 esac
15072
15073 if test x$host_vendor = xsni; then
15074 case $host in
15075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15076 export_dynamic_flag_spec='${wl}-Blargedynsym'
15077 ;;
15078 esac
15079 fi
15080 fi
15081
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15083$as_echo "$ld_shlibs" >&6; }
15084test "$ld_shlibs" = no && can_build_shared=no
15085
15086with_gnu_ld=$with_gnu_ld
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102#
15103# Do we need to explicitly link libc?
15104#
15105case "x$archive_cmds_need_lc" in
15106x|xyes)
15107 # Assume -lc should be added
15108 archive_cmds_need_lc=yes
15109
15110 if test "$enable_shared" = yes && test "$GCC" = yes; then
15111 case $archive_cmds in
15112 *'~'*)
15113 # FIXME: we may have to deal with multi-command sequences.
15114 ;;
15115 '$CC '*)
15116 # Test whether the compiler implicitly links with -lc since on some
15117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15118 # to ld, don't add -lc before -lgcc.
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015121if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015122 $as_echo_n "(cached) " >&6
15123else
15124 $RM conftest*
15125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015126
cristy0c60a692010-11-04 01:09:47 +000015127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015128 (eval $ac_compile) 2>&5
15129 ac_status=$?
15130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015132 soname=conftest
15133 lib=conftest
15134 libobjs=conftest.$ac_objext
15135 deplibs=
15136 wl=$lt_prog_compiler_wl
15137 pic_flag=$lt_prog_compiler_pic
15138 compiler_flags=-v
15139 linker_flags=-v
15140 verstring=
15141 output_objdir=.
15142 libname=conftest
15143 lt_save_allow_undefined_flag=$allow_undefined_flag
15144 allow_undefined_flag=
15145 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 +000015146 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15147 ac_status=$?
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015150 then
15151 lt_cv_archive_cmds_need_lc=no
15152 else
15153 lt_cv_archive_cmds_need_lc=yes
15154 fi
15155 allow_undefined_flag=$lt_save_allow_undefined_flag
15156 else
15157 cat conftest.err 1>&5
15158 fi
15159 $RM conftest*
15160
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15163$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15164 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015165 ;;
15166 esac
15167 fi
15168 ;;
15169esac
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
cristy73bd4a52010-10-05 11:24:23 +000015322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15323$as_echo_n "checking dynamic linker characteristics... " >&6; }
15324
15325if test "$GCC" = yes; then
15326 case $host_os in
15327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15328 *) lt_awk_arg="/^libraries:/" ;;
15329 esac
cristy0c60a692010-11-04 01:09:47 +000015330 case $host_os in
15331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15332 *) lt_sed_strip_eq="s,=/,/,g" ;;
15333 esac
15334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15335 case $lt_search_path_spec in
15336 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015337 # if the path contains ";" then we assume it to be the separator
15338 # otherwise default to the standard path separator (i.e. ":") - it is
15339 # assumed that no part of a normal pathname contains ";" but that should
15340 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15342 ;;
15343 *)
15344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15345 ;;
15346 esac
cristy73bd4a52010-10-05 11:24:23 +000015347 # Ok, now we have the path, separated by spaces, we can step through it
15348 # and add multilib dir if necessary.
15349 lt_tmp_lt_search_path_spec=
15350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15351 for lt_sys_path in $lt_search_path_spec; do
15352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15354 else
15355 test -d "$lt_sys_path" && \
15356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15357 fi
15358 done
cristy0c60a692010-11-04 01:09:47 +000015359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015360BEGIN {RS=" "; FS="/|\n";} {
15361 lt_foo="";
15362 lt_count=0;
15363 for (lt_i = NF; lt_i > 0; lt_i--) {
15364 if ($lt_i != "" && $lt_i != ".") {
15365 if ($lt_i == "..") {
15366 lt_count++;
15367 } else {
15368 if (lt_count == 0) {
15369 lt_foo="/" $lt_i lt_foo;
15370 } else {
15371 lt_count--;
15372 }
15373 }
15374 }
15375 }
15376 if (lt_foo != "") { lt_freq[lt_foo]++; }
15377 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15378}'`
cristy0c60a692010-11-04 01:09:47 +000015379 # AWK program above erroneously prepends '/' to C:/dos/paths
15380 # for these hosts.
15381 case $host_os in
15382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15383 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15384 esac
15385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015386else
15387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15388fi
15389library_names_spec=
15390libname_spec='lib$name'
15391soname_spec=
15392shrext_cmds=".so"
15393postinstall_cmds=
15394postuninstall_cmds=
15395finish_cmds=
15396finish_eval=
15397shlibpath_var=
15398shlibpath_overrides_runpath=unknown
15399version_type=none
15400dynamic_linker="$host_os ld.so"
15401sys_lib_dlsearch_path_spec="/lib /usr/lib"
15402need_lib_prefix=unknown
15403hardcode_into_libs=no
15404
15405# when you set need_version to no, make sure it does not cause -set_version
15406# flags to be left without arguments
15407need_version=unknown
15408
15409case $host_os in
15410aix3*)
cristy99bd5232011-12-07 14:38:20 +000015411 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15413 shlibpath_var=LIBPATH
15414
15415 # AIX 3 has no versioning support, so we append a major version to the name.
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 ;;
15418
15419aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015420 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015421 need_lib_prefix=no
15422 need_version=no
15423 hardcode_into_libs=yes
15424 if test "$host_cpu" = ia64; then
15425 # AIX 5 supports IA64
15426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 else
15429 # With GCC up to 2.95.x, collect2 would create an import file
15430 # for dependence libraries. The import file would start with
15431 # the line `#! .'. This would cause the generated library to
15432 # depend on `.', always an invalid library. This was fixed in
15433 # development snapshots of GCC prior to 3.0.
15434 case $host_os in
15435 aix4 | aix4.[01] | aix4.[01].*)
15436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15437 echo ' yes '
15438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15439 :
15440 else
15441 can_build_shared=no
15442 fi
15443 ;;
15444 esac
15445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15446 # soname into executable. Probably we can add versioning support to
15447 # collect2, so additional links can be useful in future.
15448 if test "$aix_use_runtimelinking" = yes; then
15449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15450 # instead of lib<name>.a to let people know that these are not
15451 # typical AIX shared libraries.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 else
15454 # We preserve .a as extension for shared libraries through AIX4.2
15455 # and later when we are not doing run time linking.
15456 library_names_spec='${libname}${release}.a $libname.a'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 fi
15459 shlibpath_var=LIBPATH
15460 fi
15461 ;;
15462
15463amigaos*)
15464 case $host_cpu in
15465 powerpc)
15466 # Since July 2007 AmigaOS4 officially supports .so libraries.
15467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 ;;
15470 m68k)
15471 library_names_spec='$libname.ixlibrary $libname.a'
15472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015473 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 +000015474 ;;
15475 esac
15476 ;;
15477
15478beos*)
15479 library_names_spec='${libname}${shared_ext}'
15480 dynamic_linker="$host_os ld.so"
15481 shlibpath_var=LIBRARY_PATH
15482 ;;
15483
15484bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015486 need_version=no
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15493 # the default ld.so.conf also contains /usr/contrib/lib and
15494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15495 # libtool to hard-code these into programs
15496 ;;
15497
15498cygwin* | mingw* | pw32* | cegcc*)
15499 version_type=windows
15500 shrext_cmds=".dll"
15501 need_version=no
15502 need_lib_prefix=no
15503
cristyda16f162011-02-19 23:52:17 +000015504 case $GCC,$cc_basename in
15505 yes,*)
15506 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015507 library_names_spec='$libname.dll.a'
15508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15509 postinstall_cmds='base_file=`basename \${file}`~
15510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15511 dldir=$destdir/`dirname \$dlpath`~
15512 test -d \$dldir || mkdir -p \$dldir~
15513 $install_prog $dir/$dlname \$dldir/$dlname~
15514 chmod a+x \$dldir/$dlname~
15515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15517 fi'
15518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15519 dlpath=$dir/\$dldll~
15520 $RM \$dlpath'
15521 shlibpath_overrides_runpath=yes
15522
15523 case $host_os in
15524 cygwin*)
15525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015527
15528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015529 ;;
15530 mingw* | cegcc*)
15531 # MinGW DLLs use traditional 'lib' prefix
15532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015533 ;;
15534 pw32*)
15535 # pw32 DLLs use 'pw' prefix rather than 'lib'
15536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15537 ;;
15538 esac
cristyda16f162011-02-19 23:52:17 +000015539 dynamic_linker='Win32 ld.exe'
15540 ;;
15541
15542 *,cl*)
15543 # Native MSVC
15544 libname_spec='$name'
15545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15546 library_names_spec='${libname}.dll.lib'
15547
15548 case $build_os in
15549 mingw*)
15550 sys_lib_search_path_spec=
15551 lt_save_ifs=$IFS
15552 IFS=';'
15553 for lt_path in $LIB
15554 do
15555 IFS=$lt_save_ifs
15556 # Let DOS variable expansion print the short 8.3 style file name.
15557 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15558 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15559 done
15560 IFS=$lt_save_ifs
15561 # Convert to MSYS style.
15562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15563 ;;
15564 cygwin*)
15565 # Convert to unix form, then to dos form, then back to unix form
15566 # but this time dos style (no spaces!) so that the unix form looks
15567 # like /cygdrive/c/PROGRA~1:/cygdr...
15568 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15569 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15570 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15571 ;;
15572 *)
15573 sys_lib_search_path_spec="$LIB"
15574 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15575 # It is most probably a Windows format PATH.
15576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15577 else
15578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15579 fi
15580 # FIXME: find the short name or the path components, as spaces are
15581 # common. (e.g. "Program Files" -> "PROGRA~1")
15582 ;;
15583 esac
15584
15585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15586 postinstall_cmds='base_file=`basename \${file}`~
15587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15588 dldir=$destdir/`dirname \$dlpath`~
15589 test -d \$dldir || mkdir -p \$dldir~
15590 $install_prog $dir/$dlname \$dldir/$dlname'
15591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15592 dlpath=$dir/\$dldll~
15593 $RM \$dlpath'
15594 shlibpath_overrides_runpath=yes
15595 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015596 ;;
15597
15598 *)
cristyda16f162011-02-19 23:52:17 +000015599 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015601 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015602 ;;
15603 esac
cristy73bd4a52010-10-05 11:24:23 +000015604 # FIXME: first we should search . and the directory the executable is in
15605 shlibpath_var=PATH
15606 ;;
15607
15608darwin* | rhapsody*)
15609 dynamic_linker="$host_os dyld"
15610 version_type=darwin
15611 need_lib_prefix=no
15612 need_version=no
15613 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15614 soname_spec='${libname}${release}${major}$shared_ext'
15615 shlibpath_overrides_runpath=yes
15616 shlibpath_var=DYLD_LIBRARY_PATH
15617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15618
15619 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15621 ;;
15622
15623dgux*)
cristy99bd5232011-12-07 14:38:20 +000015624 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 ;;
15631
cristy73bd4a52010-10-05 11:24:23 +000015632freebsd* | dragonfly*)
15633 # DragonFly does not have aout. When/if they implement a new
15634 # versioning mechanism, adjust this.
15635 if test -x /usr/bin/objformat; then
15636 objformat=`/usr/bin/objformat`
15637 else
15638 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015639 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015640 *) objformat=elf ;;
15641 esac
15642 fi
15643 version_type=freebsd-$objformat
15644 case $version_type in
15645 freebsd-elf*)
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15647 need_version=no
15648 need_lib_prefix=no
15649 ;;
15650 freebsd-*)
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15652 need_version=yes
15653 ;;
15654 esac
15655 shlibpath_var=LD_LIBRARY_PATH
15656 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015657 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015658 shlibpath_overrides_runpath=yes
15659 ;;
15660 freebsd3.[01]* | freebsdelf3.[01]*)
15661 shlibpath_overrides_runpath=yes
15662 hardcode_into_libs=yes
15663 ;;
15664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15666 shlibpath_overrides_runpath=no
15667 hardcode_into_libs=yes
15668 ;;
15669 *) # from 4.6 on, and DragonFly
15670 shlibpath_overrides_runpath=yes
15671 hardcode_into_libs=yes
15672 ;;
15673 esac
15674 ;;
15675
15676gnu*)
cristy99bd5232011-12-07 14:38:20 +000015677 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015683 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015684 hardcode_into_libs=yes
15685 ;;
15686
cristy0c60a692010-11-04 01:09:47 +000015687haiku*)
cristy99bd5232011-12-07 14:38:20 +000015688 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015689 need_lib_prefix=no
15690 need_version=no
15691 dynamic_linker="$host_os runtime_loader"
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15693 soname_spec='${libname}${release}${shared_ext}$major'
15694 shlibpath_var=LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15697 hardcode_into_libs=yes
15698 ;;
15699
cristy73bd4a52010-10-05 11:24:23 +000015700hpux9* | hpux10* | hpux11*)
15701 # Give a soname corresponding to the major version so that dld.sl refuses to
15702 # link against other versions.
15703 version_type=sunos
15704 need_lib_prefix=no
15705 need_version=no
15706 case $host_cpu in
15707 ia64*)
15708 shrext_cmds='.so'
15709 hardcode_into_libs=yes
15710 dynamic_linker="$host_os dld.so"
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 if test "X$HPUX_IA64_MODE" = X32; then
15716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15717 else
15718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15719 fi
15720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15721 ;;
15722 hppa*64*)
15723 shrext_cmds='.sl'
15724 hardcode_into_libs=yes
15725 dynamic_linker="$host_os dld.sl"
15726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15732 ;;
15733 *)
15734 shrext_cmds='.sl'
15735 dynamic_linker="$host_os dld.sl"
15736 shlibpath_var=SHLIB_PATH
15737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 ;;
15741 esac
cristy0c60a692010-11-04 01:09:47 +000015742 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015743 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015744 # or fails outright, so override atomically:
15745 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015746 ;;
15747
15748interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015749 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015750 need_lib_prefix=no
15751 need_version=no
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=no
15757 hardcode_into_libs=yes
15758 ;;
15759
15760irix5* | irix6* | nonstopux*)
15761 case $host_os in
15762 nonstopux*) version_type=nonstopux ;;
15763 *)
15764 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015765 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015766 else
15767 version_type=irix
15768 fi ;;
15769 esac
15770 need_lib_prefix=no
15771 need_version=no
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15774 case $host_os in
15775 irix5* | nonstopux*)
15776 libsuff= shlibsuff=
15777 ;;
15778 *)
15779 case $LD in # libtool.m4 will add one of these switches to LD
15780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15781 libsuff= shlibsuff= libmagic=32-bit;;
15782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15783 libsuff=32 shlibsuff=N32 libmagic=N32;;
15784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15786 *) libsuff= shlibsuff= libmagic=never-match;;
15787 esac
15788 ;;
15789 esac
15790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15791 shlibpath_overrides_runpath=no
15792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15794 hardcode_into_libs=yes
15795 ;;
15796
15797# No shared lib support for Linux oldld, aout, or coff.
15798linux*oldld* | linux*aout* | linux*coff*)
15799 dynamic_linker=no
15800 ;;
15801
cristy99bd5232011-12-07 14:38:20 +000015802# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015803linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015804 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015805 need_lib_prefix=no
15806 need_version=no
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015812
cristy73bd4a52010-10-05 11:24:23 +000015813 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015814 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015815 $as_echo_n "(cached) " >&6
15816else
15817 lt_cv_shlibpath_overrides_runpath=no
15818 save_LDFLAGS=$LDFLAGS
15819 save_libdir=$libdir
15820 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15821 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015823/* end confdefs.h. */
15824
15825int
15826main ()
15827{
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833if ac_fn_c_try_link "$LINENO"; then :
15834 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015835 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015836fi
15837fi
15838rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015840 LDFLAGS=$save_LDFLAGS
15841 libdir=$save_libdir
15842
15843fi
15844
15845 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015846
15847 # This implies no fast_install, which is unacceptable.
15848 # Some rework will be needed to allow for fast_install
15849 # before this can be enabled.
15850 hardcode_into_libs=yes
15851
15852 # Add ABI-specific directories to the system library path.
15853 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15854
15855 # Append ld.so.conf contents to the search path
15856 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015857 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 +000015858 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015859
cristy73bd4a52010-10-05 11:24:23 +000015860 fi
15861
15862 # We used to test for /lib/ld.so.1 and disable shared libraries on
15863 # powerpc, because MkLinux only supported shared libraries with the
15864 # GNU dynamic linker. Since this was broken with cross compilers,
15865 # most powerpc-linux boxes support dynamic linking these days and
15866 # people can always --disable-shared, the test was removed, and we
15867 # assume the GNU/Linux dynamic linker is in use.
15868 dynamic_linker='GNU/Linux ld.so'
15869 ;;
15870
15871netbsd*)
15872 version_type=sunos
15873 need_lib_prefix=no
15874 need_version=no
15875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878 dynamic_linker='NetBSD (a.out) ld.so'
15879 else
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 dynamic_linker='NetBSD ld.elf_so'
15883 fi
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15886 hardcode_into_libs=yes
15887 ;;
15888
15889newsos6)
cristy99bd5232011-12-07 14:38:20 +000015890 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 ;;
15895
15896*nto* | *qnx*)
15897 version_type=qnx
15898 need_lib_prefix=no
15899 need_version=no
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=no
15904 hardcode_into_libs=yes
15905 dynamic_linker='ldqnx.so'
15906 ;;
15907
15908openbsd*)
15909 version_type=sunos
15910 sys_lib_dlsearch_path_spec="/usr/lib"
15911 need_lib_prefix=no
15912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15913 case $host_os in
15914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15915 *) need_version=no ;;
15916 esac
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15921 case $host_os in
15922 openbsd2.[89] | openbsd2.[89].*)
15923 shlibpath_overrides_runpath=no
15924 ;;
15925 *)
15926 shlibpath_overrides_runpath=yes
15927 ;;
15928 esac
15929 else
15930 shlibpath_overrides_runpath=yes
15931 fi
15932 ;;
15933
15934os2*)
15935 libname_spec='$name'
15936 shrext_cmds=".dll"
15937 need_lib_prefix=no
15938 library_names_spec='$libname${shared_ext} $libname.a'
15939 dynamic_linker='OS/2 ld.exe'
15940 shlibpath_var=LIBPATH
15941 ;;
15942
15943osf3* | osf4* | osf5*)
15944 version_type=osf
15945 need_lib_prefix=no
15946 need_version=no
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15952 ;;
15953
15954rdos*)
15955 dynamic_linker=no
15956 ;;
15957
15958solaris*)
cristy99bd5232011-12-07 14:38:20 +000015959 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015960 need_lib_prefix=no
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath=yes
15966 hardcode_into_libs=yes
15967 # ldd complains unless libraries are executable
15968 postinstall_cmds='chmod +x $lib'
15969 ;;
15970
15971sunos4*)
15972 version_type=sunos
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15977 if test "$with_gnu_ld" = yes; then
15978 need_lib_prefix=no
15979 fi
15980 need_version=yes
15981 ;;
15982
15983sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000015984 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 case $host_vendor in
15989 sni)
15990 shlibpath_overrides_runpath=no
15991 need_lib_prefix=no
15992 runpath_var=LD_RUN_PATH
15993 ;;
15994 siemens)
15995 need_lib_prefix=no
15996 ;;
15997 motorola)
15998 need_lib_prefix=no
15999 need_version=no
16000 shlibpath_overrides_runpath=no
16001 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16002 ;;
16003 esac
16004 ;;
16005
16006sysv4*MP*)
16007 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016009 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16010 soname_spec='$libname${shared_ext}.$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 fi
16013 ;;
16014
16015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16016 version_type=freebsd-elf
16017 need_lib_prefix=no
16018 need_version=no
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=yes
16023 hardcode_into_libs=yes
16024 if test "$with_gnu_ld" = yes; then
16025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16026 else
16027 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16028 case $host_os in
16029 sco3.2v5*)
16030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16031 ;;
16032 esac
16033 fi
16034 sys_lib_dlsearch_path_spec='/usr/lib'
16035 ;;
16036
16037tpf*)
16038 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016039 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=no
16045 hardcode_into_libs=yes
16046 ;;
16047
16048uts4*)
cristy99bd5232011-12-07 14:38:20 +000016049 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 ;;
16054
16055*)
16056 dynamic_linker=no
16057 ;;
16058esac
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16060$as_echo "$dynamic_linker" >&6; }
16061test "$dynamic_linker" = no && can_build_shared=no
16062
16063variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16064if test "$GCC" = yes; then
16065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16066fi
16067
16068if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16069 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16070fi
16071if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16073fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
cristy0c60a692010-11-04 01:09:47 +000016161
16162
16163
16164
16165
cristy73bd4a52010-10-05 11:24:23 +000016166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16167$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16168hardcode_action=
16169if test -n "$hardcode_libdir_flag_spec" ||
16170 test -n "$runpath_var" ||
16171 test "X$hardcode_automatic" = "Xyes" ; then
16172
16173 # We can hardcode non-existent directories.
16174 if test "$hardcode_direct" != no &&
16175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16176 # have to relink, otherwise we might link with an installed library
16177 # when we should be linking with a yet-to-be-installed one
16178 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16179 test "$hardcode_minus_L" != no; then
16180 # Linking always hardcodes the temporary library directory.
16181 hardcode_action=relink
16182 else
16183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16184 hardcode_action=immediate
16185 fi
16186else
16187 # We cannot hardcode anything, or else we can only hardcode existing
16188 # directories.
16189 hardcode_action=unsupported
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16192$as_echo "$hardcode_action" >&6; }
16193
16194if test "$hardcode_action" = relink ||
16195 test "$inherit_rpath" = yes; then
16196 # Fast installation is not supported
16197 enable_fast_install=no
16198elif test "$shlibpath_overrides_runpath" = yes ||
16199 test "$enable_shared" = no; then
16200 # Fast installation is not necessary
16201 enable_fast_install=needless
16202fi
16203
16204
16205
16206
16207
16208
16209 if test "x$enable_dlopen" != xyes; then
16210 enable_dlopen=unknown
16211 enable_dlopen_self=unknown
16212 enable_dlopen_self_static=unknown
16213else
16214 lt_cv_dlopen=no
16215 lt_cv_dlopen_libs=
16216
16217 case $host_os in
16218 beos*)
16219 lt_cv_dlopen="load_add_on"
16220 lt_cv_dlopen_libs=
16221 lt_cv_dlopen_self=yes
16222 ;;
16223
16224 mingw* | pw32* | cegcc*)
16225 lt_cv_dlopen="LoadLibrary"
16226 lt_cv_dlopen_libs=
16227 ;;
16228
16229 cygwin*)
16230 lt_cv_dlopen="dlopen"
16231 lt_cv_dlopen_libs=
16232 ;;
16233
16234 darwin*)
16235 # if libdl is installed we need to link against it
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16237$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016238if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016239 $as_echo_n "(cached) " >&6
16240else
16241 ac_check_lib_save_LIBS=$LIBS
16242LIBS="-ldl $LIBS"
16243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h. */
16245
16246/* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252char dlopen ();
16253int
16254main ()
16255{
16256return dlopen ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261if ac_fn_c_try_link "$LINENO"; then :
16262 ac_cv_lib_dl_dlopen=yes
16263else
16264 ac_cv_lib_dl_dlopen=no
16265fi
16266rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268LIBS=$ac_check_lib_save_LIBS
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16271$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016272if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16274else
16275
16276 lt_cv_dlopen="dyld"
16277 lt_cv_dlopen_libs=
16278 lt_cv_dlopen_self=yes
16279
16280fi
16281
16282 ;;
16283
16284 *)
16285 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016286if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016287 lt_cv_dlopen="shl_load"
16288else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16290$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016291if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016292 $as_echo_n "(cached) " >&6
16293else
16294 ac_check_lib_save_LIBS=$LIBS
16295LIBS="-ldld $LIBS"
16296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h. */
16298
16299/* Override any GCC internal prototype to avoid an error.
16300 Use char because int might match the return type of a GCC
16301 builtin and then its argument prototype would still apply. */
16302#ifdef __cplusplus
16303extern "C"
16304#endif
16305char shl_load ();
16306int
16307main ()
16308{
16309return shl_load ();
16310 ;
16311 return 0;
16312}
16313_ACEOF
16314if ac_fn_c_try_link "$LINENO"; then :
16315 ac_cv_lib_dld_shl_load=yes
16316else
16317 ac_cv_lib_dld_shl_load=no
16318fi
16319rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321LIBS=$ac_check_lib_save_LIBS
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16324$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016325if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016326 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16327else
16328 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016329if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016330 lt_cv_dlopen="dlopen"
16331else
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16333$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016334if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016335 $as_echo_n "(cached) " >&6
16336else
16337 ac_check_lib_save_LIBS=$LIBS
16338LIBS="-ldl $LIBS"
16339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h. */
16341
16342/* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply. */
16345#ifdef __cplusplus
16346extern "C"
16347#endif
16348char dlopen ();
16349int
16350main ()
16351{
16352return dlopen ();
16353 ;
16354 return 0;
16355}
16356_ACEOF
16357if ac_fn_c_try_link "$LINENO"; then :
16358 ac_cv_lib_dl_dlopen=yes
16359else
16360 ac_cv_lib_dl_dlopen=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364LIBS=$ac_check_lib_save_LIBS
16365fi
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16367$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016368if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16370else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16372$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016373if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016374 $as_echo_n "(cached) " >&6
16375else
16376 ac_check_lib_save_LIBS=$LIBS
16377LIBS="-lsvld $LIBS"
16378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h. */
16380
16381/* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16384#ifdef __cplusplus
16385extern "C"
16386#endif
16387char dlopen ();
16388int
16389main ()
16390{
16391return dlopen ();
16392 ;
16393 return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_link "$LINENO"; then :
16397 ac_cv_lib_svld_dlopen=yes
16398else
16399 ac_cv_lib_svld_dlopen=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403LIBS=$ac_check_lib_save_LIBS
16404fi
16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16406$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016407if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16409else
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16411$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016412if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016413 $as_echo_n "(cached) " >&6
16414else
16415 ac_check_lib_save_LIBS=$LIBS
16416LIBS="-ldld $LIBS"
16417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h. */
16419
16420/* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16423#ifdef __cplusplus
16424extern "C"
16425#endif
16426char dld_link ();
16427int
16428main ()
16429{
16430return dld_link ();
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_link "$LINENO"; then :
16436 ac_cv_lib_dld_dld_link=yes
16437else
16438 ac_cv_lib_dld_dld_link=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16442LIBS=$ac_check_lib_save_LIBS
16443fi
16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16445$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016446if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016447 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16448fi
16449
16450
16451fi
16452
16453
16454fi
16455
16456
16457fi
16458
16459
16460fi
16461
16462
16463fi
16464
16465 ;;
16466 esac
16467
16468 if test "x$lt_cv_dlopen" != xno; then
16469 enable_dlopen=yes
16470 else
16471 enable_dlopen=no
16472 fi
16473
16474 case $lt_cv_dlopen in
16475 dlopen)
16476 save_CPPFLAGS="$CPPFLAGS"
16477 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16478
16479 save_LDFLAGS="$LDFLAGS"
16480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16481
16482 save_LIBS="$LIBS"
16483 LIBS="$lt_cv_dlopen_libs $LIBS"
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16486$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016487if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016488 $as_echo_n "(cached) " >&6
16489else
16490 if test "$cross_compiling" = yes; then :
16491 lt_cv_dlopen_self=cross
16492else
16493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16494 lt_status=$lt_dlunknown
16495 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016496#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016497#include "confdefs.h"
16498
16499#if HAVE_DLFCN_H
16500#include <dlfcn.h>
16501#endif
16502
16503#include <stdio.h>
16504
16505#ifdef RTLD_GLOBAL
16506# define LT_DLGLOBAL RTLD_GLOBAL
16507#else
16508# ifdef DL_GLOBAL
16509# define LT_DLGLOBAL DL_GLOBAL
16510# else
16511# define LT_DLGLOBAL 0
16512# endif
16513#endif
16514
16515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16516 find out it does not work in some platform. */
16517#ifndef LT_DLLAZY_OR_NOW
16518# ifdef RTLD_LAZY
16519# define LT_DLLAZY_OR_NOW RTLD_LAZY
16520# else
16521# ifdef DL_LAZY
16522# define LT_DLLAZY_OR_NOW DL_LAZY
16523# else
16524# ifdef RTLD_NOW
16525# define LT_DLLAZY_OR_NOW RTLD_NOW
16526# else
16527# ifdef DL_NOW
16528# define LT_DLLAZY_OR_NOW DL_NOW
16529# else
16530# define LT_DLLAZY_OR_NOW 0
16531# endif
16532# endif
16533# endif
16534# endif
16535#endif
16536
cristy0c60a692010-11-04 01:09:47 +000016537/* When -fvisbility=hidden is used, assume the code has been annotated
16538 correspondingly for the symbols needed. */
16539#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016540int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016541#endif
16542
cristyda16f162011-02-19 23:52:17 +000016543int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016544int main ()
16545{
16546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16547 int status = $lt_dlunknown;
16548
16549 if (self)
16550 {
16551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016552 else
16553 {
16554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16555 else puts (dlerror ());
16556 }
cristy73bd4a52010-10-05 11:24:23 +000016557 /* dlclose (self); */
16558 }
16559 else
16560 puts (dlerror ());
16561
16562 return status;
16563}
16564_LT_EOF
16565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16566 (eval $ac_link) 2>&5
16567 ac_status=$?
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16570 (./conftest; exit; ) >&5 2>/dev/null
16571 lt_status=$?
16572 case x$lt_status in
16573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16576 esac
16577 else :
16578 # compilation failed
16579 lt_cv_dlopen_self=no
16580 fi
16581fi
16582rm -fr conftest*
16583
16584
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16587$as_echo "$lt_cv_dlopen_self" >&6; }
16588
16589 if test "x$lt_cv_dlopen_self" = xyes; then
16590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16592$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016593if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016594 $as_echo_n "(cached) " >&6
16595else
16596 if test "$cross_compiling" = yes; then :
16597 lt_cv_dlopen_self_static=cross
16598else
16599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16600 lt_status=$lt_dlunknown
16601 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016602#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016603#include "confdefs.h"
16604
16605#if HAVE_DLFCN_H
16606#include <dlfcn.h>
16607#endif
16608
16609#include <stdio.h>
16610
16611#ifdef RTLD_GLOBAL
16612# define LT_DLGLOBAL RTLD_GLOBAL
16613#else
16614# ifdef DL_GLOBAL
16615# define LT_DLGLOBAL DL_GLOBAL
16616# else
16617# define LT_DLGLOBAL 0
16618# endif
16619#endif
16620
16621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16622 find out it does not work in some platform. */
16623#ifndef LT_DLLAZY_OR_NOW
16624# ifdef RTLD_LAZY
16625# define LT_DLLAZY_OR_NOW RTLD_LAZY
16626# else
16627# ifdef DL_LAZY
16628# define LT_DLLAZY_OR_NOW DL_LAZY
16629# else
16630# ifdef RTLD_NOW
16631# define LT_DLLAZY_OR_NOW RTLD_NOW
16632# else
16633# ifdef DL_NOW
16634# define LT_DLLAZY_OR_NOW DL_NOW
16635# else
16636# define LT_DLLAZY_OR_NOW 0
16637# endif
16638# endif
16639# endif
16640# endif
16641#endif
16642
cristy0c60a692010-11-04 01:09:47 +000016643/* When -fvisbility=hidden is used, assume the code has been annotated
16644 correspondingly for the symbols needed. */
16645#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016646int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016647#endif
16648
cristyda16f162011-02-19 23:52:17 +000016649int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016650int main ()
16651{
16652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16653 int status = $lt_dlunknown;
16654
16655 if (self)
16656 {
16657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016658 else
16659 {
16660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16661 else puts (dlerror ());
16662 }
cristy73bd4a52010-10-05 11:24:23 +000016663 /* dlclose (self); */
16664 }
16665 else
16666 puts (dlerror ());
16667
16668 return status;
16669}
16670_LT_EOF
16671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16672 (eval $ac_link) 2>&5
16673 ac_status=$?
16674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16676 (./conftest; exit; ) >&5 2>/dev/null
16677 lt_status=$?
16678 case x$lt_status in
16679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16681 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16682 esac
16683 else :
16684 # compilation failed
16685 lt_cv_dlopen_self_static=no
16686 fi
16687fi
16688rm -fr conftest*
16689
16690
16691fi
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16693$as_echo "$lt_cv_dlopen_self_static" >&6; }
16694 fi
16695
16696 CPPFLAGS="$save_CPPFLAGS"
16697 LDFLAGS="$save_LDFLAGS"
16698 LIBS="$save_LIBS"
16699 ;;
16700 esac
16701
16702 case $lt_cv_dlopen_self in
16703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16704 *) enable_dlopen_self=unknown ;;
16705 esac
16706
16707 case $lt_cv_dlopen_self_static in
16708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16709 *) enable_dlopen_self_static=unknown ;;
16710 esac
16711fi
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729striplib=
16730old_striplib=
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16732$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16733if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16737$as_echo "yes" >&6; }
16738else
16739# FIXME - insert some real tests, host_os isn't really good enough
16740 case $host_os in
16741 darwin*)
16742 if test -n "$STRIP" ; then
16743 striplib="$STRIP -x"
16744 old_striplib="$STRIP -S"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16746$as_echo "yes" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749$as_echo "no" >&6; }
16750 fi
16751 ;;
16752 *)
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754$as_echo "no" >&6; }
16755 ;;
16756 esac
16757fi
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770 # Report which library types will actually be built
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16772$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16774$as_echo "$can_build_shared" >&6; }
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16777$as_echo_n "checking whether to build shared libraries... " >&6; }
16778 test "$can_build_shared" = "no" && enable_shared=no
16779
16780 # On AIX, shared libraries and static libraries use the same namespace, and
16781 # are all built from PIC.
16782 case $host_os in
16783 aix3*)
16784 test "$enable_shared" = yes && enable_static=no
16785 if test -n "$RANLIB"; then
16786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16787 postinstall_cmds='$RANLIB $lib'
16788 fi
16789 ;;
16790
16791 aix[4-9]*)
16792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16793 test "$enable_shared" = yes && enable_static=no
16794 fi
16795 ;;
16796 esac
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16798$as_echo "$enable_shared" >&6; }
16799
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16801$as_echo_n "checking whether to build static libraries... " >&6; }
16802 # Make sure either enable_shared or enable_static is yes.
16803 test "$enable_shared" = yes || enable_static=yes
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16805$as_echo "$enable_static" >&6; }
16806
16807
16808
16809
16810fi
16811ac_ext=c
16812ac_cpp='$CPP $CPPFLAGS'
16813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815ac_compiler_gnu=$ac_cv_c_compiler_gnu
16816
16817CC="$lt_save_CC"
16818
cristy0c60a692010-11-04 01:09:47 +000016819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16821 (test "X$CXX" != "Xg++"))) ; then
16822 ac_ext=cpp
16823ac_cpp='$CXXCPP $CPPFLAGS'
16824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16828$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16829if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016830 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016831 $as_echo_n "(cached) " >&6
16832else
16833 # Double quotes because CXXCPP needs to be expanded
16834 for CXXCPP in "$CXX -E" "/lib/cpp"
16835 do
16836 ac_preproc_ok=false
16837for ac_cxx_preproc_warn_flag in '' yes
16838do
16839 # Use a header file that comes with gcc, so configuring glibc
16840 # with a fresh cross-compiler works.
16841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16842 # <limits.h> exists even on freestanding compilers.
16843 # On the NeXT, cc -E runs the code through the compiler's parser,
16844 # not just through cpp. "Syntax error" is here to catch this case.
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846/* end confdefs.h. */
16847#ifdef __STDC__
16848# include <limits.h>
16849#else
16850# include <assert.h>
16851#endif
16852 Syntax error
16853_ACEOF
16854if ac_fn_cxx_try_cpp "$LINENO"; then :
16855
16856else
16857 # Broken: fails on valid input.
16858continue
16859fi
cristyda16f162011-02-19 23:52:17 +000016860rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016861
16862 # OK, works on sane cases. Now check whether nonexistent headers
16863 # can be detected and how.
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h. */
16866#include <ac_nonexistent.h>
16867_ACEOF
16868if ac_fn_cxx_try_cpp "$LINENO"; then :
16869 # Broken: success on invalid input.
16870continue
16871else
16872 # Passes both tests.
16873ac_preproc_ok=:
16874break
16875fi
cristyda16f162011-02-19 23:52:17 +000016876rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016877
16878done
16879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016880rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016881if $ac_preproc_ok; then :
16882 break
16883fi
16884
16885 done
16886 ac_cv_prog_CXXCPP=$CXXCPP
16887
16888fi
16889 CXXCPP=$ac_cv_prog_CXXCPP
16890else
16891 ac_cv_prog_CXXCPP=$CXXCPP
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16894$as_echo "$CXXCPP" >&6; }
16895ac_preproc_ok=false
16896for ac_cxx_preproc_warn_flag in '' yes
16897do
16898 # Use a header file that comes with gcc, so configuring glibc
16899 # with a fresh cross-compiler works.
16900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16901 # <limits.h> exists even on freestanding compilers.
16902 # On the NeXT, cc -E runs the code through the compiler's parser,
16903 # not just through cpp. "Syntax error" is here to catch this case.
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906#ifdef __STDC__
16907# include <limits.h>
16908#else
16909# include <assert.h>
16910#endif
16911 Syntax error
16912_ACEOF
16913if ac_fn_cxx_try_cpp "$LINENO"; then :
16914
16915else
16916 # Broken: fails on valid input.
16917continue
16918fi
cristyda16f162011-02-19 23:52:17 +000016919rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016920
16921 # OK, works on sane cases. Now check whether nonexistent headers
16922 # can be detected and how.
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924/* end confdefs.h. */
16925#include <ac_nonexistent.h>
16926_ACEOF
16927if ac_fn_cxx_try_cpp "$LINENO"; then :
16928 # Broken: success on invalid input.
16929continue
16930else
16931 # Passes both tests.
16932ac_preproc_ok=:
16933break
16934fi
cristyda16f162011-02-19 23:52:17 +000016935rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016936
16937done
16938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016939rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016940if $ac_preproc_ok; then :
16941
16942else
16943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16945as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16946See \`config.log' for more details" "$LINENO" 5; }
16947fi
16948
16949ac_ext=c
16950ac_cpp='$CPP $CPPFLAGS'
16951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16953ac_compiler_gnu=$ac_cv_c_compiler_gnu
16954
16955else
16956 _lt_caught_CXX_error=yes
16957fi
cristy73bd4a52010-10-05 11:24:23 +000016958
16959ac_ext=cpp
16960ac_cpp='$CXXCPP $CPPFLAGS'
16961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16964
16965archive_cmds_need_lc_CXX=no
16966allow_undefined_flag_CXX=
16967always_export_symbols_CXX=no
16968archive_expsym_cmds_CXX=
16969compiler_needs_object_CXX=no
16970export_dynamic_flag_spec_CXX=
16971hardcode_direct_CXX=no
16972hardcode_direct_absolute_CXX=no
16973hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000016974hardcode_libdir_separator_CXX=
16975hardcode_minus_L_CXX=no
16976hardcode_shlibpath_var_CXX=unsupported
16977hardcode_automatic_CXX=no
16978inherit_rpath_CXX=no
16979module_cmds_CXX=
16980module_expsym_cmds_CXX=
16981link_all_deplibs_CXX=unknown
16982old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016983reload_flag_CXX=$reload_flag
16984reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016985no_undefined_flag_CXX=
16986whole_archive_flag_spec_CXX=
16987enable_shared_with_static_runtimes_CXX=no
16988
16989# Source file extension for C++ test sources.
16990ac_ext=cpp
16991
16992# Object file extension for compiled C++ test sources.
16993objext=o
16994objext_CXX=$objext
16995
16996# No sense in running all these tests if we already determined that
16997# the CXX compiler isn't working. Some variables (like enable_shared)
16998# are currently assumed to apply to all compilers on this platform,
16999# and will be corrupted by setting them based on a non-working compiler.
17000if test "$_lt_caught_CXX_error" != yes; then
17001 # Code to be used in simple compile tests
17002 lt_simple_compile_test_code="int some_variable = 0;"
17003
17004 # Code to be used in simple link tests
17005 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17006
17007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17008
17009
17010
17011
17012
17013
17014# If no C compiler was specified, use CC.
17015LTCC=${LTCC-"$CC"}
17016
17017# If no C compiler flags were specified, use CFLAGS.
17018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17019
17020# Allow CC to be a program name with arguments.
17021compiler=$CC
17022
17023
17024 # save warnings/boilerplate of simple test code
17025 ac_outfile=conftest.$ac_objext
17026echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17027eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17028_lt_compiler_boilerplate=`cat conftest.err`
17029$RM conftest*
17030
17031 ac_outfile=conftest.$ac_objext
17032echo "$lt_simple_link_test_code" >conftest.$ac_ext
17033eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17034_lt_linker_boilerplate=`cat conftest.err`
17035$RM -r conftest*
17036
17037
17038 # Allow CC to be a program name with arguments.
17039 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017040 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017041 lt_save_LD=$LD
17042 lt_save_GCC=$GCC
17043 GCC=$GXX
17044 lt_save_with_gnu_ld=$with_gnu_ld
17045 lt_save_path_LD=$lt_cv_path_LD
17046 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17047 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17048 else
17049 $as_unset lt_cv_prog_gnu_ld
17050 fi
17051 if test -n "${lt_cv_path_LDCXX+set}"; then
17052 lt_cv_path_LD=$lt_cv_path_LDCXX
17053 else
17054 $as_unset lt_cv_path_LD
17055 fi
17056 test -z "${LDCXX+set}" || LD=$LDCXX
17057 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017058 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017059 compiler=$CC
17060 compiler_CXX=$CC
17061 for cc_temp in $compiler""; do
17062 case $cc_temp in
17063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17065 \-*) ;;
17066 *) break;;
17067 esac
17068done
cristy0c60a692010-11-04 01:09:47 +000017069cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017070
17071
17072 if test -n "$compiler"; then
17073 # We don't want -fno-exception when compiling C++ code, so set the
17074 # no_builtin_flag separately
17075 if test "$GXX" = yes; then
17076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17077 else
17078 lt_prog_compiler_no_builtin_flag_CXX=
17079 fi
17080
17081 if test "$GXX" = yes; then
17082 # Set up default GNU C++ configuration
17083
17084
17085
17086# Check whether --with-gnu-ld was given.
17087if test "${with_gnu_ld+set}" = set; then :
17088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17089else
17090 with_gnu_ld=no
17091fi
17092
17093ac_prog=ld
17094if test "$GCC" = yes; then
17095 # Check if gcc -print-prog-name=ld gives a path.
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17097$as_echo_n "checking for ld used by $CC... " >&6; }
17098 case $host in
17099 *-*-mingw*)
17100 # gcc leaves a trailing carriage return which upsets mingw
17101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17102 *)
17103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17104 esac
17105 case $ac_prog in
17106 # Accept absolute paths.
17107 [\\/]* | ?:[\\/]*)
17108 re_direlt='/[^/][^/]*/\.\./'
17109 # Canonicalize the pathname of ld
17110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17113 done
17114 test -z "$LD" && LD="$ac_prog"
17115 ;;
17116 "")
17117 # If it fails, then pretend we aren't using GCC.
17118 ac_prog=ld
17119 ;;
17120 *)
17121 # If it is relative, then search for the first ld in PATH.
17122 with_gnu_ld=unknown
17123 ;;
17124 esac
17125elif test "$with_gnu_ld" = yes; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17127$as_echo_n "checking for GNU ld... " >&6; }
17128else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17130$as_echo_n "checking for non-GNU ld... " >&6; }
17131fi
cristyda16f162011-02-19 23:52:17 +000017132if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017133 $as_echo_n "(cached) " >&6
17134else
17135 if test -z "$LD"; then
17136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17137 for ac_dir in $PATH; do
17138 IFS="$lt_save_ifs"
17139 test -z "$ac_dir" && ac_dir=.
17140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17141 lt_cv_path_LD="$ac_dir/$ac_prog"
17142 # Check to see if the program is GNU ld. I'd rather use --version,
17143 # but apparently some variants of GNU ld only accept -v.
17144 # Break only if it was the GNU/non-GNU ld that we prefer.
17145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17146 *GNU* | *'with BFD'*)
17147 test "$with_gnu_ld" != no && break
17148 ;;
17149 *)
17150 test "$with_gnu_ld" != yes && break
17151 ;;
17152 esac
17153 fi
17154 done
17155 IFS="$lt_save_ifs"
17156else
17157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17158fi
17159fi
17160
17161LD="$lt_cv_path_LD"
17162if test -n "$LD"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17164$as_echo "$LD" >&6; }
17165else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167$as_echo "no" >&6; }
17168fi
cristy98dddb52010-11-04 00:30:15 +000017169test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17171$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017172if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017173 $as_echo_n "(cached) " >&6
17174else
17175 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17176case `$LD -v 2>&1 </dev/null` in
17177*GNU* | *'with BFD'*)
17178 lt_cv_prog_gnu_ld=yes
17179 ;;
17180*)
17181 lt_cv_prog_gnu_ld=no
17182 ;;
17183esac
17184fi
17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17186$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17187with_gnu_ld=$lt_cv_prog_gnu_ld
17188
17189
17190
17191
17192
17193
17194
17195 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17196 # archiving commands below assume that GNU ld is being used.
17197 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017198 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17199 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 +000017200
17201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17203
17204 # If archive_cmds runs LD, not CC, wlarc should be empty
17205 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17206 # investigate it a little bit more. (MM)
17207 wlarc='${wl}'
17208
17209 # ancient GNU ld didn't support --whole-archive et. al.
17210 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17211 $GREP 'no-whole-archive' > /dev/null; then
17212 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17213 else
17214 whole_archive_flag_spec_CXX=
17215 fi
17216 else
17217 with_gnu_ld=no
17218 wlarc=
17219
17220 # A generic and very simple default shared library creation
17221 # command for GNU C++ for the case where it uses the native
17222 # linker, instead of GNU ld. If possible, this setting should
17223 # overridden to take advantage of the native linker features on
17224 # the platform it is being used on.
17225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17226 fi
17227
17228 # Commands to make compiler produce verbose output that lists
17229 # what "hidden" libraries, object files and flags are used when
17230 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017232
17233 else
17234 GXX=no
17235 with_gnu_ld=no
17236 wlarc=
17237 fi
17238
17239 # PORTME: fill in a description of your system's C++ link characteristics
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17241$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17242 ld_shlibs_CXX=yes
17243 case $host_os in
17244 aix3*)
17245 # FIXME: insert proper C++ library support
17246 ld_shlibs_CXX=no
17247 ;;
17248 aix[4-9]*)
17249 if test "$host_cpu" = ia64; then
17250 # On IA64, the linker does run time linking by default, so we don't
17251 # have to do anything special.
17252 aix_use_runtimelinking=no
17253 exp_sym_flag='-Bexport'
17254 no_entry_flag=""
17255 else
17256 aix_use_runtimelinking=no
17257
17258 # Test if we are trying to use run time linking or normal
17259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17260 # need to do runtime linking.
17261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17262 for ld_flag in $LDFLAGS; do
17263 case $ld_flag in
17264 *-brtl*)
17265 aix_use_runtimelinking=yes
17266 break
17267 ;;
17268 esac
17269 done
17270 ;;
17271 esac
17272
17273 exp_sym_flag='-bexport'
17274 no_entry_flag='-bnoentry'
17275 fi
17276
17277 # When large executables or shared objects are built, AIX ld can
17278 # have problems creating the table of contents. If linking a library
17279 # or program results in "error TOC overflow" add -mminimal-toc to
17280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17282
17283 archive_cmds_CXX=''
17284 hardcode_direct_CXX=yes
17285 hardcode_direct_absolute_CXX=yes
17286 hardcode_libdir_separator_CXX=':'
17287 link_all_deplibs_CXX=yes
17288 file_list_spec_CXX='${wl}-f,'
17289
17290 if test "$GXX" = yes; then
17291 case $host_os in aix4.[012]|aix4.[012].*)
17292 # We only want to do this on AIX 4.2 and lower, the check
17293 # below for broken collect2 doesn't work under 4.3+
17294 collect2name=`${CC} -print-prog-name=collect2`
17295 if test -f "$collect2name" &&
17296 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17297 then
17298 # We have reworked collect2
17299 :
17300 else
17301 # We have old collect2
17302 hardcode_direct_CXX=unsupported
17303 # It fails to find uninstalled libraries when the uninstalled
17304 # path is not listed in the libpath. Setting hardcode_minus_L
17305 # to unsupported forces relinking
17306 hardcode_minus_L_CXX=yes
17307 hardcode_libdir_flag_spec_CXX='-L$libdir'
17308 hardcode_libdir_separator_CXX=
17309 fi
17310 esac
17311 shared_flag='-shared'
17312 if test "$aix_use_runtimelinking" = yes; then
17313 shared_flag="$shared_flag "'${wl}-G'
17314 fi
17315 else
17316 # not using gcc
17317 if test "$host_cpu" = ia64; then
17318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17319 # chokes on -Wl,-G. The following line is correct:
17320 shared_flag='-G'
17321 else
17322 if test "$aix_use_runtimelinking" = yes; then
17323 shared_flag='${wl}-G'
17324 else
17325 shared_flag='${wl}-bM:SRE'
17326 fi
17327 fi
17328 fi
17329
17330 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17331 # It seems that -bexpall does not export symbols beginning with
17332 # underscore (_), so it is better to generate a list of symbols to
17333 # export.
17334 always_export_symbols_CXX=yes
17335 if test "$aix_use_runtimelinking" = yes; then
17336 # Warning - without using the other runtime loading flags (-brtl),
17337 # -berok will link without error, but may produce a broken library.
17338 allow_undefined_flag_CXX='-berok'
17339 # Determine the default libpath from the value encoded in an empty
17340 # executable.
cristyda16f162011-02-19 23:52:17 +000017341 if test "${lt_cv_aix_libpath+set}" = set; then
17342 aix_libpath=$lt_cv_aix_libpath
17343else
17344 if ${lt_cv_aix_libpath__CXX+:} false; then :
17345 $as_echo_n "(cached) " >&6
17346else
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017348/* end confdefs.h. */
17349
17350int
17351main ()
17352{
17353
17354 ;
17355 return 0;
17356}
17357_ACEOF
17358if ac_fn_cxx_try_link "$LINENO"; then :
17359
cristyda16f162011-02-19 23:52:17 +000017360 lt_aix_libpath_sed='
17361 /Import File Strings/,/^$/ {
17362 /^0/ {
17363 s/^0 *\([^ ]*\) *$/\1/
17364 p
17365 }
17366 }'
17367 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368 # Check for a 64-bit object if we didn't find anything.
17369 if test -z "$lt_cv_aix_libpath__CXX"; then
17370 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17371 fi
cristy73bd4a52010-10-05 11:24:23 +000017372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017375 if test -z "$lt_cv_aix_libpath__CXX"; then
17376 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17377 fi
17378
17379fi
17380
17381 aix_libpath=$lt_cv_aix_libpath__CXX
17382fi
cristy73bd4a52010-10-05 11:24:23 +000017383
17384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17385
cristy0c60a692010-11-04 01:09:47 +000017386 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 +000017387 else
17388 if test "$host_cpu" = ia64; then
17389 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17390 allow_undefined_flag_CXX="-z nodefs"
17391 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"
17392 else
17393 # Determine the default libpath from the value encoded in an
17394 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017395 if test "${lt_cv_aix_libpath+set}" = set; then
17396 aix_libpath=$lt_cv_aix_libpath
17397else
17398 if ${lt_cv_aix_libpath__CXX+:} false; then :
17399 $as_echo_n "(cached) " >&6
17400else
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017402/* end confdefs.h. */
17403
17404int
17405main ()
17406{
17407
17408 ;
17409 return 0;
17410}
17411_ACEOF
17412if ac_fn_cxx_try_link "$LINENO"; then :
17413
cristyda16f162011-02-19 23:52:17 +000017414 lt_aix_libpath_sed='
17415 /Import File Strings/,/^$/ {
17416 /^0/ {
17417 s/^0 *\([^ ]*\) *$/\1/
17418 p
17419 }
17420 }'
17421 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$lt_cv_aix_libpath__CXX"; then
17424 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17425 fi
cristy73bd4a52010-10-05 11:24:23 +000017426fi
17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017429 if test -z "$lt_cv_aix_libpath__CXX"; then
17430 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17431 fi
17432
17433fi
17434
17435 aix_libpath=$lt_cv_aix_libpath__CXX
17436fi
cristy73bd4a52010-10-05 11:24:23 +000017437
17438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17439 # Warning - without using the other run time loading flags,
17440 # -berok will link without error, but may produce a broken library.
17441 no_undefined_flag_CXX=' ${wl}-bernotok'
17442 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017443 if test "$with_gnu_ld" = yes; then
17444 # We only use this code for GNU lds that support --whole-archive.
17445 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17446 else
17447 # Exported symbols can be pulled into shared objects from archives
17448 whole_archive_flag_spec_CXX='$convenience'
17449 fi
cristy73bd4a52010-10-05 11:24:23 +000017450 archive_cmds_need_lc_CXX=yes
17451 # This is similar to how AIX traditionally builds its shared
17452 # libraries.
17453 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'
17454 fi
17455 fi
17456 ;;
17457
17458 beos*)
17459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17460 allow_undefined_flag_CXX=unsupported
17461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17462 # support --undefined. This deserves some investigation. FIXME
17463 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 else
17465 ld_shlibs_CXX=no
17466 fi
17467 ;;
17468
17469 chorus*)
17470 case $cc_basename in
17471 *)
17472 # FIXME: insert proper C++ library support
17473 ld_shlibs_CXX=no
17474 ;;
17475 esac
17476 ;;
17477
17478 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017479 case $GXX,$cc_basename in
17480 ,cl* | no,cl*)
17481 # Native MSVC
17482 # hardcode_libdir_flag_spec is actually meaningless, as there is
17483 # no search path for DLLs.
17484 hardcode_libdir_flag_spec_CXX=' '
17485 allow_undefined_flag_CXX=unsupported
17486 always_export_symbols_CXX=yes
17487 file_list_spec_CXX='@'
17488 # Tell ltmain to make .lib files, not .a files.
17489 libext=lib
17490 # Tell ltmain to make .dll files, not .so files.
17491 shrext_cmds=".dll"
17492 # FIXME: Setting linknames here is a bad hack.
17493 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17494 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17495 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17496 else
17497 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17498 fi~
17499 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17500 linknames='
17501 # The linker will not automatically build a static lib if we build a DLL.
17502 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17503 enable_shared_with_static_runtimes_CXX=yes
17504 # Don't use ranlib
17505 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17506 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17507 lt_tool_outputfile="@TOOL_OUTPUT@"~
17508 case $lt_outputfile in
17509 *.exe|*.EXE) ;;
17510 *)
17511 lt_outputfile="$lt_outputfile.exe"
17512 lt_tool_outputfile="$lt_tool_outputfile.exe"
17513 ;;
17514 esac~
17515 func_to_tool_file "$lt_outputfile"~
17516 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17517 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17518 $RM "$lt_outputfile.manifest";
17519 fi'
17520 ;;
17521 *)
17522 # g++
17523 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17524 # as there is no search path for DLLs.
17525 hardcode_libdir_flag_spec_CXX='-L$libdir'
17526 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17527 allow_undefined_flag_CXX=unsupported
17528 always_export_symbols_CXX=no
17529 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017530
cristyda16f162011-02-19 23:52:17 +000017531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17532 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'
17533 # If the export-symbols file already is a .def file (1st line
17534 # is EXPORTS), use it as is; otherwise, prepend...
17535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17536 cp $export_symbols $output_objdir/$soname.def;
17537 else
17538 echo EXPORTS > $output_objdir/$soname.def;
17539 cat $export_symbols >> $output_objdir/$soname.def;
17540 fi~
17541 $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'
17542 else
17543 ld_shlibs_CXX=no
17544 fi
17545 ;;
17546 esac
17547 ;;
cristy73bd4a52010-10-05 11:24:23 +000017548 darwin* | rhapsody*)
17549
17550
17551 archive_cmds_need_lc_CXX=no
17552 hardcode_direct_CXX=no
17553 hardcode_automatic_CXX=yes
17554 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017555 if test "$lt_cv_ld_force_load" = "yes"; then
17556 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 +000017557
cristy0c60a692010-11-04 01:09:47 +000017558 else
17559 whole_archive_flag_spec_CXX=''
17560 fi
cristy73bd4a52010-10-05 11:24:23 +000017561 link_all_deplibs_CXX=yes
17562 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17563 case $cc_basename in
17564 ifort*) _lt_dar_can_shared=yes ;;
17565 *) _lt_dar_can_shared=$GCC ;;
17566 esac
17567 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017568 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017569 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}"
17570 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17571 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}"
17572 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}"
17573 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17574 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}"
17575 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}"
17576 fi
17577
17578 else
17579 ld_shlibs_CXX=no
17580 fi
17581
17582 ;;
17583
17584 dgux*)
17585 case $cc_basename in
17586 ec++*)
17587 # FIXME: insert proper C++ library support
17588 ld_shlibs_CXX=no
17589 ;;
17590 ghcx*)
17591 # Green Hills C++ Compiler
17592 # FIXME: insert proper C++ library support
17593 ld_shlibs_CXX=no
17594 ;;
17595 *)
17596 # FIXME: insert proper C++ library support
17597 ld_shlibs_CXX=no
17598 ;;
17599 esac
17600 ;;
17601
cristy99bd5232011-12-07 14:38:20 +000017602 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017603 # C++ shared libraries reported to be fairly broken before
17604 # switch to ELF
17605 ld_shlibs_CXX=no
17606 ;;
17607
17608 freebsd-elf*)
17609 archive_cmds_need_lc_CXX=no
17610 ;;
17611
17612 freebsd* | dragonfly*)
17613 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17614 # conventions
17615 ld_shlibs_CXX=yes
17616 ;;
17617
17618 gnu*)
17619 ;;
17620
cristy0c60a692010-11-04 01:09:47 +000017621 haiku*)
17622 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 link_all_deplibs_CXX=yes
17624 ;;
17625
cristy73bd4a52010-10-05 11:24:23 +000017626 hpux9*)
17627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17628 hardcode_libdir_separator_CXX=:
17629 export_dynamic_flag_spec_CXX='${wl}-E'
17630 hardcode_direct_CXX=yes
17631 hardcode_minus_L_CXX=yes # Not in the search PATH,
17632 # but as the default
17633 # location of the library.
17634
17635 case $cc_basename in
17636 CC*)
17637 # FIXME: insert proper C++ library support
17638 ld_shlibs_CXX=no
17639 ;;
17640 aCC*)
17641 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'
17642 # Commands to make compiler produce verbose output that lists
17643 # what "hidden" libraries, object files and flags are used when
17644 # linking a shared library.
17645 #
17646 # There doesn't appear to be a way to prevent this compiler from
17647 # explicitly linking system object files so we need to strip them
17648 # from the output so that they don't get included in the library
17649 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017650 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 +000017651 ;;
17652 *)
17653 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017654 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 +000017655 else
17656 # FIXME: insert proper C++ library support
17657 ld_shlibs_CXX=no
17658 fi
17659 ;;
17660 esac
17661 ;;
17662
17663 hpux10*|hpux11*)
17664 if test $with_gnu_ld = no; then
17665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17666 hardcode_libdir_separator_CXX=:
17667
17668 case $host_cpu in
17669 hppa*64*|ia64*)
17670 ;;
17671 *)
17672 export_dynamic_flag_spec_CXX='${wl}-E'
17673 ;;
17674 esac
17675 fi
17676 case $host_cpu in
17677 hppa*64*|ia64*)
17678 hardcode_direct_CXX=no
17679 hardcode_shlibpath_var_CXX=no
17680 ;;
17681 *)
17682 hardcode_direct_CXX=yes
17683 hardcode_direct_absolute_CXX=yes
17684 hardcode_minus_L_CXX=yes # Not in the search PATH,
17685 # but as the default
17686 # location of the library.
17687 ;;
17688 esac
17689
17690 case $cc_basename in
17691 CC*)
17692 # FIXME: insert proper C++ library support
17693 ld_shlibs_CXX=no
17694 ;;
17695 aCC*)
17696 case $host_cpu in
17697 hppa*64*)
17698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 ;;
17700 ia64*)
17701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17702 ;;
17703 *)
17704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17705 ;;
17706 esac
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17710 #
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17714 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017715 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 +000017716 ;;
17717 *)
17718 if test "$GXX" = yes; then
17719 if test $with_gnu_ld = no; then
17720 case $host_cpu in
17721 hppa*64*)
17722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17723 ;;
17724 ia64*)
cristyda16f162011-02-19 23:52:17 +000017725 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 +000017726 ;;
17727 *)
cristyda16f162011-02-19 23:52:17 +000017728 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 +000017729 ;;
17730 esac
17731 fi
17732 else
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 fi
17736 ;;
17737 esac
17738 ;;
17739
17740 interix[3-9]*)
17741 hardcode_direct_CXX=no
17742 hardcode_shlibpath_var_CXX=no
17743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17744 export_dynamic_flag_spec_CXX='${wl}-E'
17745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17746 # Instead, shared libraries are loaded at an image base (0x10000000 by
17747 # default) and relocated if they conflict, which is a slow very memory
17748 # consuming and fragmenting process. To avoid this, we pick a random,
17749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17751 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'
17752 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'
17753 ;;
17754 irix5* | irix6*)
17755 case $cc_basename in
17756 CC*)
17757 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017758 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 +000017759
17760 # Archives containing C++ object files must be created using
17761 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17762 # necessary to make sure instantiated templates are included
17763 # in the archive.
17764 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17765 ;;
17766 *)
17767 if test "$GXX" = yes; then
17768 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017769 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 +000017770 else
cristyda16f162011-02-19 23:52:17 +000017771 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 +000017772 fi
17773 fi
17774 link_all_deplibs_CXX=yes
17775 ;;
17776 esac
17777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17778 hardcode_libdir_separator_CXX=:
17779 inherit_rpath_CXX=yes
17780 ;;
17781
cristy0c60a692010-11-04 01:09:47 +000017782 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017783 case $cc_basename in
17784 KCC*)
17785 # Kuck and Associates, Inc. (KAI) C++ Compiler
17786
17787 # KCC will only create a shared library if the output file
17788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17789 # to its proper name (with version) after linking.
17790 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'
17791 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'
17792 # Commands to make compiler produce verbose output that lists
17793 # what "hidden" libraries, object files and flags are used when
17794 # linking a shared library.
17795 #
17796 # There doesn't appear to be a way to prevent this compiler from
17797 # explicitly linking system object files so we need to strip them
17798 # from the output so that they don't get included in the library
17799 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017800 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 +000017801
17802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17804
17805 # Archives containing C++ object files must be created using
17806 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17807 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17808 ;;
17809 icpc* | ecpc* )
17810 # Intel C++
17811 with_gnu_ld=yes
17812 # version 8.0 and above of icpc choke on multiply defined symbols
17813 # if we add $predep_objects and $postdep_objects, however 7.1 and
17814 # earlier do not add the objects themselves.
17815 case `$CC -V 2>&1` in
17816 *"Version 7."*)
17817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17818 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'
17819 ;;
17820 *) # Version 8.0 or newer
17821 tmp_idyn=
17822 case $host_cpu in
17823 ia64*) tmp_idyn=' -i_dynamic';;
17824 esac
17825 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17826 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'
17827 ;;
17828 esac
17829 archive_cmds_need_lc_CXX=no
17830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17832 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17833 ;;
17834 pgCC* | pgcpp*)
17835 # Portland Group C++ compiler
17836 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017837 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017838 prelink_cmds_CXX='tpldir=Template.dir~
17839 rm -rf $tpldir~
17840 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017841 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017842 old_archive_cmds_CXX='tpldir=Template.dir~
17843 rm -rf $tpldir~
17844 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017845 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017846 $RANLIB $oldlib'
17847 archive_cmds_CXX='tpldir=Template.dir~
17848 rm -rf $tpldir~
17849 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017850 $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 +000017851 archive_expsym_cmds_CXX='tpldir=Template.dir~
17852 rm -rf $tpldir~
17853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017854 $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 +000017855 ;;
cristy0c60a692010-11-04 01:09:47 +000017856 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17858 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'
17859 ;;
17860 esac
17861
17862 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017864 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 +000017865 ;;
17866 cxx*)
17867 # Compaq C++
17868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17869 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'
17870
17871 runpath_var=LD_RUN_PATH
17872 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17873 hardcode_libdir_separator_CXX=:
17874
17875 # Commands to make compiler produce verbose output that lists
17876 # what "hidden" libraries, object files and flags are used when
17877 # linking a shared library.
17878 #
17879 # There doesn't appear to be a way to prevent this compiler from
17880 # explicitly linking system object files so we need to strip them
17881 # from the output so that they don't get included in the library
17882 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017883 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 +000017884 ;;
cristy0c60a692010-11-04 01:09:47 +000017885 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017886 # IBM XL 8.0 on PPC, with GNU ld
17887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17889 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890 if test "x$supports_anon_versioning" = xyes; then
17891 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17893 echo "local: *; };" >> $output_objdir/$libname.ver~
17894 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17895 fi
17896 ;;
17897 *)
17898 case `$CC -V 2>&1 | sed 5q` in
17899 *Sun\ C*)
17900 # Sun C++ 5.9
17901 no_undefined_flag_CXX=' -zdefs'
17902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17903 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'
17904 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017905 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 +000017906 compiler_needs_object_CXX=yes
17907
17908 # Not sure whether something based on
17909 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17910 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017911 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017912
17913 # Archives containing C++ object files must be created using
17914 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17915 # necessary to make sure instantiated templates are included
17916 # in the archive.
17917 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17918 ;;
17919 esac
17920 ;;
17921 esac
17922 ;;
17923
17924 lynxos*)
17925 # FIXME: insert proper C++ library support
17926 ld_shlibs_CXX=no
17927 ;;
17928
17929 m88k*)
17930 # FIXME: insert proper C++ library support
17931 ld_shlibs_CXX=no
17932 ;;
17933
17934 mvs*)
17935 case $cc_basename in
17936 cxx*)
17937 # FIXME: insert proper C++ library support
17938 ld_shlibs_CXX=no
17939 ;;
17940 *)
17941 # FIXME: insert proper C++ library support
17942 ld_shlibs_CXX=no
17943 ;;
17944 esac
17945 ;;
17946
17947 netbsd*)
17948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17949 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17950 wlarc=
17951 hardcode_libdir_flag_spec_CXX='-R$libdir'
17952 hardcode_direct_CXX=yes
17953 hardcode_shlibpath_var_CXX=no
17954 fi
17955 # Workaround some broken pre-1.5 toolchains
17956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17957 ;;
17958
17959 *nto* | *qnx*)
17960 ld_shlibs_CXX=yes
17961 ;;
17962
17963 openbsd2*)
17964 # C++ shared libraries are fairly broken
17965 ld_shlibs_CXX=no
17966 ;;
17967
17968 openbsd*)
17969 if test -f /usr/libexec/ld.so; then
17970 hardcode_direct_CXX=yes
17971 hardcode_shlibpath_var_CXX=no
17972 hardcode_direct_absolute_CXX=yes
17973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17976 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17977 export_dynamic_flag_spec_CXX='${wl}-E'
17978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17979 fi
cristy0c60a692010-11-04 01:09:47 +000017980 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017981 else
17982 ld_shlibs_CXX=no
17983 fi
17984 ;;
17985
17986 osf3* | osf4* | osf5*)
17987 case $cc_basename in
17988 KCC*)
17989 # Kuck and Associates, Inc. (KAI) C++ Compiler
17990
17991 # KCC will only create a shared library if the output file
17992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17993 # to its proper name (with version) after linking.
17994 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'
17995
17996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17997 hardcode_libdir_separator_CXX=:
17998
17999 # Archives containing C++ object files must be created using
18000 # the KAI C++ compiler.
18001 case $host in
18002 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18003 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18004 esac
18005 ;;
18006 RCC*)
18007 # Rational C++ 2.4.1
18008 # FIXME: insert proper C++ library support
18009 ld_shlibs_CXX=no
18010 ;;
18011 cxx*)
18012 case $host in
18013 osf3*)
18014 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018015 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 +000018016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18017 ;;
18018 *)
18019 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018020 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 +000018021 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18022 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018023 $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 +000018024 $RM $lib.exp'
18025 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18026 ;;
18027 esac
18028
18029 hardcode_libdir_separator_CXX=:
18030
18031 # Commands to make compiler produce verbose output that lists
18032 # what "hidden" libraries, object files and flags are used when
18033 # linking a shared library.
18034 #
18035 # There doesn't appear to be a way to prevent this compiler from
18036 # explicitly linking system object files so we need to strip them
18037 # from the output so that they don't get included in the library
18038 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018039 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 +000018040 ;;
18041 *)
18042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18043 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18044 case $host in
18045 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018046 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 +000018047 ;;
18048 *)
cristyda16f162011-02-19 23:52:17 +000018049 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 +000018050 ;;
18051 esac
18052
18053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18054 hardcode_libdir_separator_CXX=:
18055
18056 # Commands to make compiler produce verbose output that lists
18057 # what "hidden" libraries, object files and flags are used when
18058 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018060
18061 else
18062 # FIXME: insert proper C++ library support
18063 ld_shlibs_CXX=no
18064 fi
18065 ;;
18066 esac
18067 ;;
18068
18069 psos*)
18070 # FIXME: insert proper C++ library support
18071 ld_shlibs_CXX=no
18072 ;;
18073
18074 sunos4*)
18075 case $cc_basename in
18076 CC*)
18077 # Sun C++ 4.x
18078 # FIXME: insert proper C++ library support
18079 ld_shlibs_CXX=no
18080 ;;
18081 lcc*)
18082 # Lucid
18083 # FIXME: insert proper C++ library support
18084 ld_shlibs_CXX=no
18085 ;;
18086 *)
18087 # FIXME: insert proper C++ library support
18088 ld_shlibs_CXX=no
18089 ;;
18090 esac
18091 ;;
18092
18093 solaris*)
18094 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018095 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018096 # Sun C++ 4.2, 5.x and Centerline C++
18097 archive_cmds_need_lc_CXX=yes
18098 no_undefined_flag_CXX=' -zdefs'
18099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18100 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18101 $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'
18102
18103 hardcode_libdir_flag_spec_CXX='-R$libdir'
18104 hardcode_shlibpath_var_CXX=no
18105 case $host_os in
18106 solaris2.[0-5] | solaris2.[0-5].*) ;;
18107 *)
18108 # The compiler driver will combine and reorder linker options,
18109 # but understands `-z linker_flag'.
18110 # Supported since Solaris 2.6 (maybe 2.5.1?)
18111 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18112 ;;
18113 esac
18114 link_all_deplibs_CXX=yes
18115
cristy0c60a692010-11-04 01:09:47 +000018116 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018117
18118 # Archives containing C++ object files must be created using
18119 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18120 # necessary to make sure instantiated templates are included
18121 # in the archive.
18122 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18123 ;;
18124 gcx*)
18125 # Green Hills C++ Compiler
18126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18127
18128 # The C++ compiler must be used to create the archive.
18129 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18130 ;;
18131 *)
18132 # GNU C++ compiler with Solaris linker
18133 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18134 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18135 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018136 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 +000018137 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 +000018138 $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 +000018139
18140 # Commands to make compiler produce verbose output that lists
18141 # what "hidden" libraries, object files and flags are used when
18142 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018144 else
18145 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18146 # platform.
18147 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18148 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18149 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18150
18151 # Commands to make compiler produce verbose output that lists
18152 # what "hidden" libraries, object files and flags are used when
18153 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018154 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018155 fi
18156
18157 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18158 case $host_os in
18159 solaris2.[0-5] | solaris2.[0-5].*) ;;
18160 *)
18161 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18162 ;;
18163 esac
18164 fi
18165 ;;
18166 esac
18167 ;;
18168
18169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18170 no_undefined_flag_CXX='${wl}-z,text'
18171 archive_cmds_need_lc_CXX=no
18172 hardcode_shlibpath_var_CXX=no
18173 runpath_var='LD_RUN_PATH'
18174
18175 case $cc_basename in
18176 CC*)
18177 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18179 ;;
18180 *)
18181 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 ;;
18184 esac
18185 ;;
18186
18187 sysv5* | sco3.2v5* | sco5v6*)
18188 # Note: We can NOT use -z defs as we might desire, because we do not
18189 # link with -lc, and that would cause any symbols used from libc to
18190 # always be unresolved, which means just about no library would
18191 # ever link correctly. If we're not using GNU ld we use -z text
18192 # though, which does catch some bad symbols but isn't as heavy-handed
18193 # as -z defs.
18194 no_undefined_flag_CXX='${wl}-z,text'
18195 allow_undefined_flag_CXX='${wl}-z,nodefs'
18196 archive_cmds_need_lc_CXX=no
18197 hardcode_shlibpath_var_CXX=no
18198 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18199 hardcode_libdir_separator_CXX=':'
18200 link_all_deplibs_CXX=yes
18201 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18202 runpath_var='LD_RUN_PATH'
18203
18204 case $cc_basename in
18205 CC*)
18206 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18207 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 +000018208 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18209 '"$old_archive_cmds_CXX"
18210 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18211 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018212 ;;
18213 *)
18214 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 ;;
18217 esac
18218 ;;
18219
18220 tandem*)
18221 case $cc_basename in
18222 NCC*)
18223 # NonStop-UX NCC 3.20
18224 # FIXME: insert proper C++ library support
18225 ld_shlibs_CXX=no
18226 ;;
18227 *)
18228 # FIXME: insert proper C++ library support
18229 ld_shlibs_CXX=no
18230 ;;
18231 esac
18232 ;;
18233
18234 vxworks*)
18235 # FIXME: insert proper C++ library support
18236 ld_shlibs_CXX=no
18237 ;;
18238
18239 *)
18240 # FIXME: insert proper C++ library support
18241 ld_shlibs_CXX=no
18242 ;;
18243 esac
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18246$as_echo "$ld_shlibs_CXX" >&6; }
18247 test "$ld_shlibs_CXX" = no && can_build_shared=no
18248
18249 GCC_CXX="$GXX"
18250 LD_CXX="$LD"
18251
18252 ## CAVEAT EMPTOR:
18253 ## There is no encapsulation within the following macros, do not change
18254 ## the running order or otherwise move them around unless you know exactly
18255 ## what you are doing...
18256 # Dependencies to place before and after the object being linked:
18257predep_objects_CXX=
18258postdep_objects_CXX=
18259predeps_CXX=
18260postdeps_CXX=
18261compiler_lib_search_path_CXX=
18262
18263cat > conftest.$ac_ext <<_LT_EOF
18264class Foo
18265{
18266public:
18267 Foo (void) { a = 0; }
18268private:
18269 int a;
18270};
18271_LT_EOF
18272
cristyda16f162011-02-19 23:52:17 +000018273
18274_lt_libdeps_save_CFLAGS=$CFLAGS
18275case "$CC $CFLAGS " in #(
18276*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18277*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018278*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018279esac
18280
cristy73bd4a52010-10-05 11:24:23 +000018281if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18282 (eval $ac_compile) 2>&5
18283 ac_status=$?
18284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18285 test $ac_status = 0; }; then
18286 # Parse the compiler output and extract the necessary
18287 # objects, libraries and library flags.
18288
18289 # Sentinel used to keep track of whether or not we are before
18290 # the conftest object file.
18291 pre_test_object_deps_done=no
18292
18293 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018294 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018295
18296 -L* | -R* | -l*)
18297 # Some compilers place space between "-{L,R}" and the path.
18298 # Remove the space.
18299 if test $p = "-L" ||
18300 test $p = "-R"; then
18301 prev=$p
18302 continue
cristy73bd4a52010-10-05 11:24:23 +000018303 fi
18304
cristyda16f162011-02-19 23:52:17 +000018305 # Expand the sysroot to ease extracting the directories later.
18306 if test -z "$prev"; then
18307 case $p in
18308 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18309 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18310 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18311 esac
18312 fi
18313 case $p in
18314 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18315 esac
cristy73bd4a52010-10-05 11:24:23 +000018316 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018317 case ${prev} in
18318 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018319 # Internal compiler library paths should come after those
18320 # provided the user. The postdeps already come after the
18321 # user supplied libs so there is no need to process them.
18322 if test -z "$compiler_lib_search_path_CXX"; then
18323 compiler_lib_search_path_CXX="${prev}${p}"
18324 else
18325 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18326 fi
18327 ;;
18328 # The "-l" case would never come before the object being
18329 # linked, so don't bother handling this case.
18330 esac
18331 else
18332 if test -z "$postdeps_CXX"; then
18333 postdeps_CXX="${prev}${p}"
18334 else
18335 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18336 fi
18337 fi
cristyda16f162011-02-19 23:52:17 +000018338 prev=
cristy73bd4a52010-10-05 11:24:23 +000018339 ;;
18340
cristyda16f162011-02-19 23:52:17 +000018341 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018342 *.$objext)
18343 # This assumes that the test object file only shows up
18344 # once in the compiler output.
18345 if test "$p" = "conftest.$objext"; then
18346 pre_test_object_deps_done=yes
18347 continue
18348 fi
18349
18350 if test "$pre_test_object_deps_done" = no; then
18351 if test -z "$predep_objects_CXX"; then
18352 predep_objects_CXX="$p"
18353 else
18354 predep_objects_CXX="$predep_objects_CXX $p"
18355 fi
18356 else
18357 if test -z "$postdep_objects_CXX"; then
18358 postdep_objects_CXX="$p"
18359 else
18360 postdep_objects_CXX="$postdep_objects_CXX $p"
18361 fi
18362 fi
18363 ;;
18364
18365 *) ;; # Ignore the rest.
18366
18367 esac
18368 done
18369
18370 # Clean up.
18371 rm -f a.out a.exe
18372else
18373 echo "libtool.m4: error: problem compiling CXX test program"
18374fi
18375
18376$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018377CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018378
18379# PORTME: override above test on systems where it is broken
18380case $host_os in
18381interix[3-9]*)
18382 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18383 # hack all around it, let's just trust "g++" to DTRT.
18384 predep_objects_CXX=
18385 postdep_objects_CXX=
18386 postdeps_CXX=
18387 ;;
18388
18389linux*)
18390 case `$CC -V 2>&1 | sed 5q` in
18391 *Sun\ C*)
18392 # Sun C++ 5.9
18393
18394 # The more standards-conforming stlport4 library is
18395 # incompatible with the Cstd library. Avoid specifying
18396 # it if it's in CXXFLAGS. Ignore libCrun as
18397 # -library=stlport4 depends on it.
18398 case " $CXX $CXXFLAGS " in
18399 *" -library=stlport4 "*)
18400 solaris_use_stlport4=yes
18401 ;;
18402 esac
18403
18404 if test "$solaris_use_stlport4" != yes; then
18405 postdeps_CXX='-library=Cstd -library=Crun'
18406 fi
18407 ;;
18408 esac
18409 ;;
18410
18411solaris*)
18412 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018413 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018414 # The more standards-conforming stlport4 library is
18415 # incompatible with the Cstd library. Avoid specifying
18416 # it if it's in CXXFLAGS. Ignore libCrun as
18417 # -library=stlport4 depends on it.
18418 case " $CXX $CXXFLAGS " in
18419 *" -library=stlport4 "*)
18420 solaris_use_stlport4=yes
18421 ;;
18422 esac
18423
18424 # Adding this requires a known-good setup of shared libraries for
18425 # Sun compiler versions before 5.6, else PIC objects from an old
18426 # archive will be linked into the output, leading to subtle bugs.
18427 if test "$solaris_use_stlport4" != yes; then
18428 postdeps_CXX='-library=Cstd -library=Crun'
18429 fi
18430 ;;
18431 esac
18432 ;;
18433esac
18434
18435
18436case " $postdeps_CXX " in
18437*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18438esac
18439 compiler_lib_search_dirs_CXX=
18440if test -n "${compiler_lib_search_path_CXX}"; then
18441 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18442fi
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474 lt_prog_compiler_wl_CXX=
18475lt_prog_compiler_pic_CXX=
18476lt_prog_compiler_static_CXX=
18477
cristy73bd4a52010-10-05 11:24:23 +000018478
18479 # C++ specific cases for pic, static, wl, etc.
18480 if test "$GXX" = yes; then
18481 lt_prog_compiler_wl_CXX='-Wl,'
18482 lt_prog_compiler_static_CXX='-static'
18483
18484 case $host_os in
18485 aix*)
18486 # All AIX code is PIC.
18487 if test "$host_cpu" = ia64; then
18488 # AIX 5 now supports IA64 processor
18489 lt_prog_compiler_static_CXX='-Bstatic'
18490 fi
18491 ;;
18492
18493 amigaos*)
18494 case $host_cpu in
18495 powerpc)
18496 # see comment about AmigaOS4 .so support
18497 lt_prog_compiler_pic_CXX='-fPIC'
18498 ;;
18499 m68k)
18500 # FIXME: we need at least 68020 code to build shared libraries, but
18501 # adding the `-m68020' flag to GCC prevents building anything better,
18502 # like `-m68040'.
18503 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18504 ;;
18505 esac
18506 ;;
18507
18508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18509 # PIC is the default for these OSes.
18510 ;;
18511 mingw* | cygwin* | os2* | pw32* | cegcc*)
18512 # This hack is so that the source file can tell whether it is being
18513 # built for inclusion in a dll (and should export symbols for example).
18514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18515 # (--disable-auto-import) libraries
18516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18517 ;;
18518 darwin* | rhapsody*)
18519 # PIC is the default on this platform
18520 # Common symbols not allowed in MH_DYLIB files
18521 lt_prog_compiler_pic_CXX='-fno-common'
18522 ;;
18523 *djgpp*)
18524 # DJGPP does not support shared libraries at all
18525 lt_prog_compiler_pic_CXX=
18526 ;;
cristy0c60a692010-11-04 01:09:47 +000018527 haiku*)
18528 # PIC is the default for Haiku.
18529 # The "-static" flag exists, but is broken.
18530 lt_prog_compiler_static_CXX=
18531 ;;
cristy73bd4a52010-10-05 11:24:23 +000018532 interix[3-9]*)
18533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18534 # Instead, we relocate shared libraries at runtime.
18535 ;;
18536 sysv4*MP*)
18537 if test -d /usr/nec; then
18538 lt_prog_compiler_pic_CXX=-Kconform_pic
18539 fi
18540 ;;
18541 hpux*)
18542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18544 # sets the default TLS model and affects inlining.
18545 case $host_cpu in
18546 hppa*64*)
18547 ;;
18548 *)
18549 lt_prog_compiler_pic_CXX='-fPIC'
18550 ;;
18551 esac
18552 ;;
18553 *qnx* | *nto*)
18554 # QNX uses GNU C++, but need to define -shared option too, otherwise
18555 # it will coredump.
18556 lt_prog_compiler_pic_CXX='-fPIC -shared'
18557 ;;
18558 *)
18559 lt_prog_compiler_pic_CXX='-fPIC'
18560 ;;
18561 esac
18562 else
18563 case $host_os in
18564 aix[4-9]*)
18565 # All AIX code is PIC.
18566 if test "$host_cpu" = ia64; then
18567 # AIX 5 now supports IA64 processor
18568 lt_prog_compiler_static_CXX='-Bstatic'
18569 else
18570 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18571 fi
18572 ;;
18573 chorus*)
18574 case $cc_basename in
18575 cxch68*)
18576 # Green Hills C++ Compiler
18577 # _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"
18578 ;;
18579 esac
18580 ;;
cristyda16f162011-02-19 23:52:17 +000018581 mingw* | cygwin* | os2* | pw32* | cegcc*)
18582 # This hack is so that the source file can tell whether it is being
18583 # built for inclusion in a dll (and should export symbols for example).
18584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18585 ;;
cristy73bd4a52010-10-05 11:24:23 +000018586 dgux*)
18587 case $cc_basename in
18588 ec++*)
18589 lt_prog_compiler_pic_CXX='-KPIC'
18590 ;;
18591 ghcx*)
18592 # Green Hills C++ Compiler
18593 lt_prog_compiler_pic_CXX='-pic'
18594 ;;
18595 *)
18596 ;;
18597 esac
18598 ;;
18599 freebsd* | dragonfly*)
18600 # FreeBSD uses GNU C++
18601 ;;
18602 hpux9* | hpux10* | hpux11*)
18603 case $cc_basename in
18604 CC*)
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18607 if test "$host_cpu" != ia64; then
18608 lt_prog_compiler_pic_CXX='+Z'
18609 fi
18610 ;;
18611 aCC*)
18612 lt_prog_compiler_wl_CXX='-Wl,'
18613 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18614 case $host_cpu in
18615 hppa*64*|ia64*)
18616 # +Z the default
18617 ;;
18618 *)
18619 lt_prog_compiler_pic_CXX='+Z'
18620 ;;
18621 esac
18622 ;;
18623 *)
18624 ;;
18625 esac
18626 ;;
18627 interix*)
18628 # This is c89, which is MS Visual C++ (no shared libs)
18629 # Anyone wants to do a port?
18630 ;;
18631 irix5* | irix6* | nonstopux*)
18632 case $cc_basename in
18633 CC*)
18634 lt_prog_compiler_wl_CXX='-Wl,'
18635 lt_prog_compiler_static_CXX='-non_shared'
18636 # CC pic flag -KPIC is the default.
18637 ;;
18638 *)
18639 ;;
18640 esac
18641 ;;
cristy0c60a692010-11-04 01:09:47 +000018642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018643 case $cc_basename in
18644 KCC*)
18645 # KAI C++ Compiler
18646 lt_prog_compiler_wl_CXX='--backend -Wl,'
18647 lt_prog_compiler_pic_CXX='-fPIC'
18648 ;;
18649 ecpc* )
18650 # old Intel C++ for x86_64 which still supported -KPIC.
18651 lt_prog_compiler_wl_CXX='-Wl,'
18652 lt_prog_compiler_pic_CXX='-KPIC'
18653 lt_prog_compiler_static_CXX='-static'
18654 ;;
18655 icpc* )
18656 # Intel C++, used to be incompatible with GCC.
18657 # ICC 10 doesn't accept -KPIC any more.
18658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_pic_CXX='-fPIC'
18660 lt_prog_compiler_static_CXX='-static'
18661 ;;
18662 pgCC* | pgcpp*)
18663 # Portland Group C++ compiler
18664 lt_prog_compiler_wl_CXX='-Wl,'
18665 lt_prog_compiler_pic_CXX='-fpic'
18666 lt_prog_compiler_static_CXX='-Bstatic'
18667 ;;
18668 cxx*)
18669 # Compaq C++
18670 # Make sure the PIC flag is empty. It appears that all Alpha
18671 # Linux and Compaq Tru64 Unix objects are PIC.
18672 lt_prog_compiler_pic_CXX=
18673 lt_prog_compiler_static_CXX='-non_shared'
18674 ;;
cristy0c60a692010-11-04 01:09:47 +000018675 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18676 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018677 lt_prog_compiler_wl_CXX='-Wl,'
18678 lt_prog_compiler_pic_CXX='-qpic'
18679 lt_prog_compiler_static_CXX='-qstaticlink'
18680 ;;
18681 *)
18682 case `$CC -V 2>&1 | sed 5q` in
18683 *Sun\ C*)
18684 # Sun C++ 5.9
18685 lt_prog_compiler_pic_CXX='-KPIC'
18686 lt_prog_compiler_static_CXX='-Bstatic'
18687 lt_prog_compiler_wl_CXX='-Qoption ld '
18688 ;;
18689 esac
18690 ;;
18691 esac
18692 ;;
18693 lynxos*)
18694 ;;
18695 m88k*)
18696 ;;
18697 mvs*)
18698 case $cc_basename in
18699 cxx*)
18700 lt_prog_compiler_pic_CXX='-W c,exportall'
18701 ;;
18702 *)
18703 ;;
18704 esac
18705 ;;
18706 netbsd*)
18707 ;;
18708 *qnx* | *nto*)
18709 # QNX uses GNU C++, but need to define -shared option too, otherwise
18710 # it will coredump.
18711 lt_prog_compiler_pic_CXX='-fPIC -shared'
18712 ;;
18713 osf3* | osf4* | osf5*)
18714 case $cc_basename in
18715 KCC*)
18716 lt_prog_compiler_wl_CXX='--backend -Wl,'
18717 ;;
18718 RCC*)
18719 # Rational C++ 2.4.1
18720 lt_prog_compiler_pic_CXX='-pic'
18721 ;;
18722 cxx*)
18723 # Digital/Compaq C++
18724 lt_prog_compiler_wl_CXX='-Wl,'
18725 # Make sure the PIC flag is empty. It appears that all Alpha
18726 # Linux and Compaq Tru64 Unix objects are PIC.
18727 lt_prog_compiler_pic_CXX=
18728 lt_prog_compiler_static_CXX='-non_shared'
18729 ;;
18730 *)
18731 ;;
18732 esac
18733 ;;
18734 psos*)
18735 ;;
18736 solaris*)
18737 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018738 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018739 # Sun C++ 4.2, 5.x and Centerline C++
18740 lt_prog_compiler_pic_CXX='-KPIC'
18741 lt_prog_compiler_static_CXX='-Bstatic'
18742 lt_prog_compiler_wl_CXX='-Qoption ld '
18743 ;;
18744 gcx*)
18745 # Green Hills C++ Compiler
18746 lt_prog_compiler_pic_CXX='-PIC'
18747 ;;
18748 *)
18749 ;;
18750 esac
18751 ;;
18752 sunos4*)
18753 case $cc_basename in
18754 CC*)
18755 # Sun C++ 4.x
18756 lt_prog_compiler_pic_CXX='-pic'
18757 lt_prog_compiler_static_CXX='-Bstatic'
18758 ;;
18759 lcc*)
18760 # Lucid
18761 lt_prog_compiler_pic_CXX='-pic'
18762 ;;
18763 *)
18764 ;;
18765 esac
18766 ;;
18767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18768 case $cc_basename in
18769 CC*)
18770 lt_prog_compiler_wl_CXX='-Wl,'
18771 lt_prog_compiler_pic_CXX='-KPIC'
18772 lt_prog_compiler_static_CXX='-Bstatic'
18773 ;;
18774 esac
18775 ;;
18776 tandem*)
18777 case $cc_basename in
18778 NCC*)
18779 # NonStop-UX NCC 3.20
18780 lt_prog_compiler_pic_CXX='-KPIC'
18781 ;;
18782 *)
18783 ;;
18784 esac
18785 ;;
18786 vxworks*)
18787 ;;
18788 *)
18789 lt_prog_compiler_can_build_shared_CXX=no
18790 ;;
18791 esac
18792 fi
18793
18794case $host_os in
18795 # For platforms which do not support PIC, -DPIC is meaningless:
18796 *djgpp*)
18797 lt_prog_compiler_pic_CXX=
18798 ;;
18799 *)
18800 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18801 ;;
18802esac
cristy73bd4a52010-10-05 11:24:23 +000018803
cristyda16f162011-02-19 23:52:17 +000018804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18805$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18806if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18807 $as_echo_n "(cached) " >&6
18808else
18809 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18810fi
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18812$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18813lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018814
18815#
18816# Check to make sure the PIC flag actually works.
18817#
18818if test -n "$lt_prog_compiler_pic_CXX"; then
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18820$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018821if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018822 $as_echo_n "(cached) " >&6
18823else
18824 lt_cv_prog_compiler_pic_works_CXX=no
18825 ac_outfile=conftest.$ac_objext
18826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18828 # Insert the option either (1) after the last *FLAGS variable, or
18829 # (2) before a word containing "conftest.", or (3) at the end.
18830 # Note that $ac_compile itself does not contain backslashes and begins
18831 # with a dollar sign (not a hyphen), so the echo should work correctly.
18832 # The option is referenced via a variable to avoid confusing sed.
18833 lt_compile=`echo "$ac_compile" | $SED \
18834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18836 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018838 (eval "$lt_compile" 2>conftest.err)
18839 ac_status=$?
18840 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018842 if (exit $ac_status) && test -s "$ac_outfile"; then
18843 # The compiler can only warn and ignore the option if not recognized
18844 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18848 lt_cv_prog_compiler_pic_works_CXX=yes
18849 fi
18850 fi
18851 $RM conftest*
18852
18853fi
18854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18855$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18856
18857if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18858 case $lt_prog_compiler_pic_CXX in
18859 "" | " "*) ;;
18860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18861 esac
18862else
18863 lt_prog_compiler_pic_CXX=
18864 lt_prog_compiler_can_build_shared_CXX=no
18865fi
18866
18867fi
18868
18869
18870
cristyda16f162011-02-19 23:52:17 +000018871
18872
cristy73bd4a52010-10-05 11:24:23 +000018873#
18874# Check to make sure the static flag actually works.
18875#
18876wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18878$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018879if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018880 $as_echo_n "(cached) " >&6
18881else
18882 lt_cv_prog_compiler_static_works_CXX=no
18883 save_LDFLAGS="$LDFLAGS"
18884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18885 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18887 # The linker can only warn and ignore the option if not recognized
18888 # So say no if there are warnings
18889 if test -s conftest.err; then
18890 # Append any errors to the config.log.
18891 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18894 if diff conftest.exp conftest.er2 >/dev/null; then
18895 lt_cv_prog_compiler_static_works_CXX=yes
18896 fi
18897 else
18898 lt_cv_prog_compiler_static_works_CXX=yes
18899 fi
18900 fi
18901 $RM -r conftest*
18902 LDFLAGS="$save_LDFLAGS"
18903
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18906$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18907
18908if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18909 :
18910else
18911 lt_prog_compiler_static_CXX=
18912fi
18913
18914
18915
18916
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18918$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018919if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018920 $as_echo_n "(cached) " >&6
18921else
18922 lt_cv_prog_compiler_c_o_CXX=no
18923 $RM -r conftest 2>/dev/null
18924 mkdir conftest
18925 cd conftest
18926 mkdir out
18927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18928
18929 lt_compiler_flag="-o out/conftest2.$ac_objext"
18930 # Insert the option either (1) after the last *FLAGS variable, or
18931 # (2) before a word containing "conftest.", or (3) at the end.
18932 # Note that $ac_compile itself does not contain backslashes and begins
18933 # with a dollar sign (not a hyphen), so the echo should work correctly.
18934 lt_compile=`echo "$ac_compile" | $SED \
18935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18937 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018939 (eval "$lt_compile" 2>out/conftest.err)
18940 ac_status=$?
18941 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18944 then
18945 # The compiler can only warn and ignore the option if not recognized
18946 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18950 lt_cv_prog_compiler_c_o_CXX=yes
18951 fi
18952 fi
18953 chmod u+w . 2>&5
18954 $RM conftest*
18955 # SGI C++ compiler will create directory out/ii_files/ for
18956 # template instantiation
18957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18958 $RM out/* && rmdir out
18959 cd ..
18960 $RM -r conftest
18961 $RM conftest*
18962
18963fi
18964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18965$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18966
18967
18968
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018971if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018972 $as_echo_n "(cached) " >&6
18973else
18974 lt_cv_prog_compiler_c_o_CXX=no
18975 $RM -r conftest 2>/dev/null
18976 mkdir conftest
18977 cd conftest
18978 mkdir out
18979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18980
18981 lt_compiler_flag="-o out/conftest2.$ac_objext"
18982 # Insert the option either (1) after the last *FLAGS variable, or
18983 # (2) before a word containing "conftest.", or (3) at the end.
18984 # Note that $ac_compile itself does not contain backslashes and begins
18985 # with a dollar sign (not a hyphen), so the echo should work correctly.
18986 lt_compile=`echo "$ac_compile" | $SED \
18987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18989 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018991 (eval "$lt_compile" 2>out/conftest.err)
18992 ac_status=$?
18993 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18996 then
18997 # The compiler can only warn and ignore the option if not recognized
18998 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19002 lt_cv_prog_compiler_c_o_CXX=yes
19003 fi
19004 fi
19005 chmod u+w . 2>&5
19006 $RM conftest*
19007 # SGI C++ compiler will create directory out/ii_files/ for
19008 # template instantiation
19009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19010 $RM out/* && rmdir out
19011 cd ..
19012 $RM -r conftest
19013 $RM conftest*
19014
19015fi
19016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19017$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19018
19019
19020
19021
19022hard_links="nottested"
19023if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19024 # do not overwrite the value of need_locks provided by the user
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19026$as_echo_n "checking if we can lock with hard links... " >&6; }
19027 hard_links=yes
19028 $RM conftest*
19029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19030 touch conftest.a
19031 ln conftest.a conftest.b 2>&5 || hard_links=no
19032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19034$as_echo "$hard_links" >&6; }
19035 if test "$hard_links" = no; then
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19037$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19038 need_locks=warn
19039 fi
19040else
19041 need_locks=no
19042fi
19043
19044
19045
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19047$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19048
19049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019050 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019051 case $host_os in
19052 aix[4-9]*)
19053 # If we're using GNU nm, then we don't want the "-C" option.
19054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019055 # Also, AIX nm treats weak defined symbols like other global defined
19056 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019057 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019058 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 +000019059 else
19060 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'
19061 fi
19062 ;;
19063 pw32*)
19064 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019065 ;;
cristy73bd4a52010-10-05 11:24:23 +000019066 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019067 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019068 cl*)
19069 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19070 ;;
cristyda16f162011-02-19 23:52:17 +000019071 *)
19072 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'
19073 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19074 ;;
19075 esac
19076 ;;
cristy73bd4a52010-10-05 11:24:23 +000019077 *)
19078 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019079 ;;
cristy73bd4a52010-10-05 11:24:23 +000019080 esac
cristy73bd4a52010-10-05 11:24:23 +000019081
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19083$as_echo "$ld_shlibs_CXX" >&6; }
19084test "$ld_shlibs_CXX" = no && can_build_shared=no
19085
19086with_gnu_ld_CXX=$with_gnu_ld
19087
19088
19089
19090
19091
19092
19093#
19094# Do we need to explicitly link libc?
19095#
19096case "x$archive_cmds_need_lc_CXX" in
19097x|xyes)
19098 # Assume -lc should be added
19099 archive_cmds_need_lc_CXX=yes
19100
19101 if test "$enable_shared" = yes && test "$GCC" = yes; then
19102 case $archive_cmds_CXX in
19103 *'~'*)
19104 # FIXME: we may have to deal with multi-command sequences.
19105 ;;
19106 '$CC '*)
19107 # Test whether the compiler implicitly links with -lc since on some
19108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19109 # to ld, don't add -lc before -lgcc.
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019112if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019113 $as_echo_n "(cached) " >&6
19114else
19115 $RM conftest*
19116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019117
cristy0c60a692010-11-04 01:09:47 +000019118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019119 (eval $ac_compile) 2>&5
19120 ac_status=$?
19121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019123 soname=conftest
19124 lib=conftest
19125 libobjs=conftest.$ac_objext
19126 deplibs=
19127 wl=$lt_prog_compiler_wl_CXX
19128 pic_flag=$lt_prog_compiler_pic_CXX
19129 compiler_flags=-v
19130 linker_flags=-v
19131 verstring=
19132 output_objdir=.
19133 libname=conftest
19134 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19135 allow_undefined_flag_CXX=
19136 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 +000019137 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19138 ac_status=$?
19139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19140 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019141 then
19142 lt_cv_archive_cmds_need_lc_CXX=no
19143 else
19144 lt_cv_archive_cmds_need_lc_CXX=yes
19145 fi
19146 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19147 else
19148 cat conftest.err 1>&5
19149 fi
19150 $RM conftest*
19151
19152fi
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19154$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19155 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019156 ;;
19157 esac
19158 fi
19159 ;;
19160esac
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
cristy73bd4a52010-10-05 11:24:23 +000019223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19224$as_echo_n "checking dynamic linker characteristics... " >&6; }
19225
19226library_names_spec=
19227libname_spec='lib$name'
19228soname_spec=
19229shrext_cmds=".so"
19230postinstall_cmds=
19231postuninstall_cmds=
19232finish_cmds=
19233finish_eval=
19234shlibpath_var=
19235shlibpath_overrides_runpath=unknown
19236version_type=none
19237dynamic_linker="$host_os ld.so"
19238sys_lib_dlsearch_path_spec="/lib /usr/lib"
19239need_lib_prefix=unknown
19240hardcode_into_libs=no
19241
19242# when you set need_version to no, make sure it does not cause -set_version
19243# flags to be left without arguments
19244need_version=unknown
19245
19246case $host_os in
19247aix3*)
cristy99bd5232011-12-07 14:38:20 +000019248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19250 shlibpath_var=LIBPATH
19251
19252 # AIX 3 has no versioning support, so we append a major version to the name.
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 ;;
19255
19256aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019258 need_lib_prefix=no
19259 need_version=no
19260 hardcode_into_libs=yes
19261 if test "$host_cpu" = ia64; then
19262 # AIX 5 supports IA64
19263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19264 shlibpath_var=LD_LIBRARY_PATH
19265 else
19266 # With GCC up to 2.95.x, collect2 would create an import file
19267 # for dependence libraries. The import file would start with
19268 # the line `#! .'. This would cause the generated library to
19269 # depend on `.', always an invalid library. This was fixed in
19270 # development snapshots of GCC prior to 3.0.
19271 case $host_os in
19272 aix4 | aix4.[01] | aix4.[01].*)
19273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19274 echo ' yes '
19275 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19276 :
19277 else
19278 can_build_shared=no
19279 fi
19280 ;;
19281 esac
19282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19283 # soname into executable. Probably we can add versioning support to
19284 # collect2, so additional links can be useful in future.
19285 if test "$aix_use_runtimelinking" = yes; then
19286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19287 # instead of lib<name>.a to let people know that these are not
19288 # typical AIX shared libraries.
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290 else
19291 # We preserve .a as extension for shared libraries through AIX4.2
19292 # and later when we are not doing run time linking.
19293 library_names_spec='${libname}${release}.a $libname.a'
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 fi
19296 shlibpath_var=LIBPATH
19297 fi
19298 ;;
19299
19300amigaos*)
19301 case $host_cpu in
19302 powerpc)
19303 # Since July 2007 AmigaOS4 officially supports .so libraries.
19304 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306 ;;
19307 m68k)
19308 library_names_spec='$libname.ixlibrary $libname.a'
19309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019310 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 +000019311 ;;
19312 esac
19313 ;;
19314
19315beos*)
19316 library_names_spec='${libname}${shared_ext}'
19317 dynamic_linker="$host_os ld.so"
19318 shlibpath_var=LIBRARY_PATH
19319 ;;
19320
19321bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019322 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019323 need_version=no
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325 soname_spec='${libname}${release}${shared_ext}$major'
19326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19330 # the default ld.so.conf also contains /usr/contrib/lib and
19331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19332 # libtool to hard-code these into programs
19333 ;;
19334
19335cygwin* | mingw* | pw32* | cegcc*)
19336 version_type=windows
19337 shrext_cmds=".dll"
19338 need_version=no
19339 need_lib_prefix=no
19340
cristyda16f162011-02-19 23:52:17 +000019341 case $GCC,$cc_basename in
19342 yes,*)
19343 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019344 library_names_spec='$libname.dll.a'
19345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19346 postinstall_cmds='base_file=`basename \${file}`~
19347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19348 dldir=$destdir/`dirname \$dlpath`~
19349 test -d \$dldir || mkdir -p \$dldir~
19350 $install_prog $dir/$dlname \$dldir/$dlname~
19351 chmod a+x \$dldir/$dlname~
19352 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19353 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19354 fi'
19355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19356 dlpath=$dir/\$dldll~
19357 $RM \$dlpath'
19358 shlibpath_overrides_runpath=yes
19359
19360 case $host_os in
19361 cygwin*)
19362 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19363 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019364
cristy73bd4a52010-10-05 11:24:23 +000019365 ;;
19366 mingw* | cegcc*)
19367 # MinGW DLLs use traditional 'lib' prefix
19368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019369 ;;
19370 pw32*)
19371 # pw32 DLLs use 'pw' prefix rather than 'lib'
19372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19373 ;;
19374 esac
cristyda16f162011-02-19 23:52:17 +000019375 dynamic_linker='Win32 ld.exe'
19376 ;;
19377
19378 *,cl*)
19379 # Native MSVC
19380 libname_spec='$name'
19381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19382 library_names_spec='${libname}.dll.lib'
19383
19384 case $build_os in
19385 mingw*)
19386 sys_lib_search_path_spec=
19387 lt_save_ifs=$IFS
19388 IFS=';'
19389 for lt_path in $LIB
19390 do
19391 IFS=$lt_save_ifs
19392 # Let DOS variable expansion print the short 8.3 style file name.
19393 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19394 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19395 done
19396 IFS=$lt_save_ifs
19397 # Convert to MSYS style.
19398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19399 ;;
19400 cygwin*)
19401 # Convert to unix form, then to dos form, then back to unix form
19402 # but this time dos style (no spaces!) so that the unix form looks
19403 # like /cygdrive/c/PROGRA~1:/cygdr...
19404 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19405 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19406 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19407 ;;
19408 *)
19409 sys_lib_search_path_spec="$LIB"
19410 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19411 # It is most probably a Windows format PATH.
19412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19413 else
19414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19415 fi
19416 # FIXME: find the short name or the path components, as spaces are
19417 # common. (e.g. "Program Files" -> "PROGRA~1")
19418 ;;
19419 esac
19420
19421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19422 postinstall_cmds='base_file=`basename \${file}`~
19423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19424 dldir=$destdir/`dirname \$dlpath`~
19425 test -d \$dldir || mkdir -p \$dldir~
19426 $install_prog $dir/$dlname \$dldir/$dlname'
19427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19428 dlpath=$dir/\$dldll~
19429 $RM \$dlpath'
19430 shlibpath_overrides_runpath=yes
19431 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019432 ;;
19433
19434 *)
cristyda16f162011-02-19 23:52:17 +000019435 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019436 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019437 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019438 ;;
19439 esac
cristy73bd4a52010-10-05 11:24:23 +000019440 # FIXME: first we should search . and the directory the executable is in
19441 shlibpath_var=PATH
19442 ;;
19443
19444darwin* | rhapsody*)
19445 dynamic_linker="$host_os dyld"
19446 version_type=darwin
19447 need_lib_prefix=no
19448 need_version=no
19449 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19450 soname_spec='${libname}${release}${major}$shared_ext'
19451 shlibpath_overrides_runpath=yes
19452 shlibpath_var=DYLD_LIBRARY_PATH
19453 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19454
19455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19456 ;;
19457
19458dgux*)
cristy99bd5232011-12-07 14:38:20 +000019459 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019460 need_lib_prefix=no
19461 need_version=no
19462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19463 soname_spec='${libname}${release}${shared_ext}$major'
19464 shlibpath_var=LD_LIBRARY_PATH
19465 ;;
19466
cristy73bd4a52010-10-05 11:24:23 +000019467freebsd* | dragonfly*)
19468 # DragonFly does not have aout. When/if they implement a new
19469 # versioning mechanism, adjust this.
19470 if test -x /usr/bin/objformat; then
19471 objformat=`/usr/bin/objformat`
19472 else
19473 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019474 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019475 *) objformat=elf ;;
19476 esac
19477 fi
19478 version_type=freebsd-$objformat
19479 case $version_type in
19480 freebsd-elf*)
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19482 need_version=no
19483 need_lib_prefix=no
19484 ;;
19485 freebsd-*)
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19487 need_version=yes
19488 ;;
19489 esac
19490 shlibpath_var=LD_LIBRARY_PATH
19491 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019492 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019493 shlibpath_overrides_runpath=yes
19494 ;;
19495 freebsd3.[01]* | freebsdelf3.[01]*)
19496 shlibpath_overrides_runpath=yes
19497 hardcode_into_libs=yes
19498 ;;
19499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19501 shlibpath_overrides_runpath=no
19502 hardcode_into_libs=yes
19503 ;;
19504 *) # from 4.6 on, and DragonFly
19505 shlibpath_overrides_runpath=yes
19506 hardcode_into_libs=yes
19507 ;;
19508 esac
19509 ;;
19510
19511gnu*)
cristy99bd5232011-12-07 14:38:20 +000019512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019513 need_lib_prefix=no
19514 need_version=no
19515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19516 soname_spec='${libname}${release}${shared_ext}$major'
19517 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019518 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019519 hardcode_into_libs=yes
19520 ;;
19521
cristy0c60a692010-11-04 01:09:47 +000019522haiku*)
cristy99bd5232011-12-07 14:38:20 +000019523 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019524 need_lib_prefix=no
19525 need_version=no
19526 dynamic_linker="$host_os runtime_loader"
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19529 shlibpath_var=LIBRARY_PATH
19530 shlibpath_overrides_runpath=yes
19531 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19532 hardcode_into_libs=yes
19533 ;;
19534
cristy73bd4a52010-10-05 11:24:23 +000019535hpux9* | hpux10* | hpux11*)
19536 # Give a soname corresponding to the major version so that dld.sl refuses to
19537 # link against other versions.
19538 version_type=sunos
19539 need_lib_prefix=no
19540 need_version=no
19541 case $host_cpu in
19542 ia64*)
19543 shrext_cmds='.so'
19544 hardcode_into_libs=yes
19545 dynamic_linker="$host_os dld.so"
19546 shlibpath_var=LD_LIBRARY_PATH
19547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19549 soname_spec='${libname}${release}${shared_ext}$major'
19550 if test "X$HPUX_IA64_MODE" = X32; then
19551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19552 else
19553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19554 fi
19555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19556 ;;
19557 hppa*64*)
19558 shrext_cmds='.sl'
19559 hardcode_into_libs=yes
19560 dynamic_linker="$host_os dld.sl"
19561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19564 soname_spec='${libname}${release}${shared_ext}$major'
19565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567 ;;
19568 *)
19569 shrext_cmds='.sl'
19570 dynamic_linker="$host_os dld.sl"
19571 shlibpath_var=SHLIB_PATH
19572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19574 soname_spec='${libname}${release}${shared_ext}$major'
19575 ;;
19576 esac
cristy0c60a692010-11-04 01:09:47 +000019577 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019578 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019579 # or fails outright, so override atomically:
19580 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019581 ;;
19582
19583interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019585 need_lib_prefix=no
19586 need_version=no
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 shlibpath_overrides_runpath=no
19592 hardcode_into_libs=yes
19593 ;;
19594
19595irix5* | irix6* | nonstopux*)
19596 case $host_os in
19597 nonstopux*) version_type=nonstopux ;;
19598 *)
19599 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019600 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019601 else
19602 version_type=irix
19603 fi ;;
19604 esac
19605 need_lib_prefix=no
19606 need_version=no
19607 soname_spec='${libname}${release}${shared_ext}$major'
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19609 case $host_os in
19610 irix5* | nonstopux*)
19611 libsuff= shlibsuff=
19612 ;;
19613 *)
19614 case $LD in # libtool.m4 will add one of these switches to LD
19615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19616 libsuff= shlibsuff= libmagic=32-bit;;
19617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19618 libsuff=32 shlibsuff=N32 libmagic=N32;;
19619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19621 *) libsuff= shlibsuff= libmagic=never-match;;
19622 esac
19623 ;;
19624 esac
19625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19626 shlibpath_overrides_runpath=no
19627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19629 hardcode_into_libs=yes
19630 ;;
19631
19632# No shared lib support for Linux oldld, aout, or coff.
19633linux*oldld* | linux*aout* | linux*coff*)
19634 dynamic_linker=no
19635 ;;
19636
cristy99bd5232011-12-07 14:38:20 +000019637# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019638linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019639 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019640 need_lib_prefix=no
19641 need_version=no
19642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19645 shlibpath_var=LD_LIBRARY_PATH
19646 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019647
cristy73bd4a52010-10-05 11:24:23 +000019648 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019649 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019650 $as_echo_n "(cached) " >&6
19651else
19652 lt_cv_shlibpath_overrides_runpath=no
19653 save_LDFLAGS=$LDFLAGS
19654 save_libdir=$libdir
19655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019658/* end confdefs.h. */
19659
19660int
19661main ()
19662{
19663
19664 ;
19665 return 0;
19666}
19667_ACEOF
19668if ac_fn_cxx_try_link "$LINENO"; then :
19669 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019670 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019671fi
19672fi
19673rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019675 LDFLAGS=$save_LDFLAGS
19676 libdir=$save_libdir
19677
19678fi
19679
19680 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019681
19682 # This implies no fast_install, which is unacceptable.
19683 # Some rework will be needed to allow for fast_install
19684 # before this can be enabled.
19685 hardcode_into_libs=yes
19686
19687 # Add ABI-specific directories to the system library path.
19688 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19689
19690 # Append ld.so.conf contents to the search path
19691 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019692 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 +000019693 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019694
cristy73bd4a52010-10-05 11:24:23 +000019695 fi
19696
19697 # We used to test for /lib/ld.so.1 and disable shared libraries on
19698 # powerpc, because MkLinux only supported shared libraries with the
19699 # GNU dynamic linker. Since this was broken with cross compilers,
19700 # most powerpc-linux boxes support dynamic linking these days and
19701 # people can always --disable-shared, the test was removed, and we
19702 # assume the GNU/Linux dynamic linker is in use.
19703 dynamic_linker='GNU/Linux ld.so'
19704 ;;
19705
19706netbsd*)
19707 version_type=sunos
19708 need_lib_prefix=no
19709 need_version=no
19710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19713 dynamic_linker='NetBSD (a.out) ld.so'
19714 else
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19716 soname_spec='${libname}${release}${shared_ext}$major'
19717 dynamic_linker='NetBSD ld.elf_so'
19718 fi
19719 shlibpath_var=LD_LIBRARY_PATH
19720 shlibpath_overrides_runpath=yes
19721 hardcode_into_libs=yes
19722 ;;
19723
19724newsos6)
cristy99bd5232011-12-07 14:38:20 +000019725 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 shlibpath_overrides_runpath=yes
19729 ;;
19730
19731*nto* | *qnx*)
19732 version_type=qnx
19733 need_lib_prefix=no
19734 need_version=no
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 soname_spec='${libname}${release}${shared_ext}$major'
19737 shlibpath_var=LD_LIBRARY_PATH
19738 shlibpath_overrides_runpath=no
19739 hardcode_into_libs=yes
19740 dynamic_linker='ldqnx.so'
19741 ;;
19742
19743openbsd*)
19744 version_type=sunos
19745 sys_lib_dlsearch_path_spec="/usr/lib"
19746 need_lib_prefix=no
19747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19748 case $host_os in
19749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19750 *) need_version=no ;;
19751 esac
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19754 shlibpath_var=LD_LIBRARY_PATH
19755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19756 case $host_os in
19757 openbsd2.[89] | openbsd2.[89].*)
19758 shlibpath_overrides_runpath=no
19759 ;;
19760 *)
19761 shlibpath_overrides_runpath=yes
19762 ;;
19763 esac
19764 else
19765 shlibpath_overrides_runpath=yes
19766 fi
19767 ;;
19768
19769os2*)
19770 libname_spec='$name'
19771 shrext_cmds=".dll"
19772 need_lib_prefix=no
19773 library_names_spec='$libname${shared_ext} $libname.a'
19774 dynamic_linker='OS/2 ld.exe'
19775 shlibpath_var=LIBPATH
19776 ;;
19777
19778osf3* | osf4* | osf5*)
19779 version_type=osf
19780 need_lib_prefix=no
19781 need_version=no
19782 soname_spec='${libname}${release}${shared_ext}$major'
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19787 ;;
19788
19789rdos*)
19790 dynamic_linker=no
19791 ;;
19792
19793solaris*)
cristy99bd5232011-12-07 14:38:20 +000019794 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019795 need_lib_prefix=no
19796 need_version=no
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 shlibpath_overrides_runpath=yes
19801 hardcode_into_libs=yes
19802 # ldd complains unless libraries are executable
19803 postinstall_cmds='chmod +x $lib'
19804 ;;
19805
19806sunos4*)
19807 version_type=sunos
19808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19810 shlibpath_var=LD_LIBRARY_PATH
19811 shlibpath_overrides_runpath=yes
19812 if test "$with_gnu_ld" = yes; then
19813 need_lib_prefix=no
19814 fi
19815 need_version=yes
19816 ;;
19817
19818sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019819 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19821 soname_spec='${libname}${release}${shared_ext}$major'
19822 shlibpath_var=LD_LIBRARY_PATH
19823 case $host_vendor in
19824 sni)
19825 shlibpath_overrides_runpath=no
19826 need_lib_prefix=no
19827 runpath_var=LD_RUN_PATH
19828 ;;
19829 siemens)
19830 need_lib_prefix=no
19831 ;;
19832 motorola)
19833 need_lib_prefix=no
19834 need_version=no
19835 shlibpath_overrides_runpath=no
19836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19837 ;;
19838 esac
19839 ;;
19840
19841sysv4*MP*)
19842 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019843 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019844 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19845 soname_spec='$libname${shared_ext}.$major'
19846 shlibpath_var=LD_LIBRARY_PATH
19847 fi
19848 ;;
19849
19850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19851 version_type=freebsd-elf
19852 need_lib_prefix=no
19853 need_version=no
19854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19855 soname_spec='${libname}${release}${shared_ext}$major'
19856 shlibpath_var=LD_LIBRARY_PATH
19857 shlibpath_overrides_runpath=yes
19858 hardcode_into_libs=yes
19859 if test "$with_gnu_ld" = yes; then
19860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19861 else
19862 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19863 case $host_os in
19864 sco3.2v5*)
19865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19866 ;;
19867 esac
19868 fi
19869 sys_lib_dlsearch_path_spec='/usr/lib'
19870 ;;
19871
19872tpf*)
19873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019874 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019875 need_lib_prefix=no
19876 need_version=no
19877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878 shlibpath_var=LD_LIBRARY_PATH
19879 shlibpath_overrides_runpath=no
19880 hardcode_into_libs=yes
19881 ;;
19882
19883uts4*)
cristy99bd5232011-12-07 14:38:20 +000019884 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19886 soname_spec='${libname}${release}${shared_ext}$major'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 ;;
19889
19890*)
19891 dynamic_linker=no
19892 ;;
19893esac
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19895$as_echo "$dynamic_linker" >&6; }
19896test "$dynamic_linker" = no && can_build_shared=no
19897
19898variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19899if test "$GCC" = yes; then
19900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19901fi
19902
19903if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19905fi
19906if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19907 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19908fi
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
cristy0c60a692010-11-04 01:09:47 +000019945
19946
cristy73bd4a52010-10-05 11:24:23 +000019947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19948$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19949hardcode_action_CXX=
19950if test -n "$hardcode_libdir_flag_spec_CXX" ||
19951 test -n "$runpath_var_CXX" ||
19952 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19953
19954 # We can hardcode non-existent directories.
19955 if test "$hardcode_direct_CXX" != no &&
19956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19957 # have to relink, otherwise we might link with an installed library
19958 # when we should be linking with a yet-to-be-installed one
19959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19960 test "$hardcode_minus_L_CXX" != no; then
19961 # Linking always hardcodes the temporary library directory.
19962 hardcode_action_CXX=relink
19963 else
19964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19965 hardcode_action_CXX=immediate
19966 fi
19967else
19968 # We cannot hardcode anything, or else we can only hardcode existing
19969 # directories.
19970 hardcode_action_CXX=unsupported
19971fi
19972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19973$as_echo "$hardcode_action_CXX" >&6; }
19974
19975if test "$hardcode_action_CXX" = relink ||
19976 test "$inherit_rpath_CXX" = yes; then
19977 # Fast installation is not supported
19978 enable_fast_install=no
19979elif test "$shlibpath_overrides_runpath" = yes ||
19980 test "$enable_shared" = no; then
19981 # Fast installation is not necessary
19982 enable_fast_install=needless
19983fi
19984
19985
19986
19987
19988
19989
19990
19991 fi # test -n "$compiler"
19992
19993 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019994 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019995 LDCXX=$LD
19996 LD=$lt_save_LD
19997 GCC=$lt_save_GCC
19998 with_gnu_ld=$lt_save_with_gnu_ld
19999 lt_cv_path_LDCXX=$lt_cv_path_LD
20000 lt_cv_path_LD=$lt_save_path_LD
20001 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20002 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20003fi # test "$_lt_caught_CXX_error" != yes
20004
20005ac_ext=c
20006ac_cpp='$CPP $CPPFLAGS'
20007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
cristy99bd5232011-12-07 14:38:20 +000020023
20024
cristy73bd4a52010-10-05 11:24:23 +000020025 ac_config_commands="$ac_config_commands libtool"
20026
20027
20028
20029
20030# Only expand once:
20031
20032
20033
cristy3ed852e2009-09-05 21:47:34 +000020034
20035
20036# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020037
20038
20039
20040
20041
20042
20043
cristy73bd4a52010-10-05 11:24:23 +000020044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20045$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020046if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020047 $as_echo_n "(cached) " >&6
20048else
20049
20050module=yes
20051eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020052module=no
20053eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020054
20055fi
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20057$as_echo "$libltdl_cv_shlibext" >&6; }
20058if test -n "$libltdl_cv_shlibext"; then
20059
20060cat >>confdefs.h <<_ACEOF
20061#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20062_ACEOF
20063
20064fi
cristy99bd5232011-12-07 14:38:20 +000020065if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20066
20067cat >>confdefs.h <<_ACEOF
20068#define LT_SHARED_EXT "$libltdl_cv_shrext"
20069_ACEOF
20070
20071fi
cristy73bd4a52010-10-05 11:24:23 +000020072
20073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20074$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020075if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020076 $as_echo_n "(cached) " >&6
20077else
20078 lt_cv_module_path_var="$shlibpath_var"
20079fi
20080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20081$as_echo "$lt_cv_module_path_var" >&6; }
20082if test -n "$lt_cv_module_path_var"; then
20083
20084cat >>confdefs.h <<_ACEOF
20085#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20086_ACEOF
20087
20088fi
20089
20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20091$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020092if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020093 $as_echo_n "(cached) " >&6
20094else
20095 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20096fi
20097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20098$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20099if test -n "$lt_cv_sys_dlsearch_path"; then
20100 sys_dlsearch_path=
20101 for dir in $lt_cv_sys_dlsearch_path; do
20102 if test -z "$sys_dlsearch_path"; then
20103 sys_dlsearch_path="$dir"
20104 else
20105 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20106 fi
20107 done
20108
20109cat >>confdefs.h <<_ACEOF
20110#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20111_ACEOF
20112
20113fi
20114
20115
20116LT_DLLOADERS=
20117
20118
20119ac_ext=c
20120ac_cpp='$CPP $CPPFLAGS'
20121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124
20125
20126LIBADD_DLOPEN=
20127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20128$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020129if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020130 $as_echo_n "(cached) " >&6
20131else
20132 ac_func_search_save_LIBS=$LIBS
20133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h. */
20135
20136/* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139#ifdef __cplusplus
20140extern "C"
20141#endif
20142char dlopen ();
20143int
20144main ()
20145{
20146return dlopen ();
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151for ac_lib in '' dl; do
20152 if test -z "$ac_lib"; then
20153 ac_res="none required"
20154 else
20155 ac_res=-l$ac_lib
20156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20157 fi
20158 if ac_fn_c_try_link "$LINENO"; then :
20159 ac_cv_search_dlopen=$ac_res
20160fi
20161rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020163 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020164 break
20165fi
20166done
cristyda16f162011-02-19 23:52:17 +000020167if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020168
20169else
20170 ac_cv_search_dlopen=no
20171fi
20172rm conftest.$ac_ext
20173LIBS=$ac_func_search_save_LIBS
20174fi
20175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20176$as_echo "$ac_cv_search_dlopen" >&6; }
20177ac_res=$ac_cv_search_dlopen
20178if test "$ac_res" != no; then :
20179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20180
20181$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20182
20183 if test "$ac_cv_search_dlopen" != "none required" ; then
20184 LIBADD_DLOPEN="-ldl"
20185 fi
20186 libltdl_cv_lib_dl_dlopen="yes"
20187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20188else
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190/* end confdefs.h. */
20191#if HAVE_DLFCN_H
20192# include <dlfcn.h>
20193#endif
20194
20195int
20196main ()
20197{
20198dlopen(0, 0);
20199 ;
20200 return 0;
20201}
20202_ACEOF
20203if ac_fn_c_try_link "$LINENO"; then :
20204
20205$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20206
20207 libltdl_cv_func_dlopen="yes"
20208 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20209else
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20211$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020212if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020213 $as_echo_n "(cached) " >&6
20214else
20215 ac_check_lib_save_LIBS=$LIBS
20216LIBS="-lsvld $LIBS"
20217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218/* end confdefs.h. */
20219
20220/* Override any GCC internal prototype to avoid an error.
20221 Use char because int might match the return type of a GCC
20222 builtin and then its argument prototype would still apply. */
20223#ifdef __cplusplus
20224extern "C"
20225#endif
20226char dlopen ();
20227int
20228main ()
20229{
20230return dlopen ();
20231 ;
20232 return 0;
20233}
20234_ACEOF
20235if ac_fn_c_try_link "$LINENO"; then :
20236 ac_cv_lib_svld_dlopen=yes
20237else
20238 ac_cv_lib_svld_dlopen=no
20239fi
20240rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242LIBS=$ac_check_lib_save_LIBS
20243fi
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20245$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020246if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020247
20248$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20249
20250 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20251 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20252fi
20253
20254fi
20255rm -f core conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257fi
20258
20259if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20260then
20261 lt_save_LIBS="$LIBS"
20262 LIBS="$LIBS $LIBADD_DLOPEN"
20263 for ac_func in dlerror
20264do :
20265 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020266if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020267 cat >>confdefs.h <<_ACEOF
20268#define HAVE_DLERROR 1
20269_ACEOF
20270
20271fi
20272done
20273
20274 LIBS="$lt_save_LIBS"
20275fi
20276
20277
20278LIBADD_SHL_LOAD=
20279ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020280if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020281
20282$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20283
20284 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20285else
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20287$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020288if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020289 $as_echo_n "(cached) " >&6
20290else
20291 ac_check_lib_save_LIBS=$LIBS
20292LIBS="-ldld $LIBS"
20293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294/* end confdefs.h. */
20295
20296/* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20299#ifdef __cplusplus
20300extern "C"
20301#endif
20302char shl_load ();
20303int
20304main ()
20305{
20306return shl_load ();
20307 ;
20308 return 0;
20309}
20310_ACEOF
20311if ac_fn_c_try_link "$LINENO"; then :
20312 ac_cv_lib_dld_shl_load=yes
20313else
20314 ac_cv_lib_dld_shl_load=no
20315fi
20316rm -f core conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318LIBS=$ac_check_lib_save_LIBS
20319fi
20320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20321$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020322if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020323
20324$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20325
20326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20327 LIBADD_SHL_LOAD="-ldld"
20328fi
20329
20330fi
20331
20332
20333
20334case $host_os in
20335darwin[1567].*)
20336# We only want this for pre-Mac OS X 10.4.
20337 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020338if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020339
20340$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20341
20342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20343fi
20344
20345 ;;
20346beos*)
20347 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20348 ;;
20349cygwin* | mingw* | os2* | pw32*)
20350 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20351"
cristyda16f162011-02-19 23:52:17 +000020352if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020353 ac_have_decl=1
20354else
20355 ac_have_decl=0
20356fi
20357
20358cat >>confdefs.h <<_ACEOF
20359#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20360_ACEOF
20361
20362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20363 ;;
20364esac
20365
20366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20367$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020368if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020369 $as_echo_n "(cached) " >&6
20370else
20371 ac_check_lib_save_LIBS=$LIBS
20372LIBS="-ldld $LIBS"
20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374/* end confdefs.h. */
20375
20376/* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20379#ifdef __cplusplus
20380extern "C"
20381#endif
20382char dld_link ();
20383int
20384main ()
20385{
20386return dld_link ();
20387 ;
20388 return 0;
20389}
20390_ACEOF
20391if ac_fn_c_try_link "$LINENO"; then :
20392 ac_cv_lib_dld_dld_link=yes
20393else
20394 ac_cv_lib_dld_dld_link=no
20395fi
20396rm -f core conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398LIBS=$ac_check_lib_save_LIBS
20399fi
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020402if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020403
20404$as_echo "#define HAVE_DLD 1" >>confdefs.h
20405
20406 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20407fi
20408
20409
20410
20411
20412LT_DLPREOPEN=
20413if test -n "$LT_DLLOADERS"
20414then
20415 for lt_loader in $LT_DLLOADERS; do
20416 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20417 done
20418
20419$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20420
20421fi
20422
20423
20424LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20425
20426
20427ac_ext=c
20428ac_cpp='$CPP $CPPFLAGS'
20429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20431ac_compiler_gnu=$ac_cv_c_compiler_gnu
20432
20433
20434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20435$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020436if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020437 $as_echo_n "(cached) " >&6
20438else
20439 lt_cv_sys_symbol_underscore=no
20440 cat > conftest.$ac_ext <<_LT_EOF
20441void nm_test_func(){}
20442int main(){nm_test_func;return 0;}
20443_LT_EOF
20444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20445 (eval $ac_compile) 2>&5
20446 ac_status=$?
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }; then
20449 # Now try to grab the symbols.
20450 ac_nlist=conftest.nm
20451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20453 ac_status=$?
20454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20455 test $ac_status = 0; } && test -s "$ac_nlist"; then
20456 # See whether the symbols have a leading underscore.
20457 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20458 lt_cv_sys_symbol_underscore=yes
20459 else
20460 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20461 :
20462 else
20463 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20464 fi
20465 fi
20466 else
20467 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20468 fi
20469 else
20470 echo "configure: failed program was:" >&5
20471 cat conftest.c >&5
20472 fi
20473 rm -rf conftest*
20474
20475fi
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20477$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20478 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20479
20480
20481if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20482 if test x"$libltdl_cv_func_dlopen" = xyes ||
20483 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20485$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020486if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020487 $as_echo_n "(cached) " >&6
20488else
20489 libltdl_cv_need_uscore=unknown
20490 save_LIBS="$LIBS"
20491 LIBS="$LIBS $LIBADD_DLOPEN"
20492 if test "$cross_compiling" = yes; then :
20493 libltdl_cv_need_uscore=cross
20494else
20495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20496 lt_status=$lt_dlunknown
20497 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020498#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020499#include "confdefs.h"
20500
20501#if HAVE_DLFCN_H
20502#include <dlfcn.h>
20503#endif
20504
20505#include <stdio.h>
20506
20507#ifdef RTLD_GLOBAL
20508# define LT_DLGLOBAL RTLD_GLOBAL
20509#else
20510# ifdef DL_GLOBAL
20511# define LT_DLGLOBAL DL_GLOBAL
20512# else
20513# define LT_DLGLOBAL 0
20514# endif
20515#endif
20516
20517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20518 find out it does not work in some platform. */
20519#ifndef LT_DLLAZY_OR_NOW
20520# ifdef RTLD_LAZY
20521# define LT_DLLAZY_OR_NOW RTLD_LAZY
20522# else
20523# ifdef DL_LAZY
20524# define LT_DLLAZY_OR_NOW DL_LAZY
20525# else
20526# ifdef RTLD_NOW
20527# define LT_DLLAZY_OR_NOW RTLD_NOW
20528# else
20529# ifdef DL_NOW
20530# define LT_DLLAZY_OR_NOW DL_NOW
20531# else
20532# define LT_DLLAZY_OR_NOW 0
20533# endif
20534# endif
20535# endif
20536# endif
20537#endif
20538
cristy0c60a692010-11-04 01:09:47 +000020539/* When -fvisbility=hidden is used, assume the code has been annotated
20540 correspondingly for the symbols needed. */
20541#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020542int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020543#endif
20544
cristyda16f162011-02-19 23:52:17 +000020545int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020546int main ()
20547{
20548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20549 int status = $lt_dlunknown;
20550
20551 if (self)
20552 {
20553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020554 else
20555 {
20556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20557 else puts (dlerror ());
20558 }
cristy73bd4a52010-10-05 11:24:23 +000020559 /* dlclose (self); */
20560 }
20561 else
20562 puts (dlerror ());
20563
20564 return status;
20565}
20566_LT_EOF
20567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20568 (eval $ac_link) 2>&5
20569 ac_status=$?
20570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20572 (./conftest; exit; ) >&5 2>/dev/null
20573 lt_status=$?
20574 case x$lt_status in
20575 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20576 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20577 x$lt_dlunknown|x*) ;;
20578 esac
20579 else :
20580 # compilation failed
20581
20582 fi
20583fi
20584rm -fr conftest*
20585
20586 LIBS="$save_LIBS"
20587
20588fi
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20590$as_echo "$libltdl_cv_need_uscore" >&6; }
20591 fi
20592fi
20593
20594if test x"$libltdl_cv_need_uscore" = xyes; then
20595
20596$as_echo "#define NEED_USCORE 1" >>confdefs.h
20597
20598fi
20599
20600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20601$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020602if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020603 $as_echo_n "(cached) " >&6
20604else
20605 # PORTME does your system automatically load deplibs for dlopen?
20606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20607 # For now, we just catch OSes we know something about -- in the
20608 # future, we'll try test this programmatically.
20609 lt_cv_sys_dlopen_deplibs=unknown
20610 case $host_os in
20611 aix3*|aix4.1.*|aix4.2.*)
20612 # Unknown whether this is true for these versions of AIX, but
20613 # we want this `case' here to explicitly catch those versions.
20614 lt_cv_sys_dlopen_deplibs=unknown
20615 ;;
20616 aix[4-9]*)
20617 lt_cv_sys_dlopen_deplibs=yes
20618 ;;
20619 amigaos*)
20620 case $host_cpu in
20621 powerpc)
20622 lt_cv_sys_dlopen_deplibs=no
20623 ;;
20624 esac
20625 ;;
20626 darwin*)
20627 # Assuming the user has installed a libdl from somewhere, this is true
20628 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20629 lt_cv_sys_dlopen_deplibs=yes
20630 ;;
20631 freebsd* | dragonfly*)
20632 lt_cv_sys_dlopen_deplibs=yes
20633 ;;
cristy0c60a692010-11-04 01:09:47 +000020634 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020635 # GNU and its variants, using gnu ld.so (Glibc)
20636 lt_cv_sys_dlopen_deplibs=yes
20637 ;;
20638 hpux10*|hpux11*)
20639 lt_cv_sys_dlopen_deplibs=yes
20640 ;;
20641 interix*)
20642 lt_cv_sys_dlopen_deplibs=yes
20643 ;;
20644 irix[12345]*|irix6.[01]*)
20645 # Catch all versions of IRIX before 6.2, and indicate that we don't
20646 # know how it worked for any of those versions.
20647 lt_cv_sys_dlopen_deplibs=unknown
20648 ;;
20649 irix*)
20650 # The case above catches anything before 6.2, and it's known that
20651 # at 6.2 and later dlopen does load deplibs.
20652 lt_cv_sys_dlopen_deplibs=yes
20653 ;;
20654 netbsd*)
20655 lt_cv_sys_dlopen_deplibs=yes
20656 ;;
20657 openbsd*)
20658 lt_cv_sys_dlopen_deplibs=yes
20659 ;;
20660 osf[1234]*)
20661 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20662 # it did *not* use an RPATH in a shared library to find objects the
20663 # library depends on, so we explicitly say `no'.
20664 lt_cv_sys_dlopen_deplibs=no
20665 ;;
20666 osf5.0|osf5.0a|osf5.1)
20667 # dlopen *does* load deplibs and with the right loader patch applied
20668 # it even uses RPATH in a shared library to search for shared objects
20669 # that the library depends on, but there's no easy way to know if that
20670 # patch is installed. Since this is the case, all we can really
20671 # say is unknown -- it depends on the patch being installed. If
20672 # it is, this changes to `yes'. Without it, it would be `no'.
20673 lt_cv_sys_dlopen_deplibs=unknown
20674 ;;
20675 osf*)
20676 # the two cases above should catch all versions of osf <= 5.1. Read
20677 # the comments above for what we know about them.
20678 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20679 # is used to find them so we can finally say `yes'.
20680 lt_cv_sys_dlopen_deplibs=yes
20681 ;;
20682 qnx*)
20683 lt_cv_sys_dlopen_deplibs=yes
20684 ;;
20685 solaris*)
20686 lt_cv_sys_dlopen_deplibs=yes
20687 ;;
20688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20689 libltdl_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 esac
20692
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20695$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20696if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20697
20698$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20699
20700fi
20701
20702:
20703
20704for ac_header in argz.h
20705do :
20706 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20707"
cristyda16f162011-02-19 23:52:17 +000020708if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020709 cat >>confdefs.h <<_ACEOF
20710#define HAVE_ARGZ_H 1
20711_ACEOF
20712
20713fi
20714
20715done
20716
20717
20718ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20719# include <argz.h>
20720#endif
20721"
cristyda16f162011-02-19 23:52:17 +000020722if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020723
20724cat >>confdefs.h <<_ACEOF
20725#define HAVE_ERROR_T 1
20726_ACEOF
20727
20728
20729else
20730
20731$as_echo "#define error_t int" >>confdefs.h
20732
20733
20734$as_echo "#define __error_t_defined 1" >>confdefs.h
20735
20736fi
20737
20738
20739ARGZ_H=
20740for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20741 argz_next argz_stringify
20742do :
20743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20744ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020745if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020746 cat >>confdefs.h <<_ACEOF
20747#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20748_ACEOF
20749
20750else
20751 ARGZ_H=argz.h;
20752
20753 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20754
20755fi
20756done
20757
20758
20759if test -z "$ARGZ_H"; then :
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20761$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020762if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020763 $as_echo_n "(cached) " >&6
20764else
20765 case $host_os in #(
20766 *cygwin*)
20767 lt_cv_sys_argz_works=no
20768 if test "$cross_compiling" != no; then
20769 lt_cv_sys_argz_works="guessing no"
20770 else
20771 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20772 save_IFS=$IFS
20773 IFS=-.
20774 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20775 IFS=$save_IFS
20776 lt_os_major=${2-0}
20777 lt_os_minor=${3-0}
20778 lt_os_micro=${4-0}
20779 if test "$lt_os_major" -gt 1 \
20780 || { test "$lt_os_major" -eq 1 \
20781 && { test "$lt_os_minor" -gt 5 \
20782 || { test "$lt_os_minor" -eq 5 \
20783 && test "$lt_os_micro" -gt 24; }; }; }; then
20784 lt_cv_sys_argz_works=yes
20785 fi
20786 fi
20787 ;; #(
20788 *) lt_cv_sys_argz_works=yes ;;
20789 esac
20790fi
20791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20792$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020793 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020794
20795$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20796
20797else
20798 ARGZ_H=argz.h
20799
20800
20801 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20802
20803fi
20804fi
20805
20806
20807
20808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20809$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020810if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020811 $as_echo_n "(cached) " >&6
20812else
20813 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20814 libltdl_cv_preloaded_symbols=yes
20815 else
20816 libltdl_cv_preloaded_symbols=no
20817 fi
20818
20819fi
20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20821$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20822if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20823
20824$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20825
20826fi
20827
20828# Set options
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840# Check whether --with-included_ltdl was given.
20841if test "${with_included_ltdl+set}" = set; then :
20842 withval=$with_included_ltdl;
20843fi
20844
20845
20846if test "x$with_included_ltdl" != xyes; then
20847 # We are not being forced to use the included libltdl sources, so
20848 # decide whether there is a useful installed version we can use.
20849 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20850
20851"
cristyda16f162011-02-19 23:52:17 +000020852if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020853 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20854 #include <ltdl.h>
20855"
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20858$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020859if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020860 $as_echo_n "(cached) " >&6
20861else
20862 ac_check_lib_save_LIBS=$LIBS
20863LIBS="-lltdl $LIBS"
20864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865/* end confdefs.h. */
20866
20867/* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20870#ifdef __cplusplus
20871extern "C"
20872#endif
20873char lt_dladvise_preload ();
20874int
20875main ()
20876{
20877return lt_dladvise_preload ();
20878 ;
20879 return 0;
20880}
20881_ACEOF
20882if ac_fn_c_try_link "$LINENO"; then :
20883 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20884else
20885 ac_cv_lib_ltdl_lt_dladvise_preload=no
20886fi
20887rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
20889LIBS=$ac_check_lib_save_LIBS
20890fi
20891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20892$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020893if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020894 with_included_ltdl=no
20895else
20896 with_included_ltdl=yes
20897fi
20898
20899else
20900 with_included_ltdl=yes
20901fi
20902
20903else
20904 with_included_ltdl=yes
20905fi
20906
20907
20908fi
20909
20910
20911
20912
20913# Check whether --with-ltdl_include was given.
20914if test "${with_ltdl_include+set}" = set; then :
20915 withval=$with_ltdl_include;
20916fi
20917
20918
20919if test -n "$with_ltdl_include"; then
20920 if test -f "$with_ltdl_include/ltdl.h"; then :
20921 else
cristy98dddb52010-11-04 00:30:15 +000020922 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020923 fi
20924else
20925 with_ltdl_include=no
20926fi
20927
20928
20929# Check whether --with-ltdl_lib was given.
20930if test "${with_ltdl_lib+set}" = set; then :
20931 withval=$with_ltdl_lib;
20932fi
20933
20934
20935if test -n "$with_ltdl_lib"; then
20936 if test -f "$with_ltdl_lib/libltdl.la"; then :
20937 else
cristy98dddb52010-11-04 00:30:15 +000020938 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020939 fi
20940else
20941 with_ltdl_lib=no
20942fi
20943
20944case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20945 ,yes,no,no,)
20946 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020947 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020948 "") enable_ltdl_convenience=yes
20949 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20950esac
20951LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20952LTDLDEPS=$LIBLTDL
20953LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20954
20955
20956
20957
20958
20959# For backwards non-gettext consistent compatibility...
20960INCLTDL="$LTDLINCL"
20961
20962
20963 ;;
20964 ,no,no,no,)
20965 # If the included ltdl is not to be used, then use the
20966 # preinstalled libltdl we found.
20967
20968$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20969
20970 LIBLTDL=-lltdl
20971 LTDLDEPS=
20972 LTDLINCL=
20973 ;;
20974 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020975 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020976 ;;
20977 *) with_included_ltdl=no
20978 LIBLTDL="-L$with_ltdl_lib -lltdl"
20979 LTDLDEPS=
20980 LTDLINCL="-I$with_ltdl_include"
20981 ;;
20982esac
20983INCLTDL="$LTDLINCL"
20984
20985# Report our decision...
20986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20987$as_echo_n "checking where to find libltdl headers... " >&6; }
20988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20989$as_echo "$LTDLINCL" >&6; }
20990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20991$as_echo_n "checking where to find libltdl library... " >&6; }
20992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20993$as_echo "$LIBLTDL" >&6; }
20994
20995
20996
20997# Check whether --enable-ltdl-install was given.
20998if test "${enable_ltdl_install+set}" = set; then :
20999 enableval=$enable_ltdl_install;
21000fi
21001
21002
21003case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21004 *yes*) ;;
21005 *) enable_ltdl_convenience=yes ;;
21006esac
21007
21008 if test x"${enable_ltdl_install-no}" != xno; then
21009 INSTALL_LTDL_TRUE=
21010 INSTALL_LTDL_FALSE='#'
21011else
21012 INSTALL_LTDL_TRUE='#'
21013 INSTALL_LTDL_FALSE=
21014fi
21015
21016 if test x"${enable_ltdl_convenience-no}" != xno; then
21017 CONVENIENCE_LTDL_TRUE=
21018 CONVENIENCE_LTDL_FALSE='#'
21019else
21020 CONVENIENCE_LTDL_TRUE='#'
21021 CONVENIENCE_LTDL_FALSE=
21022fi
21023
21024
21025
21026
21027
21028
cristy73bd4a52010-10-05 11:24:23 +000021029# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21030# the user used. This is so that ltdl.h can pick up the parent projects
21031# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21032# definitions required by ltdl.c.
21033# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21034
21035
21036
21037for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21038do :
21039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21040ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21041"
cristy98dddb52010-11-04 00:30:15 +000021042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021043 cat >>confdefs.h <<_ACEOF
21044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21045_ACEOF
21046
21047fi
21048
21049done
21050
21051
21052for ac_func in closedir opendir readdir
21053do :
21054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21055ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021056if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021057 cat >>confdefs.h <<_ACEOF
21058#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21059_ACEOF
21060
21061else
21062
21063
21064 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21065
21066fi
21067done
21068
21069for ac_func in strlcat strlcpy
21070do :
21071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021073if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021074 cat >>confdefs.h <<_ACEOF
21075#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21076_ACEOF
21077
21078else
21079
21080
21081 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21082
21083fi
21084done
21085
21086
21087
21088cat >>confdefs.h <<_ACEOF
21089#define LT_LIBEXT "$libext"
21090_ACEOF
21091
21092
cristyda16f162011-02-19 23:52:17 +000021093name=
21094eval "lt_libprefix=\"$libname_spec\""
21095
21096cat >>confdefs.h <<_ACEOF
21097#define LT_LIBPREFIX "$lt_libprefix"
21098_ACEOF
21099
21100
cristy73bd4a52010-10-05 11:24:23 +000021101name=ltdl
cristyda16f162011-02-19 23:52:17 +000021102eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021103
21104
21105
21106
21107
21108
21109
21110
21111# Only expand once:
21112
21113
cristy3ed852e2009-09-05 21:47:34 +000021114
21115# Check to see if building shared libraries
21116libtool_build_shared_libs='no'
21117if test "$enable_shared" = 'yes'; then
21118 libtool_build_shared_libs='yes'
21119fi
21120
21121# Check to see if building static libraries
21122libtool_build_static_libs='no'
21123if test "$enable_static" = 'yes'; then
21124 libtool_build_static_libs='yes'
21125fi
21126
cristy73bd4a52010-10-05 11:24:23 +000021127 if test "${libtool_build_shared_libs}" = 'yes'; then
21128 WITH_SHARED_LIBS_TRUE=
21129 WITH_SHARED_LIBS_FALSE='#'
21130else
21131 WITH_SHARED_LIBS_TRUE='#'
21132 WITH_SHARED_LIBS_FALSE=
21133fi
21134
cristy3ed852e2009-09-05 21:47:34 +000021135#
21136# Enable support for building loadable modules
21137#
21138
21139# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 withval=$with_modules; with_modules=$withval
21142else
cristy5a1cefd2010-01-06 20:42:35 +000021143 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021144fi
21145
21146
21147# Only allow building loadable modules if we are building shared libraries
21148if test "$with_modules" != 'no' ; then
21149 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021150 { $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 +000021151$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21152 with_modules='no'
21153 fi
21154fi
21155if test "$with_modules" != 'no'; then
21156
cristy8b350f62009-11-15 23:12:43 +000021157$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021158
21159fi
cristy73bd4a52010-10-05 11:24:23 +000021160 if test "$with_modules" != 'no'; then
21161 WITH_MODULES_TRUE=
21162 WITH_MODULES_FALSE='#'
21163else
21164 WITH_MODULES_TRUE='#'
21165 WITH_MODULES_FALSE=
21166fi
21167
cristy3ed852e2009-09-05 21:47:34 +000021168
21169# Enable building/use of libltdl if we are building shared libraries regardless
21170# of whether modules are built or not.
21171with_ltdl='no'
21172if test "$libtool_build_shared_libs" != 'no'; then
21173 with_ltdl='yes'
21174fi
21175
cristy73bd4a52010-10-05 11:24:23 +000021176 if test "$with_ltdl" != 'no'; then
21177 WITH_LTDL_TRUE=
21178 WITH_LTDL_FALSE='#'
21179else
21180 WITH_LTDL_TRUE='#'
21181 WITH_LTDL_FALSE=
21182fi
21183
cristy3ed852e2009-09-05 21:47:34 +000021184if test "$with_ltdl" != 'no'; then
21185
cristy8b350f62009-11-15 23:12:43 +000021186$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021187
21188
21189 # Set DLLDFLAGS
21190 if test X"$enable_shared" = Xyes; then
21191 DLLDFLAGS=-export-dynamic
21192
21193 fi
21194fi
21195
21196# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021197# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021198# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021199if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021200 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21201else
21202 enable_delegate_build='no'
21203fi
21204
21205
21206# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021207if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 enableval=$enable_deprecated; enable_deprecated=$enableval
21209else
21210 enable_deprecated='no'
21211fi
21212
21213
21214if test "$enable_deprecated" = 'yes'; then
21215
cristy8b350f62009-11-15 23:12:43 +000021216$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021217
21218else
21219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21220fi
21221
21222# Build a version of ImageMagick which operates uninstalled.
21223# Used to build distributions located via MAGICK_HOME / executable path
21224# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 enableval=$enable_installed; enable_installed=$enableval
21227else
21228 enable_installed='yes'
21229fi
21230
21231
21232if test "$enable_installed" = 'yes'; then
21233
cristy8b350f62009-11-15 23:12:43 +000021234$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021235
21236else
21237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21238fi
21239
21240# Permit enciphering and deciphering image pixels.
21241# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021242if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 enableval=$enable_cipher; enable_cipher=$enableval
21244else
21245 enable_cipher='yes'
21246fi
21247
21248
21249if test "$enable_cipher" = 'yes'; then
21250
cristy8b350f62009-11-15 23:12:43 +000021251$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021252
21253fi
21254
cristy6e3607c2011-09-13 13:59:17 +000021255# Build a zero-configuration version of ImageMagick.
21256# Check whether --enable-zero-configuration was given.
21257if test "${enable_zero_configuration+set}" = set; then :
21258 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021259else
cristy6e3607c2011-09-13 13:59:17 +000021260 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021261fi
21262
21263
cristy6e3607c2011-09-13 13:59:17 +000021264if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021265
cristy6e3607c2011-09-13 13:59:17 +000021266$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021267
cristy81af5702011-09-13 14:20:58 +000021268 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021269fi
21270
21271# Build a high dynamic range version of ImageMagick.
21272# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 enableval=$enable_hdri; enable_hdri=$enableval
21275else
21276 enable_hdri='no'
21277fi
21278
21279
21280MAGICK_HDRI=""
21281if test "$enable_hdri" = 'yes'; then
21282 MAGICK_HDRI="HDRI"
21283
cristy8b350f62009-11-15 23:12:43 +000021284$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021285
cristyfd9dcd42010-08-08 18:07:02 +000021286 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021287fi
21288
cristy3ed852e2009-09-05 21:47:34 +000021289# Build a version of ImageMagick with assert statements.
21290# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021291if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021292 enableval=$enable_assert; enable_assert=$enableval
21293else
21294 enable_assert='yes'
21295fi
21296
21297
21298if test "$enable_assert" = 'no'; then
21299
cristy8b350f62009-11-15 23:12:43 +000021300$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021301
21302fi
21303
cristya448bd22011-10-14 12:38:13 +000021304# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021305
21306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21307$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21308 # Check whether --enable-maintainer-mode was given.
21309if test "${enable_maintainer_mode+set}" = set; then :
21310 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21311else
21312 USE_MAINTAINER_MODE=no
21313fi
21314
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21316$as_echo "$USE_MAINTAINER_MODE" >&6; }
21317 if test $USE_MAINTAINER_MODE = yes; then
21318 MAINTAINER_MODE_TRUE=
21319 MAINTAINER_MODE_FALSE='#'
21320else
21321 MAINTAINER_MODE_TRUE='#'
21322 MAINTAINER_MODE_FALSE=
21323fi
21324
21325 MAINT=$MAINTAINER_MODE_TRUE
21326
21327
cristy3ed852e2009-09-05 21:47:34 +000021328
cristy3ed852e2009-09-05 21:47:34 +000021329# Enable ccmalloc memory debugging support
21330# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021331if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021332 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21333else
21334 enable_ccmalloc='no'
21335fi
21336
21337
21338# Enable Electric Fence memory debugging support
21339# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021340if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 enableval=$enable_efence; enable_efence=$enableval
21342else
21343 enable_efence='no'
21344fi
21345
21346
21347# Enable prof-based profiling support
21348# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021349if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021350 enableval=$enable_prof; enable_prof=$enableval
21351else
21352 enable_prof='no'
21353fi
21354
21355
21356# Enable gprof-based profiling support
21357# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021358if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 enableval=$enable_gprof; enable_gprof=$enableval
21360else
21361 enable_gprof='no'
21362fi
21363
21364
21365# Enable gcov-based profiling support
21366# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021367if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 enableval=$enable_gcov; enable_gcov=$enableval
21369else
21370 enable_gcov='no'
21371fi
21372
21373
21374enable_profiling='no'
21375if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21376 enable_profiling='yes'
21377 if test "$libtool_build_shared_libs" = 'yes'; then
21378 echo "Warning: Can not profile code using shared libraries"
21379 fi
21380fi
21381
21382# Magick API method prefix
21383
21384# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021385if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 withval=$with_method_prefix; with_method_prefix=$enableval
21387else
21388 with_method_prefix=''
21389fi
21390
21391
21392if test "$with_method_prefix" != ''; then
21393
21394cat >>confdefs.h <<_ACEOF
21395#define NAMESPACE_PREFIX $with_method_prefix
21396_ACEOF
21397
21398fi
21399
21400# Number of bits in a Quantum
21401
21402# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021403if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 withval=$with_quantum_depth; with_quantum_depth=$withval
21405else
21406 with_quantum_depth=16
21407fi
21408
21409
21410if test "$with_quantum_depth" != '8'; then
21411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21412fi
21413
21414case "${with_quantum_depth}" in
21415 8 ) ;;
21416 16 ) ;;
21417 32 ) ;;
21418 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021419 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021420esac
21421QUANTUM_DEPTH="$with_quantum_depth"
21422
21423cat >>confdefs.h <<_ACEOF
21424#define QUANTUM_DEPTH $QUANTUM_DEPTH
21425_ACEOF
21426
21427
21428# Set pixel cache threshold
21429
21430# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021431if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021432 withval=$with_cache; with_cache=$withval
21433else
21434 with_cache=''
21435fi
21436
21437
21438if test "$with_cache" != ''; then
21439
21440cat >>confdefs.h <<_ACEOF
21441#define PixelCacheThreshold $with_cache
21442_ACEOF
21443
21444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21445fi
21446
21447# Disable/Enable support for full delegate paths
21448
21449# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021450if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 withval=$with_frozenpaths; with_frozenpaths=$withval
21452else
21453 with_frozenpaths='no'
21454fi
21455
21456
21457# Enable build/install of Magick++
21458
21459# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021460if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21462else
21463 with_magick_plus_plus='yes'
21464fi
21465
21466
21467# Disable build/install of PerlMagick.
21468
21469# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021470if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 withval=$with_perl; with_perl=$withval
21472else
cristyb5f4e2f2010-04-25 00:49:11 +000021473 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021474fi
21475
21476
21477# Options to pass when configuring PerlMagick
21478
21479# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021480if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021481 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021482fi
21483
21484
cristy3ed852e2009-09-05 21:47:34 +000021485
21486# Enable umem, object-caching memory allocation library.
21487
21488# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021489if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021490 withval=$with_umem; with_umem=$withval
21491else
21492 with_umem='no'
21493fi
21494
21495if test "$with_umem" != 'yes' ; then
21496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21497fi
21498
21499#
21500# Specify path to shared libstdc++ if not in normal location
21501#
21502
21503# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021504if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 withval=$with_libstdc; with_libstdc=$withval
21506else
21507 with_libstdc=''
21508fi
21509
21510
21511if test "$with_libstdc" != ''; then
21512 if test -d "$with_libstdc"; then
21513 LIBSTDCLDFLAGS="-L$with_libstdc"
21514 fi
21515fi
21516
21517
21518# Does gcc required -traditional?
21519if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021521$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021522if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 $as_echo_n "(cached) " >&6
21524else
21525 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021527/* end confdefs.h. */
21528#include <sgtty.h>
21529Autoconf TIOCGETP
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021532 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 ac_cv_prog_gcc_traditional=yes
21534else
21535 ac_cv_prog_gcc_traditional=no
21536fi
21537rm -f conftest*
21538
21539
21540 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543#include <termio.h>
21544Autoconf TCGETA
21545_ACEOF
21546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021547 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021548 ac_cv_prog_gcc_traditional=yes
21549fi
21550rm -f conftest*
21551
21552 fi
21553fi
cristy8b350f62009-11-15 23:12:43 +000021554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021555$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21556 if test $ac_cv_prog_gcc_traditional = yes; then
21557 CC="$CC -traditional"
21558 fi
21559fi
21560
21561
21562########
21563#
21564# Set defines required to build DLLs and modules using MinGW
21565#
21566########
21567# These options are set for multi-thread DLL module build
21568# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21569# module: _DLL
21570# executable/Magick++: _DLL _MAGICKMOD_
21571MODULE_EXTRA_CPPFLAGS=''
21572LIBRARY_EXTRA_CPPFLAGS=''
21573if test "${native_win32_build}" = 'yes'; then
21574 if test "${libtool_build_shared_libs}" = 'yes'; then
21575 CPPFLAGS="$CPPFLAGS -D_DLL"
21576 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21577 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21578 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21579 if test "$with_modules" = 'yes'; then
21580 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21581 else
21582 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21583 fi
21584 else
21585 CPPFLAGS="$CPPFLAGS -D_LIB"
21586 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21587 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21588 fi
21589 if test "$with_threads" = 'yes'; then
21590 CPPFLAGS="$CPPFLAGS -D_MT"
21591 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21592 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21593 fi
21594fi
21595
21596
21597
21598# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021600$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021601if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021602 $as_echo_n "(cached) " >&6
21603else
cristy8b350f62009-11-15 23:12:43 +000021604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021605/* end confdefs.h. */
21606#include <stdlib.h>
21607#include <stdarg.h>
21608#include <string.h>
21609#include <float.h>
21610
21611int
21612main ()
21613{
21614
21615 ;
21616 return 0;
21617}
21618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021619if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021620 ac_cv_header_stdc=yes
21621else
cristy8b350f62009-11-15 23:12:43 +000021622 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021623fi
cristy3ed852e2009-09-05 21:47:34 +000021624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625
21626if test $ac_cv_header_stdc = yes; then
21627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021629/* end confdefs.h. */
21630#include <string.h>
21631
21632_ACEOF
21633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021634 $EGREP "memchr" >/dev/null 2>&1; then :
21635
cristy3ed852e2009-09-05 21:47:34 +000021636else
21637 ac_cv_header_stdc=no
21638fi
21639rm -f conftest*
21640
21641fi
21642
21643if test $ac_cv_header_stdc = yes; then
21644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021646/* end confdefs.h. */
21647#include <stdlib.h>
21648
21649_ACEOF
21650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021651 $EGREP "free" >/dev/null 2>&1; then :
21652
cristy3ed852e2009-09-05 21:47:34 +000021653else
21654 ac_cv_header_stdc=no
21655fi
21656rm -f conftest*
21657
21658fi
21659
21660if test $ac_cv_header_stdc = yes; then
21661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021662 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 :
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667#include <ctype.h>
21668#include <stdlib.h>
21669#if ((' ' & 0x0FF) == 0x020)
21670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21672#else
21673# define ISLOWER(c) \
21674 (('a' <= (c) && (c) <= 'i') \
21675 || ('j' <= (c) && (c) <= 'r') \
21676 || ('s' <= (c) && (c) <= 'z'))
21677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21678#endif
21679
21680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21681int
21682main ()
21683{
21684 int i;
21685 for (i = 0; i < 256; i++)
21686 if (XOR (islower (i), ISLOWER (i))
21687 || toupper (i) != TOUPPER (i))
21688 return 2;
21689 return 0;
21690}
21691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021692if ac_fn_c_try_run "$LINENO"; then :
21693
cristy3ed852e2009-09-05 21:47:34 +000021694else
cristy8b350f62009-11-15 23:12:43 +000021695 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy8b350f62009-11-15 23:12:43 +000021697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021699fi
21700
cristy3ed852e2009-09-05 21:47:34 +000021701fi
21702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_header_stdc" >&6; }
21705if test $ac_cv_header_stdc = yes; then
21706
cristy8b350f62009-11-15 23:12:43 +000021707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021708
21709fi
21710
21711if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021712 { $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 +000021713 header files. Compilation cannot proceed. Please install the ANSI C
21714 headers and rerun this script." >&5
21715$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21716 header files. Compilation cannot proceed. Please install the ANSI C
21717 headers and rerun this script." >&2;};
21718fi
cristya0b81c32010-01-22 02:54:33 +000021719
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21721$as_echo_n "checking whether to enable assertions... " >&6; }
21722 # Check whether --enable-assert was given.
21723if test "${enable_assert+set}" = set; then :
21724 enableval=$enable_assert; ac_enable_assert=$enableval
21725 if test "x$enableval" = xno; then :
21726
21727$as_echo "#define NDEBUG 1" >>confdefs.h
21728
21729elif test "x$enableval" != xyes; then :
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21731$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21732 ac_enable_assert=yes
21733fi
21734else
21735 ac_enable_assert=yes
21736fi
21737
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21739$as_echo "$ac_enable_assert" >&6; }
21740
cristy3ed852e2009-09-05 21:47:34 +000021741ac_header_dirent=no
21742for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21743 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021746if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021750/* end confdefs.h. */
21751#include <sys/types.h>
21752#include <$ac_hdr>
21753
21754int
21755main ()
21756{
21757if ((DIR *) 0)
21758return 0;
21759 ;
21760 return 0;
21761}
21762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021764 eval "$as_ac_Header=yes"
21765else
cristy8b350f62009-11-15 23:12:43 +000021766 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021767fi
cristy3ed852e2009-09-05 21:47:34 +000021768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769fi
cristy8b350f62009-11-15 23:12:43 +000021770eval ac_res=\$$as_ac_Header
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 cat >>confdefs.h <<_ACEOF
21775#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21776_ACEOF
21777
21778ac_header_dirent=$ac_hdr; break
21779fi
21780
21781done
21782# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21783if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021785$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021786if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 $as_echo_n "(cached) " >&6
21788else
21789 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021791/* end confdefs.h. */
21792
21793/* Override any GCC internal prototype to avoid an error.
21794 Use char because int might match the return type of a GCC
21795 builtin and then its argument prototype would still apply. */
21796#ifdef __cplusplus
21797extern "C"
21798#endif
21799char opendir ();
21800int
21801main ()
21802{
21803return opendir ();
21804 ;
21805 return 0;
21806}
21807_ACEOF
21808for ac_lib in '' dir; do
21809 if test -z "$ac_lib"; then
21810 ac_res="none required"
21811 else
21812 ac_res=-l$ac_lib
21813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21814 fi
cristy8b350f62009-11-15 23:12:43 +000021815 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021816 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021817fi
cristy8b350f62009-11-15 23:12:43 +000021818rm -f core conftest.err conftest.$ac_objext \
21819 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021820 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 break
21822fi
21823done
cristyda16f162011-02-19 23:52:17 +000021824if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021825
cristy3ed852e2009-09-05 21:47:34 +000021826else
21827 ac_cv_search_opendir=no
21828fi
21829rm conftest.$ac_ext
21830LIBS=$ac_func_search_save_LIBS
21831fi
cristy8b350f62009-11-15 23:12:43 +000021832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo "$ac_cv_search_opendir" >&6; }
21834ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021835if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21837
21838fi
21839
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021842$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021843if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021844 $as_echo_n "(cached) " >&6
21845else
21846 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021848/* end confdefs.h. */
21849
21850/* Override any GCC internal prototype to avoid an error.
21851 Use char because int might match the return type of a GCC
21852 builtin and then its argument prototype would still apply. */
21853#ifdef __cplusplus
21854extern "C"
21855#endif
21856char opendir ();
21857int
21858main ()
21859{
21860return opendir ();
21861 ;
21862 return 0;
21863}
21864_ACEOF
21865for ac_lib in '' x; do
21866 if test -z "$ac_lib"; then
21867 ac_res="none required"
21868 else
21869 ac_res=-l$ac_lib
21870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21871 fi
cristy8b350f62009-11-15 23:12:43 +000021872 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021874fi
cristy8b350f62009-11-15 23:12:43 +000021875rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021877 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 break
21879fi
21880done
cristyda16f162011-02-19 23:52:17 +000021881if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021882
cristy3ed852e2009-09-05 21:47:34 +000021883else
21884 ac_cv_search_opendir=no
21885fi
21886rm conftest.$ac_ext
21887LIBS=$ac_func_search_save_LIBS
21888fi
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo "$ac_cv_search_opendir" >&6; }
21891ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021892if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21894
21895fi
21896
21897fi
21898
21899
21900# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021901for 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 +000021902do :
21903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021906 cat >>confdefs.h <<_ACEOF
21907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21908_ACEOF
21909
21910fi
21911
21912done
21913
21914
21915########
21916#
21917# Checks for typedefs, structures, and compiler characteristics.
21918#
21919########
21920
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021923if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021924 $as_echo_n "(cached) " >&6
21925else
cristy8b350f62009-11-15 23:12:43 +000021926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021927/* end confdefs.h. */
21928
21929#include <stdbool.h>
21930#ifndef bool
21931 "error: bool is not defined"
21932#endif
21933#ifndef false
21934 "error: false is not defined"
21935#endif
21936#if false
21937 "error: false is not 0"
21938#endif
21939#ifndef true
21940 "error: true is not defined"
21941#endif
21942#if true != 1
21943 "error: true is not 1"
21944#endif
21945#ifndef __bool_true_false_are_defined
21946 "error: __bool_true_false_are_defined is not defined"
21947#endif
21948
21949 struct s { _Bool s: 1; _Bool t; } s;
21950
21951 char a[true == 1 ? 1 : -1];
21952 char b[false == 0 ? 1 : -1];
21953 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21954 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021955 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021956 char f[(_Bool) 0.0 == false ? 1 : -1];
21957 char g[true];
21958 char h[sizeof (_Bool)];
21959 char i[sizeof s.t];
21960 enum { j = false, k = true, l = false * true, m = true * 256 };
21961 /* The following fails for
21962 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21963 _Bool n[m];
21964 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21965 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021966 /* Catch a bug in an HP-UX C compiler. See
21967 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21968 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21969 */
21970 _Bool q = true;
21971 _Bool *pq = &q;
21972
21973int
21974main ()
21975{
21976
cristyda16f162011-02-19 23:52:17 +000021977 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021978 *pq |= q;
21979 *pq |= ! q;
21980 /* Refer to every declared value, to avoid compiler optimizations. */
21981 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21982 + !m + !n + !o + !p + !q + !pq);
21983
21984 ;
21985 return 0;
21986}
21987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 ac_cv_header_stdbool_h=yes
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021992fi
cristy3ed852e2009-09-05 21:47:34 +000021993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994fi
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021997ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021998if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021999
22000cat >>confdefs.h <<_ACEOF
22001#define HAVE__BOOL 1
22002_ACEOF
22003
22004
22005fi
22006
22007if test $ac_cv_header_stdbool_h = yes; then
22008
cristy8b350f62009-11-15 23:12:43 +000022009$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022010
22011fi
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022015if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 $as_echo_n "(cached) " >&6
22017else
cristy8b350f62009-11-15 23:12:43 +000022018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022019/* end confdefs.h. */
22020
22021int
22022main ()
22023{
22024
22025volatile int x;
22026int * volatile y = (int *) 0;
22027return !x && !y;
22028 ;
22029 return 0;
22030}
22031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022032if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022033 ac_cv_c_volatile=yes
22034else
cristy8b350f62009-11-15 23:12:43 +000022035 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022036fi
cristy3ed852e2009-09-05 21:47:34 +000022037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038fi
cristy8b350f62009-11-15 23:12:43 +000022039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo "$ac_cv_c_volatile" >&6; }
22041if test $ac_cv_c_volatile = no; then
22042
cristy8b350f62009-11-15 23:12:43 +000022043$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022044
22045fi
22046
cristy8b350f62009-11-15 23:12:43 +000022047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022048$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022049if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 $as_echo_n "(cached) " >&6
22051else
cristy8b350f62009-11-15 23:12:43 +000022052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022053/* end confdefs.h. */
22054#define x(y) #y
22055
22056char *s = x(teststring);
22057_ACEOF
22058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022059 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 ac_cv_c_stringize=no
22061else
22062 ac_cv_c_stringize=yes
22063fi
22064rm -f conftest*
22065
22066fi
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo "$ac_cv_c_stringize" >&6; }
22069if test $ac_cv_c_stringize = yes; then
22070
cristy8b350f62009-11-15 23:12:43 +000022071$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022072
22073fi
22074
cristy8b350f62009-11-15 23:12:43 +000022075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022077if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 $as_echo_n "(cached) " >&6
22079else
cristy8b350f62009-11-15 23:12:43 +000022080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022081/* end confdefs.h. */
22082#include <sys/types.h>
22083#include <sys/stat.h>
22084
22085#if defined S_ISBLK && defined S_IFDIR
22086extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22087#endif
22088
22089#if defined S_ISBLK && defined S_IFCHR
22090extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22091#endif
22092
22093#if defined S_ISLNK && defined S_IFREG
22094extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22095#endif
22096
22097#if defined S_ISSOCK && defined S_IFREG
22098extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22099#endif
22100
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_cv_header_stat_broken=no
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy3ed852e2009-09-05 21:47:34 +000022107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108fi
cristy8b350f62009-11-15 23:12:43 +000022109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo "$ac_cv_header_stat_broken" >&6; }
22111if test $ac_cv_header_stat_broken = yes; then
22112
cristy8b350f62009-11-15 23:12:43 +000022113$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022114
22115fi
22116
cristy8b350f62009-11-15 23:12:43 +000022117{ $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 +000022118$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022119if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 $as_echo_n "(cached) " >&6
22121else
cristy8b350f62009-11-15 23:12:43 +000022122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123/* end confdefs.h. */
22124#include <sys/types.h>
22125#include <sys/time.h>
22126#include <time.h>
22127
22128int
22129main ()
22130{
22131if ((struct tm *) 0)
22132return 0;
22133 ;
22134 return 0;
22135}
22136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022137if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022138 ac_cv_header_time=yes
22139else
cristy8b350f62009-11-15 23:12:43 +000022140 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022141fi
cristy3ed852e2009-09-05 21:47:34 +000022142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143fi
cristy8b350f62009-11-15 23:12:43 +000022144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022145$as_echo "$ac_cv_header_time" >&6; }
22146if test $ac_cv_header_time = yes; then
22147
cristy8b350f62009-11-15 23:12:43 +000022148$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022149
22150fi
22151
cristy8b350f62009-11-15 23:12:43 +000022152{ $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 +000022153$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022154if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 $as_echo_n "(cached) " >&6
22156else
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <sys/types.h>
22160#include <time.h>
22161
22162int
22163main ()
22164{
22165struct tm tm;
22166 int *p = &tm.tm_sec;
22167 return !p;
22168 ;
22169 return 0;
22170}
22171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022172if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022173 ac_cv_struct_tm=time.h
22174else
cristy8b350f62009-11-15 23:12:43 +000022175 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022176fi
cristy3ed852e2009-09-05 21:47:34 +000022177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178fi
cristy8b350f62009-11-15 23:12:43 +000022179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022180$as_echo "$ac_cv_struct_tm" >&6; }
22181if test $ac_cv_struct_tm = sys/time.h; then
22182
cristy8b350f62009-11-15 23:12:43 +000022183$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022184
22185fi
22186
cristy92703d82010-04-26 00:18:18 +000022187ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22188#include <$ac_cv_struct_tm>
22189
22190"
cristyda16f162011-02-19 23:52:17 +000022191if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022192
22193cat >>confdefs.h <<_ACEOF
22194#define HAVE_STRUCT_TM_TM_ZONE 1
22195_ACEOF
22196
22197
22198fi
22199
22200if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22201
22202$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22203
22204else
22205 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22206"
cristyda16f162011-02-19 23:52:17 +000022207if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022208 ac_have_decl=1
22209else
22210 ac_have_decl=0
22211fi
22212
22213cat >>confdefs.h <<_ACEOF
22214#define HAVE_DECL_TZNAME $ac_have_decl
22215_ACEOF
22216
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22218$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022220 $as_echo_n "(cached) " >&6
22221else
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223/* end confdefs.h. */
22224#include <time.h>
22225#if !HAVE_DECL_TZNAME
22226extern char *tzname[];
22227#endif
22228
22229int
22230main ()
22231{
22232return tzname[0][0];
22233 ;
22234 return 0;
22235}
22236_ACEOF
22237if ac_fn_c_try_link "$LINENO"; then :
22238 ac_cv_var_tzname=yes
22239else
22240 ac_cv_var_tzname=no
22241fi
22242rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22244fi
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22246$as_echo "$ac_cv_var_tzname" >&6; }
22247 if test $ac_cv_var_tzname = yes; then
22248
22249$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22250
22251 fi
22252fi
22253
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022256if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 $as_echo_n "(cached) " >&6
22258else
22259 echo '#! /bin/cat
22260exit 69
22261' >conftest
22262chmod u+x conftest
22263(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22264if test $? -ne 69; then
22265 ac_cv_sys_interpreter=yes
22266else
22267 ac_cv_sys_interpreter=no
22268fi
22269rm -f conftest
22270fi
cristy8b350f62009-11-15 23:12:43 +000022271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022272$as_echo "$ac_cv_sys_interpreter" >&6; }
22273interpval=$ac_cv_sys_interpreter
22274
22275
cristy3ed852e2009-09-05 21:47:34 +000022276# If the C compiler supports the keyword inline, do nothing. Otherwise
22277# define inline to __inline__ or __inline if it accepts one of those,
22278# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022280$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022281if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022282 $as_echo_n "(cached) " >&6
22283else
22284 ac_cv_c_inline=no
22285for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022287/* end confdefs.h. */
22288#ifndef __cplusplus
22289typedef int foo_t;
22290static $ac_kw foo_t static_foo () {return 0; }
22291$ac_kw foo_t foo () {return 0; }
22292#endif
22293
22294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022295if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022297fi
cristy3ed852e2009-09-05 21:47:34 +000022298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 test "$ac_cv_c_inline" != no && break
22300done
22301
22302fi
cristy8b350f62009-11-15 23:12:43 +000022303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo "$ac_cv_c_inline" >&6; }
22305
cristy3ed852e2009-09-05 21:47:34 +000022306case $ac_cv_c_inline in
22307 inline | yes) ;;
22308 *)
22309 case $ac_cv_c_inline in
22310 no) ac_val=;;
22311 *) ac_val=$ac_cv_c_inline;;
22312 esac
22313 cat >>confdefs.h <<_ACEOF
22314#ifndef __cplusplus
22315#define inline $ac_val
22316#endif
22317_ACEOF
22318 ;;
22319esac
22320
22321
22322# If the C compiler supports the keyword restrict, do nothing. Otherwise
22323# define restrict to __restrict__ or __restrict if it accepts one of those,
22324# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022327if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 $as_echo_n "(cached) " >&6
22329else
22330 ac_cv_c_restrict=no
22331 # The order here caters to the fact that C++ does not require restrict.
22332 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022334/* end confdefs.h. */
22335typedef int * int_ptr;
22336 int foo (int_ptr $ac_kw ip) {
22337 return ip[0];
22338 }
22339int
22340main ()
22341{
22342int s[1];
22343 int * $ac_kw t = s;
22344 t[0] = 0;
22345 return foo(t)
22346 ;
22347 return 0;
22348}
22349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022352fi
cristy3ed852e2009-09-05 21:47:34 +000022353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 test "$ac_cv_c_restrict" != no && break
22355 done
22356
22357fi
cristy8b350f62009-11-15 23:12:43 +000022358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022359$as_echo "$ac_cv_c_restrict" >&6; }
22360
cristy3ed852e2009-09-05 21:47:34 +000022361 case $ac_cv_c_restrict in
22362 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022363 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364 ;;
22365 *) cat >>confdefs.h <<_ACEOF
22366#define restrict $ac_cv_c_restrict
22367_ACEOF
22368 ;;
22369 esac
22370
22371
22372# If words are stored with the most significant byte first (like
22373# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022375$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022376if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 $as_echo_n "(cached) " >&6
22378else
22379 ac_cv_c_bigendian=unknown
22380 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022382/* end confdefs.h. */
22383#ifndef __APPLE_CC__
22384 not a universal capable compiler
22385 #endif
22386 typedef int dummy;
22387
22388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022389if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022390
22391 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022392 # there are at least two -arch flags with different values.
22393 ac_arch=
22394 ac_prev=
22395 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22396 if test -n "$ac_prev"; then
22397 case $ac_word in
22398 i?86 | x86_64 | ppc | ppc64)
22399 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22400 ac_arch=$ac_word
22401 else
22402 ac_cv_c_bigendian=universal
22403 break
22404 fi
22405 ;;
22406 esac
22407 ac_prev=
22408 elif test "x$ac_word" = "x-arch"; then
22409 ac_prev=arch
22410 fi
22411 done
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy3ed852e2009-09-05 21:47:34 +000022413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 if test $ac_cv_c_bigendian = unknown; then
22415 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022417/* end confdefs.h. */
22418#include <sys/types.h>
22419 #include <sys/param.h>
22420
22421int
22422main ()
22423{
22424#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22425 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22426 && LITTLE_ENDIAN)
22427 bogus endian macros
22428 #endif
22429
22430 ;
22431 return 0;
22432}
22433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022434if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022435 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022437/* end confdefs.h. */
22438#include <sys/types.h>
22439 #include <sys/param.h>
22440
22441int
22442main ()
22443{
22444#if BYTE_ORDER != BIG_ENDIAN
22445 not big endian
22446 #endif
22447
22448 ;
22449 return 0;
22450}
22451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022452if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022453 ac_cv_c_bigendian=yes
22454else
cristy8b350f62009-11-15 23:12:43 +000022455 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022456fi
cristy3ed852e2009-09-05 21:47:34 +000022457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 fi
22461 if test $ac_cv_c_bigendian = unknown; then
22462 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022464/* end confdefs.h. */
22465#include <limits.h>
22466
22467int
22468main ()
22469{
22470#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22471 bogus endian macros
22472 #endif
22473
22474 ;
22475 return 0;
22476}
22477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022478if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022479 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022481/* end confdefs.h. */
22482#include <limits.h>
22483
22484int
22485main ()
22486{
22487#ifndef _BIG_ENDIAN
22488 not big endian
22489 #endif
22490
22491 ;
22492 return 0;
22493}
22494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022496 ac_cv_c_bigendian=yes
22497else
cristy8b350f62009-11-15 23:12:43 +000022498 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022499fi
cristy3ed852e2009-09-05 21:47:34 +000022500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022501fi
cristy3ed852e2009-09-05 21:47:34 +000022502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 if test $ac_cv_c_bigendian = unknown; then
22505 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022506 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022509/* end confdefs.h. */
22510short int ascii_mm[] =
22511 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22512 short int ascii_ii[] =
22513 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22514 int use_ascii (int i) {
22515 return ascii_mm[i] + ascii_ii[i];
22516 }
22517 short int ebcdic_ii[] =
22518 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22519 short int ebcdic_mm[] =
22520 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22521 int use_ebcdic (int i) {
22522 return ebcdic_mm[i] + ebcdic_ii[i];
22523 }
22524 extern int foo;
22525
22526int
22527main ()
22528{
22529return use_ascii (foo) == use_ebcdic (foo);
22530 ;
22531 return 0;
22532}
22533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022534if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22536 ac_cv_c_bigendian=yes
22537 fi
22538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22539 if test "$ac_cv_c_bigendian" = unknown; then
22540 ac_cv_c_bigendian=no
22541 else
22542 # finding both strings is unlikely to happen, but who knows?
22543 ac_cv_c_bigendian=unknown
22544 fi
22545 fi
cristy3ed852e2009-09-05 21:47:34 +000022546fi
cristy3ed852e2009-09-05 21:47:34 +000022547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548else
cristy8b350f62009-11-15 23:12:43 +000022549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022550/* end confdefs.h. */
22551$ac_includes_default
22552int
22553main ()
22554{
22555
22556 /* Are we little or big endian? From Harbison&Steele. */
22557 union
22558 {
22559 long int l;
22560 char c[sizeof (long int)];
22561 } u;
22562 u.l = 1;
22563 return u.c[sizeof (long int) - 1] == 1;
22564
22565 ;
22566 return 0;
22567}
22568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022569if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022570 ac_cv_c_bigendian=no
22571else
cristy8b350f62009-11-15 23:12:43 +000022572 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022573fi
cristy8b350f62009-11-15 23:12:43 +000022574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22575 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022576fi
22577
cristy3ed852e2009-09-05 21:47:34 +000022578 fi
22579fi
cristy8b350f62009-11-15 23:12:43 +000022580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo "$ac_cv_c_bigendian" >&6; }
22582 case $ac_cv_c_bigendian in #(
22583 yes)
cristy8b350f62009-11-15 23:12:43 +000022584 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022585;; #(
22586 no)
22587 ;; #(
22588 universal)
22589
cristy8b350f62009-11-15 23:12:43 +000022590$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022591
22592 ;; #(
22593 *)
cristy98dddb52010-11-04 00:30:15 +000022594 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022595 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022596 esac
22597
22598
cristy501c8042011-05-26 17:46:28 +000022599# Define to a suitable type, if standard headers do not define it.
22600ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22601case $ac_cv_c_int8_t in #(
22602 no|yes) ;; #(
22603 *)
cristy3ed852e2009-09-05 21:47:34 +000022604
22605cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022606#define int8_t $ac_cv_c_int8_t
22607_ACEOF
22608;;
22609esac
22610
22611ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22612case $ac_cv_c_int16_t in #(
22613 no|yes) ;; #(
22614 *)
22615
22616cat >>confdefs.h <<_ACEOF
22617#define int16_t $ac_cv_c_int16_t
22618_ACEOF
22619;;
22620esac
22621
22622ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22623case $ac_cv_c_int32_t in #(
22624 no|yes) ;; #(
22625 *)
22626
22627cat >>confdefs.h <<_ACEOF
22628#define int32_t $ac_cv_c_int32_t
22629_ACEOF
22630;;
22631esac
22632
22633ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22634case $ac_cv_c_int64_t in #(
22635 no|yes) ;; #(
22636 *)
22637
22638cat >>confdefs.h <<_ACEOF
22639#define int64_t $ac_cv_c_int64_t
22640_ACEOF
22641;;
22642esac
22643
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22646$as_echo_n "checking for long long int... " >&6; }
22647if ${ac_cv_type_long_long_int+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649else
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651/* end confdefs.h. */
22652
22653 /* For now, do not test the preprocessor; as of 2007 there are too many
22654 implementations with broken preprocessors. Perhaps this can
22655 be revisited in 2012. In the meantime, code should not expect
22656 #if to work with literals wider than 32 bits. */
22657 /* Test literals. */
22658 long long int ll = 9223372036854775807ll;
22659 long long int nll = -9223372036854775807LL;
22660 unsigned long long int ull = 18446744073709551615ULL;
22661 /* Test constant expressions. */
22662 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22663 ? 1 : -1)];
22664 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22665 ? 1 : -1)];
22666 int i = 63;
22667int
22668main ()
22669{
22670/* Test availability of runtime routines for shift and division. */
22671 long long int llmax = 9223372036854775807ll;
22672 unsigned long long int ullmax = 18446744073709551615ull;
22673 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22674 | (llmax / ll) | (llmax % ll)
22675 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22676 | (ullmax / ull) | (ullmax % ull));
22677 ;
22678 return 0;
22679}
22680
22681_ACEOF
22682if ac_fn_c_try_link "$LINENO"; then :
22683 if test "$cross_compiling" = yes; then :
22684 ac_cv_type_long_long_int=yes
22685else
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687/* end confdefs.h. */
22688#include <limits.h>
22689 #ifndef LLONG_MAX
22690 # define HALF \
22691 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22692 # define LLONG_MAX (HALF - 1 + HALF)
22693 #endif
22694int
22695main ()
22696{
22697long long int n = 1;
22698 int i;
22699 for (i = 0; ; i++)
22700 {
22701 long long int m = n << i;
22702 if (m >> i != n)
22703 return 1;
22704 if (LLONG_MAX / 2 < m)
22705 break;
22706 }
22707 return 0;
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712if ac_fn_c_try_run "$LINENO"; then :
22713 ac_cv_type_long_long_int=yes
22714else
22715 ac_cv_type_long_long_int=no
22716fi
22717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22718 conftest.$ac_objext conftest.beam conftest.$ac_ext
22719fi
22720
22721else
22722 ac_cv_type_long_long_int=no
22723fi
22724rm -f core conftest.err conftest.$ac_objext \
22725 conftest$ac_exeext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22728$as_echo "$ac_cv_type_long_long_int" >&6; }
22729 if test $ac_cv_type_long_long_int = yes; then
22730
22731$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22732
22733 fi
22734
22735
22736
22737 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22738if test "x$ac_cv_type_intmax_t" = xyes; then :
22739
22740$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22741
22742else
22743 test $ac_cv_type_long_long_int = yes \
22744 && ac_type='long long int' \
22745 || ac_type='long int'
22746
22747cat >>confdefs.h <<_ACEOF
22748#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022749_ACEOF
22750
22751fi
22752
22753
cristy501c8042011-05-26 17:46:28 +000022754
22755 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22756if test "x$ac_cv_type_intptr_t" = xyes; then :
22757
22758$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022759
cristy3ed852e2009-09-05 21:47:34 +000022760else
cristy501c8042011-05-26 17:46:28 +000022761 for ac_type in 'int' 'long int' 'long long int'; do
22762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22763/* end confdefs.h. */
22764$ac_includes_default
22765int
22766main ()
22767{
22768static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22769test_array [0] = 0
22770
22771 ;
22772 return 0;
22773}
22774_ACEOF
22775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022776
22777cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022778#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022779_ACEOF
22780
cristy501c8042011-05-26 17:46:28 +000022781 ac_type=
22782fi
22783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 test -z "$ac_type" && break
22785 done
cristy3ed852e2009-09-05 21:47:34 +000022786fi
22787
22788
cristy3ed852e2009-09-05 21:47:34 +000022789
cristy501c8042011-05-26 17:46:28 +000022790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22791$as_echo_n "checking for long double... " >&6; }
22792if ${ac_cv_type_long_double+:} false; then :
22793 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022794else
cristy501c8042011-05-26 17:46:28 +000022795 if test "$GCC" = yes; then
22796 ac_cv_type_long_double=yes
22797 else
22798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799/* end confdefs.h. */
22800/* The Stardent Vistra knows sizeof (long double), but does
22801 not support it. */
22802 long double foo = 0.0L;
22803int
22804main ()
22805{
22806static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22807 sizeof (double) <= sizeof (long double))];
22808test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022809
cristy501c8042011-05-26 17:46:28 +000022810 ;
22811 return 0;
22812}
cristy3ed852e2009-09-05 21:47:34 +000022813_ACEOF
cristy501c8042011-05-26 17:46:28 +000022814if ac_fn_c_try_compile "$LINENO"; then :
22815 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022816else
cristy501c8042011-05-26 17:46:28 +000022817 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022818fi
cristy501c8042011-05-26 17:46:28 +000022819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 fi
cristy3ed852e2009-09-05 21:47:34 +000022821fi
cristy501c8042011-05-26 17:46:28 +000022822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22823$as_echo "$ac_cv_type_long_double" >&6; }
22824 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022825
cristy501c8042011-05-26 17:46:28 +000022826$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022827
cristy501c8042011-05-26 17:46:28 +000022828 fi
22829
cristy3ed852e2009-09-05 21:47:34 +000022830
cristy8b350f62009-11-15 23:12:43 +000022831 { $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 +000022832$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022833if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022834 $as_echo_n "(cached) " >&6
22835else
cristy8b350f62009-11-15 23:12:43 +000022836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022837/* end confdefs.h. */
22838#include <float.h>
22839 long double const a[] =
22840 {
22841 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22842 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22843 };
22844 long double
22845 f (long double x)
22846 {
22847 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22848 + (x ? f (x) : 'c'));
22849 }
22850
22851int
22852main ()
22853{
22854static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22855 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22856 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22857 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22858 && (int) LDBL_EPSILON == 0
22859 )];
22860test_array [0] = 0
22861
22862 ;
22863 return 0;
22864}
22865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 ac_cv_type_long_double_wider=yes
22868else
cristy8b350f62009-11-15 23:12:43 +000022869 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022870fi
cristy3ed852e2009-09-05 21:47:34 +000022871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872fi
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo "$ac_cv_type_long_double_wider" >&6; }
22875 if test $ac_cv_type_long_double_wider = yes; then
22876
cristy8b350f62009-11-15 23:12:43 +000022877$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022878
22879 fi
22880
22881
cristy501c8042011-05-26 17:46:28 +000022882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22883$as_echo_n "checking for long long int... " >&6; }
22884if ${ac_cv_type_long_long_int+:} false; then :
22885 $as_echo_n "(cached) " >&6
22886else
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888/* end confdefs.h. */
22889
22890 /* For now, do not test the preprocessor; as of 2007 there are too many
22891 implementations with broken preprocessors. Perhaps this can
22892 be revisited in 2012. In the meantime, code should not expect
22893 #if to work with literals wider than 32 bits. */
22894 /* Test literals. */
22895 long long int ll = 9223372036854775807ll;
22896 long long int nll = -9223372036854775807LL;
22897 unsigned long long int ull = 18446744073709551615ULL;
22898 /* Test constant expressions. */
22899 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22900 ? 1 : -1)];
22901 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22902 ? 1 : -1)];
22903 int i = 63;
22904int
22905main ()
22906{
22907/* Test availability of runtime routines for shift and division. */
22908 long long int llmax = 9223372036854775807ll;
22909 unsigned long long int ullmax = 18446744073709551615ull;
22910 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22911 | (llmax / ll) | (llmax % ll)
22912 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22913 | (ullmax / ull) | (ullmax % ull));
22914 ;
22915 return 0;
22916}
22917
22918_ACEOF
22919if ac_fn_c_try_link "$LINENO"; then :
22920 if test "$cross_compiling" = yes; then :
22921 ac_cv_type_long_long_int=yes
22922else
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h. */
22925#include <limits.h>
22926 #ifndef LLONG_MAX
22927 # define HALF \
22928 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22929 # define LLONG_MAX (HALF - 1 + HALF)
22930 #endif
22931int
22932main ()
22933{
22934long long int n = 1;
22935 int i;
22936 for (i = 0; ; i++)
22937 {
22938 long long int m = n << i;
22939 if (m >> i != n)
22940 return 1;
22941 if (LLONG_MAX / 2 < m)
22942 break;
22943 }
22944 return 0;
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949if ac_fn_c_try_run "$LINENO"; then :
22950 ac_cv_type_long_long_int=yes
22951else
22952 ac_cv_type_long_long_int=no
22953fi
22954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22955 conftest.$ac_objext conftest.beam conftest.$ac_ext
22956fi
22957
22958else
22959 ac_cv_type_long_long_int=no
22960fi
22961rm -f core conftest.err conftest.$ac_objext \
22962 conftest$ac_exeext conftest.$ac_ext
22963fi
22964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22965$as_echo "$ac_cv_type_long_long_int" >&6; }
22966 if test $ac_cv_type_long_long_int = yes; then
22967
22968$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22969
22970 fi
22971
22972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22973$as_echo_n "checking for mbstate_t... " >&6; }
22974if ${ac_cv_type_mbstate_t+:} false; then :
22975 $as_echo_n "(cached) " >&6
22976else
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978/* end confdefs.h. */
22979$ac_includes_default
22980# include <wchar.h>
22981int
22982main ()
22983{
22984mbstate_t x; return sizeof x;
22985 ;
22986 return 0;
22987}
22988_ACEOF
22989if ac_fn_c_try_compile "$LINENO"; then :
22990 ac_cv_type_mbstate_t=yes
22991else
22992 ac_cv_type_mbstate_t=no
22993fi
22994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995fi
22996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22997$as_echo "$ac_cv_type_mbstate_t" >&6; }
22998 if test $ac_cv_type_mbstate_t = yes; then
22999
23000$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23001
23002 else
23003
23004$as_echo "#define mbstate_t int" >>confdefs.h
23005
23006 fi
23007ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23008if test "x$ac_cv_type_mode_t" = xyes; then :
23009
23010else
23011
23012cat >>confdefs.h <<_ACEOF
23013#define mode_t int
23014_ACEOF
23015
23016fi
23017
23018ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23019if test "x$ac_cv_type_off_t" = xyes; then :
23020
23021else
23022
23023cat >>confdefs.h <<_ACEOF
23024#define off_t long int
23025_ACEOF
23026
23027fi
23028
23029ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23030if test "x$ac_cv_type_pid_t" = xyes; then :
23031
23032else
23033
23034cat >>confdefs.h <<_ACEOF
23035#define pid_t int
23036_ACEOF
23037
23038fi
23039
23040ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23041if test "x$ac_cv_type_size_t" = xyes; then :
23042
23043else
23044
23045cat >>confdefs.h <<_ACEOF
23046#define size_t unsigned int
23047_ACEOF
23048
23049fi
23050
23051ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23052if test "x$ac_cv_type_ssize_t" = xyes; then :
23053
23054else
23055
23056cat >>confdefs.h <<_ACEOF
23057#define ssize_t int
23058_ACEOF
23059
23060fi
23061
23062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23063$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23064if ${ac_cv_type_uid_t+:} false; then :
23065 $as_echo_n "(cached) " >&6
23066else
23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068/* end confdefs.h. */
23069#include <sys/types.h>
23070
23071_ACEOF
23072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23073 $EGREP "uid_t" >/dev/null 2>&1; then :
23074 ac_cv_type_uid_t=yes
23075else
23076 ac_cv_type_uid_t=no
23077fi
23078rm -f conftest*
23079
23080fi
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23082$as_echo "$ac_cv_type_uid_t" >&6; }
23083if test $ac_cv_type_uid_t = no; then
23084
23085$as_echo "#define uid_t int" >>confdefs.h
23086
23087
23088$as_echo "#define gid_t int" >>confdefs.h
23089
23090fi
23091
23092ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23093case $ac_cv_c_uint8_t in #(
23094 no|yes) ;; #(
23095 *)
23096
23097$as_echo "#define _UINT8_T 1" >>confdefs.h
23098
23099
23100cat >>confdefs.h <<_ACEOF
23101#define uint8_t $ac_cv_c_uint8_t
23102_ACEOF
23103;;
23104 esac
23105
23106ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23107case $ac_cv_c_uint16_t in #(
23108 no|yes) ;; #(
23109 *)
23110
23111
23112cat >>confdefs.h <<_ACEOF
23113#define uint16_t $ac_cv_c_uint16_t
23114_ACEOF
23115;;
23116 esac
23117
23118ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23119case $ac_cv_c_uint32_t in #(
23120 no|yes) ;; #(
23121 *)
23122
23123$as_echo "#define _UINT32_T 1" >>confdefs.h
23124
23125
23126cat >>confdefs.h <<_ACEOF
23127#define uint32_t $ac_cv_c_uint32_t
23128_ACEOF
23129;;
23130 esac
23131
23132ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23133case $ac_cv_c_uint64_t in #(
23134 no|yes) ;; #(
23135 *)
23136
23137$as_echo "#define _UINT64_T 1" >>confdefs.h
23138
23139
23140cat >>confdefs.h <<_ACEOF
23141#define uint64_t $ac_cv_c_uint64_t
23142_ACEOF
23143;;
23144 esac
23145
23146
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23148$as_echo_n "checking for unsigned long long int... " >&6; }
23149if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23150 $as_echo_n "(cached) " >&6
23151else
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153/* end confdefs.h. */
23154
23155 /* For now, do not test the preprocessor; as of 2007 there are too many
23156 implementations with broken preprocessors. Perhaps this can
23157 be revisited in 2012. In the meantime, code should not expect
23158 #if to work with literals wider than 32 bits. */
23159 /* Test literals. */
23160 long long int ll = 9223372036854775807ll;
23161 long long int nll = -9223372036854775807LL;
23162 unsigned long long int ull = 18446744073709551615ULL;
23163 /* Test constant expressions. */
23164 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23165 ? 1 : -1)];
23166 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23167 ? 1 : -1)];
23168 int i = 63;
23169int
23170main ()
23171{
23172/* Test availability of runtime routines for shift and division. */
23173 long long int llmax = 9223372036854775807ll;
23174 unsigned long long int ullmax = 18446744073709551615ull;
23175 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23176 | (llmax / ll) | (llmax % ll)
23177 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23178 | (ullmax / ull) | (ullmax % ull));
23179 ;
23180 return 0;
23181}
23182
23183_ACEOF
23184if ac_fn_c_try_link "$LINENO"; then :
23185 ac_cv_type_unsigned_long_long_int=yes
23186else
23187 ac_cv_type_unsigned_long_long_int=no
23188fi
23189rm -f core conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
23191fi
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23193$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23194 if test $ac_cv_type_unsigned_long_long_int = yes; then
23195
23196$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23197
23198 fi
23199
23200
23201
23202 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23203if test "x$ac_cv_type_uintmax_t" = xyes; then :
23204
23205$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23206
23207else
23208 test $ac_cv_type_unsigned_long_long_int = yes \
23209 && ac_type='unsigned long long int' \
23210 || ac_type='unsigned long int'
23211
23212cat >>confdefs.h <<_ACEOF
23213#define uintmax_t $ac_type
23214_ACEOF
23215
23216fi
23217
23218
23219
23220 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23221if test "x$ac_cv_type_uintptr_t" = xyes; then :
23222
23223$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23224
23225else
23226 for ac_type in 'unsigned int' 'unsigned long int' \
23227 'unsigned long long int'; do
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229/* end confdefs.h. */
23230$ac_includes_default
23231int
23232main ()
23233{
23234static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23235test_array [0] = 0
23236
23237 ;
23238 return 0;
23239}
23240_ACEOF
23241if ac_fn_c_try_compile "$LINENO"; then :
23242
23243cat >>confdefs.h <<_ACEOF
23244#define uintptr_t $ac_type
23245_ACEOF
23246
23247 ac_type=
23248fi
23249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 test -z "$ac_type" && break
23251 done
23252fi
23253
23254
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23257$as_echo_n "checking for unsigned long long int... " >&6; }
23258if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23259 $as_echo_n "(cached) " >&6
23260else
23261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23262/* end confdefs.h. */
23263
23264 /* For now, do not test the preprocessor; as of 2007 there are too many
23265 implementations with broken preprocessors. Perhaps this can
23266 be revisited in 2012. In the meantime, code should not expect
23267 #if to work with literals wider than 32 bits. */
23268 /* Test literals. */
23269 long long int ll = 9223372036854775807ll;
23270 long long int nll = -9223372036854775807LL;
23271 unsigned long long int ull = 18446744073709551615ULL;
23272 /* Test constant expressions. */
23273 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23274 ? 1 : -1)];
23275 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23276 ? 1 : -1)];
23277 int i = 63;
23278int
23279main ()
23280{
23281/* Test availability of runtime routines for shift and division. */
23282 long long int llmax = 9223372036854775807ll;
23283 unsigned long long int ullmax = 18446744073709551615ull;
23284 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23285 | (llmax / ll) | (llmax % ll)
23286 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23287 | (ullmax / ull) | (ullmax % ull));
23288 ;
23289 return 0;
23290}
23291
23292_ACEOF
23293if ac_fn_c_try_link "$LINENO"; then :
23294 ac_cv_type_unsigned_long_long_int=yes
23295else
23296 ac_cv_type_unsigned_long_long_int=no
23297fi
23298rm -f core conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
23300fi
23301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23302$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23303 if test $ac_cv_type_unsigned_long_long_int = yes; then
23304
23305$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23306
23307 fi
23308
23309
cristy3ed852e2009-09-05 21:47:34 +000023310# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23311# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023313$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023314if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023315 $as_echo_n "(cached) " >&6
23316else
cristy8b350f62009-11-15 23:12:43 +000023317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023318/* end confdefs.h. */
23319$ac_includes_default
23320int
23321main ()
23322{
23323static int test_array [1 - 2 * !(((char) -1) < 0)];
23324test_array [0] = 0
23325
23326 ;
23327 return 0;
23328}
23329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023331 ac_cv_c_char_unsigned=no
23332else
cristy8b350f62009-11-15 23:12:43 +000023333 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023334fi
cristy3ed852e2009-09-05 21:47:34 +000023335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336fi
cristy8b350f62009-11-15 23:12:43 +000023337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338$as_echo "$ac_cv_c_char_unsigned" >&6; }
23339if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023340 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023341
23342fi
23343
23344
23345# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23346# The cast to long int works around a bug in the HP C Compiler
23347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023352if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023353 $as_echo_n "(cached) " >&6
23354else
cristy8b350f62009-11-15 23:12:43 +000023355 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 +000023356
cristy3ed852e2009-09-05 21:47:34 +000023357else
cristy8b350f62009-11-15 23:12:43 +000023358 if test "$ac_cv_type_signed_short" = yes; then
23359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023361as_fn_error 77 "cannot compute sizeof (signed short)
23362See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023363 else
23364 ac_cv_sizeof_signed_short=0
23365 fi
23366fi
cristy8b350f62009-11-15 23:12:43 +000023367
cristy3ed852e2009-09-05 21:47:34 +000023368fi
cristy8b350f62009-11-15 23:12:43 +000023369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23371
23372
23373
23374cat >>confdefs.h <<_ACEOF
23375#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23376_ACEOF
23377
23378
23379
23380# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23381# The cast to long int works around a bug in the HP C Compiler
23382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23384# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023386$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023387if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023388 $as_echo_n "(cached) " >&6
23389else
cristy8b350f62009-11-15 23:12:43 +000023390 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 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392else
cristy8b350f62009-11-15 23:12:43 +000023393 if test "$ac_cv_type_unsigned_short" = yes; then
23394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023396as_fn_error 77 "cannot compute sizeof (unsigned short)
23397See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023398 else
23399 ac_cv_sizeof_unsigned_short=0
23400 fi
23401fi
cristy8b350f62009-11-15 23:12:43 +000023402
cristy3ed852e2009-09-05 21:47:34 +000023403fi
cristy8b350f62009-11-15 23:12:43 +000023404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023405$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23406
23407
23408
23409cat >>confdefs.h <<_ACEOF
23410#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23411_ACEOF
23412
23413
23414
23415# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23416# The cast to long int works around a bug in the HP C Compiler
23417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23419# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023422if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023423 $as_echo_n "(cached) " >&6
23424else
cristy8b350f62009-11-15 23:12:43 +000023425 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 +000023426
cristy3ed852e2009-09-05 21:47:34 +000023427else
cristy8b350f62009-11-15 23:12:43 +000023428 if test "$ac_cv_type_signed_int" = yes; then
23429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023431as_fn_error 77 "cannot compute sizeof (signed int)
23432See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023433 else
23434 ac_cv_sizeof_signed_int=0
23435 fi
23436fi
cristy8b350f62009-11-15 23:12:43 +000023437
cristy3ed852e2009-09-05 21:47:34 +000023438fi
cristy8b350f62009-11-15 23:12:43 +000023439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023440$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23441
23442
23443
23444cat >>confdefs.h <<_ACEOF
23445#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23446_ACEOF
23447
23448
23449
23450# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23451# The cast to long int works around a bug in the HP C Compiler
23452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23454# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023457if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 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 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 if test "$ac_cv_type_unsigned_int" = yes; then
23464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023466as_fn_error 77 "cannot compute sizeof (unsigned int)
23467See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023468 else
23469 ac_cv_sizeof_unsigned_int=0
23470 fi
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472
cristy3ed852e2009-09-05 21:47:34 +000023473fi
cristy8b350f62009-11-15 23:12:43 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23476
23477
23478
23479cat >>confdefs.h <<_ACEOF
23480#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23481_ACEOF
23482
23483
23484
23485# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23486# The cast to long int works around a bug in the HP C Compiler
23487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23489# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023492if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023493 $as_echo_n "(cached) " >&6
23494else
cristy8b350f62009-11-15 23:12:43 +000023495 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 +000023496
cristy3ed852e2009-09-05 21:47:34 +000023497else
cristy8b350f62009-11-15 23:12:43 +000023498 if test "$ac_cv_type_signed_long" = yes; then
23499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023501as_fn_error 77 "cannot compute sizeof (signed long)
23502See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023503 else
23504 ac_cv_sizeof_signed_long=0
23505 fi
23506fi
cristy8b350f62009-11-15 23:12:43 +000023507
cristy3ed852e2009-09-05 21:47:34 +000023508fi
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23511
23512
23513
23514cat >>confdefs.h <<_ACEOF
23515#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23516_ACEOF
23517
23518
23519
23520# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23521# The cast to long int works around a bug in the HP C Compiler
23522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023526$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023527if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023528 $as_echo_n "(cached) " >&6
23529else
cristy8b350f62009-11-15 23:12:43 +000023530 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 +000023531
cristy3ed852e2009-09-05 21:47:34 +000023532else
cristy8b350f62009-11-15 23:12:43 +000023533 if test "$ac_cv_type_unsigned_long" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023536as_fn_error 77 "cannot compute sizeof (unsigned long)
23537See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023538 else
23539 ac_cv_sizeof_unsigned_long=0
23540 fi
23541fi
cristy8b350f62009-11-15 23:12:43 +000023542
cristy3ed852e2009-09-05 21:47:34 +000023543fi
cristy8b350f62009-11-15 23:12:43 +000023544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23546
23547
23548
23549cat >>confdefs.h <<_ACEOF
23550#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23551_ACEOF
23552
23553
23554
23555# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23556# 'signed long long' is not supported then the value defined is zero.
23557# The cast to long int works around a bug in the HP C Compiler
23558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23560# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023563if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023564 $as_echo_n "(cached) " >&6
23565else
cristy8b350f62009-11-15 23:12:43 +000023566 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 +000023567
cristy3ed852e2009-09-05 21:47:34 +000023568else
cristy8b350f62009-11-15 23:12:43 +000023569 if test "$ac_cv_type_signed_long_long" = yes; then
23570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023572as_fn_error 77 "cannot compute sizeof (signed long long)
23573See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023574 else
23575 ac_cv_sizeof_signed_long_long=0
23576 fi
23577fi
cristy8b350f62009-11-15 23:12:43 +000023578
cristy3ed852e2009-09-05 21:47:34 +000023579fi
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23582
23583
23584
23585cat >>confdefs.h <<_ACEOF
23586#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23587_ACEOF
23588
23589
23590
23591# Obtain size of a 'unsigned long long' and define as
23592# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23593# supported then the value defined is zero.
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023600if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023601 $as_echo_n "(cached) " >&6
23602else
cristy8b350f62009-11-15 23:12:43 +000023603 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 +000023604
cristy3ed852e2009-09-05 21:47:34 +000023605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$ac_cv_type_unsigned_long_long" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023609as_fn_error 77 "cannot compute sizeof (unsigned long long)
23610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023611 else
23612 ac_cv_sizeof_unsigned_long_long=0
23613 fi
23614fi
cristy8b350f62009-11-15 23:12:43 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23624_ACEOF
23625
23626
23627
23628# Obtain size of off_t and define as SIZEOF_OFF_T
23629# The cast to long int works around a bug in the HP C Compiler
23630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23632# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023635if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023636 $as_echo_n "(cached) " >&6
23637else
cristy8b350f62009-11-15 23:12:43 +000023638 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 +000023639
cristy3ed852e2009-09-05 21:47:34 +000023640else
cristy8b350f62009-11-15 23:12:43 +000023641 if test "$ac_cv_type_off_t" = yes; then
23642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023644as_fn_error 77 "cannot compute sizeof (off_t)
23645See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023646 else
23647 ac_cv_sizeof_off_t=0
23648 fi
23649fi
cristy8b350f62009-11-15 23:12:43 +000023650
cristy3ed852e2009-09-05 21:47:34 +000023651fi
cristy8b350f62009-11-15 23:12:43 +000023652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$ac_cv_sizeof_off_t" >&6; }
23654
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23659_ACEOF
23660
23661
23662
23663# Obtain size of size_t and define as SIZEOF_SIZE_T
23664# The cast to long int works around a bug in the HP C Compiler
23665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023670if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023671 $as_echo_n "(cached) " >&6
23672else
cristy8b350f62009-11-15 23:12:43 +000023673 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 +000023674
cristy3ed852e2009-09-05 21:47:34 +000023675else
cristy8b350f62009-11-15 23:12:43 +000023676 if test "$ac_cv_type_size_t" = yes; then
23677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023679as_fn_error 77 "cannot compute sizeof (size_t)
23680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023681 else
23682 ac_cv_sizeof_size_t=0
23683 fi
23684fi
cristy8b350f62009-11-15 23:12:43 +000023685
cristy3ed852e2009-09-05 21:47:34 +000023686fi
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$ac_cv_sizeof_size_t" >&6; }
23689
23690
23691
23692cat >>confdefs.h <<_ACEOF
23693#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23694_ACEOF
23695
23696
23697
cristy330e9352010-06-01 18:42:49 +000023698# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23699# The cast to long int works around a bug in the HP C Compiler
23700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23702# This bug is HP SR number 8606223364.
23703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23704$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023705if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023706 $as_echo_n "(cached) " >&6
23707else
23708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23709
23710else
23711 if test "$ac_cv_type_ssize_t" = yes; then
23712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023714as_fn_error 77 "cannot compute sizeof (ssize_t)
23715See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023716 else
23717 ac_cv_sizeof_ssize_t=0
23718 fi
23719fi
23720
23721fi
23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23723$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23724
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23729_ACEOF
23730
23731
23732
cristy3ed852e2009-09-05 21:47:34 +000023733# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23734# The cast to long int works around a bug in the HP C Compiler
23735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23737# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023740if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023741 $as_echo_n "(cached) " >&6
23742else
cristy8b350f62009-11-15 23:12:43 +000023743 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 +000023744
cristy3ed852e2009-09-05 21:47:34 +000023745else
cristy8b350f62009-11-15 23:12:43 +000023746 if test "$ac_cv_type_unsigned_intp" = yes; then
23747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023749as_fn_error 77 "cannot compute sizeof (unsigned int*)
23750See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023751 else
23752 ac_cv_sizeof_unsigned_intp=0
23753 fi
23754fi
cristy8b350f62009-11-15 23:12:43 +000023755
cristy3ed852e2009-09-05 21:47:34 +000023756fi
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23759
23760
23761
23762cat >>confdefs.h <<_ACEOF
23763#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23764_ACEOF
23765
23766
23767
23768#
23769# Compute sized types for current CPU and compiler options.
23770#
23771
cristy8b350f62009-11-15 23:12:43 +000023772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023773$as_echo_n "checking for signed 8-bit type... " >&6; }
23774INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023775{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23776$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023777
23778
cristy8b350f62009-11-15 23:12:43 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23781UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23783$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023784
23785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for signed 16-bit type... " >&6; }
23788INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23790$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023791
23792
cristy8b350f62009-11-15 23:12:43 +000023793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023794$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23795UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023796{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23797$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023798
23799
cristy8b350f62009-11-15 23:12:43 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo_n "checking for signed 32-bit type... " >&6; }
23802INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023803INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023804if test $ac_cv_sizeof_signed_int -eq 4; then
23805 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023806 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023807elif test $ac_cv_sizeof_signed_long -eq 4; then
23808 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023809 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023810fi
cristy09b53e12011-10-14 12:47:22 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23812$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023813
23814
cristy6d5e20f2011-04-25 13:48:54 +000023815
cristy8b350f62009-11-15 23:12:43 +000023816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23818UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023819UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023820if test $ac_cv_sizeof_unsigned_int -eq 4; then
23821 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023822 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023823elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23824 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023825 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023826fi
cristy09b53e12011-10-14 12:47:22 +000023827{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23828$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023829
23830
cristy6d5e20f2011-04-25 13:48:54 +000023831
cristy8b350f62009-11-15 23:12:43 +000023832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo_n "checking for signed 64-bit type... " >&6; }
23834INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023835INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023836if test $ac_cv_sizeof_signed_long -eq 8; then
23837 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023838 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023839elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23840 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023841 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023842fi
cristy3a99dcf2011-12-17 01:29:40 +000023843case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023844 mingw* )
23845 INT64_F='"I64"'
23846 ;;
23847esac
cristy09b53e12011-10-14 12:47:22 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23849$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023850
23851
cristy6d5e20f2011-04-25 13:48:54 +000023852
cristy8b350f62009-11-15 23:12:43 +000023853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23855UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023856UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023857if test $ac_cv_sizeof_unsigned_long -eq 8; then
23858 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023859 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023860elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23861 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023862 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023863fi
cristy3a99dcf2011-12-17 01:29:40 +000023864case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023865 mingw* )
23866 UINT64_F='"I64"'
23867 ;;
23868esac
cristy09b53e12011-10-14 12:47:22 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23870$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy6d5e20f2011-04-25 13:48:54 +000023873
cristy8b350f62009-11-15 23:12:43 +000023874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023875$as_echo_n "checking for unsigned maximum type... " >&6; }
23876UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023877UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023878if test "$UINT64_T" != 'none'; then
23879 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023880 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023881elif test "$UINT32_T" != 'none'; then
23882 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023883 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023884fi
cristy09b53e12011-10-14 12:47:22 +000023885{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23886$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023887
23888
cristy6d5e20f2011-04-25 13:48:54 +000023889
cristy8b350f62009-11-15 23:12:43 +000023890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo_n "checking for pointer difference type... " >&6; }
23892UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023893UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023894if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23895 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023896 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023897elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23898 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023899 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023900fi
cristy09b53e12011-10-14 12:47:22 +000023901{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23902$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023903
23904
cristy6d5e20f2011-04-25 13:48:54 +000023905
cristy8b350f62009-11-15 23:12:43 +000023906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023907$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023909/* end confdefs.h. */
23910
23911int
23912main ()
23913{
23914{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23915 ;
23916 return 0;
23917}
23918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023919if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023920 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23921$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023922else
cristy09b53e12011-10-14 12:47:22 +000023923 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23924$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023928/* end confdefs.h. */
23929
23930int
23931main ()
23932{
23933{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23934 ;
23935 return 0;
23936}
23937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023938if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023939 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23940$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023941
cristy8b350f62009-11-15 23:12:43 +000023942$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023943
23944else
cristy09b53e12011-10-14 12:47:22 +000023945 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23946$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023947
cristy8b350f62009-11-15 23:12:43 +000023948$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023949
23950fi
cristy3ed852e2009-09-05 21:47:34 +000023951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23952fi
cristy3ed852e2009-09-05 21:47:34 +000023953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954
23955########
23956#
23957# Check for functions
23958#
23959########
cristy73bd4a52010-10-05 11:24:23 +000023960for ac_header in stdlib.h unistd.h
23961do :
23962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023965 cat >>confdefs.h <<_ACEOF
23966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23967_ACEOF
23968
23969fi
23970
23971done
23972
23973for ac_func in getpagesize
23974do :
23975 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023976if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023977 cat >>confdefs.h <<_ACEOF
23978#define HAVE_GETPAGESIZE 1
23979_ACEOF
23980
23981fi
23982done
23983
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23985$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023986if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023987 $as_echo_n "(cached) " >&6
23988else
23989 if test "$cross_compiling" = yes; then :
23990 magick_cv_func_mmap_fileio=no
23991else
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993/* end confdefs.h. */
23994$ac_includes_default
23995/* malloc might have been renamed as rpl_malloc. */
23996#undef malloc
23997
23998/*
23999 This test is derived from GNU Autoconf's similar macro.
24000 The purpose of this test is to verify that files may be memory
24001 mapped, and that memory mapping and file I/O are coherent.
24002
24003 The test creates a test file, memory maps the file, updates
24004 the file using the memory map, and then reads the file using
24005 file I/O to verify that the file contains the updates.
24006*/
24007
24008#include <fcntl.h>
24009#include <sys/mman.h>
24010
24011#if !STDC_HEADERS && !HAVE_STDLIB_H
24012char *malloc ();
24013#endif
24014
24015/* This mess was copied from the GNU getpagesize.h. */
24016#if !HAVE_GETPAGESIZE
24017/* Assume that all systems that can run configure have sys/param.h. */
24018# if !HAVE_SYS_PARAM_H
24019# define HAVE_SYS_PARAM_H 1
24020# endif
24021
24022# ifdef _SC_PAGESIZE
24023# define getpagesize() sysconf(_SC_PAGESIZE)
24024# else /* no _SC_PAGESIZE */
24025# if HAVE_SYS_PARAM_H
24026# include <sys/param.h>
24027# ifdef EXEC_PAGESIZE
24028# define getpagesize() EXEC_PAGESIZE
24029# else /* no EXEC_PAGESIZE */
24030# ifdef NBPG
24031# define getpagesize() NBPG * CLSIZE
24032# ifndef CLSIZE
24033# define CLSIZE 1
24034# endif /* no CLSIZE */
24035# else /* no NBPG */
24036# ifdef NBPC
24037# define getpagesize() NBPC
24038# else /* no NBPC */
24039# ifdef PAGESIZE
24040# define getpagesize() PAGESIZE
24041# endif /* PAGESIZE */
24042# endif /* no NBPC */
24043# endif /* no NBPG */
24044# endif /* no EXEC_PAGESIZE */
24045# else /* no HAVE_SYS_PARAM_H */
24046# define getpagesize() 8192 /* punt totally */
24047# endif /* no HAVE_SYS_PARAM_H */
24048# endif /* no _SC_PAGESIZE */
24049
24050#endif /* no HAVE_GETPAGESIZE */
24051
24052int
24053main ()
24054{
24055 char *data, *data2, *data3;
24056 int i, pagesize;
24057 int fd;
24058
24059 pagesize = getpagesize ();
24060
24061 /* First, make a file with some known garbage in it. */
24062 data = (char *) malloc (pagesize);
24063 if (!data)
24064 exit (1);
24065 for (i = 0; i < pagesize; ++i)
24066 *(data + i) = rand ();
24067 umask (0);
24068 fd = creat ("conftest.mmap", 0600);
24069 if (fd < 0)
24070 exit (1);
24071 if (write (fd, data, pagesize) != pagesize)
24072 exit (1);
24073 close (fd);
24074
24075 /* Mmap the file as read/write/shared and verify that we see the
24076 same garbage. */
24077 fd = open ("conftest.mmap", O_RDWR);
24078 if (fd < 0)
24079 exit (1);
24080 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24081 if (data2 == 0)
24082 exit (1);
24083 for (i = 0; i < pagesize; ++i)
24084 if (*(data + i) != *(data2 + i))
24085 exit (1);
24086
24087 /* Finally, make sure that changes to the mapped area
24088 percolate back to the file as seen by read(). */
24089 for (i = 0; i < pagesize; ++i)
24090 *(data2 + i) = *(data2 + i) + 1;
24091 data3 = (char *) malloc (pagesize);
24092 if (!data3)
24093 exit (1);
24094 if (read (fd, data3, pagesize) != pagesize)
24095 exit (1);
24096 for (i = 0; i < pagesize; ++i)
24097 if (*(data2 + i) != *(data3 + i))
24098 exit (1);
24099 close (fd);
24100 exit (0);
24101}
24102_ACEOF
24103if ac_fn_c_try_run "$LINENO"; then :
24104 magick_cv_func_mmap_fileio=yes
24105else
24106 magick_cv_func_mmap_fileio=no
24107fi
24108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24109 conftest.$ac_objext conftest.beam conftest.$ac_ext
24110fi
24111
24112fi
24113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24114$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24115if test $magick_cv_func_mmap_fileio = yes; then
24116
24117$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24118
24119fi
24120rm -f conftest.mmap
24121
cristy8b350f62009-11-15 23:12:43 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024124if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 ac_cv_func_closedir_void=yes
24129else
cristy8b350f62009-11-15 23:12:43 +000024130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024131/* end confdefs.h. */
24132$ac_includes_default
24133#include <$ac_header_dirent>
24134#ifndef __cplusplus
24135int closedir ();
24136#endif
24137
24138int
24139main ()
24140{
24141return closedir (opendir (".")) != 0;
24142 ;
24143 return 0;
24144}
24145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024146if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024147 ac_cv_func_closedir_void=no
24148else
cristy8b350f62009-11-15 23:12:43 +000024149 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024150fi
cristy8b350f62009-11-15 23:12:43 +000024151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24152 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024153fi
24154
cristy3ed852e2009-09-05 21:47:34 +000024155fi
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo "$ac_cv_func_closedir_void" >&6; }
24158if test $ac_cv_func_closedir_void = yes; then
24159
cristy8b350f62009-11-15 23:12:43 +000024160$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024161
24162fi
24163
cristycd4c5312009-11-22 01:19:08 +000024164
24165
24166
24167 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024168do :
24169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24171"
cristy98dddb52010-11-04 00:30:15 +000024172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024173 cat >>confdefs.h <<_ACEOF
24174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24175_ACEOF
24176
24177fi
24178
24179done
24180
cristycd4c5312009-11-22 01:19:08 +000024181
24182
24183
24184
24185
24186
24187
cristy3ed852e2009-09-05 21:47:34 +000024188for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024189do :
24190 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024191if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024193#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024194_ACEOF
24195
24196fi
24197done
24198
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024201if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024202 $as_echo_n "(cached) " >&6
24203else
cristy8b350f62009-11-15 23:12:43 +000024204 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_func_mmap_fixed_mapped=no
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024208/* end confdefs.h. */
24209$ac_includes_default
24210/* malloc might have been renamed as rpl_malloc. */
24211#undef malloc
24212
24213/* Thanks to Mike Haertel and Jim Avera for this test.
24214 Here is a matrix of mmap possibilities:
24215 mmap private not fixed
24216 mmap private fixed at somewhere currently unmapped
24217 mmap private fixed at somewhere already mapped
24218 mmap shared not fixed
24219 mmap shared fixed at somewhere currently unmapped
24220 mmap shared fixed at somewhere already mapped
24221 For private mappings, we should verify that changes cannot be read()
24222 back from the file, nor mmap's back from the file at a different
24223 address. (There have been systems where private was not correctly
24224 implemented like the infamous i386 svr4.0, and systems where the
24225 VM page cache was not coherent with the file system buffer cache
24226 like early versions of FreeBSD and possibly contemporary NetBSD.)
24227 For shared mappings, we should conversely verify that changes get
24228 propagated back to all the places they're supposed to be.
24229
24230 Grep wants private fixed already mapped.
24231 The main things grep needs to know about mmap are:
24232 * does it exist and is it safe to write into the mmap'd area
24233 * how to use it (BSD variants) */
24234
24235#include <fcntl.h>
24236#include <sys/mman.h>
24237
24238#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24239char *malloc ();
24240#endif
24241
24242/* This mess was copied from the GNU getpagesize.h. */
24243#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024244# ifdef _SC_PAGESIZE
24245# define getpagesize() sysconf(_SC_PAGESIZE)
24246# else /* no _SC_PAGESIZE */
24247# ifdef HAVE_SYS_PARAM_H
24248# include <sys/param.h>
24249# ifdef EXEC_PAGESIZE
24250# define getpagesize() EXEC_PAGESIZE
24251# else /* no EXEC_PAGESIZE */
24252# ifdef NBPG
24253# define getpagesize() NBPG * CLSIZE
24254# ifndef CLSIZE
24255# define CLSIZE 1
24256# endif /* no CLSIZE */
24257# else /* no NBPG */
24258# ifdef NBPC
24259# define getpagesize() NBPC
24260# else /* no NBPC */
24261# ifdef PAGESIZE
24262# define getpagesize() PAGESIZE
24263# endif /* PAGESIZE */
24264# endif /* no NBPC */
24265# endif /* no NBPG */
24266# endif /* no EXEC_PAGESIZE */
24267# else /* no HAVE_SYS_PARAM_H */
24268# define getpagesize() 8192 /* punt totally */
24269# endif /* no HAVE_SYS_PARAM_H */
24270# endif /* no _SC_PAGESIZE */
24271
24272#endif /* no HAVE_GETPAGESIZE */
24273
24274int
24275main ()
24276{
24277 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024278 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024279 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024280 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024281
24282 pagesize = getpagesize ();
24283
24284 /* First, make a file with some known garbage in it. */
24285 data = (char *) malloc (pagesize);
24286 if (!data)
24287 return 1;
24288 for (i = 0; i < pagesize; ++i)
24289 *(data + i) = rand ();
24290 umask (0);
24291 fd = creat ("conftest.mmap", 0600);
24292 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024293 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024294 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024295 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024296 close (fd);
24297
cristycd4c5312009-11-22 01:19:08 +000024298 /* Next, check that the tail of a page is zero-filled. File must have
24299 non-zero length, otherwise we risk SIGBUS for entire page. */
24300 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24301 if (fd2 < 0)
24302 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024303 cdata2 = "";
24304 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024305 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024306 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024307 if (data2 == MAP_FAILED)
24308 return 6;
24309 for (i = 0; i < pagesize; ++i)
24310 if (*(data2 + i))
24311 return 7;
24312 close (fd2);
24313 if (munmap (data2, pagesize))
24314 return 8;
24315
cristy3ed852e2009-09-05 21:47:34 +000024316 /* Next, try to mmap the file at a fixed address which already has
24317 something else allocated at it. If we can, also make sure that
24318 we see the same garbage. */
24319 fd = open ("conftest.mmap", O_RDWR);
24320 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024321 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024322 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24323 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024324 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024325 for (i = 0; i < pagesize; ++i)
24326 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024327 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024328
24329 /* Finally, make sure that changes to the mapped area do not
24330 percolate back to the file as seen by read(). (This is a bug on
24331 some variants of i386 svr4.0.) */
24332 for (i = 0; i < pagesize; ++i)
24333 *(data2 + i) = *(data2 + i) + 1;
24334 data3 = (char *) malloc (pagesize);
24335 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024336 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024337 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024338 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024339 for (i = 0; i < pagesize; ++i)
24340 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024341 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024342 close (fd);
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_func_mmap_fixed_mapped=yes
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024350fi
cristy8b350f62009-11-15 23:12:43 +000024351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24352 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024353fi
24354
cristy3ed852e2009-09-05 21:47:34 +000024355fi
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24358if test $ac_cv_func_mmap_fixed_mapped = yes; then
24359
cristy8b350f62009-11-15 23:12:43 +000024360$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024361
24362fi
cristycd4c5312009-11-22 01:19:08 +000024363rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024364
cristy3ed852e2009-09-05 21:47:34 +000024365for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024366do :
24367 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024368if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024369 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024370#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024371_ACEOF
24372
24373fi
24374
24375done
24376
cristy3ed852e2009-09-05 21:47:34 +000024377for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024378do :
24379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24380ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024381if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 cat >>confdefs.h <<_ACEOF
24383#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24384_ACEOF
24385
24386fi
24387done
24388
24389if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024392if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024393 $as_echo_n "(cached) " >&6
24394else
cristy8b350f62009-11-15 23:12:43 +000024395 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 ac_cv_func_fork_works=cross
24397else
cristy8b350f62009-11-15 23:12:43 +000024398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024399/* end confdefs.h. */
24400$ac_includes_default
24401int
24402main ()
24403{
24404
24405 /* By Ruediger Kuhlmann. */
24406 return fork () < 0;
24407
24408 ;
24409 return 0;
24410}
24411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024412if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 ac_cv_func_fork_works=yes
24414else
cristy8b350f62009-11-15 23:12:43 +000024415 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024416fi
cristy8b350f62009-11-15 23:12:43 +000024417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24418 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024419fi
24420
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy8b350f62009-11-15 23:12:43 +000024422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo "$ac_cv_func_fork_works" >&6; }
24424
24425else
24426 ac_cv_func_fork_works=$ac_cv_func_fork
24427fi
24428if test "x$ac_cv_func_fork_works" = xcross; then
24429 case $host in
24430 *-*-amigaos* | *-*-msdosdjgpp*)
24431 # Override, as these systems have only a dummy fork() stub
24432 ac_cv_func_fork_works=no
24433 ;;
24434 *)
24435 ac_cv_func_fork_works=yes
24436 ;;
24437 esac
cristy8b350f62009-11-15 23:12:43 +000024438 { $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 +000024439$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24440fi
24441ac_cv_func_vfork_works=$ac_cv_func_vfork
24442if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024444$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024445if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024446 $as_echo_n "(cached) " >&6
24447else
cristy8b350f62009-11-15 23:12:43 +000024448 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024449 ac_cv_func_vfork_works=cross
24450else
cristy8b350f62009-11-15 23:12:43 +000024451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024452/* end confdefs.h. */
24453/* Thanks to Paul Eggert for this test. */
24454$ac_includes_default
24455#include <sys/wait.h>
24456#ifdef HAVE_VFORK_H
24457# include <vfork.h>
24458#endif
24459/* On some sparc systems, changes by the child to local and incoming
24460 argument registers are propagated back to the parent. The compiler
24461 is told about this with #include <vfork.h>, but some compilers
24462 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24463 static variable whose address is put into a register that is
24464 clobbered by the vfork. */
24465static void
24466#ifdef __cplusplus
24467sparc_address_test (int arg)
24468# else
24469sparc_address_test (arg) int arg;
24470#endif
24471{
24472 static pid_t child;
24473 if (!child) {
24474 child = vfork ();
24475 if (child < 0) {
24476 perror ("vfork");
24477 _exit(2);
24478 }
24479 if (!child) {
24480 arg = getpid();
24481 write(-1, "", 0);
24482 _exit (arg);
24483 }
24484 }
24485}
24486
24487int
24488main ()
24489{
24490 pid_t parent = getpid ();
24491 pid_t child;
24492
24493 sparc_address_test (0);
24494
24495 child = vfork ();
24496
24497 if (child == 0) {
24498 /* Here is another test for sparc vfork register problems. This
24499 test uses lots of local variables, at least as many local
24500 variables as main has allocated so far including compiler
24501 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24502 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24503 reuse the register of parent for one of the local variables,
24504 since it will think that parent can't possibly be used any more
24505 in this routine. Assigning to the local variable will thus
24506 munge parent in the parent process. */
24507 pid_t
24508 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24509 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24510 /* Convince the compiler that p..p7 are live; otherwise, it might
24511 use the same hardware register for all 8 local variables. */
24512 if (p != p1 || p != p2 || p != p3 || p != p4
24513 || p != p5 || p != p6 || p != p7)
24514 _exit(1);
24515
24516 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24517 from child file descriptors. If the child closes a descriptor
24518 before it execs or exits, this munges the parent's descriptor
24519 as well. Test for this by closing stdout in the child. */
24520 _exit(close(fileno(stdout)) != 0);
24521 } else {
24522 int status;
24523 struct stat st;
24524
24525 while (wait(&status) != child)
24526 ;
24527 return (
24528 /* Was there some problem with vforking? */
24529 child < 0
24530
24531 /* Did the child fail? (This shouldn't happen.) */
24532 || status
24533
24534 /* Did the vfork/compiler bug occur? */
24535 || parent != getpid()
24536
24537 /* Did the file descriptor bug occur? */
24538 || fstat(fileno(stdout), &st) != 0
24539 );
24540 }
24541}
24542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024543if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 ac_cv_func_vfork_works=yes
24545else
cristy8b350f62009-11-15 23:12:43 +000024546 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024547fi
cristy8b350f62009-11-15 23:12:43 +000024548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24549 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024550fi
24551
cristy3ed852e2009-09-05 21:47:34 +000024552fi
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo "$ac_cv_func_vfork_works" >&6; }
24555
24556fi;
24557if test "x$ac_cv_func_fork_works" = xcross; then
24558 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024559 { $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 +000024560$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24561fi
24562
24563if test "x$ac_cv_func_vfork_works" = xyes; then
24564
cristy8b350f62009-11-15 23:12:43 +000024565$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024566
24567else
24568
cristy8b350f62009-11-15 23:12:43 +000024569$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024570
24571fi
24572if test "x$ac_cv_func_fork_works" = xyes; then
24573
cristy8b350f62009-11-15 23:12:43 +000024574$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024575
24576fi
24577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024580if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 $as_echo_n "(cached) " >&6
24582else
cristy8b350f62009-11-15 23:12:43 +000024583 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024584 ac_cv_func_memcmp_working=no
24585else
cristy8b350f62009-11-15 23:12:43 +000024586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024587/* end confdefs.h. */
24588$ac_includes_default
24589int
24590main ()
24591{
24592
24593 /* Some versions of memcmp are not 8-bit clean. */
24594 char c0 = '\100', c1 = '\200', c2 = '\201';
24595 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24596 return 1;
24597
24598 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24599 or more and with at least one buffer not starting on a 4-byte boundary.
24600 William Lewis provided this test program. */
24601 {
24602 char foo[21];
24603 char bar[21];
24604 int i;
24605 for (i = 0; i < 4; i++)
24606 {
24607 char *a = foo + i;
24608 char *b = bar + i;
24609 strcpy (a, "--------01111111");
24610 strcpy (b, "--------10000000");
24611 if (memcmp (a, b, 16) >= 0)
24612 return 1;
24613 }
24614 return 0;
24615 }
24616
24617 ;
24618 return 0;
24619}
24620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024621if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024622 ac_cv_func_memcmp_working=yes
24623else
cristy8b350f62009-11-15 23:12:43 +000024624 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024625fi
cristy8b350f62009-11-15 23:12:43 +000024626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24627 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024628fi
24629
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo "$ac_cv_func_memcmp_working" >&6; }
24633test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24634 *" memcmp.$ac_objext "* ) ;;
24635 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24636 ;;
24637esac
24638
24639
cristy3ed852e2009-09-05 21:47:34 +000024640for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024641do :
24642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24643ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024644if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 cat >>confdefs.h <<_ACEOF
24646#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24647_ACEOF
24648
24649fi
24650
24651done
24652
cristy8b350f62009-11-15 23:12:43 +000024653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024654$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024655if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024656 $as_echo_n "(cached) " >&6
24657else
24658 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24659 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24660 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663$ac_includes_default
24664#ifdef HAVE_SYS_SELECT_H
24665# include <sys/select.h>
24666#endif
24667#ifdef HAVE_SYS_SOCKET_H
24668# include <sys/socket.h>
24669#endif
24670
24671int
24672main ()
24673{
24674extern int select ($ac_arg1,
24675 $ac_arg234, $ac_arg234, $ac_arg234,
24676 $ac_arg5);
24677 ;
24678 return 0;
24679}
24680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy3ed852e2009-09-05 21:47:34 +000024684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 done
24686 done
24687done
24688# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024689: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024690
24691fi
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo "$ac_cv_func_select_args" >&6; }
24694ac_save_IFS=$IFS; IFS=','
24695set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24696IFS=$ac_save_IFS
24697shift
24698
24699cat >>confdefs.h <<_ACEOF
24700#define SELECT_TYPE_ARG1 $1
24701_ACEOF
24702
24703
24704cat >>confdefs.h <<_ACEOF
24705#define SELECT_TYPE_ARG234 ($2)
24706_ACEOF
24707
24708
24709cat >>confdefs.h <<_ACEOF
24710#define SELECT_TYPE_ARG5 ($3)
24711_ACEOF
24712
24713rm -f conftest*
24714
cristyda16f162011-02-19 23:52:17 +000024715if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 $as_echo_n "(cached) " >&6
24717else
24718 ac_cv_func_setvbuf_reversed=no
24719fi
24720
24721
cristy8b350f62009-11-15 23:12:43 +000024722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024724if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 $as_echo_n "(cached) " >&6
24726else
cristy8b350f62009-11-15 23:12:43 +000024727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024728/* end confdefs.h. */
24729#include <sys/types.h>
24730#include <signal.h>
24731
24732int
24733main ()
24734{
24735return *(signal (0, 0)) (0) == 1;
24736 ;
24737 return 0;
24738}
24739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_type_signal=int
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy3ed852e2009-09-05 21:47:34 +000024745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746fi
cristy8b350f62009-11-15 23:12:43 +000024747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo "$ac_cv_type_signal" >&6; }
24749
24750cat >>confdefs.h <<_ACEOF
24751#define RETSIGTYPE $ac_cv_type_signal
24752_ACEOF
24753
24754
cristy8b350f62009-11-15 23:12:43 +000024755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024757if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 $as_echo_n "(cached) " >&6
24759else
cristy8b350f62009-11-15 23:12:43 +000024760 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 ac_cv_func_strtod=no
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024764/* end confdefs.h. */
24765
24766$ac_includes_default
24767#ifndef strtod
24768double strtod ();
24769#endif
24770int
24771main()
24772{
24773 {
24774 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24775 char *string = " +69";
24776 char *term;
24777 double value;
24778 value = strtod (string, &term);
24779 if (value != 69 || term != (string + 4))
24780 return 1;
24781 }
24782
24783 {
24784 /* Under Solaris 2.4, strtod returns the wrong value for the
24785 terminating character under some conditions. */
24786 char *string = "NaN";
24787 char *term;
24788 strtod (string, &term);
24789 if (term != string && *(term - 1) == 0)
24790 return 1;
24791 }
24792 return 0;
24793}
24794
24795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024796if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024797 ac_cv_func_strtod=yes
24798else
cristy8b350f62009-11-15 23:12:43 +000024799 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024800fi
cristy8b350f62009-11-15 23:12:43 +000024801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24802 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024803fi
24804
cristy3ed852e2009-09-05 21:47:34 +000024805fi
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo "$ac_cv_func_strtod" >&6; }
24808if test $ac_cv_func_strtod = no; then
24809 case " $LIBOBJS " in
24810 *" strtod.$ac_objext "* ) ;;
24811 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24812 ;;
24813esac
24814
cristy8b350f62009-11-15 23:12:43 +000024815ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024816if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024817
cristy3ed852e2009-09-05 21:47:34 +000024818fi
24819
cristy3ed852e2009-09-05 21:47:34 +000024820if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024823if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 $as_echo_n "(cached) " >&6
24825else
24826 ac_check_lib_save_LIBS=$LIBS
24827LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024829/* end confdefs.h. */
24830
24831/* Override any GCC internal prototype to avoid an error.
24832 Use char because int might match the return type of a GCC
24833 builtin and then its argument prototype would still apply. */
24834#ifdef __cplusplus
24835extern "C"
24836#endif
24837char pow ();
24838int
24839main ()
24840{
24841return pow ();
24842 ;
24843 return 0;
24844}
24845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 ac_cv_lib_m_pow=yes
24848else
cristy8b350f62009-11-15 23:12:43 +000024849 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024850fi
cristy8b350f62009-11-15 23:12:43 +000024851rm -f core conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024853LIBS=$ac_check_lib_save_LIBS
24854fi
cristy8b350f62009-11-15 23:12:43 +000024855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024858 POW_LIB=-lm
24859else
cristy8b350f62009-11-15 23:12:43 +000024860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024861$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24862fi
24863
24864fi
24865
24866fi
24867
cristy7d4a1d62011-10-13 15:54:12 +000024868ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24869if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24870 ac_have_decl=1
24871else
24872 ac_have_decl=0
24873fi
24874
24875cat >>confdefs.h <<_ACEOF
24876#define HAVE_DECL_STRERROR_R $ac_have_decl
24877_ACEOF
24878
24879for ac_func in strerror_r
24880do :
24881 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24882if test "x$ac_cv_func_strerror_r" = xyes; then :
24883 cat >>confdefs.h <<_ACEOF
24884#define HAVE_STRERROR_R 1
24885_ACEOF
24886
24887fi
24888done
24889
24890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24891$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24892if ${ac_cv_func_strerror_r_char_p+:} false; then :
24893 $as_echo_n "(cached) " >&6
24894else
24895
24896 ac_cv_func_strerror_r_char_p=no
24897 if test $ac_cv_have_decl_strerror_r = yes; then
24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904
24905 char buf[100];
24906 char x = *strerror_r (0, buf, sizeof buf);
24907 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024908 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024909
24910 ;
24911 return 0;
24912}
24913_ACEOF
24914if ac_fn_c_try_compile "$LINENO"; then :
24915 ac_cv_func_strerror_r_char_p=yes
24916fi
24917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918 else
24919 # strerror_r is not declared. Choose between
24920 # systems that have relatively inaccessible declarations for the
24921 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24922 # former has a strerror_r that returns char*, while the latter
24923 # has a strerror_r that returns `int'.
24924 # This test should segfault on the DEC system.
24925 if test "$cross_compiling" = yes; then :
24926 :
24927else
24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24929/* end confdefs.h. */
24930$ac_includes_default
24931 extern char *strerror_r ();
24932int
24933main ()
24934{
24935char buf[100];
24936 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024937 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024938 ;
24939 return 0;
24940}
24941_ACEOF
24942if ac_fn_c_try_run "$LINENO"; then :
24943 ac_cv_func_strerror_r_char_p=yes
24944fi
24945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24946 conftest.$ac_objext conftest.beam conftest.$ac_ext
24947fi
24948
24949 fi
24950
24951fi
24952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24953$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24954if test $ac_cv_func_strerror_r_char_p = yes; then
24955
24956$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24957
24958fi
24959
cristy3ed852e2009-09-05 21:47:34 +000024960for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024961do :
24962 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024963if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024964 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024965#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024966_ACEOF
24967
cristy8b350f62009-11-15 23:12:43 +000024968ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024969if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970
cristy8b350f62009-11-15 23:12:43 +000024971$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024972
24973fi
24974
24975fi
24976done
24977
24978
24979
cristy161b9262010-03-20 19:34:32 +000024980#
24981# Find math library
24982#
24983MATH_LIBS=''
24984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24985$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024986if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024987 $as_echo_n "(cached) " >&6
24988else
24989 ac_check_lib_save_LIBS=$LIBS
24990LIBS="-lm $LIBS"
24991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992/* end confdefs.h. */
24993
24994/* Override any GCC internal prototype to avoid an error.
24995 Use char because int might match the return type of a GCC
24996 builtin and then its argument prototype would still apply. */
24997#ifdef __cplusplus
24998extern "C"
24999#endif
25000char sqrt ();
25001int
25002main ()
25003{
25004return sqrt ();
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009if ac_fn_c_try_link "$LINENO"; then :
25010 ac_cv_lib_m_sqrt=yes
25011else
25012 ac_cv_lib_m_sqrt=no
25013fi
25014rm -f core conftest.err conftest.$ac_objext \
25015 conftest$ac_exeext conftest.$ac_ext
25016LIBS=$ac_check_lib_save_LIBS
25017fi
25018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25019$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025020if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025021 MATH_LIBS="-lm"
25022fi
25023
25024LIBS="$MATH_LIBS $LIBS"
25025
25026
cristy82b20722011-11-05 21:52:36 +000025027for ac_func in acosh 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 +000025028do :
25029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025032 cat >>confdefs.h <<_ACEOF
25033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25034_ACEOF
25035
25036fi
25037done
25038
25039
cristye43a45e2009-09-28 14:49:00 +000025040#
25041# Check for clock_gettime().
25042#
cristy8b350f62009-11-15 23:12:43 +000025043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025044$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025045if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025046 $as_echo_n "(cached) " >&6
25047else
25048 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025050/* end confdefs.h. */
25051
25052/* Override any GCC internal prototype to avoid an error.
25053 Use char because int might match the return type of a GCC
25054 builtin and then its argument prototype would still apply. */
25055#ifdef __cplusplus
25056extern "C"
25057#endif
25058char clock_gettime ();
25059int
25060main ()
25061{
25062return clock_gettime ();
25063 ;
25064 return 0;
25065}
25066_ACEOF
25067for ac_lib in '' rt; do
25068 if test -z "$ac_lib"; then
25069 ac_res="none required"
25070 else
25071 ac_res=-l$ac_lib
25072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25073 fi
cristy8b350f62009-11-15 23:12:43 +000025074 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025075 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077rm -f core conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025079 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025080 break
25081fi
25082done
cristyda16f162011-02-19 23:52:17 +000025083if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025084
cristye43a45e2009-09-28 14:49:00 +000025085else
25086 ac_cv_search_clock_gettime=no
25087fi
25088rm conftest.$ac_ext
25089LIBS=$ac_func_search_save_LIBS
25090fi
cristy8b350f62009-11-15 23:12:43 +000025091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025092$as_echo "$ac_cv_search_clock_gettime" >&6; }
25093ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025094if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25096
25097
cristy8b350f62009-11-15 23:12:43 +000025098$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025099
cristy8b350f62009-11-15 23:12:43 +000025100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025101$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025103/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025104
25105 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025106int
25107main ()
25108{
25109clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025110 ;
25111 return 0;
25112}
25113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025115
cristy09b53e12011-10-14 12:47:22 +000025116 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25117$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025118
cristy8b350f62009-11-15 23:12:43 +000025119$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025120
25121
25122else
cristy09b53e12011-10-14 12:47:22 +000025123 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25124$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025125
25126fi
cristye43a45e2009-09-28 14:49:00 +000025127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25128
25129else
25130
cristy8b350f62009-11-15 23:12:43 +000025131 for ac_func in gettimeofday ftime
25132do :
25133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25134ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025135if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025136 cat >>confdefs.h <<_ACEOF
25137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25138_ACEOF
25139 break
25140fi
25141done
25142
25143
25144
25145fi
25146
25147
cristy3ed852e2009-09-05 21:47:34 +000025148########
25149#
25150# Check for function prototypes
25151#
25152########
25153
cristy8b350f62009-11-15 23:12:43 +000025154ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025155#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025156"
cristyda16f162011-02-19 23:52:17 +000025157if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025158 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025159else
cristy8b350f62009-11-15 23:12:43 +000025160 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025161fi
25162
cristy3ed852e2009-09-05 21:47:34 +000025163cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025164#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025166ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025167#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025168"
cristyda16f162011-02-19 23:52:17 +000025169if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025170 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025171else
cristy8b350f62009-11-15 23:12:43 +000025172 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025173fi
25174
cristy3ed852e2009-09-05 21:47:34 +000025175cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025176#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025177_ACEOF
25178
25179
cristy8b350f62009-11-15 23:12:43 +000025180ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025181#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025182"
cristyda16f162011-02-19 23:52:17 +000025183if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025184 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025185else
cristy8b350f62009-11-15 23:12:43 +000025186 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025187fi
25188
cristy3ed852e2009-09-05 21:47:34 +000025189cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025190#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025191_ACEOF
25192
25193
cristy8b350f62009-11-15 23:12:43 +000025194ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025195#include <stdio.h>
25196#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025197"
cristyda16f162011-02-19 23:52:17 +000025198if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025199 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025200else
cristy8b350f62009-11-15 23:12:43 +000025201 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025202fi
25203
cristy3ed852e2009-09-05 21:47:34 +000025204cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025206_ACEOF
25207
25208
cristy3ed852e2009-09-05 21:47:34 +000025209########
25210#
25211# C++ Support Tests (For Magick++)
25212#
25213########
25214have_magick_plus_plus='no'
25215if test "$with_magick_plus_plus" = 'yes'; then
25216 OLIBS="$LIBS"
25217 LIBS=''
25218 ac_ext=cpp
25219ac_cpp='$CXXCPP $CPPFLAGS'
25220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25223
25224
25225 # Full set of headers used...
25226 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25227 # functional iomanip iosfwd iostream iterator list string strstream utility
25228 ac_ext=cpp
25229ac_cpp='$CXXCPP $CPPFLAGS'
25230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25233
25234 ac_ext=cpp
25235ac_cpp='$CXXCPP $CPPFLAGS'
25236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25239if test -z "$CXX"; then
25240 if test -n "$CCC"; then
25241 CXX=$CCC
25242 else
25243 if test -n "$ac_tool_prefix"; then
25244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25245 do
25246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025250if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 $as_echo_n "(cached) " >&6
25252else
25253 if test -n "$CXX"; then
25254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25255else
25256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25257for as_dir in $PATH
25258do
25259 IFS=$as_save_IFS
25260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265 break 2
25266 fi
25267done
cristy8b350f62009-11-15 23:12:43 +000025268 done
cristy3ed852e2009-09-05 21:47:34 +000025269IFS=$as_save_IFS
25270
25271fi
25272fi
25273CXX=$ac_cv_prog_CXX
25274if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025276$as_echo "$CXX" >&6; }
25277else
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo "no" >&6; }
25280fi
25281
25282
25283 test -n "$CXX" && break
25284 done
25285fi
25286if test -z "$CXX"; then
25287 ac_ct_CXX=$CXX
25288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25289do
25290 # Extract the first word of "$ac_prog", so it can be a program name with args.
25291set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025294if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 $as_echo_n "(cached) " >&6
25296else
25297 if test -n "$ac_ct_CXX"; then
25298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25299else
25300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25301for as_dir in $PATH
25302do
25303 IFS=$as_save_IFS
25304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25307 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309 break 2
25310 fi
25311done
cristy8b350f62009-11-15 23:12:43 +000025312 done
cristy3ed852e2009-09-05 21:47:34 +000025313IFS=$as_save_IFS
25314
25315fi
25316fi
25317ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25318if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "$ac_ct_CXX" >&6; }
25321else
cristy8b350f62009-11-15 23:12:43 +000025322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025323$as_echo "no" >&6; }
25324fi
25325
25326
25327 test -n "$ac_ct_CXX" && break
25328done
25329
25330 if test "x$ac_ct_CXX" = x; then
25331 CXX="g++"
25332 else
25333 case $cross_compiling:$ac_tool_warned in
25334yes:)
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25337ac_tool_warned=yes ;;
25338esac
25339 CXX=$ac_ct_CXX
25340 fi
25341fi
25342
25343 fi
25344fi
25345# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025346$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025347set X $ac_compile
25348ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025349for ac_option in --version -v -V -qversion; do
25350 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025351case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25354esac
cristy8b350f62009-11-15 23:12:43 +000025355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25356$as_echo "$ac_try_echo"; } >&5
25357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025358 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025359 if test -s conftest.err; then
25360 sed '10a\
25361... rest of stderr output deleted ...
25362 10q' conftest.err >conftest.er1
25363 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025364 fi
cristycd4c5312009-11-22 01:19:08 +000025365 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }
25368done
cristy3ed852e2009-09-05 21:47:34 +000025369
cristy8b350f62009-11-15 23:12:43 +000025370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025372if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 $as_echo_n "(cached) " >&6
25374else
cristy8b350f62009-11-15 23:12:43 +000025375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376/* end confdefs.h. */
25377
25378int
25379main ()
25380{
25381#ifndef __GNUC__
25382 choke me
25383#endif
25384
25385 ;
25386 return 0;
25387}
25388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025389if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025390 ac_compiler_gnu=yes
25391else
cristy8b350f62009-11-15 23:12:43 +000025392 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025393fi
cristy3ed852e2009-09-05 21:47:34 +000025394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25396
25397fi
cristy8b350f62009-11-15 23:12:43 +000025398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025399$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25400if test $ac_compiler_gnu = yes; then
25401 GXX=yes
25402else
25403 GXX=
25404fi
25405ac_test_CXXFLAGS=${CXXFLAGS+set}
25406ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025409if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 $as_echo_n "(cached) " >&6
25411else
25412 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25413 ac_cxx_werror_flag=yes
25414 ac_cv_prog_cxx_g=no
25415 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025417/* end confdefs.h. */
25418
25419int
25420main ()
25421{
25422
25423 ;
25424 return 0;
25425}
25426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025427if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025428 ac_cv_prog_cxx_g=yes
25429else
cristy8b350f62009-11-15 23:12:43 +000025430 CXXFLAGS=""
25431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025432/* end confdefs.h. */
25433
25434int
25435main ()
25436{
25437
25438 ;
25439 return 0;
25440}
25441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025442if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025443
cristy8b350f62009-11-15 23:12:43 +000025444else
25445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025446 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025448/* end confdefs.h. */
25449
25450int
25451main ()
25452{
25453
25454 ;
25455 return 0;
25456}
25457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025458if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025460fi
cristy3ed852e2009-09-05 21:47:34 +000025461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462fi
cristy3ed852e2009-09-05 21:47:34 +000025463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464fi
cristy3ed852e2009-09-05 21:47:34 +000025465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25467fi
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025469$as_echo "$ac_cv_prog_cxx_g" >&6; }
25470if test "$ac_test_CXXFLAGS" = set; then
25471 CXXFLAGS=$ac_save_CXXFLAGS
25472elif test $ac_cv_prog_cxx_g = yes; then
25473 if test "$GXX" = yes; then
25474 CXXFLAGS="-g -O2"
25475 else
25476 CXXFLAGS="-g"
25477 fi
25478else
25479 if test "$GXX" = yes; then
25480 CXXFLAGS="-O2"
25481 else
25482 CXXFLAGS=
25483 fi
25484fi
25485ac_ext=cpp
25486ac_cpp='$CXXCPP $CPPFLAGS'
25487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
cristy73bd4a52010-10-05 11:24:23 +000025491depcc="$CXX" am_compiler_list=
25492
25493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25494$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025495if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025496 $as_echo_n "(cached) " >&6
25497else
25498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25499 # We make a subdir and do the tests there. Otherwise we can end up
25500 # making bogus files that we don't know about and never remove. For
25501 # instance it was reported that on HP-UX the gcc test will end up
25502 # making a dummy file named `D' -- because `-MD' means `put the output
25503 # in D'.
25504 mkdir conftest.dir
25505 # Copy depcomp to subdir because otherwise we won't find it if we're
25506 # using a relative directory.
25507 cp "$am_depcomp" conftest.dir
25508 cd conftest.dir
25509 # We will build objects and dependencies in a subdirectory because
25510 # it helps to detect inapplicable dependency modes. For instance
25511 # both Tru64's cc and ICC support -MD to output dependencies as a
25512 # side effect of compilation, but ICC will put the dependencies in
25513 # the current directory while Tru64 will put them in the object
25514 # directory.
25515 mkdir sub
25516
25517 am_cv_CXX_dependencies_compiler_type=none
25518 if test "$am_compiler_list" = ""; then
25519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25520 fi
25521 am__universal=false
25522 case " $depcc " in #(
25523 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25524 esac
25525
25526 for depmode in $am_compiler_list; do
25527 # Setup a source with many dependencies, because some compilers
25528 # like to wrap large dependency lists on column 80 (with \), and
25529 # we should not choose a depcomp mode which is confused by this.
25530 #
25531 # We need to recreate these files for each test, as the compiler may
25532 # overwrite some of them when testing with obscure command lines.
25533 # This happens at least with the AIX C compiler.
25534 : > sub/conftest.c
25535 for i in 1 2 3 4 5 6; do
25536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25538 # Solaris 8's {/usr,}/bin/sh.
25539 touch sub/conftst$i.h
25540 done
25541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25542
25543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25544 # mode. It turns out that the SunPro C++ compiler does not properly
25545 # handle `-M -o', and we need to detect this. Also, some Intel
25546 # versions had trouble with output in subdirs
25547 am__obj=sub/conftest.${OBJEXT-o}
25548 am__minus_obj="-o $am__obj"
25549 case $depmode in
25550 gcc)
25551 # This depmode causes a compiler race in universal mode.
25552 test "$am__universal" = false || continue
25553 ;;
25554 nosideeffect)
25555 # after this tag, mechanisms are not by side-effect, so they'll
25556 # only be used when explicitly requested
25557 if test "x$enable_dependency_tracking" = xyes; then
25558 continue
25559 else
25560 break
25561 fi
25562 ;;
25563 msvisualcpp | msvcmsys)
25564 # This compiler won't grok `-c -o', but also, the minuso test has
25565 # not run yet. These depmodes are late enough in the game, and
25566 # so weak that their functioning should not be impacted.
25567 am__obj=conftest.${OBJEXT-o}
25568 am__minus_obj=
25569 ;;
25570 none) break ;;
25571 esac
25572 if depmode=$depmode \
25573 source=sub/conftest.c object=$am__obj \
25574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25576 >/dev/null 2>conftest.err &&
25577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25581 # icc doesn't choke on unknown options, it will just issue warnings
25582 # or remarks (even with -Werror). So we grep stderr for any message
25583 # that says an option was ignored or not supported.
25584 # When given -MP, icc 7.0 and 7.1 complain thusly:
25585 # icc: Command line warning: ignoring option '-M'; no argument required
25586 # The diagnosis changed in icc 8.0:
25587 # icc: Command line remark: option '-MP' not supported
25588 if (grep 'ignoring option' conftest.err ||
25589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25590 am_cv_CXX_dependencies_compiler_type=$depmode
25591 break
25592 fi
25593 fi
25594 done
25595
25596 cd ..
25597 rm -rf conftest.dir
25598else
25599 am_cv_CXX_dependencies_compiler_type=none
25600fi
25601
25602fi
25603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25604$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25605CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25606
25607 if
25608 test "x$enable_dependency_tracking" != xno \
25609 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25610 am__fastdepCXX_TRUE=
25611 am__fastdepCXX_FALSE='#'
25612else
25613 am__fastdepCXX_TRUE='#'
25614 am__fastdepCXX_FALSE=
25615fi
25616
25617
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25619$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025620if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025621 $as_echo_n "(cached) " >&6
25622else
25623
25624 ac_ext=cpp
25625ac_cpp='$CXXCPP $CPPFLAGS'
25626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25629
25630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25631/* end confdefs.h. */
25632
25633int f(int x){return 1;}
25634int f(char x){return 1;}
25635int f(bool x){return 1;}
25636
25637int
25638main ()
25639{
25640bool b = true; return f(b);
25641 ;
25642 return 0;
25643}
25644_ACEOF
25645if ac_fn_cxx_try_compile "$LINENO"; then :
25646 ax_cv_cxx_bool=yes
25647else
25648 ax_cv_cxx_bool=no
25649fi
25650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 ac_ext=cpp
25652ac_cpp='$CXXCPP $CPPFLAGS'
25653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656
25657
25658fi
25659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25660$as_echo "$ax_cv_cxx_bool" >&6; }
25661if test "$ax_cv_cxx_bool" = yes; then
25662
25663$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25664
25665fi
25666
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25668$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025669if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025670 $as_echo_n "(cached) " >&6
25671else
25672
25673 ac_ext=cpp
25674ac_cpp='$CXXCPP $CPPFLAGS'
25675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25678
25679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680/* end confdefs.h. */
25681namespace Outer { namespace Inner { int i = 0; }}
25682int
25683main ()
25684{
25685using namespace Outer::Inner; return i;
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690if ac_fn_cxx_try_compile "$LINENO"; then :
25691 ax_cv_cxx_namespaces=yes
25692else
25693 ax_cv_cxx_namespaces=no
25694fi
25695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696 ac_ext=cpp
25697ac_cpp='$CXXCPP $CPPFLAGS'
25698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25701
25702
25703fi
25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25705$as_echo "$ax_cv_cxx_namespaces" >&6; }
25706if test "$ax_cv_cxx_namespaces" = yes; then
25707
25708$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25709
25710fi
25711
25712
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25714$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025715if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025716 $as_echo_n "(cached) " >&6
25717else
25718
25719 ac_ext=cpp
25720ac_cpp='$CXXCPP $CPPFLAGS'
25721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25724
25725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726/* end confdefs.h. */
25727#include <iostream>
25728 std::istream& is = std::cin;
25729int
25730main ()
25731{
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737if ac_fn_cxx_try_compile "$LINENO"; then :
25738 ax_cv_cxx_have_std_namespace=yes
25739else
25740 ax_cv_cxx_have_std_namespace=no
25741fi
25742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 ac_ext=cpp
25744ac_cpp='$CXXCPP $CPPFLAGS'
25745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25748
25749
25750fi
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25752$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25753 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25754
25755$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25756
25757 fi
25758
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25760$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025762 $as_echo_n "(cached) " >&6
25763else
25764
25765
25766 ac_ext=cpp
25767ac_cpp='$CXXCPP $CPPFLAGS'
25768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25771
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773/* end confdefs.h. */
25774#include <iostream>
25775#include <map>
25776#include <iomanip>
25777#include <cmath>
25778#ifdef HAVE_NAMESPACES
25779using namespace std;
25780#endif
25781int
25782main ()
25783{
25784return 0;
25785 ;
25786 return 0;
25787}
25788_ACEOF
25789if ac_fn_cxx_try_compile "$LINENO"; then :
25790 ac_cv_cxx_have_std_libs=yes
25791else
25792 ac_cv_cxx_have_std_libs=no
25793fi
25794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 ac_ext=cpp
25796ac_cpp='$CXXCPP $CPPFLAGS'
25797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25800
25801
25802fi
25803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25804$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25805if test "$ac_cv_cxx_have_std_libs" = yes; then
25806
25807$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25808
25809fi
25810
cristy3ed852e2009-09-05 21:47:34 +000025811
25812 OPENMP_CXXFLAGS=
25813 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025814if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025815 enableval=$enable_openmp;
25816fi
25817
25818 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25820$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025821if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025822 $as_echo_n "(cached) " >&6
25823else
cristy8b350f62009-11-15 23:12:43 +000025824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025826
25827#ifndef _OPENMP
25828 choke me
25829#endif
25830#include <omp.h>
25831int main () { return omp_get_num_threads (); }
25832
25833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025834if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025835 ac_cv_prog_cxx_openmp='none needed'
25836else
cristy8b350f62009-11-15 23:12:43 +000025837 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025838 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25839 ac_save_CXXFLAGS=$CXXFLAGS
25840 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25842/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025843
25844#ifndef _OPENMP
25845 choke me
25846#endif
25847#include <omp.h>
25848int main () { return omp_get_num_threads (); }
25849
25850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025851if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025852 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025853fi
cristy8b350f62009-11-15 23:12:43 +000025854rm -f core conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025856 CXXFLAGS=$ac_save_CXXFLAGS
25857 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25858 break
25859 fi
25860 done
25861fi
cristy8b350f62009-11-15 23:12:43 +000025862rm -f core conftest.err conftest.$ac_objext \
25863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025864fi
cristy8b350f62009-11-15 23:12:43 +000025865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025866$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25867 case $ac_cv_prog_cxx_openmp in #(
25868 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025869 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025870 *)
cristy8b350f62009-11-15 23:12:43 +000025871 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025872 esac
25873 fi
25874
25875
25876 ac_ext=c
25877ac_cpp='$CPP $CPPFLAGS'
25878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880ac_compiler_gnu=$ac_cv_c_compiler_gnu
25881
25882
cristy8b350f62009-11-15 23:12:43 +000025883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025884$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25885 if \
cristy964cb7f2010-04-25 23:18:00 +000025886 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025887 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025888 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025889 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025890 have_magick_plus_plus='yes'
25891 else
25892 have_magick_plus_plus='no (failed tests)'
25893 fi
cristy09b53e12011-10-14 12:47:22 +000025894 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25895$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025896 LIBS="$OLIBS"
25897fi
cristy73bd4a52010-10-05 11:24:23 +000025898 if test "$have_magick_plus_plus" = 'yes'; then
25899 WITH_MAGICK_PLUS_PLUS_TRUE=
25900 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25901else
25902 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25903 WITH_MAGICK_PLUS_PLUS_FALSE=
25904fi
25905
cristy3ed852e2009-09-05 21:47:34 +000025906
25907# Only check for delegate libraries in subdirectories if requested.
25908if test "$enable_delegate_build" != 'no'; then
25909 # Check for delegate sub-directories and add -I & -L options as required.
25910 # This presumes that delegates are installed as detailed in the ImageMagick
25911 # README. If delegates are installed in a standard location where the
25912 # compiler will automatically find them then these options should not be
25913 # required.
25914
25915 #
25916 # Most delegates have includes in the same directory as the library, but not all...
25917 #
25918 # Includes
cristy2542fc62011-12-06 17:50:25 +000025919 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 +000025920 if test -d "$builddir/$dir"; then
25921 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25922 else
25923 if test -d "$srcdirfull/$dir"; then
25924 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25925 fi
25926 fi
25927 done
25928
25929 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025930 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 +000025931 if test -d "$builddir/$dir/.libs"; then
25932 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25933 else
25934 if test -d "$srcdirfull/$dir/.libs"; then
25935 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25936 fi
25937 fi
25938 if test -d "$builddir/$dir"; then
25939 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25940 else
25941 if test -d "$srcdirfull/$dir"; then
25942 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25943 fi
25944 fi
25945 done
25946fi
25947
25948# Assume that delegate headers reside under same directory as ImageMagick
25949# installation prefix.
25950MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25951
25952#
25953# Find the X11 RGB database
25954#
cristy8b350f62009-11-15 23:12:43 +000025955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025957if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 $as_echo_n "(cached) " >&6
25959else
25960 # Look for the header file in a standard set of common directories.
25961# Check X11 before X11Rn because it is often a symlink to the current release.
25962 for ac_dir in \
25963 /lib/usr/lib/X11 \
25964 /usr/X11/lib \
25965 /usr/X11R4/lib \
25966 /usr/X11R5/lib \
25967 /usr/X11R6/lib \
25968 /usr/X11R7/lib \
25969 /usr/X386/lib \
25970 /usr/XFree86/lib/X11 \
25971 /usr/athena/lib \
25972 /usr/lib \
25973 /usr/lib/X11 \
25974 /usr/lib/X11R4 \
25975 /usr/lib/X11R5 \
25976 /usr/lib/X11R6 \
25977 /usr/lib/X11R7 \
25978 /usr/local/X11/lib \
25979 /usr/local/X11R4/lib \
25980 /usr/local/X11R5/lib \
25981 /usr/local/X11R6/lib \
25982 /usr/local/lib \
25983 /usr/local/lib/X11 \
25984 /usr/local/lib/X11R4 \
25985 /usr/local/lib/X11R5 \
25986 /usr/local/lib/X11R6 \
25987 /usr/local/lib/X11R7 \
25988 /usr/local/x11r5/lib \
25989 /usr/lpp/Xamples/lib \
25990 /usr/openwin/lib \
25991 /usr/openwin/share/lib \
25992 /usr/unsupported/lib \
25993 /usr/x386/lib \
25994 ; do
25995 if test -f "$ac_dir/X11/rgb.txt"; then
25996 im_cv_x_configure="$ac_dir/X11/"
25997 break
25998 elif test -f "$ac_dir/rgb.txt"; then
25999 im_cv_x_configure="$ac_dir/"
26000 break
26001 fi
26002
26003 done
26004fi
cristy8b350f62009-11-15 23:12:43 +000026005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo "$im_cv_x_configure" >&6; }
26007X11_CONFIGURE_PATH="$im_cv_x_configure"
26008case "${build_os}" in
26009 mingw* )
26010 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26011 ;;
26012esac
26013
26014cat >>confdefs.h <<_ACEOF
26015#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26016_ACEOF
26017
26018
26019#
26020# Find OpenMP library
26021#
26022GOMP_LIBS=''
26023if test "$enable_openmp" != 'no'; then
26024 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026025 # Open64 (passes for GCC but uses different OpenMP implementation)
26026 if test "x$GOMP_LIBS" = x ; then
26027 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26029$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26030if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26031 $as_echo_n "(cached) " >&6
26032else
26033 ac_check_lib_save_LIBS=$LIBS
26034LIBS="-lopenmp $LIBS"
26035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036/* end confdefs.h. */
26037
26038/* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26041#ifdef __cplusplus
26042extern "C"
26043#endif
26044char omp_get_num_procs ();
26045int
26046main ()
26047{
26048return omp_get_num_procs ();
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053if ac_fn_c_try_link "$LINENO"; then :
26054 ac_cv_lib_openmp_omp_get_num_procs=yes
26055else
26056 ac_cv_lib_openmp_omp_get_num_procs=no
26057fi
26058rm -f core conftest.err conftest.$ac_objext \
26059 conftest$ac_exeext conftest.$ac_ext
26060LIBS=$ac_check_lib_save_LIBS
26061fi
26062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26063$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26064if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26065 GOMP_LIBS="-lopenmp"
26066fi
26067
26068 fi
26069 fi
26070 # GCC
26071 if test "x$GOMP_LIBS" = x ; then
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026074if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026075 $as_echo_n "(cached) " >&6
26076else
26077 ac_check_lib_save_LIBS=$LIBS
26078LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026080/* end confdefs.h. */
26081
26082/* Override any GCC internal prototype to avoid an error.
26083 Use char because int might match the return type of a GCC
26084 builtin and then its argument prototype would still apply. */
26085#ifdef __cplusplus
26086extern "C"
26087#endif
26088char GOMP_parallel_start ();
26089int
26090main ()
26091{
26092return GOMP_parallel_start ();
26093 ;
26094 return 0;
26095}
26096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026098 ac_cv_lib_gomp_GOMP_parallel_start=yes
26099else
cristy8b350f62009-11-15 23:12:43 +000026100 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026101fi
cristy8b350f62009-11-15 23:12:43 +000026102rm -f core conftest.err conftest.$ac_objext \
26103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026104LIBS=$ac_check_lib_save_LIBS
26105fi
cristy8b350f62009-11-15 23:12:43 +000026106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026107$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 GOMP_LIBS="-lgomp"
26110fi
cristy18307f12011-12-30 01:20:16 +000026111
26112 fi
cristy3ed852e2009-09-05 21:47:34 +000026113 else
cristy18307f12011-12-30 01:20:16 +000026114 # Sun CC
26115 if test "x$GOMP_LIBS" = x ; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026118if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 $as_echo_n "(cached) " >&6
26120else
26121 ac_check_lib_save_LIBS=$LIBS
26122LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026124/* end confdefs.h. */
26125
26126/* Override any GCC internal prototype to avoid an error.
26127 Use char because int might match the return type of a GCC
26128 builtin and then its argument prototype would still apply. */
26129#ifdef __cplusplus
26130extern "C"
26131#endif
26132char sunw_mp_register_warn ();
26133int
26134main ()
26135{
26136return sunw_mp_register_warn ();
26137 ;
26138 return 0;
26139}
26140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26143else
cristy8b350f62009-11-15 23:12:43 +000026144 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026145fi
cristy8b350f62009-11-15 23:12:43 +000026146rm -f core conftest.err conftest.$ac_objext \
26147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026148LIBS=$ac_check_lib_save_LIBS
26149fi
cristy8b350f62009-11-15 23:12:43 +000026150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026151$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026152if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 GOMP_LIBS="-lmtsk"
26154fi
cristy18307f12011-12-30 01:20:16 +000026155
26156 fi
26157 # AIX xlc
26158 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026160$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026161if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026162 $as_echo_n "(cached) " >&6
26163else
26164 ac_check_lib_save_LIBS=$LIBS
26165LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026167/* end confdefs.h. */
26168
26169/* Override any GCC internal prototype to avoid an error.
26170 Use char because int might match the return type of a GCC
26171 builtin and then its argument prototype would still apply. */
26172#ifdef __cplusplus
26173extern "C"
26174#endif
26175char _xlsmpFlush ();
26176int
26177main ()
26178{
26179return _xlsmpFlush ();
26180 ;
26181 return 0;
26182}
26183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026185 ac_cv_lib_xlsmp__xlsmpFlush=yes
26186else
cristy8b350f62009-11-15 23:12:43 +000026187 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026188fi
cristy8b350f62009-11-15 23:12:43 +000026189rm -f core conftest.err conftest.$ac_objext \
26190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026191LIBS=$ac_check_lib_save_LIBS
26192fi
cristy8b350f62009-11-15 23:12:43 +000026193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026195if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 GOMP_LIBS="-lxlsmp"
26197fi
cristy18307f12011-12-30 01:20:16 +000026198
26199 fi
26200 # SGI IRIX 6.5 MIPSpro C/C++
26201 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026204if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026205 $as_echo_n "(cached) " >&6
26206else
26207 ac_check_lib_save_LIBS=$LIBS
26208LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026210/* end confdefs.h. */
26211
26212/* Override any GCC internal prototype to avoid an error.
26213 Use char because int might match the return type of a GCC
26214 builtin and then its argument prototype would still apply. */
26215#ifdef __cplusplus
26216extern "C"
26217#endif
26218char mp_destroy ();
26219int
26220main ()
26221{
26222return mp_destroy ();
26223 ;
26224 return 0;
26225}
26226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 ac_cv_lib_mp_mp_destroy=yes
26229else
cristy8b350f62009-11-15 23:12:43 +000026230 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026231fi
cristy8b350f62009-11-15 23:12:43 +000026232rm -f core conftest.err conftest.$ac_objext \
26233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026234LIBS=$ac_check_lib_save_LIBS
26235fi
cristy8b350f62009-11-15 23:12:43 +000026236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026238if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 GOMP_LIBS="-lmp"
26240fi
cristy18307f12011-12-30 01:20:16 +000026241
26242 fi
cristy3ed852e2009-09-05 21:47:34 +000026243 fi
26244 LIBS="$GOMP_LIBS $LIBS"
26245fi
26246
26247
26248#
26249# Find Posix threads library
26250#
26251THREAD_LIBS=''
26252if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26253
26254 if test "x$PTHREAD_LIBS" = "x"; then
26255 case "${host_cpu}-${host_os}" in
26256 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026257
26258
26259
26260ac_ext=c
26261ac_cpp='$CPP $CPPFLAGS'
26262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264ac_compiler_gnu=$ac_cv_c_compiler_gnu
26265
26266magick_pthread_lib_ok=no
26267
26268LIB=-lc_r
26269save_LIBS="$LIBS"
26270LIBS="$LIBS $LIB"
26271
26272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26273$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275/* end confdefs.h. */
26276#include <pthread.h>
26277int
26278main ()
26279{
26280 pthread_t th;
26281 pthread_join(th, 0);
26282 pthread_attr_init(0);
26283 pthread_cleanup_push(0, 0);
26284 pthread_create(0,0,0,0);
26285 pthread_cleanup_pop(0);
26286 ;
26287 return 0;
26288}
26289_ACEOF
26290if ac_fn_c_try_link "$LINENO"; then :
26291 magick_pthread_lib_ok=yes
26292fi
26293rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
26295
26296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26297$as_echo "${magick_pthread_lib_ok}" >&6; }
26298if test "$magick_pthread_lib_ok" = yes
26299then
26300 PTHREAD_LIBS=-lc_r
26301 :
26302else
26303
26304 :
26305fi
26306
26307LIBS="$save_LIBS"
26308
26309ac_ext=c
26310ac_cpp='$CPP $CPPFLAGS'
26311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26313ac_compiler_gnu=$ac_cv_c_compiler_gnu
26314
26315 ;;
cristy3ed852e2009-09-05 21:47:34 +000026316 esac
26317 fi
26318
26319 for lib in pthread pthreads; do
26320 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026321
26322
26323
26324ac_ext=c
26325ac_cpp='$CPP $CPPFLAGS'
26326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26328ac_compiler_gnu=$ac_cv_c_compiler_gnu
26329
26330magick_pthread_lib_ok=no
26331
26332LIB=-l$lib
26333save_LIBS="$LIBS"
26334LIBS="$LIBS $LIB"
26335
26336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26337$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26339/* end confdefs.h. */
26340#include <pthread.h>
26341int
26342main ()
26343{
26344 pthread_t th;
26345 pthread_join(th, 0);
26346 pthread_attr_init(0);
26347 pthread_cleanup_push(0, 0);
26348 pthread_create(0,0,0,0);
26349 pthread_cleanup_pop(0);
26350 ;
26351 return 0;
26352}
26353_ACEOF
26354if ac_fn_c_try_link "$LINENO"; then :
26355 magick_pthread_lib_ok=yes
26356fi
26357rm -f core conftest.err conftest.$ac_objext \
26358 conftest$ac_exeext conftest.$ac_ext
26359
26360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26361$as_echo "${magick_pthread_lib_ok}" >&6; }
26362if test "$magick_pthread_lib_ok" = yes
26363then
26364 PTHREAD_LIBS=-l$lib
26365 :
26366else
26367
26368 :
26369fi
26370
26371LIBS="$save_LIBS"
26372
26373ac_ext=c
26374ac_cpp='$CPP $CPPFLAGS'
26375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26377ac_compiler_gnu=$ac_cv_c_compiler_gnu
26378
26379
cristy3ed852e2009-09-05 21:47:34 +000026380 fi
26381 done
26382
26383 THREAD_LIBS="$PTHREAD_LIBS"
26384 LIBS="$LIBS $THREAD_LIBS"
26385fi
26386
26387
26388#
26389# Check for umem.
26390#
26391have_umem='no'
26392UMEM_LIBS=''
26393if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026396 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26397$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026398 failed=0
26399 passed=0
cristy8b350f62009-11-15 23:12:43 +000026400 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026401if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026402 passed=`expr $passed + 1`
26403else
26404 failed=`expr $failed + 1`
26405fi
26406
26407
cristy8b350f62009-11-15 23:12:43 +000026408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026409$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026410if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026411 $as_echo_n "(cached) " >&6
26412else
26413 ac_check_lib_save_LIBS=$LIBS
26414LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026416/* end confdefs.h. */
26417
26418/* Override any GCC internal prototype to avoid an error.
26419 Use char because int might match the return type of a GCC
26420 builtin and then its argument prototype would still apply. */
26421#ifdef __cplusplus
26422extern "C"
26423#endif
26424char umem_alloc ();
26425int
26426main ()
26427{
26428return umem_alloc ();
26429 ;
26430 return 0;
26431}
26432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026434 ac_cv_lib_umem_umem_alloc=yes
26435else
cristy8b350f62009-11-15 23:12:43 +000026436 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026437fi
cristy8b350f62009-11-15 23:12:43 +000026438rm -f core conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026440LIBS=$ac_check_lib_save_LIBS
26441fi
cristy8b350f62009-11-15 23:12:43 +000026442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026444if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 passed=`expr $passed + 1`
26446else
26447 failed=`expr $failed + 1`
26448fi
26449
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026452if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 $as_echo_n "(cached) " >&6
26454else
26455 ac_check_lib_save_LIBS=$LIBS
26456LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026458/* end confdefs.h. */
26459
26460/* Override any GCC internal prototype to avoid an error.
26461 Use char because int might match the return type of a GCC
26462 builtin and then its argument prototype would still apply. */
26463#ifdef __cplusplus
26464extern "C"
26465#endif
26466char umem_free ();
26467int
26468main ()
26469{
26470return umem_free ();
26471 ;
26472 return 0;
26473}
26474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026476 ac_cv_lib_umem_umem_free=yes
26477else
cristy8b350f62009-11-15 23:12:43 +000026478 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026479fi
cristy8b350f62009-11-15 23:12:43 +000026480rm -f core conftest.err conftest.$ac_objext \
26481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026482LIBS=$ac_check_lib_save_LIBS
26483fi
cristy8b350f62009-11-15 23:12:43 +000026484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026486if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 passed=`expr $passed + 1`
26488else
26489 failed=`expr $failed + 1`
26490fi
26491
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26494 if test $passed -gt 0; then
26495 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026496 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26497$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026498 have_umem='no (failed tests)'
26499 else
26500 UMEM_LIBS='-lumem'
26501 LIBS="$UMEM_LIBS $LIBS"
26502
cristy8b350f62009-11-15 23:12:43 +000026503$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026504
cristy09b53e12011-10-14 12:47:22 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26506$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026507 have_umem='yes'
26508 fi
26509 else
cristy09b53e12011-10-14 12:47:22 +000026510 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26511$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026512 fi
26513fi
cristy73bd4a52010-10-05 11:24:23 +000026514 if test "$have_umem" = 'yes'; then
26515 HasUMEM_TRUE=
26516 HasUMEM_FALSE='#'
26517else
26518 HasUMEM_TRUE='#'
26519 HasUMEM_FALSE=
26520fi
26521
cristy3ed852e2009-09-05 21:47:34 +000026522
26523
26524#
26525# Add support for ccmalloc memory debugging library if requested
26526#
26527have_ccmalloc='no'
26528CCMALLOC_LIBS=''
26529if test "$enable_ccmalloc" = 'yes'; then
26530 # Extract the first word of "ccmalloc", so it can be a program name with args.
26531set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026534if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 $as_echo_n "(cached) " >&6
26536else
26537 case $CCMALLOCDelegate in
26538 [\\/]* | ?:[\\/]*)
26539 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26540 ;;
26541 *)
26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543for as_dir in $PATH
26544do
26545 IFS=$as_save_IFS
26546 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26549 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551 break 2
26552 fi
26553done
cristy8b350f62009-11-15 23:12:43 +000026554 done
cristy3ed852e2009-09-05 21:47:34 +000026555IFS=$as_save_IFS
26556
26557 ;;
26558esac
26559fi
26560CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26561if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo "$CCMALLOCDelegate" >&6; }
26564else
cristy8b350f62009-11-15 23:12:43 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo "no" >&6; }
26567fi
26568
26569
26570 if test -n "$CCMALLOCDelegate"; then
26571 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26572 OLIBS="$LIBS"
26573 # Assume that gcc is used with ccmalloc.
26574 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026576$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026577if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026578 $as_echo_n "(cached) " >&6
26579else
26580 ac_check_lib_save_LIBS=$LIBS
26581LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026583/* end confdefs.h. */
26584
26585/* Override any GCC internal prototype to avoid an error.
26586 Use char because int might match the return type of a GCC
26587 builtin and then its argument prototype would still apply. */
26588#ifdef __cplusplus
26589extern "C"
26590#endif
26591char ccmalloc_malloc ();
26592int
26593main ()
26594{
26595return ccmalloc_malloc ();
26596 ;
26597 return 0;
26598}
26599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026601 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26602else
cristy8b350f62009-11-15 23:12:43 +000026603 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026604fi
cristy8b350f62009-11-15 23:12:43 +000026605rm -f core conftest.err conftest.$ac_objext \
26606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026607LIBS=$ac_check_lib_save_LIBS
26608fi
cristy8b350f62009-11-15 23:12:43 +000026609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026611if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26613fi
26614
26615 if test -n "$CCMALLOC_LIBS"; then
26616 LIBS="$OLIBS"
26617 LIBS="$LIBS $CCMALLOC_LIBS"
26618 have_ccmalloc='yes'
26619 else
26620 LIBS="$OLIBS"
26621 fi
26622 fi
26623fi
26624
26625#
26626# Add support for efence memory debugging library if requested
26627#
26628if test "$enable_efence" = 'yes'; then
26629 EFENCE_LIBS='-lefence'
26630 LIBS="$EFENCE_LIBS $LIBS"
26631fi
26632
cristy3ed852e2009-09-05 21:47:34 +000026633
26634#
26635# Check for BZLIB
26636#
26637
26638
26639# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026640if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026641 withval=$with_bzlib; with_bzlib=$withval
26642else
26643 with_bzlib='yes'
26644fi
26645
26646
26647if test "$with_bzlib" != 'yes'; then
26648 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26649fi
26650
26651have_bzlib='no'
26652if test "$with_bzlib" != 'no'; then
26653 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26655$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026658 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26659$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026660 failed=0
26661 passed=0
26662 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026663 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026664if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026665 passed=`expr $passed + 1`
26666else
26667 failed=`expr $failed + 1`
26668fi
26669
26670
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026673if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026674 $as_echo_n "(cached) " >&6
26675else
26676 ac_check_lib_save_LIBS=$LIBS
26677LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026679/* end confdefs.h. */
26680
26681/* Override any GCC internal prototype to avoid an error.
26682 Use char because int might match the return type of a GCC
26683 builtin and then its argument prototype would still apply. */
26684#ifdef __cplusplus
26685extern "C"
26686#endif
26687char BZ2_bzDecompress ();
26688int
26689main ()
26690{
26691return BZ2_bzDecompress ();
26692 ;
26693 return 0;
26694}
26695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026697 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26698else
cristy8b350f62009-11-15 23:12:43 +000026699 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026700fi
cristy8b350f62009-11-15 23:12:43 +000026701rm -f core conftest.err conftest.$ac_objext \
26702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026703LIBS=$ac_check_lib_save_LIBS
26704fi
cristy8b350f62009-11-15 23:12:43 +000026705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026706$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026707if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026708 found_libbz=`expr $found_libbz + 1`
26709fi
26710
26711 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026713$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026714if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026715 $as_echo_n "(cached) " >&6
26716else
26717 ac_check_lib_save_LIBS=$LIBS
26718LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026720/* end confdefs.h. */
26721
26722/* Override any GCC internal prototype to avoid an error.
26723 Use char because int might match the return type of a GCC
26724 builtin and then its argument prototype would still apply. */
26725#ifdef __cplusplus
26726extern "C"
26727#endif
26728char _imp__BZ2_decompress ();
26729int
26730main ()
26731{
26732return _imp__BZ2_decompress ();
26733 ;
26734 return 0;
26735}
26736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026737if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026738 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26739else
cristy8b350f62009-11-15 23:12:43 +000026740 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026741fi
cristy8b350f62009-11-15 23:12:43 +000026742rm -f core conftest.err conftest.$ac_objext \
26743 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026744LIBS=$ac_check_lib_save_LIBS
26745fi
cristy8b350f62009-11-15 23:12:43 +000026746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026748if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026749 found_libbz=`expr $found_libbz + 1`
26750fi
26751
26752 fi
26753 if test $found_libbz -gt 0; then
26754 passed=`expr $passed + 1`
26755 else
26756 failed=`expr $failed + 1`
26757 fi
cristy8b350f62009-11-15 23:12:43 +000026758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo_n "checking if BZLIB package is complete... " >&6; }
26760 if test $passed -gt 0; then
26761 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26763$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026764 have_bzlib='no (failed tests)'
26765 else
26766 BZLIB_LIBS='-lbz2'
26767 LIBS="$BZLIB_LIBS $LIBS"
26768
cristy8b350f62009-11-15 23:12:43 +000026769$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026770
cristy09b53e12011-10-14 12:47:22 +000026771 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26772$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026773 have_bzlib='yes'
26774 fi
26775 else
cristy09b53e12011-10-14 12:47:22 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26777$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026778 fi
26779fi
cristy73bd4a52010-10-05 11:24:23 +000026780 if test "$have_bzlib" = 'yes'; then
26781 BZLIB_DELEGATE_TRUE=
26782 BZLIB_DELEGATE_FALSE='#'
26783else
26784 BZLIB_DELEGATE_TRUE='#'
26785 BZLIB_DELEGATE_FALSE=
26786fi
26787
cristy3ed852e2009-09-05 21:47:34 +000026788
26789
26790#
26791# Find the X11 include and library directories.
26792#
26793IPC_LIBS=''
26794X11_LIBS=''
26795XEXT_LIBS=''
26796XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026798$as_echo_n "checking for X... " >&6; }
26799
26800
26801# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026802if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026803 withval=$with_x;
26804fi
26805
26806# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26807if test "x$with_x" = xno; then
26808 # The user explicitly disabled X.
26809 have_x=disabled
26810else
26811 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026812 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026813 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026814 $as_echo_n "(cached) " >&6
26815else
26816 # One or both of the vars are not set, and there is no cached value.
26817ac_x_includes=no ac_x_libraries=no
26818rm -f -r conftest.dir
26819if mkdir conftest.dir; then
26820 cd conftest.dir
26821 cat >Imakefile <<'_ACEOF'
26822incroot:
26823 @echo incroot='${INCROOT}'
26824usrlibdir:
26825 @echo usrlibdir='${USRLIBDIR}'
26826libdir:
26827 @echo libdir='${LIBDIR}'
26828_ACEOF
26829 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026831 for ac_var in incroot usrlibdir libdir; do
26832 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26833 done
26834 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26835 for ac_extension in a so sl dylib la dll; do
26836 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26837 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26838 ac_im_usrlibdir=$ac_im_libdir; break
26839 fi
26840 done
26841 # Screen out bogus values from the imake configuration. They are
26842 # bogus both because they are the default anyway, and because
26843 # using them would break gcc on systems where it needs fixed includes.
26844 case $ac_im_incroot in
26845 /usr/include) ac_x_includes= ;;
26846 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26847 esac
26848 case $ac_im_usrlibdir in
26849 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26850 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26851 esac
26852 fi
26853 cd ..
26854 rm -f -r conftest.dir
26855fi
26856
26857# Standard set of common directories for X headers.
26858# Check X11 before X11Rn because it is often a symlink to the current release.
26859ac_x_header_dirs='
26860/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026861/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026862/usr/X11R6/include
26863/usr/X11R5/include
26864/usr/X11R4/include
26865
26866/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026867/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026868/usr/include/X11R6
26869/usr/include/X11R5
26870/usr/include/X11R4
26871
26872/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026873/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026874/usr/local/X11R6/include
26875/usr/local/X11R5/include
26876/usr/local/X11R4/include
26877
26878/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026879/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026880/usr/local/include/X11R6
26881/usr/local/include/X11R5
26882/usr/local/include/X11R4
26883
26884/usr/X386/include
26885/usr/x386/include
26886/usr/XFree86/include/X11
26887
26888/usr/include
26889/usr/local/include
26890/usr/unsupported/include
26891/usr/athena/include
26892/usr/local/x11r5/include
26893/usr/lpp/Xamples/include
26894
26895/usr/openwin/include
26896/usr/openwin/share/include'
26897
26898if test "$ac_x_includes" = no; then
26899 # Guess where to find include files, by looking for Xlib.h.
26900 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026902/* end confdefs.h. */
26903#include <X11/Xlib.h>
26904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026905if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026906 # We can compile using X headers with no special include directory.
26907ac_x_includes=
26908else
cristyc7083c12009-10-14 03:16:55 +000026909 for ac_dir in $ac_x_header_dirs; do
26910 if test -r "$ac_dir/X11/Xlib.h"; then
26911 ac_x_includes=$ac_dir
26912 break
26913 fi
26914done
26915fi
cristyda16f162011-02-19 23:52:17 +000026916rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026917fi # $ac_x_includes = no
26918
26919if test "$ac_x_libraries" = no; then
26920 # Check for the libraries.
26921 # See if we find them without any special options.
26922 # Don't add to $LIBS permanently.
26923 ac_save_LIBS=$LIBS
26924 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026926/* end confdefs.h. */
26927#include <X11/Xlib.h>
26928int
26929main ()
26930{
26931XrmInitialize ()
26932 ;
26933 return 0;
26934}
26935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026936if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026937 LIBS=$ac_save_LIBS
26938# We can link X programs with no special library path.
26939ac_x_libraries=
26940else
cristy8b350f62009-11-15 23:12:43 +000026941 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026942for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26943do
26944 # Don't even attempt the hair of trying to link an X program!
26945 for ac_extension in a so sl dylib la dll; do
26946 if test -r "$ac_dir/libX11.$ac_extension"; then
26947 ac_x_libraries=$ac_dir
26948 break 2
26949 fi
26950 done
26951done
26952fi
cristy8b350f62009-11-15 23:12:43 +000026953rm -f core conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026955fi # $ac_x_libraries = no
26956
26957case $ac_x_includes,$ac_x_libraries in #(
26958 no,* | *,no | *\'*)
26959 # Didn't find X, or a directory has "'" in its name.
26960 ac_cv_have_x="have_x=no";; #(
26961 *)
26962 # Record where we found X for the cache.
26963 ac_cv_have_x="have_x=yes\
26964 ac_x_includes='$ac_x_includes'\
26965 ac_x_libraries='$ac_x_libraries'"
26966esac
26967fi
26968;; #(
26969 *) have_x=yes;;
26970 esac
26971 eval "$ac_cv_have_x"
26972fi # $with_x != no
26973
26974if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026976$as_echo "$have_x" >&6; }
26977 no_x=yes
26978else
26979 # If each of the values was on the command line, it overrides each guess.
26980 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26981 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26982 # Update the cache value to reflect the command line values.
26983 ac_cv_have_x="have_x=yes\
26984 ac_x_includes='$x_includes'\
26985 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026987$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26988fi
26989
cristy3ed852e2009-09-05 21:47:34 +000026990if test "$no_x" = yes; then
26991 # Not all programs may use this symbol, but it does not hurt to define it.
26992
cristy8b350f62009-11-15 23:12:43 +000026993$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026994
26995 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26996else
26997 if test -n "$x_includes"; then
26998 X_CFLAGS="$X_CFLAGS -I$x_includes"
26999 fi
27000
27001 # It would also be nice to do this for all -L options, not just this one.
27002 if test -n "$x_libraries"; then
27003 X_LIBS="$X_LIBS -L$x_libraries"
27004 # For Solaris; some versions of Sun CC require a space after -R and
27005 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27008 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27009 ac_xsave_c_werror_flag=$ac_c_werror_flag
27010 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012/* end confdefs.h. */
27013
27014int
27015main ()
27016{
27017
27018 ;
27019 return 0;
27020}
27021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027022if ac_fn_c_try_link "$LINENO"; then :
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo "no" >&6; }
27025 X_LIBS="$X_LIBS -R$x_libraries"
27026else
cristy8b350f62009-11-15 23:12:43 +000027027 LIBS="$ac_xsave_LIBS -R $x_libraries"
27028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027029/* end confdefs.h. */
27030
27031int
27032main ()
27033{
27034
27035 ;
27036 return 0;
27037}
27038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027039if ac_fn_c_try_link "$LINENO"; then :
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027041$as_echo "yes" >&6; }
27042 X_LIBS="$X_LIBS -R $x_libraries"
27043else
cristy8b350f62009-11-15 23:12:43 +000027044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "neither works" >&6; }
27046fi
cristy8b350f62009-11-15 23:12:43 +000027047rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027049fi
cristy8b350f62009-11-15 23:12:43 +000027050rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_c_werror_flag=$ac_xsave_c_werror_flag
27053 LIBS=$ac_xsave_LIBS
27054 fi
27055
27056 # Check for system-dependent libraries X programs must link with.
27057 # Do this before checking for the system-independent R6 libraries
27058 # (-lICE), since we may need -lsocket or whatever for X linking.
27059
27060 if test "$ISC" = yes; then
27061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27062 else
27063 # Martyn Johnson says this is needed for Ultrix, if the X
27064 # libraries were built with DECnet support. And Karl Berry says
27065 # the Alpha needs dnet_stub (dnet does not exist).
27066 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027068/* end confdefs.h. */
27069
27070/* Override any GCC internal prototype to avoid an error.
27071 Use char because int might match the return type of a GCC
27072 builtin and then its argument prototype would still apply. */
27073#ifdef __cplusplus
27074extern "C"
27075#endif
27076char XOpenDisplay ();
27077int
27078main ()
27079{
27080return XOpenDisplay ();
27081 ;
27082 return 0;
27083}
27084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027086
cristy8b350f62009-11-15 23:12:43 +000027087else
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027089$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027090if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 $as_echo_n "(cached) " >&6
27092else
27093 ac_check_lib_save_LIBS=$LIBS
27094LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027096/* end confdefs.h. */
27097
27098/* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104char dnet_ntoa ();
27105int
27106main ()
27107{
27108return dnet_ntoa ();
27109 ;
27110 return 0;
27111}
27112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027114 ac_cv_lib_dnet_dnet_ntoa=yes
27115else
cristy8b350f62009-11-15 23:12:43 +000027116 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027117fi
cristy8b350f62009-11-15 23:12:43 +000027118rm -f core conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027120LIBS=$ac_check_lib_save_LIBS
27121fi
cristy8b350f62009-11-15 23:12:43 +000027122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027124if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027125 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27126fi
27127
27128 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027131if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 $as_echo_n "(cached) " >&6
27133else
27134 ac_check_lib_save_LIBS=$LIBS
27135LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137/* end confdefs.h. */
27138
27139/* Override any GCC internal prototype to avoid an error.
27140 Use char because int might match the return type of a GCC
27141 builtin and then its argument prototype would still apply. */
27142#ifdef __cplusplus
27143extern "C"
27144#endif
27145char dnet_ntoa ();
27146int
27147main ()
27148{
27149return dnet_ntoa ();
27150 ;
27151 return 0;
27152}
27153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027154if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027155 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27156else
cristy8b350f62009-11-15 23:12:43 +000027157 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027158fi
cristy8b350f62009-11-15 23:12:43 +000027159rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161LIBS=$ac_check_lib_save_LIBS
27162fi
cristy8b350f62009-11-15 23:12:43 +000027163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027165if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27167fi
27168
27169 fi
27170fi
cristy8b350f62009-11-15 23:12:43 +000027171rm -f core conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027173 LIBS="$ac_xsave_LIBS"
27174
27175 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27176 # to get the SysV transport functions.
27177 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27178 # needs -lnsl.
27179 # The nsl library prevents programs from opening the X display
27180 # on Irix 5.2, according to T.E. Dickey.
27181 # The functions gethostbyname, getservbyname, and inet_addr are
27182 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027183 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027184if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027185
cristy3ed852e2009-09-05 21:47:34 +000027186fi
27187
cristy3ed852e2009-09-05 21:47:34 +000027188 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027191if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 $as_echo_n "(cached) " >&6
27193else
27194 ac_check_lib_save_LIBS=$LIBS
27195LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027197/* end confdefs.h. */
27198
27199/* Override any GCC internal prototype to avoid an error.
27200 Use char because int might match the return type of a GCC
27201 builtin and then its argument prototype would still apply. */
27202#ifdef __cplusplus
27203extern "C"
27204#endif
27205char gethostbyname ();
27206int
27207main ()
27208{
27209return gethostbyname ();
27210 ;
27211 return 0;
27212}
27213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 ac_cv_lib_nsl_gethostbyname=yes
27216else
cristy8b350f62009-11-15 23:12:43 +000027217 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027218fi
cristy8b350f62009-11-15 23:12:43 +000027219rm -f core conftest.err conftest.$ac_objext \
27220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221LIBS=$ac_check_lib_save_LIBS
27222fi
cristy8b350f62009-11-15 23:12:43 +000027223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027225if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27227fi
27228
27229 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027232if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027233 $as_echo_n "(cached) " >&6
27234else
27235 ac_check_lib_save_LIBS=$LIBS
27236LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027238/* end confdefs.h. */
27239
27240/* Override any GCC internal prototype to avoid an error.
27241 Use char because int might match the return type of a GCC
27242 builtin and then its argument prototype would still apply. */
27243#ifdef __cplusplus
27244extern "C"
27245#endif
27246char gethostbyname ();
27247int
27248main ()
27249{
27250return gethostbyname ();
27251 ;
27252 return 0;
27253}
27254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 ac_cv_lib_bsd_gethostbyname=yes
27257else
cristy8b350f62009-11-15 23:12:43 +000027258 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027259fi
cristy8b350f62009-11-15 23:12:43 +000027260rm -f core conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262LIBS=$ac_check_lib_save_LIBS
27263fi
cristy8b350f62009-11-15 23:12:43 +000027264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027266if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27268fi
27269
27270 fi
27271 fi
27272
27273 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27274 # socket/setsockopt and other routines are undefined under SCO ODT
27275 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27276 # on later versions), says Simon Leinen: it contains gethostby*
27277 # variants that don't use the name server (or something). -lsocket
27278 # must be given before -lnsl if both are needed. We assume that
27279 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027280 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027281if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027282
cristy3ed852e2009-09-05 21:47:34 +000027283fi
27284
cristy3ed852e2009-09-05 21:47:34 +000027285 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027288if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 $as_echo_n "(cached) " >&6
27290else
27291 ac_check_lib_save_LIBS=$LIBS
27292LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294/* end confdefs.h. */
27295
27296/* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
27299#ifdef __cplusplus
27300extern "C"
27301#endif
27302char connect ();
27303int
27304main ()
27305{
27306return connect ();
27307 ;
27308 return 0;
27309}
27310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 ac_cv_lib_socket_connect=yes
27313else
cristy8b350f62009-11-15 23:12:43 +000027314 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027315fi
cristy8b350f62009-11-15 23:12:43 +000027316rm -f core conftest.err conftest.$ac_objext \
27317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318LIBS=$ac_check_lib_save_LIBS
27319fi
cristy8b350f62009-11-15 23:12:43 +000027320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027321$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027322if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027323 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27324fi
27325
27326 fi
27327
27328 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027329 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027330if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027331
cristy3ed852e2009-09-05 21:47:34 +000027332fi
27333
cristy3ed852e2009-09-05 21:47:34 +000027334 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027336$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027337if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 $as_echo_n "(cached) " >&6
27339else
27340 ac_check_lib_save_LIBS=$LIBS
27341LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027343/* end confdefs.h. */
27344
27345/* Override any GCC internal prototype to avoid an error.
27346 Use char because int might match the return type of a GCC
27347 builtin and then its argument prototype would still apply. */
27348#ifdef __cplusplus
27349extern "C"
27350#endif
27351char remove ();
27352int
27353main ()
27354{
27355return remove ();
27356 ;
27357 return 0;
27358}
27359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 ac_cv_lib_posix_remove=yes
27362else
cristy8b350f62009-11-15 23:12:43 +000027363 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027364fi
cristy8b350f62009-11-15 23:12:43 +000027365rm -f core conftest.err conftest.$ac_objext \
27366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027367LIBS=$ac_check_lib_save_LIBS
27368fi
cristy8b350f62009-11-15 23:12:43 +000027369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027370$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027371if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27373fi
27374
27375 fi
27376
27377 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027378 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027379if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027380
cristy3ed852e2009-09-05 21:47:34 +000027381fi
27382
cristy3ed852e2009-09-05 21:47:34 +000027383 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027386if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 $as_echo_n "(cached) " >&6
27388else
27389 ac_check_lib_save_LIBS=$LIBS
27390LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027392/* end confdefs.h. */
27393
27394/* Override any GCC internal prototype to avoid an error.
27395 Use char because int might match the return type of a GCC
27396 builtin and then its argument prototype would still apply. */
27397#ifdef __cplusplus
27398extern "C"
27399#endif
27400char shmat ();
27401int
27402main ()
27403{
27404return shmat ();
27405 ;
27406 return 0;
27407}
27408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 ac_cv_lib_ipc_shmat=yes
27411else
cristy8b350f62009-11-15 23:12:43 +000027412 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027413fi
cristy8b350f62009-11-15 23:12:43 +000027414rm -f core conftest.err conftest.$ac_objext \
27415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027416LIBS=$ac_check_lib_save_LIBS
27417fi
cristy8b350f62009-11-15 23:12:43 +000027418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027420if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27422fi
27423
27424 fi
27425 fi
27426
27427 # Check for libraries that X11R6 Xt/Xaw programs need.
27428 ac_save_LDFLAGS=$LDFLAGS
27429 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27430 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27431 # check for ICE first), but we must link in the order -lSM -lICE or
27432 # we get undefined symbols. So assume we have SM if we have ICE.
27433 # These have to be linked with before -lX11, unlike the other
27434 # libraries we check for below, so use a different variable.
27435 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027438if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 $as_echo_n "(cached) " >&6
27440else
27441 ac_check_lib_save_LIBS=$LIBS
27442LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027444/* end confdefs.h. */
27445
27446/* Override any GCC internal prototype to avoid an error.
27447 Use char because int might match the return type of a GCC
27448 builtin and then its argument prototype would still apply. */
27449#ifdef __cplusplus
27450extern "C"
27451#endif
27452char IceConnectionNumber ();
27453int
27454main ()
27455{
27456return IceConnectionNumber ();
27457 ;
27458 return 0;
27459}
27460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027461if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 ac_cv_lib_ICE_IceConnectionNumber=yes
27463else
cristy8b350f62009-11-15 23:12:43 +000027464 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027465fi
cristy8b350f62009-11-15 23:12:43 +000027466rm -f core conftest.err conftest.$ac_objext \
27467 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027468LIBS=$ac_check_lib_save_LIBS
27469fi
cristy8b350f62009-11-15 23:12:43 +000027470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027471$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027472if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27474fi
27475
27476 LDFLAGS=$ac_save_LDFLAGS
27477
27478fi
27479
27480if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27482$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27486$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027487 LDFLAGS="$LDFLAGS $X_LIBS"
27488 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27489 LIBS="$X11_LIBS $LIBS"
27490 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27491
27492
cristy8b350f62009-11-15 23:12:43 +000027493$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027494
27495 #
27496 # Check for X11 shared memory extension
27497 #
27498 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027499 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027500if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027501 have_shmctl='yes'
27502fi
27503
27504 if test "$have_shmctl" != 'yes'; then
27505 PERSIST_LIBS=$LIBS
27506 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027508/* end confdefs.h. */
27509
27510/* Override any GCC internal prototype to avoid an error.
27511 Use char because int might match the return type of a GCC
27512 builtin and then its argument prototype would still apply. */
27513#ifdef __cplusplus
27514extern "C"
27515#endif
27516char shmctl ();
27517int
27518main ()
27519{
27520return shmctl ();
27521 ;
27522 return 0;
27523}
27524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027527fi
cristy8b350f62009-11-15 23:12:43 +000027528rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530 LIBS=$PERSIST_LIBS
27531 fi
27532
27533 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 $as_echo_n "(cached) " >&6
27538else
27539 ac_check_lib_save_LIBS=$LIBS
27540LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027542/* end confdefs.h. */
27543
27544/* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27547#ifdef __cplusplus
27548extern "C"
27549#endif
27550char XShmAttach ();
27551int
27552main ()
27553{
27554return XShmAttach ();
27555 ;
27556 return 0;
27557}
27558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 ac_cv_lib_Xext_XShmAttach=yes
27561else
cristy8b350f62009-11-15 23:12:43 +000027562 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027563fi
cristy8b350f62009-11-15 23:12:43 +000027564rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566LIBS=$ac_check_lib_save_LIBS
27567fi
cristy8b350f62009-11-15 23:12:43 +000027568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027570if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027572$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027573
27574fi
27575
27576 fi
27577
27578 #
27579 # Check for X11 shape extension
27580 #
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027583if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 $as_echo_n "(cached) " >&6
27585else
27586 ac_check_lib_save_LIBS=$LIBS
27587LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589/* end confdefs.h. */
27590
27591/* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594#ifdef __cplusplus
27595extern "C"
27596#endif
27597char XShapeCombineMask ();
27598int
27599main ()
27600{
27601return XShapeCombineMask ();
27602 ;
27603 return 0;
27604}
27605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 ac_cv_lib_Xext_XShapeCombineMask=yes
27608else
cristy8b350f62009-11-15 23:12:43 +000027609 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027610fi
cristy8b350f62009-11-15 23:12:43 +000027611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613LIBS=$ac_check_lib_save_LIBS
27614fi
cristy8b350f62009-11-15 23:12:43 +000027615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027617if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027619$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027620
27621fi
27622
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027625if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 $as_echo_n "(cached) " >&6
27627else
27628 ac_check_lib_save_LIBS=$LIBS
27629LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633/* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27636#ifdef __cplusplus
27637extern "C"
27638#endif
27639char XtSetEventDispatcher ();
27640int
27641main ()
27642{
27643return XtSetEventDispatcher ();
27644 ;
27645 return 0;
27646}
27647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027649 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27650else
cristy8b350f62009-11-15 23:12:43 +000027651 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027652fi
cristy8b350f62009-11-15 23:12:43 +000027653rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655LIBS=$ac_check_lib_save_LIBS
27656fi
cristy8b350f62009-11-15 23:12:43 +000027657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027659if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 XT_LIBS='-lXt'
27661fi
27662
27663 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27664fi
27665if test "$no_x" != 'yes'; then
27666 have_x='yes'
27667else
27668 have_x='no'
27669fi
cristy73bd4a52010-10-05 11:24:23 +000027670 if test "$have_x" = 'yes'; then
27671 X11_DELEGATE_TRUE=
27672 X11_DELEGATE_FALSE='#'
27673else
27674 X11_DELEGATE_TRUE='#'
27675 X11_DELEGATE_FALSE=
27676fi
27677
cristy3ed852e2009-09-05 21:47:34 +000027678
27679
27680
27681
27682#
27683# Check for ZLIB
27684#
27685
27686# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027687if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 withval=$with_zlib; with_zlib=$withval
27689else
27690 with_zlib='yes'
27691fi
27692
27693
27694if test "$with_zlib" != 'yes'; then
27695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27696fi
27697
27698have_zlib='no'
27699ZLIB_LIBS=''
27700if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027701 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27702$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27706$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027707 ZLIB_LIBS=''
27708 failed=0
27709 passed=0
cristy8b350f62009-11-15 23:12:43 +000027710 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027711if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 passed=`expr $passed + 1`
27713else
27714 failed=`expr $failed + 1`
27715fi
27716
27717
cristy8b350f62009-11-15 23:12:43 +000027718 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027719if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 passed=`expr $passed + 1`
27721else
27722 failed=`expr $failed + 1`
27723fi
27724
27725
cristy8b350f62009-11-15 23:12:43 +000027726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 $as_echo_n "(cached) " >&6
27730else
27731 ac_check_lib_save_LIBS=$LIBS
27732LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char compress ();
27743int
27744main ()
27745{
27746return compress ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 ac_cv_lib_z_compress=yes
27753else
cristy8b350f62009-11-15 23:12:43 +000027754 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027755fi
cristy8b350f62009-11-15 23:12:43 +000027756rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758LIBS=$ac_check_lib_save_LIBS
27759fi
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 passed=`expr $passed + 1`
27764else
27765 failed=`expr $failed + 1`
27766fi
27767
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027770if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 $as_echo_n "(cached) " >&6
27772else
27773 ac_check_lib_save_LIBS=$LIBS
27774LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char uncompress ();
27785int
27786main ()
27787{
27788return uncompress ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 ac_cv_lib_z_uncompress=yes
27795else
cristy8b350f62009-11-15 23:12:43 +000027796 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027797fi
cristy8b350f62009-11-15 23:12:43 +000027798rm -f core conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800LIBS=$ac_check_lib_save_LIBS
27801fi
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027804if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027812if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 $as_echo_n "(cached) " >&6
27814else
27815 ac_check_lib_save_LIBS=$LIBS
27816LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027818/* end confdefs.h. */
27819
27820/* Override any GCC internal prototype to avoid an error.
27821 Use char because int might match the return type of a GCC
27822 builtin and then its argument prototype would still apply. */
27823#ifdef __cplusplus
27824extern "C"
27825#endif
27826char deflate ();
27827int
27828main ()
27829{
27830return deflate ();
27831 ;
27832 return 0;
27833}
27834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 ac_cv_lib_z_deflate=yes
27837else
cristy8b350f62009-11-15 23:12:43 +000027838 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027839fi
cristy8b350f62009-11-15 23:12:43 +000027840rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842LIBS=$ac_check_lib_save_LIBS
27843fi
cristy8b350f62009-11-15 23:12:43 +000027844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027846if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 passed=`expr $passed + 1`
27848else
27849 failed=`expr $failed + 1`
27850fi
27851
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027854if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 $as_echo_n "(cached) " >&6
27856else
27857 ac_check_lib_save_LIBS=$LIBS
27858LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860/* end confdefs.h. */
27861
27862/* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27865#ifdef __cplusplus
27866extern "C"
27867#endif
27868char inflate ();
27869int
27870main ()
27871{
27872return inflate ();
27873 ;
27874 return 0;
27875}
27876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 ac_cv_lib_z_inflate=yes
27879else
cristy8b350f62009-11-15 23:12:43 +000027880 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027881fi
cristy8b350f62009-11-15 23:12:43 +000027882rm -f core conftest.err conftest.$ac_objext \
27883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884LIBS=$ac_check_lib_save_LIBS
27885fi
cristy8b350f62009-11-15 23:12:43 +000027886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 passed=`expr $passed + 1`
27890else
27891 failed=`expr $failed + 1`
27892fi
27893
cristy8b350f62009-11-15 23:12:43 +000027894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027896if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 $as_echo_n "(cached) " >&6
27898else
27899 ac_check_lib_save_LIBS=$LIBS
27900LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027902/* end confdefs.h. */
27903
27904/* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27907#ifdef __cplusplus
27908extern "C"
27909#endif
27910char gzseek ();
27911int
27912main ()
27913{
27914return gzseek ();
27915 ;
27916 return 0;
27917}
27918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 ac_cv_lib_z_gzseek=yes
27921else
cristy8b350f62009-11-15 23:12:43 +000027922 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027923fi
cristy8b350f62009-11-15 23:12:43 +000027924rm -f core conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027926LIBS=$ac_check_lib_save_LIBS
27927fi
cristy8b350f62009-11-15 23:12:43 +000027928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027930if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 passed=`expr $passed + 1`
27932else
27933 failed=`expr $failed + 1`
27934fi
27935
cristy8b350f62009-11-15 23:12:43 +000027936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027937$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027938if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 $as_echo_n "(cached) " >&6
27940else
27941 ac_check_lib_save_LIBS=$LIBS
27942LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027944/* end confdefs.h. */
27945
27946/* Override any GCC internal prototype to avoid an error.
27947 Use char because int might match the return type of a GCC
27948 builtin and then its argument prototype would still apply. */
27949#ifdef __cplusplus
27950extern "C"
27951#endif
27952char gztell ();
27953int
27954main ()
27955{
27956return gztell ();
27957 ;
27958 return 0;
27959}
27960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 ac_cv_lib_z_gztell=yes
27963else
cristy8b350f62009-11-15 23:12:43 +000027964 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027965fi
cristy8b350f62009-11-15 23:12:43 +000027966rm -f core conftest.err conftest.$ac_objext \
27967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027968LIBS=$ac_check_lib_save_LIBS
27969fi
cristy8b350f62009-11-15 23:12:43 +000027970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027972if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027973 passed=`expr $passed + 1`
27974else
27975 failed=`expr $failed + 1`
27976fi
27977
cristy8b350f62009-11-15 23:12:43 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo_n "checking if ZLIB package is complete... " >&6; }
27980 if test $passed -gt 0; then
27981 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027982 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27983$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027984 have_zlib='no (failed tests)'
27985 else
27986 ZLIB_LIBS='-lz'
27987 LIBS="$ZLIB_LIBS $LIBS"
27988
cristy8b350f62009-11-15 23:12:43 +000027989$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027990
cristy09b53e12011-10-14 12:47:22 +000027991 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27992$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027993 have_zlib='yes'
27994 fi
27995 else
cristy09b53e12011-10-14 12:47:22 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27997$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027998 fi
27999fi
cristy73bd4a52010-10-05 11:24:23 +000028000 if test "$have_zlib" = 'yes'; then
28001 ZLIB_DELEGATE_TRUE=
28002 ZLIB_DELEGATE_FALSE='#'
28003else
28004 ZLIB_DELEGATE_TRUE='#'
28005 ZLIB_DELEGATE_FALSE=
28006fi
28007
cristy3ed852e2009-09-05 21:47:34 +000028008
28009
28010#
28011# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28012#
28013LIB_DL=''
28014if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028016$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028017if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028018 $as_echo_n "(cached) " >&6
28019else
28020 ac_check_lib_save_LIBS=$LIBS
28021LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028023/* end confdefs.h. */
28024
28025/* Override any GCC internal prototype to avoid an error.
28026 Use char because int might match the return type of a GCC
28027 builtin and then its argument prototype would still apply. */
28028#ifdef __cplusplus
28029extern "C"
28030#endif
28031char dlopen ();
28032int
28033main ()
28034{
28035return dlopen ();
28036 ;
28037 return 0;
28038}
28039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 ac_cv_lib_dl_dlopen=yes
28042else
cristy8b350f62009-11-15 23:12:43 +000028043 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028044fi
cristy8b350f62009-11-15 23:12:43 +000028045rm -f core conftest.err conftest.$ac_objext \
28046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028047LIBS=$ac_check_lib_save_LIBS
28048fi
cristy8b350f62009-11-15 23:12:43 +000028049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028050$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028051if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028052 LIB_DL='-ldl'
28053fi
28054
28055 LIBS="$LIB_DL $LIBS"
28056fi
28057
28058
28059
28060#
28061# Check for Autotrace delegate library.
28062#
28063
28064# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028065if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 withval=$with_autotrace; with_autotrace=$withval
28067else
28068 with_autotrace='no'
28069fi
28070
28071
28072if test "$with_autotrace" != 'yes'; then
28073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28074fi
28075
28076have_autotrace='no'
28077AUTOTRACE_CFLAGS=""
28078AUTOTRACE_LIBS=""
28079AUTOTRACE_PKG=""
28080if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28082$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028083
28084pkg_failed=no
28085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28086$as_echo_n "checking for AUTOTRACE... " >&6; }
28087
28088if test -n "$AUTOTRACE_CFLAGS"; then
28089 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28090 elif test -n "$PKG_CONFIG"; then
28091 if test -n "$PKG_CONFIG" && \
28092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28093 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28094 ac_status=$?
28095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28096 test $ac_status = 0; }; then
28097 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28098else
28099 pkg_failed=yes
28100fi
28101 else
28102 pkg_failed=untried
28103fi
28104if test -n "$AUTOTRACE_LIBS"; then
28105 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28106 elif test -n "$PKG_CONFIG"; then
28107 if test -n "$PKG_CONFIG" && \
28108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28109 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28110 ac_status=$?
28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112 test $ac_status = 0; }; then
28113 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28114else
28115 pkg_failed=yes
28116fi
28117 else
28118 pkg_failed=untried
28119fi
28120
28121
28122
28123if test $pkg_failed = yes; then
28124
28125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28126 _pkg_short_errors_supported=yes
28127else
28128 _pkg_short_errors_supported=no
28129fi
28130 if test $_pkg_short_errors_supported = yes; then
28131 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28132 else
28133 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28134 fi
28135 # Put the nasty error message in config.log where it belongs
28136 echo "$AUTOTRACE_PKG_ERRORS" >&5
28137
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28139$as_echo "no" >&6; }
28140 have_autotrace=no
28141elif test $pkg_failed = untried; then
28142 have_autotrace=no
28143else
28144 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28145 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28147$as_echo "yes" >&6; }
28148 have_autotrace=yes
28149fi
cristy09b53e12011-10-14 12:47:22 +000028150 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28151$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028152fi
28153
28154if test "$have_autotrace" = 'yes'; then
28155 failed=0
28156
cristy8b350f62009-11-15 23:12:43 +000028157$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028158
28159 if test "$with_modules" = 'no'; then
28160 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28161 fi
28162fi
28163
cristy73bd4a52010-10-05 11:24:23 +000028164 if test "$have_autotrace" = 'yes'; then
28165 AUTOTRACE_DELEGATE_TRUE=
28166 AUTOTRACE_DELEGATE_FALSE='#'
28167else
28168 AUTOTRACE_DELEGATE_TRUE='#'
28169 AUTOTRACE_DELEGATE_FALSE=
28170fi
28171
cristy3ed852e2009-09-05 21:47:34 +000028172
28173
28174
28175
28176#
28177# Check for Display Postscript delegate library.
28178#
28179
28180# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028181if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028182 withval=$with_dps; with_dps=$withval
28183else
28184 with_dps='yes'
28185fi
28186
28187
28188if test "$with_dps" != 'yes'; then
28189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28190fi
28191
28192have_dps='no'
28193DPS_LIBS=''
28194if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28196$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28200$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028201 failed=0
28202 passed=0
28203 PERSIST_CPPFLAGS="$CPPFLAGS"
28204 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028205 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 +000028206if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028207 passed=`expr $passed + 1`
28208else
28209 failed=`expr $failed + 1`
28210fi
28211
28212
28213 # DPS issues:
28214 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28215 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28216 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28217 # ImageMagick itself doesn't use -lXt.
28218 have_libdps='no'
28219 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028221$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028222if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 $as_echo_n "(cached) " >&6
28224else
28225 ac_check_lib_save_LIBS=$LIBS
28226LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028228/* end confdefs.h. */
28229
28230/* Override any GCC internal prototype to avoid an error.
28231 Use char because int might match the return type of a GCC
28232 builtin and then its argument prototype would still apply. */
28233#ifdef __cplusplus
28234extern "C"
28235#endif
28236char DPSInitialize ();
28237int
28238main ()
28239{
28240return DPSInitialize ();
28241 ;
28242 return 0;
28243}
28244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028246 ac_cv_lib_dps_DPSInitialize=yes
28247else
cristy8b350f62009-11-15 23:12:43 +000028248 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028249fi
cristy8b350f62009-11-15 23:12:43 +000028250rm -f core conftest.err conftest.$ac_objext \
28251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028252LIBS=$ac_check_lib_save_LIBS
28253fi
cristy8b350f62009-11-15 23:12:43 +000028254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028256if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028257 have_libdps='yes'
28258else
28259 have_libdps='no'
28260fi
28261
28262 if test "$have_libdps" != 'yes'; then
28263 # Unset cache variable so we can try again.
28264 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 $as_echo_n "(cached) " >&6
28269else
28270 ac_check_lib_save_LIBS=$LIBS
28271LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273/* end confdefs.h. */
28274
28275/* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28278#ifdef __cplusplus
28279extern "C"
28280#endif
28281char DPSInitialize ();
28282int
28283main ()
28284{
28285return DPSInitialize ();
28286 ;
28287 return 0;
28288}
28289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 ac_cv_lib_dps_DPSInitialize=yes
28292else
cristy8b350f62009-11-15 23:12:43 +000028293 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028294fi
cristy8b350f62009-11-15 23:12:43 +000028295rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297LIBS=$ac_check_lib_save_LIBS
28298fi
cristy8b350f62009-11-15 23:12:43 +000028299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 have_libdps='yes'
28303else
28304 have_libdps='no'
28305fi
28306
28307 if test "$have_libdps" = 'yes'; then
28308 LIBDPS_XT='-lXt'
28309 fi
28310 fi
28311 if test "$have_libdps" = 'yes'; then
28312 passed=`expr $passed + 1`
28313 else
28314 failed=`expr $failed + 1`
28315 fi
cristy8b350f62009-11-15 23:12:43 +000028316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028317$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028318if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 $as_echo_n "(cached) " >&6
28320else
28321 ac_check_lib_save_LIBS=$LIBS
28322LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028324/* end confdefs.h. */
28325
28326/* Override any GCC internal prototype to avoid an error.
28327 Use char because int might match the return type of a GCC
28328 builtin and then its argument prototype would still apply. */
28329#ifdef __cplusplus
28330extern "C"
28331#endif
28332char XDPSPixelsPerPoint ();
28333int
28334main ()
28335{
28336return XDPSPixelsPerPoint ();
28337 ;
28338 return 0;
28339}
28340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028342 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28343else
cristy8b350f62009-11-15 23:12:43 +000028344 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028345fi
cristy8b350f62009-11-15 23:12:43 +000028346rm -f core conftest.err conftest.$ac_objext \
28347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028348LIBS=$ac_check_lib_save_LIBS
28349fi
cristy8b350f62009-11-15 23:12:43 +000028350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028351$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028352if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028353 passed=`expr $passed + 1`
28354else
28355 failed=`expr $failed + 1`
28356fi
28357
cristy8b350f62009-11-15 23:12:43 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo_n "checking if DPS package is complete... " >&6; }
28360 if test $passed -gt 0; then
28361 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28363$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028364 have_dps='no (failed tests)'
28365 CPPFLAGS="$PERSIST_CPPFLAGS"
28366 else
28367 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28368 LIBS="$DPS_LIBS $LIBS"
28369
cristy8b350f62009-11-15 23:12:43 +000028370$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028371
cristy09b53e12011-10-14 12:47:22 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28373$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028374 have_dps='yes'
28375 fi
28376 else
cristy09b53e12011-10-14 12:47:22 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28378$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028379 CPPFLAGS=$PERSIST_CPPFLAGS
28380 fi
28381fi
cristy73bd4a52010-10-05 11:24:23 +000028382 if test "$have_dps" = 'yes'; then
28383 DPS_DELEGATE_TRUE=
28384 DPS_DELEGATE_FALSE='#'
28385else
28386 DPS_DELEGATE_TRUE='#'
28387 DPS_DELEGATE_FALSE=
28388fi
28389
cristy3ed852e2009-09-05 21:47:34 +000028390
28391
28392
28393#
28394# Check for DJVU delegate library.
28395#
28396
28397# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028398if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028399 withval=$with_djvu; with_djvu=$withval
28400else
28401 with_djvu='yes'
28402fi
28403
28404
28405if test "$with_djvu" != 'yes'; then
28406 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28407fi
28408
28409have_djvu='no'
28410DJVU_LIBS=''
28411if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28413$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28417$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028418 failed=0
28419 passed=0
cristy8b350f62009-11-15 23:12:43 +000028420 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 +000028421if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028422 passed=`expr $passed + 1`
28423else
28424 failed=`expr $failed + 1`
28425fi
28426
28427
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028430if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028431 $as_echo_n "(cached) " >&6
28432else
28433 ac_check_lib_save_LIBS=$LIBS
28434LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028436/* end confdefs.h. */
28437
28438/* Override any GCC internal prototype to avoid an error.
28439 Use char because int might match the return type of a GCC
28440 builtin and then its argument prototype would still apply. */
28441#ifdef __cplusplus
28442extern "C"
28443#endif
28444char ddjvu_context_create ();
28445int
28446main ()
28447{
28448return ddjvu_context_create ();
28449 ;
28450 return 0;
28451}
28452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028454 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28455else
cristy8b350f62009-11-15 23:12:43 +000028456 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028457fi
cristy8b350f62009-11-15 23:12:43 +000028458rm -f core conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028460LIBS=$ac_check_lib_save_LIBS
28461fi
cristy8b350f62009-11-15 23:12:43 +000028462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028464if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028465 passed=`expr $passed + 1`
28466else
28467 failed=`expr $failed + 1`
28468fi
28469
cristy8b350f62009-11-15 23:12:43 +000028470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028471$as_echo_n "checking if DJVU package is complete... " >&6; }
28472 if test $passed -gt 0; then
28473 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28475$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028476 have_djvu='no (failed tests)'
28477 else
28478 DJVU_LIBS='-ldjvulibre'
28479 LIBS="$DJVU_LIBS $LIBS"
28480
cristy8b350f62009-11-15 23:12:43 +000028481$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028482
cristy09b53e12011-10-14 12:47:22 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28484$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028485 have_djvu='yes'
28486 fi
28487 else
cristy09b53e12011-10-14 12:47:22 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28489$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028490 fi
28491fi
cristy73bd4a52010-10-05 11:24:23 +000028492 if test "$have_djvu" = 'yes'; then
28493 DJVU_DELEGATE_TRUE=
28494 DJVU_DELEGATE_FALSE='#'
28495else
28496 DJVU_DELEGATE_TRUE='#'
28497 DJVU_DELEGATE_FALSE=
28498fi
28499
cristy3ed852e2009-09-05 21:47:34 +000028500
28501
28502
28503#
cristy430a7312010-01-21 20:44:04 +000028504# Set DejaVu font directory.
28505#
28506
28507# Check whether --with-dejavu-font-dir was given.
28508if test "${with_dejavu_font_dir+set}" = set; then :
28509 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28510else
28511 with_dejavu_font_dir='default'
28512fi
28513
28514
28515if test "$with_dejavu_font_dir" != 'default'; then
28516 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28517fi
28518
28519
28520#
cristy3ed852e2009-09-05 21:47:34 +000028521# Check for FFTW delegate library.
28522#
28523
28524# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028525if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028526 withval=$with_fftw; with_fftw=$withval
28527else
28528 with_fftw='yes'
28529fi
28530
28531
28532if test "$with_fftw" != 'yes'; then
28533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28534fi
28535
cristy81beccd2011-10-03 18:17:24 +000028536have_fftw='no'
28537FFTW_LIBS=''
28538if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028539 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28540$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28542$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28544$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028545 failed=0
28546 passed=0
28547 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28548if test "x$ac_cv_header_fftw3_h" = xyes; then :
28549 passed=`expr $passed + 1`
28550else
28551 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028552fi
28553
cristy81beccd2011-10-03 18:17:24 +000028554
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28556$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28557if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28558 $as_echo_n "(cached) " >&6
28559else
28560 ac_check_lib_save_LIBS=$LIBS
28561LIBS="-lfftw3 $LIBS"
28562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28563/* end confdefs.h. */
28564
28565/* Override any GCC internal prototype to avoid an error.
28566 Use char because int might match the return type of a GCC
28567 builtin and then its argument prototype would still apply. */
28568#ifdef __cplusplus
28569extern "C"
28570#endif
28571char fftw_execute ();
28572int
28573main ()
28574{
28575return fftw_execute ();
28576 ;
28577 return 0;
28578}
28579_ACEOF
28580if ac_fn_c_try_link "$LINENO"; then :
28581 ac_cv_lib_fftw3_fftw_execute=yes
28582else
28583 ac_cv_lib_fftw3_fftw_execute=no
28584fi
28585rm -f core conftest.err conftest.$ac_objext \
28586 conftest$ac_exeext conftest.$ac_ext
28587LIBS=$ac_check_lib_save_LIBS
28588fi
28589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28590$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28591if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28592 passed=`expr $passed + 1`
28593else
28594 failed=`expr $failed + 1`
28595fi
28596
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28598$as_echo_n "checking if FFTW package is complete... " >&6; }
28599 if test $passed -gt 0; then
28600 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28602$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028603 have_fftw='no (failed tests)'
28604 else
28605 FFTW_LIBS='-lfftw3'
28606 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028607
cristy8b350f62009-11-15 23:12:43 +000028608$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028609
cristy09b53e12011-10-14 12:47:22 +000028610 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28611$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028612 have_fftw='yes'
28613 fi
28614 else
cristy09b53e12011-10-14 12:47:22 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28616$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028617 fi
28618fi
cristy73bd4a52010-10-05 11:24:23 +000028619 if test "$have_fftw" = 'yes'; then
28620 FFTW_DELEGATE_TRUE=
28621 FFTW_DELEGATE_FALSE='#'
28622else
28623 FFTW_DELEGATE_TRUE='#'
28624 FFTW_DELEGATE_FALSE=
28625fi
28626
cristy3ed852e2009-09-05 21:47:34 +000028627
28628
28629
28630#
28631# Check for FlashPIX delegate library.
28632#
28633
28634# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028635if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028636 withval=$with_fpx; with_fpx=$withval
28637else
28638 with_fpx='yes'
28639fi
28640
28641
28642if test "$with_fpx" != 'yes'; then
28643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28644fi
28645
28646have_fpx='no'
28647FPX_LIBS=''
28648if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28650$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028652$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28654$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028655 failed=0
28656 passed=0
28657 ac_ext=cpp
28658ac_cpp='$CXXCPP $CPPFLAGS'
28659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662
28663
cristy8b350f62009-11-15 23:12:43 +000028664ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028665if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028666 passed=`expr $passed + 1`
28667else
28668 failed=`expr $failed + 1`
28669fi
28670
28671
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028674if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028675 $as_echo_n "(cached) " >&6
28676else
28677 ac_check_lib_save_LIBS=$LIBS
28678LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028680/* end confdefs.h. */
28681
28682/* Override any GCC internal prototype to avoid an error.
28683 Use char because int might match the return type of a GCC
28684 builtin and then its argument prototype would still apply. */
28685#ifdef __cplusplus
28686extern "C"
28687#endif
28688char FPX_OpenImageByFilename ();
28689int
28690main ()
28691{
28692return FPX_OpenImageByFilename ();
28693 ;
28694 return 0;
28695}
28696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028697if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028698 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28699else
cristy8b350f62009-11-15 23:12:43 +000028700 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028701fi
cristy8b350f62009-11-15 23:12:43 +000028702rm -f core conftest.err conftest.$ac_objext \
28703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028704LIBS=$ac_check_lib_save_LIBS
28705fi
cristy8b350f62009-11-15 23:12:43 +000028706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028707$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028708if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028709 passed=`expr $passed + 1`
28710else
28711 failed=`expr $failed + 1`
28712fi
28713
28714 ac_ext=c
28715ac_cpp='$CPP $CPPFLAGS'
28716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718ac_compiler_gnu=$ac_cv_c_compiler_gnu
28719
cristy8b350f62009-11-15 23:12:43 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028721$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28722 if test $passed -gt 0; then
28723 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28725$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028726 have_fpx='no (failed tests)'
28727 else
28728 FPX_LIBS='-lfpx'
28729
cristy8b350f62009-11-15 23:12:43 +000028730$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028731
cristy09b53e12011-10-14 12:47:22 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28733$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028734 have_fpx='yes'
28735 PERLMAINCC="$CXX"
28736 fi
28737 else
cristy09b53e12011-10-14 12:47:22 +000028738 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28739$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028740 fi
28741fi
cristy73bd4a52010-10-05 11:24:23 +000028742 if test "$have_fpx" = 'yes'; then
28743 FPX_DELEGATE_TRUE=
28744 FPX_DELEGATE_FALSE='#'
28745else
28746 FPX_DELEGATE_TRUE='#'
28747 FPX_DELEGATE_FALSE=
28748fi
28749
cristy3ed852e2009-09-05 21:47:34 +000028750
28751
28752
28753#
28754# Check for fontconfig delegate library.
28755#
28756
28757# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028758if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028759 withval=$with_fontconfig; with_fontconfig=$withval
28760else
28761 with_fontconfig=$have_x
28762fi
28763
28764
28765if test "$with_fontconfig" != 'yes'; then
28766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28767fi
28768
28769have_fontconfig='no'
28770FONTCONFIG_CFLAGS=""
28771FONTCONFIG_LIBS=""
28772FONTCONFIG_PKG=""
28773if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028774 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28775$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028776
28777pkg_failed=no
28778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28779$as_echo_n "checking for FONTCONFIG... " >&6; }
28780
28781if test -n "$FONTCONFIG_CFLAGS"; then
28782 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28783 elif test -n "$PKG_CONFIG"; then
28784 if test -n "$PKG_CONFIG" && \
28785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28786 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28787 ac_status=$?
28788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28789 test $ac_status = 0; }; then
28790 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28791else
28792 pkg_failed=yes
28793fi
28794 else
28795 pkg_failed=untried
28796fi
28797if test -n "$FONTCONFIG_LIBS"; then
28798 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28799 elif test -n "$PKG_CONFIG"; then
28800 if test -n "$PKG_CONFIG" && \
28801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28802 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28803 ac_status=$?
28804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28805 test $ac_status = 0; }; then
28806 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28807else
28808 pkg_failed=yes
28809fi
28810 else
28811 pkg_failed=untried
28812fi
28813
28814
28815
28816if test $pkg_failed = yes; then
28817
28818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28819 _pkg_short_errors_supported=yes
28820else
28821 _pkg_short_errors_supported=no
28822fi
28823 if test $_pkg_short_errors_supported = yes; then
28824 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28825 else
28826 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28827 fi
28828 # Put the nasty error message in config.log where it belongs
28829 echo "$FONTCONFIG_PKG_ERRORS" >&5
28830
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28832$as_echo "no" >&6; }
28833 have_fontconfig=no
28834elif test $pkg_failed = untried; then
28835 have_fontconfig=no
28836else
28837 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28838 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28840$as_echo "yes" >&6; }
28841 have_fontconfig=yes
28842fi
cristy09b53e12011-10-14 12:47:22 +000028843 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28844$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028845fi
28846
28847if test "$have_fontconfig" = 'yes'; then
28848
cristy8b350f62009-11-15 23:12:43 +000028849$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028850
cristyd09bcf92010-03-25 03:04:45 +000028851 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028852 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028853 fi
cristy3ed852e2009-09-05 21:47:34 +000028854fi
28855
cristy73bd4a52010-10-05 11:24:23 +000028856 if test "$have_fontconfig" = 'yes'; then
28857 FONTCONFIG_DELEGATE_TRUE=
28858 FONTCONFIG_DELEGATE_FALSE='#'
28859else
28860 FONTCONFIG_DELEGATE_TRUE='#'
28861 FONTCONFIG_DELEGATE_FALSE=
28862fi
28863
cristy3ed852e2009-09-05 21:47:34 +000028864
28865
28866
28867
28868#
cristy81beccd2011-10-03 18:17:24 +000028869# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028870#
28871
28872# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028873if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028874 withval=$with_freetype; with_freetype=$withval
28875else
28876 with_freetype='yes'
28877fi
28878
28879
cristy81beccd2011-10-03 18:17:24 +000028880
cristy3ed852e2009-09-05 21:47:34 +000028881if test "$with_freetype" != 'yes'; then
28882 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28883fi
28884
cristy81beccd2011-10-03 18:17:24 +000028885have_freetype='no'
28886FREETYPE_LIBS=''
28887if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028888 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28889$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28891$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28893$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028894 failed=0
28895 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028896 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028897 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028898 freetype_config=''
28899 # Allow the user to specify the location of freetype.
28900 if test "$with_freetype" != 'yes'; then
28901 if test -x "${with_freetype}/bin/freetype-config"; then
28902 freetype_config="${with_freetype}/bin/freetype-config"
28903 elif test -x "${with_freetype}"; then
28904 freetype_config=${with_freetype}
28905 fi
28906 fi
28907 if test -z "$freetype_config"; then
28908 # Extract the first word of "freetype-config", so it can be a program name with args.
28909set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28911$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028912if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028913 $as_echo_n "(cached) " >&6
28914else
cristy98ca0f52011-10-08 23:19:10 +000028915 case $freetype_config in
28916 [\\/]* | ?:[\\/]*)
28917 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28918 ;;
28919 *)
28920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028921for as_dir in $PATH
28922do
28923 IFS=$as_save_IFS
28924 test -z "$as_dir" && as_dir=.
28925 for ac_exec_ext in '' $ac_executable_extensions; do
28926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028927 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28929 break 2
28930 fi
28931done
28932 done
28933IFS=$as_save_IFS
28934
cristy98ca0f52011-10-08 23:19:10 +000028935 ;;
28936esac
cristy81beccd2011-10-03 18:17:24 +000028937fi
cristy98ca0f52011-10-08 23:19:10 +000028938freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028939if test -n "$freetype_config"; then
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28941$as_echo "$freetype_config" >&6; }
28942else
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28944$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028945fi
28946
cristy98ca0f52011-10-08 23:19:10 +000028947 fi
28948 if test -n "$freetype_config"; then
28949 freetype_prefix=`${freetype_config} --prefix`
28950 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28951 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28952 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028953 fi
28954
28955 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028957$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28958if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28959 $as_echo_n "(cached) " >&6
28960else
28961 ac_check_lib_save_LIBS=$LIBS
28962LIBS="-lfreetype $LIBS"
28963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28964/* end confdefs.h. */
28965
28966/* Override any GCC internal prototype to avoid an error.
28967 Use char because int might match the return type of a GCC
28968 builtin and then its argument prototype would still apply. */
28969#ifdef __cplusplus
28970extern "C"
28971#endif
28972char FT_Init_FreeType ();
28973int
28974main ()
28975{
28976return FT_Init_FreeType ();
28977 ;
28978 return 0;
28979}
28980_ACEOF
28981if ac_fn_c_try_link "$LINENO"; then :
28982 ac_cv_lib_freetype_FT_Init_FreeType=yes
28983else
28984 ac_cv_lib_freetype_FT_Init_FreeType=no
28985fi
28986rm -f core conftest.err conftest.$ac_objext \
28987 conftest$ac_exeext conftest.$ac_ext
28988LIBS=$ac_check_lib_save_LIBS
28989fi
28990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28991$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28992if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28993 FREETYPE_LIBS='-lfreetype'
28994fi
28995
cristy98ca0f52011-10-08 23:19:10 +000028996 if test "$FREETYPE_LIBS" != ''; then
28997 passed=`expr $passed + 1`
28998 else
28999 failed=`expr $failed + 1`
29000 LDFLAGS="$PERSIST_LDFLAGS"
29001 fi
cristy81beccd2011-10-03 18:17:24 +000029002 fi
29003
29004 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29005if test "x$ac_cv_header_ft2build_h" = xyes; then :
29006 FT2BUILD_H='#include <ft2build.h>'
29007else
29008 ft2build=''
29009fi
29010
29011
29012 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29013"
29014if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29015 have_freetype_h='yes'
29016else
29017 have_freetype_h='no'
29018fi
29019
29020
cristy98ca0f52011-10-08 23:19:10 +000029021 if test "$have_freetype_h" = 'yes'; then
29022 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029023 else
cristy98ca0f52011-10-08 23:19:10 +000029024 failed=`expr $failed + 1`
29025 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029026 fi
29027
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29029$as_echo_n "checking if FreeType package is complete... " >&6; }
29030 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029031 if test $failed -gt 0; then
29032 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29034$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029035 have_freetype='no (failed tests)'
29036 else
29037 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029038
cristy8b350f62009-11-15 23:12:43 +000029039$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029040
cristy98ca0f52011-10-08 23:19:10 +000029041 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029042
29043$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29044
cristy81beccd2011-10-03 18:17:24 +000029045 fi
cristy09b53e12011-10-14 12:47:22 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29047$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029048 have_freetype='yes'
29049 fi
cristy81beccd2011-10-03 18:17:24 +000029050 else
cristy09b53e12011-10-14 12:47:22 +000029051 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29052$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029053 fi
29054fi
cristy73bd4a52010-10-05 11:24:23 +000029055 if test "$have_freetype" = 'yes'; then
29056 FREETYPE_DELEGATE_TRUE=
29057 FREETYPE_DELEGATE_FALSE='#'
29058else
29059 FREETYPE_DELEGATE_TRUE='#'
29060 FREETYPE_DELEGATE_FALSE=
29061fi
29062
cristy3ed852e2009-09-05 21:47:34 +000029063
29064
29065
cristy3ed852e2009-09-05 21:47:34 +000029066#
29067# Check for Ghostscript library or framework.
29068#
29069# Test for iapi.h & test for gsapi_new_instance in -lgs
29070# or -framework Ghostscript
29071
29072
29073# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029074if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029075 withval=$with_gslib; with_gslib=$withval
29076else
29077 with_gslib='no'
29078fi
29079
29080
cristyb7931f12009-09-25 10:22:21 +000029081gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029082if test "$with_gslib" != 'yes'; then
29083 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29084fi
29085
29086have_gslib='no'
29087GS_LIBS=''
29088if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29090$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029092$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029093 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29094$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029095 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029096 failed=0
29097 passed=0
cristy8b350f62009-11-15 23:12:43 +000029098 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 +000029099if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 passed=`expr $passed + 1`
29101else
29102 failed=`expr $failed + 1`
29103fi
29104
29105
cristy8b350f62009-11-15 23:12:43 +000029106 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 +000029107if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029108 passed=`expr $passed + 1`
29109else
29110 failed=`expr $failed + 1`
29111fi
29112
29113
cristy73bd4a52010-10-05 11:24:23 +000029114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29115$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029116if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029117 $as_echo_n "(cached) " >&6
29118else
29119 ac_check_framework_save_LIBS=$LIBS
29120LIBS="-framework Ghostscript $LIBS"
29121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29122/* end confdefs.h. */
29123
29124/* Override any GCC internal prototype to avoid an error.
29125 Use char because int might match the return type of a GCC
29126 builtin and then its argument prototype would still apply. */
29127#ifdef __cplusplus
29128extern "C"
29129#endif
29130char gsapi_new_instance ();
29131int
29132main ()
29133{
29134return gsapi_new_instance ();
29135 ;
29136 return 0;
29137}
29138_ACEOF
29139if ac_fn_c_try_link "$LINENO"; then :
29140 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29141else
29142 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29143fi
29144rm -f core conftest.err conftest.$ac_objext \
29145 conftest$ac_exeext conftest.$ac_ext
29146LIBS=$ac_check_framework_save_LIBS
29147fi
29148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29149$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29150if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29151 framework=`expr $framework + 1`
29152else
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029155if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029156 $as_echo_n "(cached) " >&6
29157else
29158 ac_check_lib_save_LIBS=$LIBS
29159LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029161/* end confdefs.h. */
29162
29163/* Override any GCC internal prototype to avoid an error.
29164 Use char because int might match the return type of a GCC
29165 builtin and then its argument prototype would still apply. */
29166#ifdef __cplusplus
29167extern "C"
29168#endif
29169char gsapi_new_instance ();
29170int
29171main ()
29172{
29173return gsapi_new_instance ();
29174 ;
29175 return 0;
29176}
29177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029179 ac_cv_lib_gs_gsapi_new_instance=yes
29180else
cristy8b350f62009-11-15 23:12:43 +000029181 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029182fi
cristy8b350f62009-11-15 23:12:43 +000029183rm -f core conftest.err conftest.$ac_objext \
29184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029185LIBS=$ac_check_lib_save_LIBS
29186fi
cristy8b350f62009-11-15 23:12:43 +000029187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029188$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029189if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029190 passed=`expr $passed + 1`
29191else
29192 failed=`expr $failed + 1`
29193fi
cristy73bd4a52010-10-05 11:24:23 +000029194
29195fi
cristy8b350f62009-11-15 23:12:43 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029197$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29198 if test $passed -gt 0; then
29199 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29201$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029202 have_gslib='no (failed tests)'
29203 else
29204 if test $framework -gt 0; then
29205 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029206 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29208$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029209 else
cristy09b53e12011-10-14 12:47:22 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29211$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029212 GS_LIBS='-lgs'
29213 fi
29214 LIBS="$GS_LIBS $LIBS"
29215
cristy8b350f62009-11-15 23:12:43 +000029216$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029217
29218 have_gslib='yes'
29219 fi
29220 else
cristy09b53e12011-10-14 12:47:22 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29222$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029223 fi
29224fi
cristy73bd4a52010-10-05 11:24:23 +000029225 if test "$have_gslib" = 'yes'; then
29226 GS_DELEGATE_TRUE=
29227 GS_DELEGATE_FALSE='#'
29228else
29229 GS_DELEGATE_TRUE='#'
29230 GS_DELEGATE_FALSE=
29231fi
29232
cristy3ed852e2009-09-05 21:47:34 +000029233
29234
29235# Set default font search path
29236
29237# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029238if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 withval=$with_fontpath; with_fontpath=$withval
29240else
29241 with_fontpath=''
29242fi
29243
29244
29245if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29246 with_fontpath=''
29247else
29248
29249cat >>confdefs.h <<_ACEOF
29250#define MAGICK_FONT_PATH "$with_fontpath"
29251_ACEOF
29252
29253fi
29254if test "$with_fontpath=" != ''; then
29255 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29256fi
29257
29258# Set Ghostscript font directory
29259
29260# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029261if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29263else
29264 with_gs_font_dir='default'
29265fi
29266
29267
29268if test "$with_gs_font_dir" != 'default'; then
29269 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29270fi
29271
29272
29273#
29274# Check for GVC delegate library.
29275#
29276
29277# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029278if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029279 withval=$with_gvc; with_gvc=$withval
29280else
29281 with_gvc='yes'
29282fi
29283
29284
29285if test "$with_gvc" != 'yes'; then
29286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29287fi
29288
29289GVC_PKG=""
29290if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29292$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029293
29294pkg_failed=no
29295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29296$as_echo_n "checking for GVC... " >&6; }
29297
29298if test -n "$GVC_CFLAGS"; then
29299 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29300 elif test -n "$PKG_CONFIG"; then
29301 if test -n "$PKG_CONFIG" && \
29302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29303 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29304 ac_status=$?
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; then
29307 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29308else
29309 pkg_failed=yes
29310fi
29311 else
29312 pkg_failed=untried
29313fi
29314if test -n "$GVC_LIBS"; then
29315 pkg_cv_GVC_LIBS="$GVC_LIBS"
29316 elif test -n "$PKG_CONFIG"; then
29317 if test -n "$PKG_CONFIG" && \
29318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29319 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29320 ac_status=$?
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; then
29323 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29324else
29325 pkg_failed=yes
29326fi
29327 else
29328 pkg_failed=untried
29329fi
29330
29331
29332
29333if test $pkg_failed = yes; then
29334
29335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29336 _pkg_short_errors_supported=yes
29337else
29338 _pkg_short_errors_supported=no
29339fi
29340 if test $_pkg_short_errors_supported = yes; then
29341 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29342 else
29343 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29344 fi
29345 # Put the nasty error message in config.log where it belongs
29346 echo "$GVC_PKG_ERRORS" >&5
29347
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29349$as_echo "no" >&6; }
29350 have_gvc=no
29351elif test $pkg_failed = untried; then
29352 have_gvc=no
29353else
29354 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29355 GVC_LIBS=$pkg_cv_GVC_LIBS
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29357$as_echo "yes" >&6; }
29358 have_gvc=yes
29359fi
cristy09b53e12011-10-14 12:47:22 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29361$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029362fi
29363
29364if test "$have_gvc" = 'yes'; then
29365
cristy8b350f62009-11-15 23:12:43 +000029366$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029367
29368 if test "$with_modules" = 'no'; then
29369 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29370 fi
29371fi
29372
cristy73bd4a52010-10-05 11:24:23 +000029373 if test "$have_gvc" = 'yes'; then
29374 GVC_DELEGATE_TRUE=
29375 GVC_DELEGATE_FALSE='#'
29376else
29377 GVC_DELEGATE_TRUE='#'
29378 GVC_DELEGATE_FALSE=
29379fi
29380
cristy3ed852e2009-09-05 21:47:34 +000029381
29382
29383
29384
29385#
29386# Check for JBIG delegate library.
29387#
29388
29389
29390# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029391if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029392 withval=$with_jbig; with_jbig=$withval
29393else
29394 with_jbig='yes'
29395fi
29396
29397
29398have_jbig='no'
29399JBIG_LIBS=''
29400if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29402$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029404$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29406$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029407 failed=0
29408 passed=0
cristy8b350f62009-11-15 23:12:43 +000029409 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029410if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029411 passed=`expr $passed + 1`
29412else
29413 failed=`expr $failed + 1`
29414fi
29415
29416
cristy8b350f62009-11-15 23:12:43 +000029417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029418$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029419if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 $as_echo_n "(cached) " >&6
29421else
29422 ac_check_lib_save_LIBS=$LIBS
29423LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029425/* end confdefs.h. */
29426
29427/* Override any GCC internal prototype to avoid an error.
29428 Use char because int might match the return type of a GCC
29429 builtin and then its argument prototype would still apply. */
29430#ifdef __cplusplus
29431extern "C"
29432#endif
29433char jbg_dec_init ();
29434int
29435main ()
29436{
29437return jbg_dec_init ();
29438 ;
29439 return 0;
29440}
29441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029443 ac_cv_lib_jbig_jbg_dec_init=yes
29444else
cristy8b350f62009-11-15 23:12:43 +000029445 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029446fi
cristy8b350f62009-11-15 23:12:43 +000029447rm -f core conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029449LIBS=$ac_check_lib_save_LIBS
29450fi
cristy8b350f62009-11-15 23:12:43 +000029451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029452$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029453if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 passed=`expr $passed + 1`
29455else
29456 failed=`expr $failed + 1`
29457fi
29458
cristy8b350f62009-11-15 23:12:43 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029460$as_echo_n "checking if JBIG package is complete... " >&6; }
29461 if test $passed -gt 0; then
29462 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29464$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029465 have_jbig='no (failed tests)'
29466 else
29467 JBIG_LIBS='-ljbig'
29468 LIBS="$JBIG_LIBS $LIBS"
29469
cristy8b350f62009-11-15 23:12:43 +000029470$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029471
cristy09b53e12011-10-14 12:47:22 +000029472 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29473$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029474 have_jbig='yes'
29475 fi
29476 else
cristy09b53e12011-10-14 12:47:22 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29478$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029479 fi
29480fi
cristy73bd4a52010-10-05 11:24:23 +000029481 if test "$have_jbig" = 'yes'; then
29482 JBIG_DELEGATE_TRUE=
29483 JBIG_DELEGATE_FALSE='#'
29484else
29485 JBIG_DELEGATE_TRUE='#'
29486 JBIG_DELEGATE_FALSE=
29487fi
29488
cristy3ed852e2009-09-05 21:47:34 +000029489
29490
29491
29492#
29493# Check for JPEG delegate library.
29494#
29495
29496# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029497if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029498 withval=$with_jpeg; with_jpeg=$withval
29499else
29500 with_jpeg='yes'
29501fi
29502
29503
29504if test "$with_jpeg" != 'yes'; then
29505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29506fi
29507
29508have_jpeg='no'
29509JPEG_LIBS=''
29510if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29512$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029514$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029515 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29516$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029517 failed=0
29518 passed=0
cristy8b350f62009-11-15 23:12:43 +000029519 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029520if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029521 passed=`expr $passed + 1`
29522else
29523 failed=`expr $failed + 1`
29524fi
29525
29526
cristy8b350f62009-11-15 23:12:43 +000029527 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029528if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029529 passed=`expr $passed + 1`
29530else
29531 failed=`expr $failed + 1`
29532fi
29533
29534
cristy8b350f62009-11-15 23:12:43 +000029535 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029536if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029537 passed=`expr $passed + 1`
29538else
29539 failed=`expr $failed + 1`
29540fi
29541
29542
cristy8b350f62009-11-15 23:12:43 +000029543 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029544if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029545 passed=`expr $passed + 1`
29546else
29547 failed=`expr $failed + 1`
29548fi
29549
29550
cristy8b350f62009-11-15 23:12:43 +000029551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029552$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029553if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029554 $as_echo_n "(cached) " >&6
29555else
29556 ac_check_lib_save_LIBS=$LIBS
29557LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029559/* end confdefs.h. */
29560
29561/* Override any GCC internal prototype to avoid an error.
29562 Use char because int might match the return type of a GCC
29563 builtin and then its argument prototype would still apply. */
29564#ifdef __cplusplus
29565extern "C"
29566#endif
29567char jpeg_read_header ();
29568int
29569main ()
29570{
29571return jpeg_read_header ();
29572 ;
29573 return 0;
29574}
29575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029576if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029577 ac_cv_lib_jpeg_jpeg_read_header=yes
29578else
cristy8b350f62009-11-15 23:12:43 +000029579 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029580fi
cristy8b350f62009-11-15 23:12:43 +000029581rm -f core conftest.err conftest.$ac_objext \
29582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029583LIBS=$ac_check_lib_save_LIBS
29584fi
cristy8b350f62009-11-15 23:12:43 +000029585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029587if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 passed=`expr $passed + 1`
29589else
29590 failed=`expr $failed + 1`
29591fi
29592
29593
29594# Test for compatible JPEG library
29595if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029597$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029598if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029599 $as_echo_n "(cached) " >&6
29600else
cristy8b350f62009-11-15 23:12:43 +000029601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029602/* end confdefs.h. */
29603#include <stdio.h>
29604#include <stdlib.h>
29605#include <jpeglib.h>
29606
29607int
29608main ()
29609{
29610
29611#if JPEG_LIB_VERSION < 62
29612#error IJG JPEG library must be version 6b or newer!
29613#endif
29614return 0;
29615
29616 ;
29617 return 0;
29618}
29619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029620if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29622else
cristy8b350f62009-11-15 23:12:43 +000029623 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029624fi
cristy3ed852e2009-09-05 21:47:34 +000029625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626fi
cristy8b350f62009-11-15 23:12:43 +000029627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029628$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29629fi
cristy8b350f62009-11-15 23:12:43 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029631$as_echo_n "checking if JPEG package is complete... " >&6; }
29632 if test $passed -gt 0; then
29633 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29635$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029636 have_jpeg='no (failed tests)'
29637 else
29638 JPEG_LIBS='-ljpeg'
29639 LIBS="$JPEG_LIBS $LIBS"
29640
cristy8b350f62009-11-15 23:12:43 +000029641$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029642
cristy09b53e12011-10-14 12:47:22 +000029643 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29644$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029645 have_jpeg='yes'
29646 fi
29647 else
cristy09b53e12011-10-14 12:47:22 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29649$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029650 fi
29651fi
cristy73bd4a52010-10-05 11:24:23 +000029652 if test "$have_jpeg" = 'yes'; then
29653 JPEG_DELEGATE_TRUE=
29654 JPEG_DELEGATE_FALSE='#'
29655else
29656 JPEG_DELEGATE_TRUE='#'
29657 JPEG_DELEGATE_FALSE=
29658fi
29659
cristy3ed852e2009-09-05 21:47:34 +000029660
29661
29662
29663#
29664# Check for JPEG Version 2 delegate library.
29665#
29666
29667# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029668if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029669 withval=$with_jp2; with_jp2=$withval
29670else
29671 with_jp2='yes'
29672fi
29673
29674
29675if test "$with_jp2" != 'yes'; then
29676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29677fi
29678
29679have_jp2='no'
29680JP2_LIBS=''
29681if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29683$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029685$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029686 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29687$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029688 failed=0
29689 passed=0
cristy8b350f62009-11-15 23:12:43 +000029690 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 +000029691if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 passed=`expr $passed + 1`
29693else
29694 failed=`expr $failed + 1`
29695fi
29696
29697
cristy8b350f62009-11-15 23:12:43 +000029698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029700if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029701 $as_echo_n "(cached) " >&6
29702else
29703 ac_check_lib_save_LIBS=$LIBS
29704LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029706/* end confdefs.h. */
29707
29708/* Override any GCC internal prototype to avoid an error.
29709 Use char because int might match the return type of a GCC
29710 builtin and then its argument prototype would still apply. */
29711#ifdef __cplusplus
29712extern "C"
29713#endif
29714char jas_stream_fopen ();
29715int
29716main ()
29717{
29718return jas_stream_fopen ();
29719 ;
29720 return 0;
29721}
29722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029724 ac_cv_lib_jasper_jas_stream_fopen=yes
29725else
cristy8b350f62009-11-15 23:12:43 +000029726 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029727fi
cristy8b350f62009-11-15 23:12:43 +000029728rm -f core conftest.err conftest.$ac_objext \
29729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029730LIBS=$ac_check_lib_save_LIBS
29731fi
cristy8b350f62009-11-15 23:12:43 +000029732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029734if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029735 passed=`expr $passed + 1`
29736else
29737 failed=`expr $failed + 1`
29738fi
29739
cristy8b350f62009-11-15 23:12:43 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29742 if test $passed -gt 0; then
29743 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29745$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029746 have_jp2='no (failed tests)'
29747 else
29748 JP2_LIBS='-ljasper'
29749 LIBS="$JP2_LIBS $LIBS"
29750
cristy8b350f62009-11-15 23:12:43 +000029751$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029752
cristy09b53e12011-10-14 12:47:22 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29754$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029755 have_jp2='yes'
29756 fi
29757 else
cristy09b53e12011-10-14 12:47:22 +000029758 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29759$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029760 fi
29761fi
cristy73bd4a52010-10-05 11:24:23 +000029762 if test "$have_jp2" = 'yes'; then
29763 JP2_DELEGATE_TRUE=
29764 JP2_DELEGATE_FALSE='#'
29765else
29766 JP2_DELEGATE_TRUE='#'
29767 JP2_DELEGATE_FALSE=
29768fi
29769
cristy3ed852e2009-09-05 21:47:34 +000029770
29771
29772
29773#
29774# Check for LCMS delegate library.
29775#
cristy71203402010-06-18 13:12:03 +000029776# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029777
29778# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029779if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029780 withval=$with_lcms; with_lcms=$withval
29781else
29782 with_lcms='yes'
29783fi
29784
cristy71203402010-06-18 13:12:03 +000029785if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29787fi
29788
cristy71203402010-06-18 13:12:03 +000029789# Disable LCMS2.
29790
29791# Check whether --with-lcms2 was given.
29792if test "${with_lcms2+set}" = set; then :
29793 withval=$with_lcms2; with_lcms2=$withval
29794else
29795 with_lcms2='yes'
29796fi
29797
29798if test "$with_lcms2" != 'yes' ; then
29799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29800fi
29801
29802have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029803LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029804if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029805 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29806$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29808$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029809 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29810$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029811 failed=0
29812 passed=0
29813 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029814
29815 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029816 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029817if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029818 have_lcms_header='yes'
29819fi
29820
29821
29822 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029823
29824$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29825
cristy71203402010-06-18 13:12:03 +000029826 passed=`expr $passed + 1`
29827 fi
29828
29829 # Check for <lcms2/lcms2.h)
29830 if test "$have_lcms_header" != 'yes'; then
29831 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 +000029832if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029833 have_lcms_header='yes'
29834fi
29835
29836
cristy71203402010-06-18 13:12:03 +000029837 if test "$have_lcms_header" = 'yes'; then
29838 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029839
cristy71203402010-06-18 13:12:03 +000029840$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029841
cristy71203402010-06-18 13:12:03 +000029842 fi
cristyd09bcf92010-03-25 03:04:45 +000029843 fi
cristy71203402010-06-18 13:12:03 +000029844
29845 # Failed to find lcms header?
29846 if test "$have_lcms_header" != 'yes'; then
29847 failed=`expr $failed + 1`
29848 fi
29849
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29851$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029852if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029853 $as_echo_n "(cached) " >&6
29854else
29855 ac_check_lib_save_LIBS=$LIBS
29856LIBS="-llcms2 $LIBS"
29857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29858/* end confdefs.h. */
29859
29860/* Override any GCC internal prototype to avoid an error.
29861 Use char because int might match the return type of a GCC
29862 builtin and then its argument prototype would still apply. */
29863#ifdef __cplusplus
29864extern "C"
29865#endif
cristy71203402010-06-18 13:12:03 +000029866char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029867int
29868main ()
29869{
cristy71203402010-06-18 13:12:03 +000029870return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029871 ;
29872 return 0;
29873}
29874_ACEOF
29875if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029876 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029877else
cristy71203402010-06-18 13:12:03 +000029878 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029879fi
29880rm -f core conftest.err conftest.$ac_objext \
29881 conftest$ac_exeext conftest.$ac_ext
29882LIBS=$ac_check_lib_save_LIBS
29883fi
cristy71203402010-06-18 13:12:03 +000029884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29885$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029886if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029887 passed=`expr $passed + 1`
29888else
29889 failed=`expr $failed + 1`
29890fi
29891
cristy71203402010-06-18 13:12:03 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29893$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029894 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029895 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29897$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029898 have_lcms2='no (failed tests)'
29899 else
29900 LCMS_LIBS='-llcms2'
29901 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29903$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029904 have_lcms2='yes'
29905 fi
cristyd09bcf92010-03-25 03:04:45 +000029906 else
cristy09b53e12011-10-14 12:47:22 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29908$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029909 fi
29910fi
29911
cristy71203402010-06-18 13:12:03 +000029912#
29913# Check for LCMS v1 (1.11 or later)
29914#
29915if test $have_lcms2 = 'yes'; then
29916 with_lcms='no'
29917fi
29918
29919have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029920if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29922$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29924$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29926$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029927 failed=0
29928 passed=0
29929 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029930
29931 # Check for <lcms.h>
29932 if test "$have_lcms_header" != 'yes'; then
29933 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029934if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029935 have_lcms_header='yes'
29936fi
29937
29938
cristy71203402010-06-18 13:12:03 +000029939 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029940 passed=`expr $passed + 1`
29941
cristy8b350f62009-11-15 23:12:43 +000029942$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029943
cristy71203402010-06-18 13:12:03 +000029944 fi
29945 fi
29946
29947 # Check for <lcms/lcms.h>
29948 if test "$have_lcms_header" != 'yes'; then
29949 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 +000029950if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029951 have_lcms_header='yes'
29952fi
29953
29954
cristy71203402010-06-18 13:12:03 +000029955 if test "$have_lcms_header" = 'yes'; then
29956 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029957
cristy8b350f62009-11-15 23:12:43 +000029958$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029959
cristy71203402010-06-18 13:12:03 +000029960 fi
cristy3ed852e2009-09-05 21:47:34 +000029961 fi
cristy71203402010-06-18 13:12:03 +000029962
29963 # Failed to find lcms header?
29964 if test "$have_lcms_header" != 'yes'; then
29965 failed=`expr $failed + 1`
29966 fi
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29969$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029970if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029971 $as_echo_n "(cached) " >&6
29972else
29973 ac_check_lib_save_LIBS=$LIBS
29974LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029976/* end confdefs.h. */
29977
29978/* Override any GCC internal prototype to avoid an error.
29979 Use char because int might match the return type of a GCC
29980 builtin and then its argument prototype would still apply. */
29981#ifdef __cplusplus
29982extern "C"
29983#endif
cristy71203402010-06-18 13:12:03 +000029984char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029985int
29986main ()
29987{
cristy71203402010-06-18 13:12:03 +000029988return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029989 ;
29990 return 0;
29991}
29992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029993if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029994 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029995else
cristy71203402010-06-18 13:12:03 +000029996 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029997fi
cristy8b350f62009-11-15 23:12:43 +000029998rm -f core conftest.err conftest.$ac_objext \
29999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030000LIBS=$ac_check_lib_save_LIBS
30001fi
cristy71203402010-06-18 13:12:03 +000030002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30003$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030004if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030005 passed=`expr $passed + 1`
30006else
30007 failed=`expr $failed + 1`
30008fi
30009
cristy8b350f62009-11-15 23:12:43 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030011$as_echo_n "checking if LCMS package is complete... " >&6; }
30012 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030013 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030014 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30015$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030016 have_lcms='no (failed tests)'
30017 else
30018 LCMS_LIBS='-llcms'
30019 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30021$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030022 have_lcms='yes'
30023 fi
cristy3ed852e2009-09-05 21:47:34 +000030024 else
cristy09b53e12011-10-14 12:47:22 +000030025 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30026$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030027 fi
30028fi
cristy71203402010-06-18 13:12:03 +000030029
cristy73bd4a52010-10-05 11:24:23 +000030030 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30031 LCMS_DELEGATE_TRUE=
30032 LCMS_DELEGATE_FALSE='#'
30033else
30034 LCMS_DELEGATE_TRUE='#'
30035 LCMS_DELEGATE_FALSE=
30036fi
30037
cristy71203402010-06-18 13:12:03 +000030038if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30039
30040$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30041
30042fi
30043
cristy3ed852e2009-09-05 21:47:34 +000030044
30045
30046
30047#
30048# Check for the LQR (Liquid Rescale) delegate library.
30049#
30050
30051# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030052if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030053 withval=$with_lqr; with_lqr=$withval
30054else
30055 with_lqr='yes'
30056fi
30057
30058
30059if test "$with_lqr" != 'yes'; then
30060 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30061fi
30062
30063have_lqr='no'
30064LQR_CFLAGS=""
30065LQR_LIBS=""
30066LQR_PKG=""
30067if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030068 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30069$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030070
30071pkg_failed=no
30072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30073$as_echo_n "checking for LQR... " >&6; }
30074
30075if test -n "$LQR_CFLAGS"; then
30076 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30077 elif test -n "$PKG_CONFIG"; then
30078 if test -n "$PKG_CONFIG" && \
30079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30080 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30081 ac_status=$?
30082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30083 test $ac_status = 0; }; then
30084 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30085else
30086 pkg_failed=yes
30087fi
30088 else
30089 pkg_failed=untried
30090fi
30091if test -n "$LQR_LIBS"; then
30092 pkg_cv_LQR_LIBS="$LQR_LIBS"
30093 elif test -n "$PKG_CONFIG"; then
30094 if test -n "$PKG_CONFIG" && \
30095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30096 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30097 ac_status=$?
30098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30099 test $ac_status = 0; }; then
30100 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30101else
30102 pkg_failed=yes
30103fi
30104 else
30105 pkg_failed=untried
30106fi
30107
30108
30109
30110if test $pkg_failed = yes; then
30111
30112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30113 _pkg_short_errors_supported=yes
30114else
30115 _pkg_short_errors_supported=no
30116fi
30117 if test $_pkg_short_errors_supported = yes; then
30118 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30119 else
30120 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30121 fi
30122 # Put the nasty error message in config.log where it belongs
30123 echo "$LQR_PKG_ERRORS" >&5
30124
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30126$as_echo "no" >&6; }
30127 have_lqr=no
30128elif test $pkg_failed = untried; then
30129 have_lqr=no
30130else
30131 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30132 LQR_LIBS=$pkg_cv_LQR_LIBS
30133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30134$as_echo "yes" >&6; }
30135 have_lqr=yes
30136fi
cristy09b53e12011-10-14 12:47:22 +000030137 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30138$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030139fi
30140
30141if test "$have_lqr" = 'yes'; then
30142
cristy8b350f62009-11-15 23:12:43 +000030143$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030144
30145 CFLAGS="$LQR_CFLAGS $CFLAGS"
30146fi
30147
cristy73bd4a52010-10-05 11:24:23 +000030148 if test "$have_lqr" = 'yes'; then
30149 LQR_DELEGATE_TRUE=
30150 LQR_DELEGATE_FALSE='#'
30151else
30152 LQR_DELEGATE_TRUE='#'
30153 LQR_DELEGATE_FALSE=
30154fi
30155
cristy3ed852e2009-09-05 21:47:34 +000030156
30157
30158
30159
cristy81beccd2011-10-03 18:17:24 +000030160# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030161
30162# Check whether --with-lzma was given.
30163if test "${with_lzma+set}" = set; then :
30164 withval=$with_lzma; with_lzma=$withval
30165else
30166 with_lzma='yes'
30167fi
30168
cristy81beccd2011-10-03 18:17:24 +000030169if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030170 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30171fi
30172
cristyb94e5002011-11-14 13:20:10 +000030173LZMA_PKG=""
30174if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30176$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030177
30178pkg_failed=no
30179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030180$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030181
30182if test -n "$LZMA_CFLAGS"; then
30183 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30184 elif test -n "$PKG_CONFIG"; then
30185 if test -n "$PKG_CONFIG" && \
30186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30187 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30188 ac_status=$?
30189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30190 test $ac_status = 0; }; then
30191 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30192else
30193 pkg_failed=yes
30194fi
30195 else
30196 pkg_failed=untried
30197fi
30198if test -n "$LZMA_LIBS"; then
30199 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30200 elif test -n "$PKG_CONFIG"; then
30201 if test -n "$PKG_CONFIG" && \
30202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30203 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30204 ac_status=$?
30205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30206 test $ac_status = 0; }; then
30207 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30208else
30209 pkg_failed=yes
30210fi
30211 else
30212 pkg_failed=untried
30213fi
30214
30215
30216
30217if test $pkg_failed = yes; then
30218
30219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30220 _pkg_short_errors_supported=yes
30221else
30222 _pkg_short_errors_supported=no
30223fi
30224 if test $_pkg_short_errors_supported = yes; then
30225 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30226 else
30227 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30228 fi
30229 # Put the nasty error message in config.log where it belongs
30230 echo "$LZMA_PKG_ERRORS" >&5
30231
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30233$as_echo "no" >&6; }
30234 have_lzma=no
30235elif test $pkg_failed = untried; then
30236 have_lzma=no
30237else
30238 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30239 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30241$as_echo "yes" >&6; }
30242 have_lzma=yes
30243fi
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030245$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030246fi
30247
cristyb94e5002011-11-14 13:20:10 +000030248if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030249
30250$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30251
cristyb94e5002011-11-14 13:20:10 +000030252 if test "$with_modules" = 'no'; then
30253 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030254 fi
cristyfbb0ef02010-12-19 02:32:11 +000030255fi
cristyb94e5002011-11-14 13:20:10 +000030256
cristyfbb0ef02010-12-19 02:32:11 +000030257 if test "$have_lzma" = 'yes'; then
30258 LZMA_DELEGATE_TRUE=
30259 LZMA_DELEGATE_FALSE='#'
30260else
30261 LZMA_DELEGATE_TRUE='#'
30262 LZMA_DELEGATE_FALSE=
30263fi
30264
30265
30266
30267
cristyb94e5002011-11-14 13:20:10 +000030268
cristy3ed852e2009-09-05 21:47:34 +000030269#
30270# Check for the OpenEXR delegate library.
30271#
30272
30273# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030274if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030275 withval=$with_openexr; with_openexr=$withval
30276else
30277 with_openexr='yes'
30278fi
30279
30280
30281if test "$with_openexr" != 'yes'; then
30282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30283fi
30284
30285have_openexr='no'
30286OPENEXR_CFLAGS=""
30287OPENEXR_LIBS=""
30288OPENEXR_PKG=""
30289if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30291$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030292
30293pkg_failed=no
30294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30295$as_echo_n "checking for OPENEXR... " >&6; }
30296
30297if test -n "$OPENEXR_CFLAGS"; then
30298 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30299 elif test -n "$PKG_CONFIG"; then
30300 if test -n "$PKG_CONFIG" && \
30301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30302 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30303 ac_status=$?
30304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30305 test $ac_status = 0; }; then
30306 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30307else
30308 pkg_failed=yes
30309fi
30310 else
30311 pkg_failed=untried
30312fi
30313if test -n "$OPENEXR_LIBS"; then
30314 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30315 elif test -n "$PKG_CONFIG"; then
30316 if test -n "$PKG_CONFIG" && \
30317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30318 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30319 ac_status=$?
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; then
30322 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30323else
30324 pkg_failed=yes
30325fi
30326 else
30327 pkg_failed=untried
30328fi
30329
30330
30331
30332if test $pkg_failed = yes; then
30333
30334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30335 _pkg_short_errors_supported=yes
30336else
30337 _pkg_short_errors_supported=no
30338fi
30339 if test $_pkg_short_errors_supported = yes; then
30340 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30341 else
30342 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30343 fi
30344 # Put the nasty error message in config.log where it belongs
30345 echo "$OPENEXR_PKG_ERRORS" >&5
30346
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30348$as_echo "no" >&6; }
30349 have_openexr=no
30350elif test $pkg_failed = untried; then
30351 have_openexr=no
30352else
30353 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30354 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30356$as_echo "yes" >&6; }
30357 have_openexr=yes
30358fi
cristy09b53e12011-10-14 12:47:22 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30360$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030361fi
30362
30363if test "$have_openexr" = 'yes'; then
30364
cristy8b350f62009-11-15 23:12:43 +000030365$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030366
30367 if test "$with_modules" = 'no'; then
30368 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30369 fi
30370fi
30371
cristy73bd4a52010-10-05 11:24:23 +000030372 if test "$have_openexr" = 'yes'; then
30373 OPENEXR_DELEGATE_TRUE=
30374 OPENEXR_DELEGATE_FALSE='#'
30375else
30376 OPENEXR_DELEGATE_TRUE='#'
30377 OPENEXR_DELEGATE_FALSE=
30378fi
30379
cristy3ed852e2009-09-05 21:47:34 +000030380
30381
30382
30383
30384#
cristy41cbe8a2011-10-27 01:35:18 +000030385# Check for PANGO delegate library.
30386#
30387
30388# Check whether --with-pango was given.
30389if test "${with_pango+set}" = set; then :
30390 withval=$with_pango; with_pango=$withval
30391else
30392 with_pango=$have_x
30393fi
30394
30395
30396if test "$with_pango" != 'yes'; then
30397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30398fi
30399
30400have_pango='no'
30401have_pangoft2='no'
30402PANGO_CFLAGS=""
30403PANGO_LIBS=""
30404PANGO_PKG=""
30405if test "x$with_pango" = "xyes"; then
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30407$as_echo "-------------------------------------------------------------" >&6; }
30408
30409pkg_failed=no
30410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30411$as_echo_n "checking for PANGO... " >&6; }
30412
30413if test -n "$PANGO_CFLAGS"; then
30414 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30415 elif test -n "$PKG_CONFIG"; then
30416 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30418 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030419 ac_status=$?
30420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30421 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030422 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030423else
30424 pkg_failed=yes
30425fi
30426 else
30427 pkg_failed=untried
30428fi
30429if test -n "$PANGO_LIBS"; then
30430 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30431 elif test -n "$PKG_CONFIG"; then
30432 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30434 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030435 ac_status=$?
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030438 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030439else
30440 pkg_failed=yes
30441fi
30442 else
30443 pkg_failed=untried
30444fi
30445
30446
30447
30448if test $pkg_failed = yes; then
30449
30450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30451 _pkg_short_errors_supported=yes
30452else
30453 _pkg_short_errors_supported=no
30454fi
30455 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030456 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030457 else
cristy2542fc62011-12-06 17:50:25 +000030458 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030459 fi
30460 # Put the nasty error message in config.log where it belongs
30461 echo "$PANGO_PKG_ERRORS" >&5
30462
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464$as_echo "no" >&6; }
30465 have_pangoft2=no
30466elif test $pkg_failed = untried; then
30467 have_pangoft2=no
30468else
30469 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30470 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472$as_echo "yes" >&6; }
30473 have_pangoft2=yes
30474fi
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30476$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030477
30478pkg_failed=no
30479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30480$as_echo_n "checking for PANGO... " >&6; }
30481
30482if test -n "$PANGO_CFLAGS"; then
30483 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30484 elif test -n "$PKG_CONFIG"; then
30485 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30487 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030488 ac_status=$?
30489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30490 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030491 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030492else
30493 pkg_failed=yes
30494fi
30495 else
30496 pkg_failed=untried
30497fi
30498if test -n "$PANGO_LIBS"; then
30499 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30500 elif test -n "$PKG_CONFIG"; then
30501 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30503 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030504 ac_status=$?
30505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30506 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030507 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030508else
30509 pkg_failed=yes
30510fi
30511 else
30512 pkg_failed=untried
30513fi
30514
30515
30516
30517if test $pkg_failed = yes; then
30518
30519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30520 _pkg_short_errors_supported=yes
30521else
30522 _pkg_short_errors_supported=no
30523fi
30524 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030525 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030526 else
cristy2542fc62011-12-06 17:50:25 +000030527 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030528 fi
30529 # Put the nasty error message in config.log where it belongs
30530 echo "$PANGO_PKG_ERRORS" >&5
30531
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30533$as_echo "no" >&6; }
30534 have_pango=no
30535elif test $pkg_failed = untried; then
30536 have_pango=no
30537else
30538 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30539 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30541$as_echo "yes" >&6; }
30542 have_pango=yes
30543fi
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30545$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030546fi
30547
30548if test "$have_pango" = 'yes'; then
30549
30550$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30551
30552 if test "$with_modules" = 'no'; then
30553 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30554 fi
30555fi
30556
30557if test "$have_pangoft2" = 'yes'; then
30558
30559$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30560
30561 if test "$with_modules" = 'no'; then
30562 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30563 fi
30564fi
30565
30566 if test "$have_pango" = 'yes'; then
30567 PANGO_DELEGATE_TRUE=
30568 PANGO_DELEGATE_FALSE='#'
30569else
30570 PANGO_DELEGATE_TRUE='#'
30571 PANGO_DELEGATE_FALSE=
30572fi
30573
30574 if test "$have_pangoft2" = 'yes'; then
30575 PANGOFT2_DELEGATE_TRUE=
30576 PANGOFT2_DELEGATE_FALSE='#'
30577else
30578 PANGOFT2_DELEGATE_TRUE='#'
30579 PANGOFT2_DELEGATE_FALSE=
30580fi
30581
30582
30583
30584
30585
30586#
cristy3ed852e2009-09-05 21:47:34 +000030587# Check for PNG delegate library.
30588#
30589
30590# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030591if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030592 withval=$with_png; with_png=$withval
30593else
30594 with_png='yes'
30595fi
30596
30597
30598if test "$with_png" != 'yes'; then
30599 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30600fi
30601
cristy81beccd2011-10-03 18:17:24 +000030602have_png='no'
30603PNG_LIBS=''
30604
30605if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030606 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30607$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30609$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30611$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030612 failed=0
30613 passed=0
30614 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30615if test "x$ac_cv_header_png_h" = xyes; then :
30616 passed=`expr $passed + 1`
30617else
30618 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030619fi
30620
cristy81beccd2011-10-03 18:17:24 +000030621
30622
30623 if test $passed -gt 0; then
30624 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030625 if test "$have_png" = 'no' ; then
30626 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030627 pnglib='png'
30628 else
30629 pnglib="png1${var}"
30630 fi
30631
30632# Test for compatible LIBPNG library
30633 failed=0
30634 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030635 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030636 if test "${pnglib}" != 'png' ; then
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30638$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30640/* end confdefs.h. */
30641#include <stdio.h>
30642#include <stdlib.h>
30643#include <png.h>
30644
30645int
30646main ()
30647{
30648
30649#if PNG_LIBPNG_VER_MINOR != ${var}
30650#error LIBPNG library must be version 1${var}!
30651Kaboom, Kaboom
30652#endif
30653return 0;
30654
30655 ;
30656 return 0;
30657}
30658_ACEOF
30659if ac_fn_c_try_compile "$LINENO"; then :
30660 ac_cv_libpng_ok='yes'
30661else
30662 ac_cv_libpng_ok='no'
30663fi
30664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30665 if test "$ac_cv_libpng_ok" = 'yes' ; then
30666 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030667 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30668$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030669 else
30670 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030671 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30672$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030673 fi
30674 else
30675 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30677$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030678 fi
30679 fi
30680
30681 if test $passed -gt 0 -a $failed -le 0; then
30682 if test "1${var}" = '15' ; then
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30684$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30685if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30686 $as_echo_n "(cached) " >&6
30687else
30688 ac_check_lib_save_LIBS=$LIBS
30689LIBS="-lpng15 $LIBS"
30690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30691/* end confdefs.h. */
30692
30693/* Override any GCC internal prototype to avoid an error.
30694 Use char because int might match the return type of a GCC
30695 builtin and then its argument prototype would still apply. */
30696#ifdef __cplusplus
30697extern "C"
30698#endif
30699char png_get_io_ptr ();
30700int
30701main ()
30702{
30703return png_get_io_ptr ();
30704 ;
30705 return 0;
30706}
30707_ACEOF
30708if ac_fn_c_try_link "$LINENO"; then :
30709 ac_cv_lib_png15_png_get_io_ptr=yes
30710else
30711 ac_cv_lib_png15_png_get_io_ptr=no
30712fi
30713rm -f core conftest.err conftest.$ac_objext \
30714 conftest$ac_exeext conftest.$ac_ext
30715LIBS=$ac_check_lib_save_LIBS
30716fi
30717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30718$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30719if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30720 passed=`expr $passed + 1`
30721else
30722 failed=`expr $failed + 1`
30723fi
30724
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30726$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30727if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30728 $as_echo_n "(cached) " >&6
30729else
30730 ac_check_lib_save_LIBS=$LIBS
30731LIBS="-lpng15 $LIBS"
30732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30733/* end confdefs.h. */
30734
30735/* Override any GCC internal prototype to avoid an error.
30736 Use char because int might match the return type of a GCC
30737 builtin and then its argument prototype would still apply. */
30738#ifdef __cplusplus
30739extern "C"
30740#endif
30741char png_longjmp ();
30742int
30743main ()
30744{
30745return png_longjmp ();
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750if ac_fn_c_try_link "$LINENO"; then :
30751 ac_cv_lib_png15_png_longjmp=yes
30752else
30753 ac_cv_lib_png15_png_longjmp=no
30754fi
30755rm -f core conftest.err conftest.$ac_objext \
30756 conftest$ac_exeext conftest.$ac_ext
30757LIBS=$ac_check_lib_save_LIBS
30758fi
30759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30760$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30761if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30762 passed=`expr $passed + 1`
30763else
30764 failed=`expr $failed + 1`
30765fi
30766
30767 fi
30768 if test "1${var}" = '14' ; then
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30770$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30771if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30772 $as_echo_n "(cached) " >&6
30773else
30774 ac_check_lib_save_LIBS=$LIBS
30775LIBS="-lpng14 $LIBS"
30776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30777/* end confdefs.h. */
30778
30779/* Override any GCC internal prototype to avoid an error.
30780 Use char because int might match the return type of a GCC
30781 builtin and then its argument prototype would still apply. */
30782#ifdef __cplusplus
30783extern "C"
30784#endif
30785char png_get_io_ptr ();
30786int
30787main ()
30788{
30789return png_get_io_ptr ();
30790 ;
30791 return 0;
30792}
30793_ACEOF
30794if ac_fn_c_try_link "$LINENO"; then :
30795 ac_cv_lib_png14_png_get_io_ptr=yes
30796else
30797 ac_cv_lib_png14_png_get_io_ptr=no
30798fi
30799rm -f core conftest.err conftest.$ac_objext \
30800 conftest$ac_exeext conftest.$ac_ext
30801LIBS=$ac_check_lib_save_LIBS
30802fi
30803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30804$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30805if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30806 passed=`expr $passed + 1`
30807else
30808 failed=`expr $failed + 1`
30809fi
30810
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30812$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30813if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30814 $as_echo_n "(cached) " >&6
30815else
30816 ac_check_lib_save_LIBS=$LIBS
30817LIBS="-lpng14 $LIBS"
30818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30819/* end confdefs.h. */
30820
30821/* Override any GCC internal prototype to avoid an error.
30822 Use char because int might match the return type of a GCC
30823 builtin and then its argument prototype would still apply. */
30824#ifdef __cplusplus
30825extern "C"
30826#endif
30827char png_get_io_state ();
30828int
30829main ()
30830{
30831return png_get_io_state ();
30832 ;
30833 return 0;
30834}
30835_ACEOF
30836if ac_fn_c_try_link "$LINENO"; then :
30837 ac_cv_lib_png14_png_get_io_state=yes
30838else
30839 ac_cv_lib_png14_png_get_io_state=no
30840fi
30841rm -f core conftest.err conftest.$ac_objext \
30842 conftest$ac_exeext conftest.$ac_ext
30843LIBS=$ac_check_lib_save_LIBS
30844fi
30845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30846$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30847if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30848 passed=`expr $passed + 1`
30849else
30850 failed=`expr $failed + 1`
30851fi
30852
30853 fi
30854 if test "1${var}" = '12' ; then
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30856$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30857if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30858 $as_echo_n "(cached) " >&6
30859else
30860 ac_check_lib_save_LIBS=$LIBS
30861LIBS="-lpng12 $LIBS"
30862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30863/* end confdefs.h. */
30864
30865/* Override any GCC internal prototype to avoid an error.
30866 Use char because int might match the return type of a GCC
30867 builtin and then its argument prototype would still apply. */
30868#ifdef __cplusplus
30869extern "C"
30870#endif
30871char png_get_io_ptr ();
30872int
30873main ()
30874{
30875return png_get_io_ptr ();
30876 ;
30877 return 0;
30878}
30879_ACEOF
30880if ac_fn_c_try_link "$LINENO"; then :
30881 ac_cv_lib_png12_png_get_io_ptr=yes
30882else
30883 ac_cv_lib_png12_png_get_io_ptr=no
30884fi
30885rm -f core conftest.err conftest.$ac_objext \
30886 conftest$ac_exeext conftest.$ac_ext
30887LIBS=$ac_check_lib_save_LIBS
30888fi
30889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30890$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30891if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30892 passed=`expr $passed + 1`
30893else
30894 failed=`expr $failed + 1`
30895fi
30896
30897 fi
30898 if test "1${var}" = '1' ; then
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30900$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30901if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30902 $as_echo_n "(cached) " >&6
30903else
30904 ac_check_lib_save_LIBS=$LIBS
30905LIBS="-lpng $LIBS"
30906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30907/* end confdefs.h. */
30908
30909/* Override any GCC internal prototype to avoid an error.
30910 Use char because int might match the return type of a GCC
30911 builtin and then its argument prototype would still apply. */
30912#ifdef __cplusplus
30913extern "C"
30914#endif
30915char png_get_io_ptr ();
30916int
30917main ()
30918{
30919return png_get_io_ptr ();
30920 ;
30921 return 0;
30922}
30923_ACEOF
30924if ac_fn_c_try_link "$LINENO"; then :
30925 ac_cv_lib_png_png_get_io_ptr=yes
30926else
30927 ac_cv_lib_png_png_get_io_ptr=no
30928fi
30929rm -f core conftest.err conftest.$ac_objext \
30930 conftest$ac_exeext conftest.$ac_ext
30931LIBS=$ac_check_lib_save_LIBS
30932fi
30933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30934$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30935if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30936 passed=`expr $passed + 1`
30937else
30938 failed=`expr $failed + 1`
30939fi
30940
30941 fi
30942 if test $passed -gt 0 -a $failed -le 0 ; then
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30944$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30945 if test $passed -gt 0 ; then
30946 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30948$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030949 have_png='no (failed tests)'
30950 else
30951 PNG_LIBS="-l${pnglib}"
30952 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030953
cristy8b350f62009-11-15 23:12:43 +000030954$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030955
cristy09b53e12011-10-14 12:47:22 +000030956 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30957$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030958 have_png='yes'
30959 fi
30960 fi
30961 fi
30962 fi
30963 fi
30964 done
30965 fi
cristy3ed852e2009-09-05 21:47:34 +000030966fi
cristy64877302011-08-23 19:10:31 +000030967
cristy73bd4a52010-10-05 11:24:23 +000030968 if test "$have_png" = 'yes'; then
30969 PNG_DELEGATE_TRUE=
30970 PNG_DELEGATE_FALSE='#'
30971else
30972 PNG_DELEGATE_TRUE='#'
30973 PNG_DELEGATE_FALSE=
30974fi
30975
cristy3ed852e2009-09-05 21:47:34 +000030976
cristy50d3f5c2011-09-10 20:09:06 +000030977
cristy3ed852e2009-09-05 21:47:34 +000030978
30979
30980#
30981# Check for RSVG delegate library.
30982#
30983
30984# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030985if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030986 withval=$with_rsvg; with_rsvg=$withval
30987else
30988 with_rsvg=$have_x
30989fi
30990
30991
30992if test "$with_rsvg" != 'yes'; then
30993 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30994fi
30995
30996have_rsvg='no'
30997have_cairo='no'
30998RSVG_CFLAGS=""
30999RSVG_LIBS=""
31000RSVG_PKG=""
31001if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031002 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31003$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031004
31005pkg_failed=no
31006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31007$as_echo_n "checking for RSVG... " >&6; }
31008
31009if test -n "$RSVG_CFLAGS"; then
31010 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31011 elif test -n "$PKG_CONFIG"; then
31012 if test -n "$PKG_CONFIG" && \
31013 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31014 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31015 ac_status=$?
31016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31017 test $ac_status = 0; }; then
31018 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31019else
31020 pkg_failed=yes
31021fi
31022 else
31023 pkg_failed=untried
31024fi
31025if test -n "$RSVG_LIBS"; then
31026 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31027 elif test -n "$PKG_CONFIG"; then
31028 if test -n "$PKG_CONFIG" && \
31029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31030 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31031 ac_status=$?
31032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; }; then
31034 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31035else
31036 pkg_failed=yes
31037fi
31038 else
31039 pkg_failed=untried
31040fi
31041
31042
31043
31044if test $pkg_failed = yes; then
31045
31046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31047 _pkg_short_errors_supported=yes
31048else
31049 _pkg_short_errors_supported=no
31050fi
31051 if test $_pkg_short_errors_supported = yes; then
31052 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31053 else
31054 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31055 fi
31056 # Put the nasty error message in config.log where it belongs
31057 echo "$RSVG_PKG_ERRORS" >&5
31058
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31060$as_echo "no" >&6; }
31061 have_rsvg=no
31062elif test $pkg_failed = untried; then
31063 have_rsvg=no
31064else
31065 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31066 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31068$as_echo "yes" >&6; }
31069 have_rsvg=yes
31070fi
cristy09b53e12011-10-14 12:47:22 +000031071 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31072$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031073
31074pkg_failed=no
31075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31076$as_echo_n "checking for CAIRO_SVG... " >&6; }
31077
31078if test -n "$CAIRO_SVG_CFLAGS"; then
31079 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31080 elif test -n "$PKG_CONFIG"; then
31081 if test -n "$PKG_CONFIG" && \
31082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31083 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31084 ac_status=$?
31085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31086 test $ac_status = 0; }; then
31087 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31088else
31089 pkg_failed=yes
31090fi
31091 else
31092 pkg_failed=untried
31093fi
31094if test -n "$CAIRO_SVG_LIBS"; then
31095 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31096 elif test -n "$PKG_CONFIG"; then
31097 if test -n "$PKG_CONFIG" && \
31098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31099 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31100 ac_status=$?
31101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31102 test $ac_status = 0; }; then
31103 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31104else
31105 pkg_failed=yes
31106fi
31107 else
31108 pkg_failed=untried
31109fi
31110
31111
31112
31113if test $pkg_failed = yes; then
31114
31115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31116 _pkg_short_errors_supported=yes
31117else
31118 _pkg_short_errors_supported=no
31119fi
31120 if test $_pkg_short_errors_supported = yes; then
31121 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31122 else
31123 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31124 fi
31125 # Put the nasty error message in config.log where it belongs
31126 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31127
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31129$as_echo "no" >&6; }
31130 have_cairo=no
31131elif test $pkg_failed = untried; then
31132 have_cairo=no
31133else
31134 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31135 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31137$as_echo "yes" >&6; }
31138 have_cairo=yes
31139fi
cristy09b53e12011-10-14 12:47:22 +000031140 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31141$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031142fi
31143
31144if test "$have_rsvg" = 'yes'; then
31145
cristy8b350f62009-11-15 23:12:43 +000031146$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031147
31148 if test "$with_modules" = 'no'; then
31149 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31150 fi
31151fi
31152
31153if test "$have_cairo" = 'yes'; then
31154
cristy8b350f62009-11-15 23:12:43 +000031155$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031156
31157 if test "$with_modules" = 'no'; then
31158 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31159 fi
31160fi
31161
cristy73bd4a52010-10-05 11:24:23 +000031162 if test "$have_rsvg" = 'yes'; then
31163 RSVG_DELEGATE_TRUE=
31164 RSVG_DELEGATE_FALSE='#'
31165else
31166 RSVG_DELEGATE_TRUE='#'
31167 RSVG_DELEGATE_FALSE=
31168fi
31169
31170 if test "$have_cairo" = 'yes'; then
31171 CAIRO_DELEGATE_TRUE=
31172 CAIRO_DELEGATE_FALSE='#'
31173else
31174 CAIRO_DELEGATE_TRUE='#'
31175 CAIRO_DELEGATE_FALSE=
31176fi
31177
cristy3ed852e2009-09-05 21:47:34 +000031178
31179
31180
31181
31182#
31183# Check for TIFF delegate library.
31184#
31185
31186# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031187if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031188 withval=$with_tiff; with_tiff=$withval
31189else
31190 with_tiff='yes'
31191fi
31192
31193
31194if test "$with_tiff" != 'yes'; then
31195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31196fi
31197
31198have_tiff='no'
31199TIFF_LIBS=''
31200if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31202$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031204$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031205 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31206$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031207 failed=0
31208 passed=0
cristy8b350f62009-11-15 23:12:43 +000031209 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031210if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031211 passed=`expr $passed + 1`
31212else
31213 failed=`expr $failed + 1`
31214fi
31215
31216
cristy8b350f62009-11-15 23:12:43 +000031217 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031218if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031219 passed=`expr $passed + 1`
31220else
31221 failed=`expr $failed + 1`
31222fi
31223
31224
cristy8b350f62009-11-15 23:12:43 +000031225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031227if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031228 $as_echo_n "(cached) " >&6
31229else
31230 ac_check_lib_save_LIBS=$LIBS
31231LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031233/* end confdefs.h. */
31234
31235/* Override any GCC internal prototype to avoid an error.
31236 Use char because int might match the return type of a GCC
31237 builtin and then its argument prototype would still apply. */
31238#ifdef __cplusplus
31239extern "C"
31240#endif
31241char TIFFOpen ();
31242int
31243main ()
31244{
31245return TIFFOpen ();
31246 ;
31247 return 0;
31248}
31249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031251 ac_cv_lib_tiff_TIFFOpen=yes
31252else
cristy8b350f62009-11-15 23:12:43 +000031253 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031254fi
cristy8b350f62009-11-15 23:12:43 +000031255rm -f core conftest.err conftest.$ac_objext \
31256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031257LIBS=$ac_check_lib_save_LIBS
31258fi
cristy8b350f62009-11-15 23:12:43 +000031259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031260$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031261if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031262 passed=`expr $passed + 1`
31263else
31264 failed=`expr $failed + 1`
31265fi
31266
cristy8b350f62009-11-15 23:12:43 +000031267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031269if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031270 $as_echo_n "(cached) " >&6
31271else
31272 ac_check_lib_save_LIBS=$LIBS
31273LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031275/* end confdefs.h. */
31276
31277/* Override any GCC internal prototype to avoid an error.
31278 Use char because int might match the return type of a GCC
31279 builtin and then its argument prototype would still apply. */
31280#ifdef __cplusplus
31281extern "C"
31282#endif
31283char TIFFClientOpen ();
31284int
31285main ()
31286{
31287return TIFFClientOpen ();
31288 ;
31289 return 0;
31290}
31291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031293 ac_cv_lib_tiff_TIFFClientOpen=yes
31294else
cristy8b350f62009-11-15 23:12:43 +000031295 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031296fi
cristy8b350f62009-11-15 23:12:43 +000031297rm -f core conftest.err conftest.$ac_objext \
31298 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031299LIBS=$ac_check_lib_save_LIBS
31300fi
cristy8b350f62009-11-15 23:12:43 +000031301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031302$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031303if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031304 passed=`expr $passed + 1`
31305else
31306 failed=`expr $failed + 1`
31307fi
31308
cristy8b350f62009-11-15 23:12:43 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031311if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 $as_echo_n "(cached) " >&6
31313else
31314 ac_check_lib_save_LIBS=$LIBS
31315LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031317/* end confdefs.h. */
31318
31319/* Override any GCC internal prototype to avoid an error.
31320 Use char because int might match the return type of a GCC
31321 builtin and then its argument prototype would still apply. */
31322#ifdef __cplusplus
31323extern "C"
31324#endif
31325char TIFFIsByteSwapped ();
31326int
31327main ()
31328{
31329return TIFFIsByteSwapped ();
31330 ;
31331 return 0;
31332}
31333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31336else
cristy8b350f62009-11-15 23:12:43 +000031337 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031338fi
cristy8b350f62009-11-15 23:12:43 +000031339rm -f core conftest.err conftest.$ac_objext \
31340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031341LIBS=$ac_check_lib_save_LIBS
31342fi
cristy8b350f62009-11-15 23:12:43 +000031343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031345if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031346 passed=`expr $passed + 1`
31347else
31348 failed=`expr $failed + 1`
31349fi
31350
cristy8b350f62009-11-15 23:12:43 +000031351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031353if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 $as_echo_n "(cached) " >&6
31355else
31356 ac_check_lib_save_LIBS=$LIBS
31357LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031359/* end confdefs.h. */
31360
31361/* Override any GCC internal prototype to avoid an error.
31362 Use char because int might match the return type of a GCC
31363 builtin and then its argument prototype would still apply. */
31364#ifdef __cplusplus
31365extern "C"
31366#endif
31367char TIFFReadRGBATile ();
31368int
31369main ()
31370{
31371return TIFFReadRGBATile ();
31372 ;
31373 return 0;
31374}
31375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031377 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31378else
cristy8b350f62009-11-15 23:12:43 +000031379 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031380fi
cristy8b350f62009-11-15 23:12:43 +000031381rm -f core conftest.err conftest.$ac_objext \
31382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031383LIBS=$ac_check_lib_save_LIBS
31384fi
cristy8b350f62009-11-15 23:12:43 +000031385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031387if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 passed=`expr $passed + 1`
31389else
31390 failed=`expr $failed + 1`
31391fi
31392
cristy8b350f62009-11-15 23:12:43 +000031393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031394$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031395if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031396 $as_echo_n "(cached) " >&6
31397else
31398 ac_check_lib_save_LIBS=$LIBS
31399LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031401/* end confdefs.h. */
31402
31403/* Override any GCC internal prototype to avoid an error.
31404 Use char because int might match the return type of a GCC
31405 builtin and then its argument prototype would still apply. */
31406#ifdef __cplusplus
31407extern "C"
31408#endif
31409char TIFFReadRGBAStrip ();
31410int
31411main ()
31412{
31413return TIFFReadRGBAStrip ();
31414 ;
31415 return 0;
31416}
31417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031419 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31420else
cristy8b350f62009-11-15 23:12:43 +000031421 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031422fi
cristy8b350f62009-11-15 23:12:43 +000031423rm -f core conftest.err conftest.$ac_objext \
31424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031425LIBS=$ac_check_lib_save_LIBS
31426fi
cristy8b350f62009-11-15 23:12:43 +000031427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031429if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031430 passed=`expr $passed + 1`
31431else
31432 failed=`expr $failed + 1`
31433fi
31434
cristy8b350f62009-11-15 23:12:43 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking if TIFF package is complete... " >&6; }
31437 if test $passed -gt 0; then
31438 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031439 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31440$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031441 have_tiff='no (failed tests)'
31442 else
31443 TIFF_LIBS='-ltiff'
31444 LIBS="$TIFF_LIBS $LIBS"
31445
cristy8b350f62009-11-15 23:12:43 +000031446$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031447
cristy09b53e12011-10-14 12:47:22 +000031448 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31449$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031450 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031451 for ac_header in tiffconf.h
31452do :
31453 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031454if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031455 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031456#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031457_ACEOF
31458
31459fi
31460
31461done
31462
cristy8b350f62009-11-15 23:12:43 +000031463 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031464 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31465 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31466 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031467do :
31468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031471 cat >>confdefs.h <<_ACEOF
31472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31473_ACEOF
31474
31475fi
31476done
31477
31478 fi
31479 else
cristy09b53e12011-10-14 12:47:22 +000031480 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31481$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031482 fi
31483fi
cristy73bd4a52010-10-05 11:24:23 +000031484 if test "$have_tiff" = 'yes'; then
31485 TIFF_DELEGATE_TRUE=
31486 TIFF_DELEGATE_FALSE='#'
31487else
31488 TIFF_DELEGATE_TRUE='#'
31489 TIFF_DELEGATE_FALSE=
31490fi
31491
cristy3ed852e2009-09-05 21:47:34 +000031492
31493
31494
31495#
cristyb1860752011-03-14 00:27:46 +000031496# Check for WEBP delegate library.
31497#
31498
31499# Check whether --with-webp was given.
31500if test "${with_webp+set}" = set; then :
31501 withval=$with_webp; with_webp=$withval
31502else
31503 with_webp='yes'
31504fi
31505
31506
31507if test "$with_webp" != 'yes'; then
31508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31509fi
31510
31511have_webp='no'
31512WEBP_LIBS=''
31513if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031514 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31515$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31517$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031518 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31519$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031520 failed=0
31521 passed=0
31522 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31523if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31524 passed=`expr $passed + 1`
31525else
31526 failed=`expr $failed + 1`
31527fi
31528
31529
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31531$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31532if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31533 $as_echo_n "(cached) " >&6
31534else
31535 ac_check_lib_save_LIBS=$LIBS
31536LIBS="-lwebp $LIBS"
31537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31538/* end confdefs.h. */
31539
31540/* Override any GCC internal prototype to avoid an error.
31541 Use char because int might match the return type of a GCC
31542 builtin and then its argument prototype would still apply. */
31543#ifdef __cplusplus
31544extern "C"
31545#endif
31546char WebPDecodeRGB ();
31547int
31548main ()
31549{
31550return WebPDecodeRGB ();
31551 ;
31552 return 0;
31553}
31554_ACEOF
31555if ac_fn_c_try_link "$LINENO"; then :
31556 ac_cv_lib_webp_WebPDecodeRGB=yes
31557else
31558 ac_cv_lib_webp_WebPDecodeRGB=no
31559fi
31560rm -f core conftest.err conftest.$ac_objext \
31561 conftest$ac_exeext conftest.$ac_ext
31562LIBS=$ac_check_lib_save_LIBS
31563fi
31564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31565$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31566if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31567 passed=`expr $passed + 1`
31568else
31569 failed=`expr $failed + 1`
31570fi
31571
31572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31573$as_echo_n "checking if WEBP package is complete... " >&6; }
31574 if test $passed -gt 0; then
31575 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031576 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31577$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031578 have_webp='no (failed tests)'
31579 else
31580 WEBP_LIBS='-lwebp'
31581 LIBS="$WEBP_LIBS $LIBS"
31582
31583$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31584
cristy09b53e12011-10-14 12:47:22 +000031585 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31586$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031587 have_webp='yes'
31588 fi
31589 else
cristy09b53e12011-10-14 12:47:22 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31591$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031592 fi
31593fi
31594 if test "$have_webp" = 'yes'; then
31595 WEBP_DELEGATE_TRUE=
31596 WEBP_DELEGATE_FALSE='#'
31597else
31598 WEBP_DELEGATE_TRUE='#'
31599 WEBP_DELEGATE_FALSE=
31600fi
31601
31602
31603
31604
31605#
cristy3ed852e2009-09-05 21:47:34 +000031606# Set Windows font directory.
31607#
31608
31609# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031610if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031611 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31612else
31613 with_windows_font_dir=''
31614fi
31615
31616if test "$with_windows_font_dir" != '' ; then
31617 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31618fi
31619
31620
31621#
31622# Check for WMF delegate library.
31623#
31624
31625# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031626if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031627 withval=$with_wmf; with_wmf=$withval
31628else
cristy8d63d1d2010-01-06 20:38:37 +000031629 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031630fi
31631
31632
31633if test "$with_wmf" != 'yes'; then
31634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31635fi
31636
31637have_wmf='no'
31638WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031639WMF_LIBS_DEPS=''
31640OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031641if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31643$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031645$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31647$as_echo "" >&6; }
31648 have_libwmf='no'
31649 have_libwmflite='no'
31650 have_libwmf_ipa_h='no'
31651
31652 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31653"
31654if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31655 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031656fi
31657
31658
cristy03f7cf92011-12-15 01:40:41 +000031659 if test "$have_libwmf_ipa_h" = 'yes'; then
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31661$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31662if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 $as_echo_n "(cached) " >&6
31664else
31665 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031666LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031668/* end confdefs.h. */
31669
31670/* Override any GCC internal prototype to avoid an error.
31671 Use char because int might match the return type of a GCC
31672 builtin and then its argument prototype would still apply. */
31673#ifdef __cplusplus
31674extern "C"
31675#endif
cristy03f7cf92011-12-15 01:40:41 +000031676char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031677int
31678main ()
31679{
cristy03f7cf92011-12-15 01:40:41 +000031680return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031681 ;
31682 return 0;
31683}
31684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031685if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031686 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031687else
cristy03f7cf92011-12-15 01:40:41 +000031688 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031689fi
cristy8b350f62009-11-15 23:12:43 +000031690rm -f core conftest.err conftest.$ac_objext \
31691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031692LIBS=$ac_check_lib_save_LIBS
31693fi
cristy03f7cf92011-12-15 01:40:41 +000031694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31695$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31696if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31697 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031698fi
31699
cristy03f7cf92011-12-15 01:40:41 +000031700 if test "$have_libwmflite" = 'yes'; then
31701
31702$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31703
31704 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031705 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031706 have_wmf='yes'
31707 else
31708 WMF_LIBS_DEPS=''
31709 WMF_CONFIG_LIBS=`libwmf-config --libs`
31710 for lib in xml2 expat freetype jpeg png z; do
31711 testlib="-l${lib}"
31712 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31713 done
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31715$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31716if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31717 $as_echo_n "(cached) " >&6
31718else
31719 ac_check_lib_save_LIBS=$LIBS
31720LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31722/* end confdefs.h. */
31723
31724/* Override any GCC internal prototype to avoid an error.
31725 Use char because int might match the return type of a GCC
31726 builtin and then its argument prototype would still apply. */
31727#ifdef __cplusplus
31728extern "C"
31729#endif
31730char wmf_api_create ();
31731int
31732main ()
31733{
31734return wmf_api_create ();
31735 ;
31736 return 0;
31737}
31738_ACEOF
31739if ac_fn_c_try_link "$LINENO"; then :
31740 ac_cv_lib_wmf_wmf_api_create=yes
31741else
31742 ac_cv_lib_wmf_wmf_api_create=no
31743fi
31744rm -f core conftest.err conftest.$ac_objext \
31745 conftest$ac_exeext conftest.$ac_ext
31746LIBS=$ac_check_lib_save_LIBS
31747fi
31748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31749$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31750if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31751 have_libwmf='yes'
31752fi
31753
31754 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031755
cristy8b350f62009-11-15 23:12:43 +000031756$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031757
cristy03f7cf92011-12-15 01:40:41 +000031758 WMF_LIBS='-lwmf'
31759 LIBS="$WMF_LIBS $LIBS"
31760 have_wmf='yes'
31761 else
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31763$as_echo "no -- some components failed test" >&6; }
31764 have_wmf='no (failed tests)'
31765 have_wmflite='no (failed tests)'
31766 LIBS="$OLIBS"
31767 WMF_LIBS=''
31768 fi
glennrp33e524b2011-08-24 17:41:57 +000031769 fi
cristy03f7cf92011-12-15 01:40:41 +000031770 fi
31771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31772$as_echo_n "checking if WMF package is complete... " >&6; }
31773 if test "$have_wmf" = 'yes'; then
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31775$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031776 else
cristy03f7cf92011-12-15 01:40:41 +000031777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31778$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031779 fi
cristy3ed852e2009-09-05 21:47:34 +000031780fi
cristy73bd4a52010-10-05 11:24:23 +000031781 if test "$have_wmf" = 'yes'; then
31782 WMF_DELEGATE_TRUE=
31783 WMF_DELEGATE_FALSE='#'
31784else
31785 WMF_DELEGATE_TRUE='#'
31786 WMF_DELEGATE_FALSE=
31787fi
31788
cristy3ed852e2009-09-05 21:47:34 +000031789
31790
31791
cristy81beccd2011-10-03 18:17:24 +000031792
31793
cristy3ed852e2009-09-05 21:47:34 +000031794#
31795# Check for XML delegate library.
31796#
31797
31798# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031799if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 withval=$with_xml; with_xml=$withval
31801else
cristy81beccd2011-10-03 18:17:24 +000031802 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031803fi
31804
31805
cristy81beccd2011-10-03 18:17:24 +000031806if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031807 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31808fi
31809
cristy81beccd2011-10-03 18:17:24 +000031810have_xml='no'
31811XML_LIBS=''
31812if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031813 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31814$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31816$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31818$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031819 PERSIST_LDFLAGS=$LDFLAGS
31820 PERSIST_CPPFLAGS=$CPPFLAGS
31821 xml2_config=''
31822 # Extract the first word of "xml2-config", so it can be a program name with args.
31823set dummy xml2-config; ac_word=$2
31824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31825$as_echo_n "checking for $ac_word... " >&6; }
31826if ${ac_cv_path_xml2_config+:} false; then :
31827 $as_echo_n "(cached) " >&6
31828else
31829 case $xml2_config in
31830 [\\/]* | ?:[\\/]*)
31831 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31832 ;;
31833 *)
31834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31835for as_dir in $PATH
31836do
31837 IFS=$as_save_IFS
31838 test -z "$as_dir" && as_dir=.
31839 for ac_exec_ext in '' $ac_executable_extensions; do
31840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31841 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31843 break 2
31844 fi
31845done
31846 done
31847IFS=$as_save_IFS
31848
31849 ;;
31850esac
31851fi
31852xml2_config=$ac_cv_path_xml2_config
31853if test -n "$xml2_config"; then
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31855$as_echo "$xml2_config" >&6; }
31856else
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31858$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031859fi
31860
cristy81beccd2011-10-03 18:17:24 +000031861 if test -n "$xml2_config"; then
31862 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31863 # the shared library installed under /usr/lib, whereas the package
31864 # installs itself under $prefix/libxml and $prefix/lib.
31865 xml2_prefix=`xml2-config --prefix`
31866 if test -d "${xml2_prefix}/include/libxml2"; then
31867 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31868 fi
31869 if test "${xml2_prefix}" != '/usr'; then
31870 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31871 fi
31872 fi
31873 failed=0
31874 passed=0
31875 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31876if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31877 passed=`expr $passed + 1`
31878else
31879 failed=`expr $failed + 1`
31880fi
31881
31882
31883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31884$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31885if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31886 $as_echo_n "(cached) " >&6
31887else
31888 ac_check_lib_save_LIBS=$LIBS
31889LIBS="-lxml2 $LIBS"
31890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31891/* end confdefs.h. */
31892
31893/* Override any GCC internal prototype to avoid an error.
31894 Use char because int might match the return type of a GCC
31895 builtin and then its argument prototype would still apply. */
31896#ifdef __cplusplus
31897extern "C"
31898#endif
31899char xmlSAXVersion ();
31900int
31901main ()
31902{
31903return xmlSAXVersion ();
31904 ;
31905 return 0;
31906}
31907_ACEOF
31908if ac_fn_c_try_link "$LINENO"; then :
31909 ac_cv_lib_xml2_xmlSAXVersion=yes
31910else
31911 ac_cv_lib_xml2_xmlSAXVersion=no
31912fi
31913rm -f core conftest.err conftest.$ac_objext \
31914 conftest$ac_exeext conftest.$ac_ext
31915LIBS=$ac_check_lib_save_LIBS
31916fi
31917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31918$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31919if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31920 passed=`expr $passed + 1`
31921else
31922 failed=`expr $failed + 1`
31923fi
31924
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31926$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31927if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31928 $as_echo_n "(cached) " >&6
31929else
31930 ac_check_lib_save_LIBS=$LIBS
31931LIBS="-lxml2 $LIBS"
31932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31933/* end confdefs.h. */
31934
31935/* Override any GCC internal prototype to avoid an error.
31936 Use char because int might match the return type of a GCC
31937 builtin and then its argument prototype would still apply. */
31938#ifdef __cplusplus
31939extern "C"
31940#endif
31941char xmlParseChunk ();
31942int
31943main ()
31944{
31945return xmlParseChunk ();
31946 ;
31947 return 0;
31948}
31949_ACEOF
31950if ac_fn_c_try_link "$LINENO"; then :
31951 ac_cv_lib_xml2_xmlParseChunk=yes
31952else
31953 ac_cv_lib_xml2_xmlParseChunk=no
31954fi
31955rm -f core conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
31957LIBS=$ac_check_lib_save_LIBS
31958fi
31959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31960$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31961if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31962 passed=`expr $passed + 1`
31963else
31964 failed=`expr $failed + 1`
31965fi
31966
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31968$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31969if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31970 $as_echo_n "(cached) " >&6
31971else
31972 ac_check_lib_save_LIBS=$LIBS
31973LIBS="-lxml2 $LIBS"
31974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31975/* end confdefs.h. */
31976
31977/* Override any GCC internal prototype to avoid an error.
31978 Use char because int might match the return type of a GCC
31979 builtin and then its argument prototype would still apply. */
31980#ifdef __cplusplus
31981extern "C"
31982#endif
31983char xmlCreatePushParserCtxt ();
31984int
31985main ()
31986{
31987return xmlCreatePushParserCtxt ();
31988 ;
31989 return 0;
31990}
31991_ACEOF
31992if ac_fn_c_try_link "$LINENO"; then :
31993 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31994else
31995 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31996fi
31997rm -f core conftest.err conftest.$ac_objext \
31998 conftest$ac_exeext conftest.$ac_ext
31999LIBS=$ac_check_lib_save_LIBS
32000fi
32001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32002$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32003if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32004 passed=`expr $passed + 1`
32005else
32006 failed=`expr $failed + 1`
32007fi
32008
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32010$as_echo_n "checking if XML package is complete... " >&6; }
32011 if test $passed -gt 0; then
32012 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32014$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032015 have_xml='no (failed tests)'
32016 LDFLAGS="$PERSIST_LDFLAGS"
32017 CPPFLAGS="$PERSIST_CPPFLAGS"
32018 else
32019 XML_LIBS='-lxml2'
32020 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032021
cristy8b350f62009-11-15 23:12:43 +000032022$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032023
cristy09b53e12011-10-14 12:47:22 +000032024 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32025$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032026 have_xml='yes'
32027 fi
32028 else
cristy09b53e12011-10-14 12:47:22 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32030$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032031 fi
32032fi
cristy73bd4a52010-10-05 11:24:23 +000032033 if test "$have_xml" = 'yes'; then
32034 XML_DELEGATE_TRUE=
32035 XML_DELEGATE_FALSE='#'
32036else
32037 XML_DELEGATE_TRUE='#'
32038 XML_DELEGATE_FALSE=
32039fi
32040
cristy3ed852e2009-09-05 21:47:34 +000032041
32042
32043
32044# Substitute compiler name to build/link PerlMagick
32045#
32046
32047
32048#
32049# Configure install Paths
32050#
cristy7def36a2011-10-28 19:04:41 +000032051
cristy2a11bef2011-10-28 18:33:11 +000032052# Path to ImageMagick header files
32053INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032054INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32055DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032056case "${build_os}" in
32057 mingw* )
32058 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32059 ;;
32060esac
32061
32062cat >>confdefs.h <<_ACEOF
32063#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32064_ACEOF
32065
32066
cristy3ed852e2009-09-05 21:47:34 +000032067
32068# Subdirectory under lib to place ImageMagick lib files
32069LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32070
32071cat >>confdefs.h <<_ACEOF
32072#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32073_ACEOF
32074
32075
32076# Path to ImageMagick bin directory
32077EXECUTABLE_PATH="${BIN_DIR}"
32078DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32079case "${build_os}" in
32080 mingw* )
32081 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32082 ;;
32083esac
32084
32085cat >>confdefs.h <<_ACEOF
32086#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32087_ACEOF
32088
32089
32090
32091# Path to ImageMagick lib
32092LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32093DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32094case "${build_os}" in
32095 mingw* )
32096 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32097 ;;
32098esac
32099
32100cat >>confdefs.h <<_ACEOF
32101#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32102_ACEOF
32103
32104
32105
cristy3ed852e2009-09-05 21:47:34 +000032106#
32107# Subdirectory under lib to place ImageMagick coder module files
32108CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32109
32110cat >>confdefs.h <<_ACEOF
32111#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32112_ACEOF
32113
32114CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32115DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32116case "${build_os}" in
32117 mingw* )
32118 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32119 ;;
32120esac
32121
32122cat >>confdefs.h <<_ACEOF
32123#define CODER_PATH "$DEFINE_CODER_PATH"
32124_ACEOF
32125
32126
32127
32128#
32129# Subdirectory under lib to place ImageMagick filter module files
32130FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32131
32132cat >>confdefs.h <<_ACEOF
32133#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32134_ACEOF
32135
32136FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32137DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32138case "${build_os}" in
32139 mingw* )
32140 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32141 ;;
32142esac
32143
32144cat >>confdefs.h <<_ACEOF
32145#define FILTER_PATH "$DEFINE_FILTER_PATH"
32146_ACEOF
32147
32148
32149
32150#
32151# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032152DOCUMENTATION_RELATIVE_PATH=""
32153DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32154DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032155case "${build_os}" in
32156 mingw* )
32157 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32158 ;;
32159esac
32160
32161cat >>confdefs.h <<_ACEOF
32162#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32163_ACEOF
32164
32165
32166
cristy2a11bef2011-10-28 18:33:11 +000032167# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032168CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032169
32170cat >>confdefs.h <<_ACEOF
32171#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32172_ACEOF
32173
cristy7def36a2011-10-28 19:04:41 +000032174CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032175DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32176case "${build_os}" in
32177 mingw* )
32178 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32179 ;;
32180esac
32181
32182cat >>confdefs.h <<_ACEOF
32183#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32184_ACEOF
32185
32186
32187
cristy2a11bef2011-10-28 18:33:11 +000032188# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032189SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032190
32191cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032192#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032193_ACEOF
32194
cristy670aa3c2011-11-03 00:54:00 +000032195SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032196DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032197case "${build_os}" in
32198 mingw* )
cristy4f820712011-04-01 12:35:43 +000032199 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032200 ;;
32201esac
32202
32203cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032204#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032205_ACEOF
32206
32207
32208
cristy408ebcd2011-11-14 01:36:57 +000032209# Subdirectory to place architecture-dependent configuration files
32210SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032211
32212cat >>confdefs.h <<_ACEOF
32213#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32214_ACEOF
32215
cristy408ebcd2011-11-14 01:36:57 +000032216SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32217DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032218case "${build_os}" in
32219 mingw* )
32220 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32221 ;;
32222esac
32223
32224cat >>confdefs.h <<_ACEOF
32225#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32226_ACEOF
32227
32228
32229
cristy3ed852e2009-09-05 21:47:34 +000032230#
32231# program_transform_name is formed for use in a Makefile, so create a
32232# modified version for use in a shell script.
32233configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32234
32235# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032236{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32237$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032240{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32241$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032242AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032243BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032244BZIPDelegateDefault='bzip2'
32245BrowseDelegateDefault='xdg-open'
32246CGMDecodeDelegateDefault='ralcgm'
32247CatDelegateDefault='cat'
32248DNGDecodeDelegateDefault='ufraw-batch'
32249GVCDecodeDelegateDefault='dot'
32250DVIDecodeDelegateDefault='dvips'
32251EchoDelegateDefault='echo'
32252EditorDelegateDefault='xterm'
32253FIGDecodeDelegateDefault='fig2dev'
32254ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32255DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32256MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32257GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032258HPGLDecodeDelegateDefault='hp2xx'
32259HTMLDecodeDelegateDefault='html2ps'
32260ILBMDecodeDelegateDefault='ilbmtoppm'
32261ILBMEncodeDelegateDefault='ppmtoilbm'
32262LPDelegateDefault='lp'
32263LPRDelegateDefault='lpr'
32264LZWDecodeDelegateDefault='uncompress'
32265LZWEncodeDelegateDefault='compress'
32266LaunchDelegateDefault='gimp'
32267MANDelegateDefault='groff'
32268MPEGDecodeDelegateDefault='ffmpeg'
32269MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032270MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032271MVDelegateDefault='mv'
32272PCLDelegateDefault='pcl6'
32273PGPDecodeDelegateDefault='pgpv'
32274POVDelegateDefault='povray'
32275if test "$native_win32_build" = 'yes'; then
32276 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032277elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032278 PSDelegateDefault='gsc'
32279else
32280 PSDelegateDefault='gs'
32281fi
32282RLEEncodeDelegateDefault='rawtorle'
32283RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032284RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032285SCANDecodeDelegateDefault='scanimage'
32286TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032287UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032288WMFDecodeDelegateDefault='wmf2eps'
32289WWWDecodeDelegateDefault='curl'
32290XPSDelegateDefault='gxps'
32291ZipDelegateDefault='gzip'
32292
32293# Search for delegates
32294# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32295set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032298if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032299 $as_echo_n "(cached) " >&6
32300else
32301 case $AutotraceDecodeDelegate in
32302 [\\/]* | ?:[\\/]*)
32303 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32304 ;;
32305 *)
32306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32307for as_dir in $PATH
32308do
32309 IFS=$as_save_IFS
32310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32313 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315 break 2
32316 fi
32317done
cristy8b350f62009-11-15 23:12:43 +000032318 done
cristy3ed852e2009-09-05 21:47:34 +000032319IFS=$as_save_IFS
32320
32321 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32322 ;;
32323esac
32324fi
32325AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32326if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032328$as_echo "$AutotraceDecodeDelegate" >&6; }
32329else
cristy8b350f62009-11-15 23:12:43 +000032330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032331$as_echo "no" >&6; }
32332fi
32333
32334
cristy3ed852e2009-09-05 21:47:34 +000032335# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32336set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032339if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032340 $as_echo_n "(cached) " >&6
32341else
32342 case $BlenderDecodeDelegate in
32343 [\\/]* | ?:[\\/]*)
32344 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32345 ;;
32346 *)
32347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348for as_dir in $PATH
32349do
32350 IFS=$as_save_IFS
32351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32354 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356 break 2
32357 fi
32358done
cristy8b350f62009-11-15 23:12:43 +000032359 done
cristy3ed852e2009-09-05 21:47:34 +000032360IFS=$as_save_IFS
32361
32362 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32363 ;;
32364esac
32365fi
32366BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32367if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032369$as_echo "$BlenderDecodeDelegate" >&6; }
32370else
cristy8b350f62009-11-15 23:12:43 +000032371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032372$as_echo "no" >&6; }
32373fi
32374
32375
32376# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32377set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032380if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032381 $as_echo_n "(cached) " >&6
32382else
32383 case $BZIPDelegate in
32384 [\\/]* | ?:[\\/]*)
32385 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32386 ;;
32387 *)
32388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32389for as_dir in $PATH
32390do
32391 IFS=$as_save_IFS
32392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32395 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397 break 2
32398 fi
32399done
cristy8b350f62009-11-15 23:12:43 +000032400 done
cristy3ed852e2009-09-05 21:47:34 +000032401IFS=$as_save_IFS
32402
32403 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32404 ;;
32405esac
32406fi
32407BZIPDelegate=$ac_cv_path_BZIPDelegate
32408if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "$BZIPDelegate" >&6; }
32411else
cristy8b350f62009-11-15 23:12:43 +000032412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032413$as_echo "no" >&6; }
32414fi
32415
32416
32417# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32418set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032421if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 $as_echo_n "(cached) " >&6
32423else
32424 case $BrowseDelegate in
32425 [\\/]* | ?:[\\/]*)
32426 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32427 ;;
32428 *)
32429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32430for as_dir in $PATH
32431do
32432 IFS=$as_save_IFS
32433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32436 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438 break 2
32439 fi
32440done
cristy8b350f62009-11-15 23:12:43 +000032441 done
cristy3ed852e2009-09-05 21:47:34 +000032442IFS=$as_save_IFS
32443
32444 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32445 ;;
32446esac
32447fi
32448BrowseDelegate=$ac_cv_path_BrowseDelegate
32449if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "$BrowseDelegate" >&6; }
32452else
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo "no" >&6; }
32455fi
32456
32457
32458# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32459set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032462if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032463 $as_echo_n "(cached) " >&6
32464else
32465 case $CGMDecodeDelegate in
32466 [\\/]* | ?:[\\/]*)
32467 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32468 ;;
32469 *)
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471for as_dir in $PATH
32472do
32473 IFS=$as_save_IFS
32474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32477 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479 break 2
32480 fi
32481done
cristy8b350f62009-11-15 23:12:43 +000032482 done
cristy3ed852e2009-09-05 21:47:34 +000032483IFS=$as_save_IFS
32484
32485 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32486 ;;
32487esac
32488fi
32489CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32490if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "$CGMDecodeDelegate" >&6; }
32493else
cristy8b350f62009-11-15 23:12:43 +000032494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo "no" >&6; }
32496fi
32497
32498
32499# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32500set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032503if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032504 $as_echo_n "(cached) " >&6
32505else
32506 case $CatDelegate in
32507 [\\/]* | ?:[\\/]*)
32508 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32509 ;;
32510 *)
32511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32512for as_dir in $PATH
32513do
32514 IFS=$as_save_IFS
32515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32518 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520 break 2
32521 fi
32522done
cristy8b350f62009-11-15 23:12:43 +000032523 done
cristy3ed852e2009-09-05 21:47:34 +000032524IFS=$as_save_IFS
32525
32526 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32527 ;;
32528esac
32529fi
32530CatDelegate=$ac_cv_path_CatDelegate
32531if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "$CatDelegate" >&6; }
32534else
cristy8b350f62009-11-15 23:12:43 +000032535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032536$as_echo "no" >&6; }
32537fi
32538
32539
32540# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32541set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032544if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032545 $as_echo_n "(cached) " >&6
32546else
32547 case $DNGDecodeDelegate in
32548 [\\/]* | ?:[\\/]*)
32549 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32550 ;;
32551 *)
32552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32553for as_dir in $PATH
32554do
32555 IFS=$as_save_IFS
32556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32559 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561 break 2
32562 fi
32563done
cristy8b350f62009-11-15 23:12:43 +000032564 done
cristy3ed852e2009-09-05 21:47:34 +000032565IFS=$as_save_IFS
32566
32567 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32568 ;;
32569esac
32570fi
32571DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32572if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "$DNGDecodeDelegate" >&6; }
32575else
cristy8b350f62009-11-15 23:12:43 +000032576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032577$as_echo "no" >&6; }
32578fi
32579
32580
32581# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32582set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032585if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032586 $as_echo_n "(cached) " >&6
32587else
32588 case $GVCDecodeDelegate in
32589 [\\/]* | ?:[\\/]*)
32590 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32591 ;;
32592 *)
32593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32594for as_dir in $PATH
32595do
32596 IFS=$as_save_IFS
32597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32600 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602 break 2
32603 fi
32604done
cristy8b350f62009-11-15 23:12:43 +000032605 done
cristy3ed852e2009-09-05 21:47:34 +000032606IFS=$as_save_IFS
32607
32608 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32609 ;;
32610esac
32611fi
32612GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32613if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "$GVCDecodeDelegate" >&6; }
32616else
cristy8b350f62009-11-15 23:12:43 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo "no" >&6; }
32619fi
32620
32621
32622# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32623set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032626if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032627 $as_echo_n "(cached) " >&6
32628else
32629 case $DVIDecodeDelegate in
32630 [\\/]* | ?:[\\/]*)
32631 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32632 ;;
32633 *)
32634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32635for as_dir in $PATH
32636do
32637 IFS=$as_save_IFS
32638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32641 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643 break 2
32644 fi
32645done
cristy8b350f62009-11-15 23:12:43 +000032646 done
cristy3ed852e2009-09-05 21:47:34 +000032647IFS=$as_save_IFS
32648
32649 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32650 ;;
32651esac
32652fi
32653DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32654if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$DVIDecodeDelegate" >&6; }
32657else
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "no" >&6; }
32660fi
32661
32662
32663# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32664set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032667if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032668 $as_echo_n "(cached) " >&6
32669else
32670 case $EchoDelegate in
32671 [\\/]* | ?:[\\/]*)
32672 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32673 ;;
32674 *)
32675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32676for as_dir in $PATH
32677do
32678 IFS=$as_save_IFS
32679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32682 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684 break 2
32685 fi
32686done
cristy8b350f62009-11-15 23:12:43 +000032687 done
cristy3ed852e2009-09-05 21:47:34 +000032688IFS=$as_save_IFS
32689
32690 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32691 ;;
32692esac
32693fi
32694EchoDelegate=$ac_cv_path_EchoDelegate
32695if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032697$as_echo "$EchoDelegate" >&6; }
32698else
cristy8b350f62009-11-15 23:12:43 +000032699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032700$as_echo "no" >&6; }
32701fi
32702
32703
32704# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32705set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032708if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032709 $as_echo_n "(cached) " >&6
32710else
32711 case $EditorDelegate in
32712 [\\/]* | ?:[\\/]*)
32713 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32714 ;;
32715 *)
32716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32717for as_dir in $PATH
32718do
32719 IFS=$as_save_IFS
32720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32723 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725 break 2
32726 fi
32727done
cristy8b350f62009-11-15 23:12:43 +000032728 done
cristy3ed852e2009-09-05 21:47:34 +000032729IFS=$as_save_IFS
32730
32731 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32732 ;;
32733esac
32734fi
32735EditorDelegate=$ac_cv_path_EditorDelegate
32736if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo "$EditorDelegate" >&6; }
32739else
cristy8b350f62009-11-15 23:12:43 +000032740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo "no" >&6; }
32742fi
32743
32744
32745# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32746set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032749if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032750 $as_echo_n "(cached) " >&6
32751else
32752 case $FIGDecodeDelegate in
32753 [\\/]* | ?:[\\/]*)
32754 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32755 ;;
32756 *)
32757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32758for as_dir in $PATH
32759do
32760 IFS=$as_save_IFS
32761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32764 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766 break 2
32767 fi
32768done
cristy8b350f62009-11-15 23:12:43 +000032769 done
cristy3ed852e2009-09-05 21:47:34 +000032770IFS=$as_save_IFS
32771
32772 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32773 ;;
32774esac
32775fi
32776FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32777if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032779$as_echo "$FIGDecodeDelegate" >&6; }
32780else
cristy8b350f62009-11-15 23:12:43 +000032781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo "no" >&6; }
32783fi
32784
32785
32786# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32787set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032790if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032791 $as_echo_n "(cached) " >&6
32792else
32793 case $ConvertDelegate in
32794 [\\/]* | ?:[\\/]*)
32795 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32796 ;;
32797 *)
32798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32799for as_dir in $PATH
32800do
32801 IFS=$as_save_IFS
32802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32805 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807 break 2
32808 fi
32809done
cristy8b350f62009-11-15 23:12:43 +000032810 done
cristy3ed852e2009-09-05 21:47:34 +000032811IFS=$as_save_IFS
32812
32813 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32814 ;;
32815esac
32816fi
32817ConvertDelegate=$ac_cv_path_ConvertDelegate
32818if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032820$as_echo "$ConvertDelegate" >&6; }
32821else
cristy8b350f62009-11-15 23:12:43 +000032822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo "no" >&6; }
32824fi
32825
32826
32827# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32828set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032831if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032832 $as_echo_n "(cached) " >&6
32833else
32834 case $DisplayDelegate in
32835 [\\/]* | ?:[\\/]*)
32836 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32837 ;;
32838 *)
32839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32840for as_dir in $PATH
32841do
32842 IFS=$as_save_IFS
32843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32846 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848 break 2
32849 fi
32850done
cristy8b350f62009-11-15 23:12:43 +000032851 done
cristy3ed852e2009-09-05 21:47:34 +000032852IFS=$as_save_IFS
32853
32854 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32855 ;;
32856esac
32857fi
32858DisplayDelegate=$ac_cv_path_DisplayDelegate
32859if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861$as_echo "$DisplayDelegate" >&6; }
32862else
cristy8b350f62009-11-15 23:12:43 +000032863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo "no" >&6; }
32865fi
32866
32867
32868# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32869set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032872if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032873 $as_echo_n "(cached) " >&6
32874else
32875 case $MogrifyDelegate in
32876 [\\/]* | ?:[\\/]*)
32877 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32878 ;;
32879 *)
32880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32881for as_dir in $PATH
32882do
32883 IFS=$as_save_IFS
32884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32887 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889 break 2
32890 fi
32891done
cristy8b350f62009-11-15 23:12:43 +000032892 done
cristy3ed852e2009-09-05 21:47:34 +000032893IFS=$as_save_IFS
32894
32895 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32896 ;;
32897esac
32898fi
32899MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32900if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo "$MogrifyDelegate" >&6; }
32903else
cristy8b350f62009-11-15 23:12:43 +000032904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905$as_echo "no" >&6; }
32906fi
32907
32908
32909# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32910set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032913if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032914 $as_echo_n "(cached) " >&6
32915else
32916 case $GnuplotDecodeDelegate in
32917 [\\/]* | ?:[\\/]*)
32918 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32919 ;;
32920 *)
32921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32922for as_dir in $PATH
32923do
32924 IFS=$as_save_IFS
32925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32928 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930 break 2
32931 fi
32932done
cristy8b350f62009-11-15 23:12:43 +000032933 done
cristy3ed852e2009-09-05 21:47:34 +000032934IFS=$as_save_IFS
32935
32936 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32937 ;;
32938esac
32939fi
32940GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32941if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo "$GnuplotDecodeDelegate" >&6; }
32944else
cristy8b350f62009-11-15 23:12:43 +000032945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946$as_echo "no" >&6; }
32947fi
32948
32949
cristy3ed852e2009-09-05 21:47:34 +000032950# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32951set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032954if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032955 $as_echo_n "(cached) " >&6
32956else
32957 case $HPGLDecodeDelegate in
32958 [\\/]* | ?:[\\/]*)
32959 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32960 ;;
32961 *)
32962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32963for as_dir in $PATH
32964do
32965 IFS=$as_save_IFS
32966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32969 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971 break 2
32972 fi
32973done
cristy8b350f62009-11-15 23:12:43 +000032974 done
cristy3ed852e2009-09-05 21:47:34 +000032975IFS=$as_save_IFS
32976
32977 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32978 ;;
32979esac
32980fi
32981HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32982if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "$HPGLDecodeDelegate" >&6; }
32985else
cristy8b350f62009-11-15 23:12:43 +000032986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987$as_echo "no" >&6; }
32988fi
32989
32990
32991# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32992set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032995if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032996 $as_echo_n "(cached) " >&6
32997else
32998 case $HTMLDecodeDelegate in
32999 [\\/]* | ?:[\\/]*)
33000 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33001 ;;
33002 *)
33003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004for as_dir in $PATH
33005do
33006 IFS=$as_save_IFS
33007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33010 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012 break 2
33013 fi
33014done
cristy8b350f62009-11-15 23:12:43 +000033015 done
cristy3ed852e2009-09-05 21:47:34 +000033016IFS=$as_save_IFS
33017
33018 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33019 ;;
33020esac
33021fi
33022HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33023if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo "$HTMLDecodeDelegate" >&6; }
33026else
cristy8b350f62009-11-15 23:12:43 +000033027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028$as_echo "no" >&6; }
33029fi
33030
33031
33032# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33033set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033036if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033037 $as_echo_n "(cached) " >&6
33038else
33039 case $ILBMDecodeDelegate in
33040 [\\/]* | ?:[\\/]*)
33041 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33042 ;;
33043 *)
33044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33045for as_dir in $PATH
33046do
33047 IFS=$as_save_IFS
33048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33051 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053 break 2
33054 fi
33055done
cristy8b350f62009-11-15 23:12:43 +000033056 done
cristy3ed852e2009-09-05 21:47:34 +000033057IFS=$as_save_IFS
33058
33059 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33060 ;;
33061esac
33062fi
33063ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33064if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$ILBMDecodeDelegate" >&6; }
33067else
cristy8b350f62009-11-15 23:12:43 +000033068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069$as_echo "no" >&6; }
33070fi
33071
33072
33073# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33074set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033077if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033078 $as_echo_n "(cached) " >&6
33079else
33080 case $ILBMEncodeDelegate in
33081 [\\/]* | ?:[\\/]*)
33082 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33083 ;;
33084 *)
33085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33086for as_dir in $PATH
33087do
33088 IFS=$as_save_IFS
33089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33092 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094 break 2
33095 fi
33096done
cristy8b350f62009-11-15 23:12:43 +000033097 done
cristy3ed852e2009-09-05 21:47:34 +000033098IFS=$as_save_IFS
33099
33100 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33101 ;;
33102esac
33103fi
33104ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33105if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107$as_echo "$ILBMEncodeDelegate" >&6; }
33108else
cristy8b350f62009-11-15 23:12:43 +000033109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110$as_echo "no" >&6; }
33111fi
33112
33113
33114# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33115set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033118if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033119 $as_echo_n "(cached) " >&6
33120else
33121 case $LPDelegate in
33122 [\\/]* | ?:[\\/]*)
33123 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33124 ;;
33125 *)
33126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33127for as_dir in $PATH
33128do
33129 IFS=$as_save_IFS
33130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33133 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135 break 2
33136 fi
33137done
cristy8b350f62009-11-15 23:12:43 +000033138 done
cristy3ed852e2009-09-05 21:47:34 +000033139IFS=$as_save_IFS
33140
33141 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33142 ;;
33143esac
33144fi
33145LPDelegate=$ac_cv_path_LPDelegate
33146if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo "$LPDelegate" >&6; }
33149else
cristy8b350f62009-11-15 23:12:43 +000033150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151$as_echo "no" >&6; }
33152fi
33153
33154
33155# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33156set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033159if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033160 $as_echo_n "(cached) " >&6
33161else
33162 case $LPRDelegate in
33163 [\\/]* | ?:[\\/]*)
33164 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33165 ;;
33166 *)
33167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33168for as_dir in $PATH
33169do
33170 IFS=$as_save_IFS
33171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33174 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176 break 2
33177 fi
33178done
cristy8b350f62009-11-15 23:12:43 +000033179 done
cristy3ed852e2009-09-05 21:47:34 +000033180IFS=$as_save_IFS
33181
33182 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33183 ;;
33184esac
33185fi
33186LPRDelegate=$ac_cv_path_LPRDelegate
33187if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189$as_echo "$LPRDelegate" >&6; }
33190else
cristy8b350f62009-11-15 23:12:43 +000033191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192$as_echo "no" >&6; }
33193fi
33194
33195
33196# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33197set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033200if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033201 $as_echo_n "(cached) " >&6
33202else
33203 case $LZWDecodeDelegate in
33204 [\\/]* | ?:[\\/]*)
33205 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33206 ;;
33207 *)
33208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33209for as_dir in $PATH
33210do
33211 IFS=$as_save_IFS
33212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33215 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217 break 2
33218 fi
33219done
cristy8b350f62009-11-15 23:12:43 +000033220 done
cristy3ed852e2009-09-05 21:47:34 +000033221IFS=$as_save_IFS
33222
33223 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33224 ;;
33225esac
33226fi
33227LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33228if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo "$LZWDecodeDelegate" >&6; }
33231else
cristy8b350f62009-11-15 23:12:43 +000033232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233$as_echo "no" >&6; }
33234fi
33235
33236
33237# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33238set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033241if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033242 $as_echo_n "(cached) " >&6
33243else
33244 case $LZWEncodeDelegate in
33245 [\\/]* | ?:[\\/]*)
33246 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33247 ;;
33248 *)
33249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33250for as_dir in $PATH
33251do
33252 IFS=$as_save_IFS
33253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33256 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258 break 2
33259 fi
33260done
cristy8b350f62009-11-15 23:12:43 +000033261 done
cristy3ed852e2009-09-05 21:47:34 +000033262IFS=$as_save_IFS
33263
33264 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33265 ;;
33266esac
33267fi
33268LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33269if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo "$LZWEncodeDelegate" >&6; }
33272else
cristy8b350f62009-11-15 23:12:43 +000033273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274$as_echo "no" >&6; }
33275fi
33276
33277
33278# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33279set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033282if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033283 $as_echo_n "(cached) " >&6
33284else
33285 case $LaunchDelegate in
33286 [\\/]* | ?:[\\/]*)
33287 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33288 ;;
33289 *)
33290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33291for as_dir in $PATH
33292do
33293 IFS=$as_save_IFS
33294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33297 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299 break 2
33300 fi
33301done
cristy8b350f62009-11-15 23:12:43 +000033302 done
cristy3ed852e2009-09-05 21:47:34 +000033303IFS=$as_save_IFS
33304
33305 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33306 ;;
33307esac
33308fi
33309LaunchDelegate=$ac_cv_path_LaunchDelegate
33310if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312$as_echo "$LaunchDelegate" >&6; }
33313else
cristy8b350f62009-11-15 23:12:43 +000033314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033315$as_echo "no" >&6; }
33316fi
33317
33318
33319# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33320set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033323if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033324 $as_echo_n "(cached) " >&6
33325else
33326 case $MANDelegate in
33327 [\\/]* | ?:[\\/]*)
33328 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33329 ;;
33330 *)
33331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33332for as_dir in $PATH
33333do
33334 IFS=$as_save_IFS
33335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33338 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340 break 2
33341 fi
33342done
cristy8b350f62009-11-15 23:12:43 +000033343 done
cristy3ed852e2009-09-05 21:47:34 +000033344IFS=$as_save_IFS
33345
33346 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33347 ;;
33348esac
33349fi
33350MANDelegate=$ac_cv_path_MANDelegate
33351if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo "$MANDelegate" >&6; }
33354else
cristy8b350f62009-11-15 23:12:43 +000033355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356$as_echo "no" >&6; }
33357fi
33358
33359
33360# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33361set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033364if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033365 $as_echo_n "(cached) " >&6
33366else
33367 case $MPEGDecodeDelegate in
33368 [\\/]* | ?:[\\/]*)
33369 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33370 ;;
33371 *)
33372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33373for as_dir in $PATH
33374do
33375 IFS=$as_save_IFS
33376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33379 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381 break 2
33382 fi
33383done
cristy8b350f62009-11-15 23:12:43 +000033384 done
cristy3ed852e2009-09-05 21:47:34 +000033385IFS=$as_save_IFS
33386
33387 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33388 ;;
33389esac
33390fi
33391MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33392if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo "$MPEGDecodeDelegate" >&6; }
33395else
cristy8b350f62009-11-15 23:12:43 +000033396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397$as_echo "no" >&6; }
33398fi
33399
33400
33401# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33402set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033405if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033406 $as_echo_n "(cached) " >&6
33407else
33408 case $MPEGEncodeDelegate in
33409 [\\/]* | ?:[\\/]*)
33410 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33411 ;;
33412 *)
33413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33414for as_dir in $PATH
33415do
33416 IFS=$as_save_IFS
33417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33420 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422 break 2
33423 fi
33424done
cristy8b350f62009-11-15 23:12:43 +000033425 done
cristy3ed852e2009-09-05 21:47:34 +000033426IFS=$as_save_IFS
33427
33428 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33429 ;;
33430esac
33431fi
33432MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33433if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo "$MPEGEncodeDelegate" >&6; }
33436else
cristy8b350f62009-11-15 23:12:43 +000033437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033438$as_echo "no" >&6; }
33439fi
33440
33441
cristy935c86e2010-06-05 23:50:07 +000033442# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33443set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033446if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033447 $as_echo_n "(cached) " >&6
33448else
33449 case $MrSIDDecodeDelegate in
33450 [\\/]* | ?:[\\/]*)
33451 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33452 ;;
33453 *)
33454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33455for as_dir in $PATH
33456do
33457 IFS=$as_save_IFS
33458 test -z "$as_dir" && as_dir=.
33459 for ac_exec_ext in '' $ac_executable_extensions; do
33460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33461 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33463 break 2
33464 fi
33465done
33466 done
33467IFS=$as_save_IFS
33468
33469 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33470 ;;
33471esac
33472fi
33473MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33474if test -n "$MrSIDDecodeDelegate"; then
33475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33476$as_echo "$MrSIDDecodeDelegate" >&6; }
33477else
33478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33479$as_echo "no" >&6; }
33480fi
33481
33482
cristy3ed852e2009-09-05 21:47:34 +000033483# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33484set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033487if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033488 $as_echo_n "(cached) " >&6
33489else
33490 case $MVDelegate in
33491 [\\/]* | ?:[\\/]*)
33492 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33493 ;;
33494 *)
33495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33496for as_dir in $PATH
33497do
33498 IFS=$as_save_IFS
33499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33502 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504 break 2
33505 fi
33506done
cristy8b350f62009-11-15 23:12:43 +000033507 done
cristy3ed852e2009-09-05 21:47:34 +000033508IFS=$as_save_IFS
33509
33510 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33511 ;;
33512esac
33513fi
33514MVDelegate=$ac_cv_path_MVDelegate
33515if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "$MVDelegate" >&6; }
33518else
cristy8b350f62009-11-15 23:12:43 +000033519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520$as_echo "no" >&6; }
33521fi
33522
33523
33524# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33525set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033528if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033529 $as_echo_n "(cached) " >&6
33530else
33531 case $PCLDelegate in
33532 [\\/]* | ?:[\\/]*)
33533 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33534 ;;
33535 *)
33536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537for as_dir in $PATH
33538do
33539 IFS=$as_save_IFS
33540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33543 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545 break 2
33546 fi
33547done
cristy8b350f62009-11-15 23:12:43 +000033548 done
cristy3ed852e2009-09-05 21:47:34 +000033549IFS=$as_save_IFS
33550
33551 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33552 ;;
33553esac
33554fi
33555PCLDelegate=$ac_cv_path_PCLDelegate
33556if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo "$PCLDelegate" >&6; }
33559else
cristy8b350f62009-11-15 23:12:43 +000033560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561$as_echo "no" >&6; }
33562fi
33563
33564
33565# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33566set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033569if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033570 $as_echo_n "(cached) " >&6
33571else
33572 case $PGPDecodeDelegate in
33573 [\\/]* | ?:[\\/]*)
33574 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33575 ;;
33576 *)
33577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33578for as_dir in $PATH
33579do
33580 IFS=$as_save_IFS
33581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33584 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586 break 2
33587 fi
33588done
cristy8b350f62009-11-15 23:12:43 +000033589 done
cristy3ed852e2009-09-05 21:47:34 +000033590IFS=$as_save_IFS
33591
33592 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33593 ;;
33594esac
33595fi
33596PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33597if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599$as_echo "$PGPDecodeDelegate" >&6; }
33600else
cristy8b350f62009-11-15 23:12:43 +000033601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602$as_echo "no" >&6; }
33603fi
33604
33605
33606# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33607set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033610if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033611 $as_echo_n "(cached) " >&6
33612else
33613 case $POVDelegate in
33614 [\\/]* | ?:[\\/]*)
33615 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33616 ;;
33617 *)
33618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33619for as_dir in $PATH
33620do
33621 IFS=$as_save_IFS
33622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33625 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627 break 2
33628 fi
33629done
cristy8b350f62009-11-15 23:12:43 +000033630 done
cristy3ed852e2009-09-05 21:47:34 +000033631IFS=$as_save_IFS
33632
33633 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33634 ;;
33635esac
33636fi
33637POVDelegate=$ac_cv_path_POVDelegate
33638if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo "$POVDelegate" >&6; }
33641else
cristy8b350f62009-11-15 23:12:43 +000033642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643$as_echo "no" >&6; }
33644fi
33645
33646
33647for ac_prog in gsx gsc "$PSDelegateDefault"
33648do
33649 # Extract the first word of "$ac_prog", so it can be a program name with args.
33650set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033653if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033654 $as_echo_n "(cached) " >&6
33655else
33656 case $PSDelegate in
33657 [\\/]* | ?:[\\/]*)
33658 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33659 ;;
33660 *)
33661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33662for as_dir in $PATH
33663do
33664 IFS=$as_save_IFS
33665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33668 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670 break 2
33671 fi
33672done
cristy8b350f62009-11-15 23:12:43 +000033673 done
cristy3ed852e2009-09-05 21:47:34 +000033674IFS=$as_save_IFS
33675
33676 ;;
33677esac
33678fi
33679PSDelegate=$ac_cv_path_PSDelegate
33680if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo "$PSDelegate" >&6; }
33683else
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "no" >&6; }
33686fi
33687
33688
33689 test -n "$PSDelegate" && break
33690done
33691test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33692
33693# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33694set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033697if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033698 $as_echo_n "(cached) " >&6
33699else
33700 case $RLEEncodeDelegate in
33701 [\\/]* | ?:[\\/]*)
33702 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33703 ;;
33704 *)
33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706for as_dir in $PATH
33707do
33708 IFS=$as_save_IFS
33709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33712 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714 break 2
33715 fi
33716done
cristy8b350f62009-11-15 23:12:43 +000033717 done
cristy3ed852e2009-09-05 21:47:34 +000033718IFS=$as_save_IFS
33719
33720 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33721 ;;
33722esac
33723fi
33724RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33725if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033727$as_echo "$RLEEncodeDelegate" >&6; }
33728else
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo "no" >&6; }
33731fi
33732
33733
33734# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33735set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033738if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033739 $as_echo_n "(cached) " >&6
33740else
33741 case $RMDelegate in
33742 [\\/]* | ?:[\\/]*)
33743 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33744 ;;
33745 *)
33746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33747for as_dir in $PATH
33748do
33749 IFS=$as_save_IFS
33750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33753 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033755 break 2
33756 fi
33757done
cristy8b350f62009-11-15 23:12:43 +000033758 done
cristy3ed852e2009-09-05 21:47:34 +000033759IFS=$as_save_IFS
33760
33761 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33762 ;;
33763esac
33764fi
33765RMDelegate=$ac_cv_path_RMDelegate
33766if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo "$RMDelegate" >&6; }
33769else
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "no" >&6; }
33772fi
33773
33774
cristy4689cf02010-02-17 21:15:45 +000033775# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33776set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033779if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033780 $as_echo_n "(cached) " >&6
33781else
33782 case $RSVGDecodeDelegate in
33783 [\\/]* | ?:[\\/]*)
33784 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33785 ;;
33786 *)
33787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33788for as_dir in $PATH
33789do
33790 IFS=$as_save_IFS
33791 test -z "$as_dir" && as_dir=.
33792 for ac_exec_ext in '' $ac_executable_extensions; do
33793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33794 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33796 break 2
33797 fi
33798done
33799 done
33800IFS=$as_save_IFS
33801
33802 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33803 ;;
33804esac
33805fi
33806RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33807if test -n "$RSVGDecodeDelegate"; then
33808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33809$as_echo "$RSVGDecodeDelegate" >&6; }
33810else
33811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33812$as_echo "no" >&6; }
33813fi
33814
33815
cristy3ed852e2009-09-05 21:47:34 +000033816# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33817set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033820if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033821 $as_echo_n "(cached) " >&6
33822else
33823 case $SCANDecodeDelegate in
33824 [\\/]* | ?:[\\/]*)
33825 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33826 ;;
33827 *)
33828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33829for as_dir in $PATH
33830do
33831 IFS=$as_save_IFS
33832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33835 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837 break 2
33838 fi
33839done
cristy8b350f62009-11-15 23:12:43 +000033840 done
cristy3ed852e2009-09-05 21:47:34 +000033841IFS=$as_save_IFS
33842
33843 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33844 ;;
33845esac
33846fi
33847SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33848if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo "$SCANDecodeDelegate" >&6; }
33851else
cristy8b350f62009-11-15 23:12:43 +000033852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo "no" >&6; }
33854fi
33855
33856
33857# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33858set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033861if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033862 $as_echo_n "(cached) " >&6
33863else
33864 case $TXTDelegate in
33865 [\\/]* | ?:[\\/]*)
33866 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33867 ;;
33868 *)
33869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33870for as_dir in $PATH
33871do
33872 IFS=$as_save_IFS
33873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33876 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878 break 2
33879 fi
33880done
cristy8b350f62009-11-15 23:12:43 +000033881 done
cristy3ed852e2009-09-05 21:47:34 +000033882IFS=$as_save_IFS
33883
33884 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33885 ;;
33886esac
33887fi
33888TXTDelegate=$ac_cv_path_TXTDelegate
33889if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo "$TXTDelegate" >&6; }
33892else
cristy8b350f62009-11-15 23:12:43 +000033893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo "no" >&6; }
33895fi
33896
33897
cristy5ac9ac82010-07-29 13:24:24 +000033898# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33899set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033902if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033903 $as_echo_n "(cached) " >&6
33904else
33905 case $UniconvertorDelegate in
33906 [\\/]* | ?:[\\/]*)
33907 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33908 ;;
33909 *)
33910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33911for as_dir in $PATH
33912do
33913 IFS=$as_save_IFS
33914 test -z "$as_dir" && as_dir=.
33915 for ac_exec_ext in '' $ac_executable_extensions; do
33916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33917 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33919 break 2
33920 fi
33921done
33922 done
33923IFS=$as_save_IFS
33924
33925 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33926 ;;
33927esac
33928fi
33929UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33930if test -n "$UniconvertorDelegate"; then
33931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33932$as_echo "$UniconvertorDelegate" >&6; }
33933else
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33935$as_echo "no" >&6; }
33936fi
33937
33938
cristy3ed852e2009-09-05 21:47:34 +000033939# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33940set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033943if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033944 $as_echo_n "(cached) " >&6
33945else
33946 case $WMFDecodeDelegate in
33947 [\\/]* | ?:[\\/]*)
33948 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33949 ;;
33950 *)
33951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33952for as_dir in $PATH
33953do
33954 IFS=$as_save_IFS
33955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33958 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960 break 2
33961 fi
33962done
cristy8b350f62009-11-15 23:12:43 +000033963 done
cristy3ed852e2009-09-05 21:47:34 +000033964IFS=$as_save_IFS
33965
33966 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33967 ;;
33968esac
33969fi
33970WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33971if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033973$as_echo "$WMFDecodeDelegate" >&6; }
33974else
cristy8b350f62009-11-15 23:12:43 +000033975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033976$as_echo "no" >&6; }
33977fi
33978
33979
33980# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33981set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033984if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033985 $as_echo_n "(cached) " >&6
33986else
33987 case $WWWDecodeDelegate in
33988 [\\/]* | ?:[\\/]*)
33989 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33990 ;;
33991 *)
33992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33993for as_dir in $PATH
33994do
33995 IFS=$as_save_IFS
33996 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33999 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034001 break 2
34002 fi
34003done
cristy8b350f62009-11-15 23:12:43 +000034004 done
cristy3ed852e2009-09-05 21:47:34 +000034005IFS=$as_save_IFS
34006
34007 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34008 ;;
34009esac
34010fi
34011WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34012if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034014$as_echo "$WWWDecodeDelegate" >&6; }
34015else
cristy8b350f62009-11-15 23:12:43 +000034016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034017$as_echo "no" >&6; }
34018fi
34019
34020
34021# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34022set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034025if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034026 $as_echo_n "(cached) " >&6
34027else
34028 case $XPSDelegate in
34029 [\\/]* | ?:[\\/]*)
34030 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34031 ;;
34032 *)
34033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34034for as_dir in $PATH
34035do
34036 IFS=$as_save_IFS
34037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34040 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034042 break 2
34043 fi
34044done
cristy8b350f62009-11-15 23:12:43 +000034045 done
cristy3ed852e2009-09-05 21:47:34 +000034046IFS=$as_save_IFS
34047
34048 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34049 ;;
34050esac
34051fi
34052XPSDelegate=$ac_cv_path_XPSDelegate
34053if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034055$as_echo "$XPSDelegate" >&6; }
34056else
cristy8b350f62009-11-15 23:12:43 +000034057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo "no" >&6; }
34059fi
34060
34061
34062# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34063set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034066if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034067 $as_echo_n "(cached) " >&6
34068else
34069 case $ZipDelegate in
34070 [\\/]* | ?:[\\/]*)
34071 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34072 ;;
34073 *)
34074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34075for as_dir in $PATH
34076do
34077 IFS=$as_save_IFS
34078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34081 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034083 break 2
34084 fi
34085done
cristy8b350f62009-11-15 23:12:43 +000034086 done
cristy3ed852e2009-09-05 21:47:34 +000034087IFS=$as_save_IFS
34088
34089 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34090 ;;
34091esac
34092fi
34093ZipDelegate=$ac_cv_path_ZipDelegate
34094if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034096$as_echo "$ZipDelegate" >&6; }
34097else
cristy8b350f62009-11-15 23:12:43 +000034098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034099$as_echo "no" >&6; }
34100fi
34101
34102
34103
34104# Prefer lpr to lp; lp needs options tacked on.
34105if test "$LPRDelegate" != no; then
34106 PrintDelegate="$LPRDelegate"
34107else
34108 PrintDelegate="$LPDelegate -c -s"
34109fi
34110
34111
34112# Installed ImageMagick utiltity paths
34113ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34114DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34115MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34116
34117# Set delegate booleans
34118have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34119have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34120have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34121have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34122have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034123have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034124have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34125have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034126have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34127have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34128
34129#
34130# Test for font directories
34131#
34132type_include_files=''
34133
cristy430a7312010-01-21 20:44:04 +000034134# Dejavu fonts.
34135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34136$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34137dejavu_font_dir=''
34138if test "${with_dejavu_font_dir}" != 'default'; then
34139 dejavu_font_dir="${with_dejavu_font_dir}/"
34140else
34141 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34142 if test -f "${font_dir}DejaVuSerif.ttf"; then
34143 dejavu_font_dir="${font_dir}"
34144 break 1
34145 fi
34146 done
34147fi
34148if test "${dejavu_font_dir}x" != 'x'; then
34149 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034150 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34151$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034152else
cristy09b53e12011-10-14 12:47:22 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34154$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034155fi
34156
34157
cristy3ed852e2009-09-05 21:47:34 +000034158# Windows
34159windows_font_dir=''
34160if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34161 windows_font_dir="${with_windows_font_dir}/"
34162fi
cristy430a7312010-01-21 20:44:04 +000034163if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034164 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34165 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34166 fi
34167 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34168 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34169 fi
34170 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34171 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34172 fi
34173fi
cristy430a7312010-01-21 20:44:04 +000034174if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034175 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34176fi
34177
34178
34179# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34182ghostscript_font_dir=''
34183if test "${with_gs_font_dir}" != 'default'; then
34184 ghostscript_font_dir="${with_gs_font_dir}/"
34185else
34186 if test "${native_win32_build}" = 'yes'; then
34187 # Native Windows Build
34188 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34189 if test -f "${font_dir}a010013l.pfb"; then
34190 ghostscript_font_dir="$font_dir"
34191 break 1
34192 fi
34193 done
34194 if test "${PSDelegate}" != 'gswin32c'; then
34195 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34196 fi
34197 else
34198 # Linux / Mac OS X / Unix Build
34199 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
34200 if test -f "${font_dir}a010013l.pfb"; then
34201 ghostscript_font_dir="${font_dir}"
34202 break 1
34203 fi
34204 done
34205 if test "${ghostscript_font_dir}x" = 'x'; then
34206 if test "$PSDelegate" != 'gs'; then
34207 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34208 fi
34209 fi
34210 fi
34211fi
34212if test "${ghostscript_font_dir}x" != 'x'; then
34213 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34215$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034216else
cristy09b53e12011-10-14 12:47:22 +000034217 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34218$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034219fi
34220
34221case "${build_os}" in
34222 mingw* )
34223 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34224 ;;
34225esac
34226
34227
34228
34229#
34230# Handle case where user doesn't want frozen paths
34231#
34232if test "$with_frozenpaths" != 'yes'; then
34233 # Re-set delegate definitions to default (no paths)
34234 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034235 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34236 BZIPDelegate="$BZIPDelegateDefault"
34237 BrowseDelegate="$BrowseDelegateDefault"
34238 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34239 CatDelegate="$CatDelegateDefault"
34240 ConvertDelegate="$ConvertDelegateDefault"
34241 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34242 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34243 EchoDelegate="$EchoDelegateDefault"
34244 EditorDelegate="$EditorDelegateDefault"
34245 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34246 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34247 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34248 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34249 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34250 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34251 LPDelegate="$LPDelegateDefault"
34252 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34253 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34254 LaunchDelegate="$LaunchDelegateDefault"
34255 MANDelegate="$MANDelegateDefault"
34256 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34257 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034258 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034259 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34260 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034261 PCLDelegate="$PCLDelegateDefault"
34262 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34263 POVDelegate="$POVDelegateDefault"
34264 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034265 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34266 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034267 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034268 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34269 ShowImageDelegate="$ShowImageDelegateDefault"
34270 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034271 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034272 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34273 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34274 XPSDelegate="$XPSDelegateDefault"
34275 ZipDelegate="$ZipDelegateDefault"
34276fi
34277
34278# Delegate substitutions
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321#
34322# RPM support.
34323#
34324RPM=''
34325for ac_prog in gnutar gtar tar
34326do
34327 # Extract the first word of "$ac_prog", so it can be a program name with args.
34328set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034331if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034332 $as_echo_n "(cached) " >&6
34333else
34334 if test -n "$TAR"; then
34335 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34336else
34337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34338for as_dir in $PATH
34339do
34340 IFS=$as_save_IFS
34341 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034342 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34344 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034346 break 2
34347 fi
34348done
cristy8b350f62009-11-15 23:12:43 +000034349 done
cristy3ed852e2009-09-05 21:47:34 +000034350IFS=$as_save_IFS
34351
34352fi
34353fi
34354TAR=$ac_cv_prog_TAR
34355if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo "$TAR" >&6; }
34358else
cristy8b350f62009-11-15 23:12:43 +000034359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360$as_echo "no" >&6; }
34361fi
34362
34363
34364 test -n "$TAR" && break
34365done
34366
34367for ac_prog in perl
34368do
34369 # Extract the first word of "$ac_prog", so it can be a program name with args.
34370set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034373if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034374 $as_echo_n "(cached) " >&6
34375else
34376 if test -n "$PERL"; then
34377 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34378else
34379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34380for as_dir in $PATH
34381do
34382 IFS=$as_save_IFS
34383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34386 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388 break 2
34389 fi
34390done
cristy8b350f62009-11-15 23:12:43 +000034391 done
cristy3ed852e2009-09-05 21:47:34 +000034392IFS=$as_save_IFS
34393
34394fi
34395fi
34396PERL=$ac_cv_prog_PERL
34397if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "$PERL" >&6; }
34400else
cristy8b350f62009-11-15 23:12:43 +000034401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034402$as_echo "no" >&6; }
34403fi
34404
34405
34406 test -n "$PERL" && break
34407done
34408
34409for ac_prog in rpmbuild rpm
34410do
34411 # Extract the first word of "$ac_prog", so it can be a program name with args.
34412set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034415if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034416 $as_echo_n "(cached) " >&6
34417else
34418 if test -n "$RPM"; then
34419 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34420else
34421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34422for as_dir in $PATH
34423do
34424 IFS=$as_save_IFS
34425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34428 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034430 break 2
34431 fi
34432done
cristy8b350f62009-11-15 23:12:43 +000034433 done
cristy3ed852e2009-09-05 21:47:34 +000034434IFS=$as_save_IFS
34435
34436fi
34437fi
34438RPM=$ac_cv_prog_RPM
34439if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "$RPM" >&6; }
34442else
cristy8b350f62009-11-15 23:12:43 +000034443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo "no" >&6; }
34445fi
34446
34447
34448 test -n "$RPM" && break
34449done
34450
34451
cristy73bd4a52010-10-05 11:24:23 +000034452ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34453
34454
34455AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34456
34457
34458AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34459
34460
34461AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34462
34463
34464 if test "x$RPM" != "x" ; then
34465 RPM_DELEGATE_TRUE=
34466 RPM_DELEGATE_FALSE='#'
34467else
34468 RPM_DELEGATE_TRUE='#'
34469 RPM_DELEGATE_FALSE=
34470fi
34471
cristy3ed852e2009-09-05 21:47:34 +000034472
34473#
34474# 7ZIP support (http://p7zip.sourceforge.net/)
34475#
34476P7ZIP=''
34477for ac_prog in 7za
34478do
34479 # Extract the first word of "$ac_prog", so it can be a program name with args.
34480set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034483if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034484 $as_echo_n "(cached) " >&6
34485else
34486 if test -n "$P7ZIP"; then
34487 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34488else
34489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34490for as_dir in $PATH
34491do
34492 IFS=$as_save_IFS
34493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34496 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498 break 2
34499 fi
34500done
cristy8b350f62009-11-15 23:12:43 +000034501 done
cristy3ed852e2009-09-05 21:47:34 +000034502IFS=$as_save_IFS
34503
34504fi
34505fi
34506P7ZIP=$ac_cv_prog_P7ZIP
34507if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034509$as_echo "$P7ZIP" >&6; }
34510else
cristy8b350f62009-11-15 23:12:43 +000034511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034512$as_echo "no" >&6; }
34513fi
34514
34515
34516 test -n "$P7ZIP" && break
34517done
34518
34519
cristy73bd4a52010-10-05 11:24:23 +000034520 if test "x$P7ZIP" != "x" ; then
34521 P7ZIP_DELEGATE_TRUE=
34522 P7ZIP_DELEGATE_FALSE='#'
34523else
34524 P7ZIP_DELEGATE_TRUE='#'
34525 P7ZIP_DELEGATE_FALSE=
34526fi
34527
cristy3ed852e2009-09-05 21:47:34 +000034528
34529#
34530# ZIP support (http://www.info-zip.org/Zip.html)
34531#
34532ZIP=''
34533for ac_prog in zip
34534do
34535 # Extract the first word of "$ac_prog", so it can be a program name with args.
34536set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034539if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034540 $as_echo_n "(cached) " >&6
34541else
34542 if test -n "$ZIP"; then
34543 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34544else
34545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34546for as_dir in $PATH
34547do
34548 IFS=$as_save_IFS
34549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34552 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554 break 2
34555 fi
34556done
cristy8b350f62009-11-15 23:12:43 +000034557 done
cristy3ed852e2009-09-05 21:47:34 +000034558IFS=$as_save_IFS
34559
34560fi
34561fi
34562ZIP=$ac_cv_prog_ZIP
34563if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034565$as_echo "$ZIP" >&6; }
34566else
cristy8b350f62009-11-15 23:12:43 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo "no" >&6; }
34569fi
34570
34571
34572 test -n "$ZIP" && break
34573done
34574
34575
cristy73bd4a52010-10-05 11:24:23 +000034576 if test "x$ZIP" != "x" ; then
34577 ZIP_DELEGATE_TRUE=
34578 ZIP_DELEGATE_FALSE='#'
34579else
34580 ZIP_DELEGATE_TRUE='#'
34581 ZIP_DELEGATE_FALSE=
34582fi
34583
cristy3ed852e2009-09-05 21:47:34 +000034584
34585#
34586# GhostPCL related configuration.
34587#
34588PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034589PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034590PCLMonoDevice=pbmraw
34591if test -z "$PCLVersion"; then
34592 PCLVersion='unknown'
34593fi
34594if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34596$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34600$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034601 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034603$as_echo_n "checking for pcl color device... " >&6; }
34604 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34605 :
34606 else
34607 PCLColorDevice=ppmraw
34608 fi
cristy09b53e12011-10-14 12:47:22 +000034609 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34610$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034611
34612 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo_n "checking for pcl CMYK device... " >&6; }
34615 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34616 :
34617 else
34618 PCLCMYKDevice=$PCLColorDevice
34619 fi
cristy09b53e12011-10-14 12:47:22 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34621$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034622
34623 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo_n "checking for pcl mono device... " >&6; }
34626 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34627 :
34628 else
34629 PCLMonoDevice=$PCLColorDevice
34630 fi
cristy09b53e12011-10-14 12:47:22 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34632$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034633fi
34634
34635
34636
34637
34638
34639
34640#
34641# GhostXPS related configuration.
34642#
34643XPSColorDevice=ppmraw
34644XPSCMYKDevice=bmpsep8
34645XPSMonoDevice=pbmraw
34646if test -z "$XPSVersion"; then
34647 XPSVersion='unknown'
34648fi
34649if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034654 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34655$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034656 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo_n "checking for xps color device... " >&6; }
34659 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34660 :
34661 else
34662 XPSColorDevice=ppmraw
34663 fi
cristy09b53e12011-10-14 12:47:22 +000034664 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34665$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034666
34667 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034669$as_echo_n "checking for xps CMYK device... " >&6; }
34670 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34671 :
34672 else
34673 XPSCMYKDevice=$XPSColorDevice
34674 fi
cristy09b53e12011-10-14 12:47:22 +000034675 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34676$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034677
34678 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034680$as_echo_n "checking for xps mono device... " >&6; }
34681 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34682 :
34683 else
34684 XPSMonoDevice=$XPSColorDevice
34685 fi
cristy09b53e12011-10-14 12:47:22 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34687$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034688fi
34689
34690
34691
34692
34693
34694
34695#
34696# Ghostscript related configuration.
34697#
cristya97426c2011-02-04 01:41:27 +000034698GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034699GSColorDevice=pnmraw
34700GSCMYKDevice=pam
34701GSMonoDevice=pbmraw
34702GSPDFDevice=pdfwrite
34703GSPSDevice=pswrite
34704GSEPSDevice=epswrite
34705GSVersion='unknown'
34706if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034707 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34708$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034710$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34712$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo_n "checking for Ghostscript version... " >&6; }
34715 if GSVersion=`$PSDelegate --version`; then
34716 :
34717 else
34718 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34719 fi
cristy09b53e12011-10-14 12:47:22 +000034720 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34721$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034722
34723 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034725$as_echo_n "checking for gs alpha device... " >&6; }
34726 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34727 :
34728 else
34729 GSAlphaDevice=pnmraw
34730 fi
cristy09b53e12011-10-14 12:47:22 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34732$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034733
34734 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034736$as_echo_n "checking for gs color device... " >&6; }
34737 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34738 :
34739 else
34740 GSColorDevice=pnmraw
34741 fi
cristy09b53e12011-10-14 12:47:22 +000034742 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34743$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034744
34745 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo_n "checking for gs CMYK device... " >&6; }
34748 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34749 :
34750 else
34751 GSCMYKDevice=bmpsep8
34752 fi
cristy09b53e12011-10-14 12:47:22 +000034753 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34754$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034755
34756 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758$as_echo_n "checking for gs mono device... " >&6; }
34759 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34760 :
34761 else
34762 GSMonoDevice=$GSColorDevice
34763 fi
cristy09b53e12011-10-14 12:47:22 +000034764 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34765$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034766
34767 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo_n "checking for gs PDF writing device... " >&6; }
34770 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34771 :
34772 else
34773 GSPDFDevice=nodevice
34774 fi
cristy09b53e12011-10-14 12:47:22 +000034775 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34776$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034777
34778 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034780$as_echo_n "checking for gs PS writing device... " >&6; }
34781 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34782 :
34783 else
34784 GSPSDevice=nodevice
34785 fi
cristy09b53e12011-10-14 12:47:22 +000034786 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34787$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034788
34789 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034791$as_echo_n "checking for gs EPS writing device... " >&6; }
34792 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34793 :
34794 else
34795 GSEPSDevice=nodevice
34796 fi
cristy09b53e12011-10-14 12:47:22 +000034797 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34798$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034799fi
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810#
34811# PerlMagick-related configuration
34812#
34813
34814# Look for PERL if PerlMagick requested
34815# If name/path of desired PERL interpreter is specified, look for that one first
34816have_perl='no'
34817if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34819$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034821$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034822 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34823$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034824 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034827if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034828 $as_echo_n "(cached) " >&6
34829else
34830 ac_cv_path_PERL="$with_perl"
34831fi
cristy8b350f62009-11-15 23:12:43 +000034832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034833$as_echo "$ac_cv_path_PERL" >&6; };
34834 PERL=$ac_cv_path_PERL
34835 have_perl="$ac_cv_path_PERL"
34836 else
34837 for ac_prog in perl perl5
34838do
34839 # Extract the first word of "$ac_prog", so it can be a program name with args.
34840set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034843if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034844 $as_echo_n "(cached) " >&6
34845else
34846 case $PERL in
34847 [\\/]* | ?:[\\/]*)
34848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34849 ;;
34850 *)
34851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34852for as_dir in $PATH
34853do
34854 IFS=$as_save_IFS
34855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034860 break 2
34861 fi
34862done
cristy8b350f62009-11-15 23:12:43 +000034863 done
cristy3ed852e2009-09-05 21:47:34 +000034864IFS=$as_save_IFS
34865
34866 ;;
34867esac
34868fi
34869PERL=$ac_cv_path_PERL
34870if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034872$as_echo "$PERL" >&6; }
34873else
cristy8b350f62009-11-15 23:12:43 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo "no" >&6; }
34876fi
34877
34878
34879 test -n "$PERL" && break
34880done
34881 if test "$ac_cv_path_PERL"; then
34882 have_perl="$ac_cv_path_PERL"
34883 fi
34884 fi
34885fi
34886
cristy949301e2010-01-06 01:38:40 +000034887if test "$with_perl" != 'yes' ; then
34888 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34889fi
34890
34891PERL_SUPPORTS_DESTDIR='no'
34892
cristy3ed852e2009-09-05 21:47:34 +000034893with_perl_static='no'
34894with_perl_dynamic='no'
34895if test "$have_perl" != 'no'; then
34896 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34897 with_perl_static='yes'
34898 fi
34899 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34900 with_perl_dynamic='yes'
34901 fi
34902 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034903
34904
34905
34906
34907 if test -n "$PERL"; then :
34908
34909 ax_perl_version="5.8.1"
34910
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34912$as_echo_n "checking for perl version... " >&6; }
34913
34914 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34915
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34917$as_echo "$perl_version" >&6; }
34918
34919 PERL_VERSION=$perl_version
34920
34921
34922
34923
34924
34925 # Used to indicate true or false condition
34926 ax_compare_version=false
34927
34928 # Convert the two version strings to be compared into a format that
34929 # allows a simple string comparison. The end result is that a version
34930 # string of the form 1.12.5-r617 will be converted to the form
34931 # 0001001200050617. In other words, each number is zero padded to four
34932 # digits, and non digits are removed.
34933
34934 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34935 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34936 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34937 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34938 -e 's/[^0-9]//g'`
34939
34940
34941 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34942 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34943 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34944 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34945 -e 's/[^0-9]//g'`
34946
34947
34948 ax_compare_version=`echo "x$ax_compare_version_A
34949x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34950
34951
34952
34953 if test "$ax_compare_version" = "true" ; then
34954
34955 :
34956 PERL_SUPPORTS_DESTDIR='yes'
34957
34958 else
34959 :
34960 PERL_SUPPORTS_DESTDIR='no'
34961
34962 fi
34963
34964
34965else
34966
34967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34968$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34969 PERL_SUPPORTS_DESTDIR='no'
34970
cristy3ed852e2009-09-05 21:47:34 +000034971fi
cristy73bd4a52010-10-05 11:24:23 +000034972
34973fi
34974 if test "$have_perl" != 'no'; then
34975 WITH_PERL_TRUE=
34976 WITH_PERL_FALSE='#'
34977else
34978 WITH_PERL_TRUE='#'
34979 WITH_PERL_FALSE=
34980fi
34981
34982 if test $with_perl_static = 'yes'; then
34983 WITH_PERL_STATIC_TRUE=
34984 WITH_PERL_STATIC_FALSE='#'
34985else
34986 WITH_PERL_STATIC_TRUE='#'
34987 WITH_PERL_STATIC_FALSE=
34988fi
34989
34990 if test $with_perl_dynamic = 'yes'; then
34991 WITH_PERL_DYNAMIC_TRUE=
34992 WITH_PERL_DYNAMIC_FALSE='#'
34993else
34994 WITH_PERL_DYNAMIC_TRUE='#'
34995 WITH_PERL_DYNAMIC_FALSE=
34996fi
34997
cristy3ed852e2009-09-05 21:47:34 +000034998
34999
35000# Determine path to pick up MagickCore library from for use with building PerlMagick
35001MAGICKCORE_PATH="${LIB_DIR}"
35002if test $with_perl_static = 'yes'; then
35003 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35004 libtool_objdir=$objdir
35005
35006 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035007 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035008fi
35009
35010
35011# Create a simple string containing format names for all delegate libraries
35012DELEGATES=''
35013if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35014if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35015if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35016if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35017if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35018if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35019if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35020if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35021if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35022if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35023if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35024if test "$have_jpeg" = 'yes'; then
35025 DELEGATES="$DELEGATES jpeg";
35026 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35027fi
35028if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035029if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035030if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35031if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035032if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035033if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35034if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35035if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35036if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35037if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35038if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35039if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35040if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35041if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35042
35043
35044
35045#
35046# Handle special compiler flags
35047#
35048
35049# Add '-p' if prof source profiling support enabled
35050if test "$enable_prof" = 'yes'; then
35051 CFLAGS="-p $CFLAGS"
35052 CXXFLAGS="-p $CXXFLAGS"
35053 LDFLAGS="-p $LDFLAGS"
35054fi
35055
35056# Add '-pg' if gprof source profiling support enabled
35057if test "$enable_gprof" = 'yes'; then
35058 CFLAGS="-pg $CFLAGS"
35059 CXXFLAGS="-pg $CXXFLAGS"
35060 LDFLAGS="-pg $LDFLAGS"
35061fi
35062
35063# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35064# This is a gcc-specific feature
35065if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035067$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035068if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035069 $as_echo_n "(cached) " >&6
35070else
35071 ac_check_lib_save_LIBS=$LIBS
35072LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035074/* end confdefs.h. */
35075
35076/* Override any GCC internal prototype to avoid an error.
35077 Use char because int might match the return type of a GCC
35078 builtin and then its argument prototype would still apply. */
35079#ifdef __cplusplus
35080extern "C"
35081#endif
35082char _gcov_init ();
35083int
35084main ()
35085{
35086return _gcov_init ();
35087 ;
35088 return 0;
35089}
35090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035092 ac_cv_lib_gcov__gcov_init=yes
35093else
cristy8b350f62009-11-15 23:12:43 +000035094 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035095fi
cristy8b350f62009-11-15 23:12:43 +000035096rm -f core conftest.err conftest.$ac_objext \
35097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035098LIBS=$ac_check_lib_save_LIBS
35099fi
cristy8b350f62009-11-15 23:12:43 +000035100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035102if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035103 cat >>confdefs.h <<_ACEOF
35104#define HAVE_LIBGCOV 1
35105_ACEOF
35106
35107 LIBS="-lgcov $LIBS"
35108
35109fi
35110
cristy8b350f62009-11-15 23:12:43 +000035111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035112$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035113if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035114 $as_echo_n "(cached) " >&6
35115else
35116 ac_check_lib_save_LIBS=$LIBS
35117LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035119/* end confdefs.h. */
35120
35121/* Override any GCC internal prototype to avoid an error.
35122 Use char because int might match the return type of a GCC
35123 builtin and then its argument prototype would still apply. */
35124#ifdef __cplusplus
35125extern "C"
35126#endif
35127char __gcov_init ();
35128int
35129main ()
35130{
35131return __gcov_init ();
35132 ;
35133 return 0;
35134}
35135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035137 ac_cv_lib_gcov___gcov_init=yes
35138else
cristy8b350f62009-11-15 23:12:43 +000035139 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035140fi
cristy8b350f62009-11-15 23:12:43 +000035141rm -f core conftest.err conftest.$ac_objext \
35142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035143LIBS=$ac_check_lib_save_LIBS
35144fi
cristy8b350f62009-11-15 23:12:43 +000035145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035146$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035147if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035148 cat >>confdefs.h <<_ACEOF
35149#define HAVE_LIBGCOV 1
35150_ACEOF
35151
35152 LIBS="-lgcov $LIBS"
35153
35154fi
35155
35156 case "$target_os" in
35157 darwin*)
35158 OSX_GCOV_LDFLAG="-Wl,-single_module"
35159 ;;
35160 *)
35161 OSX_GCOV_LDFLAG=""
35162 ;;
35163 esac
35164
35165 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35166 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35167 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35168fi
35169
35170#
35171# Build library dependency list for libMagickCore
35172#
35173
35174MAGICK_LIBLTDL='' # Libltdl for build
35175MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35176MAGICK_LTDLDEPS='' # extra libltdl dependencies
35177if test "$with_ltdl" != 'no'
35178then
35179 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35180 MAGICK_API_LIBLTDL='-lltdl'
35181 fi
35182 MAGICK_LIBLTDL=${LIBLTDL}
35183 MAGICK_LTDLDEPS=${LTDLDEPS}
35184fi
35185
35186
35187
35188if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035189 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 +000035190else
cristy41cbe8a2011-10-27 01:35:18 +000035191 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 +000035192fi
35193
35194
35195#
35196# Remove extraneous spaces from output variables (asthetic)
35197#
35198X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35199X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35200X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35201X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35202
35203CC=`echo $CC | sed -e 's/ */ /g'`
35204CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35205CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35206CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35207DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35208DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35209LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35210TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35211MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35212#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35213
35214# Pass only user-provided LIBS as "global" libraries
35215LIBS=$USER_LIBS
35216
35217#AC_SUBST(CPPFLAGS)
35218
35219#AC_SUBST(LDFLAGS)
35220#AC_SUBST(X_PRE_LIBS)
35221#AC_SUBST(X_LIBS)
35222#AC_SUBST(X_EXTRA_LIBS)
35223
35224MAGICK_CFLAGS=$CFLAGS
35225MAGICK_CXXFLAGS="$CXXFLAGS"
35226MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35227MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35228MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35229MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35230
35231
35232
35233
35234
35235
35236
35237
cristyfd9dcd42010-08-08 18:07:02 +000035238
cristy3ed852e2009-09-05 21:47:34 +000035239# Set configured scripts to executable.
35240ac_config_commands="$ac_config_commands default"
35241
35242ac_config_commands="$ac_config_commands MagickCore-config.in"
35243
cristy3ed852e2009-09-05 21:47:34 +000035244ac_config_commands="$ac_config_commands MagickWand-config.in"
35245
cristy3ed852e2009-09-05 21:47:34 +000035246ac_config_commands="$ac_config_commands Magick++-config.in"
35247
35248ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35249
35250
cristy09b53e12011-10-14 12:47:22 +000035251{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35252$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35253{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35254$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035255cat >confcache <<\_ACEOF
35256# This file is a shell script that caches the results of configure
35257# tests run on this system so they can be shared between configure
35258# scripts and configure runs, see configure's option --config-cache.
35259# It is not useful on other systems. If it contains results you don't
35260# want to keep, you may remove or edit it.
35261#
35262# config.status only pays attention to the cache file if you give it
35263# the --recheck option to rerun configure.
35264#
35265# `ac_cv_env_foo' variables (set or unset) will be overridden when
35266# loading this file, other *unset* `ac_cv_foo' will be assigned the
35267# following values.
35268
35269_ACEOF
35270
35271# The following way of writing the cache mishandles newlines in values,
35272# but we know of no workaround that is simple, portable, and efficient.
35273# So, we kill variables containing newlines.
35274# Ultrix sh set writes to stderr and can't be redirected directly,
35275# and sets the high bit in the cache file unless we assign to the vars.
35276(
35277 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35278 eval ac_val=\$$ac_var
35279 case $ac_val in #(
35280 *${as_nl}*)
35281 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35284 esac
35285 case $ac_var in #(
35286 _ | IFS | as_nl) ;; #(
35287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035288 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035289 esac ;;
35290 esac
35291 done
35292
35293 (set) 2>&1 |
35294 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35295 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035296 # `set' does not quote correctly, so add quotes: double-quote
35297 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035298 sed -n \
35299 "s/'/'\\\\''/g;
35300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35301 ;; #(
35302 *)
35303 # `set' quotes correctly as required by POSIX, so do not add quotes.
35304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35305 ;;
35306 esac |
35307 sort
35308) |
35309 sed '
35310 /^ac_cv_env_/b end
35311 t clear
35312 :clear
35313 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35314 t end
35315 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35316 :end' >>confcache
35317if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35318 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035319 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035320 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035321$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035322 if test ! -f "$cache_file" || test -h "$cache_file"; then
35323 cat confcache >"$cache_file"
35324 else
35325 case $cache_file in #(
35326 */* | ?:*)
35327 mv -f confcache "$cache_file"$$ &&
35328 mv -f "$cache_file"$$ "$cache_file" ;; #(
35329 *)
35330 mv -f confcache "$cache_file" ;;
35331 esac
35332 fi
35333 fi
cristy3ed852e2009-09-05 21:47:34 +000035334 else
cristy8b350f62009-11-15 23:12:43 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035336$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35337 fi
35338fi
35339rm -f confcache
35340
35341test "x$prefix" = xNONE && prefix=$ac_default_prefix
35342# Let make expand exec_prefix.
35343test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35344
35345DEFS=-DHAVE_CONFIG_H
35346
35347ac_libobjs=
35348ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035349U=
cristy3ed852e2009-09-05 21:47:34 +000035350for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35351 # 1. Remove the extension, and $U if already installed.
35352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35355 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035358done
35359LIBOBJS=$ac_libobjs
35360
35361LTLIBOBJS=$ac_ltlibobjs
35362
35363
cristy73bd4a52010-10-05 11:24:23 +000035364 if test -n "$EXEEXT"; then
35365 am__EXEEXT_TRUE=
35366 am__EXEEXT_FALSE='#'
35367else
35368 am__EXEEXT_TRUE='#'
35369 am__EXEEXT_FALSE=
35370fi
cristy3ed852e2009-09-05 21:47:34 +000035371
cristy73bd4a52010-10-05 11:24:23 +000035372if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035373 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035374Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375fi
35376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035378Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379fi
35380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035381 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035382Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383fi
35384if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035385 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035386Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387fi
35388if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035389 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035390Usually this means the macro was only invoked conditionally." "$LINENO" 5
35391fi
35392if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035393 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035394Usually this means the macro was only invoked conditionally." "$LINENO" 5
35395fi
35396if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035397 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035398Usually this means the macro was only invoked conditionally." "$LINENO" 5
35399fi
35400if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035401 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035402Usually this means the macro was only invoked conditionally." "$LINENO" 5
35403fi
cristy73bd4a52010-10-05 11:24:23 +000035404if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035405 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035406Usually this means the macro was only invoked conditionally." "$LINENO" 5
35407fi
35408if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035409 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035410Usually this means the macro was only invoked conditionally." "$LINENO" 5
35411fi
35412LT_CONFIG_H=config/config.h
35413
35414 _ltdl_libobjs=
35415 _ltdl_ltlibobjs=
35416 if test -n "$_LT_LIBOBJS"; then
35417 # Remove the extension.
35418 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35419 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35420 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35421 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35422 done
35423 fi
35424 ltdl_LIBOBJS=$_ltdl_libobjs
35425
35426 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35427
35428
35429if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035430 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035431Usually this means the macro was only invoked conditionally." "$LINENO" 5
35432fi
35433if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035434 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035435Usually this means the macro was only invoked conditionally." "$LINENO" 5
35436fi
35437if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035438 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035439Usually this means the macro was only invoked conditionally." "$LINENO" 5
35440fi
35441if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035442 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035443Usually this means the macro was only invoked conditionally." "$LINENO" 5
35444fi
35445
35446if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035447 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035448Usually this means the macro was only invoked conditionally." "$LINENO" 5
35449fi
35450if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035451 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035452Usually this means the macro was only invoked conditionally." "$LINENO" 5
35453fi
35454if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035455 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035456Usually this means the macro was only invoked conditionally." "$LINENO" 5
35457fi
35458if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035459 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035460Usually this means the macro was only invoked conditionally." "$LINENO" 5
35461fi
35462if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035463 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035464Usually this means the macro was only invoked conditionally." "$LINENO" 5
35465fi
35466if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035467 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035468Usually this means the macro was only invoked conditionally." "$LINENO" 5
35469fi
35470if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035471 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035472Usually this means the macro was only invoked conditionally." "$LINENO" 5
35473fi
35474if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035475 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035476Usually this means the macro was only invoked conditionally." "$LINENO" 5
35477fi
35478if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035479 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035480Usually this means the macro was only invoked conditionally." "$LINENO" 5
35481fi
35482if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035483 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035484Usually this means the macro was only invoked conditionally." "$LINENO" 5
35485fi
35486if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035487 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035488Usually this means the macro was only invoked conditionally." "$LINENO" 5
35489fi
35490if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035491 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035492Usually this means the macro was only invoked conditionally." "$LINENO" 5
35493fi
35494if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035495 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035496Usually this means the macro was only invoked conditionally." "$LINENO" 5
35497fi
35498if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035499 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035500Usually this means the macro was only invoked conditionally." "$LINENO" 5
35501fi
35502if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035503 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035504Usually this means the macro was only invoked conditionally." "$LINENO" 5
35505fi
35506if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035507 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035508Usually this means the macro was only invoked conditionally." "$LINENO" 5
35509fi
35510if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035511 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035512Usually this means the macro was only invoked conditionally." "$LINENO" 5
35513fi
35514if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035515 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035516Usually this means the macro was only invoked conditionally." "$LINENO" 5
35517fi
35518if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035519 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035520Usually this means the macro was only invoked conditionally." "$LINENO" 5
35521fi
35522if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035523 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035524Usually this means the macro was only invoked conditionally." "$LINENO" 5
35525fi
cristyfbb0ef02010-12-19 02:32:11 +000035526if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35527 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35528Usually this means the macro was only invoked conditionally." "$LINENO" 5
35529fi
cristy73bd4a52010-10-05 11:24:23 +000035530if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035531 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035532Usually this means the macro was only invoked conditionally." "$LINENO" 5
35533fi
cristy41cbe8a2011-10-27 01:35:18 +000035534if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35535 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35536Usually this means the macro was only invoked conditionally." "$LINENO" 5
35537fi
35538if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35539 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35540Usually this means the macro was only invoked conditionally." "$LINENO" 5
35541fi
cristy73bd4a52010-10-05 11:24:23 +000035542if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035543 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035544Usually this means the macro was only invoked conditionally." "$LINENO" 5
35545fi
35546if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035547 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035548Usually this means the macro was only invoked conditionally." "$LINENO" 5
35549fi
35550if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035551 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035552Usually this means the macro was only invoked conditionally." "$LINENO" 5
35553fi
35554if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035555 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035556Usually this means the macro was only invoked conditionally." "$LINENO" 5
35557fi
cristyb1860752011-03-14 00:27:46 +000035558if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35559 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35560Usually this means the macro was only invoked conditionally." "$LINENO" 5
35561fi
cristy73bd4a52010-10-05 11:24:23 +000035562if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035563 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035564Usually this means the macro was only invoked conditionally." "$LINENO" 5
35565fi
35566if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035567 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035568Usually this means the macro was only invoked conditionally." "$LINENO" 5
35569fi
35570if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035571 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035572Usually this means the macro was only invoked conditionally." "$LINENO" 5
35573fi
35574if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035575 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035576Usually this means the macro was only invoked conditionally." "$LINENO" 5
35577fi
35578if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035579 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035580Usually this means the macro was only invoked conditionally." "$LINENO" 5
35581fi
35582if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035583 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035584Usually this means the macro was only invoked conditionally." "$LINENO" 5
35585fi
35586if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035587 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035588Usually this means the macro was only invoked conditionally." "$LINENO" 5
35589fi
35590if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035591 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035592Usually this means the macro was only invoked conditionally." "$LINENO" 5
35593fi
cristy3ed852e2009-09-05 21:47:34 +000035594
cristyda16f162011-02-19 23:52:17 +000035595: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035596ac_write_fail=0
35597ac_clean_files_save=$ac_clean_files
35598ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035599{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035600$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035601as_write_fail=0
35602cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035603#! $SHELL
35604# Generated by $as_me.
35605# Run this file to recreate the current configuration.
35606# Compiler output produced by configure, useful for debugging
35607# configure, is in config.log if it exists.
35608
35609debug=false
35610ac_cs_recheck=false
35611ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035612
cristy8b350f62009-11-15 23:12:43 +000035613SHELL=\${CONFIG_SHELL-$SHELL}
35614export SHELL
35615_ASEOF
35616cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35617## -------------------- ##
35618## M4sh Initialization. ##
35619## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035620
35621# Be more Bourne compatible
35622DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035623if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035624 emulate sh
35625 NULLCMD=:
35626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35627 # is contrary to our usage. Disable this feature.
35628 alias -g '${1+"$@"}'='"$@"'
35629 setopt NO_GLOB_SUBST
35630else
cristy8b350f62009-11-15 23:12:43 +000035631 case `(set -o) 2>/dev/null` in #(
35632 *posix*) :
35633 set -o posix ;; #(
35634 *) :
35635 ;;
cristy3ed852e2009-09-05 21:47:34 +000035636esac
cristy3ed852e2009-09-05 21:47:34 +000035637fi
35638
35639
cristy3ed852e2009-09-05 21:47:34 +000035640as_nl='
35641'
35642export as_nl
35643# Printing a long string crashes Solaris 7 /usr/bin/printf.
35644as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35645as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035647# Prefer a ksh shell builtin over an external printf program on Solaris,
35648# but without wasting forks for bash or zsh.
35649if test -z "$BASH_VERSION$ZSH_VERSION" \
35650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35651 as_echo='print -r --'
35652 as_echo_n='print -rn --'
35653elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035654 as_echo='printf %s\n'
35655 as_echo_n='printf %s'
35656else
35657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35659 as_echo_n='/usr/ucb/echo -n'
35660 else
35661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35662 as_echo_n_body='eval
35663 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035664 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035665 *"$as_nl"*)
35666 expr "X$arg" : "X\\(.*\\)$as_nl";
35667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35668 esac;
35669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35670 '
35671 export as_echo_n_body
35672 as_echo_n='sh -c $as_echo_n_body as_echo'
35673 fi
35674 export as_echo_body
35675 as_echo='sh -c $as_echo_body as_echo'
35676fi
35677
35678# The user is always right.
35679if test "${PATH_SEPARATOR+set}" != set; then
35680 PATH_SEPARATOR=:
35681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35683 PATH_SEPARATOR=';'
35684 }
35685fi
35686
cristy3ed852e2009-09-05 21:47:34 +000035687
35688# IFS
35689# We need space, tab and new line, in precisely that order. Quoting is
35690# there to prevent editors from complaining about space-tab.
35691# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35692# splitting by setting IFS to empty value.)
35693IFS=" "" $as_nl"
35694
35695# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035696as_myself=
cristy8b350f62009-11-15 23:12:43 +000035697case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035698 *[\\/]* ) as_myself=$0 ;;
35699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35700for as_dir in $PATH
35701do
35702 IFS=$as_save_IFS
35703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35705 done
cristy3ed852e2009-09-05 21:47:34 +000035706IFS=$as_save_IFS
35707
35708 ;;
35709esac
35710# We did not find ourselves, most probably we were run as `sh COMMAND'
35711# in which case we are not to be found in the path.
35712if test "x$as_myself" = x; then
35713 as_myself=$0
35714fi
35715if test ! -f "$as_myself"; then
35716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035717 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035718fi
35719
cristy8b350f62009-11-15 23:12:43 +000035720# Unset variables that we do not need and which cause bugs (e.g. in
35721# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35722# suppresses any "Segmentation fault" message there. '((' could
35723# trigger a bug in pdksh 5.2.14.
35724for as_var in BASH_ENV ENV MAIL MAILPATH
35725do eval test x\${$as_var+set} = xset \
35726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035727done
35728PS1='$ '
35729PS2='> '
35730PS4='+ '
35731
35732# NLS nuisances.
35733LC_ALL=C
35734export LC_ALL
35735LANGUAGE=C
35736export LANGUAGE
35737
cristy8b350f62009-11-15 23:12:43 +000035738# CDPATH.
35739(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35740
35741
cristy98dddb52010-11-04 00:30:15 +000035742# as_fn_error STATUS ERROR [LINENO LOG_FD]
35743# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035744# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35745# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035746# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035747as_fn_error ()
35748{
cristy98dddb52010-11-04 00:30:15 +000035749 as_status=$1; test $as_status -eq 0 && as_status=1
35750 if test "$4"; then
35751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035753 fi
cristy98dddb52010-11-04 00:30:15 +000035754 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035755 as_fn_exit $as_status
35756} # as_fn_error
35757
35758
35759# as_fn_set_status STATUS
35760# -----------------------
35761# Set $? to STATUS, without forking.
35762as_fn_set_status ()
35763{
35764 return $1
35765} # as_fn_set_status
35766
35767# as_fn_exit STATUS
35768# -----------------
35769# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35770as_fn_exit ()
35771{
35772 set +e
35773 as_fn_set_status $1
35774 exit $1
35775} # as_fn_exit
35776
35777# as_fn_unset VAR
35778# ---------------
35779# Portably unset VAR.
35780as_fn_unset ()
35781{
35782 { eval $1=; unset $1;}
35783}
35784as_unset=as_fn_unset
35785# as_fn_append VAR VALUE
35786# ----------------------
35787# Append the text in VALUE to the end of the definition contained in VAR. Take
35788# advantage of any shell optimizations that allow amortized linear growth over
35789# repeated appends, instead of the typical quadratic growth present in naive
35790# implementations.
35791if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35792 eval 'as_fn_append ()
35793 {
35794 eval $1+=\$2
35795 }'
35796else
35797 as_fn_append ()
35798 {
35799 eval $1=\$$1\$2
35800 }
35801fi # as_fn_append
35802
35803# as_fn_arith ARG...
35804# ------------------
35805# Perform arithmetic evaluation on the ARGs, and store the result in the
35806# global $as_val. Take advantage of shells that can avoid forks. The arguments
35807# must be portable across $(()) and expr.
35808if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35809 eval 'as_fn_arith ()
35810 {
35811 as_val=$(( $* ))
35812 }'
35813else
35814 as_fn_arith ()
35815 {
35816 as_val=`expr "$@" || test $? -eq 1`
35817 }
35818fi # as_fn_arith
35819
35820
cristy3ed852e2009-09-05 21:47:34 +000035821if expr a : '\(a\)' >/dev/null 2>&1 &&
35822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35823 as_expr=expr
35824else
35825 as_expr=false
35826fi
35827
35828if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35829 as_basename=basename
35830else
35831 as_basename=false
35832fi
35833
cristy8b350f62009-11-15 23:12:43 +000035834if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35835 as_dirname=dirname
35836else
35837 as_dirname=false
35838fi
cristy3ed852e2009-09-05 21:47:34 +000035839
cristy3ed852e2009-09-05 21:47:34 +000035840as_me=`$as_basename -- "$0" ||
35841$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35842 X"$0" : 'X\(//\)$' \| \
35843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35844$as_echo X/"$0" |
35845 sed '/^.*\/\([^/][^/]*\)\/*$/{
35846 s//\1/
35847 q
35848 }
35849 /^X\/\(\/\/\)$/{
35850 s//\1/
35851 q
35852 }
35853 /^X\/\(\/\).*/{
35854 s//\1/
35855 q
35856 }
35857 s/.*/./; q'`
35858
cristy8b350f62009-11-15 23:12:43 +000035859# Avoid depending upon Character Ranges.
35860as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35861as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35862as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35863as_cr_digits='0123456789'
35864as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035865
35866ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035867case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035868-n*)
cristy8b350f62009-11-15 23:12:43 +000035869 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035871 xy) ECHO_C='\c';;
35872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35873 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035874 esac;;
35875*)
35876 ECHO_N='-n';;
35877esac
cristy3ed852e2009-09-05 21:47:34 +000035878
35879rm -f conf$$ conf$$.exe conf$$.file
35880if test -d conf$$.dir; then
35881 rm -f conf$$.dir/conf$$.file
35882else
35883 rm -f conf$$.dir
35884 mkdir conf$$.dir 2>/dev/null
35885fi
35886if (echo >conf$$.file) 2>/dev/null; then
35887 if ln -s conf$$.file conf$$ 2>/dev/null; then
35888 as_ln_s='ln -s'
35889 # ... but there are two gotchas:
35890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35892 # In both cases, we have to default to `cp -p'.
35893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35894 as_ln_s='cp -p'
35895 elif ln conf$$.file conf$$ 2>/dev/null; then
35896 as_ln_s=ln
35897 else
35898 as_ln_s='cp -p'
35899 fi
35900else
35901 as_ln_s='cp -p'
35902fi
35903rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35904rmdir conf$$.dir 2>/dev/null
35905
cristy8b350f62009-11-15 23:12:43 +000035906
35907# as_fn_mkdir_p
35908# -------------
35909# Create "$as_dir" as a directory, including parents if necessary.
35910as_fn_mkdir_p ()
35911{
35912
35913 case $as_dir in #(
35914 -*) as_dir=./$as_dir;;
35915 esac
35916 test -d "$as_dir" || eval $as_mkdir_p || {
35917 as_dirs=
35918 while :; do
35919 case $as_dir in #(
35920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35921 *) as_qdir=$as_dir;;
35922 esac
35923 as_dirs="'$as_qdir' $as_dirs"
35924 as_dir=`$as_dirname -- "$as_dir" ||
35925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35926 X"$as_dir" : 'X\(//\)[^/]' \| \
35927 X"$as_dir" : 'X\(//\)$' \| \
35928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35929$as_echo X"$as_dir" |
35930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35931 s//\1/
35932 q
35933 }
35934 /^X\(\/\/\)[^/].*/{
35935 s//\1/
35936 q
35937 }
35938 /^X\(\/\/\)$/{
35939 s//\1/
35940 q
35941 }
35942 /^X\(\/\).*/{
35943 s//\1/
35944 q
35945 }
35946 s/.*/./; q'`
35947 test -d "$as_dir" && break
35948 done
35949 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035951
35952
35953} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035954if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035955 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035956else
35957 test -d ./-p && rmdir ./-p
35958 as_mkdir_p=false
35959fi
35960
35961if test -x / >/dev/null 2>&1; then
35962 as_test_x='test -x'
35963else
35964 if ls -dL / >/dev/null 2>&1; then
35965 as_ls_L_option=L
35966 else
35967 as_ls_L_option=
35968 fi
35969 as_test_x='
35970 eval sh -c '\''
35971 if test -d "$1"; then
35972 test -d "$1/.";
35973 else
cristy8b350f62009-11-15 23:12:43 +000035974 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035975 -*)set "./$1";;
35976 esac;
cristy8b350f62009-11-15 23:12:43 +000035977 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035978 ???[sx]*):;;*)false;;esac;fi
35979 '\'' sh
35980 '
35981fi
35982as_executable_p=$as_test_x
35983
35984# Sed expression to map a string onto a valid CPP name.
35985as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35986
35987# Sed expression to map a string onto a valid variable name.
35988as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35989
35990
35991exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035992## ----------------------------------- ##
35993## Main body of $CONFIG_STATUS script. ##
35994## ----------------------------------- ##
35995_ASEOF
35996test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035997
cristy8b350f62009-11-15 23:12:43 +000035998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35999# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036000# report actual input values of CONFIG_FILES etc. instead of their
36001# values after options handling.
36002ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036003This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036004generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036005
36006 CONFIG_FILES = $CONFIG_FILES
36007 CONFIG_HEADERS = $CONFIG_HEADERS
36008 CONFIG_LINKS = $CONFIG_LINKS
36009 CONFIG_COMMANDS = $CONFIG_COMMANDS
36010 $ $0 $@
36011
36012on `(hostname || uname -n) 2>/dev/null | sed 1q`
36013"
36014
36015_ACEOF
36016
36017case $ac_config_files in *"
36018"*) set x $ac_config_files; shift; ac_config_files=$*;;
36019esac
36020
36021case $ac_config_headers in *"
36022"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36023esac
36024
36025
36026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36027# Files that config.status was made for.
36028config_files="$ac_config_files"
36029config_headers="$ac_config_headers"
36030config_commands="$ac_config_commands"
36031
36032_ACEOF
36033
36034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36035ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036036\`$as_me' instantiates files and other configuration actions
36037from templates according to the current configuration. Unless the files
36038and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036039
cristy8b350f62009-11-15 23:12:43 +000036040Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036041
36042 -h, --help print this help, then exit
36043 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036044 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036045 -q, --quiet, --silent
36046 do not print progress messages
36047 -d, --debug don't remove temporary files
36048 --recheck update $as_me by reconfiguring in the same conditions
36049 --file=FILE[:TEMPLATE]
36050 instantiate the configuration file FILE
36051 --header=FILE[:TEMPLATE]
36052 instantiate the configuration header FILE
36053
36054Configuration files:
36055$config_files
36056
36057Configuration headers:
36058$config_headers
36059
36060Configuration commands:
36061$config_commands
36062
cristy8b350f62009-11-15 23:12:43 +000036063Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036064
36065_ACEOF
36066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036067ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036068ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036069ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036070configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036071 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036072
cristy98dddb52010-11-04 00:30:15 +000036073Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036074This config.status script is free software; the Free Software Foundation
36075gives unlimited permission to copy, distribute and modify it."
36076
36077ac_pwd='$ac_pwd'
36078srcdir='$srcdir'
36079INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036080MKDIR_P='$MKDIR_P'
36081AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036082test -n "\$AWK" || AWK=awk
36083_ACEOF
36084
36085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36086# The default lists apply if the user does not specify any file.
36087ac_need_defaults=:
36088while test $# != 0
36089do
36090 case $1 in
cristyda16f162011-02-19 23:52:17 +000036091 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36094 ac_shift=:
36095 ;;
cristyda16f162011-02-19 23:52:17 +000036096 --*=)
36097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36098 ac_optarg=
36099 ac_shift=:
36100 ;;
cristy3ed852e2009-09-05 21:47:34 +000036101 *)
36102 ac_option=$1
36103 ac_optarg=$2
36104 ac_shift=shift
36105 ;;
36106 esac
36107
36108 case $ac_option in
36109 # Handling of the options.
36110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36111 ac_cs_recheck=: ;;
36112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36113 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036114 --config | --confi | --conf | --con | --co | --c )
36115 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036116 --debug | --debu | --deb | --de | --d | -d )
36117 debug=: ;;
36118 --file | --fil | --fi | --f )
36119 $ac_shift
36120 case $ac_optarg in
36121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036122 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036123 esac
cristy8b350f62009-11-15 23:12:43 +000036124 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036125 ac_need_defaults=false;;
36126 --header | --heade | --head | --hea )
36127 $ac_shift
36128 case $ac_optarg in
36129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36130 esac
cristy8b350f62009-11-15 23:12:43 +000036131 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036132 ac_need_defaults=false;;
36133 --he | --h)
36134 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036135 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036136Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036137 --help | --hel | -h )
36138 $as_echo "$ac_cs_usage"; exit ;;
36139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36141 ac_cs_silent=: ;;
36142
36143 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036144 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036145Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036146
cristy8b350f62009-11-15 23:12:43 +000036147 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036148 ac_need_defaults=false ;;
36149
36150 esac
36151 shift
36152done
36153
36154ac_configure_extra_args=
36155
36156if $ac_cs_silent; then
36157 exec 6>/dev/null
36158 ac_configure_extra_args="$ac_configure_extra_args --silent"
36159fi
36160
36161_ACEOF
36162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36163if \$ac_cs_recheck; then
36164 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36165 shift
36166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36167 CONFIG_SHELL='$SHELL'
36168 export CONFIG_SHELL
36169 exec "\$@"
36170fi
36171
36172_ACEOF
36173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36174exec 5>>config.log
36175{
36176 echo
36177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36178## Running $as_me. ##
36179_ASBOX
36180 $as_echo "$ac_log"
36181} >&5
36182
36183_ACEOF
36184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036185#
36186# INIT-COMMANDS
36187#
36188PACKAGE="$PACKAGE"
36189AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36190
36191
36192# The HP-UX ksh and POSIX shell print the target directory to stdout
36193# if CDPATH is set.
36194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36195
36196sed_quote_subst='$sed_quote_subst'
36197double_quote_subst='$double_quote_subst'
36198delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036199SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36200Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36201GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36202EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36203FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36204SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36205ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36206LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36207macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36208macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36209AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36210DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36211OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36212enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36213enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36214pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36215enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036216PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036217host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36218host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36219host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36220build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36221build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36222build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36223NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36224LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36225max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36226ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36227exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36228lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36229lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36230lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036231lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36232lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036233reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36234reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36235deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36236file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036237file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36238want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36239sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036240AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36241AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036242archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036243STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36244RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36245old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36246old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36247old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36248lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36249CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36250CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36251compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36252GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36253lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36254lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36255lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36256lt_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 +000036257nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36258lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036259objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36260MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36261lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036262lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036263lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036264lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36265lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36266need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036267MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036268DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36269NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36270LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36271OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36272OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36273libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36274shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36275extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36276archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36277enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36278export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36279whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36280compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36281old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36282old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36283archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36284archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36285module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36286module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36287with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36288allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36289no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36290hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036291hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36292hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36293hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36294hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36295hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36296hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36297inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36298link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036299always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36300export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36301exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36302include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36303prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036304postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036305file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36306variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36307need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36308need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36309version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36310runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36311shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36312shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36313libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36314library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36315soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36316install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36317postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36318postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36319finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36320finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36321hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36322sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36323sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36324hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36325enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36326enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36327enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36328old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36329striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36330compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36331predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36332postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36333predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36334postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36335compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36336LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36337reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36338reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36339old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36340compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36341GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36342lt_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 +000036343lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036344lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036345lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36346lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36347archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36348enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36349export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36350whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36351compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36352old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36353old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36354archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36355archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36356module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36357module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36358with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36359allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36360no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36361hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036362hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36363hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36364hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36365hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36366hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36367hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36368inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36369link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036370always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36371export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36372exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36373include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36374prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036375postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036376file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36377hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36378compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36379predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36380postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36381predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36382postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36383compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036384
36385LTCC='$LTCC'
36386LTCFLAGS='$LTCFLAGS'
36387compiler='$compiler_DEFAULT'
36388
cristy0c60a692010-11-04 01:09:47 +000036389# A function that is used when there is no print builtin or printf.
36390func_fallback_echo ()
36391{
36392 eval 'cat <<_LTECHO_EOF
36393\$1
36394_LTECHO_EOF'
36395}
36396
cristy73bd4a52010-10-05 11:24:23 +000036397# Quote evaled strings.
36398for var in SED \
36399GREP \
36400EGREP \
36401FGREP \
cristy0c60a692010-11-04 01:09:47 +000036402SHELL \
36403ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036404LD \
cristy0c60a692010-11-04 01:09:47 +000036405AS \
36406DLLTOOL \
36407OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036408PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036409NM \
36410LN_S \
36411lt_SP2NL \
36412lt_NL2SP \
36413reload_flag \
36414deplibs_check_method \
36415file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036416file_magic_glob \
36417want_nocaseglob \
36418sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036419AR \
36420AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036421archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036422STRIP \
36423RANLIB \
36424CC \
36425CFLAGS \
36426compiler \
36427lt_cv_sys_global_symbol_pipe \
36428lt_cv_sys_global_symbol_to_cdecl \
36429lt_cv_sys_global_symbol_to_c_name_address \
36430lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036431nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036432lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036433lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036434lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036435lt_prog_compiler_static \
36436lt_cv_prog_compiler_c_o \
36437need_locks \
cristyda16f162011-02-19 23:52:17 +000036438MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036439DSYMUTIL \
36440NMEDIT \
36441LIPO \
36442OTOOL \
36443OTOOL64 \
36444shrext_cmds \
36445export_dynamic_flag_spec \
36446whole_archive_flag_spec \
36447compiler_needs_object \
36448with_gnu_ld \
36449allow_undefined_flag \
36450no_undefined_flag \
36451hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036452hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036453exclude_expsyms \
36454include_expsyms \
36455file_list_spec \
36456variables_saved_for_relink \
36457libname_spec \
36458library_names_spec \
36459soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036460install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036461finish_eval \
36462old_striplib \
36463striplib \
36464compiler_lib_search_dirs \
36465predep_objects \
36466postdep_objects \
36467predeps \
36468postdeps \
36469compiler_lib_search_path \
36470LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036471reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036472compiler_CXX \
36473lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036474lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036475lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036476lt_prog_compiler_static_CXX \
36477lt_cv_prog_compiler_c_o_CXX \
36478export_dynamic_flag_spec_CXX \
36479whole_archive_flag_spec_CXX \
36480compiler_needs_object_CXX \
36481with_gnu_ld_CXX \
36482allow_undefined_flag_CXX \
36483no_undefined_flag_CXX \
36484hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036485hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036486exclude_expsyms_CXX \
36487include_expsyms_CXX \
36488file_list_spec_CXX \
36489compiler_lib_search_dirs_CXX \
36490predep_objects_CXX \
36491postdep_objects_CXX \
36492predeps_CXX \
36493postdeps_CXX \
36494compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036496 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036498 ;;
36499 *)
36500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36501 ;;
36502 esac
36503done
36504
36505# Double-quote double-evaled strings.
36506for var in reload_cmds \
36507old_postinstall_cmds \
36508old_postuninstall_cmds \
36509old_archive_cmds \
36510extract_expsyms_cmds \
36511old_archive_from_new_cmds \
36512old_archive_from_expsyms_cmds \
36513archive_cmds \
36514archive_expsym_cmds \
36515module_cmds \
36516module_expsym_cmds \
36517export_symbols_cmds \
36518prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036519postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036520postinstall_cmds \
36521postuninstall_cmds \
36522finish_cmds \
36523sys_lib_search_path_spec \
36524sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036525reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036526old_archive_cmds_CXX \
36527old_archive_from_new_cmds_CXX \
36528old_archive_from_expsyms_cmds_CXX \
36529archive_cmds_CXX \
36530archive_expsym_cmds_CXX \
36531module_cmds_CXX \
36532module_expsym_cmds_CXX \
36533export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036534prelink_cmds_CXX \
36535postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036537 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036539 ;;
36540 *)
36541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36542 ;;
36543 esac
36544done
36545
cristy73bd4a52010-10-05 11:24:23 +000036546ac_aux_dir='$ac_aux_dir'
36547xsi_shell='$xsi_shell'
36548lt_shell_append='$lt_shell_append'
36549
36550# See if we are running on zsh, and set the options which allow our
36551# commands through without removal of \ escapes INIT.
36552if test -n "\${ZSH_VERSION+set}" ; then
36553 setopt NO_GLOB_SUBST
36554fi
36555
36556
36557 PACKAGE='$PACKAGE'
36558 VERSION='$VERSION'
36559 TIMESTAMP='$TIMESTAMP'
36560 RM='$RM'
36561 ofile='$ofile'
36562
36563
36564
36565
36566
36567
cristy3ed852e2009-09-05 21:47:34 +000036568_ACEOF
36569
36570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36571
36572# Handling of arguments.
36573for ac_config_target in $ac_config_targets
36574do
36575 case $ac_config_target in
36576 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036577 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036578 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36579 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36580 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36581 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36582 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036583 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036584 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36585 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36586 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36587 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36588 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036589 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036590 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36591 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036592 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36593 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36594 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036595 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36596 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36597 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36598 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36599 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36600 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36601 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36602 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36603 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36604 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36605 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36606 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36607 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36608 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36609 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36610 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36611 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036612 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36613 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036614 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36615 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036616 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36617 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036618 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036619 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36620 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36621
cristy98dddb52010-11-04 00:30:15 +000036622 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036623 esac
36624done
36625
36626
36627# If the user did not use the arguments to specify the items to instantiate,
36628# then the envvar interface is used. Set only those that are not.
36629# We use the long form for the default assignment because of an extremely
36630# bizarre bug on SunOS 4.1.3.
36631if $ac_need_defaults; then
36632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36635fi
36636
36637# Have a temporary directory for convenience. Make it in the build tree
36638# simply because there is no reason against having it here, and in addition,
36639# creating and moving files from /tmp can sometimes cause problems.
36640# Hook for its removal unless debugging.
36641# Note that there is a small window in which the directory will not be cleaned:
36642# after its creation but before its name has been assigned to `$tmp'.
36643$debug ||
36644{
cristyda16f162011-02-19 23:52:17 +000036645 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036646 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036647 : "${ac_tmp:=$tmp}"
36648 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036649' 0
cristy8b350f62009-11-15 23:12:43 +000036650 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036651}
36652# Create a (secure) tmp directory for tmp files.
36653
36654{
36655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036656 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036657} ||
36658{
36659 tmp=./conf$$-$RANDOM
36660 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036662ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036663
36664# Set up the scripts for CONFIG_FILES section.
36665# No need to generate them if there are no CONFIG_FILES.
36666# This happens for instance with `./config.status config.h'.
36667if test -n "$CONFIG_FILES"; then
36668
36669
cristy8b350f62009-11-15 23:12:43 +000036670ac_cr=`echo X | tr X '\015'`
36671# On cygwin, bash can eat \r inside `` if the user requested igncr.
36672# But we know of no other shell where ac_cr would be empty at this
36673# point, so we can use a bashism as a fallback.
36674if test "x$ac_cr" = x; then
36675 eval ac_cr=\$\'\\r\'
36676fi
cristy3ed852e2009-09-05 21:47:34 +000036677ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36678if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036679 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036680else
36681 ac_cs_awk_cr=$ac_cr
36682fi
36683
cristyda16f162011-02-19 23:52:17 +000036684echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036685_ACEOF
36686
36687
36688{
36689 echo "cat >conf$$subs.awk <<_ACEOF" &&
36690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36691 echo "_ACEOF"
36692} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036695ac_delim='%!_!# '
36696for ac_last_try in false false false false false :; do
36697 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036699
36700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36701 if test $ac_delim_n = $ac_delim_num; then
36702 break
36703 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036705 else
36706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36707 fi
36708done
36709rm -f conf$$subs.sh
36710
36711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036712cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036713_ACEOF
36714sed -n '
36715h
36716s/^/S["/; s/!.*/"]=/
36717p
36718g
36719s/^[^!]*!//
36720:repl
36721t repl
36722s/'"$ac_delim"'$//
36723t delim
36724:nl
36725h
cristycd4c5312009-11-22 01:19:08 +000036726s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036727t more1
36728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36729p
36730n
36731b repl
36732:more1
36733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36734p
36735g
36736s/.\{148\}//
36737t nl
36738:delim
36739h
cristycd4c5312009-11-22 01:19:08 +000036740s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036741t more2
36742s/["\\]/\\&/g; s/^/"/; s/$/"/
36743p
36744b
36745:more2
36746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36747p
36748g
36749s/.\{148\}//
36750t delim
36751' <conf$$subs.awk | sed '
36752/^[^""]/{
36753 N
36754 s/\n//
36755}
36756' >>$CONFIG_STATUS || ac_write_fail=1
36757rm -f conf$$subs.awk
36758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36759_ACAWK
cristyda16f162011-02-19 23:52:17 +000036760cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036761 for (key in S) S_is_set[key] = 1
36762 FS = ""
36763
36764}
36765{
36766 line = $ 0
36767 nfields = split(line, field, "@")
36768 substed = 0
36769 len = length(field[1])
36770 for (i = 2; i < nfields; i++) {
36771 key = field[i]
36772 keylen = length(key)
36773 if (S_is_set[key]) {
36774 value = S[key]
36775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36776 len += length(value) + length(field[++i])
36777 substed = 1
36778 } else
36779 len += 1 + keylen
36780 }
36781
36782 print line
36783}
36784
36785_ACAWK
36786_ACEOF
36787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36788if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36790else
36791 cat
cristyda16f162011-02-19 23:52:17 +000036792fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036794_ACEOF
36795
cristy98dddb52010-11-04 00:30:15 +000036796# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36797# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036798# trailing colons and then remove the whole line if VPATH becomes empty
36799# (actually we leave an empty line to preserve line numbers).
36800if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36802h
36803s///
36804s/^/:/
36805s/[ ]*$/:/
36806s/:\$(srcdir):/:/g
36807s/:\${srcdir}:/:/g
36808s/:@srcdir@:/:/g
36809s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036810s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036811x
36812s/\(=[ ]*\).*/\1/
36813G
36814s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036815s/^[^=]*=[ ]*$//
36816}'
36817fi
36818
36819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36820fi # test -n "$CONFIG_FILES"
36821
36822# Set up the scripts for CONFIG_HEADERS section.
36823# No need to generate them if there are no CONFIG_HEADERS.
36824# This happens for instance with `./config.status Makefile'.
36825if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036826cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036827BEGIN {
36828_ACEOF
36829
36830# Transform confdefs.h into an awk script `defines.awk', embedded as
36831# here-document in config.status, that substitutes the proper values into
36832# config.h.in to produce config.h.
36833
36834# Create a delimiter string that does not exist in confdefs.h, to ease
36835# handling of long lines.
36836ac_delim='%!_!# '
36837for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036838 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36839 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036840 break
36841 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036842 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036843 else
36844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36845 fi
36846done
36847
36848# For the awk script, D is an array of macro values keyed by name,
36849# likewise P contains macro parameters if any. Preserve backslash
36850# newline sequences.
36851
36852ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36853sed -n '
36854s/.\{148\}/&'"$ac_delim"'/g
36855t rset
36856:rset
36857s/^[ ]*#[ ]*define[ ][ ]*/ /
36858t def
36859d
36860:def
36861s/\\$//
36862t bsnl
36863s/["\\]/\\&/g
36864s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36865D["\1"]=" \3"/p
36866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36867d
36868:bsnl
36869s/["\\]/\\&/g
36870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36871D["\1"]=" \3\\\\\\n"\\/p
36872t cont
36873s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36874t cont
36875d
36876:cont
36877n
36878s/.\{148\}/&'"$ac_delim"'/g
36879t clear
36880:clear
36881s/\\$//
36882t bsnlc
36883s/["\\]/\\&/g; s/^/"/; s/$/"/p
36884d
36885:bsnlc
36886s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36887b cont
36888' <confdefs.h | sed '
36889s/'"$ac_delim"'/"\\\
36890"/g' >>$CONFIG_STATUS || ac_write_fail=1
36891
36892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36893 for (key in D) D_is_set[key] = 1
36894 FS = ""
36895}
36896/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36897 line = \$ 0
36898 split(line, arg, " ")
36899 if (arg[1] == "#") {
36900 defundef = arg[2]
36901 mac1 = arg[3]
36902 } else {
36903 defundef = substr(arg[1], 2)
36904 mac1 = arg[2]
36905 }
36906 split(mac1, mac2, "(") #)
36907 macro = mac2[1]
36908 prefix = substr(line, 1, index(line, defundef) - 1)
36909 if (D_is_set[macro]) {
36910 # Preserve the white space surrounding the "#".
36911 print prefix "define", macro P[macro] D[macro]
36912 next
36913 } else {
36914 # Replace #undef with comments. This is necessary, for example,
36915 # in the case of _POSIX_SOURCE, which is predefined and required
36916 # on some systems where configure will not decide to define it.
36917 if (defundef == "undef") {
36918 print "/*", prefix defundef, macro, "*/"
36919 next
36920 }
36921 }
36922}
36923{ print }
36924_ACAWK
36925_ACEOF
36926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036927 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036928fi # test -n "$CONFIG_HEADERS"
36929
36930
36931eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36932shift
36933for ac_tag
36934do
36935 case $ac_tag in
36936 :[FHLC]) ac_mode=$ac_tag; continue;;
36937 esac
36938 case $ac_mode$ac_tag in
36939 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036940 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036941 :[FH]-) ac_tag=-:-;;
36942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36943 esac
36944 ac_save_IFS=$IFS
36945 IFS=:
36946 set x $ac_tag
36947 IFS=$ac_save_IFS
36948 shift
36949 ac_file=$1
36950 shift
36951
36952 case $ac_mode in
36953 :L) ac_source=$1;;
36954 :[FH])
36955 ac_file_inputs=
36956 for ac_f
36957 do
36958 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036959 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036960 *) # Look for the file first in the build tree, then in the source tree
36961 # (if the path is not absolute). The absolute path cannot be DOS-style,
36962 # because $ac_f cannot contain `:'.
36963 test -f "$ac_f" ||
36964 case $ac_f in
36965 [\\/$]*) false;;
36966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36967 esac ||
cristy98dddb52010-11-04 00:30:15 +000036968 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036969 esac
36970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036971 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036972 done
36973
36974 # Let's still pretend it is `configure' which instantiates (i.e., don't
36975 # use $as_me), people would be surprised to read:
36976 # /* config.h. Generated by config.status. */
36977 configure_input='Generated from '`
36978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36979 `' by configure.'
36980 if test x"$ac_file" != x-; then
36981 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036983$as_echo "$as_me: creating $ac_file" >&6;}
36984 fi
36985 # Neutralize special characters interpreted by sed in replacement strings.
36986 case $configure_input in #(
36987 *\&* | *\|* | *\\* )
36988 ac_sed_conf_input=`$as_echo "$configure_input" |
36989 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36990 *) ac_sed_conf_input=$configure_input;;
36991 esac
36992
36993 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036994 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036996 esac
36997 ;;
36998 esac
36999
37000 ac_dir=`$as_dirname -- "$ac_file" ||
37001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37002 X"$ac_file" : 'X\(//\)[^/]' \| \
37003 X"$ac_file" : 'X\(//\)$' \| \
37004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37005$as_echo X"$ac_file" |
37006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37007 s//\1/
37008 q
37009 }
37010 /^X\(\/\/\)[^/].*/{
37011 s//\1/
37012 q
37013 }
37014 /^X\(\/\/\)$/{
37015 s//\1/
37016 q
37017 }
37018 /^X\(\/\).*/{
37019 s//\1/
37020 q
37021 }
37022 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037023 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037024 ac_builddir=.
37025
37026case "$ac_dir" in
37027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37028*)
37029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37030 # A ".." for each directory in $ac_dir_suffix.
37031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37032 case $ac_top_builddir_sub in
37033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37035 esac ;;
37036esac
37037ac_abs_top_builddir=$ac_pwd
37038ac_abs_builddir=$ac_pwd$ac_dir_suffix
37039# for backward compatibility:
37040ac_top_builddir=$ac_top_build_prefix
37041
37042case $srcdir in
37043 .) # We are building in place.
37044 ac_srcdir=.
37045 ac_top_srcdir=$ac_top_builddir_sub
37046 ac_abs_top_srcdir=$ac_pwd ;;
37047 [\\/]* | ?:[\\/]* ) # Absolute name.
37048 ac_srcdir=$srcdir$ac_dir_suffix;
37049 ac_top_srcdir=$srcdir
37050 ac_abs_top_srcdir=$srcdir ;;
37051 *) # Relative name.
37052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37053 ac_top_srcdir=$ac_top_build_prefix$srcdir
37054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37055esac
37056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37057
37058
37059 case $ac_mode in
37060 :F)
37061 #
37062 # CONFIG_FILE
37063 #
37064
37065 case $INSTALL in
37066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37068 esac
cristy73bd4a52010-10-05 11:24:23 +000037069 ac_MKDIR_P=$MKDIR_P
37070 case $MKDIR_P in
37071 [\\/$]* | ?:[\\/]* ) ;;
37072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37073 esac
cristy3ed852e2009-09-05 21:47:34 +000037074_ACEOF
37075
37076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37077# If the template does not know about datarootdir, expand it.
37078# FIXME: This hack should be removed a few years after 2.60.
37079ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037080ac_sed_dataroot='
37081/datarootdir/ {
37082 p
37083 q
37084}
37085/@datadir@/p
37086/@docdir@/p
37087/@infodir@/p
37088/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037089/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037090case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37091*datarootdir*) ac_datarootdir_seen=yes;;
37092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037094$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37095_ACEOF
37096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37097 ac_datarootdir_hack='
37098 s&@datadir@&$datadir&g
37099 s&@docdir@&$docdir&g
37100 s&@infodir@&$infodir&g
37101 s&@localedir@&$localedir&g
37102 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037103 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037104esac
37105_ACEOF
37106
37107# Neutralize VPATH when `$srcdir' = `.'.
37108# Shell code in configure.ac might set extrasub.
37109# FIXME: do we really want to maintain this feature?
37110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37111ac_sed_extra="$ac_vpsub
37112$extrasub
37113_ACEOF
37114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37115:t
37116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37117s|@configure_input@|$ac_sed_conf_input|;t t
37118s&@top_builddir@&$ac_top_builddir_sub&;t t
37119s&@top_build_prefix@&$ac_top_build_prefix&;t t
37120s&@srcdir@&$ac_srcdir&;t t
37121s&@abs_srcdir@&$ac_abs_srcdir&;t t
37122s&@top_srcdir@&$ac_top_srcdir&;t t
37123s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37124s&@builddir@&$ac_builddir&;t t
37125s&@abs_builddir@&$ac_abs_builddir&;t t
37126s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37127s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037128s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037129$ac_datarootdir_hack
37130"
cristyda16f162011-02-19 23:52:17 +000037131eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037133
37134test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37137 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037139which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037140$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037141which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037142
cristyda16f162011-02-19 23:52:17 +000037143 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037144 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037147 esac \
cristy98dddb52010-11-04 00:30:15 +000037148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037149 ;;
37150 :H)
37151 #
37152 # CONFIG_HEADER
37153 #
37154 if test x"$ac_file" != x-; then
37155 {
37156 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37158 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037160 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037162$as_echo "$as_me: $ac_file is unchanged" >&6;}
37163 else
37164 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037165 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037167 fi
37168 else
37169 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037171 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037172 fi
cristy73bd4a52010-10-05 11:24:23 +000037173# Compute "$ac_file"'s index in $config_headers.
37174_am_arg="$ac_file"
37175_am_stamp_count=1
37176for _am_header in $config_headers :; do
37177 case $_am_header in
37178 $_am_arg | $_am_arg:* )
37179 break ;;
37180 * )
37181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37182 esac
37183done
37184echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37185$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37186 X"$_am_arg" : 'X\(//\)[^/]' \| \
37187 X"$_am_arg" : 'X\(//\)$' \| \
37188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37189$as_echo X"$_am_arg" |
37190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37191 s//\1/
37192 q
37193 }
37194 /^X\(\/\/\)[^/].*/{
37195 s//\1/
37196 q
37197 }
37198 /^X\(\/\/\)$/{
37199 s//\1/
37200 q
37201 }
37202 /^X\(\/\).*/{
37203 s//\1/
37204 q
37205 }
37206 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037207 ;;
37208
cristy8b350f62009-11-15 23:12:43 +000037209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037210$as_echo "$as_me: executing $ac_file commands" >&6;}
37211 ;;
37212 esac
37213
37214
37215 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037216 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037217ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37218ac_prefix_conf_PKG=`echo MagickCore`
37219ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37220ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37221ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37222if test ".$ac_prefix_conf_INP" = "."; then
37223 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37224 case "$ac_file" in
37225 *.h) ac_prefix_conf_INP=$ac_file ;;
37226 *)
37227 esac
37228 test ".$ac_prefix_conf_INP" != "." && break
37229 done
37230fi
37231if test ".$ac_prefix_conf_INP" = "."; then
37232 case "$ac_prefix_conf_OUT" in
37233 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37234 ;;
37235 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37236 ;;
37237 *) ac_prefix_conf_INP=config.h
37238 ;;
37239 esac
37240fi
37241if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037242 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037243else
37244 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37245 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37246 fi fi
37247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37248$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37249 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037250 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37251 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37252 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37253 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37254 $as_echo "#endif/" >> conftest.prefix
37255 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37256 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37257 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037258 # now executing _script on _DEF input to create _OUT output file
37259 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37260 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37261 echo ' ' >>$tmp/pconfig.h
37262 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37263
37264 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37265 echo ' ' >>$tmp/pconfig.h
37266 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37267 echo "#endif" >>$tmp/pconfig.h
37268 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37270$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37271 else
37272 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37273$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37274 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37275 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37276 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37277$as_echo X"$ac_prefix_conf_OUT" |
37278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37279 s//\1/
37280 q
37281 }
37282 /^X\(\/\/\)[^/].*/{
37283 s//\1/
37284 q
37285 }
37286 /^X\(\/\/\)$/{
37287 s//\1/
37288 q
37289 }
37290 /^X\(\/\).*/{
37291 s//\1/
37292 q
37293 }
37294 s/.*/./; q'`
37295 as_dir="$ac_dir"; as_fn_mkdir_p
37296 rm -f "$ac_prefix_conf_OUT"
37297 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37298 fi
37299 cp conftest.prefix _configs.sed
37300 else
cristy98dddb52010-11-04 00:30:15 +000037301 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 +000037302 fi
37303 rm -f conftest.*
37304fi
37305 ;;
37306 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37307 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37308 # are listed without --file. Let's play safe and only enable the eval
37309 # if we detect the quoting.
37310 case $CONFIG_FILES in
37311 *\'*) eval set x "$CONFIG_FILES" ;;
37312 *) set x $CONFIG_FILES ;;
37313 esac
37314 shift
37315 for mf
37316 do
37317 # Strip MF so we end up with the name of the file.
37318 mf=`echo "$mf" | sed -e 's/:.*$//'`
37319 # Check whether this is an Automake generated Makefile or not.
37320 # We used to match only the files named `Makefile.in', but
37321 # some people rename them; so instead we look at the file content.
37322 # Grep'ing the first line is not enough: some people post-process
37323 # each Makefile.in and add a new line on top of each file to say so.
37324 # Grep'ing the whole file is not good either: AIX grep has a line
37325 # limit of 2048, but all sed's we know have understand at least 4000.
37326 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37327 dirpart=`$as_dirname -- "$mf" ||
37328$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37329 X"$mf" : 'X\(//\)[^/]' \| \
37330 X"$mf" : 'X\(//\)$' \| \
37331 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37332$as_echo X"$mf" |
37333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37334 s//\1/
37335 q
37336 }
37337 /^X\(\/\/\)[^/].*/{
37338 s//\1/
37339 q
37340 }
37341 /^X\(\/\/\)$/{
37342 s//\1/
37343 q
37344 }
37345 /^X\(\/\).*/{
37346 s//\1/
37347 q
37348 }
37349 s/.*/./; q'`
37350 else
37351 continue
37352 fi
37353 # Extract the definition of DEPDIR, am__include, and am__quote
37354 # from the Makefile without running `make'.
37355 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37356 test -z "$DEPDIR" && continue
37357 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37358 test -z "am__include" && continue
37359 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37360 # When using ansi2knr, U may be empty or an underscore; expand it
37361 U=`sed -n 's/^U = //p' < "$mf"`
37362 # Find all dependency output files, they are included files with
37363 # $(DEPDIR) in their names. We invoke sed twice because it is the
37364 # simplest approach to changing $(DEPDIR) to its actual value in the
37365 # expansion.
37366 for file in `sed -n "
37367 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37368 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37369 # Make sure the directory exists.
37370 test -f "$dirpart/$file" && continue
37371 fdir=`$as_dirname -- "$file" ||
37372$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37373 X"$file" : 'X\(//\)[^/]' \| \
37374 X"$file" : 'X\(//\)$' \| \
37375 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37376$as_echo X"$file" |
37377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37378 s//\1/
37379 q
37380 }
37381 /^X\(\/\/\)[^/].*/{
37382 s//\1/
37383 q
37384 }
37385 /^X\(\/\/\)$/{
37386 s//\1/
37387 q
37388 }
37389 /^X\(\/\).*/{
37390 s//\1/
37391 q
37392 }
37393 s/.*/./; q'`
37394 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37395 # echo "creating $dirpart/$file"
37396 echo '# dummy' > "$dirpart/$file"
37397 done
37398 done
37399}
37400 ;;
37401 "libtool":C)
37402
37403 # See if we are running on zsh, and set the options which allow our
37404 # commands through without removal of \ escapes.
37405 if test -n "${ZSH_VERSION+set}" ; then
37406 setopt NO_GLOB_SUBST
37407 fi
37408
37409 cfgfile="${ofile}T"
37410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37411 $RM "$cfgfile"
37412
37413 cat <<_LT_EOF >> "$cfgfile"
37414#! $SHELL
37415
37416# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37417# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37418# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37419# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37420#
37421# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037422# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37423# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037424# Written by Gordon Matzigkeit, 1996
37425#
37426# This file is part of GNU Libtool.
37427#
37428# GNU Libtool is free software; you can redistribute it and/or
37429# modify it under the terms of the GNU General Public License as
37430# published by the Free Software Foundation; either version 2 of
37431# the License, or (at your option) any later version.
37432#
37433# As a special exception to the GNU General Public License,
37434# if you distribute this file as part of a program or library that
37435# is built using GNU Libtool, you may include this file under the
37436# same distribution terms that you use for the rest of that program.
37437#
37438# GNU Libtool is distributed in the hope that it will be useful,
37439# but WITHOUT ANY WARRANTY; without even the implied warranty of
37440# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37441# GNU General Public License for more details.
37442#
37443# You should have received a copy of the GNU General Public License
37444# along with GNU Libtool; see the file COPYING. If not, a copy
37445# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37446# obtained by writing to the Free Software Foundation, Inc.,
37447# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37448
37449
37450# The names of the tagged configurations supported by this script.
37451available_tags="CXX "
37452
37453# ### BEGIN LIBTOOL CONFIG
37454
37455# A sed program that does not truncate output.
37456SED=$lt_SED
37457
37458# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37459Xsed="\$SED -e 1s/^X//"
37460
37461# A grep program that handles long lines.
37462GREP=$lt_GREP
37463
37464# An ERE matcher.
37465EGREP=$lt_EGREP
37466
37467# A literal string matcher.
37468FGREP=$lt_FGREP
37469
cristy0c60a692010-11-04 01:09:47 +000037470# Shell to use when invoking shell scripts.
37471SHELL=$lt_SHELL
37472
37473# An echo program that protects backslashes.
37474ECHO=$lt_ECHO
37475
cristy73bd4a52010-10-05 11:24:23 +000037476# Which release of libtool.m4 was used?
37477macro_version=$macro_version
37478macro_revision=$macro_revision
37479
37480# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037481AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037482
37483# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037484DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037485
37486# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037487OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037488
37489# Whether or not to build shared libraries.
37490build_libtool_libs=$enable_shared
37491
37492# Whether or not to build static libraries.
37493build_old_libs=$enable_static
37494
37495# What type of objects to build.
37496pic_mode=$pic_mode
37497
37498# Whether or not to optimize for fast installation.
37499fast_install=$enable_fast_install
37500
cristy99bd5232011-12-07 14:38:20 +000037501# The PATH separator for the build system.
37502PATH_SEPARATOR=$lt_PATH_SEPARATOR
37503
cristy73bd4a52010-10-05 11:24:23 +000037504# The host system.
37505host_alias=$host_alias
37506host=$host
37507host_os=$host_os
37508
37509# The build system.
37510build_alias=$build_alias
37511build=$build
37512build_os=$build_os
37513
37514# A BSD- or MS-compatible name lister.
37515NM=$lt_NM
37516
37517# Whether we need soft or hard links.
37518LN_S=$lt_LN_S
37519
37520# What is the maximum length of a command?
37521max_cmd_len=$max_cmd_len
37522
37523# Object file suffix (normally "o").
37524objext=$ac_objext
37525
37526# Executable file suffix (normally "").
37527exeext=$exeext
37528
37529# whether the shell understands "unset".
37530lt_unset=$lt_unset
37531
37532# turn spaces into newlines.
37533SP2NL=$lt_lt_SP2NL
37534
37535# turn newlines into spaces.
37536NL2SP=$lt_lt_NL2SP
37537
cristyda16f162011-02-19 23:52:17 +000037538# convert \$build file names to \$host format.
37539to_host_file_cmd=$lt_cv_to_host_file_cmd
37540
37541# convert \$build files to toolchain format.
37542to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37543
cristy73bd4a52010-10-05 11:24:23 +000037544# Method to check whether dependent libraries are shared objects.
37545deplibs_check_method=$lt_deplibs_check_method
37546
cristyda16f162011-02-19 23:52:17 +000037547# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037548file_magic_cmd=$lt_file_magic_cmd
37549
cristyda16f162011-02-19 23:52:17 +000037550# How to find potential files when deplibs_check_method = "file_magic".
37551file_magic_glob=$lt_file_magic_glob
37552
37553# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37554want_nocaseglob=$lt_want_nocaseglob
37555
37556# Command to associate shared and link libraries.
37557sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37558
cristy73bd4a52010-10-05 11:24:23 +000037559# The archiver.
37560AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037561
37562# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037563AR_FLAGS=$lt_AR_FLAGS
37564
cristyda16f162011-02-19 23:52:17 +000037565# How to feed a file listing to the archiver.
37566archiver_list_spec=$lt_archiver_list_spec
37567
cristy73bd4a52010-10-05 11:24:23 +000037568# A symbol stripping program.
37569STRIP=$lt_STRIP
37570
37571# Commands used to install an old-style archive.
37572RANLIB=$lt_RANLIB
37573old_postinstall_cmds=$lt_old_postinstall_cmds
37574old_postuninstall_cmds=$lt_old_postuninstall_cmds
37575
cristy0c60a692010-11-04 01:09:47 +000037576# Whether to use a lock for old archive extraction.
37577lock_old_archive_extraction=$lock_old_archive_extraction
37578
cristy73bd4a52010-10-05 11:24:23 +000037579# A C compiler.
37580LTCC=$lt_CC
37581
37582# LTCC compiler flags.
37583LTCFLAGS=$lt_CFLAGS
37584
37585# Take the output of nm and produce a listing of raw symbols and C names.
37586global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37587
37588# Transform the output of nm in a proper C declaration.
37589global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37590
37591# Transform the output of nm in a C name address pair.
37592global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37593
37594# Transform the output of nm in a C name address pair when lib prefix is needed.
37595global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37596
cristyda16f162011-02-19 23:52:17 +000037597# Specify filename containing input files for \$NM.
37598nm_file_list_spec=$lt_nm_file_list_spec
37599
37600# The root where to search for dependent libraries,and in which our libraries should be installed.
37601lt_sysroot=$lt_sysroot
37602
cristy73bd4a52010-10-05 11:24:23 +000037603# The name of the directory that contains temporary libtool files.
37604objdir=$objdir
37605
cristy73bd4a52010-10-05 11:24:23 +000037606# Used to examine libraries when file_magic_cmd begins with "file".
37607MAGIC_CMD=$MAGIC_CMD
37608
37609# Must we lock files when doing compilation?
37610need_locks=$lt_need_locks
37611
cristyda16f162011-02-19 23:52:17 +000037612# Manifest tool.
37613MANIFEST_TOOL=$lt_MANIFEST_TOOL
37614
cristy73bd4a52010-10-05 11:24:23 +000037615# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37616DSYMUTIL=$lt_DSYMUTIL
37617
37618# Tool to change global to local symbols on Mac OS X.
37619NMEDIT=$lt_NMEDIT
37620
37621# Tool to manipulate fat objects and archives on Mac OS X.
37622LIPO=$lt_LIPO
37623
37624# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37625OTOOL=$lt_OTOOL
37626
37627# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37628OTOOL64=$lt_OTOOL64
37629
37630# Old archive suffix (normally "a").
37631libext=$libext
37632
37633# Shared library suffix (normally ".so").
37634shrext_cmds=$lt_shrext_cmds
37635
37636# The commands to extract the exported symbol list from a shared archive.
37637extract_expsyms_cmds=$lt_extract_expsyms_cmds
37638
37639# Variables whose values should be saved in libtool wrapper scripts and
37640# restored at link time.
37641variables_saved_for_relink=$lt_variables_saved_for_relink
37642
37643# Do we need the "lib" prefix for modules?
37644need_lib_prefix=$need_lib_prefix
37645
37646# Do we need a version for libraries?
37647need_version=$need_version
37648
37649# Library versioning type.
37650version_type=$version_type
37651
37652# Shared library runtime path variable.
37653runpath_var=$runpath_var
37654
37655# Shared library path variable.
37656shlibpath_var=$shlibpath_var
37657
37658# Is shlibpath searched before the hard-coded library search path?
37659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37660
37661# Format of library name prefix.
37662libname_spec=$lt_libname_spec
37663
37664# List of archive names. First name is the real one, the rest are links.
37665# The last name is the one that the linker finds with -lNAME
37666library_names_spec=$lt_library_names_spec
37667
37668# The coded name of the library, if different from the real name.
37669soname_spec=$lt_soname_spec
37670
cristy0c60a692010-11-04 01:09:47 +000037671# Permission mode override for installation of shared libraries.
37672install_override_mode=$lt_install_override_mode
37673
cristy73bd4a52010-10-05 11:24:23 +000037674# Command to use after installation of a shared archive.
37675postinstall_cmds=$lt_postinstall_cmds
37676
37677# Command to use after uninstallation of a shared archive.
37678postuninstall_cmds=$lt_postuninstall_cmds
37679
37680# Commands used to finish a libtool library installation in a directory.
37681finish_cmds=$lt_finish_cmds
37682
37683# As "finish_cmds", except a single script fragment to be evaled but
37684# not shown.
37685finish_eval=$lt_finish_eval
37686
37687# Whether we should hardcode library paths into libraries.
37688hardcode_into_libs=$hardcode_into_libs
37689
37690# Compile-time system search path for libraries.
37691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37692
37693# Run-time system search path for libraries.
37694sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37695
37696# Whether dlopen is supported.
37697dlopen_support=$enable_dlopen
37698
37699# Whether dlopen of programs is supported.
37700dlopen_self=$enable_dlopen_self
37701
37702# Whether dlopen of statically linked programs is supported.
37703dlopen_self_static=$enable_dlopen_self_static
37704
37705# Commands to strip libraries.
37706old_striplib=$lt_old_striplib
37707striplib=$lt_striplib
37708
37709
37710# The linker used to build libraries.
37711LD=$lt_LD
37712
cristy0c60a692010-11-04 01:09:47 +000037713# How to create reloadable object files.
37714reload_flag=$lt_reload_flag
37715reload_cmds=$lt_reload_cmds
37716
cristy73bd4a52010-10-05 11:24:23 +000037717# Commands used to build an old-style archive.
37718old_archive_cmds=$lt_old_archive_cmds
37719
37720# A language specific compiler.
37721CC=$lt_compiler
37722
37723# Is the compiler the GNU compiler?
37724with_gcc=$GCC
37725
37726# Compiler flag to turn off builtin functions.
37727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37728
cristy73bd4a52010-10-05 11:24:23 +000037729# Additional compiler flags for building library objects.
37730pic_flag=$lt_lt_prog_compiler_pic
37731
cristyda16f162011-02-19 23:52:17 +000037732# How to pass a linker flag through the compiler.
37733wl=$lt_lt_prog_compiler_wl
37734
cristy73bd4a52010-10-05 11:24:23 +000037735# Compiler flag to prevent dynamic linking.
37736link_static_flag=$lt_lt_prog_compiler_static
37737
37738# Does compiler simultaneously support -c and -o options?
37739compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37740
37741# Whether or not to add -lc for building shared libraries.
37742build_libtool_need_lc=$archive_cmds_need_lc
37743
37744# Whether or not to disallow shared libs when runtime libs are static.
37745allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37746
37747# Compiler flag to allow reflexive dlopens.
37748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37749
37750# Compiler flag to generate shared objects directly from archives.
37751whole_archive_flag_spec=$lt_whole_archive_flag_spec
37752
37753# Whether the compiler copes with passing no objects directly.
37754compiler_needs_object=$lt_compiler_needs_object
37755
37756# Create an old-style archive from a shared archive.
37757old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37758
37759# Create a temporary old-style archive to link instead of a shared archive.
37760old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37761
37762# Commands used to build a shared archive.
37763archive_cmds=$lt_archive_cmds
37764archive_expsym_cmds=$lt_archive_expsym_cmds
37765
37766# Commands used to build a loadable module if different from building
37767# a shared archive.
37768module_cmds=$lt_module_cmds
37769module_expsym_cmds=$lt_module_expsym_cmds
37770
37771# Whether we are building with GNU ld or not.
37772with_gnu_ld=$lt_with_gnu_ld
37773
37774# Flag that allows shared libraries with undefined symbols to be built.
37775allow_undefined_flag=$lt_allow_undefined_flag
37776
37777# Flag that enforces no undefined symbols.
37778no_undefined_flag=$lt_no_undefined_flag
37779
37780# Flag to hardcode \$libdir into a binary during linking.
37781# This must work even if \$libdir does not exist
37782hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37783
cristy73bd4a52010-10-05 11:24:23 +000037784# Whether we need a single "-rpath" flag with a separated argument.
37785hardcode_libdir_separator=$lt_hardcode_libdir_separator
37786
37787# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37788# DIR into the resulting binary.
37789hardcode_direct=$hardcode_direct
37790
37791# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37792# DIR into the resulting binary and the resulting library dependency is
37793# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37794# library is relocated.
37795hardcode_direct_absolute=$hardcode_direct_absolute
37796
37797# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37798# into the resulting binary.
37799hardcode_minus_L=$hardcode_minus_L
37800
37801# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37802# into the resulting binary.
37803hardcode_shlibpath_var=$hardcode_shlibpath_var
37804
37805# Set to "yes" if building a shared library automatically hardcodes DIR
37806# into the library and all subsequent libraries and executables linked
37807# against it.
37808hardcode_automatic=$hardcode_automatic
37809
37810# Set to yes if linker adds runtime paths of dependent libraries
37811# to runtime path list.
37812inherit_rpath=$inherit_rpath
37813
37814# Whether libtool must link a program against all its dependency libraries.
37815link_all_deplibs=$link_all_deplibs
37816
cristy73bd4a52010-10-05 11:24:23 +000037817# Set to "yes" if exported symbols are required.
37818always_export_symbols=$always_export_symbols
37819
37820# The commands to list exported symbols.
37821export_symbols_cmds=$lt_export_symbols_cmds
37822
37823# Symbols that should not be listed in the preloaded symbols.
37824exclude_expsyms=$lt_exclude_expsyms
37825
37826# Symbols that must always be exported.
37827include_expsyms=$lt_include_expsyms
37828
37829# Commands necessary for linking programs (against libraries) with templates.
37830prelink_cmds=$lt_prelink_cmds
37831
cristyda16f162011-02-19 23:52:17 +000037832# Commands necessary for finishing linking programs.
37833postlink_cmds=$lt_postlink_cmds
37834
cristy73bd4a52010-10-05 11:24:23 +000037835# Specify filename containing input files.
37836file_list_spec=$lt_file_list_spec
37837
37838# How to hardcode a shared library path into an executable.
37839hardcode_action=$hardcode_action
37840
37841# The directories searched by this compiler when creating a shared library.
37842compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37843
37844# Dependencies to place before and after the objects being linked to
37845# create a shared library.
37846predep_objects=$lt_predep_objects
37847postdep_objects=$lt_postdep_objects
37848predeps=$lt_predeps
37849postdeps=$lt_postdeps
37850
37851# The library search path used internally by the compiler when linking
37852# a shared library.
37853compiler_lib_search_path=$lt_compiler_lib_search_path
37854
37855# ### END LIBTOOL CONFIG
37856
37857_LT_EOF
37858
37859 case $host_os in
37860 aix3*)
37861 cat <<\_LT_EOF >> "$cfgfile"
37862# AIX sometimes has problems with the GCC collect2 program. For some
37863# reason, if we set the COLLECT_NAMES environment variable, the problems
37864# vanish in a puff of smoke.
37865if test "X${COLLECT_NAMES+set}" != Xset; then
37866 COLLECT_NAMES=
37867 export COLLECT_NAMES
37868fi
37869_LT_EOF
37870 ;;
37871 esac
37872
37873
37874ltmain="$ac_aux_dir/ltmain.sh"
37875
37876
37877 # We use sed instead of cat because bash on DJGPP gets confused if
37878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37879 # text mode, it properly converts lines to CR/LF. This bash problem
37880 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037881 sed '$q' "$ltmain" >> "$cfgfile" \
37882 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037883
cristyda16f162011-02-19 23:52:17 +000037884 if test x"$xsi_shell" = xyes; then
37885 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37886func_dirname ()\
37887{\
37888\ case ${1} in\
37889\ */*) func_dirname_result="${1%/*}${2}" ;;\
37890\ * ) func_dirname_result="${3}" ;;\
37891\ esac\
37892} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37893 && mv -f "$cfgfile.tmp" "$cfgfile" \
37894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37895test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037896
37897
cristyda16f162011-02-19 23:52:17 +000037898 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37899func_basename ()\
37900{\
37901\ func_basename_result="${1##*/}"\
37902} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37903 && mv -f "$cfgfile.tmp" "$cfgfile" \
37904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37905test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037906
37907
cristyda16f162011-02-19 23:52:17 +000037908 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37909func_dirname_and_basename ()\
37910{\
37911\ case ${1} in\
37912\ */*) func_dirname_result="${1%/*}${2}" ;;\
37913\ * ) func_dirname_result="${3}" ;;\
37914\ esac\
37915\ func_basename_result="${1##*/}"\
37916} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37917 && mv -f "$cfgfile.tmp" "$cfgfile" \
37918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37919test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037920
cristyda16f162011-02-19 23:52:17 +000037921
37922 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37923func_stripname ()\
37924{\
37925\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37926\ # positional parameters, so assign one to ordinary parameter first.\
37927\ func_stripname_result=${3}\
37928\ func_stripname_result=${func_stripname_result#"${1}"}\
37929\ func_stripname_result=${func_stripname_result%"${2}"}\
37930} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37931 && mv -f "$cfgfile.tmp" "$cfgfile" \
37932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37933test 0 -eq $? || _lt_function_replace_fail=:
37934
37935
37936 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37937func_split_long_opt ()\
37938{\
37939\ func_split_long_opt_name=${1%%=*}\
37940\ func_split_long_opt_arg=${1#*=}\
37941} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37942 && mv -f "$cfgfile.tmp" "$cfgfile" \
37943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37944test 0 -eq $? || _lt_function_replace_fail=:
37945
37946
37947 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37948func_split_short_opt ()\
37949{\
37950\ func_split_short_opt_arg=${1#??}\
37951\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37952} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37953 && mv -f "$cfgfile.tmp" "$cfgfile" \
37954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37955test 0 -eq $? || _lt_function_replace_fail=:
37956
37957
37958 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37959func_lo2o ()\
37960{\
37961\ case ${1} in\
37962\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37963\ *) func_lo2o_result=${1} ;;\
37964\ esac\
37965} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37966 && mv -f "$cfgfile.tmp" "$cfgfile" \
37967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37968test 0 -eq $? || _lt_function_replace_fail=:
37969
37970
37971 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37972func_xform ()\
37973{\
37974 func_xform_result=${1%.*}.lo\
37975} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37976 && mv -f "$cfgfile.tmp" "$cfgfile" \
37977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37978test 0 -eq $? || _lt_function_replace_fail=:
37979
37980
37981 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37982func_arith ()\
37983{\
37984 func_arith_result=$(( $* ))\
37985} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37986 && mv -f "$cfgfile.tmp" "$cfgfile" \
37987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37988test 0 -eq $? || _lt_function_replace_fail=:
37989
37990
37991 sed -e '/^func_len ()$/,/^} # func_len /c\
37992func_len ()\
37993{\
37994 func_len_result=${#1}\
37995} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37996 && mv -f "$cfgfile.tmp" "$cfgfile" \
37997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37998test 0 -eq $? || _lt_function_replace_fail=:
37999
38000fi
38001
38002if test x"$lt_shell_append" = xyes; then
38003 sed -e '/^func_append ()$/,/^} # func_append /c\
38004func_append ()\
38005{\
38006 eval "${1}+=\\${2}"\
38007} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38008 && mv -f "$cfgfile.tmp" "$cfgfile" \
38009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38010test 0 -eq $? || _lt_function_replace_fail=:
38011
38012
38013 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38014func_append_quoted ()\
38015{\
38016\ func_quote_for_eval "${2}"\
38017\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38018} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38019 && mv -f "$cfgfile.tmp" "$cfgfile" \
38020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38021test 0 -eq $? || _lt_function_replace_fail=:
38022
38023
38024 # Save a `func_append' function call where possible by direct use of '+='
38025 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38026 && mv -f "$cfgfile.tmp" "$cfgfile" \
38027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38028 test 0 -eq $? || _lt_function_replace_fail=:
38029else
38030 # Save a `func_append' function call even when '+=' is not available
38031 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38032 && mv -f "$cfgfile.tmp" "$cfgfile" \
38033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38034 test 0 -eq $? || _lt_function_replace_fail=:
38035fi
38036
38037if test x"$_lt_function_replace_fail" = x":"; then
38038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38039$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38040fi
38041
38042
38043 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38045 chmod +x "$ofile"
38046
38047
38048 cat <<_LT_EOF >> "$ofile"
38049
38050# ### BEGIN LIBTOOL TAG CONFIG: CXX
38051
38052# The linker used to build libraries.
38053LD=$lt_LD_CXX
38054
cristy0c60a692010-11-04 01:09:47 +000038055# How to create reloadable object files.
38056reload_flag=$lt_reload_flag_CXX
38057reload_cmds=$lt_reload_cmds_CXX
38058
cristy73bd4a52010-10-05 11:24:23 +000038059# Commands used to build an old-style archive.
38060old_archive_cmds=$lt_old_archive_cmds_CXX
38061
38062# A language specific compiler.
38063CC=$lt_compiler_CXX
38064
38065# Is the compiler the GNU compiler?
38066with_gcc=$GCC_CXX
38067
38068# Compiler flag to turn off builtin functions.
38069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38070
cristy73bd4a52010-10-05 11:24:23 +000038071# Additional compiler flags for building library objects.
38072pic_flag=$lt_lt_prog_compiler_pic_CXX
38073
cristyda16f162011-02-19 23:52:17 +000038074# How to pass a linker flag through the compiler.
38075wl=$lt_lt_prog_compiler_wl_CXX
38076
cristy73bd4a52010-10-05 11:24:23 +000038077# Compiler flag to prevent dynamic linking.
38078link_static_flag=$lt_lt_prog_compiler_static_CXX
38079
38080# Does compiler simultaneously support -c and -o options?
38081compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38082
38083# Whether or not to add -lc for building shared libraries.
38084build_libtool_need_lc=$archive_cmds_need_lc_CXX
38085
38086# Whether or not to disallow shared libs when runtime libs are static.
38087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38088
38089# Compiler flag to allow reflexive dlopens.
38090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38091
38092# Compiler flag to generate shared objects directly from archives.
38093whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38094
38095# Whether the compiler copes with passing no objects directly.
38096compiler_needs_object=$lt_compiler_needs_object_CXX
38097
38098# Create an old-style archive from a shared archive.
38099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38100
38101# Create a temporary old-style archive to link instead of a shared archive.
38102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38103
38104# Commands used to build a shared archive.
38105archive_cmds=$lt_archive_cmds_CXX
38106archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38107
38108# Commands used to build a loadable module if different from building
38109# a shared archive.
38110module_cmds=$lt_module_cmds_CXX
38111module_expsym_cmds=$lt_module_expsym_cmds_CXX
38112
38113# Whether we are building with GNU ld or not.
38114with_gnu_ld=$lt_with_gnu_ld_CXX
38115
38116# Flag that allows shared libraries with undefined symbols to be built.
38117allow_undefined_flag=$lt_allow_undefined_flag_CXX
38118
38119# Flag that enforces no undefined symbols.
38120no_undefined_flag=$lt_no_undefined_flag_CXX
38121
38122# Flag to hardcode \$libdir into a binary during linking.
38123# This must work even if \$libdir does not exist
38124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38125
cristy73bd4a52010-10-05 11:24:23 +000038126# Whether we need a single "-rpath" flag with a separated argument.
38127hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38128
38129# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38130# DIR into the resulting binary.
38131hardcode_direct=$hardcode_direct_CXX
38132
38133# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38134# DIR into the resulting binary and the resulting library dependency is
38135# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38136# library is relocated.
38137hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38138
38139# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38140# into the resulting binary.
38141hardcode_minus_L=$hardcode_minus_L_CXX
38142
38143# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38144# into the resulting binary.
38145hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38146
38147# Set to "yes" if building a shared library automatically hardcodes DIR
38148# into the library and all subsequent libraries and executables linked
38149# against it.
38150hardcode_automatic=$hardcode_automatic_CXX
38151
38152# Set to yes if linker adds runtime paths of dependent libraries
38153# to runtime path list.
38154inherit_rpath=$inherit_rpath_CXX
38155
38156# Whether libtool must link a program against all its dependency libraries.
38157link_all_deplibs=$link_all_deplibs_CXX
38158
cristy73bd4a52010-10-05 11:24:23 +000038159# Set to "yes" if exported symbols are required.
38160always_export_symbols=$always_export_symbols_CXX
38161
38162# The commands to list exported symbols.
38163export_symbols_cmds=$lt_export_symbols_cmds_CXX
38164
38165# Symbols that should not be listed in the preloaded symbols.
38166exclude_expsyms=$lt_exclude_expsyms_CXX
38167
38168# Symbols that must always be exported.
38169include_expsyms=$lt_include_expsyms_CXX
38170
38171# Commands necessary for linking programs (against libraries) with templates.
38172prelink_cmds=$lt_prelink_cmds_CXX
38173
cristyda16f162011-02-19 23:52:17 +000038174# Commands necessary for finishing linking programs.
38175postlink_cmds=$lt_postlink_cmds_CXX
38176
cristy73bd4a52010-10-05 11:24:23 +000038177# Specify filename containing input files.
38178file_list_spec=$lt_file_list_spec_CXX
38179
38180# How to hardcode a shared library path into an executable.
38181hardcode_action=$hardcode_action_CXX
38182
38183# The directories searched by this compiler when creating a shared library.
38184compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38185
38186# Dependencies to place before and after the objects being linked to
38187# create a shared library.
38188predep_objects=$lt_predep_objects_CXX
38189postdep_objects=$lt_postdep_objects_CXX
38190predeps=$lt_predeps_CXX
38191postdeps=$lt_postdeps_CXX
38192
38193# The library search path used internally by the compiler when linking
38194# a shared library.
38195compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38196
38197# ### END LIBTOOL TAG CONFIG: CXX
38198_LT_EOF
38199
38200 ;;
cristy4c08aed2011-07-01 19:47:50 +000038201 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038202 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038203 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38204 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38205
38206 esac
38207done # for ac_tag
38208
38209
cristy8b350f62009-11-15 23:12:43 +000038210as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038211_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038212ac_clean_files=$ac_clean_files_save
38213
38214test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038215 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038216
38217
38218# configure is writing to config.log, and then calls config.status.
38219# config.status does its own redirection, appending to config.log.
38220# Unfortunately, on DOS this fails, as config.log is still kept open
38221# by configure, so config.status won't be able to write to it; its
38222# output is simply discarded. So we exec the FD to /dev/null,
38223# effectively closing config.log, so it can be properly (re)opened and
38224# appended to by config.status. When coming back to configure, we
38225# need to make the FD available again.
38226if test "$no_create" != yes; then
38227 ac_cs_success=:
38228 ac_config_status_args=
38229 test "$silent" = yes &&
38230 ac_config_status_args="$ac_config_status_args --quiet"
38231 exec 5>/dev/null
38232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38233 exec 5>>config.log
38234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38235 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038236 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038237fi
38238if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038240$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38241fi
38242
38243
38244rm -f magick-version
38245
cristy430a7312010-01-21 20:44:04 +000038246result_dejavu_font_dir='none'
38247if test "${dejavu_font_dir}x" != 'x'; then
38248 result_dejavu_font_dir=$dejavu_font_dir
38249fi
38250
cristy3ed852e2009-09-05 21:47:34 +000038251result_ghostscript_font_dir='none'
38252if test "${ghostscript_font_dir}x" != 'x'; then
38253 result_ghostscript_font_dir=$ghostscript_font_dir
38254fi
38255
38256result_windows_font_dir='none'
38257if test "${windows_font_dir}x" != 'x'; then
38258 result_windows_font_dir=${windows_font_dir}
38259fi
38260
cristy09b53e12011-10-14 12:47:22 +000038261{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038262ImageMagick is configured as follows. Please verify that this configuration
38263matches your expectations.
38264
38265Host system type: $host
38266Build system type: $build
38267
38268 Option Value
38269-------------------------------------------------------------------------------
38270Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38271Static libraries --enable-static=$enable_static $libtool_build_static_libs
38272Module support --with-modules=$with_modules $with_modules
38273GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38274Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38275High Dynamic Range Imagery
38276 --enable-hdri=$enable_hdri $enable_hdri
38277
38278Delegate Configuration:
38279BZLIB --with-bzlib=$with_bzlib $have_bzlib
38280Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038281Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038282DJVU --with-djvu=$with_djvu $have_djvu
38283DPS --with-dps=$with_dps $have_dps
38284FFTW --with-fftw=$with_fftw $have_fftw
38285FlashPIX --with-fpx=$with_fpx $have_fpx
38286FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38287FreeType --with-freetype=$with_freetype $have_freetype
38288GhostPCL None $PCLDelegate ($PCLVersion)
38289GhostXPS None $XPSDelegate ($XPSVersion)
38290Ghostscript None $PSDelegate ($GSVersion)
38291Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38292Ghostscript lib --with-gslib=$with_gslib $have_gslib
38293Graphviz --with-gvc=$with_gvc $have_gvc
38294JBIG --with-jbig=$with_jbig $have_jbig
38295JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38296JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038297LCMS v1 --with-lcms=$with_lcms $have_lcms
38298LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038299LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038300LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038301Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38302OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038303PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038304PERL --with-perl=$with_perl $have_perl
38305PNG --with-png=$with_png $have_png
38306RSVG --with-rsvg=$with_rsvg $have_rsvg
38307TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038308WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038309Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38310WMF --with-wmf=$with_wmf $have_wmf
38311X11 --with-x=$with_x $have_x
38312XML --with-xml=$with_xml $have_xml
38313ZLIB --with-zlib=$with_zlib $have_zlib
38314
38315X11 Configuration:
38316 X_CFLAGS = $X_CFLAGS
38317 X_PRE_LIBS = $X_PRE_LIBS
38318 X_LIBS = $X_LIBS
38319 X_EXTRA_LIBS = $X_EXTRA_LIBS
38320
38321Options used to compile and link:
38322 PREFIX = $PREFIX_DIR
38323 EXEC-PREFIX = $EXEC_PREFIX_DIR
38324 VERSION = $PACKAGE_VERSION
38325 CC = $CC
38326 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038327 CPPFLAGS = $MAGICK_CPPFLAGS
38328 PCFLAGS = $MAGICK_PCFLAGS
38329 DEFS = $DEFS
38330 LDFLAGS = $LDFLAGS
38331 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38332 LIBS = $MAGICK_LIBS
38333 CXX = $CXX
38334 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038335 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038336" >&5
cristy09b53e12011-10-14 12:47:22 +000038337$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038338ImageMagick is configured as follows. Please verify that this configuration
38339matches your expectations.
38340
38341Host system type: $host
38342Build system type: $build
38343
38344 Option Value
38345-------------------------------------------------------------------------------
38346Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38347Static libraries --enable-static=$enable_static $libtool_build_static_libs
38348Module support --with-modules=$with_modules $with_modules
38349GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38350Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38351High Dynamic Range Imagery
38352 --enable-hdri=$enable_hdri $enable_hdri
38353
38354Delegate Configuration:
38355BZLIB --with-bzlib=$with_bzlib $have_bzlib
38356Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038357Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038358DJVU --with-djvu=$with_djvu $have_djvu
38359DPS --with-dps=$with_dps $have_dps
38360FFTW --with-fftw=$with_fftw $have_fftw
38361FlashPIX --with-fpx=$with_fpx $have_fpx
38362FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38363FreeType --with-freetype=$with_freetype $have_freetype
38364GhostPCL None $PCLDelegate ($PCLVersion)
38365GhostXPS None $XPSDelegate ($XPSVersion)
38366Ghostscript None $PSDelegate ($GSVersion)
38367Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38368Ghostscript lib --with-gslib=$with_gslib $have_gslib
38369Graphviz --with-gvc=$with_gvc $have_gvc
38370JBIG --with-jbig=$with_jbig $have_jbig
38371JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38372JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038373LCMS v1 --with-lcms=$with_lcms $have_lcms
38374LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038375LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038376LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038377Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38378OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038379PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038380PERL --with-perl=$with_perl $have_perl
38381PNG --with-png=$with_png $have_png
38382RSVG --with-rsvg=$with_rsvg $have_rsvg
38383TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038384WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038385Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38386WMF --with-wmf=$with_wmf $have_wmf
38387X11 --with-x=$with_x $have_x
38388XML --with-xml=$with_xml $have_xml
38389ZLIB --with-zlib=$with_zlib $have_zlib
38390
38391X11 Configuration:
38392 X_CFLAGS = $X_CFLAGS
38393 X_PRE_LIBS = $X_PRE_LIBS
38394 X_LIBS = $X_LIBS
38395 X_EXTRA_LIBS = $X_EXTRA_LIBS
38396
38397Options used to compile and link:
38398 PREFIX = $PREFIX_DIR
38399 EXEC-PREFIX = $EXEC_PREFIX_DIR
38400 VERSION = $PACKAGE_VERSION
38401 CC = $CC
38402 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038403 CPPFLAGS = $MAGICK_CPPFLAGS
38404 PCFLAGS = $MAGICK_PCFLAGS
38405 DEFS = $DEFS
38406 LDFLAGS = $LDFLAGS
38407 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38408 LIBS = $MAGICK_LIBS
38409 CXX = $CXX
38410 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038411 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038412" >&6;}