blob: 38d2f38af68daf8415a2908b8b882aaa98b95520 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy56225732010-09-04 23:44:25 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.4.
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,
cristyfd9dcd42010-08-08 18:07:02 +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.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristyfd9dcd42010-08-08 18:07:02 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
cristyfd9dcd42010-08-08 18:07:02 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristyfd9dcd42010-08-08 18:07:02 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristyfd9dcd42010-08-08 18:07:02 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristyfd9dcd42010-08-08 18:07:02 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
cristyfd9dcd42010-08-08 18:07:02 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000569PACKAGE_VERSION='6.6.4'
570PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
657ZIP
658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
660P7ZIP
661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000676UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000677TXTDelegate
678SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000679RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000680RMDelegate
681RLEEncodeDelegate
682PSDelegate
683POVDelegate
684PGPDecodeDelegate
685PCLDelegate
686MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000687MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688MPEGEncodeDelegate
689MPEGDecodeDelegate
690MANDelegate
691LaunchDelegate
692LZWEncodeDelegate
693LZWDecodeDelegate
694LPRDelegate
695LPDelegate
696ILBMEncodeDelegate
697ILBMDecodeDelegate
698HTMLDecodeDelegate
699HPGLDecodeDelegate
700HDRDecodeDelegate
701GnuplotDecodeDelegate
702MogrifyDelegate
703DisplayDelegate
704ConvertDelegate
705FIGDecodeDelegate
706EditorDelegate
707EchoDelegate
708DVIDecodeDelegate
709GVCDecodeDelegate
710DNGDecodeDelegate
711CatDelegate
712CGMDecodeDelegate
713BrowseDelegate
714BZIPDelegate
715BlenderDecodeDelegate
716AVIDecodeDelegate
717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
734TIFF_LIBS
735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
750OPENEXR_LIBS
751OPENEXR_CFLAGS
752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
759JP2_LIBS
760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
762JPEG_LIBS
763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
765JBIG_LIBS
766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
775FREETYPE_LIBS
776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
778freetype_config
779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
786FFTW_LIBS
787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
789DJVU_LIBS
790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
792DPS_LIBS
793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
803XEXT_LIBS
804X11_LIBS
805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
817HasUMEM_FALSE
818HasUMEM_TRUE
819THREAD_LIBS
820GOMP_LIBS
821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
845MAGICK_HDRI
846DLLDFLAGS
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
871LIBTOOL_DEPS
872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000878RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
887LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000888CL_LIBS
889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
891PTHREAD_CFLAGS
892PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000893PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
904GDI32_LIBS
905PKG_CONFIG
906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
908FGREP
cristy3ed852e2009-09-05 21:47:34 +0000909SED
cristy95646052009-11-28 23:05:30 +0000910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy3ed852e2009-09-05 21:47:34 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
1052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001055with_dmalloc
1056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
1062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
1071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
1079enable_maintainer_mode
1080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
1135PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
1152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001260 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"enable_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=no ;;
1271
1272 -docdir | --docdir | --docdi | --doc | --do)
1273 ac_prev=docdir ;;
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1276
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278 ac_prev=dvidir ;;
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1281
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1306
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1309 with_gas=yes ;;
1310
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1317
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1322
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 ac_prev=htmldir ;;
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 | --ht=*)
1327 htmldir=$ac_optarg ;;
1328
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1335
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 ac_prev=infodir ;;
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1340
1341 -libdir | --libdir | --libdi | --libd)
1342 ac_prev=libdir ;;
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1345
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1352
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1357
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1364
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 ac_prev=mandir ;;
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1369
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1372 with_fp=no ;;
1373
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1376 no_create=yes ;;
1377
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 no_recursion=yes ;;
1381
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1390
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 ac_prev=prefix ;;
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1395
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1402
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1409
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1426
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 ac_prev=pdfdir ;;
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1431
1432 -psdir | --psdir | --psdi | --psd | --ps)
1433 ac_prev=psdir ;;
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 psdir=$ac_optarg ;;
1436
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 silent=yes ;;
1440
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 ac_prev=sbindir ;;
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 | --sbi=* | --sb=*)
1445 sbindir=$ac_optarg ;;
1446
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1450 | --sha | --sh)
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 | --sha=* | --sh=*)
1456 sharedstatedir=$ac_optarg ;;
1457
1458 -site | --site | --sit)
1459 ac_prev=site ;;
1460 -site=* | --site=* | --sit=*)
1461 site=$ac_optarg ;;
1462
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 ac_prev=srcdir ;;
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1467
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1474
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1479
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 verbose=yes ;;
1482
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1485
1486 -with-* | --with-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001490 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495"with_$ac_useropt"
1496"*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=\$ac_optarg ;;
1501
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=no ;;
1517
1518 --x)
1519 # Obsolete; use --with-x.
1520 with_x=yes ;;
1521
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1528
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1535
cristyfd9dcd42010-08-08 18:07:02 +00001536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001538 ;;
1539
1540 *=*)
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyfd9dcd42010-08-08 18:07:02 +00001545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001546 esac
cristy3ed852e2009-09-05 21:47:34 +00001547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1549
1550 *)
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556 ;;
1557
1558 esac
1559done
1560
1561if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyfd9dcd42010-08-08 18:07:02 +00001563 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1568 no) ;;
cristyfd9dcd42010-08-08 18:07:02 +00001569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571 esac
1572fi
1573
1574# Check all directory arguments for consistency.
1575for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1579do
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1582 case $ac_val in
1583 */ )
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1586 esac
1587 # Be sure to have absolute directory names.
1588 case $ac_val in
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591 esac
cristyfd9dcd42010-08-08 18:07:02 +00001592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001593done
1594
1595# There might be people who depend on the old broken behavior: `$host'
1596# used to hold the argument of --host etc.
1597# FIXME: To remove some day.
1598build=$build_alias
1599host=$host_alias
1600target=$target_alias
1601
1602# FIXME: To remove some day.
1603if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
cristyfd9dcd42010-08-08 18:07:02 +00001606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001608 elif test "x$build_alias" != "x$host_alias"; then
1609 cross_compiling=yes
1610 fi
1611fi
1612
1613ac_tool_prefix=
1614test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616test "$silent" = yes && exec 6>/dev/null
1617
1618
1619ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620ac_ls_di=`ls -di .` &&
1621ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyfd9dcd42010-08-08 18:07:02 +00001622 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001623test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyfd9dcd42010-08-08 18:07:02 +00001624 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001625
1626
1627# Find the source files, if location was not specified.
1628if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636$as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 s//\1/
1639 q
1640 }
1641 /^X\(\/\/\)[^/].*/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)$/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\).*/{
1650 s//\1/
1651 q
1652 }
1653 s/.*/./; q'`
1654 srcdir=$ac_confdir
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1656 srcdir=..
1657 fi
1658else
1659 ac_srcdir_defaulted=no
1660fi
1661if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyfd9dcd42010-08-08 18:07:02 +00001663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001664fi
1665ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666ac_abs_confdir=`(
cristyfd9dcd42010-08-08 18:07:02 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001693\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristyfd9dcd42010-08-08 18:07:02 +00001707 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
1750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
1755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001882 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
1906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001973ImageMagick configure 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +00001974generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001975
cristyfd9dcd42010-08-08 18:07:02 +00001976Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001977This configure script is free software; the Free Software Foundation
1978gives unlimited permission to copy, distribute and modify it.
1979_ACEOF
1980 exit
1981fi
cristy8b350f62009-11-15 23:12:43 +00001982
1983## ------------------------ ##
1984## Autoconf initialization. ##
1985## ------------------------ ##
1986
1987# ac_fn_c_try_compile LINENO
1988# --------------------------
1989# Try to compile conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_compile ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002021 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002022
2023} # ac_fn_c_try_compile
2024
cristy95646052009-11-28 23:05:30 +00002025# ac_fn_c_try_cpp LINENO
2026# ----------------------
2027# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_c_try_cpp ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051else
2052 $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_cpp
2061
cristy8b350f62009-11-15 23:12:43 +00002062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002070 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002073if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002132( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002133## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002134## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002140if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002204if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
2310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002318if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002410 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002456 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002457
2458} # ac_fn_cxx_try_link
2459
cristyfd9dcd42010-08-08 18:07:02 +00002460# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461# ---------------------------------------------
2462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002464ac_fn_c_check_decl ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002472 $as_echo_n "(cached) " >&6
2473else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
cristyfd9dcd42010-08-08 18:07:02 +00002480#ifndef $as_decl_name
2481#ifdef __cplusplus
2482 (void) $as_decl_use;
2483#else
2484 (void) $as_decl_name;
2485#endif
cristy8b350f62009-11-15 23:12:43 +00002486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 eval "$3=yes"
2494else
2495 eval "$3=no"
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_decl
2505
2506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002515if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547 eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_type
2559
cristy92703d82010-04-26 00:18:18 +00002560# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561# ----------------------------------------------------
2562# Tries to find if the field MEMBER exists in type AGGR, after including
2563# INCLUDES, setting cache variable VAR accordingly.
2564ac_fn_c_check_member ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568$as_echo_n "checking for $2.$3... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002569if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002570 $as_echo_n "(cached) " >&6
2571else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h. */
2574$5
2575int
2576main ()
2577{
2578static $2 ac_aggr;
2579if (ac_aggr.$3)
2580return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$5
2591int
2592main ()
2593{
2594static $2 ac_aggr;
2595if (sizeof ac_aggr.$3)
2596return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603else
2604 eval "$4=no"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_member
2616
cristy8b350f62009-11-15 23:12:43 +00002617# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618# --------------------------------------------
2619# Tries to find the compile-time value of EXPR in a program that includes
2620# INCLUDES, setting VAR accordingly. Returns whether the value could be
2621# computed
2622ac_fn_c_compute_int ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$4
2630int
2631main ()
2632{
2633static int test_array [1 - 2 * !(($2) >= 0)];
2634test_array [0] = 0
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_lo=0 ac_mid=0
2642 while :; do
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h. */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650test_array [0] = 0
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2658else
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2661 ac_lo= ac_hi=
2662 break
2663 fi
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670/* end confdefs.h. */
2671$4
2672int
2673main ()
2674{
2675static int test_array [1 - 2 * !(($2) < 0)];
2676test_array [0] = 0
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=-1 ac_mid=-1
2684 while :; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2700else
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2703 ac_lo= ac_hi=
2704 break
2705 fi
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710else
2711 ac_lo= ac_hi=
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716# Binary search between lo and hi bounds.
2717while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid
2734else
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739case $ac_lo in #((
2740?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741'') ac_retval=1 ;;
2742esac
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747static long int longval () { return $2; }
2748static unsigned long int ulongval () { return $2; }
2749#include <stdio.h>
2750#include <stdlib.h>
2751int
2752main ()
2753{
2754
2755 FILE *f = fopen ("conftest.val", "w");
2756 if (! f)
2757 return 1;
2758 if (($2) < 0)
2759 {
2760 long int i = longval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%ld", i);
2764 }
2765 else
2766 {
2767 unsigned long int i = ulongval ();
2768 if (i != ($2))
2769 return 1;
2770 fprintf (f, "%lu", i);
2771 }
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782else
2783 ac_retval=1
2784fi
2785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2787rm -f conftest.val
2788
2789 fi
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002791 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002792
2793} # ac_fn_c_compute_int
2794
2795# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796# ---------------------------------------------------------
2797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798# the include files in INCLUDES and setting the cache variable VAR
2799# accordingly.
2800ac_fn_cxx_check_header_mongrel ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002803 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002806if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002807 $as_echo_n "(cached) " >&6
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812else
2813 # Is the header compilable?
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815$as_echo_n "checking $2 usability... " >&6; }
2816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819#include <$2>
2820_ACEOF
2821if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2823else
2824 ac_header_compiler=no
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828$as_echo "$ac_header_compiler" >&6; }
2829
2830# Is the header present?
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832$as_echo_n "checking $2 presence... " >&6; }
2833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835#include <$2>
2836_ACEOF
2837if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2839else
2840 ac_header_preproc=no
2841fi
2842rm -f conftest.err conftest.$ac_ext
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844$as_echo "$ac_header_preproc" >&6; }
2845
2846# So? What about this header?
2847case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848 yes:no: )
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853 ;;
2854 no:yes:* )
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002865( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002866## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002867## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002868 ) | sed "s/^/$as_me: WARNING: /" >&2
2869 ;;
2870esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002873if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002874 $as_echo_n "(cached) " >&6
2875else
2876 eval "$3=\$ac_header_compiler"
2877fi
2878eval ac_res=\$$3
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881fi
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002885cat >config.log <<_ACEOF
2886This file contains any messages produced by compilers while
2887running configure, to aid debugging if configure makes a mistake.
2888
cristy56225732010-09-04 23:44:25 +00002889It was created by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +00002890generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002891
2892 $ $0 $@
2893
2894_ACEOF
2895exec 5>>config.log
2896{
2897cat <<_ASUNAME
2898## --------- ##
2899## Platform. ##
2900## --------- ##
2901
2902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2910
2911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2918
2919_ASUNAME
2920
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002926 $as_echo "PATH: $as_dir"
2927 done
cristy3ed852e2009-09-05 21:47:34 +00002928IFS=$as_save_IFS
2929
2930} >&5
2931
2932cat >&5 <<_ACEOF
2933
2934
2935## ----------- ##
2936## Core tests. ##
2937## ----------- ##
2938
2939_ACEOF
2940
2941
2942# Keep a trace of the command line.
2943# Strip out --no-create and --no-recursion so they do not pile up.
2944# Strip out --silent because we don't want to record it for future runs.
2945# Also quote any args containing shell meta-characters.
2946# Make two passes to allow for proper duplicate-argument suppression.
2947ac_configure_args=
2948ac_configure_args0=
2949ac_configure_args1=
2950ac_must_keep_next=false
2951for ac_pass in 1 2
2952do
2953 for ac_arg
2954 do
2955 case $ac_arg in
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2959 continue ;;
2960 *\'*)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 esac
2963 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002965 2)
cristy8b350f62009-11-15 23:12:43 +00002966 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2969 else
2970 case $ac_arg in
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 esac
2978 ;;
2979 -* ) ac_must_keep_next=true ;;
2980 esac
2981 fi
cristy8b350f62009-11-15 23:12:43 +00002982 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002983 ;;
2984 esac
2985 done
2986done
cristy8b350f62009-11-15 23:12:43 +00002987{ ac_configure_args0=; unset ac_configure_args0;}
2988{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002989
2990# When interrupted or exit'd, cleanup temporary files, and complete
2991# config.log. We remove comments because anyway the quotes in there
2992# would cause problems or look ugly.
2993# WARNING: Use '\'' to represent an apostrophe within the trap.
2994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
2997 {
2998 echo
2999
cristyfd9dcd42010-08-08 18:07:02 +00003000 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003001## Cache variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003002## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005(
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003017 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033)
3034 echo
3035
cristyfd9dcd42010-08-08 18:07:02 +00003036 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003038## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003039 echo
3040 for ac_var in $ac_subst_vars
3041 do
3042 eval ac_val=\$$ac_var
3043 case $ac_val in
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 esac
3046 $as_echo "$ac_var='\''$ac_val'\''"
3047 done | sort
3048 echo
3049
3050 if test -n "$ac_subst_files"; then
cristyfd9dcd42010-08-08 18:07:02 +00003051 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003052## File substitutions. ##
cristyfd9dcd42010-08-08 18:07:02 +00003053## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003054 echo
3055 for ac_var in $ac_subst_files
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064 fi
3065
3066 if test -s confdefs.h; then
cristyfd9dcd42010-08-08 18:07:02 +00003067 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003068## confdefs.h. ##
cristyfd9dcd42010-08-08 18:07:02 +00003069## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003070 echo
3071 cat confdefs.h
3072 echo
3073 fi
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3077 } >&5
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080 exit $exit_status
3081' 0
3082for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003084done
3085ac_signal=0
3086
3087# confdefs.h avoids OS command line length limits that DEFS can exceed.
3088rm -f -r conftest* confdefs.h
3089
cristy8b350f62009-11-15 23:12:43 +00003090$as_echo "/* confdefs.h */" > confdefs.h
3091
cristy3ed852e2009-09-05 21:47:34 +00003092# Predefined preprocessor variables.
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_NAME "$PACKAGE_NAME"
3096_ACEOF
3097
cristy3ed852e2009-09-05 21:47:34 +00003098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100_ACEOF
3101
cristy3ed852e2009-09-05 21:47:34 +00003102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_VERSION "$PACKAGE_VERSION"
3104_ACEOF
3105
cristy3ed852e2009-09-05 21:47:34 +00003106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_STRING "$PACKAGE_STRING"
3108_ACEOF
3109
cristy3ed852e2009-09-05 21:47:34 +00003110cat >>confdefs.h <<_ACEOF
3111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112_ACEOF
3113
cristy8b350f62009-11-15 23:12:43 +00003114cat >>confdefs.h <<_ACEOF
3115#define PACKAGE_URL "$PACKAGE_URL"
3116_ACEOF
3117
cristy3ed852e2009-09-05 21:47:34 +00003118
3119# Let the site file select an alternate cache file if it wants to.
3120# Prefer an explicitly selected file to automatically selected ones.
3121ac_site_file1=NONE
3122ac_site_file2=NONE
3123if test -n "$CONFIG_SITE"; then
cristyfd9dcd42010-08-08 18:07:02 +00003124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3129 esac
cristy3ed852e2009-09-05 21:47:34 +00003130elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3133else
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3136fi
3137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138do
3139 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
cristyfd9dcd42010-08-08 18:07:02 +00003144 . "$ac_site_file" \
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "failed to load site script $ac_site_file
3148See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003149 fi
3150done
3151
3152if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003157$as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3162 fi
3163else
cristy8b350f62009-11-15 23:12:43 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003165$as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3167fi
3168
cristycd4c5312009-11-22 01:19:08 +00003169as_fn_append ac_header_list " stdlib.h"
3170as_fn_append ac_header_list " unistd.h"
3171as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003172# Check that the precious variables saved in the cache have kept the same
3173# value.
3174ac_cache_corrupted=false
3175for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3181 set,)
cristy8b350f62009-11-15 23:12:43 +00003182 { $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 +00003183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,set)
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3189 ,);;
3190 *)
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3199 else
cristy8b350f62009-11-15 23:12:43 +00003200 { $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 +00003201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 fi;;
3209 esac
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3212 case $ac_new_val in
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3215 esac
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 esac
3220 fi
3221done
3222if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00003227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003228fi
cristy8b350f62009-11-15 23:12:43 +00003229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241ac_aux_dir=
3242for ac_dir in config "$srcdir"/config; do
cristyfd9dcd42010-08-08 18:07:02 +00003243 if test -f "$ac_dir/install-sh"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3246 break
3247 elif test -f "$ac_dir/install.sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3250 break
3251 elif test -f "$ac_dir/shtool"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3254 break
3255 fi
cristy3ed852e2009-09-05 21:47:34 +00003256done
3257if test -z "$ac_aux_dir"; then
cristyfd9dcd42010-08-08 18:07:02 +00003258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003259fi
3260
3261# These three variables are undocumented and unsupported,
3262# and are intended to be withdrawn in a future Autoconf release.
3263# They can cause serious problems if a builder's source tree is in a directory
3264# whose full name contains unusual characters.
3265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3268
3269
3270
3271
3272ac_config_headers="$ac_config_headers config/config.h"
3273
3274ac_config_commands="$ac_config_commands magick/magick-config.h"
3275
cristy430a7312010-01-21 20:44:04 +00003276ac_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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003277
3278
3279#
3280# Save initial user-tunable values
3281#
3282USER_LIBS=$LIBS
3283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284 eval isset=\${$var+set}
3285 if test "$isset" = 'set'; then
3286 eval val=$`echo $var`
3287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3288 fi
3289done
3290
3291
3292CONFIGURE_ARGS="$0 ${ac_configure_args}"
3293
3294
3295# Source file containing package/library versioning information.
3296. ${srcdir}/version.sh
3297
cristy15a88782010-01-31 23:24:49 +00003298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyfd9dcd42010-08-08 18:07:02 +00003301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302
cristy8b350f62009-11-15 23:12:43 +00003303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003304$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003305if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
cristyfd9dcd42010-08-08 18:07:02 +00003312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003315
3316fi
cristy8b350f62009-11-15 23:12:43 +00003317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003321*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003339if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003347fi
3348
3349fi
cristy8b350f62009-11-15 23:12:43 +00003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003354*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 if test "x$target_alias" = x; then
3376 ac_cv_target=$ac_cv_host
3377else
3378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380fi
3381
3382fi
cristy8b350f62009-11-15 23:12:43 +00003383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$ac_cv_target" >&6; }
3385case $ac_cv_target in
3386*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003387*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003388esac
3389target=$ac_cv_target
3390ac_save_IFS=$IFS; IFS='-'
3391set x $ac_cv_target
3392shift
3393target_cpu=$1
3394target_vendor=$2
3395shift; shift
3396# Remember, the first character of IFS is used to create $*,
3397# except with old shells:
3398target_os=$*
3399IFS=$ac_save_IFS
3400case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401
3402
3403# The aliases save the names the user supplied, while $host etc.
3404# will get canonicalized.
3405test -n "$target_alias" &&
3406 test "$program_prefix$program_suffix$program_transform_name" = \
3407 NONENONEs,x,x, &&
3408 program_prefix=${target_alias}-
3409
cristy837d6dc2010-02-27 01:16:57 +00003410
3411
3412
3413
cristy3225a072010-04-17 01:47:28 +00003414MAGICK_TARGET_CPU=$target_cpu
3415
3416
3417MAGICK_TARGET_VENDOR=$target_vendor
3418
3419
3420MAGICK_TARGET_OS=$target_os
3421
3422
cristy3ed852e2009-09-05 21:47:34 +00003423# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003424MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3425
3426MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3427
cristy3ed852e2009-09-05 21:47:34 +00003428
3429
3430# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo_n "checking whether build environment is sane... " >&6; }
3433# Just in case
3434sleep 1
3435echo timestamp > conftest.file
3436# Reject unsafe characters in $srcdir or the absolute working directory
3437# name. Accept space and tab only in the latter.
3438am_lf='
3439'
3440case `pwd` in
3441 *[\\\"\#\$\&\'\`$am_lf]*)
cristyfd9dcd42010-08-08 18:07:02 +00003442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003443esac
3444case $srcdir in
3445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyfd9dcd42010-08-08 18:07:02 +00003446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448
3449# Do `set' in a subshell so we don't clobber the current shell's
3450# arguments. Must try -L first in case configure is actually a
3451# symlink; some systems play weird games with the mod time of symlinks
3452# (eg FreeBSD returns the mod time of the symlink's containing
3453# directory).
3454if (
3455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456 if test "$*" = "X"; then
3457 # -L didn't work.
3458 set X `ls -t "$srcdir/configure" conftest.file`
3459 fi
3460 rm -f conftest.file
3461 if test "$*" != "X $srcdir/configure conftest.file" \
3462 && test "$*" != "X conftest.file $srcdir/configure"; then
3463
3464 # If neither matched, then we have a broken ls. This can happen
3465 # if, for instance, CONFIG_SHELL is bash and it inherits a
3466 # broken ls alias from the environment. This has actually
3467 # happened. Such a system could not be considered "sane".
cristyfd9dcd42010-08-08 18:07:02 +00003468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003469alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003470 fi
3471
3472 test "$2" = conftest.file
3473 )
3474then
3475 # Ok.
3476 :
3477else
cristyfd9dcd42010-08-08 18:07:02 +00003478 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003479Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "yes" >&6; }
3483
3484am__api_version='1.11'
3485
3486# Find a good install program. We prefer a C program (faster),
3487# so one script is as good as another. But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497# OS/2's system install, which has a completely different semantic
3498# ./install, which can be erroneously created by make from ./install.sh.
3499# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking for a BSD-compatible install... " >&6; }
3502if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003511 # Account for people who put trailing slashes in PATH elements.
3512case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3527 :
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
3532 else
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550esac
3551
cristy8b350f62009-11-15 23:12:43 +00003552 done
cristy3ed852e2009-09-05 21:47:34 +00003553IFS=$as_save_IFS
3554
3555rm -rf conftest.one conftest.two conftest.dir
3556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3560 else
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3566 fi
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$INSTALL" >&6; }
3570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579test "$program_prefix" != NONE &&
3580 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584# Double any \ or $.
3585# By default was `s,x,x', remove it if useless.
3586ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589# expand $ac_aux_dir to an absolute path
3590am_aux_dir=`cd $ac_aux_dir && pwd`
3591
3592if test x"${MISSING+set}" != xset; then
3593 case $am_aux_dir in
3594 *\ * | *\ *)
3595 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596 *)
3597 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598 esac
3599fi
3600# Use eval to expand $SHELL
3601if eval "$MISSING --run true"; then
3602 am_missing_run="$MISSING --run "
3603else
3604 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3607fi
3608
3609if test x"${install_sh}" != xset; then
3610 case $am_aux_dir in
3611 *\ * | *\ *)
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613 *)
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3615 esac
3616fi
3617
3618# Installed binaries are usually stripped using `strip' when the user
3619# run `make install-strip'. However `strip' might not be the right
3620# tool to use in cross-compilation environments, therefore Automake
3621# will honor the `STRIP' environment variable to overrule this program.
3622if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$STRIP"; then
3632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003643 break 2
3644 fi
3645done
cristy8b350f62009-11-15 23:12:43 +00003646 done
cristy3ed852e2009-09-05 21:47:34 +00003647IFS=$as_save_IFS
3648
3649fi
3650fi
3651STRIP=$ac_cv_prog_STRIP
3652if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003654$as_echo "$STRIP" >&6; }
3655else
cristy8b350f62009-11-15 23:12:43 +00003656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003657$as_echo "no" >&6; }
3658fi
3659
3660
3661fi
3662if test -z "$ac_cv_prog_STRIP"; then
3663 ac_ct_STRIP=$STRIP
3664 # Extract the first word of "strip", so it can be a program name with args.
3665set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$ac_ct_STRIP"; then
3672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$ac_ct_STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700 if test "x$ac_ct_STRIP" = x; then
3701 STRIP=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
cristy8b350f62009-11-15 23:12:43 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709 STRIP=$ac_ct_STRIP
3710 fi
3711else
3712 STRIP="$ac_cv_prog_STRIP"
3713fi
3714
3715fi
3716INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
cristy8b350f62009-11-15 23:12:43 +00003718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003719$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003721 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003722 $as_echo_n "(cached) " >&6
3723else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003729 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733 'mkdir (GNU coreutils) '* | \
3734 'mkdir (coreutils) '* | \
3735 'mkdir (fileutils) '4.1*)
3736 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737 break 3;;
3738 esac
3739 done
3740 done
cristy8b350f62009-11-15 23:12:43 +00003741 done
cristy3ed852e2009-09-05 21:47:34 +00003742IFS=$as_save_IFS
3743
3744fi
3745
cristycd4c5312009-11-22 01:19:08 +00003746 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003747 if test "${ac_cv_path_mkdir+set}" = set; then
3748 MKDIR_P="$ac_cv_path_mkdir -p"
3749 else
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for MKDIR_P within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003754 MKDIR_P="$ac_install_sh -d"
3755 fi
3756fi
cristy8b350f62009-11-15 23:12:43 +00003757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003758$as_echo "$MKDIR_P" >&6; }
3759
3760mkdir_p="$MKDIR_P"
3761case $mkdir_p in
3762 [\\/$]* | ?:[\\/]*) ;;
3763 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3764esac
3765
3766for ac_prog in gawk mawk nawk awk
3767do
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003772if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003773 $as_echo_n "(cached) " >&6
3774else
3775 if test -n "$AWK"; then
3776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003787 break 2
3788 fi
3789done
cristy8b350f62009-11-15 23:12:43 +00003790 done
cristy3ed852e2009-09-05 21:47:34 +00003791IFS=$as_save_IFS
3792
3793fi
3794fi
3795AWK=$ac_cv_prog_AWK
3796if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$AWK" >&6; }
3799else
cristy8b350f62009-11-15 23:12:43 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003801$as_echo "no" >&6; }
3802fi
3803
3804
3805 test -n "$AWK" && break
3806done
3807
cristy8b350f62009-11-15 23:12:43 +00003808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3810set x ${MAKE-make}
3811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00003812if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 cat >conftest.make <<\_ACEOF
3816SHELL = /bin/sh
3817all:
3818 @echo '@@@%%%=$(MAKE)=@@@%%%'
3819_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00003820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003821case `${MAKE-make} -f conftest.make 2>/dev/null` in
3822 *@@@%%%=?*=@@@%%%*)
3823 eval ac_cv_prog_make_${ac_make}_set=yes;;
3824 *)
3825 eval ac_cv_prog_make_${ac_make}_set=no;;
3826esac
3827rm -f conftest.make
3828fi
3829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "yes" >&6; }
3832 SET_MAKE=
3833else
cristy8b350f62009-11-15 23:12:43 +00003834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835$as_echo "no" >&6; }
3836 SET_MAKE="MAKE=${MAKE-make}"
3837fi
3838
3839rm -rf .tst 2>/dev/null
3840mkdir .tst 2>/dev/null
3841if test -d .tst; then
3842 am__leading_dot=.
3843else
3844 am__leading_dot=_
3845fi
3846rmdir .tst 2>/dev/null
3847
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
cristyfd9dcd42010-08-08 18:07:02 +00003854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003855 fi
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003870 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003871
3872
3873# Some tools Automake needs.
3874
3875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889# We need awk for the "check" target. The system "awk" is bad on
3890# some platforms.
3891# Always define AMTAR for backward compatibility.
3892
3893AMTAR=${AMTAR-"${am_missing_run}tar"}
3894
3895am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3896
3897
3898
3899
3900
3901
3902# Enable support for silent build rules
3903# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003904if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003905 enableval=$enable_silent_rules;
3906fi
3907
3908case $enable_silent_rules in
3909yes) AM_DEFAULT_VERBOSITY=0;;
3910no) AM_DEFAULT_VERBOSITY=1;;
3911*) AM_DEFAULT_VERBOSITY=0;;
3912esac
3913AM_BACKSLASH='\'
3914
3915
3916MAGICK_LIB_VERSION="0x"
3917if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3919fi
3920MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3923fi
3924MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3927fi
3928MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3929
3930
3931# Definition used to define MagickLibVersionText in version.h
3932MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3933
3934
3935# Definition used to define MagickLibVersionNumber in version.h
3936MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3937
3938
3939# Regenerate config.status if ChangeLog or version.sh is updated.
3940CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3941
3942
3943PERLMAINCC=$CC
3944
3945MAGICK_CFLAGS=''
3946MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947MAGICK_PCFLAGS=$CPPFLAGS_USER
3948MAGICK_LDFLAGS=''
3949MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003950MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003951
3952#
3953# Evaluate shell variable equivalents to Makefile directory variables
3954#
3955if test "x$prefix" = xNONE; then
3956 prefix=$ac_default_prefix
3957fi
3958# Let make expand exec_prefix.
3959if test "x$exec_prefix" = xNONE; then
3960 exec_prefix='${prefix}'
3961fi
3962
3963#
3964eval "eval PREFIX_DIR=${prefix}"
3965
3966eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3967
3968eval "eval BIN_DIR=$bindir"
3969
3970eval "eval SBIN_DIR=$sbindir"
3971
3972eval "eval LIBEXEC_DIR=$libexecdir"
3973
3974eval "eval DATA_DIR=$datadir"
3975
3976eval "eval SYSCONF_DIR=$sysconfdir"
3977
3978eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3979
3980eval "eval LOCALSTATE_DIR=$localstatedir"
3981
3982eval "eval LIB_DIR=$libdir"
3983
3984eval "eval INCLUDE_DIR=$includedir"
3985
3986eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3987
3988eval "eval INFO_DIR=$infodir"
3989
3990eval "eval MAN_DIR=$mandir"
3991
3992
3993# Get full paths to source and build directories
3994srcdirfull="`cd $srcdir && pwd`"
3995builddir="`pwd`"
3996
3997#
3998# Compute variables useful for running uninstalled software.
3999#
4000MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4004DIRSEP=':'
4005case "${build_os}" in
4006 mingw* )
4007 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4011 DIRSEP=';'
4012 ;;
4013esac
4014case "${host_os}" in
4015 mingw* )
4016 DIRSEP=';'
4017 ;;
4018esac
4019
4020
4021
4022
4023
4024
cristya0b81c32010-01-22 02:54:33 +00004025
4026#
4027# Enable OS features.
4028#
4029DEPDIR="${am__leading_dot}deps"
4030
4031ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034am_make=${MAKE-make}
4035cat > confinc << 'END'
4036am__doit:
4037 @echo this is the am__doit target
4038.PHONY: am__doit
4039END
4040# If we don't find an include directive, just comment out the code.
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042$as_echo_n "checking for style of include used by $am_make... " >&6; }
4043am__include="#"
4044am__quote=
4045_am_result=none
4046# First try GNU make style include.
4047echo "include confinc" > confmf
4048# Ignore all kinds of additional output from `make'.
4049case `$am_make -s -f confmf 2> /dev/null` in #(
4050*the\ am__doit\ target*)
4051 am__include=include
4052 am__quote=
4053 _am_result=GNU
4054 ;;
4055esac
4056# Now try BSD make style include.
4057if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4062 am__quote="\""
4063 _am_result=BSD
4064 ;;
4065 esac
4066fi
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070$as_echo "$_am_result" >&6; }
4071rm -f confinc confmf
4072
4073# Check whether --enable-dependency-tracking was given.
4074if test "${enable_dependency_tracking+set}" = set; then :
4075 enableval=$enable_dependency_tracking;
4076fi
4077
4078if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088fi
4089
4090
cristy3ed852e2009-09-05 21:47:34 +00004091ac_ext=c
4092ac_cpp='$CPP $CPPFLAGS'
4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004101if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004116 break 2
4117 fi
4118done
cristy8b350f62009-11-15 23:12:43 +00004119 done
cristy3ed852e2009-09-05 21:47:34 +00004120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo "$CC" >&6; }
4128else
cristy8b350f62009-11-15 23:12:43 +00004129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo "no" >&6; }
4131fi
4132
4133
4134fi
4135if test -z "$ac_cv_prog_CC"; then
4136 ac_ct_CC=$CC
4137 # Extract the first word of "gcc", so it can be a program name with args.
4138set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004142 $as_echo_n "(cached) " >&6
4143else
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156 break 2
4157 fi
4158done
cristy8b350f62009-11-15 23:12:43 +00004159 done
cristy3ed852e2009-09-05 21:47:34 +00004160IFS=$as_save_IFS
4161
4162fi
4163fi
4164ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo "$ac_ct_CC" >&6; }
4168else
cristy8b350f62009-11-15 23:12:43 +00004169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo "no" >&6; }
4171fi
4172
4173 if test "x$ac_ct_CC" = x; then
4174 CC=""
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177yes:)
cristy8b350f62009-11-15 23:12:43 +00004178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180ac_tool_warned=yes ;;
4181esac
4182 CC=$ac_ct_CC
4183 fi
4184else
4185 CC="$ac_cv_prog_CC"
4186fi
4187
4188if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004194if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209 break 2
4210 fi
4211done
cristy8b350f62009-11-15 23:12:43 +00004212 done
cristy3ed852e2009-09-05 21:47:34 +00004213IFS=$as_save_IFS
4214
4215fi
4216fi
4217CC=$ac_cv_prog_CC
4218if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "$CC" >&6; }
4221else
cristy8b350f62009-11-15 23:12:43 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo "no" >&6; }
4224fi
4225
4226
4227 fi
4228fi
4229if test -z "$CC"; then
4230 # Extract the first word of "cc", so it can be a program name with args.
4231set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004234if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
4240 ac_prog_rejected=no
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249 ac_prog_rejected=yes
4250 continue
4251 fi
4252 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254 break 2
4255 fi
4256done
cristy8b350f62009-11-15 23:12:43 +00004257 done
cristy3ed852e2009-09-05 21:47:34 +00004258IFS=$as_save_IFS
4259
4260if test $ac_prog_rejected = yes; then
4261 # We found a bogon in the path, so make sure we never use it.
4262 set dummy $ac_cv_prog_CC
4263 shift
4264 if test $# != 0; then
4265 # We chose a different compiler from the bogus one.
4266 # However, it has the same basename, so the bogon will be chosen
4267 # first if we set CC to just the basename; use the full file name.
4268 shift
4269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270 fi
4271fi
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "$CC" >&6; }
4278else
cristy8b350f62009-11-15 23:12:43 +00004279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo "no" >&6; }
4281fi
4282
4283
4284fi
4285if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in cl.exe
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004293if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004294 $as_echo_n "(cached) " >&6
4295else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308 break 2
4309 fi
4310done
cristy8b350f62009-11-15 23:12:43 +00004311 done
cristy3ed852e2009-09-05 21:47:34 +00004312IFS=$as_save_IFS
4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo "$CC" >&6; }
4320else
cristy8b350f62009-11-15 23:12:43 +00004321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004322$as_echo "no" >&6; }
4323fi
4324
4325
4326 test -n "$CC" && break
4327 done
4328fi
4329if test -z "$CC"; then
4330 ac_ct_CC=$CC
4331 for ac_prog in cl.exe
4332do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352 break 2
4353 fi
4354done
cristy8b350f62009-11-15 23:12:43 +00004355 done
cristy3ed852e2009-09-05 21:47:34 +00004356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$ac_ct_CC" >&6; }
4364else
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "no" >&6; }
4367fi
4368
4369
4370 test -n "$ac_ct_CC" && break
4371done
4372
4373 if test "x$ac_ct_CC" = x; then
4374 CC=""
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377yes:)
cristy8b350f62009-11-15 23:12:43 +00004378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380ac_tool_warned=yes ;;
4381esac
4382 CC=$ac_ct_CC
4383 fi
4384fi
4385
4386fi
4387
4388
cristy8b350f62009-11-15 23:12:43 +00004389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004391as_fn_error $? "no acceptable C compiler found in \$PATH
4392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004393
4394# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396set X $ac_compile
4397ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004398for ac_option in --version -v -V -qversion; do
4399 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
cristy8b350f62009-11-15 23:12:43 +00004404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004408 if test -s conftest.err; then
4409 sed '10a\
4410... rest of stderr output deleted ...
4411 10q' conftest.err >conftest.er1
4412 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004413 fi
cristycd4c5312009-11-22 01:19:08 +00004414 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417done
cristy3ed852e2009-09-05 21:47:34 +00004418
cristy8b350f62009-11-15 23:12:43 +00004419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004420/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004421
cristy3ed852e2009-09-05 21:47:34 +00004422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004431ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004432# Try to create an executable without -o first, disregard a.out.
4433# It will help us diagnose broken compilers, and finding out an intuition
4434# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4438
4439# The possible output files:
4440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4441
4442ac_rmfiles=
4443for ac_file in $ac_files
4444do
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448 esac
4449done
4450rm -f $ac_rmfiles
4451
cristy8b350f62009-11-15 23:12:43 +00004452if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
cristy8b350f62009-11-15 23:12:43 +00004457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 (eval "$ac_link_default") 2>&5
4460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465# in a Makefile. We should not override ac_cv_exeext if it was cached,
4466# so that the user can short-circuit this test for compilers unknown to
4467# Autoconf.
4468for ac_file in $ac_files ''
4469do
4470 test -f "$ac_file" || continue
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4473 ;;
4474 [ab].out )
4475 # We found the default executable, but exeext='' is most
4476 # certainly right.
4477 break;;
4478 *.* )
cristy8b350f62009-11-15 23:12:43 +00004479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004480 then :; else
4481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482 fi
4483 # We set ac_cv_exeext here because the later test for it is not
4484 # safe: cross compilers may not add the suffix if given an `-o'
4485 # argument, so we may need to know it at that point already.
4486 # Even if this section looks crufty: it has the advantage of
4487 # actually working.
4488 break;;
4489 * )
4490 break;;
4491 esac
4492done
4493test "$ac_cv_exeext" = no && ac_cv_exeext=
4494
4495else
4496 ac_file=''
4497fi
cristy8b350f62009-11-15 23:12:43 +00004498if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
cristy8b350f62009-11-15 23:12:43 +00004504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004506as_fn_error 77 "C compiler cannot create executables
4507See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004511fi
cristycd4c5312009-11-22 01:19:08 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513$as_echo_n "checking for C compiler default output file name... " >&6; }
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004516ac_exeext=$ac_cv_exeext
4517
cristycd4c5312009-11-22 01:19:08 +00004518rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004519ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004522if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
cristy8b350f62009-11-15 23:12:43 +00004527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 (eval "$ac_link") 2>&5
4530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535# work properly (i.e., refer to `conftest.exe'), while it won't with
4536# `rm'.
4537for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4539 case $ac_file in
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 break;;
4543 * ) break;;
4544 esac
4545done
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004549as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004551fi
cristycd4c5312009-11-22 01:19:08 +00004552rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$ac_cv_exeext" >&6; }
4555
4556rm -f conftest.$ac_ext
4557EXEEXT=$ac_cv_exeext
4558ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h. */
4561#include <stdio.h>
4562int
4563main ()
4564{
4565FILE *f = fopen ("conftest.out", "w");
4566 return ferror (f) || fclose (f) != 0;
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572ac_clean_files="$ac_clean_files conftest.out"
4573# Check that the compiler produces executables we can run. If not, either
4574# the compiler is broken, or we cross compile.
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576$as_echo_n "checking whether we are cross compiling... " >&6; }
4577if test "$cross_compiling" != yes; then
4578 { { ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_link") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 if { ac_try='./conftest$ac_cv_exeext'
4590 { { case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; }; then
4600 cross_compiling=no
4601 else
4602 if test "$cross_compiling" = maybe; then
4603 cross_compiling=yes
4604 else
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004607as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004608If you meant to cross compile, use \`--host'.
cristyfd9dcd42010-08-08 18:07:02 +00004609See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004610 fi
4611 fi
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614$as_echo "$cross_compiling" >&6; }
4615
4616rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004620if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 $as_echo_n "(cached) " >&6
4622else
cristy8b350f62009-11-15 23:12:43 +00004623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004624/* end confdefs.h. */
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004635if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
cristy8b350f62009-11-15 23:12:43 +00004640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004642 (eval "$ac_compile") 2>&5
4643 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 for ac_file in conftest.o conftest.obj conftest.*; do
4647 test -f "$ac_file" || continue;
4648 case $ac_file in
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651 break;;
4652 esac
4653done
4654else
4655 $as_echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
cristy8b350f62009-11-15 23:12:43 +00004658{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004660as_fn_error $? "cannot compute suffix of object files: cannot compile
4661See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004662fi
cristy3ed852e2009-09-05 21:47:34 +00004663rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664fi
cristy8b350f62009-11-15 23:12:43 +00004665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_cv_objext" >&6; }
4667OBJEXT=$ac_cv_objext
4668ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004671if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004672 $as_echo_n "(cached) " >&6
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680#ifndef __GNUC__
4681 choke me
4682#endif
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_compiler_gnu=yes
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004692fi
cristy3ed852e2009-09-05 21:47:34 +00004693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694ac_cv_c_compiler_gnu=$ac_compiler_gnu
4695
4696fi
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699if test $ac_compiler_gnu = yes; then
4700 GCC=yes
4701else
4702 GCC=
4703fi
4704ac_test_CFLAGS=${CFLAGS+set}
4705ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004708if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 $as_echo_n "(cached) " >&6
4710else
4711 ac_save_c_werror_flag=$ac_c_werror_flag
4712 ac_c_werror_flag=yes
4713 ac_cv_prog_cc_g=no
4714 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 ac_cv_prog_cc_g=yes
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 CFLAGS=""
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004742
cristy8b350f62009-11-15 23:12:43 +00004743else
4744 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004745 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004759fi
cristy3ed852e2009-09-05 21:47:34 +00004760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
cristy3ed852e2009-09-05 21:47:34 +00004762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
cristy3ed852e2009-09-05 21:47:34 +00004764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766fi
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_cv_prog_cc_g" >&6; }
4769if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4776 fi
4777else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4782 fi
4783fi
cristy8b350f62009-11-15 23:12:43 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004786if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 $as_echo_n "(cached) " >&6
4788else
4789 ac_cv_prog_cc_c89=no
4790ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004792/* end confdefs.h. */
4793#include <stdarg.h>
4794#include <stdio.h>
4795#include <sys/types.h>
4796#include <sys/stat.h>
4797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4798struct buf { int x; };
4799FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800static char *e (p, i)
4801 char **p;
4802 int i;
4803{
4804 return p[i];
4805}
4806static char *f (char * (*g) (char **, int), char **p, ...)
4807{
4808 char *s;
4809 va_list v;
4810 va_start (v,p);
4811 s = g (p, va_arg (v,int));
4812 va_end (v);
4813 return s;
4814}
4815
4816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4817 function prototypes and stuff, but not '\xHH' hex character constants.
4818 These don't provoke an error unfortunately, instead are silently treated
4819 as 'x'. The following induces an error, until -std is added to get
4820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4821 array size at least. It's necessary to write '\x00'==0 to get something
4822 that's true only with -std. */
4823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4824
4825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826 inside strings and character constants. */
4827#define FOO(x) 'x'
4828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4829
4830int test (int i, double x);
4831struct s1 {int (*f) (int a);};
4832struct s2 {int (*f) (double a);};
4833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834int argc;
4835char **argv;
4836int
4837main ()
4838{
4839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4846do
4847 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004848 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristy3ed852e2009-09-05 21:47:34 +00004851rm -f core conftest.err conftest.$ac_objext
4852 test "x$ac_cv_prog_cc_c89" != "xno" && break
4853done
4854rm -f conftest.$ac_ext
4855CC=$ac_save_CC
4856
4857fi
4858# AC_CACHE_VAL
4859case "x$ac_cv_prog_cc_c89" in
4860 x)
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "none needed" >&6; } ;;
4863 xno)
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "unsupported" >&6; } ;;
4866 *)
4867 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4870esac
cristy8b350f62009-11-15 23:12:43 +00004871if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004872
cristy8b350f62009-11-15 23:12:43 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874
4875ac_ext=c
4876ac_cpp='$CPP $CPPFLAGS'
4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004880
cristya0b81c32010-01-22 02:54:33 +00004881depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004882
cristya0b81c32010-01-22 02:54:33 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884$as_echo_n "checking dependency style of $depcc... " >&6; }
4885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004887else
cristya0b81c32010-01-22 02:54:33 +00004888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4893 # in D'.
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 am__universal=false
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914 esac
4915
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4920 #
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4924 : > sub/conftest.c
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928 # Solaris 8's {/usr,}/bin/sh.
4929 touch sub/conftst$i.h
4930 done
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4939 case $depmode in
4940 gcc)
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4943 ;;
4944 nosideeffect)
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4948 continue
4949 else
4950 break
4951 fi
4952 ;;
4953 msvisualcpp | msvcmsys)
4954 # This compiler won't grok `-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4958 am__minus_obj=
4959 ;;
4960 none) break ;;
4961 esac
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thusly:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4981 break
4982 fi
4983 fi
4984 done
4985
4986 cd ..
4987 rm -rf conftest.dir
4988else
4989 am_cv_CC_dependencies_compiler_type=none
4990fi
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4996
4997 if
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCC_TRUE=
5001 am__fastdepCC_FALSE='#'
5002else
5003 am__fastdepCC_TRUE='#'
5004 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005005fi
5006
5007
5008
cristya0b81c32010-01-22 02:54:33 +00005009ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015$as_echo_n "checking how to run the C preprocessor... " >&6; }
5016# On Suns, sometimes $CPP names a directory.
5017if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5019fi
5020if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028for ac_c_preproc_warn_flag in '' yes
5029do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h. */
5038#ifdef __STDC__
5039# include <limits.h>
5040#else
5041# include <assert.h>
5042#endif
5043 Syntax error
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046
5047else
5048 # Broken: fails on valid input.
5049continue
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5061continue
5062else
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then :
5073 break
5074fi
5075
5076 done
5077 ac_cv_prog_CPP=$CPP
5078
5079fi
5080 CPP=$ac_cv_prog_CPP
5081else
5082 ac_cv_prog_CPP=$CPP
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085$as_echo "$CPP" >&6; }
5086ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifdef __STDC__
5098# include <limits.h>
5099#else
5100# include <assert.h>
5101#endif
5102 Syntax error
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106else
5107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5120continue
5121else
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then :
5132
5133else
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005138fi
5139
5140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149if test "${ac_cv_path_GREP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -z "$GREP"; then
5153 ac_path_GREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in grep ggrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164# Check for GNU ac_path_GREP and select it if it is found.
5165 # Check for GNU $ac_path_GREP
5166case `"$ac_path_GREP" --version 2>&1` in
5167*GNU*)
5168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5169*)
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'GREP' >> "conftest.nl"
5178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_GREP="$ac_path_GREP"
5184 ac_path_GREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190esac
5191
5192 $ac_path_GREP_found && break 3
5193 done
5194 done
5195 done
5196IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_GREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005199 fi
5200else
5201 ac_cv_path_GREP=$GREP
5202fi
5203
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206$as_echo "$ac_cv_path_GREP" >&6; }
5207 GREP="$ac_cv_path_GREP"
5208
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211$as_echo_n "checking for egrep... " >&6; }
5212if test "${ac_cv_path_EGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216 then ac_cv_path_EGREP="$GREP -E"
5217 else
5218 if test -z "$EGREP"; then
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230# Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232case `"$ac_path_EGREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_EGREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_EGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005265 fi
5266else
5267 ac_cv_path_EGREP=$EGREP
5268fi
5269
5270 fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273$as_echo "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278$as_echo_n "checking for ANSI C header files... " >&6; }
5279if test "${ac_cv_header_stdc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdlib.h>
5285#include <stdarg.h>
5286#include <string.h>
5287#include <float.h>
5288
5289int
5290main ()
5291{
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_header_stdc=yes
5299else
5300 ac_cv_header_stdc=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#include <string.h>
5309
5310_ACEOF
5311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "memchr" >/dev/null 2>&1; then :
5313
5314else
5315 ac_cv_header_stdc=no
5316fi
5317rm -f conftest*
5318
5319fi
5320
5321if test $ac_cv_header_stdc = yes; then
5322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326
5327_ACEOF
5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then :
5330
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then :
5341 :
5342else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <ctype.h>
5346#include <stdlib.h>
5347#if ((' ' & 0x0FF) == 0x020)
5348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350#else
5351# define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356#endif
5357
5358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359int
5360main ()
5361{
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 return 2;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_run "$LINENO"; then :
5371
5372else
5373 ac_cv_header_stdc=no
5374fi
5375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377fi
5378
5379fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382$as_echo "$ac_cv_header_stdc" >&6; }
5383if test $ac_cv_header_stdc = yes; then
5384
5385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5386
5387fi
5388
5389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5392do :
5393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5395"
cristyfd9dcd42010-08-08 18:07:02 +00005396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005397 cat >>confdefs.h <<_ACEOF
5398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399_ACEOF
5400
5401fi
5402
5403done
5404
5405
5406
5407 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5409 MINIX=yes
5410else
5411 MINIX=
5412fi
5413
5414
5415 if test "$MINIX" = yes; then
5416
5417$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5418
5419
5420$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5421
5422
5423$as_echo "#define _MINIX 1" >>confdefs.h
5424
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435
5436# define __EXTENSIONS__ 1
5437 $ac_includes_default
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_safe_to_define___extensions__=yes
5448else
5449 ac_cv_safe_to_define___extensions__=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455 test $ac_cv_safe_to_define___extensions__ = yes &&
5456 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5457
5458 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5463
5464 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5465
5466
5467
5468# Check for programs
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502CC=$ac_cv_prog_CC
5503if test -n "$CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505$as_echo "$CC" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_CC"; then
5514 ac_ct_CC=$CC
5515 # Extract the first word of "gcc", so it can be a program name with args.
5516set dummy gcc; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_CC"; then
5523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_CC="gcc"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543if test -n "$ac_ct_CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545$as_echo "$ac_ct_CC" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551 if test "x$ac_ct_CC" = x; then
5552 CC=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 CC=$ac_ct_CC
5561 fi
5562else
5563 CC="$ac_cv_prog_CC"
5564fi
5565
5566if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}cc; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_CC+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_CC="${ac_tool_prefix}cc"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589done
5590 done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595CC=$ac_cv_prog_CC
5596if test -n "$CC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598$as_echo "$CC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605 fi
5606fi
5607if test -z "$CC"; then
5608 # Extract the first word of "cc", so it can be a program name with args.
5609set dummy cc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618 ac_prog_rejected=no
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627 ac_prog_rejected=yes
5628 continue
5629 fi
5630 ac_cv_prog_CC="cc"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638if test $ac_prog_rejected = yes; then
5639 # We found a bogon in the path, so make sure we never use it.
5640 set dummy $ac_cv_prog_CC
5641 shift
5642 if test $# != 0; then
5643 # We chose a different compiler from the bogus one.
5644 # However, it has the same basename, so the bogon will be chosen
5645 # first if we set CC to just the basename; use the full file name.
5646 shift
5647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5648 fi
5649fi
5650fi
5651fi
5652CC=$ac_cv_prog_CC
5653if test -n "$CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655$as_echo "$CC" >&6; }
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
5659fi
5660
5661
5662fi
5663if test -z "$CC"; then
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in cl.exe
5666 do
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694CC=$ac_cv_prog_CC
5695if test -n "$CC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697$as_echo "$CC" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704 test -n "$CC" && break
5705 done
5706fi
5707if test -z "$CC"; then
5708 ac_ct_CC=$CC
5709 for ac_prog in cl.exe
5710do
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712set dummy $ac_prog; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741$as_echo "$ac_ct_CC" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748 test -n "$ac_ct_CC" && break
5749done
5750
5751 if test "x$ac_ct_CC" = x; then
5752 CC=""
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760 CC=$ac_ct_CC
5761 fi
5762fi
5763
5764fi
5765
5766
5767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005769as_fn_error $? "no acceptable C compiler found in \$PATH
5770See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005771
5772# Provide some information about the compiler.
5773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5774set X $ac_compile
5775ac_compiler=$2
5776for ac_option in --version -v -V -qversion; do
5777 { { ac_try="$ac_compiler $ac_option >&5"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783$as_echo "$ac_try_echo"; } >&5
5784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5785 ac_status=$?
5786 if test -s conftest.err; then
5787 sed '10a\
5788... rest of stderr output deleted ...
5789 10q' conftest.err >conftest.er1
5790 cat conftest.er1 >&5
5791 fi
5792 rm -f conftest.er1 conftest.err
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5795done
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808#ifndef __GNUC__
5809 choke me
5810#endif
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_compiler_gnu=yes
5818else
5819 ac_compiler_gnu=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822ac_cv_c_compiler_gnu=$ac_compiler_gnu
5823
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827if test $ac_compiler_gnu = yes; then
5828 GCC=yes
5829else
5830 GCC=
5831fi
5832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835$as_echo_n "checking whether $CC accepts -g... " >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"; then :
5855 ac_cv_prog_cc_g=yes
5856else
5857 CFLAGS=""
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"; then :
5870
5871else
5872 ac_c_werror_flag=$ac_save_c_werror_flag
5873 CFLAGS="-g"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_prog_cc_g=yes
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896$as_echo "$ac_cv_prog_cc_g" >&6; }
5897if test "$ac_test_CFLAGS" = set; then
5898 CFLAGS=$ac_save_CFLAGS
5899elif test $ac_cv_prog_cc_g = yes; then
5900 if test "$GCC" = yes; then
5901 CFLAGS="-g -O2"
5902 else
5903 CFLAGS="-g"
5904 fi
5905else
5906 if test "$GCC" = yes; then
5907 CFLAGS="-O2"
5908 else
5909 CFLAGS=
5910 fi
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 ac_cv_prog_cc_c89=no
5918ac_save_CC=$CC
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdarg.h>
5922#include <stdio.h>
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926struct buf { int x; };
5927FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928static char *e (p, i)
5929 char **p;
5930 int i;
5931{
5932 return p[i];
5933}
5934static char *f (char * (*g) (char **, int), char **p, ...)
5935{
5936 char *s;
5937 va_list v;
5938 va_start (v,p);
5939 s = g (p, va_arg (v,int));
5940 va_end (v);
5941 return s;
5942}
5943
5944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5955#define FOO(x) 'x'
5956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958int test (int i, double x);
5959struct s1 {int (*f) (int a);};
5960struct s2 {int (*f) (double a);};
5961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962int argc;
5963char **argv;
5964int
5965main ()
5966{
5967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974do
5975 CC="$ac_save_CC $ac_arg"
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_prog_cc_c89=$ac_arg
5978fi
5979rm -f core conftest.err conftest.$ac_objext
5980 test "x$ac_cv_prog_cc_c89" != "xno" && break
5981done
5982rm -f conftest.$ac_ext
5983CC=$ac_save_CC
5984
5985fi
5986# AC_CACHE_VAL
5987case "x$ac_cv_prog_cc_c89" in
5988 x)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990$as_echo "none needed" >&6; } ;;
5991 xno)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993$as_echo "unsupported" >&6; } ;;
5994 *)
5995 CC="$CC $ac_cv_prog_cc_c89"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5998esac
5999if test "x$ac_cv_prog_cc_c89" != xno; then :
6000
6001fi
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
cristy3ed852e2009-09-05 21:47:34 +00006009depcc="$CC" am_compiler_list=
6010
cristy8b350f62009-11-15 23:12:43 +00006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006012$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006014 $as_echo_n "(cached) " >&6
6015else
6016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017 # We make a subdir and do the tests there. Otherwise we can end up
6018 # making bogus files that we don't know about and never remove. For
6019 # instance it was reported that on HP-UX the gcc test will end up
6020 # making a dummy file named `D' -- because `-MD' means `put the output
6021 # in D'.
6022 mkdir conftest.dir
6023 # Copy depcomp to subdir because otherwise we won't find it if we're
6024 # using a relative directory.
6025 cp "$am_depcomp" conftest.dir
6026 cd conftest.dir
6027 # We will build objects and dependencies in a subdirectory because
6028 # it helps to detect inapplicable dependency modes. For instance
6029 # both Tru64's cc and ICC support -MD to output dependencies as a
6030 # side effect of compilation, but ICC will put the dependencies in
6031 # the current directory while Tru64 will put them in the object
6032 # directory.
6033 mkdir sub
6034
6035 am_cv_CC_dependencies_compiler_type=none
6036 if test "$am_compiler_list" = ""; then
6037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038 fi
6039 am__universal=false
6040 case " $depcc " in #(
6041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6042 esac
6043
6044 for depmode in $am_compiler_list; do
6045 # Setup a source with many dependencies, because some compilers
6046 # like to wrap large dependency lists on column 80 (with \), and
6047 # we should not choose a depcomp mode which is confused by this.
6048 #
6049 # We need to recreate these files for each test, as the compiler may
6050 # overwrite some of them when testing with obscure command lines.
6051 # This happens at least with the AIX C compiler.
6052 : > sub/conftest.c
6053 for i in 1 2 3 4 5 6; do
6054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056 # Solaris 8's {/usr,}/bin/sh.
6057 touch sub/conftst$i.h
6058 done
6059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6060
6061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062 # mode. It turns out that the SunPro C++ compiler does not properly
6063 # handle `-M -o', and we need to detect this. Also, some Intel
6064 # versions had trouble with output in subdirs
6065 am__obj=sub/conftest.${OBJEXT-o}
6066 am__minus_obj="-o $am__obj"
6067 case $depmode in
6068 gcc)
6069 # This depmode causes a compiler race in universal mode.
6070 test "$am__universal" = false || continue
6071 ;;
6072 nosideeffect)
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6076 continue
6077 else
6078 break
6079 fi
6080 ;;
6081 msvisualcpp | msvcmsys)
6082 # This compiler won't grok `-c -o', but also, the minuso test has
6083 # not run yet. These depmodes are late enough in the game, and
6084 # so weak that their functioning should not be impacted.
6085 am__obj=conftest.${OBJEXT-o}
6086 am__minus_obj=
6087 ;;
6088 none) break ;;
6089 esac
6090 if depmode=$depmode \
6091 source=sub/conftest.c object=$am__obj \
6092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094 >/dev/null 2>conftest.err &&
6095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099 # icc doesn't choke on unknown options, it will just issue warnings
6100 # or remarks (even with -Werror). So we grep stderr for any message
6101 # that says an option was ignored or not supported.
6102 # When given -MP, icc 7.0 and 7.1 complain thusly:
6103 # icc: Command line warning: ignoring option '-M'; no argument required
6104 # The diagnosis changed in icc 8.0:
6105 # icc: Command line remark: option '-MP' not supported
6106 if (grep 'ignoring option' conftest.err ||
6107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 am_cv_CC_dependencies_compiler_type=$depmode
6109 break
6110 fi
6111 fi
6112 done
6113
6114 cd ..
6115 rm -rf conftest.dir
6116else
6117 am_cv_CC_dependencies_compiler_type=none
6118fi
6119
6120fi
cristy8b350f62009-11-15 23:12:43 +00006121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6124
6125 if
6126 test "x$enable_dependency_tracking" != xno \
6127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6128 am__fastdepCC_TRUE=
6129 am__fastdepCC_FALSE='#'
6130else
6131 am__fastdepCC_TRUE='#'
6132 am__fastdepCC_FALSE=
6133fi
6134
6135
cristy95646052009-11-28 23:05:30 +00006136ac_ext=cpp
6137ac_cpp='$CXXCPP $CPPFLAGS'
6138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6143 CXX=$CCC
6144 else
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147 do
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_CXX+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170 done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175CXX=$ac_cv_prog_CXX
6176if test -n "$CXX"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178$as_echo "$CXX" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$CXX" && break
6186 done
6187fi
6188if test -z "$CXX"; then
6189 ac_ct_CXX=$CXX
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191do
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193set dummy $ac_prog; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220if test -n "$ac_ct_CXX"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222$as_echo "$ac_ct_CXX" >&6; }
6223else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229 test -n "$ac_ct_CXX" && break
6230done
6231
6232 if test "x$ac_ct_CXX" = x; then
6233 CXX="g++"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 CXX=$ac_ct_CXX
6242 fi
6243fi
6244
6245 fi
6246fi
6247# Provide some information about the compiler.
6248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6249set X $ac_compile
6250ac_compiler=$2
6251for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260 ac_status=$?
6261 if test -s conftest.err; then
6262 sed '10a\
6263... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
6266 fi
6267 rm -f conftest.er1 conftest.err
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6270done
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_cxx_try_compile "$LINENO"; then :
6292 ac_compiler_gnu=yes
6293else
6294 ac_compiler_gnu=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302if test $ac_compiler_gnu = yes; then
6303 GXX=yes
6304else
6305 GXX=
6306fi
6307ac_test_CXXFLAGS=${CXXFLAGS+set}
6308ac_save_CXXFLAGS=$CXXFLAGS
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6316 ac_cv_prog_cxx_g=no
6317 CXXFLAGS="-g"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
6329if ac_fn_cxx_try_compile "$LINENO"; then :
6330 ac_cv_prog_cxx_g=yes
6331else
6332 CXXFLAGS=""
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_cxx_try_compile "$LINENO"; then :
6345
6346else
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6348 CXXFLAGS="-g"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371$as_echo "$ac_cv_prog_cxx_g" >&6; }
6372if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6376 CXXFLAGS="-g -O2"
6377 else
6378 CXXFLAGS="-g"
6379 fi
6380else
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-O2"
6383 else
6384 CXXFLAGS=
6385 fi
6386fi
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393depcc="$CXX" am_compiler_list=
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396$as_echo_n "checking dependency style of $depcc... " >&6; }
6397if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399else
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # in D'.
6406 mkdir conftest.dir
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6410 cd conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6416 # directory.
6417 mkdir sub
6418
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 fi
6423 am__universal=false
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426 esac
6427
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6432 #
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6436 : > sub/conftest.c
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6442 done
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6451 case $depmode in
6452 gcc)
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6455 ;;
6456 nosideeffect)
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6460 continue
6461 else
6462 break
6463 fi
6464 ;;
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6470 am__minus_obj=
6471 ;;
6472 none) break ;;
6473 esac
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6493 break
6494 fi
6495 fi
6496 done
6497
6498 cd ..
6499 rm -rf conftest.dir
6500else
6501 am_cv_CXX_dependencies_compiler_type=none
6502fi
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509 if
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6514else
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6517fi
6518
6519
cristy8b350f62009-11-15 23:12:43 +00006520 case $ac_cv_prog_cc_stdc in #(
6521 no) :
6522 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6523 *) :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006525$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006526if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006527 $as_echo_n "(cached) " >&6
6528else
6529 ac_cv_prog_cc_c99=no
6530ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006532/* end confdefs.h. */
6533#include <stdarg.h>
6534#include <stdbool.h>
6535#include <stdlib.h>
6536#include <wchar.h>
6537#include <stdio.h>
6538
6539// Check varargs macros. These examples are taken from C99 6.10.3.5.
6540#define debug(...) fprintf (stderr, __VA_ARGS__)
6541#define showlist(...) puts (#__VA_ARGS__)
6542#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6543static void
6544test_varargs_macros (void)
6545{
6546 int x = 1234;
6547 int y = 5678;
6548 debug ("Flag");
6549 debug ("X = %d\n", x);
6550 showlist (The first, second, and third items.);
6551 report (x>y, "x is %d but y is %d", x, y);
6552}
6553
6554// Check long long types.
6555#define BIG64 18446744073709551615ull
6556#define BIG32 4294967295ul
6557#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6558#if !BIG_OK
6559 your preprocessor is broken;
6560#endif
6561#if BIG_OK
6562#else
6563 your preprocessor is broken;
6564#endif
6565static long long int bignum = -9223372036854775807LL;
6566static unsigned long long int ubignum = BIG64;
6567
6568struct incomplete_array
6569{
6570 int datasize;
6571 double data[];
6572};
6573
6574struct named_init {
6575 int number;
6576 const wchar_t *name;
6577 double average;
6578};
6579
6580typedef const char *ccp;
6581
6582static inline int
6583test_restrict (ccp restrict text)
6584{
6585 // See if C++-style comments work.
6586 // Iterate through items via the restricted pointer.
6587 // Also check for declarations in for loops.
6588 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6589 continue;
6590 return 0;
6591}
6592
6593// Check varargs and va_copy.
6594static void
6595test_varargs (const char *format, ...)
6596{
6597 va_list args;
6598 va_start (args, format);
6599 va_list args_copy;
6600 va_copy (args_copy, args);
6601
6602 const char *str;
6603 int number;
6604 float fnumber;
6605
6606 while (*format)
6607 {
6608 switch (*format++)
6609 {
6610 case 's': // string
6611 str = va_arg (args_copy, const char *);
6612 break;
6613 case 'd': // int
6614 number = va_arg (args_copy, int);
6615 break;
6616 case 'f': // float
6617 fnumber = va_arg (args_copy, double);
6618 break;
6619 default:
6620 break;
6621 }
6622 }
6623 va_end (args_copy);
6624 va_end (args);
6625}
6626
6627int
6628main ()
6629{
6630
6631 // Check bool.
6632 _Bool success = false;
6633
6634 // Check restrict.
6635 if (test_restrict ("String literal") == 0)
6636 success = true;
6637 char *restrict newvar = "Another string";
6638
6639 // Check varargs.
6640 test_varargs ("s, d' f .", "string", 65, 34.234);
6641 test_varargs_macros ();
6642
6643 // Check flexible array members.
6644 struct incomplete_array *ia =
6645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6646 ia->datasize = 10;
6647 for (int i = 0; i < ia->datasize; ++i)
6648 ia->data[i] = i * 1.234;
6649
6650 // Check named initializers.
6651 struct named_init ni = {
6652 .number = 34,
6653 .name = L"Test wide string",
6654 .average = 543.34343,
6655 };
6656
6657 ni.number = 58;
6658
6659 int dynamic_array[ni.number];
6660 dynamic_array[ni.number - 1] = 543;
6661
6662 // work around unused variable warnings
6663 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664 || dynamic_array[ni.number - 1] != 543);
6665
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6671do
6672 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006673 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006674 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006675fi
cristy3ed852e2009-09-05 21:47:34 +00006676rm -f core conftest.err conftest.$ac_objext
6677 test "x$ac_cv_prog_cc_c99" != "xno" && break
6678done
6679rm -f conftest.$ac_ext
6680CC=$ac_save_CC
6681
6682fi
6683# AC_CACHE_VAL
6684case "x$ac_cv_prog_cc_c99" in
6685 x)
cristy8b350f62009-11-15 23:12:43 +00006686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo "none needed" >&6; } ;;
6688 xno)
cristy8b350f62009-11-15 23:12:43 +00006689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "unsupported" >&6; } ;;
6691 *)
6692 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006694$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6695esac
cristy8b350f62009-11-15 23:12:43 +00006696if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6698else
cristy8b350f62009-11-15 23:12:43 +00006699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006701if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006702 $as_echo_n "(cached) " >&6
6703else
6704 ac_cv_prog_cc_c89=no
6705ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006707/* end confdefs.h. */
6708#include <stdarg.h>
6709#include <stdio.h>
6710#include <sys/types.h>
6711#include <sys/stat.h>
6712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6713struct buf { int x; };
6714FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715static char *e (p, i)
6716 char **p;
6717 int i;
6718{
6719 return p[i];
6720}
6721static char *f (char * (*g) (char **, int), char **p, ...)
6722{
6723 char *s;
6724 va_list v;
6725 va_start (v,p);
6726 s = g (p, va_arg (v,int));
6727 va_end (v);
6728 return s;
6729}
6730
6731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6732 function prototypes and stuff, but not '\xHH' hex character constants.
6733 These don't provoke an error unfortunately, instead are silently treated
6734 as 'x'. The following induces an error, until -std is added to get
6735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6736 array size at least. It's necessary to write '\x00'==0 to get something
6737 that's true only with -std. */
6738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6739
6740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741 inside strings and character constants. */
6742#define FOO(x) 'x'
6743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6744
6745int test (int i, double x);
6746struct s1 {int (*f) (int a);};
6747struct s2 {int (*f) (double a);};
6748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6749int argc;
6750char **argv;
6751int
6752main ()
6753{
6754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6761do
6762 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006763 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006764 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006765fi
cristy3ed852e2009-09-05 21:47:34 +00006766rm -f core conftest.err conftest.$ac_objext
6767 test "x$ac_cv_prog_cc_c89" != "xno" && break
6768done
6769rm -f conftest.$ac_ext
6770CC=$ac_save_CC
6771
6772fi
6773# AC_CACHE_VAL
6774case "x$ac_cv_prog_cc_c89" in
6775 x)
cristy8b350f62009-11-15 23:12:43 +00006776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006777$as_echo "none needed" >&6; } ;;
6778 xno)
cristy8b350f62009-11-15 23:12:43 +00006779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006780$as_echo "unsupported" >&6; } ;;
6781 *)
6782 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6785esac
cristy8b350f62009-11-15 23:12:43 +00006786if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6788else
6789 ac_cv_prog_cc_stdc=no
6790fi
6791
cristy3ed852e2009-09-05 21:47:34 +00006792fi
cristy3ed852e2009-09-05 21:47:34 +00006793 ;;
6794esac
cristy8b350f62009-11-15 23:12:43 +00006795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006797 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799fi
6800
cristy8b350f62009-11-15 23:12:43 +00006801 case $ac_cv_prog_cc_stdc in #(
6802 no) :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804$as_echo "unsupported" >&6; } ;; #(
6805 '') :
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807$as_echo "none needed" >&6; } ;; #(
6808 *) :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6811esac
6812
cristy3ed852e2009-09-05 21:47:34 +00006813ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo_n "checking how to run the C preprocessor... " >&6; }
6820# On Suns, sometimes $CPP names a directory.
6821if test -n "$CPP" && test -d "$CPP"; then
6822 CPP=
6823fi
6824if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006825 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 $as_echo_n "(cached) " >&6
6827else
6828 # Double quotes because CPP needs to be expanded
6829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6830 do
6831 ac_preproc_ok=false
6832for ac_c_preproc_warn_flag in '' yes
6833do
6834 # Use a header file that comes with gcc, so configuring glibc
6835 # with a fresh cross-compiler works.
6836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 # <limits.h> exists even on freestanding compilers.
6838 # On the NeXT, cc -E runs the code through the compiler's parser,
6839 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006841/* end confdefs.h. */
6842#ifdef __STDC__
6843# include <limits.h>
6844#else
6845# include <assert.h>
6846#endif
6847 Syntax error
6848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006849if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006850
cristy8b350f62009-11-15 23:12:43 +00006851else
cristy3ed852e2009-09-05 21:47:34 +00006852 # Broken: fails on valid input.
6853continue
6854fi
cristy3ed852e2009-09-05 21:47:34 +00006855rm -f conftest.err conftest.$ac_ext
6856
6857 # OK, works on sane cases. Now check whether nonexistent headers
6858 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006860/* end confdefs.h. */
6861#include <ac_nonexistent.h>
6862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 # Broken: success on invalid input.
6865continue
6866else
cristy3ed852e2009-09-05 21:47:34 +00006867 # Passes both tests.
6868ac_preproc_ok=:
6869break
6870fi
cristy3ed852e2009-09-05 21:47:34 +00006871rm -f conftest.err conftest.$ac_ext
6872
6873done
6874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006876if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006877 break
6878fi
6879
6880 done
6881 ac_cv_prog_CPP=$CPP
6882
6883fi
6884 CPP=$ac_cv_prog_CPP
6885else
6886 ac_cv_prog_CPP=$CPP
6887fi
cristy8b350f62009-11-15 23:12:43 +00006888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006889$as_echo "$CPP" >&6; }
6890ac_preproc_ok=false
6891for ac_c_preproc_warn_flag in '' yes
6892do
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006900/* end confdefs.h. */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906 Syntax error
6907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006909
cristy8b350f62009-11-15 23:12:43 +00006910else
cristy3ed852e2009-09-05 21:47:34 +00006911 # Broken: fails on valid input.
6912continue
6913fi
cristy3ed852e2009-09-05 21:47:34 +00006914rm -f conftest.err conftest.$ac_ext
6915
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#include <ac_nonexistent.h>
6921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: success on invalid input.
6924continue
6925else
cristy3ed852e2009-09-05 21:47:34 +00006926 # Passes both tests.
6927ac_preproc_ok=:
6928break
6929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f conftest.err conftest.$ac_ext
6931
6932done
6933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006935if $ac_preproc_ok; then :
6936
cristy3ed852e2009-09-05 21:47:34 +00006937else
cristy8b350f62009-11-15 23:12:43 +00006938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00006940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006942fi
6943
6944ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
cristy8b350f62009-11-15 23:12:43 +00006950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006952if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956 for ac_i in 1 2 3 4 5 6 7; do
6957 ac_script="$ac_script$as_nl$ac_script"
6958 done
6959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006960 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006961 if test -z "$SED"; then
6962 ac_path_SED_found=false
6963 # Loop through the user's path and test for each of PROGNAME-LIST
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006969 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973# Check for GNU ac_path_SED and select it if it is found.
6974 # Check for GNU $ac_path_SED
6975case `"$ac_path_SED" --version 2>&1` in
6976*GNU*)
6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978*)
6979 ac_count=0
6980 $as_echo_n 0123456789 >"conftest.in"
6981 while :
6982 do
6983 cat "conftest.in" "conftest.in" >"conftest.tmp"
6984 mv "conftest.tmp" "conftest.in"
6985 cp "conftest.in" "conftest.nl"
6986 $as_echo '' >> "conftest.nl"
6987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006989 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006990 if test $ac_count -gt ${ac_path_SED_max-0}; then
6991 # Best one so far, save it but keep looking for a better one
6992 ac_cv_path_SED="$ac_path_SED"
6993 ac_path_SED_max=$ac_count
6994 fi
6995 # 10*(2^10) chars as input seems more than enough
6996 test $ac_count -gt 10 && break
6997 done
6998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999esac
7000
7001 $ac_path_SED_found && break 3
7002 done
7003 done
cristy8b350f62009-11-15 23:12:43 +00007004 done
cristy3ed852e2009-09-05 21:47:34 +00007005IFS=$as_save_IFS
7006 if test -z "$ac_cv_path_SED"; then
cristyfd9dcd42010-08-08 18:07:02 +00007007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007008 fi
7009else
7010 ac_cv_path_SED=$SED
7011fi
7012
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_path_SED" >&6; }
7016 SED="$ac_cv_path_SED"
7017 rm -f conftest.sed
7018
7019test -z "$SED" && SED=sed
7020Xsed="$SED -e 1s/^X//"
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
cristy8b350f62009-11-15 23:12:43 +00007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007033$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007034if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038 then ac_cv_path_FGREP="$GREP -F"
7039 else
7040 if test -z "$FGREP"; then
7041 ac_path_FGREP_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007048 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052# Check for GNU ac_path_FGREP and select it if it is found.
7053 # Check for GNU $ac_path_FGREP
7054case `"$ac_path_FGREP" --version 2>&1` in
7055*GNU*)
7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7057*)
7058 ac_count=0
7059 $as_echo_n 0123456789 >"conftest.in"
7060 while :
7061 do
7062 cat "conftest.in" "conftest.in" >"conftest.tmp"
7063 mv "conftest.tmp" "conftest.in"
7064 cp "conftest.in" "conftest.nl"
7065 $as_echo 'FGREP' >> "conftest.nl"
7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007068 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070 # Best one so far, save it but keep looking for a better one
7071 ac_cv_path_FGREP="$ac_path_FGREP"
7072 ac_path_FGREP_max=$ac_count
7073 fi
7074 # 10*(2^10) chars as input seems more than enough
7075 test $ac_count -gt 10 && break
7076 done
7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7078esac
7079
7080 $ac_path_FGREP_found && break 3
7081 done
7082 done
cristy8b350f62009-11-15 23:12:43 +00007083 done
cristy3ed852e2009-09-05 21:47:34 +00007084IFS=$as_save_IFS
7085 if test -z "$ac_cv_path_FGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00007086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007087 fi
7088else
7089 ac_cv_path_FGREP=$FGREP
7090fi
7091
7092 fi
7093fi
cristy8b350f62009-11-15 23:12:43 +00007094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "$ac_cv_path_FGREP" >&6; }
7096 FGREP="$ac_cv_path_FGREP"
7097
7098
7099test -z "$GREP" && GREP=grep
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
cristyfd9dcd42010-08-08 18:07:02 +00007117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122$as_echo_n "checking how to print strings... " >&6; }
7123# Test print first, because it will be a builtin if present.
7124if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7126 ECHO='print -r --'
7127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7128 ECHO='printf %s\n'
7129else
7130 # Use this function as a fallback that always works.
7131 func_fallback_echo ()
7132 {
7133 eval 'cat <<_LTECHO_EOF
7134$1
7135_LTECHO_EOF'
7136 }
7137 ECHO='func_fallback_echo'
7138fi
7139
7140# func_echo_all arg...
7141# Invoke $ECHO with all args, space-separated.
7142func_echo_all ()
7143{
7144 $ECHO ""
7145}
7146
7147case "$ECHO" in
7148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149$as_echo "printf" >&6; } ;;
7150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151$as_echo "print -r" >&6; } ;;
7152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153$as_echo "cat" >&6; } ;;
7154esac
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
cristy3ed852e2009-09-05 21:47:34 +00007169
7170
7171# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007172if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7174else
7175 with_gnu_ld=no
7176fi
7177
7178ac_prog=ld
7179if test "$GCC" = yes; then
7180 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo_n "checking for ld used by $CC... " >&6; }
7183 case $host in
7184 *-*-mingw*)
7185 # gcc leaves a trailing carriage return which upsets mingw
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7187 *)
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7189 esac
7190 case $ac_prog in
7191 # Accept absolute paths.
7192 [\\/]* | ?:[\\/]*)
7193 re_direlt='/[^/][^/]*/\.\./'
7194 # Canonicalize the pathname of ld
7195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7198 done
7199 test -z "$LD" && LD="$ac_prog"
7200 ;;
7201 "")
7202 # If it fails, then pretend we aren't using GCC.
7203 ac_prog=ld
7204 ;;
7205 *)
7206 # If it is relative, then search for the first ld in PATH.
7207 with_gnu_ld=unknown
7208 ;;
7209 esac
7210elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for GNU ld... " >&6; }
7213else
cristy8b350f62009-11-15 23:12:43 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo_n "checking for non-GNU ld... " >&6; }
7216fi
cristy8b350f62009-11-15 23:12:43 +00007217if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007218 $as_echo_n "(cached) " >&6
7219else
7220 if test -z "$LD"; then
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH; do
7223 IFS="$lt_save_ifs"
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226 lt_cv_path_LD="$ac_dir/$ac_prog"
7227 # Check to see if the program is GNU ld. I'd rather use --version,
7228 # but apparently some variants of GNU ld only accept -v.
7229 # Break only if it was the GNU/non-GNU ld that we prefer.
7230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231 *GNU* | *'with BFD'*)
7232 test "$with_gnu_ld" != no && break
7233 ;;
7234 *)
7235 test "$with_gnu_ld" != yes && break
7236 ;;
7237 esac
7238 fi
7239 done
7240 IFS="$lt_save_ifs"
7241else
7242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7243fi
7244fi
7245
7246LD="$lt_cv_path_LD"
7247if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$LD" >&6; }
7250else
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "no" >&6; }
7253fi
cristyfd9dcd42010-08-08 18:07:02 +00007254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007257if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007258 $as_echo_n "(cached) " >&6
7259else
7260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261case `$LD -v 2>&1 </dev/null` in
7262*GNU* | *'with BFD'*)
7263 lt_cv_prog_gnu_ld=yes
7264 ;;
7265*)
7266 lt_cv_prog_gnu_ld=no
7267 ;;
7268esac
7269fi
cristy8b350f62009-11-15 23:12:43 +00007270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272with_gnu_ld=$lt_cv_prog_gnu_ld
7273
7274
7275
7276
7277
7278
7279
7280
7281
cristy3ed852e2009-09-05 21:47:34 +00007282
cristy837d6dc2010-02-27 01:16:57 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 ac_cv_prog_cc_c99=no
7289ac_save_CC=$CC
7290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292#include <stdarg.h>
7293#include <stdbool.h>
7294#include <stdlib.h>
7295#include <wchar.h>
7296#include <stdio.h>
7297
7298// Check varargs macros. These examples are taken from C99 6.10.3.5.
7299#define debug(...) fprintf (stderr, __VA_ARGS__)
7300#define showlist(...) puts (#__VA_ARGS__)
7301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7302static void
7303test_varargs_macros (void)
7304{
7305 int x = 1234;
7306 int y = 5678;
7307 debug ("Flag");
7308 debug ("X = %d\n", x);
7309 showlist (The first, second, and third items.);
7310 report (x>y, "x is %d but y is %d", x, y);
7311}
7312
7313// Check long long types.
7314#define BIG64 18446744073709551615ull
7315#define BIG32 4294967295ul
7316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7317#if !BIG_OK
7318 your preprocessor is broken;
7319#endif
7320#if BIG_OK
7321#else
7322 your preprocessor is broken;
7323#endif
7324static long long int bignum = -9223372036854775807LL;
7325static unsigned long long int ubignum = BIG64;
7326
7327struct incomplete_array
7328{
7329 int datasize;
7330 double data[];
7331};
7332
7333struct named_init {
7334 int number;
7335 const wchar_t *name;
7336 double average;
7337};
7338
7339typedef const char *ccp;
7340
7341static inline int
7342test_restrict (ccp restrict text)
7343{
7344 // See if C++-style comments work.
7345 // Iterate through items via the restricted pointer.
7346 // Also check for declarations in for loops.
7347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7348 continue;
7349 return 0;
7350}
7351
7352// Check varargs and va_copy.
7353static void
7354test_varargs (const char *format, ...)
7355{
7356 va_list args;
7357 va_start (args, format);
7358 va_list args_copy;
7359 va_copy (args_copy, args);
7360
7361 const char *str;
7362 int number;
7363 float fnumber;
7364
7365 while (*format)
7366 {
7367 switch (*format++)
7368 {
7369 case 's': // string
7370 str = va_arg (args_copy, const char *);
7371 break;
7372 case 'd': // int
7373 number = va_arg (args_copy, int);
7374 break;
7375 case 'f': // float
7376 fnumber = va_arg (args_copy, double);
7377 break;
7378 default:
7379 break;
7380 }
7381 }
7382 va_end (args_copy);
7383 va_end (args);
7384}
7385
7386int
7387main ()
7388{
7389
7390 // Check bool.
7391 _Bool success = false;
7392
7393 // Check restrict.
7394 if (test_restrict ("String literal") == 0)
7395 success = true;
7396 char *restrict newvar = "Another string";
7397
7398 // Check varargs.
7399 test_varargs ("s, d' f .", "string", 65, 34.234);
7400 test_varargs_macros ();
7401
7402 // Check flexible array members.
7403 struct incomplete_array *ia =
7404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7405 ia->datasize = 10;
7406 for (int i = 0; i < ia->datasize; ++i)
7407 ia->data[i] = i * 1.234;
7408
7409 // Check named initializers.
7410 struct named_init ni = {
7411 .number = 34,
7412 .name = L"Test wide string",
7413 .average = 543.34343,
7414 };
7415
7416 ni.number = 58;
7417
7418 int dynamic_array[ni.number];
7419 dynamic_array[ni.number - 1] = 543;
7420
7421 // work around unused variable warnings
7422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423 || dynamic_array[ni.number - 1] != 543);
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7430do
7431 CC="$ac_save_CC $ac_arg"
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_prog_cc_c99=$ac_arg
7434fi
7435rm -f core conftest.err conftest.$ac_objext
7436 test "x$ac_cv_prog_cc_c99" != "xno" && break
7437done
7438rm -f conftest.$ac_ext
7439CC=$ac_save_CC
7440
7441fi
7442# AC_CACHE_VAL
7443case "x$ac_cv_prog_cc_c99" in
7444 x)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446$as_echo "none needed" >&6; } ;;
7447 xno)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449$as_echo "unsupported" >&6; } ;;
7450 *)
7451 CC="$CC $ac_cv_prog_cc_c99"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7454esac
7455if test "x$ac_cv_prog_cc_c99" != xno; then :
7456
7457fi
7458
7459
cristy3ed852e2009-09-05 21:47:34 +00007460if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007465$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7466fi
7467set dummy $CC; ac_cc=`$as_echo "$2" |
7468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyfd9dcd42010-08-08 18:07:02 +00007469if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007470 $as_echo_n "(cached) " >&6
7471else
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483# Make sure it works both with $CC and with simple cc.
7484# We do the test twice because some compilers refuse to overwrite an
7485# existing .o file with -o, though they will create one.
7486ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7487rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007488if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
cristy8b350f62009-11-15 23:12:43 +00007492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007494 (eval "$ac_try") 2>&5
7495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } &&
7498 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
cristy8b350f62009-11-15 23:12:43 +00007502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007504 (eval "$ac_try") 2>&5
7505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007508then
7509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510 if test "x$CC" != xcc; then
7511 # Test first that cc exists at all.
7512 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007513 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
cristy8b350f62009-11-15 23:12:43 +00007517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007519 (eval "$ac_try") 2>&5
7520 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007523 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7524 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007525 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
cristy8b350f62009-11-15 23:12:43 +00007529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007531 (eval "$ac_try") 2>&5
7532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } &&
7535 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
cristy8b350f62009-11-15 23:12:43 +00007539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007541 (eval "$ac_try") 2>&5
7542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007545 then
7546 # cc works too.
7547 :
7548 else
7549 # cc exists but doesn't like -o.
7550 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7551 fi
7552 fi
7553 fi
7554else
7555 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7556fi
7557rm -f core conftest*
7558
7559fi
7560if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007562$as_echo "yes" >&6; }
7563else
cristy8b350f62009-11-15 23:12:43 +00007564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007565$as_echo "no" >&6; }
7566
cristy8b350f62009-11-15 23:12:43 +00007567$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007568
7569fi
7570
7571# FIXME: we rely on the cache variable name because
7572# there is no other way.
7573set dummy $CC
7574am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576if test "$am_t" != yes; then
7577 # Losing compiler, so override with the script.
7578 # FIXME: It is wrong to rewrite CC.
7579 # But if we don't then we get into trouble of one sort or another.
7580 # A longer-term fix would be to have automake use am__CC in this case,
7581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582 CC="$am_aux_dir/compile $CC"
7583fi
7584
7585
cristy92703d82010-04-26 00:18:18 +00007586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007590else
cristy92703d82010-04-26 00:18:18 +00007591 ac_cv_cflags_warn_all="no, unknown"
7592
7593 ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 ac_save_CFLAGS="$CFLAGS"
7600for 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" #
7601do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
7608return 0;
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007615fi
cristy92703d82010-04-26 00:18:18 +00007616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617done
7618 CFLAGS="$ac_save_CFLAGS"
7619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007624
7625
cristy92703d82010-04-26 00:18:18 +00007626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628$as_echo "$ac_cv_cflags_warn_all" >&6; }
7629case ".$ac_cv_cflags_warn_all" in
7630 .ok|.ok,*) ;;
7631 .|.no|.no,*)
7632 ;;
7633 *)
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646 fi
7647 ;;
7648esac
cristy3ed852e2009-09-05 21:47:34 +00007649
cristya0b81c32010-01-22 02:54:33 +00007650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00007655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00007663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy8b350f62009-11-15 23:12:43 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007697if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "yes" >&6; }
7701
cristy8b350f62009-11-15 23:12:43 +00007702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no" >&6; }
7709fi
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no" >&6; }
7713fi
7714
7715
7716
cristy0d3a6382010-04-26 00:45:55 +00007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718$as_echo_n "checking for __attribute__... " >&6; }
7719if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <stdlib.h>
7725 static void foo(void) __attribute__ ((unused));
7726 static void
7727 foo(void) {
7728 exit(1);
7729 }
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7741else
7742 ax_cv___attribute__=no
7743
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749$as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7751
7752$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754 fi
7755
7756
cristy3ed852e2009-09-05 21:47:34 +00007757
7758if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007764if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007765 $as_echo_n "(cached) " >&6
7766else
7767 case $PKG_CONFIG in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007781 break 2
7782 fi
7783done
cristy8b350f62009-11-15 23:12:43 +00007784 done
cristy3ed852e2009-09-05 21:47:34 +00007785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007793$as_echo "$PKG_CONFIG" >&6; }
7794else
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007807if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 $as_echo_n "(cached) " >&6
7809else
7810 case $ac_pt_PKG_CONFIG in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824 break 2
7825 fi
7826done
cristy8b350f62009-11-15 23:12:43 +00007827 done
cristy3ed852e2009-09-05 21:47:34 +00007828IFS=$as_save_IFS
7829
7830 ;;
7831esac
7832fi
7833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007836$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837else
cristy8b350f62009-11-15 23:12:43 +00007838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo "no" >&6; }
7840fi
7841
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7843 PKG_CONFIG=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846yes:)
cristy8b350f62009-11-15 23:12:43 +00007847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7852 fi
7853else
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855fi
7856
7857fi
7858if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007864$as_echo "yes" >&6; }
7865 else
cristy8b350f62009-11-15 23:12:43 +00007866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo "no" >&6; }
7868 PKG_CONFIG=""
7869 fi
7870
7871fi
7872
7873#
cristy3ed852e2009-09-05 21:47:34 +00007874# Enable run-time checking.
7875#
7876# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007877if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879else
7880 enable_bounds_checking='no'
7881fi
7882
7883
7884if test "$enable_bounds_checking" = yes; then
7885
cristy8b350f62009-11-15 23:12:43 +00007886$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007887
7888fi
7889
7890#
7891# Tests for Windows
7892#
7893
7894
cristy0d3a6382010-04-26 00:45:55 +00007895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906#ifndef _MSC_VER
7907 choke me
7908#endif
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ax_compiler_ms=yes
7916else
7917 ax_compiler_ms=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007925
7926GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007927native_win32_build='no'
7928cygwin_build='no'
7929case "${host_os}" in
7930 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007931 cygwin_build='yes'
7932 GDI32_LIBS='-lgdi32'
7933 ;;
7934 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7937 ;;
7938esac
7939if test "${GDI32_LIBS}x" != 'x'; then
7940
cristy8b350f62009-11-15 23:12:43 +00007941$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007942
7943fi
7944
7945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7948else
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7951fi
7952
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7956else
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7959fi
7960
7961 if test "${cygwin_build}" = 'yes' ; then
7962 CYGWIN_BUILD_TRUE=
7963 CYGWIN_BUILD_FALSE='#'
7964else
7965 CYGWIN_BUILD_TRUE='#'
7966 CYGWIN_BUILD_FALSE=
7967fi
7968
7969 if test "x${CC}" = 'xcl.exe' ; then
7970 USING_CL_TRUE=
7971 USING_CL_FALSE='#'
7972else
7973 USING_CL_TRUE='#'
7974 USING_CL_FALSE=
7975fi
7976
7977
7978WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981#
7982# Compiler flags tweaks
7983#
7984if test "${GCC}" != "yes"; then
7985 case "${host}" in
7986 *-*-hpux* )
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-AA'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -AA"
7993 fi
7994 ;;
7995 *-dec-osf5.* )
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999 else
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001 fi
8002 esac
8003fi
8004
8005# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008008if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 $as_echo_n "(cached) " >&6
8010else
8011
8012im_cv_ld_lazyload='none'
8013case "${host}" in
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8017 fi
8018 ;;
8019esac
8020
8021fi
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "$im_cv_ld_lazyload" >&6; }
8024if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8027 else
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029 fi
8030fi
8031
8032case "$host" in
8033*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008034 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008035if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037else
8038 build_osxuniversal=no
8039fi
8040
8041
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
cristyfd9dcd42010-08-08 18:07:02 +00008044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008045Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008047 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008048 fi
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 fi
8053 ;;
8054esac
8055
8056# Enable support for threads
8057
8058# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008059if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008060 withval=$with_threads; with_threads=$withval
8061else
8062 with_threads='yes'
8063fi
8064
8065
8066have_threads=no
8067if test "$with_threads" != 'no'; then
8068
8069
8070
8071ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
cristy964cb7f2010-04-25 23:18:00 +00008077ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008078
8079# We used to check for pthread.h first, but this fails if pthread.h
8080# requires special compiler flags (e.g. on True64 or Sequent).
8081# It gets checked for in the link test anyway.
8082
8083# First of all, check if the user has set any of the PTHREAD_LIBS,
8084# etcetera environment variables, and if threads linking works using
8085# them:
8086if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089 save_LIBS="$LIBS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008094/* end confdefs.h. */
8095
8096/* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102char pthread_join ();
8103int
8104main ()
8105{
8106return pthread_join ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008111if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008112 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008113fi
cristy8b350f62009-11-15 23:12:43 +00008114rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117$as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008119 PTHREAD_LIBS=""
8120 PTHREAD_CFLAGS=""
8121 fi
8122 LIBS="$save_LIBS"
8123 CFLAGS="$save_CFLAGS"
8124fi
8125
8126# We must check for the threads library under a number of different
8127# names; the ordering is very important because some systems
8128# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129# libraries is broken (non-POSIX).
8130
8131# Create a list of thread flags to try. Items starting with a "-" are
8132# C compiler flags, and other items are library names, except for "none"
8133# which indicates that we try without any flags at all, and "pthread-config"
8134# which is a program returning the flags for the Pth emulation library.
8135
cristy964cb7f2010-04-25 23:18:00 +00008136ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008137
8138# The ordering *is* (sometimes) important. Some notes on the
8139# individual items follow:
8140
8141# pthreads: AIX (must check this before -lpthread)
8142# none: in case threads are in libc; should be tried before -Kthread and
8143# other compiler flags to prevent continual compiler warnings
8144# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148# -pthreads: Solaris/gcc
8149# -mthreads: Mingw32/gcc, Lynx/gcc
8150# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151# doesn't hurt to check since this sometimes defines pthreads too;
8152# also defines -D_REENTRANT)
8153# ... -mt is also the pthreads flag for HP/aCC
8154# pthread: Linux, etcetera
8155# --thread-safe: KAI C++
8156# pthread-config: use pthread-config program (for GNU Pth library)
8157
8158case "${host_cpu}-${host_os}" in
8159 *solaris*)
8160
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8168
cristy964cb7f2010-04-25 23:18:00 +00008169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008170 ;;
cristy964cb7f2010-04-25 23:18:00 +00008171
8172 *-darwin*)
cristy3b472e52010-09-23 16:11:43 +00008173 ax_pthread_flags="-pthread $ax_pthread_flags"
cristy964cb7f2010-04-25 23:18:00 +00008174 ;;
cristy3ed852e2009-09-05 21:47:34 +00008175esac
8176
cristy964cb7f2010-04-25 23:18:00 +00008177if test x"$ax_pthread_ok" = xno; then
8178for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008179
8180 case $flag in
8181 none)
cristy8b350f62009-11-15 23:12:43 +00008182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008183$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184 ;;
8185
8186 -*)
cristy8b350f62009-11-15 23:12:43 +00008187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008188$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8190 ;;
8191
8192 pthread-config)
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008196$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008197if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008198 $as_echo_n "(cached) " >&6
8199else
cristy964cb7f2010-04-25 23:18:00 +00008200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008210 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008212 break 2
8213 fi
8214done
cristy8b350f62009-11-15 23:12:43 +00008215 done
cristy3ed852e2009-09-05 21:47:34 +00008216IFS=$as_save_IFS
8217
cristy964cb7f2010-04-25 23:18:00 +00008218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008219fi
8220fi
cristy964cb7f2010-04-25 23:18:00 +00008221ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008225else
cristy8b350f62009-11-15 23:12:43 +00008226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008227$as_echo "no" >&6; }
8228fi
8229
8230
cristy964cb7f2010-04-25 23:18:00 +00008231 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234 ;;
8235
8236 *)
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8240 ;;
8241 esac
8242
8243 save_LIBS="$LIBS"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008258/* end confdefs.h. */
8259#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008262int
8263main ()
8264{
cristy964cb7f2010-04-25 23:18:00 +00008265pthread_t th; pthread_attr_t attr;
cristy3b472e52010-09-23 16:11:43 +00008266 pthread_create(&th,0,start_routine,0);
cristy964cb7f2010-04-25 23:18:00 +00008267 pthread_join(th, 0);
8268 pthread_attr_init(&attr);
8269 pthread_cleanup_push(routine, 0);
cristy964cb7f2010-04-25 23:18:00 +00008270 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008271 ;
8272 return 0;
8273}
8274_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008275if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008276 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008277fi
cristy8b350f62009-11-15 23:12:43 +00008278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008280
8281 LIBS="$save_LIBS"
8282 CFLAGS="$save_CFLAGS"
8283
cristy964cb7f2010-04-25 23:18:00 +00008284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285$as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008287 break;
8288 fi
8289
8290 PTHREAD_LIBS=""
8291 PTHREAD_CFLAGS=""
8292done
8293fi
8294
8295# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008296if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008297 save_LIBS="$LIBS"
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo_n "checking for joinable pthread attribute... " >&6; }
8305 attr_name=unknown
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008308/* end confdefs.h. */
8309#include <pthread.h>
8310int
8311main ()
8312{
8313int attr=$attr; return attr;
8314 ;
8315 return 0;
8316}
8317_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008319 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008320fi
cristy8b350f62009-11-15 23:12:43 +00008321rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008323 done
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328cat >>confdefs.h <<_ACEOF
8329#define PTHREAD_CREATE_JOINABLE $attr_name
8330_ACEOF
8331
8332 fi
8333
cristy8b350f62009-11-15 23:12:43 +00008334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008335$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336 flag=no
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340 esac
cristy8b350f62009-11-15 23:12:43 +00008341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008342$as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345 fi
8346
8347 LIBS="$save_LIBS"
8348 CFLAGS="$save_CFLAGS"
8349
8350 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008358if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00008371 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008373 break 2
8374 fi
8375done
cristy8b350f62009-11-15 23:12:43 +00008376 done
cristy3ed852e2009-09-05 21:47:34 +00008377IFS=$as_save_IFS
8378
cristy3ed852e2009-09-05 21:47:34 +00008379fi
8380fi
8381PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo "$PTHREAD_CC" >&6; }
8385else
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo "no" >&6; }
8388fi
8389
cristy736173a2009-09-20 21:18:22 +00008390
8391 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008392done
cristy736173a2009-09-20 21:18:22 +00008393test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008394
cristy736173a2009-09-20 21:18:22 +00008395 else
8396 PTHREAD_CC=$CC
8397 fi
cristy3ed852e2009-09-05 21:47:34 +00008398else
cristy736173a2009-09-20 21:18:22 +00008399 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008400fi
8401
cristy3ed852e2009-09-05 21:47:34 +00008402
8403
8404
8405
8406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008407if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008408
cristy8b350f62009-11-15 23:12:43 +00008409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008410
8411 :
8412else
cristy964cb7f2010-04-25 23:18:00 +00008413 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008414
8415fi
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristy7acf8fb2010-09-23 19:58:53 +00008423 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008424 have_threads=yes
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008429 { $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 +00008430$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431 CC="$PTHREAD_CC"
8432 fi
cristyb9de14a2010-09-23 16:02:17 +00008433 if test "$CXX" != "$PTHREAD_CXX"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8435$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8436 CXX="$PTHREAD_CXX"
8437 fi
cristy3ed852e2009-09-05 21:47:34 +00008438 fi
8439fi
8440
8441# Enable support for OpenMP
8442if test "$have_threads" != 'yes'; then
8443 ac_cv_prog_c_openmp=unsupported
8444fi
8445
8446 OPENMP_CFLAGS=
8447 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008448if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008449 enableval=$enable_openmp;
8450fi
8451
8452 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008454$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008455if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008456 $as_echo_n "(cached) " >&6
8457else
cristy8b350f62009-11-15 23:12:43 +00008458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008460
8461#ifndef _OPENMP
8462 choke me
8463#endif
8464#include <omp.h>
8465int main () { return omp_get_num_threads (); }
8466
8467_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008469 ac_cv_prog_c_openmp='none needed'
8470else
cristy8b350f62009-11-15 23:12:43 +00008471 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008472 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8473 ac_save_CFLAGS=$CFLAGS
8474 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008477
8478#ifndef _OPENMP
8479 choke me
8480#endif
8481#include <omp.h>
8482int main () { return omp_get_num_threads (); }
8483
8484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008486 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008487fi
cristy8b350f62009-11-15 23:12:43 +00008488rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008490 CFLAGS=$ac_save_CFLAGS
8491 if test "$ac_cv_prog_c_openmp" != unsupported; then
8492 break
8493 fi
8494 done
8495fi
cristy8b350f62009-11-15 23:12:43 +00008496rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008498fi
cristy8b350f62009-11-15 23:12:43 +00008499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008500$as_echo "$ac_cv_prog_c_openmp" >&6; }
8501 case $ac_cv_prog_c_openmp in #(
8502 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008503 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008504 *)
cristy8b350f62009-11-15 23:12:43 +00008505 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008506 esac
8507 fi
8508
8509
8510CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8511MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8512
cristy391f1ce2010-09-09 17:23:28 +00008513if test "$enable_openmp" != no; then
8514 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8515 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8516 fi
8517fi
cristy3ed852e2009-09-05 21:47:34 +00008518
cristy736173a2009-09-20 21:18:22 +00008519# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008520
cristy7acf8fb2010-09-23 19:58:53 +00008521
8522
8523ac_ext=c
8524ac_cpp='$CPP $CPPFLAGS'
8525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528
8529ax_pthread_ok=no
8530
8531# We used to check for pthread.h first, but this fails if pthread.h
8532# requires special compiler flags (e.g. on True64 or Sequent).
8533# It gets checked for in the link test anyway.
8534
8535# First of all, check if the user has set any of the PTHREAD_LIBS,
8536# etcetera environment variables, and if threads linking works using
8537# them:
8538if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8539 save_CFLAGS="$CFLAGS"
8540 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8541 save_LIBS="$LIBS"
8542 LIBS="$PTHREAD_LIBS $LIBS"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8544$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h. */
8547
8548/* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8551#ifdef __cplusplus
8552extern "C"
8553#endif
8554char pthread_join ();
8555int
8556main ()
8557{
8558return pthread_join ();
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_link "$LINENO"; then :
8564 ax_pthread_ok=yes
8565fi
8566rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8569$as_echo "$ax_pthread_ok" >&6; }
8570 if test x"$ax_pthread_ok" = xno; then
8571 PTHREAD_LIBS=""
8572 PTHREAD_CFLAGS=""
8573 fi
8574 LIBS="$save_LIBS"
8575 CFLAGS="$save_CFLAGS"
8576fi
8577
8578# We must check for the threads library under a number of different
8579# names; the ordering is very important because some systems
8580# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8581# libraries is broken (non-POSIX).
8582
8583# Create a list of thread flags to try. Items starting with a "-" are
8584# C compiler flags, and other items are library names, except for "none"
8585# which indicates that we try without any flags at all, and "pthread-config"
8586# which is a program returning the flags for the Pth emulation library.
8587
8588ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8589
8590# The ordering *is* (sometimes) important. Some notes on the
8591# individual items follow:
8592
8593# pthreads: AIX (must check this before -lpthread)
8594# none: in case threads are in libc; should be tried before -Kthread and
8595# other compiler flags to prevent continual compiler warnings
8596# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8597# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8598# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8599# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8600# -pthreads: Solaris/gcc
8601# -mthreads: Mingw32/gcc, Lynx/gcc
8602# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8603# doesn't hurt to check since this sometimes defines pthreads too;
8604# also defines -D_REENTRANT)
8605# ... -mt is also the pthreads flag for HP/aCC
8606# pthread: Linux, etcetera
8607# --thread-safe: KAI C++
8608# pthread-config: use pthread-config program (for GNU Pth library)
8609
8610case "${host_cpu}-${host_os}" in
8611 *solaris*)
8612
8613 # On Solaris (at least, for some versions), libc contains stubbed
8614 # (non-functional) versions of the pthreads routines, so link-based
8615 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8616 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8617 # a function called by this macro, so we could check for that, but
8618 # who knows whether they'll stub that too in a future libc.) So,
8619 # we'll just look for -pthreads and -lpthread first:
8620
8621 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8622 ;;
8623
8624 *-darwin*)
8625 ax_pthread_flags="-pthread $ax_pthread_flags"
8626 ;;
8627esac
8628
8629if test x"$ax_pthread_ok" = xno; then
8630for flag in $ax_pthread_flags; do
8631
8632 case $flag in
8633 none)
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8635$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8636 ;;
8637
8638 -*)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8640$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8641 PTHREAD_CFLAGS="$flag"
8642 ;;
8643
8644 pthread-config)
8645 # Extract the first word of "pthread-config", so it can be a program name with args.
8646set dummy pthread-config; ac_word=$2
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
8649if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651else
8652 if test -n "$ax_pthread_config"; then
8653 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8654else
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_prog_ax_pthread_config="yes"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666done
8667 done
8668IFS=$as_save_IFS
8669
8670 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8671fi
8672fi
8673ax_pthread_config=$ac_cv_prog_ax_pthread_config
8674if test -n "$ax_pthread_config"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8676$as_echo "$ax_pthread_config" >&6; }
8677else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679$as_echo "no" >&6; }
8680fi
8681
8682
8683 if test x"$ax_pthread_config" = xno; then continue; fi
8684 PTHREAD_CFLAGS="`pthread-config --cflags`"
8685 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8686 ;;
8687
8688 *)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8690$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8691 PTHREAD_LIBS="-l$flag"
8692 ;;
8693 esac
8694
8695 save_LIBS="$LIBS"
8696 save_CFLAGS="$CFLAGS"
8697 LIBS="$PTHREAD_LIBS $LIBS"
8698 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8699
8700 # Check for various functions. We must include pthread.h,
8701 # since some functions may be macros. (On the Sequent, we
8702 # need a special flag -Kthread to make this header compile.)
8703 # We check for pthread_join because it is in -lpthread on IRIX
8704 # while pthread_create is in libc. We check for pthread_attr_init
8705 # due to DEC craziness with -lpthreads. We check for
8706 # pthread_cleanup_push because it is one of the few pthread
8707 # functions on Solaris that doesn't have a non-functional libc stub.
8708 # We try pthread_create on general principles.
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h. */
8711#include <pthread.h>
8712 static void routine(void* a) {a=0;}
8713 static void* start_routine(void* a) {return a;}
8714int
8715main ()
8716{
8717pthread_t th; pthread_attr_t attr;
8718 pthread_create(&th,0,start_routine,0);
8719 pthread_join(th, 0);
8720 pthread_attr_init(&attr);
8721 pthread_cleanup_push(routine, 0);
8722 pthread_cleanup_pop(0);
8723 ;
8724 return 0;
8725}
8726_ACEOF
8727if ac_fn_c_try_link "$LINENO"; then :
8728 ax_pthread_ok=yes
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732
8733 LIBS="$save_LIBS"
8734 CFLAGS="$save_CFLAGS"
8735
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8737$as_echo "$ax_pthread_ok" >&6; }
8738 if test "x$ax_pthread_ok" = xyes; then
8739 break;
8740 fi
8741
8742 PTHREAD_LIBS=""
8743 PTHREAD_CFLAGS=""
8744done
8745fi
8746
8747# Various other checks:
8748if test "x$ax_pthread_ok" = xyes; then
8749 save_LIBS="$LIBS"
8750 LIBS="$PTHREAD_LIBS $LIBS"
8751 save_CFLAGS="$CFLAGS"
8752 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8753
8754 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8756$as_echo_n "checking for joinable pthread attribute... " >&6; }
8757 attr_name=unknown
8758 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h. */
8761#include <pthread.h>
8762int
8763main ()
8764{
8765int attr=$attr; return attr;
8766 ;
8767 return 0;
8768}
8769_ACEOF
8770if ac_fn_c_try_link "$LINENO"; then :
8771 attr_name=$attr; break
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 done
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8777$as_echo "$attr_name" >&6; }
8778 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8779
8780cat >>confdefs.h <<_ACEOF
8781#define PTHREAD_CREATE_JOINABLE $attr_name
8782_ACEOF
8783
8784 fi
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8787$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8788 flag=no
8789 case "${host_cpu}-${host_os}" in
8790 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8791 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8792 esac
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8794$as_echo "${flag}" >&6; }
8795 if test "x$flag" != xno; then
8796 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8797 fi
8798
8799 LIBS="$save_LIBS"
8800 CFLAGS="$save_CFLAGS"
8801
8802 # More AIX lossage: must compile with xlc_r or cc_r
8803 if test x"$GCC" != xyes; then
8804 for ac_prog in xlc_r cc_r
8805do
8806 # Extract the first word of "$ac_prog", so it can be a program name with args.
8807set dummy $ac_prog; ac_word=$2
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
8810if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812else
8813 if test -n "$PTHREAD_CC"; then
8814 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_prog_PTHREAD_CC="$ac_prog"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827done
8828 done
8829IFS=$as_save_IFS
8830
8831fi
8832fi
8833PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8834if test -n "$PTHREAD_CC"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8836$as_echo "$PTHREAD_CC" >&6; }
8837else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
8840fi
8841
8842
8843 test -n "$PTHREAD_CC" && break
8844done
8845test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8846
8847 else
8848 PTHREAD_CC=$CC
8849 fi
8850else
8851 PTHREAD_CC="$CC"
8852fi
8853
8854
8855
8856
8857
8858# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8859if test x"$ax_pthread_ok" = xyes; then
8860
8861$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8862
8863 :
8864else
8865 ax_pthread_ok=no
8866
8867fi
8868ac_ext=c
8869ac_cpp='$CPP $CPPFLAGS'
8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874
8875
cristy43596fe2010-01-21 16:46:08 +00008876# Check whether --enable-opencl was given.
8877if test "${enable_opencl+set}" = set; then :
8878 enableval=$enable_opencl; disable_opencl=$enableval
8879else
8880 disable_opencl='yes'
8881fi
8882
8883
8884if test "$disable_opencl" = 'yes'; then
8885 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008886ac_cpp='$CPP $CPPFLAGS'
8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
cristy43596fe2010-01-21 16:46:08 +00008891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008892$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008893if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008894 $as_echo_n "(cached) " >&6
8895else
cristy8b350f62009-11-15 23:12:43 +00008896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008897/* end confdefs.h. */
8898
8899int
8900main ()
8901{
8902#ifndef _MSC_VER
8903 choke me
8904#endif
8905
8906 ;
8907 return 0;
8908}
8909_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008910if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008911 ax_compiler_ms=yes
8912else
cristy8b350f62009-11-15 23:12:43 +00008913 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008914fi
cristy736173a2009-09-20 21:18:22 +00008915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916ax_cv_c_compiler_ms=$ax_compiler_ms
8917
8918fi
cristy8b350f62009-11-15 23:12:43 +00008919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008920$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008921 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008922 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8923fi
8924
cristy43596fe2010-01-21 16:46:08 +00008925 ax_save_CPPFLAGS=$CPPFLAGS
8926 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8927 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008928do :
8929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008932 cat >>confdefs.h <<_ACEOF
8933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8934_ACEOF
8935
8936fi
8937
8938done
8939
cristy43596fe2010-01-21 16:46:08 +00008940 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008941
cristy43596fe2010-01-21 16:46:08 +00008942 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008943do :
8944 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8945if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008946 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008947#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008948_ACEOF
8949
8950fi
8951
8952done
8953
8954
8955
8956
cristy43596fe2010-01-21 16:46:08 +00008957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008958$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008959if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008960 $as_echo_n "(cached) " >&6
8961else
8962 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008963 case $host_cpu in
8964 x86_64) ax_check_cl_libdir=lib64 ;;
8965 *) ax_check_cl_libdir=lib ;;
8966 esac
8967 ax_save_CPPFLAGS=$CPPFLAGS
8968 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8969 ax_save_LIBS=$LIBS
8970 LIBS=""
8971 ax_check_libs="-lOpenCL -lCL -lclparser"
8972 for ax_lib in $ax_check_libs; do
8973 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008974 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8975else
8976 ax_try_lib=$ax_lib
8977fi
cristy43596fe2010-01-21 16:46:08 +00008978 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008980/* end confdefs.h. */
8981
cristy43596fe2010-01-21 16:46:08 +00008982 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8983 # include <windows.h>
8984 # endif
8985 # ifdef HAVE_CL_CL_H
8986 # include <CL/cl.h>
8987 # elif defined(HAVE_OPENCL_CL_H)
8988 # include <OpenCL/cl.h>
8989 # else
8990 # error no CL.h
8991 # endif
cristy736173a2009-09-20 21:18:22 +00008992int
8993main ()
8994{
cristyc7083c12009-10-14 03:16:55 +00008995clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008996 ;
8997 return 0;
8998}
8999_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009000if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009001 ax_cv_check_cl_libcl=$ax_try_lib; break
9002else
cristy8b350f62009-11-15 23:12:43 +00009003 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"
cristy43596fe2010-01-21 16:46:08 +00009004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009005/* end confdefs.h. */
9006
cristy43596fe2010-01-21 16:46:08 +00009007 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9008 # include <windows.h>
9009 # endif
9010 # ifdef HAVE_CL_CL_H
9011 # include <CL/cl.h>
9012 # elif defined(HAVE_OPENCL_CL_H)
9013 # include <OpenCL/cl.h>
9014 # else
9015 # error no CL.h
9016 # endif
cristy736173a2009-09-20 21:18:22 +00009017int
9018main ()
9019{
cristyc7083c12009-10-14 03:16:55 +00009020clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009021 ;
9022 return 0;
9023}
9024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009025if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009026 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9027else
cristy4dc44432009-12-30 23:30:06 +00009028 ax_check_cl_dylib_flag='-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"
cristy43596fe2010-01-21 16:46:08 +00009029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009030/* end confdefs.h. */
9031
cristy43596fe2010-01-21 16:46:08 +00009032 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9033 # include <windows.h>
9034 # endif
9035 # ifdef HAVE_CL_CL_H
9036 # include <CL/cl.h>
9037 # elif defined(HAVE_OPENCL_CL_H)
9038 # include <OpenCL/cl.h>
9039 # else
9040 # error no CL.h
9041 # endif
cristy736173a2009-09-20 21:18:22 +00009042int
9043main ()
9044{
cristyc7083c12009-10-14 03:16:55 +00009045clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009046 ;
9047 return 0;
9048}
9049_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009050if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009051 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009052fi
cristy8b350f62009-11-15 23:12:43 +00009053rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009055fi
cristy8b350f62009-11-15 23:12:43 +00009056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009058fi
cristy8b350f62009-11-15 23:12:43 +00009059rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009061 done
cristy736173a2009-09-20 21:18:22 +00009062
cristy43596fe2010-01-21 16:46:08 +00009063 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009064 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009066/* end confdefs.h. */
9067
cristy43596fe2010-01-21 16:46:08 +00009068 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9069 # include <windows.h>
9070 # endif
9071 # ifdef HAVE_CL_CL_H
9072 # include <CL/cl.h>
9073 # elif defined(HAVE_OPENCL_CL_H)
9074 # include <OpenCL/cl.h>
9075 # else
9076 # error no CL.h
9077 # endif
cristy736173a2009-09-20 21:18:22 +00009078int
9079main ()
9080{
cristyc7083c12009-10-14 03:16:55 +00009081clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009082 ;
9083 return 0;
9084}
9085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009086if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009087 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009088fi
cristy8b350f62009-11-15 23:12:43 +00009089rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009091fi
9092
cristy43596fe2010-01-21 16:46:08 +00009093 LIBS=$ax_save_LIBS
9094 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009095fi
cristy8b350f62009-11-15 23:12:43 +00009096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009097$as_echo "$ax_cv_check_cl_libcl" >&6; }
9098
cristy43596fe2010-01-21 16:46:08 +00009099 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009100 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9101else
cristy99cc3002010-01-21 14:50:11 +00009102 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9103$as_echo "#define _OPENCL 1" >>confdefs.h
9104
cristy736173a2009-09-20 21:18:22 +00009105fi
cristy43596fe2010-01-21 16:46:08 +00009106 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009107ac_cpp='$CPP $CPPFLAGS'
9108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110ac_compiler_gnu=$ac_cv_c_compiler_gnu
9111
cristy43596fe2010-01-21 16:46:08 +00009112fi
cristy736173a2009-09-20 21:18:22 +00009113
9114
9115
9116
cristyc7083c12009-10-14 03:16:55 +00009117CFLAGS="$CL_CFLAGS $CFLAGS"
9118LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009119
cristy391f1ce2010-09-09 17:23:28 +00009120if test "$enable_opencl" != no; then
9121 if test "_OPENCL" = '1'; then
9122 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9123 fi
cristyfd9dcd42010-08-08 18:07:02 +00009124fi
cristy2e8b51d2009-10-17 18:26:15 +00009125
cristy3ed852e2009-09-05 21:47:34 +00009126########
9127#
9128# Check for large file support
9129#
9130########
9131# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009132if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009133 enableval=$enable_largefile;
9134fi
9135
9136if test "$enable_largefile" != no; then
9137
cristy8b350f62009-11-15 23:12:43 +00009138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009139$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009140if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009141 $as_echo_n "(cached) " >&6
9142else
9143 ac_cv_sys_largefile_CC=no
9144 if test "$GCC" != yes; then
9145 ac_save_CC=$CC
9146 while :; do
9147 # IRIX 6.2 and later do not support large files by default,
9148 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009150/* end confdefs.h. */
9151#include <sys/types.h>
9152 /* Check that off_t can represent 2**63 - 1 correctly.
9153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9154 since some C++ compilers masquerading as C compilers
9155 incorrectly reject 9223372036854775807. */
9156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9158 && LARGE_OFF_T % 2147483647 == 1)
9159 ? 1 : -1];
9160int
9161main ()
9162{
9163
9164 ;
9165 return 0;
9166}
9167_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009169 break
cristy3ed852e2009-09-05 21:47:34 +00009170fi
cristy3ed852e2009-09-05 21:47:34 +00009171rm -f core conftest.err conftest.$ac_objext
9172 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009173 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009174 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009175fi
cristy3ed852e2009-09-05 21:47:34 +00009176rm -f core conftest.err conftest.$ac_objext
9177 break
9178 done
9179 CC=$ac_save_CC
9180 rm -f conftest.$ac_ext
9181 fi
9182fi
cristy8b350f62009-11-15 23:12:43 +00009183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009184$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9185 if test "$ac_cv_sys_largefile_CC" != no; then
9186 CC=$CC$ac_cv_sys_largefile_CC
9187 fi
9188
cristy8b350f62009-11-15 23:12:43 +00009189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009190$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009191if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009192 $as_echo_n "(cached) " >&6
9193else
9194 while :; do
cristy8b350f62009-11-15 23:12:43 +00009195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009196/* end confdefs.h. */
9197#include <sys/types.h>
9198 /* Check that off_t can represent 2**63 - 1 correctly.
9199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9200 since some C++ compilers masquerading as C compilers
9201 incorrectly reject 9223372036854775807. */
9202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9204 && LARGE_OFF_T % 2147483647 == 1)
9205 ? 1 : -1];
9206int
9207main ()
9208{
9209
9210 ;
9211 return 0;
9212}
9213_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009215 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009216fi
cristy3ed852e2009-09-05 21:47:34 +00009217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009219/* end confdefs.h. */
9220#define _FILE_OFFSET_BITS 64
9221#include <sys/types.h>
9222 /* Check that off_t can represent 2**63 - 1 correctly.
9223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9224 since some C++ compilers masquerading as C compilers
9225 incorrectly reject 9223372036854775807. */
9226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9228 && LARGE_OFF_T % 2147483647 == 1)
9229 ? 1 : -1];
9230int
9231main ()
9232{
9233
9234 ;
9235 return 0;
9236}
9237_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009238if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009239 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009240fi
cristy3ed852e2009-09-05 21:47:34 +00009241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 ac_cv_sys_file_offset_bits=unknown
9243 break
9244done
9245fi
cristy8b350f62009-11-15 23:12:43 +00009246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009247$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9248case $ac_cv_sys_file_offset_bits in #(
9249 no | unknown) ;;
9250 *)
9251cat >>confdefs.h <<_ACEOF
9252#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9253_ACEOF
9254;;
9255esac
9256rm -rf conftest*
9257 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009259$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009260if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009261 $as_echo_n "(cached) " >&6
9262else
9263 while :; do
cristy8b350f62009-11-15 23:12:43 +00009264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009265/* end confdefs.h. */
9266#include <sys/types.h>
9267 /* Check that off_t can represent 2**63 - 1 correctly.
9268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9269 since some C++ compilers masquerading as C compilers
9270 incorrectly reject 9223372036854775807. */
9271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9273 && LARGE_OFF_T % 2147483647 == 1)
9274 ? 1 : -1];
9275int
9276main ()
9277{
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009285fi
cristy3ed852e2009-09-05 21:47:34 +00009286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009288/* end confdefs.h. */
9289#define _LARGE_FILES 1
9290#include <sys/types.h>
9291 /* Check that off_t can represent 2**63 - 1 correctly.
9292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9293 since some C++ compilers masquerading as C compilers
9294 incorrectly reject 9223372036854775807. */
9295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9297 && LARGE_OFF_T % 2147483647 == 1)
9298 ? 1 : -1];
9299int
9300main ()
9301{
9302
9303 ;
9304 return 0;
9305}
9306_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009308 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009309fi
cristy3ed852e2009-09-05 21:47:34 +00009310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 ac_cv_sys_large_files=unknown
9312 break
9313done
9314fi
cristy8b350f62009-11-15 23:12:43 +00009315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009316$as_echo "$ac_cv_sys_large_files" >&6; }
9317case $ac_cv_sys_large_files in #(
9318 no | unknown) ;;
9319 *)
9320cat >>confdefs.h <<_ACEOF
9321#define _LARGE_FILES $ac_cv_sys_large_files
9322_ACEOF
9323;;
9324esac
9325rm -rf conftest*
9326 fi
9327fi
9328
cristy8b350f62009-11-15 23:12:43 +00009329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009330$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009331if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009332 $as_echo_n "(cached) " >&6
9333else
9334 while :; do
cristy8b350f62009-11-15 23:12:43 +00009335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009336/* end confdefs.h. */
9337#include <sys/types.h> /* for off_t */
9338 #include <stdio.h>
9339int
9340main ()
9341{
9342int (*fp) (FILE *, off_t, int) = fseeko;
9343 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9344 ;
9345 return 0;
9346}
9347_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009350fi
cristy8b350f62009-11-15 23:12:43 +00009351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009354/* end confdefs.h. */
9355#define _LARGEFILE_SOURCE 1
9356#include <sys/types.h> /* for off_t */
9357 #include <stdio.h>
9358int
9359main ()
9360{
9361int (*fp) (FILE *, off_t, int) = fseeko;
9362 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9363 ;
9364 return 0;
9365}
9366_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009368 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009369fi
cristy8b350f62009-11-15 23:12:43 +00009370rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009372 ac_cv_sys_largefile_source=unknown
9373 break
9374done
9375fi
cristy8b350f62009-11-15 23:12:43 +00009376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009377$as_echo "$ac_cv_sys_largefile_source" >&6; }
9378case $ac_cv_sys_largefile_source in #(
9379 no | unknown) ;;
9380 *)
9381cat >>confdefs.h <<_ACEOF
9382#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9383_ACEOF
9384;;
9385esac
9386rm -rf conftest*
9387
9388# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9389# in glibc 2.1.3, but that breaks too many other things.
9390# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9391if test $ac_cv_sys_largefile_source != unknown; then
9392
cristy8b350f62009-11-15 23:12:43 +00009393$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009394
9395fi
9396
9397LFS_CPPFLAGS=''
9398if test "$enable_largefile" != no; then
9399 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9400 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9401 else
cristy8b350f62009-11-15 23:12:43 +00009402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009403$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009404 if test "$cross_compiling" = yes; then :
9405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009407as_fn_error $? "cannot run test program while cross compiling
9408See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009409else
cristy8b350f62009-11-15 23:12:43 +00009410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009412#include <unistd.h>
9413 main () {
9414 exit(!(sizeof(off_t) == 8));
9415 }
9416_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009417if ac_fn_c_try_run "$LINENO"; then :
9418 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009419
cristy8b350f62009-11-15 23:12:43 +00009420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009421$as_echo "yes" >&6; }
9422else
cristy8b350f62009-11-15 23:12:43 +00009423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009424$as_echo "no" >&6; }
9425fi
cristy8b350f62009-11-15 23:12:43 +00009426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009428fi
9429
cristy3ed852e2009-09-05 21:47:34 +00009430 fi
9431 if test "$ac_cv_sys_large_files" != 'no'; then
9432 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9433 fi
9434 if test "$ac_cv_sys_largefile_source" != 'no'; then
9435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9436 fi
9437fi
9438
9439
9440#
9441# Configure libtool & libltdl
9442#
9443# Configure libtool
9444enable_dlopen=yes
9445
9446
9447
9448case `pwd` in
9449 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009451$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9452esac
9453
9454
9455
cristyfd9dcd42010-08-08 18:07:02 +00009456macro_version='2.2.10'
9457macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471ltmain="$ac_aux_dir/ltmain.sh"
9472
cristyfd9dcd42010-08-08 18:07:02 +00009473# Backslashify metacharacters that are still active within
9474# double-quoted strings.
9475sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9476
9477# Same as above, but do not quote variable references.
9478double_quote_subst='s/\(["`\\]\)/\\\1/g'
9479
9480# Sed substitution to delay expansion of an escaped shell variable in a
9481# double_quote_subst'ed string.
9482delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9483
9484# Sed substitution to delay expansion of an escaped single quote.
9485delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9486
9487# Sed substitution to avoid accidental globbing in evaled expressions
9488no_glob_subst='s/\*/\\\*/g'
9489
cristy8b350f62009-11-15 23:12:43 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009492if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009493 $as_echo_n "(cached) " >&6
9494else
9495 if test -n "$NM"; then
9496 # Let the user override the test.
9497 lt_cv_path_NM="$NM"
9498else
9499 lt_nm_to_check="${ac_tool_prefix}nm"
9500 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9501 lt_nm_to_check="$lt_nm_to_check nm"
9502 fi
9503 for lt_tmp_nm in $lt_nm_to_check; do
9504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9505 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9506 IFS="$lt_save_ifs"
9507 test -z "$ac_dir" && ac_dir=.
9508 tmp_nm="$ac_dir/$lt_tmp_nm"
9509 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9510 # Check to see if the nm accepts a BSD-compat flag.
9511 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9512 # nm: unknown option "B" ignored
9513 # Tru64's nm complains that /dev/null is an invalid object file
9514 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9515 */dev/null* | *'Invalid file or object type'*)
9516 lt_cv_path_NM="$tmp_nm -B"
9517 break
9518 ;;
9519 *)
9520 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9521 */dev/null*)
9522 lt_cv_path_NM="$tmp_nm -p"
9523 break
9524 ;;
9525 *)
9526 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9527 continue # so that we can try to find one that supports BSD flags
9528 ;;
9529 esac
9530 ;;
9531 esac
9532 fi
9533 done
9534 IFS="$lt_save_ifs"
9535 done
9536 : ${lt_cv_path_NM=no}
9537fi
9538fi
cristy8b350f62009-11-15 23:12:43 +00009539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009540$as_echo "$lt_cv_path_NM" >&6; }
9541if test "$lt_cv_path_NM" != "no"; then
9542 NM="$lt_cv_path_NM"
9543else
9544 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009545 if test -n "$DUMPBIN"; then :
9546 # Let the user override the test.
9547 else
9548 if test -n "$ac_tool_prefix"; then
9549 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009550 do
9551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009554$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009555if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009556 $as_echo_n "(cached) " >&6
9557else
9558 if test -n "$DUMPBIN"; then
9559 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9560else
9561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562for as_dir in $PATH
9563do
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009570 break 2
9571 fi
9572done
cristy8b350f62009-11-15 23:12:43 +00009573 done
cristy3ed852e2009-09-05 21:47:34 +00009574IFS=$as_save_IFS
9575
9576fi
9577fi
9578DUMPBIN=$ac_cv_prog_DUMPBIN
9579if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009581$as_echo "$DUMPBIN" >&6; }
9582else
cristy8b350f62009-11-15 23:12:43 +00009583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009584$as_echo "no" >&6; }
9585fi
9586
9587
9588 test -n "$DUMPBIN" && break
9589 done
9590fi
9591if test -z "$DUMPBIN"; then
9592 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009593 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009594do
9595 # Extract the first word of "$ac_prog", so it can be a program name with args.
9596set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009599if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009600 $as_echo_n "(cached) " >&6
9601else
9602 if test -n "$ac_ct_DUMPBIN"; then
9603 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009614 break 2
9615 fi
9616done
cristy8b350f62009-11-15 23:12:43 +00009617 done
cristy3ed852e2009-09-05 21:47:34 +00009618IFS=$as_save_IFS
9619
9620fi
9621fi
9622ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9623if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009625$as_echo "$ac_ct_DUMPBIN" >&6; }
9626else
cristy8b350f62009-11-15 23:12:43 +00009627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628$as_echo "no" >&6; }
9629fi
9630
9631
9632 test -n "$ac_ct_DUMPBIN" && break
9633done
9634
9635 if test "x$ac_ct_DUMPBIN" = x; then
9636 DUMPBIN=":"
9637 else
9638 case $cross_compiling:$ac_tool_warned in
9639yes:)
cristy8b350f62009-11-15 23:12:43 +00009640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9642ac_tool_warned=yes ;;
9643esac
9644 DUMPBIN=$ac_ct_DUMPBIN
9645 fi
9646fi
9647
cristyfd9dcd42010-08-08 18:07:02 +00009648 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9649 *COFF*)
9650 DUMPBIN="$DUMPBIN -symbols"
9651 ;;
9652 *)
9653 DUMPBIN=:
9654 ;;
9655 esac
9656 fi
cristy3ed852e2009-09-05 21:47:34 +00009657
9658 if test "$DUMPBIN" != ":"; then
9659 NM="$DUMPBIN"
9660 fi
9661fi
9662test -z "$NM" && NM=nm
9663
9664
9665
9666
9667
9668
cristy8b350f62009-11-15 23:12:43 +00009669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009671if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009672 $as_echo_n "(cached) " >&6
9673else
9674 lt_cv_nm_interface="BSD nm"
9675 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009676 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009677 (eval "$ac_compile" 2>conftest.err)
9678 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009679 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009680 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9681 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009682 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009683 cat conftest.out >&5
9684 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9685 lt_cv_nm_interface="MS dumpbin"
9686 fi
9687 rm -f conftest*
9688fi
cristy8b350f62009-11-15 23:12:43 +00009689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009690$as_echo "$lt_cv_nm_interface" >&6; }
9691
9692# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009694$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009695if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009696 $as_echo_n "(cached) " >&6
9697else
9698 i=0
9699 teststring="ABCD"
9700
9701 case $build_os in
9702 msdosdjgpp*)
9703 # On DJGPP, this test can blow up pretty badly due to problems in libc
9704 # (any single argument exceeding 2000 bytes causes a buffer overrun
9705 # during glob expansion). Even if it were fixed, the result of this
9706 # check would be larger than it should be.
9707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9708 ;;
9709
9710 gnu*)
9711 # Under GNU Hurd, this test is not required because there is
9712 # no limit to the length of command line arguments.
9713 # Libtool will interpret -1 as no limit whatsoever
9714 lt_cv_sys_max_cmd_len=-1;
9715 ;;
9716
9717 cygwin* | mingw* | cegcc*)
9718 # On Win9x/ME, this test blows up -- it succeeds, but takes
9719 # about 5 minutes as the teststring grows exponentially.
9720 # Worse, since 9x/ME are not pre-emptively multitasking,
9721 # you end up with a "frozen" computer, even though with patience
9722 # the test eventually succeeds (with a max line length of 256k).
9723 # Instead, let's just punt: use the minimum linelength reported by
9724 # all of the supported platforms: 8192 (on NT/2K/XP).
9725 lt_cv_sys_max_cmd_len=8192;
9726 ;;
9727
cristyfd9dcd42010-08-08 18:07:02 +00009728 mint*)
9729 # On MiNT this can take a long time and run out of memory.
9730 lt_cv_sys_max_cmd_len=8192;
9731 ;;
9732
cristy3ed852e2009-09-05 21:47:34 +00009733 amigaos*)
9734 # On AmigaOS with pdksh, this test takes hours, literally.
9735 # So we just punt and use a minimum line length of 8192.
9736 lt_cv_sys_max_cmd_len=8192;
9737 ;;
9738
9739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9740 # This has been around since 386BSD, at least. Likely further.
9741 if test -x /sbin/sysctl; then
9742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9743 elif test -x /usr/sbin/sysctl; then
9744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9745 else
9746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9747 fi
9748 # And add a safety zone
9749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9751 ;;
9752
9753 interix*)
9754 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9755 lt_cv_sys_max_cmd_len=196608
9756 ;;
9757
9758 osf*)
9759 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9760 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9761 # nice to cause kernel panics so lets avoid the loop below.
9762 # First set a reasonable default.
9763 lt_cv_sys_max_cmd_len=16384
9764 #
9765 if test -x /sbin/sysconfig; then
9766 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9767 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9768 esac
9769 fi
9770 ;;
9771 sco3.2v5*)
9772 lt_cv_sys_max_cmd_len=102400
9773 ;;
9774 sysv5* | sco5v6* | sysv4.2uw2*)
9775 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9776 if test -n "$kargmax"; then
9777 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9778 else
9779 lt_cv_sys_max_cmd_len=32768
9780 fi
9781 ;;
9782 *)
9783 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9784 if test -n "$lt_cv_sys_max_cmd_len"; then
9785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9787 else
9788 # Make teststring a little bigger before we do anything with it.
9789 # a 1K string should be a reasonable start.
9790 for i in 1 2 3 4 5 6 7 8 ; do
9791 teststring=$teststring$teststring
9792 done
9793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9794 # If test is not a shell built-in, we'll probably end up computing a
9795 # maximum length that is only half of the actual maximum length, but
9796 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009797 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9798 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009799 test $i != 17 # 1/2 MB should be enough
9800 do
9801 i=`expr $i + 1`
9802 teststring=$teststring$teststring
9803 done
9804 # Only check the string length outside the loop.
9805 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9806 teststring=
9807 # Add a significant safety factor because C++ compilers can tack on
9808 # massive amounts of additional arguments before passing them to the
9809 # linker. It appears as though 1/2 is a usable value.
9810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9811 fi
9812 ;;
9813 esac
9814
9815fi
9816
9817if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009819$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9820else
cristy8b350f62009-11-15 23:12:43 +00009821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009822$as_echo "none" >&6; }
9823fi
9824max_cmd_len=$lt_cv_sys_max_cmd_len
9825
9826
9827
9828
9829
9830
9831: ${CP="cp -f"}
9832: ${MV="mv -f"}
9833: ${RM="rm -f"}
9834
cristy8b350f62009-11-15 23:12:43 +00009835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009836$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9837# Try some XSI features
9838xsi_shell=no
9839( _lt_dummy="a/b/c"
9840 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9841 = c,a/b,, \
9842 && eval 'test $(( 1 + 1 )) -eq 2 \
9843 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9844 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009846$as_echo "$xsi_shell" >&6; }
9847
9848
cristy8b350f62009-11-15 23:12:43 +00009849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009850$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9851lt_shell_append=no
9852( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9853 >/dev/null 2>&1 \
9854 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009856$as_echo "$lt_shell_append" >&6; }
9857
9858
9859if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9860 lt_unset=unset
9861else
9862 lt_unset=false
9863fi
9864
9865
9866
9867
9868
9869# test EBCDIC or ASCII
9870case `echo X|tr X '\101'` in
9871 A) # ASCII based system
9872 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9873 lt_SP2NL='tr \040 \012'
9874 lt_NL2SP='tr \015\012 \040\040'
9875 ;;
9876 *) # EBCDIC based system
9877 lt_SP2NL='tr \100 \n'
9878 lt_NL2SP='tr \r\n \100\100'
9879 ;;
9880esac
9881
9882
9883
9884
9885
9886
9887
9888
9889
cristy8b350f62009-11-15 23:12:43 +00009890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009891$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009892if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009893 $as_echo_n "(cached) " >&6
9894else
9895 lt_cv_ld_reload_flag='-r'
9896fi
cristy8b350f62009-11-15 23:12:43 +00009897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009898$as_echo "$lt_cv_ld_reload_flag" >&6; }
9899reload_flag=$lt_cv_ld_reload_flag
9900case $reload_flag in
9901"" | " "*) ;;
9902*) reload_flag=" $reload_flag" ;;
9903esac
9904reload_cmds='$LD$reload_flag -o $output$reload_objs'
9905case $host_os in
9906 darwin*)
9907 if test "$GCC" = yes; then
9908 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9909 else
9910 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9911 fi
9912 ;;
9913esac
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923if test -n "$ac_tool_prefix"; then
9924 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9925set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009927$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009928if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009929 $as_echo_n "(cached) " >&6
9930else
9931 if test -n "$OBJDUMP"; then
9932 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9933else
9934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935for as_dir in $PATH
9936do
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009943 break 2
9944 fi
9945done
cristy8b350f62009-11-15 23:12:43 +00009946 done
cristy3ed852e2009-09-05 21:47:34 +00009947IFS=$as_save_IFS
9948
9949fi
9950fi
9951OBJDUMP=$ac_cv_prog_OBJDUMP
9952if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009954$as_echo "$OBJDUMP" >&6; }
9955else
cristy8b350f62009-11-15 23:12:43 +00009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo "no" >&6; }
9958fi
9959
9960
9961fi
9962if test -z "$ac_cv_prog_OBJDUMP"; then
9963 ac_ct_OBJDUMP=$OBJDUMP
9964 # Extract the first word of "objdump", so it can be a program name with args.
9965set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009967$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009968if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009969 $as_echo_n "(cached) " >&6
9970else
9971 if test -n "$ac_ct_OBJDUMP"; then
9972 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9973else
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9981 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009983 break 2
9984 fi
9985done
cristy8b350f62009-11-15 23:12:43 +00009986 done
cristy3ed852e2009-09-05 21:47:34 +00009987IFS=$as_save_IFS
9988
9989fi
9990fi
9991ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9992if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009994$as_echo "$ac_ct_OBJDUMP" >&6; }
9995else
cristy8b350f62009-11-15 23:12:43 +00009996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo "no" >&6; }
9998fi
9999
10000 if test "x$ac_ct_OBJDUMP" = x; then
10001 OBJDUMP="false"
10002 else
10003 case $cross_compiling:$ac_tool_warned in
10004yes:)
cristy8b350f62009-11-15 23:12:43 +000010005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10007ac_tool_warned=yes ;;
10008esac
10009 OBJDUMP=$ac_ct_OBJDUMP
10010 fi
10011else
10012 OBJDUMP="$ac_cv_prog_OBJDUMP"
10013fi
10014
10015test -z "$OBJDUMP" && OBJDUMP=objdump
10016
10017
10018
10019
10020
10021
cristy8b350f62009-11-15 23:12:43 +000010022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010023$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010024if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010025 $as_echo_n "(cached) " >&6
10026else
10027 lt_cv_file_magic_cmd='$MAGIC_CMD'
10028lt_cv_file_magic_test_file=
10029lt_cv_deplibs_check_method='unknown'
10030# Need to set the preceding variable on all platforms that support
10031# interlibrary dependencies.
10032# 'none' -- dependencies not supported.
10033# `unknown' -- same as none, but documents that we really don't know.
10034# 'pass_all' -- all dependencies passed with no checks.
10035# 'test_compile' -- check by making test program.
10036# 'file_magic [[regex]]' -- check by looking for files in library path
10037# which responds to the $file_magic_cmd with a given extended regex.
10038# If you have `file' or equivalent on your system and you're not sure
10039# whether `pass_all' will *always* work, you probably want this one.
10040
10041case $host_os in
10042aix[4-9]*)
10043 lt_cv_deplibs_check_method=pass_all
10044 ;;
10045
10046beos*)
10047 lt_cv_deplibs_check_method=pass_all
10048 ;;
10049
10050bsdi[45]*)
10051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10052 lt_cv_file_magic_cmd='/usr/bin/file -L'
10053 lt_cv_file_magic_test_file=/shlib/libc.so
10054 ;;
10055
10056cygwin*)
10057 # func_win32_libid is a shell function defined in ltmain.sh
10058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10059 lt_cv_file_magic_cmd='func_win32_libid'
10060 ;;
10061
10062mingw* | pw32*)
10063 # Base MSYS/MinGW do not provide the 'file' command needed by
10064 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10065 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010066 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10067 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10069 lt_cv_file_magic_cmd='func_win32_libid'
10070 else
cristyfd9dcd42010-08-08 18:07:02 +000010071 # Keep this pattern in sync with the one in func_win32_libid.
10072 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy3ed852e2009-09-05 21:47:34 +000010073 lt_cv_file_magic_cmd='$OBJDUMP -f'
10074 fi
10075 ;;
10076
cristyfd9dcd42010-08-08 18:07:02 +000010077cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010078 # use the weaker test based on 'objdump'. See mingw*.
10079 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10080 lt_cv_file_magic_cmd='$OBJDUMP -f'
10081 ;;
10082
10083darwin* | rhapsody*)
10084 lt_cv_deplibs_check_method=pass_all
10085 ;;
10086
10087freebsd* | dragonfly*)
10088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10089 case $host_cpu in
10090 i*86 )
10091 # Not sure whether the presence of OpenBSD here was a mistake.
10092 # Let's accept both of them until this is cleared up.
10093 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10094 lt_cv_file_magic_cmd=/usr/bin/file
10095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10096 ;;
10097 esac
10098 else
10099 lt_cv_deplibs_check_method=pass_all
10100 fi
10101 ;;
10102
10103gnu*)
10104 lt_cv_deplibs_check_method=pass_all
10105 ;;
10106
cristyfd9dcd42010-08-08 18:07:02 +000010107haiku*)
10108 lt_cv_deplibs_check_method=pass_all
10109 ;;
10110
cristy3ed852e2009-09-05 21:47:34 +000010111hpux10.20* | hpux11*)
10112 lt_cv_file_magic_cmd=/usr/bin/file
10113 case $host_cpu in
10114 ia64*)
10115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10116 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10117 ;;
10118 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010119 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]'
cristy3ed852e2009-09-05 21:47:34 +000010120 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10121 ;;
10122 *)
cristyfd9dcd42010-08-08 18:07:02 +000010123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +000010124 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10125 ;;
10126 esac
10127 ;;
10128
10129interix[3-9]*)
10130 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10132 ;;
10133
10134irix5* | irix6* | nonstopux*)
10135 case $LD in
10136 *-32|*"-32 ") libmagic=32-bit;;
10137 *-n32|*"-n32 ") libmagic=N32;;
10138 *-64|*"-64 ") libmagic=64-bit;;
10139 *) libmagic=never-match;;
10140 esac
10141 lt_cv_deplibs_check_method=pass_all
10142 ;;
10143
10144# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010145linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010146 lt_cv_deplibs_check_method=pass_all
10147 ;;
10148
10149netbsd*)
10150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10152 else
10153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10154 fi
10155 ;;
10156
10157newos6*)
10158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10159 lt_cv_file_magic_cmd=/usr/bin/file
10160 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10161 ;;
10162
10163*nto* | *qnx*)
10164 lt_cv_deplibs_check_method=pass_all
10165 ;;
10166
10167openbsd*)
10168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10170 else
10171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10172 fi
10173 ;;
10174
10175osf3* | osf4* | osf5*)
10176 lt_cv_deplibs_check_method=pass_all
10177 ;;
10178
10179rdos*)
10180 lt_cv_deplibs_check_method=pass_all
10181 ;;
10182
10183solaris*)
10184 lt_cv_deplibs_check_method=pass_all
10185 ;;
10186
10187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10188 lt_cv_deplibs_check_method=pass_all
10189 ;;
10190
10191sysv4 | sysv4.3*)
10192 case $host_vendor in
10193 motorola)
10194 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]'
10195 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10196 ;;
10197 ncr)
10198 lt_cv_deplibs_check_method=pass_all
10199 ;;
10200 sequent)
10201 lt_cv_file_magic_cmd='/bin/file'
10202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10203 ;;
10204 sni)
10205 lt_cv_file_magic_cmd='/bin/file'
10206 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10207 lt_cv_file_magic_test_file=/lib/libc.so
10208 ;;
10209 siemens)
10210 lt_cv_deplibs_check_method=pass_all
10211 ;;
10212 pc)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215 esac
10216 ;;
10217
10218tpf*)
10219 lt_cv_deplibs_check_method=pass_all
10220 ;;
10221esac
10222
10223fi
cristy8b350f62009-11-15 23:12:43 +000010224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010225$as_echo "$lt_cv_deplibs_check_method" >&6; }
10226file_magic_cmd=$lt_cv_file_magic_cmd
10227deplibs_check_method=$lt_cv_deplibs_check_method
10228test -z "$deplibs_check_method" && deplibs_check_method=unknown
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241if test -n "$ac_tool_prefix"; then
10242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10243set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010245$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010246if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010247 $as_echo_n "(cached) " >&6
10248else
10249 if test -n "$AR"; then
10250 ac_cv_prog_AR="$AR" # Let the user override the test.
10251else
10252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $PATH
10254do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010261 break 2
10262 fi
10263done
cristy8b350f62009-11-15 23:12:43 +000010264 done
cristy3ed852e2009-09-05 21:47:34 +000010265IFS=$as_save_IFS
10266
10267fi
10268fi
10269AR=$ac_cv_prog_AR
10270if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010272$as_echo "$AR" >&6; }
10273else
cristy8b350f62009-11-15 23:12:43 +000010274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010275$as_echo "no" >&6; }
10276fi
10277
10278
10279fi
10280if test -z "$ac_cv_prog_AR"; then
10281 ac_ct_AR=$AR
10282 # Extract the first word of "ar", so it can be a program name with args.
10283set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010286if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010287 $as_echo_n "(cached) " >&6
10288else
10289 if test -n "$ac_ct_AR"; then
10290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10291else
10292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293for as_dir in $PATH
10294do
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010301 break 2
10302 fi
10303done
cristy8b350f62009-11-15 23:12:43 +000010304 done
cristy3ed852e2009-09-05 21:47:34 +000010305IFS=$as_save_IFS
10306
10307fi
10308fi
10309ac_ct_AR=$ac_cv_prog_ac_ct_AR
10310if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010312$as_echo "$ac_ct_AR" >&6; }
10313else
cristy8b350f62009-11-15 23:12:43 +000010314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo "no" >&6; }
10316fi
10317
10318 if test "x$ac_ct_AR" = x; then
10319 AR="false"
10320 else
10321 case $cross_compiling:$ac_tool_warned in
10322yes:)
cristy8b350f62009-11-15 23:12:43 +000010323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10325ac_tool_warned=yes ;;
10326esac
10327 AR=$ac_ct_AR
10328 fi
10329else
10330 AR="$ac_cv_prog_AR"
10331fi
10332
10333test -z "$AR" && AR=ar
10334test -z "$AR_FLAGS" && AR_FLAGS=cru
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346if test -n "$ac_tool_prefix"; then
10347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10348set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010350$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010351if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010352 $as_echo_n "(cached) " >&6
10353else
10354 if test -n "$STRIP"; then
10355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10356else
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010366 break 2
10367 fi
10368done
cristy8b350f62009-11-15 23:12:43 +000010369 done
cristy3ed852e2009-09-05 21:47:34 +000010370IFS=$as_save_IFS
10371
10372fi
10373fi
10374STRIP=$ac_cv_prog_STRIP
10375if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010377$as_echo "$STRIP" >&6; }
10378else
cristy8b350f62009-11-15 23:12:43 +000010379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo "no" >&6; }
10381fi
10382
10383
10384fi
10385if test -z "$ac_cv_prog_STRIP"; then
10386 ac_ct_STRIP=$STRIP
10387 # Extract the first word of "strip", so it can be a program name with args.
10388set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010392 $as_echo_n "(cached) " >&6
10393else
10394 if test -n "$ac_ct_STRIP"; then
10395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10396else
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010406 break 2
10407 fi
10408done
cristy8b350f62009-11-15 23:12:43 +000010409 done
cristy3ed852e2009-09-05 21:47:34 +000010410IFS=$as_save_IFS
10411
10412fi
10413fi
10414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10415if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010417$as_echo "$ac_ct_STRIP" >&6; }
10418else
cristy8b350f62009-11-15 23:12:43 +000010419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010420$as_echo "no" >&6; }
10421fi
10422
10423 if test "x$ac_ct_STRIP" = x; then
10424 STRIP=":"
10425 else
10426 case $cross_compiling:$ac_tool_warned in
10427yes:)
cristy8b350f62009-11-15 23:12:43 +000010428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10430ac_tool_warned=yes ;;
10431esac
10432 STRIP=$ac_ct_STRIP
10433 fi
10434else
10435 STRIP="$ac_cv_prog_STRIP"
10436fi
10437
10438test -z "$STRIP" && STRIP=:
10439
10440
10441
10442
10443
10444
10445if test -n "$ac_tool_prefix"; then
10446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010450if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010451 $as_echo_n "(cached) " >&6
10452else
10453 if test -n "$RANLIB"; then
10454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465 break 2
10466 fi
10467done
cristy8b350f62009-11-15 23:12:43 +000010468 done
cristy3ed852e2009-09-05 21:47:34 +000010469IFS=$as_save_IFS
10470
10471fi
10472fi
10473RANLIB=$ac_cv_prog_RANLIB
10474if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010476$as_echo "$RANLIB" >&6; }
10477else
cristy8b350f62009-11-15 23:12:43 +000010478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010479$as_echo "no" >&6; }
10480fi
10481
10482
10483fi
10484if test -z "$ac_cv_prog_RANLIB"; then
10485 ac_ct_RANLIB=$RANLIB
10486 # Extract the first word of "ranlib", so it can be a program name with args.
10487set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010489$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010490if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010491 $as_echo_n "(cached) " >&6
10492else
10493 if test -n "$ac_ct_RANLIB"; then
10494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010505 break 2
10506 fi
10507done
cristy8b350f62009-11-15 23:12:43 +000010508 done
cristy3ed852e2009-09-05 21:47:34 +000010509IFS=$as_save_IFS
10510
10511fi
10512fi
10513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10514if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010516$as_echo "$ac_ct_RANLIB" >&6; }
10517else
cristy8b350f62009-11-15 23:12:43 +000010518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010519$as_echo "no" >&6; }
10520fi
10521
10522 if test "x$ac_ct_RANLIB" = x; then
10523 RANLIB=":"
10524 else
10525 case $cross_compiling:$ac_tool_warned in
10526yes:)
cristy8b350f62009-11-15 23:12:43 +000010527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10529ac_tool_warned=yes ;;
10530esac
10531 RANLIB=$ac_ct_RANLIB
10532 fi
10533else
10534 RANLIB="$ac_cv_prog_RANLIB"
10535fi
10536
10537test -z "$RANLIB" && RANLIB=:
10538
10539
10540
10541
10542
10543
10544# Determine commands to create old-style static archives.
10545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10546old_postinstall_cmds='chmod 644 $oldlib'
10547old_postuninstall_cmds=
10548
10549if test -n "$RANLIB"; then
10550 case $host_os in
10551 openbsd*)
10552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10553 ;;
10554 *)
10555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10556 ;;
10557 esac
10558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10559fi
10560
cristyfd9dcd42010-08-08 18:07:02 +000010561case $host_os in
10562 darwin*)
10563 lock_old_archive_extraction=yes ;;
10564 *)
10565 lock_old_archive_extraction=no ;;
10566esac
10567
10568
10569
10570
10571
10572
cristy3ed852e2009-09-05 21:47:34 +000010573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606# If no C compiler was specified, use CC.
10607LTCC=${LTCC-"$CC"}
10608
10609# If no C compiler flags were specified, use CFLAGS.
10610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10611
10612# Allow CC to be a program name with arguments.
10613compiler=$CC
10614
10615
10616# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010619if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010620 $as_echo_n "(cached) " >&6
10621else
10622
10623# These are sane defaults that work on at least a few old systems.
10624# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10625
10626# Character class describing NM global symbol codes.
10627symcode='[BCDEGRST]'
10628
10629# Regexp to match symbols that can be accessed directly from C.
10630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10631
10632# Define system-specific variables.
10633case $host_os in
10634aix*)
10635 symcode='[BCDT]'
10636 ;;
10637cygwin* | mingw* | pw32* | cegcc*)
10638 symcode='[ABCDGISTW]'
10639 ;;
10640hpux*)
10641 if test "$host_cpu" = ia64; then
10642 symcode='[ABCDEGRST]'
10643 fi
10644 ;;
10645irix* | nonstopux*)
10646 symcode='[BCDEGRST]'
10647 ;;
10648osf*)
10649 symcode='[BCDEGQRST]'
10650 ;;
10651solaris*)
10652 symcode='[BDRT]'
10653 ;;
10654sco3.2v5*)
10655 symcode='[DT]'
10656 ;;
10657sysv4.2uw2*)
10658 symcode='[DT]'
10659 ;;
10660sysv5* | sco5v6* | unixware* | OpenUNIX*)
10661 symcode='[ABDT]'
10662 ;;
10663sysv4)
10664 symcode='[DFNSTU]'
10665 ;;
10666esac
10667
10668# If we're using GNU nm, then use its standard symbol codes.
10669case `$NM -V 2>&1` in
10670*GNU* | *'with BFD'*)
10671 symcode='[ABCDGIRSTW]' ;;
10672esac
10673
10674# Transform an extracted symbol line into a proper C declaration.
10675# Some systems (esp. on ia64) link data and code symbols differently,
10676# so use this general approach.
10677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10678
10679# Transform an extracted symbol line into symbol name and symbol address
10680lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10681lt_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'"
10682
10683# Handle CRLF in mingw tool chain
10684opt_cr=
10685case $build_os in
10686mingw*)
10687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10688 ;;
10689esac
10690
10691# Try without a prefix underscore, then with it.
10692for ac_symprfx in "" "_"; do
10693
10694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10695 symxfrm="\\1 $ac_symprfx\\2 \\2"
10696
10697 # Write the raw and C identifiers.
10698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10699 # Fake it for dumpbin and say T for any non-static function
10700 # and D for any global variable.
10701 # Also find C++ and __fastcall symbols from MSVC++,
10702 # which start with @ or ?.
10703 lt_cv_sys_global_symbol_pipe="$AWK '"\
10704" {last_section=section; section=\$ 3};"\
10705" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10706" \$ 0!~/External *\|/{next};"\
10707" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10708" {if(hide[section]) next};"\
10709" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10710" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10711" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10712" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10713" ' prfx=^$ac_symprfx"
10714 else
10715 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10716 fi
10717
10718 # Check to see that the pipe works correctly.
10719 pipe_works=no
10720
10721 rm -f conftest*
10722 cat > conftest.$ac_ext <<_LT_EOF
10723#ifdef __cplusplus
10724extern "C" {
10725#endif
10726char nm_test_var;
10727void nm_test_func(void);
10728void nm_test_func(void){}
10729#ifdef __cplusplus
10730}
10731#endif
10732int main(){nm_test_var='a';nm_test_func();return(0);}
10733_LT_EOF
10734
cristy8b350f62009-11-15 23:12:43 +000010735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010736 (eval $ac_compile) 2>&5
10737 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010740 # Now try to grab the symbols.
10741 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10743 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010744 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10746 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010747 # Try sorting and uniquifying the output.
10748 if sort "$nlist" | uniq > "$nlist"T; then
10749 mv -f "$nlist"T "$nlist"
10750 else
10751 rm -f "$nlist"T
10752 fi
10753
10754 # Make sure that we snagged all the symbols we need.
10755 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10756 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10757 cat <<_LT_EOF > conftest.$ac_ext
10758#ifdef __cplusplus
10759extern "C" {
10760#endif
10761
10762_LT_EOF
10763 # Now generate the symbol file.
10764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10765
10766 cat <<_LT_EOF >> conftest.$ac_ext
10767
10768/* The mapping between symbol names and symbols. */
10769const struct {
10770 const char *name;
10771 void *address;
10772}
10773lt__PROGRAM__LTX_preloaded_symbols[] =
10774{
10775 { "@PROGRAM@", (void *) 0 },
10776_LT_EOF
10777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10778 cat <<\_LT_EOF >> conftest.$ac_ext
10779 {0, (void *) 0}
10780};
10781
10782/* This works around a problem in FreeBSD linker */
10783#ifdef FREEBSD_WORKAROUND
10784static const void *lt_preloaded_setup() {
10785 return lt__PROGRAM__LTX_preloaded_symbols;
10786}
10787#endif
10788
10789#ifdef __cplusplus
10790}
10791#endif
10792_LT_EOF
10793 # Now try linking the two files.
10794 mv conftest.$ac_objext conftstm.$ac_objext
10795 lt_save_LIBS="$LIBS"
10796 lt_save_CFLAGS="$CFLAGS"
10797 LIBS="conftstm.$ac_objext"
10798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010800 (eval $ac_link) 2>&5
10801 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010804 pipe_works=yes
10805 fi
10806 LIBS="$lt_save_LIBS"
10807 CFLAGS="$lt_save_CFLAGS"
10808 else
10809 echo "cannot find nm_test_func in $nlist" >&5
10810 fi
10811 else
10812 echo "cannot find nm_test_var in $nlist" >&5
10813 fi
10814 else
10815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10816 fi
10817 else
10818 echo "$progname: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 fi
10821 rm -rf conftest* conftst*
10822
10823 # Do not use the global_symbol_pipe unless it works.
10824 if test "$pipe_works" = yes; then
10825 break
10826 else
10827 lt_cv_sys_global_symbol_pipe=
10828 fi
10829done
10830
10831fi
10832
10833if test -z "$lt_cv_sys_global_symbol_pipe"; then
10834 lt_cv_sys_global_symbol_to_cdecl=
10835fi
10836if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010838$as_echo "failed" >&6; }
10839else
cristy8b350f62009-11-15 23:12:43 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010841$as_echo "ok" >&6; }
10842fi
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010866if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010867 enableval=$enable_libtool_lock;
10868fi
10869
10870test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10871
10872# Some flags need to be propagated to the compiler or linker for good
10873# libtool support.
10874case $host in
10875ia64-*-hpux*)
10876 # Find out which ABI we are using.
10877 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010879 (eval $ac_compile) 2>&5
10880 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010883 case `/usr/bin/file conftest.$ac_objext` in
10884 *ELF-32*)
10885 HPUX_IA64_MODE="32"
10886 ;;
10887 *ELF-64*)
10888 HPUX_IA64_MODE="64"
10889 ;;
10890 esac
10891 fi
10892 rm -rf conftest*
10893 ;;
10894*-*-irix6*)
10895 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010898 (eval $ac_compile) 2>&5
10899 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010902 if test "$lt_cv_prog_gnu_ld" = yes; then
10903 case `/usr/bin/file conftest.$ac_objext` in
10904 *32-bit*)
10905 LD="${LD-ld} -melf32bsmip"
10906 ;;
10907 *N32*)
10908 LD="${LD-ld} -melf32bmipn32"
10909 ;;
10910 *64-bit*)
10911 LD="${LD-ld} -melf64bmip"
10912 ;;
10913 esac
10914 else
10915 case `/usr/bin/file conftest.$ac_objext` in
10916 *32-bit*)
10917 LD="${LD-ld} -32"
10918 ;;
10919 *N32*)
10920 LD="${LD-ld} -n32"
10921 ;;
10922 *64-bit*)
10923 LD="${LD-ld} -64"
10924 ;;
10925 esac
10926 fi
10927 fi
10928 rm -rf conftest*
10929 ;;
10930
10931x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10932s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10933 # Find out which ABI we are using.
10934 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010936 (eval $ac_compile) 2>&5
10937 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010940 case `/usr/bin/file conftest.o` in
10941 *32-bit*)
10942 case $host in
10943 x86_64-*kfreebsd*-gnu)
10944 LD="${LD-ld} -m elf_i386_fbsd"
10945 ;;
10946 x86_64-*linux*)
10947 LD="${LD-ld} -m elf_i386"
10948 ;;
10949 ppc64-*linux*|powerpc64-*linux*)
10950 LD="${LD-ld} -m elf32ppclinux"
10951 ;;
10952 s390x-*linux*)
10953 LD="${LD-ld} -m elf_s390"
10954 ;;
10955 sparc64-*linux*)
10956 LD="${LD-ld} -m elf32_sparc"
10957 ;;
10958 esac
10959 ;;
10960 *64-bit*)
10961 case $host in
10962 x86_64-*kfreebsd*-gnu)
10963 LD="${LD-ld} -m elf_x86_64_fbsd"
10964 ;;
10965 x86_64-*linux*)
10966 LD="${LD-ld} -m elf_x86_64"
10967 ;;
10968 ppc*-*linux*|powerpc*-*linux*)
10969 LD="${LD-ld} -m elf64ppc"
10970 ;;
10971 s390*-*linux*|s390*-*tpf*)
10972 LD="${LD-ld} -m elf64_s390"
10973 ;;
10974 sparc*-*linux*)
10975 LD="${LD-ld} -m elf64_sparc"
10976 ;;
10977 esac
10978 ;;
10979 esac
10980 fi
10981 rm -rf conftest*
10982 ;;
10983
10984*-*-sco3.2v5*)
10985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10986 SAVE_CFLAGS="$CFLAGS"
10987 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010989$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010990if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010991 $as_echo_n "(cached) " >&6
10992else
10993 ac_ext=c
10994ac_cpp='$CPP $CPPFLAGS'
10995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998
cristy8b350f62009-11-15 23:12:43 +000010999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011000/* end confdefs.h. */
11001
11002int
11003main ()
11004{
11005
11006 ;
11007 return 0;
11008}
11009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011011 lt_cv_cc_needs_belf=yes
11012else
cristy8b350f62009-11-15 23:12:43 +000011013 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011014fi
cristy8b350f62009-11-15 23:12:43 +000011015rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011017 ac_ext=c
11018ac_cpp='$CPP $CPPFLAGS'
11019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021ac_compiler_gnu=$ac_cv_c_compiler_gnu
11022
11023fi
cristy8b350f62009-11-15 23:12:43 +000011024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011025$as_echo "$lt_cv_cc_needs_belf" >&6; }
11026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11028 CFLAGS="$SAVE_CFLAGS"
11029 fi
11030 ;;
11031sparc*-*solaris*)
11032 # Find out which ABI we are using.
11033 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011035 (eval $ac_compile) 2>&5
11036 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11038 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011039 case `/usr/bin/file conftest.o` in
11040 *64-bit*)
11041 case $lt_cv_prog_gnu_ld in
11042 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11043 *)
11044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11045 LD="${LD-ld} -64"
11046 fi
11047 ;;
11048 esac
11049 ;;
11050 esac
11051 fi
11052 rm -rf conftest*
11053 ;;
11054esac
11055
11056need_locks="$enable_libtool_lock"
11057
11058
11059 case $host_os in
11060 rhapsody* | darwin*)
11061 if test -n "$ac_tool_prefix"; then
11062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11063set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011065$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011066if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011067 $as_echo_n "(cached) " >&6
11068else
11069 if test -n "$DSYMUTIL"; then
11070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011081 break 2
11082 fi
11083done
cristy8b350f62009-11-15 23:12:43 +000011084 done
cristy3ed852e2009-09-05 21:47:34 +000011085IFS=$as_save_IFS
11086
11087fi
11088fi
11089DSYMUTIL=$ac_cv_prog_DSYMUTIL
11090if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011092$as_echo "$DSYMUTIL" >&6; }
11093else
cristy8b350f62009-11-15 23:12:43 +000011094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011095$as_echo "no" >&6; }
11096fi
11097
11098
11099fi
11100if test -z "$ac_cv_prog_DSYMUTIL"; then
11101 ac_ct_DSYMUTIL=$DSYMUTIL
11102 # Extract the first word of "dsymutil", so it can be a program name with args.
11103set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011106if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011107 $as_echo_n "(cached) " >&6
11108else
11109 if test -n "$ac_ct_DSYMUTIL"; then
11110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11111else
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011121 break 2
11122 fi
11123done
cristy8b350f62009-11-15 23:12:43 +000011124 done
cristy3ed852e2009-09-05 21:47:34 +000011125IFS=$as_save_IFS
11126
11127fi
11128fi
11129ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11130if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011132$as_echo "$ac_ct_DSYMUTIL" >&6; }
11133else
cristy8b350f62009-11-15 23:12:43 +000011134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011135$as_echo "no" >&6; }
11136fi
11137
11138 if test "x$ac_ct_DSYMUTIL" = x; then
11139 DSYMUTIL=":"
11140 else
11141 case $cross_compiling:$ac_tool_warned in
11142yes:)
cristy8b350f62009-11-15 23:12:43 +000011143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11145ac_tool_warned=yes ;;
11146esac
11147 DSYMUTIL=$ac_ct_DSYMUTIL
11148 fi
11149else
11150 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11151fi
11152
11153 if test -n "$ac_tool_prefix"; then
11154 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11155set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011157$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011158if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011159 $as_echo_n "(cached) " >&6
11160else
11161 if test -n "$NMEDIT"; then
11162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11163else
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011173 break 2
11174 fi
11175done
cristy8b350f62009-11-15 23:12:43 +000011176 done
cristy3ed852e2009-09-05 21:47:34 +000011177IFS=$as_save_IFS
11178
11179fi
11180fi
11181NMEDIT=$ac_cv_prog_NMEDIT
11182if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011184$as_echo "$NMEDIT" >&6; }
11185else
cristy8b350f62009-11-15 23:12:43 +000011186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011187$as_echo "no" >&6; }
11188fi
11189
11190
11191fi
11192if test -z "$ac_cv_prog_NMEDIT"; then
11193 ac_ct_NMEDIT=$NMEDIT
11194 # Extract the first word of "nmedit", so it can be a program name with args.
11195set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011198if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011199 $as_echo_n "(cached) " >&6
11200else
11201 if test -n "$ac_ct_NMEDIT"; then
11202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11203else
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011213 break 2
11214 fi
11215done
cristy8b350f62009-11-15 23:12:43 +000011216 done
cristy3ed852e2009-09-05 21:47:34 +000011217IFS=$as_save_IFS
11218
11219fi
11220fi
11221ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11222if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011224$as_echo "$ac_ct_NMEDIT" >&6; }
11225else
cristy8b350f62009-11-15 23:12:43 +000011226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011227$as_echo "no" >&6; }
11228fi
11229
11230 if test "x$ac_ct_NMEDIT" = x; then
11231 NMEDIT=":"
11232 else
11233 case $cross_compiling:$ac_tool_warned in
11234yes:)
cristy8b350f62009-11-15 23:12:43 +000011235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11237ac_tool_warned=yes ;;
11238esac
11239 NMEDIT=$ac_ct_NMEDIT
11240 fi
11241else
11242 NMEDIT="$ac_cv_prog_NMEDIT"
11243fi
11244
11245 if test -n "$ac_tool_prefix"; then
11246 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11247set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011250if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011251 $as_echo_n "(cached) " >&6
11252else
11253 if test -n "$LIPO"; then
11254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011265 break 2
11266 fi
11267done
cristy8b350f62009-11-15 23:12:43 +000011268 done
cristy3ed852e2009-09-05 21:47:34 +000011269IFS=$as_save_IFS
11270
11271fi
11272fi
11273LIPO=$ac_cv_prog_LIPO
11274if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011276$as_echo "$LIPO" >&6; }
11277else
cristy8b350f62009-11-15 23:12:43 +000011278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011279$as_echo "no" >&6; }
11280fi
11281
11282
11283fi
11284if test -z "$ac_cv_prog_LIPO"; then
11285 ac_ct_LIPO=$LIPO
11286 # Extract the first word of "lipo", so it can be a program name with args.
11287set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011289$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011290if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011291 $as_echo_n "(cached) " >&6
11292else
11293 if test -n "$ac_ct_LIPO"; then
11294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11303 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305 break 2
11306 fi
11307done
cristy8b350f62009-11-15 23:12:43 +000011308 done
cristy3ed852e2009-09-05 21:47:34 +000011309IFS=$as_save_IFS
11310
11311fi
11312fi
11313ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11314if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011316$as_echo "$ac_ct_LIPO" >&6; }
11317else
cristy8b350f62009-11-15 23:12:43 +000011318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011319$as_echo "no" >&6; }
11320fi
11321
11322 if test "x$ac_ct_LIPO" = x; then
11323 LIPO=":"
11324 else
11325 case $cross_compiling:$ac_tool_warned in
11326yes:)
cristy8b350f62009-11-15 23:12:43 +000011327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11329ac_tool_warned=yes ;;
11330esac
11331 LIPO=$ac_ct_LIPO
11332 fi
11333else
11334 LIPO="$ac_cv_prog_LIPO"
11335fi
11336
11337 if test -n "$ac_tool_prefix"; then
11338 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11339set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011341$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011342if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011343 $as_echo_n "(cached) " >&6
11344else
11345 if test -n "$OTOOL"; then
11346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11347else
11348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349for as_dir in $PATH
11350do
11351 IFS=$as_save_IFS
11352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011357 break 2
11358 fi
11359done
cristy8b350f62009-11-15 23:12:43 +000011360 done
cristy3ed852e2009-09-05 21:47:34 +000011361IFS=$as_save_IFS
11362
11363fi
11364fi
11365OTOOL=$ac_cv_prog_OTOOL
11366if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011368$as_echo "$OTOOL" >&6; }
11369else
cristy8b350f62009-11-15 23:12:43 +000011370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011371$as_echo "no" >&6; }
11372fi
11373
11374
11375fi
11376if test -z "$ac_cv_prog_OTOOL"; then
11377 ac_ct_OTOOL=$OTOOL
11378 # Extract the first word of "otool", so it can be a program name with args.
11379set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011381$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011382if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011383 $as_echo_n "(cached) " >&6
11384else
11385 if test -n "$ac_ct_OTOOL"; then
11386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11387else
11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011397 break 2
11398 fi
11399done
cristy8b350f62009-11-15 23:12:43 +000011400 done
cristy3ed852e2009-09-05 21:47:34 +000011401IFS=$as_save_IFS
11402
11403fi
11404fi
11405ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11406if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011408$as_echo "$ac_ct_OTOOL" >&6; }
11409else
cristy8b350f62009-11-15 23:12:43 +000011410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011411$as_echo "no" >&6; }
11412fi
11413
11414 if test "x$ac_ct_OTOOL" = x; then
11415 OTOOL=":"
11416 else
11417 case $cross_compiling:$ac_tool_warned in
11418yes:)
cristy8b350f62009-11-15 23:12:43 +000011419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11421ac_tool_warned=yes ;;
11422esac
11423 OTOOL=$ac_ct_OTOOL
11424 fi
11425else
11426 OTOOL="$ac_cv_prog_OTOOL"
11427fi
11428
11429 if test -n "$ac_tool_prefix"; then
11430 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11431set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011433$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011434if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011435 $as_echo_n "(cached) " >&6
11436else
11437 if test -n "$OTOOL64"; then
11438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449 break 2
11450 fi
11451done
cristy8b350f62009-11-15 23:12:43 +000011452 done
cristy3ed852e2009-09-05 21:47:34 +000011453IFS=$as_save_IFS
11454
11455fi
11456fi
11457OTOOL64=$ac_cv_prog_OTOOL64
11458if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011460$as_echo "$OTOOL64" >&6; }
11461else
cristy8b350f62009-11-15 23:12:43 +000011462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011463$as_echo "no" >&6; }
11464fi
11465
11466
11467fi
11468if test -z "$ac_cv_prog_OTOOL64"; then
11469 ac_ct_OTOOL64=$OTOOL64
11470 # Extract the first word of "otool64", so it can be a program name with args.
11471set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011473$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011474if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011475 $as_echo_n "(cached) " >&6
11476else
11477 if test -n "$ac_ct_OTOOL64"; then
11478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11479else
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011489 break 2
11490 fi
11491done
cristy8b350f62009-11-15 23:12:43 +000011492 done
cristy3ed852e2009-09-05 21:47:34 +000011493IFS=$as_save_IFS
11494
11495fi
11496fi
11497ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11498if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011500$as_echo "$ac_ct_OTOOL64" >&6; }
11501else
cristy8b350f62009-11-15 23:12:43 +000011502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011503$as_echo "no" >&6; }
11504fi
11505
11506 if test "x$ac_ct_OTOOL64" = x; then
11507 OTOOL64=":"
11508 else
11509 case $cross_compiling:$ac_tool_warned in
11510yes:)
cristy8b350f62009-11-15 23:12:43 +000011511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11513ac_tool_warned=yes ;;
11514esac
11515 OTOOL64=$ac_ct_OTOOL64
11516 fi
11517else
11518 OTOOL64="$ac_cv_prog_OTOOL64"
11519fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
cristy8b350f62009-11-15 23:12:43 +000011547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011548$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011549if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011550 $as_echo_n "(cached) " >&6
11551else
11552 lt_cv_apple_cc_single_mod=no
11553 if test -z "${LT_MULTI_MODULE}"; then
11554 # By default we will add the -single_module flag. You can override
11555 # by either setting the environment variable LT_MULTI_MODULE
11556 # non-empty at configure time, or by adding -multi_module to the
11557 # link flags.
11558 rm -rf libconftest.dylib*
11559 echo "int foo(void){return 1;}" > conftest.c
11560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11561-dynamiclib -Wl,-single_module conftest.c" >&5
11562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11564 _lt_result=$?
11565 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11566 lt_cv_apple_cc_single_mod=yes
11567 else
11568 cat conftest.err >&5
11569 fi
11570 rm -rf libconftest.dylib*
11571 rm -f conftest.*
11572 fi
11573fi
cristy8b350f62009-11-15 23:12:43 +000011574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011575$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011577$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011578if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011579 $as_echo_n "(cached) " >&6
11580else
11581 lt_cv_ld_exported_symbols_list=no
11582 save_LDFLAGS=$LDFLAGS
11583 echo "_main" > conftest.sym
11584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011586/* end confdefs.h. */
11587
11588int
11589main ()
11590{
11591
11592 ;
11593 return 0;
11594}
11595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011597 lt_cv_ld_exported_symbols_list=yes
11598else
cristy8b350f62009-11-15 23:12:43 +000011599 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011600fi
cristy8b350f62009-11-15 23:12:43 +000011601rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011603 LDFLAGS="$save_LDFLAGS"
11604
11605fi
cristy8b350f62009-11-15 23:12:43 +000011606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011607$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11609$as_echo_n "checking for -force_load linker flag... " >&6; }
11610if test "${lt_cv_ld_force_load+set}" = set; then :
11611 $as_echo_n "(cached) " >&6
11612else
11613 lt_cv_ld_force_load=no
11614 cat > conftest.c << _LT_EOF
11615int forced_loaded() { return 2;}
11616_LT_EOF
11617 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11618 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11619 echo "$AR cru libconftest.a conftest.o" >&5
11620 $AR cru libconftest.a conftest.o 2>&5
11621 echo "$RANLIB libconftest.a" >&5
11622 $RANLIB libconftest.a 2>&5
11623 cat > conftest.c << _LT_EOF
11624int main() { return 0;}
11625_LT_EOF
11626 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11627 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11628 _lt_result=$?
11629 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11630 lt_cv_ld_force_load=yes
11631 else
11632 cat conftest.err >&5
11633 fi
11634 rm -f conftest.err libconftest.a conftest conftest.c
11635 rm -rf conftest.dSYM
11636
11637fi
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11639$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011640 case $host_os in
11641 rhapsody* | darwin1.[012])
11642 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11643 darwin1.*)
11644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11645 darwin*) # darwin 5.x on
11646 # if running on 10.5 or later, the deployment target defaults
11647 # to the OS version, if on x86, and 10.4, the deployment
11648 # target defaults to 10.4. Don't you love it?
11649 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11650 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652 10.[012]*)
11653 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11654 10.*)
11655 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11656 esac
11657 ;;
11658 esac
11659 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11660 _lt_dar_single_mod='$single_module'
11661 fi
11662 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11663 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11664 else
11665 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11666 fi
cristyfd9dcd42010-08-08 18:07:02 +000011667 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011668 _lt_dsymutil='~$DSYMUTIL $lib || :'
11669 else
11670 _lt_dsymutil=
11671 fi
11672 ;;
11673 esac
11674
cristy3ed852e2009-09-05 21:47:34 +000011675for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011676do :
11677 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11678"
11679if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011680 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011681#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011682_ACEOF
11683
11684fi
11685
11686done
11687
11688
11689
cristy3ed852e2009-09-05 21:47:34 +000011690
11691
11692
11693# Set options
11694enable_win32_dll=yes
11695
11696case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011697*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011698 if test -n "$ac_tool_prefix"; then
11699 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11700set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011702$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011703if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011704 $as_echo_n "(cached) " >&6
11705else
11706 if test -n "$AS"; then
11707 ac_cv_prog_AS="$AS" # Let the user override the test.
11708else
11709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $PATH
11711do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011718 break 2
11719 fi
11720done
cristy8b350f62009-11-15 23:12:43 +000011721 done
cristy3ed852e2009-09-05 21:47:34 +000011722IFS=$as_save_IFS
11723
11724fi
11725fi
11726AS=$ac_cv_prog_AS
11727if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011729$as_echo "$AS" >&6; }
11730else
cristy8b350f62009-11-15 23:12:43 +000011731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011732$as_echo "no" >&6; }
11733fi
11734
11735
11736fi
11737if test -z "$ac_cv_prog_AS"; then
11738 ac_ct_AS=$AS
11739 # Extract the first word of "as", so it can be a program name with args.
11740set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011742$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011743if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011744 $as_echo_n "(cached) " >&6
11745else
11746 if test -n "$ac_ct_AS"; then
11747 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11748else
11749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
11751do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011758 break 2
11759 fi
11760done
cristy8b350f62009-11-15 23:12:43 +000011761 done
cristy3ed852e2009-09-05 21:47:34 +000011762IFS=$as_save_IFS
11763
11764fi
11765fi
11766ac_ct_AS=$ac_cv_prog_ac_ct_AS
11767if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011769$as_echo "$ac_ct_AS" >&6; }
11770else
cristy8b350f62009-11-15 23:12:43 +000011771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011772$as_echo "no" >&6; }
11773fi
11774
11775 if test "x$ac_ct_AS" = x; then
11776 AS="false"
11777 else
11778 case $cross_compiling:$ac_tool_warned in
11779yes:)
cristy8b350f62009-11-15 23:12:43 +000011780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11782ac_tool_warned=yes ;;
11783esac
11784 AS=$ac_ct_AS
11785 fi
11786else
11787 AS="$ac_cv_prog_AS"
11788fi
11789
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11792set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011794$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011795if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011796 $as_echo_n "(cached) " >&6
11797else
11798 if test -n "$DLLTOOL"; then
11799 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011810 break 2
11811 fi
11812done
cristy8b350f62009-11-15 23:12:43 +000011813 done
cristy3ed852e2009-09-05 21:47:34 +000011814IFS=$as_save_IFS
11815
11816fi
11817fi
11818DLLTOOL=$ac_cv_prog_DLLTOOL
11819if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011821$as_echo "$DLLTOOL" >&6; }
11822else
cristy8b350f62009-11-15 23:12:43 +000011823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011824$as_echo "no" >&6; }
11825fi
11826
11827
11828fi
11829if test -z "$ac_cv_prog_DLLTOOL"; then
11830 ac_ct_DLLTOOL=$DLLTOOL
11831 # Extract the first word of "dlltool", so it can be a program name with args.
11832set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011834$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011835if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011836 $as_echo_n "(cached) " >&6
11837else
11838 if test -n "$ac_ct_DLLTOOL"; then
11839 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11840else
11841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011850 break 2
11851 fi
11852done
cristy8b350f62009-11-15 23:12:43 +000011853 done
cristy3ed852e2009-09-05 21:47:34 +000011854IFS=$as_save_IFS
11855
11856fi
11857fi
11858ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11859if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011861$as_echo "$ac_ct_DLLTOOL" >&6; }
11862else
cristy8b350f62009-11-15 23:12:43 +000011863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011864$as_echo "no" >&6; }
11865fi
11866
11867 if test "x$ac_ct_DLLTOOL" = x; then
11868 DLLTOOL="false"
11869 else
11870 case $cross_compiling:$ac_tool_warned in
11871yes:)
cristy8b350f62009-11-15 23:12:43 +000011872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874ac_tool_warned=yes ;;
11875esac
11876 DLLTOOL=$ac_ct_DLLTOOL
11877 fi
11878else
11879 DLLTOOL="$ac_cv_prog_DLLTOOL"
11880fi
11881
11882 if test -n "$ac_tool_prefix"; then
11883 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11884set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011886$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011887if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011888 $as_echo_n "(cached) " >&6
11889else
11890 if test -n "$OBJDUMP"; then
11891 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11892else
11893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11900 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011902 break 2
11903 fi
11904done
cristy8b350f62009-11-15 23:12:43 +000011905 done
cristy3ed852e2009-09-05 21:47:34 +000011906IFS=$as_save_IFS
11907
11908fi
11909fi
11910OBJDUMP=$ac_cv_prog_OBJDUMP
11911if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011913$as_echo "$OBJDUMP" >&6; }
11914else
cristy8b350f62009-11-15 23:12:43 +000011915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011916$as_echo "no" >&6; }
11917fi
11918
11919
11920fi
11921if test -z "$ac_cv_prog_OBJDUMP"; then
11922 ac_ct_OBJDUMP=$OBJDUMP
11923 # Extract the first word of "objdump", so it can be a program name with args.
11924set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011926$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011927if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011928 $as_echo_n "(cached) " >&6
11929else
11930 if test -n "$ac_ct_OBJDUMP"; then
11931 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11932else
11933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934for as_dir in $PATH
11935do
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11940 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011942 break 2
11943 fi
11944done
cristy8b350f62009-11-15 23:12:43 +000011945 done
cristy3ed852e2009-09-05 21:47:34 +000011946IFS=$as_save_IFS
11947
11948fi
11949fi
11950ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11951if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011953$as_echo "$ac_ct_OBJDUMP" >&6; }
11954else
cristy8b350f62009-11-15 23:12:43 +000011955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011956$as_echo "no" >&6; }
11957fi
11958
11959 if test "x$ac_ct_OBJDUMP" = x; then
11960 OBJDUMP="false"
11961 else
11962 case $cross_compiling:$ac_tool_warned in
11963yes:)
cristy8b350f62009-11-15 23:12:43 +000011964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11966ac_tool_warned=yes ;;
11967esac
11968 OBJDUMP=$ac_ct_OBJDUMP
11969 fi
11970else
11971 OBJDUMP="$ac_cv_prog_OBJDUMP"
11972fi
11973
11974 ;;
11975esac
11976
11977test -z "$AS" && AS=as
11978
11979
11980
11981
11982
11983test -z "$DLLTOOL" && DLLTOOL=dlltool
11984
11985
11986
11987
11988
11989test -z "$OBJDUMP" && OBJDUMP=objdump
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012000if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012001 enableval=$enable_shared; p=${PACKAGE-default}
12002 case $enableval in
12003 yes) enable_shared=yes ;;
12004 no) enable_shared=no ;;
12005 *)
12006 enable_shared=no
12007 # Look at the argument we got. We use all the common list separators.
12008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12009 for pkg in $enableval; do
12010 IFS="$lt_save_ifs"
12011 if test "X$pkg" = "X$p"; then
12012 enable_shared=yes
12013 fi
12014 done
12015 IFS="$lt_save_ifs"
12016 ;;
12017 esac
12018else
12019 enable_shared=yes
12020fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012031if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012032 enableval=$enable_static; p=${PACKAGE-default}
12033 case $enableval in
12034 yes) enable_static=yes ;;
12035 no) enable_static=no ;;
12036 *)
12037 enable_static=no
12038 # Look at the argument we got. We use all the common list separators.
12039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12040 for pkg in $enableval; do
12041 IFS="$lt_save_ifs"
12042 if test "X$pkg" = "X$p"; then
12043 enable_static=yes
12044 fi
12045 done
12046 IFS="$lt_save_ifs"
12047 ;;
12048 esac
12049else
12050 enable_static=yes
12051fi
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012063if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012064 withval=$with_pic; pic_mode="$withval"
12065else
12066 pic_mode=default
12067fi
12068
12069
12070test -z "$pic_mode" && pic_mode=default
12071
12072
12073
12074
12075
12076
12077
12078 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012079if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012080 enableval=$enable_fast_install; p=${PACKAGE-default}
12081 case $enableval in
12082 yes) enable_fast_install=yes ;;
12083 no) enable_fast_install=no ;;
12084 *)
12085 enable_fast_install=no
12086 # Look at the argument we got. We use all the common list separators.
12087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12088 for pkg in $enableval; do
12089 IFS="$lt_save_ifs"
12090 if test "X$pkg" = "X$p"; then
12091 enable_fast_install=yes
12092 fi
12093 done
12094 IFS="$lt_save_ifs"
12095 ;;
12096 esac
12097else
12098 enable_fast_install=yes
12099fi
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111# This can be used to rebuild libtool when needed
12112LIBTOOL_DEPS="$ltmain"
12113
12114# Always use our own libtool.
12115LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
cristyfd9dcd42010-08-08 18:07:02 +000012141
cristy3ed852e2009-09-05 21:47:34 +000012142test -z "$LN_S" && LN_S="ln -s"
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157if test -n "${ZSH_VERSION+set}" ; then
12158 setopt NO_GLOB_SUBST
12159fi
12160
cristy8b350f62009-11-15 23:12:43 +000012161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012162$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012163if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012164 $as_echo_n "(cached) " >&6
12165else
12166 rm -f .libs 2>/dev/null
12167mkdir .libs 2>/dev/null
12168if test -d .libs; then
12169 lt_cv_objdir=.libs
12170else
12171 # MS-DOS does not allow filenames that begin with a dot.
12172 lt_cv_objdir=_libs
12173fi
12174rmdir .libs 2>/dev/null
12175fi
cristy8b350f62009-11-15 23:12:43 +000012176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012177$as_echo "$lt_cv_objdir" >&6; }
12178objdir=$lt_cv_objdir
12179
12180
12181
12182
12183
12184cat >>confdefs.h <<_ACEOF
12185#define LT_OBJDIR "$lt_cv_objdir/"
12186_ACEOF
12187
12188
12189
12190
cristy3ed852e2009-09-05 21:47:34 +000012191case $host_os in
12192aix3*)
12193 # AIX sometimes has problems with the GCC collect2 program. For some
12194 # reason, if we set the COLLECT_NAMES environment variable, the problems
12195 # vanish in a puff of smoke.
12196 if test "X${COLLECT_NAMES+set}" != Xset; then
12197 COLLECT_NAMES=
12198 export COLLECT_NAMES
12199 fi
12200 ;;
12201esac
12202
cristy3ed852e2009-09-05 21:47:34 +000012203# Global variables:
12204ofile=libtool
12205can_build_shared=yes
12206
12207# All known linkers require a `.a' archive for static linking (except MSVC,
12208# which needs '.lib').
12209libext=a
12210
12211with_gnu_ld="$lt_cv_prog_gnu_ld"
12212
12213old_CC="$CC"
12214old_CFLAGS="$CFLAGS"
12215
12216# Set sane defaults for various variables
12217test -z "$CC" && CC=cc
12218test -z "$LTCC" && LTCC=$CC
12219test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12220test -z "$LD" && LD=ld
12221test -z "$ac_objext" && ac_objext=o
12222
12223for cc_temp in $compiler""; do
12224 case $cc_temp in
12225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12227 \-*) ;;
12228 *) break;;
12229 esac
12230done
cristyfd9dcd42010-08-08 18:07:02 +000012231cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012232
12233
12234# Only perform the check for file, if the check method requires it
12235test -z "$MAGIC_CMD" && MAGIC_CMD=file
12236case $deplibs_check_method in
12237file_magic*)
12238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012240$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012241if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012242 $as_echo_n "(cached) " >&6
12243else
12244 case $MAGIC_CMD in
12245[\\/*] | ?:[\\/]*)
12246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12247 ;;
12248*)
12249 lt_save_MAGIC_CMD="$MAGIC_CMD"
12250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12252 for ac_dir in $ac_dummy; do
12253 IFS="$lt_save_ifs"
12254 test -z "$ac_dir" && ac_dir=.
12255 if test -f $ac_dir/${ac_tool_prefix}file; then
12256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12257 if test -n "$file_magic_test_file"; then
12258 case $deplibs_check_method in
12259 "file_magic "*)
12260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12263 $EGREP "$file_magic_regex" > /dev/null; then
12264 :
12265 else
12266 cat <<_LT_EOF 1>&2
12267
12268*** Warning: the command libtool uses to detect shared libraries,
12269*** $file_magic_cmd, produces output that libtool cannot recognize.
12270*** The result is that libtool may fail to recognize shared libraries
12271*** as such. This will affect the creation of libtool libraries that
12272*** depend on shared libraries, but programs linked with such libtool
12273*** libraries will work regardless of this problem. Nevertheless, you
12274*** may want to report the problem to your system manager and/or to
12275*** bug-libtool@gnu.org
12276
12277_LT_EOF
12278 fi ;;
12279 esac
12280 fi
12281 break
12282 fi
12283 done
12284 IFS="$lt_save_ifs"
12285 MAGIC_CMD="$lt_save_MAGIC_CMD"
12286 ;;
12287esac
12288fi
12289
12290MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12291if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012293$as_echo "$MAGIC_CMD" >&6; }
12294else
cristy8b350f62009-11-15 23:12:43 +000012295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012296$as_echo "no" >&6; }
12297fi
12298
12299
12300
12301
12302
12303if test -z "$lt_cv_path_MAGIC_CMD"; then
12304 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012306$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012307if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012308 $as_echo_n "(cached) " >&6
12309else
12310 case $MAGIC_CMD in
12311[\\/*] | ?:[\\/]*)
12312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12313 ;;
12314*)
12315 lt_save_MAGIC_CMD="$MAGIC_CMD"
12316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12318 for ac_dir in $ac_dummy; do
12319 IFS="$lt_save_ifs"
12320 test -z "$ac_dir" && ac_dir=.
12321 if test -f $ac_dir/file; then
12322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12323 if test -n "$file_magic_test_file"; then
12324 case $deplibs_check_method in
12325 "file_magic "*)
12326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12329 $EGREP "$file_magic_regex" > /dev/null; then
12330 :
12331 else
12332 cat <<_LT_EOF 1>&2
12333
12334*** Warning: the command libtool uses to detect shared libraries,
12335*** $file_magic_cmd, produces output that libtool cannot recognize.
12336*** The result is that libtool may fail to recognize shared libraries
12337*** as such. This will affect the creation of libtool libraries that
12338*** depend on shared libraries, but programs linked with such libtool
12339*** libraries will work regardless of this problem. Nevertheless, you
12340*** may want to report the problem to your system manager and/or to
12341*** bug-libtool@gnu.org
12342
12343_LT_EOF
12344 fi ;;
12345 esac
12346 fi
12347 break
12348 fi
12349 done
12350 IFS="$lt_save_ifs"
12351 MAGIC_CMD="$lt_save_MAGIC_CMD"
12352 ;;
12353esac
12354fi
12355
12356MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12357if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012359$as_echo "$MAGIC_CMD" >&6; }
12360else
cristy8b350f62009-11-15 23:12:43 +000012361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012362$as_echo "no" >&6; }
12363fi
12364
12365
12366 else
12367 MAGIC_CMD=:
12368 fi
12369fi
12370
12371 fi
12372 ;;
12373esac
12374
12375# Use C for the default configuration in the libtool script
12376
12377lt_save_CC="$CC"
12378ac_ext=c
12379ac_cpp='$CPP $CPPFLAGS'
12380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383
12384
12385# Source file extension for C test sources.
12386ac_ext=c
12387
12388# Object file extension for compiled C test sources.
12389objext=o
12390objext=$objext
12391
12392# Code to be used in simple compile tests
12393lt_simple_compile_test_code="int some_variable = 0;"
12394
12395# Code to be used in simple link tests
12396lt_simple_link_test_code='int main(){return(0);}'
12397
12398
12399
12400
12401
12402
12403
12404# If no C compiler was specified, use CC.
12405LTCC=${LTCC-"$CC"}
12406
12407# If no C compiler flags were specified, use CFLAGS.
12408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12409
12410# Allow CC to be a program name with arguments.
12411compiler=$CC
12412
12413# Save the default compiler, since it gets overwritten when the other
12414# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12415compiler_DEFAULT=$CC
12416
12417# save warnings/boilerplate of simple test code
12418ac_outfile=conftest.$ac_objext
12419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12421_lt_compiler_boilerplate=`cat conftest.err`
12422$RM conftest*
12423
12424ac_outfile=conftest.$ac_objext
12425echo "$lt_simple_link_test_code" >conftest.$ac_ext
12426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12427_lt_linker_boilerplate=`cat conftest.err`
12428$RM -r conftest*
12429
12430
12431## CAVEAT EMPTOR:
12432## There is no encapsulation within the following macros, do not change
12433## the running order or otherwise move them around unless you know exactly
12434## what you are doing...
12435if test -n "$compiler"; then
12436
12437lt_prog_compiler_no_builtin_flag=
12438
12439if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012440 case $cc_basename in
12441 nvcc*)
12442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12443 *)
12444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12445 esac
cristy3ed852e2009-09-05 21:47:34 +000012446
cristy8b350f62009-11-15 23:12:43 +000012447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012448$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012449if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012450 $as_echo_n "(cached) " >&6
12451else
12452 lt_cv_prog_compiler_rtti_exceptions=no
12453 ac_outfile=conftest.$ac_objext
12454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12455 lt_compiler_flag="-fno-rtti -fno-exceptions"
12456 # Insert the option either (1) after the last *FLAGS variable, or
12457 # (2) before a word containing "conftest.", or (3) at the end.
12458 # Note that $ac_compile itself does not contain backslashes and begins
12459 # with a dollar sign (not a hyphen), so the echo should work correctly.
12460 # The option is referenced via a variable to avoid confusing sed.
12461 lt_compile=`echo "$ac_compile" | $SED \
12462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12464 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012466 (eval "$lt_compile" 2>conftest.err)
12467 ac_status=$?
12468 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012470 if (exit $ac_status) && test -s "$ac_outfile"; then
12471 # The compiler can only warn and ignore the option if not recognized
12472 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12476 lt_cv_prog_compiler_rtti_exceptions=yes
12477 fi
12478 fi
12479 $RM conftest*
12480
12481fi
cristy8b350f62009-11-15 23:12:43 +000012482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012483$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12484
12485if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12487else
12488 :
12489fi
12490
12491fi
12492
12493
12494
12495
12496
12497
12498 lt_prog_compiler_wl=
12499lt_prog_compiler_pic=
12500lt_prog_compiler_static=
12501
cristy8b350f62009-11-15 23:12:43 +000012502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012503$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12504
12505 if test "$GCC" = yes; then
12506 lt_prog_compiler_wl='-Wl,'
12507 lt_prog_compiler_static='-static'
12508
12509 case $host_os in
12510 aix*)
12511 # All AIX code is PIC.
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 now supports IA64 processor
12514 lt_prog_compiler_static='-Bstatic'
12515 fi
12516 ;;
12517
12518 amigaos*)
12519 case $host_cpu in
12520 powerpc)
12521 # see comment about AmigaOS4 .so support
12522 lt_prog_compiler_pic='-fPIC'
12523 ;;
12524 m68k)
12525 # FIXME: we need at least 68020 code to build shared libraries, but
12526 # adding the `-m68020' flag to GCC prevents building anything better,
12527 # like `-m68040'.
12528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12529 ;;
12530 esac
12531 ;;
12532
12533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12534 # PIC is the default for these OSes.
12535 ;;
12536
12537 mingw* | cygwin* | pw32* | os2* | cegcc*)
12538 # This hack is so that the source file can tell whether it is being
12539 # built for inclusion in a dll (and should export symbols for example).
12540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12541 # (--disable-auto-import) libraries
12542 lt_prog_compiler_pic='-DDLL_EXPORT'
12543 ;;
12544
12545 darwin* | rhapsody*)
12546 # PIC is the default on this platform
12547 # Common symbols not allowed in MH_DYLIB files
12548 lt_prog_compiler_pic='-fno-common'
12549 ;;
12550
cristyfd9dcd42010-08-08 18:07:02 +000012551 haiku*)
12552 # PIC is the default for Haiku.
12553 # The "-static" flag exists, but is broken.
12554 lt_prog_compiler_static=
12555 ;;
12556
cristy3ed852e2009-09-05 21:47:34 +000012557 hpux*)
12558 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12559 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12560 # sets the default TLS model and affects inlining.
12561 case $host_cpu in
12562 hppa*64*)
12563 # +Z the default
12564 ;;
12565 *)
12566 lt_prog_compiler_pic='-fPIC'
12567 ;;
12568 esac
12569 ;;
12570
12571 interix[3-9]*)
12572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12573 # Instead, we relocate shared libraries at runtime.
12574 ;;
12575
12576 msdosdjgpp*)
12577 # Just because we use GCC doesn't mean we suddenly get shared libraries
12578 # on systems that don't support them.
12579 lt_prog_compiler_can_build_shared=no
12580 enable_shared=no
12581 ;;
12582
12583 *nto* | *qnx*)
12584 # QNX uses GNU C++, but need to define -shared option too, otherwise
12585 # it will coredump.
12586 lt_prog_compiler_pic='-fPIC -shared'
12587 ;;
12588
12589 sysv4*MP*)
12590 if test -d /usr/nec; then
12591 lt_prog_compiler_pic=-Kconform_pic
12592 fi
12593 ;;
12594
12595 *)
12596 lt_prog_compiler_pic='-fPIC'
12597 ;;
12598 esac
cristyfd9dcd42010-08-08 18:07:02 +000012599
12600 case $cc_basename in
12601 nvcc*) # Cuda Compiler Driver 2.2
12602 lt_prog_compiler_wl='-Xlinker '
12603 lt_prog_compiler_pic='-Xcompiler -fPIC'
12604 ;;
12605 esac
cristy3ed852e2009-09-05 21:47:34 +000012606 else
12607 # PORTME Check for flag to pass linker flags through the system compiler.
12608 case $host_os in
12609 aix*)
12610 lt_prog_compiler_wl='-Wl,'
12611 if test "$host_cpu" = ia64; then
12612 # AIX 5 now supports IA64 processor
12613 lt_prog_compiler_static='-Bstatic'
12614 else
12615 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12616 fi
12617 ;;
12618
12619 mingw* | cygwin* | pw32* | os2* | cegcc*)
12620 # This hack is so that the source file can tell whether it is being
12621 # built for inclusion in a dll (and should export symbols for example).
12622 lt_prog_compiler_pic='-DDLL_EXPORT'
12623 ;;
12624
12625 hpux9* | hpux10* | hpux11*)
12626 lt_prog_compiler_wl='-Wl,'
12627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12628 # not for PA HP-UX.
12629 case $host_cpu in
12630 hppa*64*|ia64*)
12631 # +Z the default
12632 ;;
12633 *)
12634 lt_prog_compiler_pic='+Z'
12635 ;;
12636 esac
12637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12638 lt_prog_compiler_static='${wl}-a ${wl}archive'
12639 ;;
12640
12641 irix5* | irix6* | nonstopux*)
12642 lt_prog_compiler_wl='-Wl,'
12643 # PIC (with -KPIC) is the default.
12644 lt_prog_compiler_static='-non_shared'
12645 ;;
12646
cristyfd9dcd42010-08-08 18:07:02 +000012647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012648 case $cc_basename in
12649 # old Intel for x86_64 which still supported -KPIC.
12650 ecc*)
12651 lt_prog_compiler_wl='-Wl,'
12652 lt_prog_compiler_pic='-KPIC'
12653 lt_prog_compiler_static='-static'
12654 ;;
12655 # icc used to be incompatible with GCC.
12656 # ICC 10 doesn't accept -KPIC any more.
12657 icc* | ifort*)
12658 lt_prog_compiler_wl='-Wl,'
12659 lt_prog_compiler_pic='-fPIC'
12660 lt_prog_compiler_static='-static'
12661 ;;
12662 # Lahey Fortran 8.1.
12663 lf95*)
12664 lt_prog_compiler_wl='-Wl,'
12665 lt_prog_compiler_pic='--shared'
12666 lt_prog_compiler_static='--static'
12667 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012668 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012669 # Portland Group compilers (*not* the Pentium gcc compiler,
12670 # which looks to be a dead project)
12671 lt_prog_compiler_wl='-Wl,'
12672 lt_prog_compiler_pic='-fpic'
12673 lt_prog_compiler_static='-Bstatic'
12674 ;;
12675 ccc*)
12676 lt_prog_compiler_wl='-Wl,'
12677 # All Alpha code is PIC.
12678 lt_prog_compiler_static='-non_shared'
12679 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012680 xl* | bgxl* | bgf* | mpixl*)
12681 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012682 lt_prog_compiler_wl='-Wl,'
12683 lt_prog_compiler_pic='-qpic'
12684 lt_prog_compiler_static='-qstaticlink'
12685 ;;
12686 *)
12687 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012688 *Sun\ F* | *Sun*Fortran*)
12689 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12690 lt_prog_compiler_pic='-KPIC'
12691 lt_prog_compiler_static='-Bstatic'
12692 lt_prog_compiler_wl=''
12693 ;;
cristy3ed852e2009-09-05 21:47:34 +000012694 *Sun\ C*)
12695 # Sun C 5.9
12696 lt_prog_compiler_pic='-KPIC'
12697 lt_prog_compiler_static='-Bstatic'
12698 lt_prog_compiler_wl='-Wl,'
12699 ;;
cristy3ed852e2009-09-05 21:47:34 +000012700 esac
12701 ;;
12702 esac
12703 ;;
12704
12705 newsos6)
12706 lt_prog_compiler_pic='-KPIC'
12707 lt_prog_compiler_static='-Bstatic'
12708 ;;
12709
12710 *nto* | *qnx*)
12711 # QNX uses GNU C++, but need to define -shared option too, otherwise
12712 # it will coredump.
12713 lt_prog_compiler_pic='-fPIC -shared'
12714 ;;
12715
12716 osf3* | osf4* | osf5*)
12717 lt_prog_compiler_wl='-Wl,'
12718 # All OSF/1 code is PIC.
12719 lt_prog_compiler_static='-non_shared'
12720 ;;
12721
12722 rdos*)
12723 lt_prog_compiler_static='-non_shared'
12724 ;;
12725
12726 solaris*)
12727 lt_prog_compiler_pic='-KPIC'
12728 lt_prog_compiler_static='-Bstatic'
12729 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012730 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012731 lt_prog_compiler_wl='-Qoption ld ';;
12732 *)
12733 lt_prog_compiler_wl='-Wl,';;
12734 esac
12735 ;;
12736
12737 sunos4*)
12738 lt_prog_compiler_wl='-Qoption ld '
12739 lt_prog_compiler_pic='-PIC'
12740 lt_prog_compiler_static='-Bstatic'
12741 ;;
12742
12743 sysv4 | sysv4.2uw2* | sysv4.3*)
12744 lt_prog_compiler_wl='-Wl,'
12745 lt_prog_compiler_pic='-KPIC'
12746 lt_prog_compiler_static='-Bstatic'
12747 ;;
12748
12749 sysv4*MP*)
12750 if test -d /usr/nec ;then
12751 lt_prog_compiler_pic='-Kconform_pic'
12752 lt_prog_compiler_static='-Bstatic'
12753 fi
12754 ;;
12755
12756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_pic='-KPIC'
12759 lt_prog_compiler_static='-Bstatic'
12760 ;;
12761
12762 unicos*)
12763 lt_prog_compiler_wl='-Wl,'
12764 lt_prog_compiler_can_build_shared=no
12765 ;;
12766
12767 uts4*)
12768 lt_prog_compiler_pic='-pic'
12769 lt_prog_compiler_static='-Bstatic'
12770 ;;
12771
12772 *)
12773 lt_prog_compiler_can_build_shared=no
12774 ;;
12775 esac
12776 fi
12777
12778case $host_os in
12779 # For platforms which do not support PIC, -DPIC is meaningless:
12780 *djgpp*)
12781 lt_prog_compiler_pic=
12782 ;;
12783 *)
12784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12785 ;;
12786esac
cristy8b350f62009-11-15 23:12:43 +000012787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012788$as_echo "$lt_prog_compiler_pic" >&6; }
12789
12790
12791
12792
12793
12794
12795#
12796# Check to make sure the PIC flag actually works.
12797#
12798if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012800$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012801if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012802 $as_echo_n "(cached) " >&6
12803else
12804 lt_cv_prog_compiler_pic_works=no
12805 ac_outfile=conftest.$ac_objext
12806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12808 # Insert the option either (1) after the last *FLAGS variable, or
12809 # (2) before a word containing "conftest.", or (3) at the end.
12810 # Note that $ac_compile itself does not contain backslashes and begins
12811 # with a dollar sign (not a hyphen), so the echo should work correctly.
12812 # The option is referenced via a variable to avoid confusing sed.
12813 lt_compile=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012818 (eval "$lt_compile" 2>conftest.err)
12819 ac_status=$?
12820 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012822 if (exit $ac_status) && test -s "$ac_outfile"; then
12823 # The compiler can only warn and ignore the option if not recognized
12824 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12828 lt_cv_prog_compiler_pic_works=yes
12829 fi
12830 fi
12831 $RM conftest*
12832
12833fi
cristy8b350f62009-11-15 23:12:43 +000012834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012835$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12836
12837if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12838 case $lt_prog_compiler_pic in
12839 "" | " "*) ;;
12840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12841 esac
12842else
12843 lt_prog_compiler_pic=
12844 lt_prog_compiler_can_build_shared=no
12845fi
12846
12847fi
12848
12849
12850
12851
12852
12853
12854#
12855# Check to make sure the static flag actually works.
12856#
12857wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012859$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012860if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012861 $as_echo_n "(cached) " >&6
12862else
12863 lt_cv_prog_compiler_static_works=no
12864 save_LDFLAGS="$LDFLAGS"
12865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12868 # The linker can only warn and ignore the option if not recognized
12869 # So say no if there are warnings
12870 if test -s conftest.err; then
12871 # Append any errors to the config.log.
12872 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12875 if diff conftest.exp conftest.er2 >/dev/null; then
12876 lt_cv_prog_compiler_static_works=yes
12877 fi
12878 else
12879 lt_cv_prog_compiler_static_works=yes
12880 fi
12881 fi
12882 $RM -r conftest*
12883 LDFLAGS="$save_LDFLAGS"
12884
12885fi
cristy8b350f62009-11-15 23:12:43 +000012886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012887$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12888
12889if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12890 :
12891else
12892 lt_prog_compiler_static=
12893fi
12894
12895
12896
12897
12898
12899
12900
cristy8b350f62009-11-15 23:12:43 +000012901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012903if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012904 $as_echo_n "(cached) " >&6
12905else
12906 lt_cv_prog_compiler_c_o=no
12907 $RM -r conftest 2>/dev/null
12908 mkdir conftest
12909 cd conftest
12910 mkdir out
12911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912
12913 lt_compiler_flag="-o out/conftest2.$ac_objext"
12914 # Insert the option either (1) after the last *FLAGS variable, or
12915 # (2) before a word containing "conftest.", or (3) at the end.
12916 # Note that $ac_compile itself does not contain backslashes and begins
12917 # with a dollar sign (not a hyphen), so the echo should work correctly.
12918 lt_compile=`echo "$ac_compile" | $SED \
12919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12921 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012923 (eval "$lt_compile" 2>out/conftest.err)
12924 ac_status=$?
12925 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12928 then
12929 # The compiler can only warn and ignore the option if not recognized
12930 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12934 lt_cv_prog_compiler_c_o=yes
12935 fi
12936 fi
12937 chmod u+w . 2>&5
12938 $RM conftest*
12939 # SGI C++ compiler will create directory out/ii_files/ for
12940 # template instantiation
12941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12942 $RM out/* && rmdir out
12943 cd ..
12944 $RM -r conftest
12945 $RM conftest*
12946
12947fi
cristy8b350f62009-11-15 23:12:43 +000012948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012949$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12950
12951
12952
12953
12954
12955
cristy8b350f62009-11-15 23:12:43 +000012956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012958if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012959 $as_echo_n "(cached) " >&6
12960else
12961 lt_cv_prog_compiler_c_o=no
12962 $RM -r conftest 2>/dev/null
12963 mkdir conftest
12964 cd conftest
12965 mkdir out
12966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12967
12968 lt_compiler_flag="-o out/conftest2.$ac_objext"
12969 # Insert the option either (1) after the last *FLAGS variable, or
12970 # (2) before a word containing "conftest.", or (3) at the end.
12971 # Note that $ac_compile itself does not contain backslashes and begins
12972 # with a dollar sign (not a hyphen), so the echo should work correctly.
12973 lt_compile=`echo "$ac_compile" | $SED \
12974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12976 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012978 (eval "$lt_compile" 2>out/conftest.err)
12979 ac_status=$?
12980 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12983 then
12984 # The compiler can only warn and ignore the option if not recognized
12985 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12989 lt_cv_prog_compiler_c_o=yes
12990 fi
12991 fi
12992 chmod u+w . 2>&5
12993 $RM conftest*
12994 # SGI C++ compiler will create directory out/ii_files/ for
12995 # template instantiation
12996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12997 $RM out/* && rmdir out
12998 cd ..
12999 $RM -r conftest
13000 $RM conftest*
13001
13002fi
cristy8b350f62009-11-15 23:12:43 +000013003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13005
13006
13007
13008
13009hard_links="nottested"
13010if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13011 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013013$as_echo_n "checking if we can lock with hard links... " >&6; }
13014 hard_links=yes
13015 $RM conftest*
13016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13017 touch conftest.a
13018 ln conftest.a conftest.b 2>&5 || hard_links=no
13019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013021$as_echo "$hard_links" >&6; }
13022 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000013024$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13025 need_locks=warn
13026 fi
13027else
13028 need_locks=no
13029fi
13030
13031
13032
13033
13034
13035
cristy8b350f62009-11-15 23:12:43 +000013036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013037$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13038
13039 runpath_var=
13040 allow_undefined_flag=
13041 always_export_symbols=no
13042 archive_cmds=
13043 archive_expsym_cmds=
13044 compiler_needs_object=no
13045 enable_shared_with_static_runtimes=no
13046 export_dynamic_flag_spec=
13047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13048 hardcode_automatic=no
13049 hardcode_direct=no
13050 hardcode_direct_absolute=no
13051 hardcode_libdir_flag_spec=
13052 hardcode_libdir_flag_spec_ld=
13053 hardcode_libdir_separator=
13054 hardcode_minus_L=no
13055 hardcode_shlibpath_var=unsupported
13056 inherit_rpath=no
13057 link_all_deplibs=unknown
13058 module_cmds=
13059 module_expsym_cmds=
13060 old_archive_from_new_cmds=
13061 old_archive_from_expsyms_cmds=
13062 thread_safe_flag_spec=
13063 whole_archive_flag_spec=
13064 # include_expsyms should be a list of space-separated symbols to be *always*
13065 # included in the symbol list
13066 include_expsyms=
13067 # exclude_expsyms can be an extended regexp of symbols to exclude
13068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13070 # as well as any symbol that contains `d'.
13071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13073 # platforms (ab)use it in PIC code, but their linkers get confused if
13074 # the symbol is explicitly referenced. Since portable code cannot
13075 # rely on this symbol name, it's probably fine to never include it in
13076 # preloaded symbol tables.
13077 # Exclude shared library initialization/finalization symbols.
13078 extract_expsyms_cmds=
13079
13080 case $host_os in
13081 cygwin* | mingw* | pw32* | cegcc*)
13082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13083 # When not using gcc, we currently assume that we are using
13084 # Microsoft Visual C++.
13085 if test "$GCC" != yes; then
13086 with_gnu_ld=no
13087 fi
13088 ;;
13089 interix*)
13090 # we just hope/assume this is gcc and not c89 (= MSVC++)
13091 with_gnu_ld=yes
13092 ;;
13093 openbsd*)
13094 with_gnu_ld=no
13095 ;;
13096 esac
13097
13098 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013099
13100 # On some targets, GNU ld is compatible enough with the native linker
13101 # that we're better off using the native interface for both.
13102 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013103 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013104 case $host_os in
13105 aix*)
13106 # The AIX port of GNU ld has always aspired to compatibility
13107 # with the native linker. However, as the warning in the GNU ld
13108 # block says, versions before 2.19.5* couldn't really create working
13109 # shared libraries, regardless of the interface used.
13110 case `$LD -v 2>&1` in
13111 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13112 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13113 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13114 *)
13115 lt_use_gnu_ld_interface=yes
13116 ;;
13117 esac
13118 ;;
13119 *)
13120 lt_use_gnu_ld_interface=yes
13121 ;;
13122 esac
13123 fi
13124
13125 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013126 # If archive_cmds runs LD, not CC, wlarc should be empty
13127 wlarc='${wl}'
13128
13129 # Set some defaults for GNU ld with shared library support. These
13130 # are reset later if shared libraries are not supported. Putting them
13131 # here allows them to be overridden if necessary.
13132 runpath_var=LD_RUN_PATH
13133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13134 export_dynamic_flag_spec='${wl}--export-dynamic'
13135 # ancient GNU ld didn't support --whole-archive et. al.
13136 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13138 else
13139 whole_archive_flag_spec=
13140 fi
13141 supports_anon_versioning=no
13142 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013143 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13147 *\ 2.11.*) ;; # other 2.11 versions
13148 *) supports_anon_versioning=yes ;;
13149 esac
13150
13151 # See if GNU ld supports shared libraries.
13152 case $host_os in
13153 aix[3-9]*)
13154 # On AIX/PPC, the GNU linker is very broken
13155 if test "$host_cpu" != ia64; then
13156 ld_shlibs=no
13157 cat <<_LT_EOF 1>&2
13158
cristyfd9dcd42010-08-08 18:07:02 +000013159*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013160*** to be unable to reliably create shared libraries on AIX.
13161*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013162*** really care for shared libraries, you may want to install binutils
13163*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13164*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013165
13166_LT_EOF
13167 fi
13168 ;;
13169
13170 amigaos*)
13171 case $host_cpu in
13172 powerpc)
13173 # see comment about AmigaOS4 .so support
13174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13175 archive_expsym_cmds=''
13176 ;;
13177 m68k)
13178 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)'
13179 hardcode_libdir_flag_spec='-L$libdir'
13180 hardcode_minus_L=yes
13181 ;;
13182 esac
13183 ;;
13184
13185 beos*)
13186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13187 allow_undefined_flag=unsupported
13188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13189 # support --undefined. This deserves some investigation. FIXME
13190 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 else
13192 ld_shlibs=no
13193 fi
13194 ;;
13195
13196 cygwin* | mingw* | pw32* | cegcc*)
13197 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13198 # as there is no search path for DLLs.
13199 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013200 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013201 allow_undefined_flag=unsupported
13202 always_export_symbols=no
13203 enable_shared_with_static_runtimes=yes
13204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13205
13206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13208 # If the export-symbols file already is a .def file (1st line
13209 # is EXPORTS), use it as is; otherwise, prepend...
13210 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13211 cp $export_symbols $output_objdir/$soname.def;
13212 else
13213 echo EXPORTS > $output_objdir/$soname.def;
13214 cat $export_symbols >> $output_objdir/$soname.def;
13215 fi~
13216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13217 else
13218 ld_shlibs=no
13219 fi
13220 ;;
13221
cristyfd9dcd42010-08-08 18:07:02 +000013222 haiku*)
13223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224 link_all_deplibs=yes
13225 ;;
13226
cristy3ed852e2009-09-05 21:47:34 +000013227 interix[3-9]*)
13228 hardcode_direct=no
13229 hardcode_shlibpath_var=no
13230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13231 export_dynamic_flag_spec='${wl}-E'
13232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13233 # Instead, shared libraries are loaded at an image base (0x10000000 by
13234 # default) and relocated if they conflict, which is a slow very memory
13235 # consuming and fragmenting process. To avoid this, we pick a random,
13236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13237 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13239 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'
13240 ;;
13241
cristyfd9dcd42010-08-08 18:07:02 +000013242 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013243 tmp_diet=no
13244 if test "$host_os" = linux-dietlibc; then
13245 case $cc_basename in
13246 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13247 esac
13248 fi
13249 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13250 && test "$tmp_diet" = no
13251 then
13252 tmp_addflag=
13253 tmp_sharedflag='-shared'
13254 case $cc_basename,$host_cpu in
13255 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013256 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'
cristy3ed852e2009-09-05 21:47:34 +000013257 tmp_addflag=' $pic_flag'
13258 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013259 pgf77* | pgf90* | pgf95* | pgfortran*)
13260 # Portland Group f77 and f90 compilers
13261 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'
cristy3ed852e2009-09-05 21:47:34 +000013262 tmp_addflag=' $pic_flag -Mnomain' ;;
13263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13264 tmp_addflag=' -i_dynamic' ;;
13265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13266 tmp_addflag=' -i_dynamic -nofor_main' ;;
13267 ifc* | ifort*) # Intel Fortran compiler
13268 tmp_addflag=' -nofor_main' ;;
13269 lf95*) # Lahey Fortran 8.1
13270 whole_archive_flag_spec=
13271 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013272 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013273 tmp_sharedflag='-qmkshrobj'
13274 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013275 nvcc*) # Cuda Compiler Driver 2.2
13276 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'
13277 compiler_needs_object=yes
13278 ;;
cristy3ed852e2009-09-05 21:47:34 +000013279 esac
13280 case `$CC -V 2>&1 | sed 5q` in
13281 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013282 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'
cristy3ed852e2009-09-05 21:47:34 +000013283 compiler_needs_object=yes
13284 tmp_sharedflag='-G' ;;
13285 *Sun\ F*) # Sun Fortran 8.3
13286 tmp_sharedflag='-G' ;;
13287 esac
13288 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289
13290 if test "x$supports_anon_versioning" = xyes; then
13291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13293 echo "local: *; };" >> $output_objdir/$libname.ver~
13294 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13295 fi
13296
13297 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013298 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013299 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13300 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13301 hardcode_libdir_flag_spec=
13302 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013303 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013304 if test "x$supports_anon_versioning" = xyes; then
13305 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13307 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013308 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013309 fi
13310 ;;
13311 esac
13312 else
13313 ld_shlibs=no
13314 fi
13315 ;;
13316
13317 netbsd*)
13318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13320 wlarc=
13321 else
13322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13324 fi
13325 ;;
13326
13327 solaris*)
13328 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13329 ld_shlibs=no
13330 cat <<_LT_EOF 1>&2
13331
13332*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13333*** create shared libraries on Solaris systems. Therefore, libtool
13334*** is disabling shared libraries support. We urge you to upgrade GNU
13335*** binutils to release 2.9.1 or newer. Another option is to modify
13336*** your PATH or compiler configuration so that the native linker is
13337*** used, and then restart.
13338
13339_LT_EOF
13340 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13343 else
13344 ld_shlibs=no
13345 fi
13346 ;;
13347
13348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13349 case `$LD -v 2>&1` in
13350 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13351 ld_shlibs=no
13352 cat <<_LT_EOF 1>&2
13353
13354*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13355*** reliably create shared libraries on SCO systems. Therefore, libtool
13356*** is disabling shared libraries support. We urge you to upgrade GNU
13357*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13358*** your PATH or compiler configuration so that the native linker is
13359*** used, and then restart.
13360
13361_LT_EOF
13362 ;;
13363 *)
13364 # For security reasons, it is highly recommended that you always
13365 # use absolute paths for naming shared libraries, and exclude the
13366 # DT_RUNPATH tag from executables and libraries. But doing so
13367 # requires that you compile everything twice, which is a pain.
13368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13372 else
13373 ld_shlibs=no
13374 fi
13375 ;;
13376 esac
13377 ;;
13378
13379 sunos4*)
13380 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13381 wlarc=
13382 hardcode_direct=yes
13383 hardcode_shlibpath_var=no
13384 ;;
13385
13386 *)
13387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390 else
13391 ld_shlibs=no
13392 fi
13393 ;;
13394 esac
13395
13396 if test "$ld_shlibs" = no; then
13397 runpath_var=
13398 hardcode_libdir_flag_spec=
13399 export_dynamic_flag_spec=
13400 whole_archive_flag_spec=
13401 fi
13402 else
13403 # PORTME fill in a description of your system's linker (not GNU ld)
13404 case $host_os in
13405 aix3*)
13406 allow_undefined_flag=unsupported
13407 always_export_symbols=yes
13408 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'
13409 # Note: this linker hardcodes the directories in LIBPATH if there
13410 # are no directories specified by -L.
13411 hardcode_minus_L=yes
13412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13413 # Neither direct hardcoding nor static linking is supported with a
13414 # broken collect2.
13415 hardcode_direct=unsupported
13416 fi
13417 ;;
13418
13419 aix[4-9]*)
13420 if test "$host_cpu" = ia64; then
13421 # On IA64, the linker does run time linking by default, so we don't
13422 # have to do anything special.
13423 aix_use_runtimelinking=no
13424 exp_sym_flag='-Bexport'
13425 no_entry_flag=""
13426 else
13427 # If we're using GNU nm, then we don't want the "-C" option.
13428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013429 # Also, AIX nm treats weak defined symbols like other global
13430 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013432 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'
cristy3ed852e2009-09-05 21:47:34 +000013433 else
13434 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'
13435 fi
13436 aix_use_runtimelinking=no
13437
13438 # Test if we are trying to use run time linking or normal
13439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13440 # need to do runtime linking.
13441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13442 for ld_flag in $LDFLAGS; do
13443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13444 aix_use_runtimelinking=yes
13445 break
13446 fi
13447 done
13448 ;;
13449 esac
13450
13451 exp_sym_flag='-bexport'
13452 no_entry_flag='-bnoentry'
13453 fi
13454
13455 # When large executables or shared objects are built, AIX ld can
13456 # have problems creating the table of contents. If linking a library
13457 # or program results in "error TOC overflow" add -mminimal-toc to
13458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13460
13461 archive_cmds=''
13462 hardcode_direct=yes
13463 hardcode_direct_absolute=yes
13464 hardcode_libdir_separator=':'
13465 link_all_deplibs=yes
13466 file_list_spec='${wl}-f,'
13467
13468 if test "$GCC" = yes; then
13469 case $host_os in aix4.[012]|aix4.[012].*)
13470 # We only want to do this on AIX 4.2 and lower, the check
13471 # below for broken collect2 doesn't work under 4.3+
13472 collect2name=`${CC} -print-prog-name=collect2`
13473 if test -f "$collect2name" &&
13474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13475 then
13476 # We have reworked collect2
13477 :
13478 else
13479 # We have old collect2
13480 hardcode_direct=unsupported
13481 # It fails to find uninstalled libraries when the uninstalled
13482 # path is not listed in the libpath. Setting hardcode_minus_L
13483 # to unsupported forces relinking
13484 hardcode_minus_L=yes
13485 hardcode_libdir_flag_spec='-L$libdir'
13486 hardcode_libdir_separator=
13487 fi
13488 ;;
13489 esac
13490 shared_flag='-shared'
13491 if test "$aix_use_runtimelinking" = yes; then
13492 shared_flag="$shared_flag "'${wl}-G'
13493 fi
13494 else
13495 # not using gcc
13496 if test "$host_cpu" = ia64; then
13497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13498 # chokes on -Wl,-G. The following line is correct:
13499 shared_flag='-G'
13500 else
13501 if test "$aix_use_runtimelinking" = yes; then
13502 shared_flag='${wl}-G'
13503 else
13504 shared_flag='${wl}-bM:SRE'
13505 fi
13506 fi
13507 fi
13508
13509 export_dynamic_flag_spec='${wl}-bexpall'
13510 # It seems that -bexpall does not export symbols beginning with
13511 # underscore (_), so it is better to generate a list of symbols to export.
13512 always_export_symbols=yes
13513 if test "$aix_use_runtimelinking" = yes; then
13514 # Warning - without using the other runtime loading flags (-brtl),
13515 # -berok will link without error, but may produce a broken library.
13516 allow_undefined_flag='-berok'
13517 # Determine the default libpath from the value encoded in an
13518 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013520/* end confdefs.h. */
13521
13522int
13523main ()
13524{
13525
13526 ;
13527 return 0;
13528}
13529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013531
13532lt_aix_libpath_sed='
13533 /Import File Strings/,/^$/ {
13534 /^0/ {
13535 s/^0 *\(.*\)$/\1/
13536 p
13537 }
13538 }'
13539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13540# Check for a 64-bit object if we didn't find anything.
13541if test -z "$aix_libpath"; then
13542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543fi
cristy3ed852e2009-09-05 21:47:34 +000013544fi
cristy8b350f62009-11-15 23:12:43 +000013545rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13548
13549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013550 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"
cristy3ed852e2009-09-05 21:47:34 +000013551 else
13552 if test "$host_cpu" = ia64; then
13553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13554 allow_undefined_flag="-z nodefs"
13555 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"
13556 else
13557 # Determine the default libpath from the value encoded in an
13558 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013560/* end confdefs.h. */
13561
13562int
13563main ()
13564{
13565
13566 ;
13567 return 0;
13568}
13569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013571
13572lt_aix_libpath_sed='
13573 /Import File Strings/,/^$/ {
13574 /^0/ {
13575 s/^0 *\(.*\)$/\1/
13576 p
13577 }
13578 }'
13579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13580# Check for a 64-bit object if we didn't find anything.
13581if test -z "$aix_libpath"; then
13582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583fi
cristy3ed852e2009-09-05 21:47:34 +000013584fi
cristy8b350f62009-11-15 23:12:43 +000013585rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13588
13589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13590 # Warning - without using the other run time loading flags,
13591 # -berok will link without error, but may produce a broken library.
13592 no_undefined_flag=' ${wl}-bernotok'
13593 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013594 if test "$with_gnu_ld" = yes; then
13595 # We only use this code for GNU lds that support --whole-archive.
13596 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13597 else
13598 # Exported symbols can be pulled into shared objects from archives
13599 whole_archive_flag_spec='$convenience'
13600 fi
cristy3ed852e2009-09-05 21:47:34 +000013601 archive_cmds_need_lc=yes
13602 # This is similar to how AIX traditionally builds its shared libraries.
13603 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'
13604 fi
13605 fi
13606 ;;
13607
13608 amigaos*)
13609 case $host_cpu in
13610 powerpc)
13611 # see comment about AmigaOS4 .so support
13612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613 archive_expsym_cmds=''
13614 ;;
13615 m68k)
13616 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)'
13617 hardcode_libdir_flag_spec='-L$libdir'
13618 hardcode_minus_L=yes
13619 ;;
13620 esac
13621 ;;
13622
13623 bsdi[45]*)
13624 export_dynamic_flag_spec=-rdynamic
13625 ;;
13626
13627 cygwin* | mingw* | pw32* | cegcc*)
13628 # When not using gcc, we currently assume that we are using
13629 # Microsoft Visual C++.
13630 # hardcode_libdir_flag_spec is actually meaningless, as there is
13631 # no search path for DLLs.
13632 hardcode_libdir_flag_spec=' '
13633 allow_undefined_flag=unsupported
13634 # Tell ltmain to make .lib files, not .a files.
13635 libext=lib
13636 # Tell ltmain to make .dll files, not .so files.
13637 shrext_cmds=".dll"
13638 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013640 # The linker will automatically build a .lib file if we build a DLL.
13641 old_archive_from_new_cmds='true'
13642 # FIXME: Should let the user specify the lib program.
13643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13644 fix_srcfile_path='`cygpath -w "$srcfile"`'
13645 enable_shared_with_static_runtimes=yes
13646 ;;
13647
13648 darwin* | rhapsody*)
13649
13650
13651 archive_cmds_need_lc=no
13652 hardcode_direct=no
13653 hardcode_automatic=yes
13654 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013655 if test "$lt_cv_ld_force_load" = "yes"; then
13656 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\"`'
13657 else
13658 whole_archive_flag_spec=''
13659 fi
cristy3ed852e2009-09-05 21:47:34 +000013660 link_all_deplibs=yes
13661 allow_undefined_flag="$_lt_dar_allow_undefined"
13662 case $cc_basename in
13663 ifort*) _lt_dar_can_shared=yes ;;
13664 *) _lt_dar_can_shared=$GCC ;;
13665 esac
13666 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013667 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13670 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}"
13671 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}"
13672
13673 else
13674 ld_shlibs=no
13675 fi
13676
13677 ;;
13678
13679 dgux*)
13680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13681 hardcode_libdir_flag_spec='-L$libdir'
13682 hardcode_shlibpath_var=no
13683 ;;
13684
13685 freebsd1*)
13686 ld_shlibs=no
13687 ;;
13688
13689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13690 # support. Future versions do this automatically, but an explicit c++rt0.o
13691 # does not break anything, and helps significantly (at the cost of a little
13692 # extra space).
13693 freebsd2.2*)
13694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13695 hardcode_libdir_flag_spec='-R$libdir'
13696 hardcode_direct=yes
13697 hardcode_shlibpath_var=no
13698 ;;
13699
13700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13701 freebsd2*)
13702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13703 hardcode_direct=yes
13704 hardcode_minus_L=yes
13705 hardcode_shlibpath_var=no
13706 ;;
13707
13708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13709 freebsd* | dragonfly*)
13710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13711 hardcode_libdir_flag_spec='-R$libdir'
13712 hardcode_direct=yes
13713 hardcode_shlibpath_var=no
13714 ;;
13715
13716 hpux9*)
13717 if test "$GCC" = yes; then
13718 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13719 else
13720 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'
13721 fi
13722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13723 hardcode_libdir_separator=:
13724 hardcode_direct=yes
13725
13726 # hardcode_minus_L: Not really in the search PATH,
13727 # but as the default location of the library.
13728 hardcode_minus_L=yes
13729 export_dynamic_flag_spec='${wl}-E'
13730 ;;
13731
13732 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13735 else
13736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13737 fi
13738 if test "$with_gnu_ld" = no; then
13739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13740 hardcode_libdir_flag_spec_ld='+b $libdir'
13741 hardcode_libdir_separator=:
13742 hardcode_direct=yes
13743 hardcode_direct_absolute=yes
13744 export_dynamic_flag_spec='${wl}-E'
13745 # hardcode_minus_L: Not really in the search PATH,
13746 # but as the default location of the library.
13747 hardcode_minus_L=yes
13748 fi
13749 ;;
13750
13751 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013753 case $host_cpu in
13754 hppa*64*)
13755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 ;;
13757 ia64*)
13758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13759 ;;
13760 *)
13761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 esac
13764 else
13765 case $host_cpu in
13766 hppa*64*)
13767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 ;;
13769 ia64*)
13770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13771 ;;
13772 *)
cristyfd9dcd42010-08-08 18:07:02 +000013773
13774 # Older versions of the 11.00 compiler do not understand -b yet
13775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13777$as_echo_n "checking if $CC understands -b... " >&6; }
13778if test "${lt_cv_prog_compiler__b+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780else
13781 lt_cv_prog_compiler__b=no
13782 save_LDFLAGS="$LDFLAGS"
13783 LDFLAGS="$LDFLAGS -b"
13784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13786 # The linker can only warn and ignore the option if not recognized
13787 # So say no if there are warnings
13788 if test -s conftest.err; then
13789 # Append any errors to the config.log.
13790 cat conftest.err 1>&5
13791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13793 if diff conftest.exp conftest.er2 >/dev/null; then
13794 lt_cv_prog_compiler__b=yes
13795 fi
13796 else
13797 lt_cv_prog_compiler__b=yes
13798 fi
13799 fi
13800 $RM -r conftest*
13801 LDFLAGS="$save_LDFLAGS"
13802
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13805$as_echo "$lt_cv_prog_compiler__b" >&6; }
13806
13807if test x"$lt_cv_prog_compiler__b" = xyes; then
13808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13809else
13810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13811fi
13812
cristy3ed852e2009-09-05 21:47:34 +000013813 ;;
13814 esac
13815 fi
13816 if test "$with_gnu_ld" = no; then
13817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13818 hardcode_libdir_separator=:
13819
13820 case $host_cpu in
13821 hppa*64*|ia64*)
13822 hardcode_direct=no
13823 hardcode_shlibpath_var=no
13824 ;;
13825 *)
13826 hardcode_direct=yes
13827 hardcode_direct_absolute=yes
13828 export_dynamic_flag_spec='${wl}-E'
13829
13830 # hardcode_minus_L: Not really in the search PATH,
13831 # but as the default location of the library.
13832 hardcode_minus_L=yes
13833 ;;
13834 esac
13835 fi
13836 ;;
13837
13838 irix5* | irix6* | nonstopux*)
13839 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013840 archive_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000013841 # Try to use the -exported_symbol ld option, if it does not
13842 # work, assume that -exports_file does not work either and
13843 # implicitly export all symbols.
13844 save_LDFLAGS="$LDFLAGS"
13845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013848int foo(void) {}
13849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013850if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013851 archive_expsym_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000013852
cristy3ed852e2009-09-05 21:47:34 +000013853fi
cristy8b350f62009-11-15 23:12:43 +000013854rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013856 LDFLAGS="$save_LDFLAGS"
13857 else
cristyfd9dcd42010-08-08 18:07:02 +000013858 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'
13859 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'
cristy3ed852e2009-09-05 21:47:34 +000013860 fi
13861 archive_cmds_need_lc='no'
13862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13863 hardcode_libdir_separator=:
13864 inherit_rpath=yes
13865 link_all_deplibs=yes
13866 ;;
13867
13868 netbsd*)
13869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13871 else
13872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13873 fi
13874 hardcode_libdir_flag_spec='-R$libdir'
13875 hardcode_direct=yes
13876 hardcode_shlibpath_var=no
13877 ;;
13878
13879 newsos6)
13880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_direct=yes
13882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13883 hardcode_libdir_separator=:
13884 hardcode_shlibpath_var=no
13885 ;;
13886
13887 *nto* | *qnx*)
13888 ;;
13889
13890 openbsd*)
13891 if test -f /usr/libexec/ld.so; then
13892 hardcode_direct=yes
13893 hardcode_shlibpath_var=no
13894 hardcode_direct_absolute=yes
13895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13897 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13899 export_dynamic_flag_spec='${wl}-E'
13900 else
13901 case $host_os in
13902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13904 hardcode_libdir_flag_spec='-R$libdir'
13905 ;;
13906 *)
13907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13909 ;;
13910 esac
13911 fi
13912 else
13913 ld_shlibs=no
13914 fi
13915 ;;
13916
13917 os2*)
13918 hardcode_libdir_flag_spec='-L$libdir'
13919 hardcode_minus_L=yes
13920 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013921 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'
cristy3ed852e2009-09-05 21:47:34 +000013922 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13923 ;;
13924
13925 osf3*)
13926 if test "$GCC" = yes; then
13927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013928 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'
cristy3ed852e2009-09-05 21:47:34 +000013929 else
13930 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013931 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'
cristy3ed852e2009-09-05 21:47:34 +000013932 fi
13933 archive_cmds_need_lc='no'
13934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13935 hardcode_libdir_separator=:
13936 ;;
13937
13938 osf4* | osf5*) # as osf3* with the addition of -msym flag
13939 if test "$GCC" = yes; then
13940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013941 archive_cmds='$CC -shared${allow_undefined_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'
cristy3ed852e2009-09-05 21:47:34 +000013942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13943 else
13944 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013945 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'
cristy3ed852e2009-09-05 21:47:34 +000013946 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~
cristyfd9dcd42010-08-08 18:07:02 +000013947 $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'
cristy3ed852e2009-09-05 21:47:34 +000013948
13949 # Both c and cxx compiler support -rpath directly
13950 hardcode_libdir_flag_spec='-rpath $libdir'
13951 fi
13952 archive_cmds_need_lc='no'
13953 hardcode_libdir_separator=:
13954 ;;
13955
13956 solaris*)
13957 no_undefined_flag=' -z defs'
13958 if test "$GCC" = yes; then
13959 wlarc='${wl}'
13960 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13962 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13963 else
13964 case `$CC -V 2>&1` in
13965 *"Compilers 5.0"*)
13966 wlarc=''
13967 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13968 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13970 ;;
13971 *)
13972 wlarc='${wl}'
13973 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13975 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13976 ;;
13977 esac
13978 fi
13979 hardcode_libdir_flag_spec='-R$libdir'
13980 hardcode_shlibpath_var=no
13981 case $host_os in
13982 solaris2.[0-5] | solaris2.[0-5].*) ;;
13983 *)
13984 # The compiler driver will combine and reorder linker options,
13985 # but understands `-z linker_flag'. GCC discards it without `$wl',
13986 # but is careful enough not to reorder.
13987 # Supported since Solaris 2.6 (maybe 2.5.1?)
13988 if test "$GCC" = yes; then
13989 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13990 else
13991 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13992 fi
13993 ;;
13994 esac
13995 link_all_deplibs=yes
13996 ;;
13997
13998 sunos4*)
13999 if test "x$host_vendor" = xsequent; then
14000 # Use $CC to link under sequent, because it throws in some extra .o
14001 # files that make .init and .fini sections work.
14002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14003 else
14004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14005 fi
14006 hardcode_libdir_flag_spec='-L$libdir'
14007 hardcode_direct=yes
14008 hardcode_minus_L=yes
14009 hardcode_shlibpath_var=no
14010 ;;
14011
14012 sysv4)
14013 case $host_vendor in
14014 sni)
14015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_direct=yes # is this really true???
14017 ;;
14018 siemens)
14019 ## LD is ld it makes a PLAMLIB
14020 ## CC just makes a GrossModule.
14021 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14022 reload_cmds='$CC -r -o $output$reload_objs'
14023 hardcode_direct=no
14024 ;;
14025 motorola)
14026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14027 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14028 ;;
14029 esac
14030 runpath_var='LD_RUN_PATH'
14031 hardcode_shlibpath_var=no
14032 ;;
14033
14034 sysv4.3*)
14035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14036 hardcode_shlibpath_var=no
14037 export_dynamic_flag_spec='-Bexport'
14038 ;;
14039
14040 sysv4*MP*)
14041 if test -d /usr/nec; then
14042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14043 hardcode_shlibpath_var=no
14044 runpath_var=LD_RUN_PATH
14045 hardcode_runpath_var=yes
14046 ld_shlibs=yes
14047 fi
14048 ;;
14049
14050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14051 no_undefined_flag='${wl}-z,text'
14052 archive_cmds_need_lc=no
14053 hardcode_shlibpath_var=no
14054 runpath_var='LD_RUN_PATH'
14055
14056 if test "$GCC" = yes; then
14057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14059 else
14060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 fi
14063 ;;
14064
14065 sysv5* | sco3.2v5* | sco5v6*)
14066 # Note: We can NOT use -z defs as we might desire, because we do not
14067 # link with -lc, and that would cause any symbols used from libc to
14068 # always be unresolved, which means just about no library would
14069 # ever link correctly. If we're not using GNU ld we use -z text
14070 # though, which does catch some bad symbols but isn't as heavy-handed
14071 # as -z defs.
14072 no_undefined_flag='${wl}-z,text'
14073 allow_undefined_flag='${wl}-z,nodefs'
14074 archive_cmds_need_lc=no
14075 hardcode_shlibpath_var=no
14076 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14077 hardcode_libdir_separator=':'
14078 link_all_deplibs=yes
14079 export_dynamic_flag_spec='${wl}-Bexport'
14080 runpath_var='LD_RUN_PATH'
14081
14082 if test "$GCC" = yes; then
14083 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 else
14086 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 fi
14089 ;;
14090
14091 uts4*)
14092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_libdir_flag_spec='-L$libdir'
14094 hardcode_shlibpath_var=no
14095 ;;
14096
14097 *)
14098 ld_shlibs=no
14099 ;;
14100 esac
14101
14102 if test x$host_vendor = xsni; then
14103 case $host in
14104 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14105 export_dynamic_flag_spec='${wl}-Blargedynsym'
14106 ;;
14107 esac
14108 fi
14109 fi
14110
cristy8b350f62009-11-15 23:12:43 +000014111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014112$as_echo "$ld_shlibs" >&6; }
14113test "$ld_shlibs" = no && can_build_shared=no
14114
14115with_gnu_ld=$with_gnu_ld
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131#
14132# Do we need to explicitly link libc?
14133#
14134case "x$archive_cmds_need_lc" in
14135x|xyes)
14136 # Assume -lc should be added
14137 archive_cmds_need_lc=yes
14138
14139 if test "$enable_shared" = yes && test "$GCC" = yes; then
14140 case $archive_cmds in
14141 *'~'*)
14142 # FIXME: we may have to deal with multi-command sequences.
14143 ;;
14144 '$CC '*)
14145 # Test whether the compiler implicitly links with -lc since on some
14146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14147 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014149$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014150if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
14152else
14153 $RM conftest*
14154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014155
cristyfd9dcd42010-08-08 18:07:02 +000014156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014157 (eval $ac_compile) 2>&5
14158 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014161 soname=conftest
14162 lib=conftest
14163 libobjs=conftest.$ac_objext
14164 deplibs=
14165 wl=$lt_prog_compiler_wl
14166 pic_flag=$lt_prog_compiler_pic
14167 compiler_flags=-v
14168 linker_flags=-v
14169 verstring=
14170 output_objdir=.
14171 libname=conftest
14172 lt_save_allow_undefined_flag=$allow_undefined_flag
14173 allow_undefined_flag=
14174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014175 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14176 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014179 then
14180 lt_cv_archive_cmds_need_lc=no
14181 else
14182 lt_cv_archive_cmds_need_lc=yes
14183 fi
14184 allow_undefined_flag=$lt_save_allow_undefined_flag
14185 else
14186 cat conftest.err 1>&5
14187 fi
14188 $RM conftest*
14189
14190fi
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14192$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14193 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014194 ;;
14195 esac
14196 fi
14197 ;;
14198esac
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
cristy8b350f62009-11-15 23:12:43 +000014356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014357$as_echo_n "checking dynamic linker characteristics... " >&6; }
14358
14359if test "$GCC" = yes; then
14360 case $host_os in
14361 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14362 *) lt_awk_arg="/^libraries:/" ;;
14363 esac
cristyfd9dcd42010-08-08 18:07:02 +000014364 case $host_os in
14365 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14366 *) lt_sed_strip_eq="s,=/,/,g" ;;
14367 esac
14368 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14369 case $lt_search_path_spec in
14370 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014371 # if the path contains ";" then we assume it to be the separator
14372 # otherwise default to the standard path separator (i.e. ":") - it is
14373 # assumed that no part of a normal pathname contains ";" but that should
14374 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14376 ;;
14377 *)
14378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14379 ;;
14380 esac
cristy3ed852e2009-09-05 21:47:34 +000014381 # Ok, now we have the path, separated by spaces, we can step through it
14382 # and add multilib dir if necessary.
14383 lt_tmp_lt_search_path_spec=
14384 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14385 for lt_sys_path in $lt_search_path_spec; do
14386 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14388 else
14389 test -d "$lt_sys_path" && \
14390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14391 fi
14392 done
cristyfd9dcd42010-08-08 18:07:02 +000014393 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014394BEGIN {RS=" "; FS="/|\n";} {
14395 lt_foo="";
14396 lt_count=0;
14397 for (lt_i = NF; lt_i > 0; lt_i--) {
14398 if ($lt_i != "" && $lt_i != ".") {
14399 if ($lt_i == "..") {
14400 lt_count++;
14401 } else {
14402 if (lt_count == 0) {
14403 lt_foo="/" $lt_i lt_foo;
14404 } else {
14405 lt_count--;
14406 }
14407 }
14408 }
14409 }
14410 if (lt_foo != "") { lt_freq[lt_foo]++; }
14411 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14412}'`
cristyfd9dcd42010-08-08 18:07:02 +000014413 # AWK program above erroneously prepends '/' to C:/dos/paths
14414 # for these hosts.
14415 case $host_os in
14416 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14417 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14418 esac
14419 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014420else
14421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14422fi
14423library_names_spec=
14424libname_spec='lib$name'
14425soname_spec=
14426shrext_cmds=".so"
14427postinstall_cmds=
14428postuninstall_cmds=
14429finish_cmds=
14430finish_eval=
14431shlibpath_var=
14432shlibpath_overrides_runpath=unknown
14433version_type=none
14434dynamic_linker="$host_os ld.so"
14435sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436need_lib_prefix=unknown
14437hardcode_into_libs=no
14438
14439# when you set need_version to no, make sure it does not cause -set_version
14440# flags to be left without arguments
14441need_version=unknown
14442
14443case $host_os in
14444aix3*)
14445 version_type=linux
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14447 shlibpath_var=LIBPATH
14448
14449 # AIX 3 has no versioning support, so we append a major version to the name.
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 ;;
14452
14453aix[4-9]*)
14454 version_type=linux
14455 need_lib_prefix=no
14456 need_version=no
14457 hardcode_into_libs=yes
14458 if test "$host_cpu" = ia64; then
14459 # AIX 5 supports IA64
14460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 else
14463 # With GCC up to 2.95.x, collect2 would create an import file
14464 # for dependence libraries. The import file would start with
14465 # the line `#! .'. This would cause the generated library to
14466 # depend on `.', always an invalid library. This was fixed in
14467 # development snapshots of GCC prior to 3.0.
14468 case $host_os in
14469 aix4 | aix4.[01] | aix4.[01].*)
14470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14471 echo ' yes '
14472 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14473 :
14474 else
14475 can_build_shared=no
14476 fi
14477 ;;
14478 esac
14479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14480 # soname into executable. Probably we can add versioning support to
14481 # collect2, so additional links can be useful in future.
14482 if test "$aix_use_runtimelinking" = yes; then
14483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14484 # instead of lib<name>.a to let people know that these are not
14485 # typical AIX shared libraries.
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 else
14488 # We preserve .a as extension for shared libraries through AIX4.2
14489 # and later when we are not doing run time linking.
14490 library_names_spec='${libname}${release}.a $libname.a'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 fi
14493 shlibpath_var=LIBPATH
14494 fi
14495 ;;
14496
14497amigaos*)
14498 case $host_cpu in
14499 powerpc)
14500 # Since July 2007 AmigaOS4 officially supports .so libraries.
14501 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 ;;
14504 m68k)
14505 library_names_spec='$libname.ixlibrary $libname.a'
14506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014507 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'
cristy3ed852e2009-09-05 21:47:34 +000014508 ;;
14509 esac
14510 ;;
14511
14512beos*)
14513 library_names_spec='${libname}${shared_ext}'
14514 dynamic_linker="$host_os ld.so"
14515 shlibpath_var=LIBRARY_PATH
14516 ;;
14517
14518bsdi[45]*)
14519 version_type=linux
14520 need_version=no
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14527 # the default ld.so.conf also contains /usr/contrib/lib and
14528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14529 # libtool to hard-code these into programs
14530 ;;
14531
14532cygwin* | mingw* | pw32* | cegcc*)
14533 version_type=windows
14534 shrext_cmds=".dll"
14535 need_version=no
14536 need_lib_prefix=no
14537
14538 case $GCC,$host_os in
14539 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14540 library_names_spec='$libname.dll.a'
14541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14542 postinstall_cmds='base_file=`basename \${file}`~
14543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14544 dldir=$destdir/`dirname \$dlpath`~
14545 test -d \$dldir || mkdir -p \$dldir~
14546 $install_prog $dir/$dlname \$dldir/$dlname~
14547 chmod a+x \$dldir/$dlname~
14548 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14549 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14550 fi'
14551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14552 dlpath=$dir/\$dldll~
14553 $RM \$dlpath'
14554 shlibpath_overrides_runpath=yes
14555
14556 case $host_os in
14557 cygwin*)
14558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014560
14561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014562 ;;
14563 mingw* | cegcc*)
14564 # MinGW DLLs use traditional 'lib' prefix
14565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014566 ;;
14567 pw32*)
14568 # pw32 DLLs use 'pw' prefix rather than 'lib'
14569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14570 ;;
14571 esac
14572 ;;
14573
14574 *)
14575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14576 ;;
14577 esac
14578 dynamic_linker='Win32 ld.exe'
14579 # FIXME: first we should search . and the directory the executable is in
14580 shlibpath_var=PATH
14581 ;;
14582
14583darwin* | rhapsody*)
14584 dynamic_linker="$host_os dyld"
14585 version_type=darwin
14586 need_lib_prefix=no
14587 need_version=no
14588 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14589 soname_spec='${libname}${release}${major}$shared_ext'
14590 shlibpath_overrides_runpath=yes
14591 shlibpath_var=DYLD_LIBRARY_PATH
14592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14593
14594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596 ;;
14597
14598dgux*)
14599 version_type=linux
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 ;;
14606
14607freebsd1*)
14608 dynamic_linker=no
14609 ;;
14610
14611freebsd* | dragonfly*)
14612 # DragonFly does not have aout. When/if they implement a new
14613 # versioning mechanism, adjust this.
14614 if test -x /usr/bin/objformat; then
14615 objformat=`/usr/bin/objformat`
14616 else
14617 case $host_os in
14618 freebsd[123]*) objformat=aout ;;
14619 *) objformat=elf ;;
14620 esac
14621 fi
14622 version_type=freebsd-$objformat
14623 case $version_type in
14624 freebsd-elf*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14626 need_version=no
14627 need_lib_prefix=no
14628 ;;
14629 freebsd-*)
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14631 need_version=yes
14632 ;;
14633 esac
14634 shlibpath_var=LD_LIBRARY_PATH
14635 case $host_os in
14636 freebsd2*)
14637 shlibpath_overrides_runpath=yes
14638 ;;
14639 freebsd3.[01]* | freebsdelf3.[01]*)
14640 shlibpath_overrides_runpath=yes
14641 hardcode_into_libs=yes
14642 ;;
14643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 ;;
14648 *) # from 4.6 on, and DragonFly
14649 shlibpath_overrides_runpath=yes
14650 hardcode_into_libs=yes
14651 ;;
14652 esac
14653 ;;
14654
14655gnu*)
14656 version_type=linux
14657 need_lib_prefix=no
14658 need_version=no
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 hardcode_into_libs=yes
14663 ;;
14664
cristyfd9dcd42010-08-08 18:07:02 +000014665haiku*)
14666 version_type=linux
14667 need_lib_prefix=no
14668 need_version=no
14669 dynamic_linker="$host_os runtime_loader"
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14674 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14675 hardcode_into_libs=yes
14676 ;;
14677
cristy3ed852e2009-09-05 21:47:34 +000014678hpux9* | hpux10* | hpux11*)
14679 # Give a soname corresponding to the major version so that dld.sl refuses to
14680 # link against other versions.
14681 version_type=sunos
14682 need_lib_prefix=no
14683 need_version=no
14684 case $host_cpu in
14685 ia64*)
14686 shrext_cmds='.so'
14687 hardcode_into_libs=yes
14688 dynamic_linker="$host_os dld.so"
14689 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 if test "X$HPUX_IA64_MODE" = X32; then
14694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14695 else
14696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14697 fi
14698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699 ;;
14700 hppa*64*)
14701 shrext_cmds='.sl'
14702 hardcode_into_libs=yes
14703 dynamic_linker="$host_os dld.sl"
14704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14710 ;;
14711 *)
14712 shrext_cmds='.sl'
14713 dynamic_linker="$host_os dld.sl"
14714 shlibpath_var=SHLIB_PATH
14715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 ;;
14719 esac
cristyfd9dcd42010-08-08 18:07:02 +000014720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014721 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014722 # or fails outright, so override atomically:
14723 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014724 ;;
14725
14726interix[3-9]*)
14727 version_type=linux
14728 need_lib_prefix=no
14729 need_version=no
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=no
14735 hardcode_into_libs=yes
14736 ;;
14737
14738irix5* | irix6* | nonstopux*)
14739 case $host_os in
14740 nonstopux*) version_type=nonstopux ;;
14741 *)
14742 if test "$lt_cv_prog_gnu_ld" = yes; then
14743 version_type=linux
14744 else
14745 version_type=irix
14746 fi ;;
14747 esac
14748 need_lib_prefix=no
14749 need_version=no
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14752 case $host_os in
14753 irix5* | nonstopux*)
14754 libsuff= shlibsuff=
14755 ;;
14756 *)
14757 case $LD in # libtool.m4 will add one of these switches to LD
14758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14759 libsuff= shlibsuff= libmagic=32-bit;;
14760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14761 libsuff=32 shlibsuff=N32 libmagic=N32;;
14762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14764 *) libsuff= shlibsuff= libmagic=never-match;;
14765 esac
14766 ;;
14767 esac
14768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14769 shlibpath_overrides_runpath=no
14770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14772 hardcode_into_libs=yes
14773 ;;
14774
14775# No shared lib support for Linux oldld, aout, or coff.
14776linux*oldld* | linux*aout* | linux*coff*)
14777 dynamic_linker=no
14778 ;;
14779
14780# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014781linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014782 version_type=linux
14783 need_lib_prefix=no
14784 need_version=no
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014790
cristy3ed852e2009-09-05 21:47:34 +000014791 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014792 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14793 $as_echo_n "(cached) " >&6
14794else
14795 lt_cv_shlibpath_overrides_runpath=no
14796 save_LDFLAGS=$LDFLAGS
14797 save_libdir=$libdir
14798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014801/* end confdefs.h. */
14802
14803int
14804main ()
14805{
14806
14807 ;
14808 return 0;
14809}
14810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014811if ac_fn_c_try_link "$LINENO"; then :
14812 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014813 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014814fi
cristy3ed852e2009-09-05 21:47:34 +000014815fi
cristy8b350f62009-11-15 23:12:43 +000014816rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014818 LDFLAGS=$save_LDFLAGS
14819 libdir=$save_libdir
14820
14821fi
14822
14823 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014824
14825 # This implies no fast_install, which is unacceptable.
14826 # Some rework will be needed to allow for fast_install
14827 # before this can be enabled.
14828 hardcode_into_libs=yes
14829
cristy679ed8e2009-12-05 02:37:41 +000014830 # Add ABI-specific directories to the system library path.
14831 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14832
cristy3ed852e2009-09-05 21:47:34 +000014833 # Append ld.so.conf contents to the search path
14834 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014835 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000014836 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014837
cristy3ed852e2009-09-05 21:47:34 +000014838 fi
14839
14840 # We used to test for /lib/ld.so.1 and disable shared libraries on
14841 # powerpc, because MkLinux only supported shared libraries with the
14842 # GNU dynamic linker. Since this was broken with cross compilers,
14843 # most powerpc-linux boxes support dynamic linking these days and
14844 # people can always --disable-shared, the test was removed, and we
14845 # assume the GNU/Linux dynamic linker is in use.
14846 dynamic_linker='GNU/Linux ld.so'
14847 ;;
14848
14849netbsd*)
14850 version_type=sunos
14851 need_lib_prefix=no
14852 need_version=no
14853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856 dynamic_linker='NetBSD (a.out) ld.so'
14857 else
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 dynamic_linker='NetBSD ld.elf_so'
14861 fi
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14865 ;;
14866
14867newsos6)
14868 version_type=linux
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14872 ;;
14873
14874*nto* | *qnx*)
14875 version_type=qnx
14876 need_lib_prefix=no
14877 need_version=no
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879 soname_spec='${libname}${release}${shared_ext}$major'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 shlibpath_overrides_runpath=no
14882 hardcode_into_libs=yes
14883 dynamic_linker='ldqnx.so'
14884 ;;
14885
14886openbsd*)
14887 version_type=sunos
14888 sys_lib_dlsearch_path_spec="/usr/lib"
14889 need_lib_prefix=no
14890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14891 case $host_os in
14892 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14893 *) need_version=no ;;
14894 esac
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899 case $host_os in
14900 openbsd2.[89] | openbsd2.[89].*)
14901 shlibpath_overrides_runpath=no
14902 ;;
14903 *)
14904 shlibpath_overrides_runpath=yes
14905 ;;
14906 esac
14907 else
14908 shlibpath_overrides_runpath=yes
14909 fi
14910 ;;
14911
14912os2*)
14913 libname_spec='$name'
14914 shrext_cmds=".dll"
14915 need_lib_prefix=no
14916 library_names_spec='$libname${shared_ext} $libname.a'
14917 dynamic_linker='OS/2 ld.exe'
14918 shlibpath_var=LIBPATH
14919 ;;
14920
14921osf3* | osf4* | osf5*)
14922 version_type=osf
14923 need_lib_prefix=no
14924 need_version=no
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14930 ;;
14931
14932rdos*)
14933 dynamic_linker=no
14934 ;;
14935
14936solaris*)
14937 version_type=linux
14938 need_lib_prefix=no
14939 need_version=no
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 shlibpath_overrides_runpath=yes
14944 hardcode_into_libs=yes
14945 # ldd complains unless libraries are executable
14946 postinstall_cmds='chmod +x $lib'
14947 ;;
14948
14949sunos4*)
14950 version_type=sunos
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 shlibpath_overrides_runpath=yes
14955 if test "$with_gnu_ld" = yes; then
14956 need_lib_prefix=no
14957 fi
14958 need_version=yes
14959 ;;
14960
14961sysv4 | sysv4.3*)
14962 version_type=linux
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 case $host_vendor in
14967 sni)
14968 shlibpath_overrides_runpath=no
14969 need_lib_prefix=no
14970 runpath_var=LD_RUN_PATH
14971 ;;
14972 siemens)
14973 need_lib_prefix=no
14974 ;;
14975 motorola)
14976 need_lib_prefix=no
14977 need_version=no
14978 shlibpath_overrides_runpath=no
14979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14980 ;;
14981 esac
14982 ;;
14983
14984sysv4*MP*)
14985 if test -d /usr/nec ;then
14986 version_type=linux
14987 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14988 soname_spec='$libname${shared_ext}.$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 fi
14991 ;;
14992
14993sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14994 version_type=freebsd-elf
14995 need_lib_prefix=no
14996 need_version=no
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=yes
15001 hardcode_into_libs=yes
15002 if test "$with_gnu_ld" = yes; then
15003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15004 else
15005 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15006 case $host_os in
15007 sco3.2v5*)
15008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15009 ;;
15010 esac
15011 fi
15012 sys_lib_dlsearch_path_spec='/usr/lib'
15013 ;;
15014
15015tpf*)
15016 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15017 version_type=linux
15018 need_lib_prefix=no
15019 need_version=no
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=no
15023 hardcode_into_libs=yes
15024 ;;
15025
15026uts4*)
15027 version_type=linux
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 ;;
15032
15033*)
15034 dynamic_linker=no
15035 ;;
15036esac
cristy8b350f62009-11-15 23:12:43 +000015037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015038$as_echo "$dynamic_linker" >&6; }
15039test "$dynamic_linker" = no && can_build_shared=no
15040
15041variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15042if test "$GCC" = yes; then
15043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15044fi
15045
15046if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15047 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15048fi
15049if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15050 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15051fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
cristyfd9dcd42010-08-08 18:07:02 +000015139
15140
15141
15142
15143
cristy8b350f62009-11-15 23:12:43 +000015144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015145$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15146hardcode_action=
15147if test -n "$hardcode_libdir_flag_spec" ||
15148 test -n "$runpath_var" ||
15149 test "X$hardcode_automatic" = "Xyes" ; then
15150
15151 # We can hardcode non-existent directories.
15152 if test "$hardcode_direct" != no &&
15153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15154 # have to relink, otherwise we might link with an installed library
15155 # when we should be linking with a yet-to-be-installed one
15156 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15157 test "$hardcode_minus_L" != no; then
15158 # Linking always hardcodes the temporary library directory.
15159 hardcode_action=relink
15160 else
15161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15162 hardcode_action=immediate
15163 fi
15164else
15165 # We cannot hardcode anything, or else we can only hardcode existing
15166 # directories.
15167 hardcode_action=unsupported
15168fi
cristy8b350f62009-11-15 23:12:43 +000015169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015170$as_echo "$hardcode_action" >&6; }
15171
15172if test "$hardcode_action" = relink ||
15173 test "$inherit_rpath" = yes; then
15174 # Fast installation is not supported
15175 enable_fast_install=no
15176elif test "$shlibpath_overrides_runpath" = yes ||
15177 test "$enable_shared" = no; then
15178 # Fast installation is not necessary
15179 enable_fast_install=needless
15180fi
15181
15182
15183
15184
15185
15186
15187 if test "x$enable_dlopen" != xyes; then
15188 enable_dlopen=unknown
15189 enable_dlopen_self=unknown
15190 enable_dlopen_self_static=unknown
15191else
15192 lt_cv_dlopen=no
15193 lt_cv_dlopen_libs=
15194
15195 case $host_os in
15196 beos*)
15197 lt_cv_dlopen="load_add_on"
15198 lt_cv_dlopen_libs=
15199 lt_cv_dlopen_self=yes
15200 ;;
15201
15202 mingw* | pw32* | cegcc*)
15203 lt_cv_dlopen="LoadLibrary"
15204 lt_cv_dlopen_libs=
15205 ;;
15206
15207 cygwin*)
15208 lt_cv_dlopen="dlopen"
15209 lt_cv_dlopen_libs=
15210 ;;
15211
15212 darwin*)
15213 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015215$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015216if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015217 $as_echo_n "(cached) " >&6
15218else
15219 ac_check_lib_save_LIBS=$LIBS
15220LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015222/* end confdefs.h. */
15223
15224/* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15227#ifdef __cplusplus
15228extern "C"
15229#endif
15230char dlopen ();
15231int
15232main ()
15233{
15234return dlopen ();
15235 ;
15236 return 0;
15237}
15238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015240 ac_cv_lib_dl_dlopen=yes
15241else
cristy8b350f62009-11-15 23:12:43 +000015242 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015243fi
cristy8b350f62009-11-15 23:12:43 +000015244rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015246LIBS=$ac_check_lib_save_LIBS
15247fi
cristy8b350f62009-11-15 23:12:43 +000015248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015249$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015250if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15252else
15253
15254 lt_cv_dlopen="dyld"
15255 lt_cv_dlopen_libs=
15256 lt_cv_dlopen_self=yes
15257
15258fi
15259
15260 ;;
15261
15262 *)
cristy8b350f62009-11-15 23:12:43 +000015263 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15264if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015265 lt_cv_dlopen="shl_load"
15266else
cristy8b350f62009-11-15 23:12:43 +000015267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015268$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015269if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015270 $as_echo_n "(cached) " >&6
15271else
15272 ac_check_lib_save_LIBS=$LIBS
15273LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015275/* end confdefs.h. */
15276
15277/* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15280#ifdef __cplusplus
15281extern "C"
15282#endif
15283char shl_load ();
15284int
15285main ()
15286{
15287return shl_load ();
15288 ;
15289 return 0;
15290}
15291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015293 ac_cv_lib_dld_shl_load=yes
15294else
cristy8b350f62009-11-15 23:12:43 +000015295 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015296fi
cristy8b350f62009-11-15 23:12:43 +000015297rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015299LIBS=$ac_check_lib_save_LIBS
15300fi
cristy8b350f62009-11-15 23:12:43 +000015301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015302$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015303if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015304 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15305else
cristy8b350f62009-11-15 23:12:43 +000015306 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15307if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015308 lt_cv_dlopen="dlopen"
15309else
cristy8b350f62009-11-15 23:12:43 +000015310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015311$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015312if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015313 $as_echo_n "(cached) " >&6
15314else
15315 ac_check_lib_save_LIBS=$LIBS
15316LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015318/* end confdefs.h. */
15319
15320/* Override any GCC internal prototype to avoid an error.
15321 Use char because int might match the return type of a GCC
15322 builtin and then its argument prototype would still apply. */
15323#ifdef __cplusplus
15324extern "C"
15325#endif
15326char dlopen ();
15327int
15328main ()
15329{
15330return dlopen ();
15331 ;
15332 return 0;
15333}
15334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015336 ac_cv_lib_dl_dlopen=yes
15337else
cristy8b350f62009-11-15 23:12:43 +000015338 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015339fi
cristy8b350f62009-11-15 23:12:43 +000015340rm -f core conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015342LIBS=$ac_check_lib_save_LIBS
15343fi
cristy8b350f62009-11-15 23:12:43 +000015344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015345$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015346if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15348else
cristy8b350f62009-11-15 23:12:43 +000015349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015350$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015351if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015352 $as_echo_n "(cached) " >&6
15353else
15354 ac_check_lib_save_LIBS=$LIBS
15355LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015357/* end confdefs.h. */
15358
15359/* Override any GCC internal prototype to avoid an error.
15360 Use char because int might match the return type of a GCC
15361 builtin and then its argument prototype would still apply. */
15362#ifdef __cplusplus
15363extern "C"
15364#endif
15365char dlopen ();
15366int
15367main ()
15368{
15369return dlopen ();
15370 ;
15371 return 0;
15372}
15373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015375 ac_cv_lib_svld_dlopen=yes
15376else
cristy8b350f62009-11-15 23:12:43 +000015377 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015378fi
cristy8b350f62009-11-15 23:12:43 +000015379rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015381LIBS=$ac_check_lib_save_LIBS
15382fi
cristy8b350f62009-11-15 23:12:43 +000015383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015384$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015385if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15387else
cristy8b350f62009-11-15 23:12:43 +000015388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015389$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015390if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015391 $as_echo_n "(cached) " >&6
15392else
15393 ac_check_lib_save_LIBS=$LIBS
15394LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015396/* end confdefs.h. */
15397
15398/* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15401#ifdef __cplusplus
15402extern "C"
15403#endif
15404char dld_link ();
15405int
15406main ()
15407{
15408return dld_link ();
15409 ;
15410 return 0;
15411}
15412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015413if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015414 ac_cv_lib_dld_dld_link=yes
15415else
cristy8b350f62009-11-15 23:12:43 +000015416 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015417fi
cristy8b350f62009-11-15 23:12:43 +000015418rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015420LIBS=$ac_check_lib_save_LIBS
15421fi
cristy8b350f62009-11-15 23:12:43 +000015422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015423$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015424if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015425 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15426fi
15427
15428
15429fi
15430
15431
15432fi
15433
15434
15435fi
15436
15437
15438fi
15439
15440
15441fi
15442
15443 ;;
15444 esac
15445
15446 if test "x$lt_cv_dlopen" != xno; then
15447 enable_dlopen=yes
15448 else
15449 enable_dlopen=no
15450 fi
15451
15452 case $lt_cv_dlopen in
15453 dlopen)
15454 save_CPPFLAGS="$CPPFLAGS"
15455 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15456
15457 save_LDFLAGS="$LDFLAGS"
15458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15459
15460 save_LIBS="$LIBS"
15461 LIBS="$lt_cv_dlopen_libs $LIBS"
15462
cristy8b350f62009-11-15 23:12:43 +000015463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015464$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015465if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015466 $as_echo_n "(cached) " >&6
15467else
15468 if test "$cross_compiling" = yes; then :
15469 lt_cv_dlopen_self=cross
15470else
15471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15472 lt_status=$lt_dlunknown
15473 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015474#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015475#include "confdefs.h"
15476
15477#if HAVE_DLFCN_H
15478#include <dlfcn.h>
15479#endif
15480
15481#include <stdio.h>
15482
15483#ifdef RTLD_GLOBAL
15484# define LT_DLGLOBAL RTLD_GLOBAL
15485#else
15486# ifdef DL_GLOBAL
15487# define LT_DLGLOBAL DL_GLOBAL
15488# else
15489# define LT_DLGLOBAL 0
15490# endif
15491#endif
15492
15493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15494 find out it does not work in some platform. */
15495#ifndef LT_DLLAZY_OR_NOW
15496# ifdef RTLD_LAZY
15497# define LT_DLLAZY_OR_NOW RTLD_LAZY
15498# else
15499# ifdef DL_LAZY
15500# define LT_DLLAZY_OR_NOW DL_LAZY
15501# else
15502# ifdef RTLD_NOW
15503# define LT_DLLAZY_OR_NOW RTLD_NOW
15504# else
15505# ifdef DL_NOW
15506# define LT_DLLAZY_OR_NOW DL_NOW
15507# else
15508# define LT_DLLAZY_OR_NOW 0
15509# endif
15510# endif
15511# endif
15512# endif
15513#endif
15514
cristyfd9dcd42010-08-08 18:07:02 +000015515/* When -fvisbility=hidden is used, assume the code has been annotated
15516 correspondingly for the symbols needed. */
15517#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15518void fnord () __attribute__((visibility("default")));
15519#endif
15520
15521void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015522int main ()
15523{
15524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15525 int status = $lt_dlunknown;
15526
15527 if (self)
15528 {
15529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015530 else
15531 {
15532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15533 else puts (dlerror ());
15534 }
cristy3ed852e2009-09-05 21:47:34 +000015535 /* dlclose (self); */
15536 }
15537 else
15538 puts (dlerror ());
15539
15540 return status;
15541}
15542_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015544 (eval $ac_link) 2>&5
15545 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015548 (./conftest; exit; ) >&5 2>/dev/null
15549 lt_status=$?
15550 case x$lt_status in
15551 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15552 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15553 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15554 esac
15555 else :
15556 # compilation failed
15557 lt_cv_dlopen_self=no
15558 fi
15559fi
15560rm -fr conftest*
15561
15562
15563fi
cristy8b350f62009-11-15 23:12:43 +000015564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015565$as_echo "$lt_cv_dlopen_self" >&6; }
15566
15567 if test "x$lt_cv_dlopen_self" = xyes; then
15568 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015570$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015571if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015572 $as_echo_n "(cached) " >&6
15573else
15574 if test "$cross_compiling" = yes; then :
15575 lt_cv_dlopen_self_static=cross
15576else
15577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15578 lt_status=$lt_dlunknown
15579 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015580#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015581#include "confdefs.h"
15582
15583#if HAVE_DLFCN_H
15584#include <dlfcn.h>
15585#endif
15586
15587#include <stdio.h>
15588
15589#ifdef RTLD_GLOBAL
15590# define LT_DLGLOBAL RTLD_GLOBAL
15591#else
15592# ifdef DL_GLOBAL
15593# define LT_DLGLOBAL DL_GLOBAL
15594# else
15595# define LT_DLGLOBAL 0
15596# endif
15597#endif
15598
15599/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15600 find out it does not work in some platform. */
15601#ifndef LT_DLLAZY_OR_NOW
15602# ifdef RTLD_LAZY
15603# define LT_DLLAZY_OR_NOW RTLD_LAZY
15604# else
15605# ifdef DL_LAZY
15606# define LT_DLLAZY_OR_NOW DL_LAZY
15607# else
15608# ifdef RTLD_NOW
15609# define LT_DLLAZY_OR_NOW RTLD_NOW
15610# else
15611# ifdef DL_NOW
15612# define LT_DLLAZY_OR_NOW DL_NOW
15613# else
15614# define LT_DLLAZY_OR_NOW 0
15615# endif
15616# endif
15617# endif
15618# endif
15619#endif
15620
cristyfd9dcd42010-08-08 18:07:02 +000015621/* When -fvisbility=hidden is used, assume the code has been annotated
15622 correspondingly for the symbols needed. */
15623#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15624void fnord () __attribute__((visibility("default")));
15625#endif
15626
15627void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015628int main ()
15629{
15630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15631 int status = $lt_dlunknown;
15632
15633 if (self)
15634 {
15635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015636 else
15637 {
15638 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15639 else puts (dlerror ());
15640 }
cristy3ed852e2009-09-05 21:47:34 +000015641 /* dlclose (self); */
15642 }
15643 else
15644 puts (dlerror ());
15645
15646 return status;
15647}
15648_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015650 (eval $ac_link) 2>&5
15651 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15653 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015654 (./conftest; exit; ) >&5 2>/dev/null
15655 lt_status=$?
15656 case x$lt_status in
15657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15659 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15660 esac
15661 else :
15662 # compilation failed
15663 lt_cv_dlopen_self_static=no
15664 fi
15665fi
15666rm -fr conftest*
15667
15668
15669fi
cristy8b350f62009-11-15 23:12:43 +000015670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015671$as_echo "$lt_cv_dlopen_self_static" >&6; }
15672 fi
15673
15674 CPPFLAGS="$save_CPPFLAGS"
15675 LDFLAGS="$save_LDFLAGS"
15676 LIBS="$save_LIBS"
15677 ;;
15678 esac
15679
15680 case $lt_cv_dlopen_self in
15681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15682 *) enable_dlopen_self=unknown ;;
15683 esac
15684
15685 case $lt_cv_dlopen_self_static in
15686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15687 *) enable_dlopen_self_static=unknown ;;
15688 esac
15689fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707striplib=
15708old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015710$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15711if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015715$as_echo "yes" >&6; }
15716else
15717# FIXME - insert some real tests, host_os isn't really good enough
15718 case $host_os in
15719 darwin*)
15720 if test -n "$STRIP" ; then
15721 striplib="$STRIP -x"
15722 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015724$as_echo "yes" >&6; }
15725 else
cristy8b350f62009-11-15 23:12:43 +000015726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015727$as_echo "no" >&6; }
15728 fi
15729 ;;
15730 *)
cristy8b350f62009-11-15 23:12:43 +000015731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015732$as_echo "no" >&6; }
15733 ;;
15734 esac
15735fi
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015750$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015752$as_echo "$can_build_shared" >&6; }
15753
cristy8b350f62009-11-15 23:12:43 +000015754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015755$as_echo_n "checking whether to build shared libraries... " >&6; }
15756 test "$can_build_shared" = "no" && enable_shared=no
15757
15758 # On AIX, shared libraries and static libraries use the same namespace, and
15759 # are all built from PIC.
15760 case $host_os in
15761 aix3*)
15762 test "$enable_shared" = yes && enable_static=no
15763 if test -n "$RANLIB"; then
15764 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15765 postinstall_cmds='$RANLIB $lib'
15766 fi
15767 ;;
15768
15769 aix[4-9]*)
15770 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15771 test "$enable_shared" = yes && enable_static=no
15772 fi
15773 ;;
15774 esac
cristy8b350f62009-11-15 23:12:43 +000015775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015776$as_echo "$enable_shared" >&6; }
15777
cristy8b350f62009-11-15 23:12:43 +000015778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015779$as_echo_n "checking whether to build static libraries... " >&6; }
15780 # Make sure either enable_shared or enable_static is yes.
15781 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015783$as_echo "$enable_static" >&6; }
15784
15785
15786
15787
15788fi
15789ac_ext=c
15790ac_cpp='$CPP $CPPFLAGS'
15791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15793ac_compiler_gnu=$ac_cv_c_compiler_gnu
15794
15795CC="$lt_save_CC"
15796
cristyfd9dcd42010-08-08 18:07:02 +000015797 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15798 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15799 (test "X$CXX" != "Xg++"))) ; then
15800 ac_ext=cpp
15801ac_cpp='$CXXCPP $CPPFLAGS'
15802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15806$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15807if test -z "$CXXCPP"; then
15808 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15809 $as_echo_n "(cached) " >&6
15810else
15811 # Double quotes because CXXCPP needs to be expanded
15812 for CXXCPP in "$CXX -E" "/lib/cpp"
15813 do
15814 ac_preproc_ok=false
15815for ac_cxx_preproc_warn_flag in '' yes
15816do
15817 # Use a header file that comes with gcc, so configuring glibc
15818 # with a fresh cross-compiler works.
15819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820 # <limits.h> exists even on freestanding compilers.
15821 # On the NeXT, cc -E runs the code through the compiler's parser,
15822 # not just through cpp. "Syntax error" is here to catch this case.
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824/* end confdefs.h. */
15825#ifdef __STDC__
15826# include <limits.h>
15827#else
15828# include <assert.h>
15829#endif
15830 Syntax error
15831_ACEOF
15832if ac_fn_cxx_try_cpp "$LINENO"; then :
15833
15834else
15835 # Broken: fails on valid input.
15836continue
15837fi
15838rm -f conftest.err conftest.$ac_ext
15839
15840 # OK, works on sane cases. Now check whether nonexistent headers
15841 # can be detected and how.
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h. */
15844#include <ac_nonexistent.h>
15845_ACEOF
15846if ac_fn_cxx_try_cpp "$LINENO"; then :
15847 # Broken: success on invalid input.
15848continue
15849else
15850 # Passes both tests.
15851ac_preproc_ok=:
15852break
15853fi
15854rm -f conftest.err conftest.$ac_ext
15855
15856done
15857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15858rm -f conftest.err conftest.$ac_ext
15859if $ac_preproc_ok; then :
15860 break
15861fi
15862
15863 done
15864 ac_cv_prog_CXXCPP=$CXXCPP
15865
15866fi
15867 CXXCPP=$ac_cv_prog_CXXCPP
15868else
15869 ac_cv_prog_CXXCPP=$CXXCPP
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15872$as_echo "$CXXCPP" >&6; }
15873ac_preproc_ok=false
15874for ac_cxx_preproc_warn_flag in '' yes
15875do
15876 # Use a header file that comes with gcc, so configuring glibc
15877 # with a fresh cross-compiler works.
15878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15879 # <limits.h> exists even on freestanding compilers.
15880 # On the NeXT, cc -E runs the code through the compiler's parser,
15881 # not just through cpp. "Syntax error" is here to catch this case.
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883/* end confdefs.h. */
15884#ifdef __STDC__
15885# include <limits.h>
15886#else
15887# include <assert.h>
15888#endif
15889 Syntax error
15890_ACEOF
15891if ac_fn_cxx_try_cpp "$LINENO"; then :
15892
15893else
15894 # Broken: fails on valid input.
15895continue
15896fi
15897rm -f conftest.err conftest.$ac_ext
15898
15899 # OK, works on sane cases. Now check whether nonexistent headers
15900 # can be detected and how.
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902/* end confdefs.h. */
15903#include <ac_nonexistent.h>
15904_ACEOF
15905if ac_fn_cxx_try_cpp "$LINENO"; then :
15906 # Broken: success on invalid input.
15907continue
15908else
15909 # Passes both tests.
15910ac_preproc_ok=:
15911break
15912fi
15913rm -f conftest.err conftest.$ac_ext
15914
15915done
15916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15917rm -f conftest.err conftest.$ac_ext
15918if $ac_preproc_ok; then :
15919
15920else
15921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15923as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15924See \`config.log' for more details" "$LINENO" 5; }
15925fi
15926
15927ac_ext=c
15928ac_cpp='$CPP $CPPFLAGS'
15929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15931ac_compiler_gnu=$ac_cv_c_compiler_gnu
15932
15933else
15934 _lt_caught_CXX_error=yes
15935fi
cristy3ed852e2009-09-05 21:47:34 +000015936
15937ac_ext=cpp
15938ac_cpp='$CXXCPP $CPPFLAGS'
15939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15942
15943archive_cmds_need_lc_CXX=no
15944allow_undefined_flag_CXX=
15945always_export_symbols_CXX=no
15946archive_expsym_cmds_CXX=
15947compiler_needs_object_CXX=no
15948export_dynamic_flag_spec_CXX=
15949hardcode_direct_CXX=no
15950hardcode_direct_absolute_CXX=no
15951hardcode_libdir_flag_spec_CXX=
15952hardcode_libdir_flag_spec_ld_CXX=
15953hardcode_libdir_separator_CXX=
15954hardcode_minus_L_CXX=no
15955hardcode_shlibpath_var_CXX=unsupported
15956hardcode_automatic_CXX=no
15957inherit_rpath_CXX=no
15958module_cmds_CXX=
15959module_expsym_cmds_CXX=
15960link_all_deplibs_CXX=unknown
15961old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015962reload_flag_CXX=$reload_flag
15963reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015964no_undefined_flag_CXX=
15965whole_archive_flag_spec_CXX=
15966enable_shared_with_static_runtimes_CXX=no
15967
15968# Source file extension for C++ test sources.
15969ac_ext=cpp
15970
15971# Object file extension for compiled C++ test sources.
15972objext=o
15973objext_CXX=$objext
15974
15975# No sense in running all these tests if we already determined that
15976# the CXX compiler isn't working. Some variables (like enable_shared)
15977# are currently assumed to apply to all compilers on this platform,
15978# and will be corrupted by setting them based on a non-working compiler.
15979if test "$_lt_caught_CXX_error" != yes; then
15980 # Code to be used in simple compile tests
15981 lt_simple_compile_test_code="int some_variable = 0;"
15982
15983 # Code to be used in simple link tests
15984 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15985
15986 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15987
15988
15989
15990
15991
15992
15993# If no C compiler was specified, use CC.
15994LTCC=${LTCC-"$CC"}
15995
15996# If no C compiler flags were specified, use CFLAGS.
15997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15998
15999# Allow CC to be a program name with arguments.
16000compiler=$CC
16001
16002
16003 # save warnings/boilerplate of simple test code
16004 ac_outfile=conftest.$ac_objext
16005echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16007_lt_compiler_boilerplate=`cat conftest.err`
16008$RM conftest*
16009
16010 ac_outfile=conftest.$ac_objext
16011echo "$lt_simple_link_test_code" >conftest.$ac_ext
16012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16013_lt_linker_boilerplate=`cat conftest.err`
16014$RM -r conftest*
16015
16016
16017 # Allow CC to be a program name with arguments.
16018 lt_save_CC=$CC
16019 lt_save_LD=$LD
16020 lt_save_GCC=$GCC
16021 GCC=$GXX
16022 lt_save_with_gnu_ld=$with_gnu_ld
16023 lt_save_path_LD=$lt_cv_path_LD
16024 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16025 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16026 else
16027 $as_unset lt_cv_prog_gnu_ld
16028 fi
16029 if test -n "${lt_cv_path_LDCXX+set}"; then
16030 lt_cv_path_LD=$lt_cv_path_LDCXX
16031 else
16032 $as_unset lt_cv_path_LD
16033 fi
16034 test -z "${LDCXX+set}" || LD=$LDCXX
16035 CC=${CXX-"c++"}
16036 compiler=$CC
16037 compiler_CXX=$CC
16038 for cc_temp in $compiler""; do
16039 case $cc_temp in
16040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16042 \-*) ;;
16043 *) break;;
16044 esac
16045done
cristyfd9dcd42010-08-08 18:07:02 +000016046cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016047
16048
16049 if test -n "$compiler"; then
16050 # We don't want -fno-exception when compiling C++ code, so set the
16051 # no_builtin_flag separately
16052 if test "$GXX" = yes; then
16053 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16054 else
16055 lt_prog_compiler_no_builtin_flag_CXX=
16056 fi
16057
16058 if test "$GXX" = yes; then
16059 # Set up default GNU C++ configuration
16060
16061
16062
16063# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016064if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16066else
16067 with_gnu_ld=no
16068fi
16069
16070ac_prog=ld
16071if test "$GCC" = yes; then
16072 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016074$as_echo_n "checking for ld used by $CC... " >&6; }
16075 case $host in
16076 *-*-mingw*)
16077 # gcc leaves a trailing carriage return which upsets mingw
16078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16079 *)
16080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16081 esac
16082 case $ac_prog in
16083 # Accept absolute paths.
16084 [\\/]* | ?:[\\/]*)
16085 re_direlt='/[^/][^/]*/\.\./'
16086 # Canonicalize the pathname of ld
16087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16090 done
16091 test -z "$LD" && LD="$ac_prog"
16092 ;;
16093 "")
16094 # If it fails, then pretend we aren't using GCC.
16095 ac_prog=ld
16096 ;;
16097 *)
16098 # If it is relative, then search for the first ld in PATH.
16099 with_gnu_ld=unknown
16100 ;;
16101 esac
16102elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016104$as_echo_n "checking for GNU ld... " >&6; }
16105else
cristy8b350f62009-11-15 23:12:43 +000016106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016107$as_echo_n "checking for non-GNU ld... " >&6; }
16108fi
cristy8b350f62009-11-15 23:12:43 +000016109if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016110 $as_echo_n "(cached) " >&6
16111else
16112 if test -z "$LD"; then
16113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16114 for ac_dir in $PATH; do
16115 IFS="$lt_save_ifs"
16116 test -z "$ac_dir" && ac_dir=.
16117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16118 lt_cv_path_LD="$ac_dir/$ac_prog"
16119 # Check to see if the program is GNU ld. I'd rather use --version,
16120 # but apparently some variants of GNU ld only accept -v.
16121 # Break only if it was the GNU/non-GNU ld that we prefer.
16122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16123 *GNU* | *'with BFD'*)
16124 test "$with_gnu_ld" != no && break
16125 ;;
16126 *)
16127 test "$with_gnu_ld" != yes && break
16128 ;;
16129 esac
16130 fi
16131 done
16132 IFS="$lt_save_ifs"
16133else
16134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16135fi
16136fi
16137
16138LD="$lt_cv_path_LD"
16139if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016141$as_echo "$LD" >&6; }
16142else
cristy8b350f62009-11-15 23:12:43 +000016143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016144$as_echo "no" >&6; }
16145fi
cristyfd9dcd42010-08-08 18:07:02 +000016146test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016148$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016149if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016150 $as_echo_n "(cached) " >&6
16151else
16152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16153case `$LD -v 2>&1 </dev/null` in
16154*GNU* | *'with BFD'*)
16155 lt_cv_prog_gnu_ld=yes
16156 ;;
16157*)
16158 lt_cv_prog_gnu_ld=no
16159 ;;
16160esac
16161fi
cristy8b350f62009-11-15 23:12:43 +000016162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016163$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16164with_gnu_ld=$lt_cv_prog_gnu_ld
16165
16166
16167
16168
16169
16170
16171
16172 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16173 # archiving commands below assume that GNU ld is being used.
16174 if test "$with_gnu_ld" = yes; then
16175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16177
16178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16180
16181 # If archive_cmds runs LD, not CC, wlarc should be empty
16182 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16183 # investigate it a little bit more. (MM)
16184 wlarc='${wl}'
16185
16186 # ancient GNU ld didn't support --whole-archive et. al.
16187 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16188 $GREP 'no-whole-archive' > /dev/null; then
16189 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16190 else
16191 whole_archive_flag_spec_CXX=
16192 fi
16193 else
16194 with_gnu_ld=no
16195 wlarc=
16196
16197 # A generic and very simple default shared library creation
16198 # command for GNU C++ for the case where it uses the native
16199 # linker, instead of GNU ld. If possible, this setting should
16200 # overridden to take advantage of the native linker features on
16201 # the platform it is being used on.
16202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16203 fi
16204
16205 # Commands to make compiler produce verbose output that lists
16206 # what "hidden" libraries, object files and flags are used when
16207 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016209
16210 else
16211 GXX=no
16212 with_gnu_ld=no
16213 wlarc=
16214 fi
16215
16216 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016218$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16219 ld_shlibs_CXX=yes
16220 case $host_os in
16221 aix3*)
16222 # FIXME: insert proper C++ library support
16223 ld_shlibs_CXX=no
16224 ;;
16225 aix[4-9]*)
16226 if test "$host_cpu" = ia64; then
16227 # On IA64, the linker does run time linking by default, so we don't
16228 # have to do anything special.
16229 aix_use_runtimelinking=no
16230 exp_sym_flag='-Bexport'
16231 no_entry_flag=""
16232 else
16233 aix_use_runtimelinking=no
16234
16235 # Test if we are trying to use run time linking or normal
16236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16237 # need to do runtime linking.
16238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16239 for ld_flag in $LDFLAGS; do
16240 case $ld_flag in
16241 *-brtl*)
16242 aix_use_runtimelinking=yes
16243 break
16244 ;;
16245 esac
16246 done
16247 ;;
16248 esac
16249
16250 exp_sym_flag='-bexport'
16251 no_entry_flag='-bnoentry'
16252 fi
16253
16254 # When large executables or shared objects are built, AIX ld can
16255 # have problems creating the table of contents. If linking a library
16256 # or program results in "error TOC overflow" add -mminimal-toc to
16257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16259
16260 archive_cmds_CXX=''
16261 hardcode_direct_CXX=yes
16262 hardcode_direct_absolute_CXX=yes
16263 hardcode_libdir_separator_CXX=':'
16264 link_all_deplibs_CXX=yes
16265 file_list_spec_CXX='${wl}-f,'
16266
16267 if test "$GXX" = yes; then
16268 case $host_os in aix4.[012]|aix4.[012].*)
16269 # We only want to do this on AIX 4.2 and lower, the check
16270 # below for broken collect2 doesn't work under 4.3+
16271 collect2name=`${CC} -print-prog-name=collect2`
16272 if test -f "$collect2name" &&
16273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16274 then
16275 # We have reworked collect2
16276 :
16277 else
16278 # We have old collect2
16279 hardcode_direct_CXX=unsupported
16280 # It fails to find uninstalled libraries when the uninstalled
16281 # path is not listed in the libpath. Setting hardcode_minus_L
16282 # to unsupported forces relinking
16283 hardcode_minus_L_CXX=yes
16284 hardcode_libdir_flag_spec_CXX='-L$libdir'
16285 hardcode_libdir_separator_CXX=
16286 fi
16287 esac
16288 shared_flag='-shared'
16289 if test "$aix_use_runtimelinking" = yes; then
16290 shared_flag="$shared_flag "'${wl}-G'
16291 fi
16292 else
16293 # not using gcc
16294 if test "$host_cpu" = ia64; then
16295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16296 # chokes on -Wl,-G. The following line is correct:
16297 shared_flag='-G'
16298 else
16299 if test "$aix_use_runtimelinking" = yes; then
16300 shared_flag='${wl}-G'
16301 else
16302 shared_flag='${wl}-bM:SRE'
16303 fi
16304 fi
16305 fi
16306
16307 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16308 # It seems that -bexpall does not export symbols beginning with
16309 # underscore (_), so it is better to generate a list of symbols to
16310 # export.
16311 always_export_symbols_CXX=yes
16312 if test "$aix_use_runtimelinking" = yes; then
16313 # Warning - without using the other runtime loading flags (-brtl),
16314 # -berok will link without error, but may produce a broken library.
16315 allow_undefined_flag_CXX='-berok'
16316 # Determine the default libpath from the value encoded in an empty
16317 # executable.
cristy8b350f62009-11-15 23:12:43 +000016318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016319/* end confdefs.h. */
16320
16321int
16322main ()
16323{
16324
16325 ;
16326 return 0;
16327}
16328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016329if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016330
16331lt_aix_libpath_sed='
16332 /Import File Strings/,/^$/ {
16333 /^0/ {
16334 s/^0 *\(.*\)$/\1/
16335 p
16336 }
16337 }'
16338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16339# Check for a 64-bit object if we didn't find anything.
16340if test -z "$aix_libpath"; then
16341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342fi
cristy3ed852e2009-09-05 21:47:34 +000016343fi
cristy8b350f62009-11-15 23:12:43 +000016344rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16347
16348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16349
cristyfd9dcd42010-08-08 18:07:02 +000016350 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"
cristy3ed852e2009-09-05 21:47:34 +000016351 else
16352 if test "$host_cpu" = ia64; then
16353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16354 allow_undefined_flag_CXX="-z nodefs"
16355 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"
16356 else
16357 # Determine the default libpath from the value encoded in an
16358 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016360/* end confdefs.h. */
16361
16362int
16363main ()
16364{
16365
16366 ;
16367 return 0;
16368}
16369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016370if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016371
16372lt_aix_libpath_sed='
16373 /Import File Strings/,/^$/ {
16374 /^0/ {
16375 s/^0 *\(.*\)$/\1/
16376 p
16377 }
16378 }'
16379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16380# Check for a 64-bit object if we didn't find anything.
16381if test -z "$aix_libpath"; then
16382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383fi
cristy3ed852e2009-09-05 21:47:34 +000016384fi
cristy8b350f62009-11-15 23:12:43 +000016385rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16388
16389 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16390 # Warning - without using the other run time loading flags,
16391 # -berok will link without error, but may produce a broken library.
16392 no_undefined_flag_CXX=' ${wl}-bernotok'
16393 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016394 if test "$with_gnu_ld" = yes; then
16395 # We only use this code for GNU lds that support --whole-archive.
16396 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16397 else
16398 # Exported symbols can be pulled into shared objects from archives
16399 whole_archive_flag_spec_CXX='$convenience'
16400 fi
cristy3ed852e2009-09-05 21:47:34 +000016401 archive_cmds_need_lc_CXX=yes
16402 # This is similar to how AIX traditionally builds its shared
16403 # libraries.
16404 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'
16405 fi
16406 fi
16407 ;;
16408
16409 beos*)
16410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16411 allow_undefined_flag_CXX=unsupported
16412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16413 # support --undefined. This deserves some investigation. FIXME
16414 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16415 else
16416 ld_shlibs_CXX=no
16417 fi
16418 ;;
16419
16420 chorus*)
16421 case $cc_basename in
16422 *)
16423 # FIXME: insert proper C++ library support
16424 ld_shlibs_CXX=no
16425 ;;
16426 esac
16427 ;;
16428
16429 cygwin* | mingw* | pw32* | cegcc*)
16430 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16431 # as there is no search path for DLLs.
16432 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016433 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016434 allow_undefined_flag_CXX=unsupported
16435 always_export_symbols_CXX=no
16436 enable_shared_with_static_runtimes_CXX=yes
16437
16438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16439 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'
16440 # If the export-symbols file already is a .def file (1st line
16441 # is EXPORTS), use it as is; otherwise, prepend...
16442 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16443 cp $export_symbols $output_objdir/$soname.def;
16444 else
16445 echo EXPORTS > $output_objdir/$soname.def;
16446 cat $export_symbols >> $output_objdir/$soname.def;
16447 fi~
16448 $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'
16449 else
16450 ld_shlibs_CXX=no
16451 fi
16452 ;;
16453 darwin* | rhapsody*)
16454
16455
16456 archive_cmds_need_lc_CXX=no
16457 hardcode_direct_CXX=no
16458 hardcode_automatic_CXX=yes
16459 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016460 if test "$lt_cv_ld_force_load" = "yes"; then
16461 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\"`'
16462 else
16463 whole_archive_flag_spec_CXX=''
16464 fi
cristy3ed852e2009-09-05 21:47:34 +000016465 link_all_deplibs_CXX=yes
16466 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16467 case $cc_basename in
16468 ifort*) _lt_dar_can_shared=yes ;;
16469 *) _lt_dar_can_shared=$GCC ;;
16470 esac
16471 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016472 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016473 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}"
16474 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16475 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}"
16476 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}"
16477 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16478 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}"
16479 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}"
16480 fi
16481
16482 else
16483 ld_shlibs_CXX=no
16484 fi
16485
16486 ;;
16487
16488 dgux*)
16489 case $cc_basename in
16490 ec++*)
16491 # FIXME: insert proper C++ library support
16492 ld_shlibs_CXX=no
16493 ;;
16494 ghcx*)
16495 # Green Hills C++ Compiler
16496 # FIXME: insert proper C++ library support
16497 ld_shlibs_CXX=no
16498 ;;
16499 *)
16500 # FIXME: insert proper C++ library support
16501 ld_shlibs_CXX=no
16502 ;;
16503 esac
16504 ;;
16505
16506 freebsd[12]*)
16507 # C++ shared libraries reported to be fairly broken before
16508 # switch to ELF
16509 ld_shlibs_CXX=no
16510 ;;
16511
16512 freebsd-elf*)
16513 archive_cmds_need_lc_CXX=no
16514 ;;
16515
16516 freebsd* | dragonfly*)
16517 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16518 # conventions
16519 ld_shlibs_CXX=yes
16520 ;;
16521
16522 gnu*)
16523 ;;
16524
cristyfd9dcd42010-08-08 18:07:02 +000016525 haiku*)
16526 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16527 link_all_deplibs_CXX=yes
16528 ;;
16529
cristy3ed852e2009-09-05 21:47:34 +000016530 hpux9*)
16531 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16532 hardcode_libdir_separator_CXX=:
16533 export_dynamic_flag_spec_CXX='${wl}-E'
16534 hardcode_direct_CXX=yes
16535 hardcode_minus_L_CXX=yes # Not in the search PATH,
16536 # but as the default
16537 # location of the library.
16538
16539 case $cc_basename in
16540 CC*)
16541 # FIXME: insert proper C++ library support
16542 ld_shlibs_CXX=no
16543 ;;
16544 aCC*)
16545 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'
16546 # Commands to make compiler produce verbose output that lists
16547 # what "hidden" libraries, object files and flags are used when
16548 # linking a shared library.
16549 #
16550 # There doesn't appear to be a way to prevent this compiler from
16551 # explicitly linking system object files so we need to strip them
16552 # from the output so that they don't get included in the library
16553 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016554 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"'
cristy3ed852e2009-09-05 21:47:34 +000016555 ;;
16556 *)
16557 if test "$GXX" = yes; then
16558 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
16559 else
16560 # FIXME: insert proper C++ library support
16561 ld_shlibs_CXX=no
16562 fi
16563 ;;
16564 esac
16565 ;;
16566
16567 hpux10*|hpux11*)
16568 if test $with_gnu_ld = no; then
16569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16570 hardcode_libdir_separator_CXX=:
16571
16572 case $host_cpu in
16573 hppa*64*|ia64*)
16574 ;;
16575 *)
16576 export_dynamic_flag_spec_CXX='${wl}-E'
16577 ;;
16578 esac
16579 fi
16580 case $host_cpu in
16581 hppa*64*|ia64*)
16582 hardcode_direct_CXX=no
16583 hardcode_shlibpath_var_CXX=no
16584 ;;
16585 *)
16586 hardcode_direct_CXX=yes
16587 hardcode_direct_absolute_CXX=yes
16588 hardcode_minus_L_CXX=yes # Not in the search PATH,
16589 # but as the default
16590 # location of the library.
16591 ;;
16592 esac
16593
16594 case $cc_basename in
16595 CC*)
16596 # FIXME: insert proper C++ library support
16597 ld_shlibs_CXX=no
16598 ;;
16599 aCC*)
16600 case $host_cpu in
16601 hppa*64*)
16602 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16603 ;;
16604 ia64*)
16605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606 ;;
16607 *)
16608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16609 ;;
16610 esac
16611 # Commands to make compiler produce verbose output that lists
16612 # what "hidden" libraries, object files and flags are used when
16613 # linking a shared library.
16614 #
16615 # There doesn't appear to be a way to prevent this compiler from
16616 # explicitly linking system object files so we need to strip them
16617 # from the output so that they don't get included in the library
16618 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016619 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"'
cristy3ed852e2009-09-05 21:47:34 +000016620 ;;
16621 *)
16622 if test "$GXX" = yes; then
16623 if test $with_gnu_ld = no; then
16624 case $host_cpu in
16625 hppa*64*)
16626 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16627 ;;
16628 ia64*)
16629 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16630 ;;
16631 *)
16632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16633 ;;
16634 esac
16635 fi
16636 else
16637 # FIXME: insert proper C++ library support
16638 ld_shlibs_CXX=no
16639 fi
16640 ;;
16641 esac
16642 ;;
16643
16644 interix[3-9]*)
16645 hardcode_direct_CXX=no
16646 hardcode_shlibpath_var_CXX=no
16647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16648 export_dynamic_flag_spec_CXX='${wl}-E'
16649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16650 # Instead, shared libraries are loaded at an image base (0x10000000 by
16651 # default) and relocated if they conflict, which is a slow very memory
16652 # consuming and fragmenting process. To avoid this, we pick a random,
16653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16655 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'
16656 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'
16657 ;;
16658 irix5* | irix6*)
16659 case $cc_basename in
16660 CC*)
16661 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016662 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'
cristy3ed852e2009-09-05 21:47:34 +000016663
16664 # Archives containing C++ object files must be created using
16665 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16666 # necessary to make sure instantiated templates are included
16667 # in the archive.
16668 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16669 ;;
16670 *)
16671 if test "$GXX" = yes; then
16672 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016673 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000016674 else
cristyfd9dcd42010-08-08 18:07:02 +000016675 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000016676 fi
16677 fi
16678 link_all_deplibs_CXX=yes
16679 ;;
16680 esac
16681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16682 hardcode_libdir_separator_CXX=:
16683 inherit_rpath_CXX=yes
16684 ;;
16685
cristyfd9dcd42010-08-08 18:07:02 +000016686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016687 case $cc_basename in
16688 KCC*)
16689 # Kuck and Associates, Inc. (KAI) C++ Compiler
16690
16691 # KCC will only create a shared library if the output file
16692 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16693 # to its proper name (with version) after linking.
16694 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'
16695 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'
16696 # Commands to make compiler produce verbose output that lists
16697 # what "hidden" libraries, object files and flags are used when
16698 # linking a shared library.
16699 #
16700 # There doesn't appear to be a way to prevent this compiler from
16701 # explicitly linking system object files so we need to strip them
16702 # from the output so that they don't get included in the library
16703 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016704 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"'
cristy3ed852e2009-09-05 21:47:34 +000016705
16706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16708
16709 # Archives containing C++ object files must be created using
16710 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16711 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16712 ;;
16713 icpc* | ecpc* )
16714 # Intel C++
16715 with_gnu_ld=yes
16716 # version 8.0 and above of icpc choke on multiply defined symbols
16717 # if we add $predep_objects and $postdep_objects, however 7.1 and
16718 # earlier do not add the objects themselves.
16719 case `$CC -V 2>&1` in
16720 *"Version 7."*)
16721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16722 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'
16723 ;;
16724 *) # Version 8.0 or newer
16725 tmp_idyn=
16726 case $host_cpu in
16727 ia64*) tmp_idyn=' -i_dynamic';;
16728 esac
16729 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16730 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'
16731 ;;
16732 esac
16733 archive_cmds_need_lc_CXX=no
16734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16736 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16737 ;;
16738 pgCC* | pgcpp*)
16739 # Portland Group C++ compiler
16740 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016741 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016742 prelink_cmds_CXX='tpldir=Template.dir~
16743 rm -rf $tpldir~
16744 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016745 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016746 old_archive_cmds_CXX='tpldir=Template.dir~
16747 rm -rf $tpldir~
16748 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016749 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016750 $RANLIB $oldlib'
16751 archive_cmds_CXX='tpldir=Template.dir~
16752 rm -rf $tpldir~
16753 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016754 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016755 archive_expsym_cmds_CXX='tpldir=Template.dir~
16756 rm -rf $tpldir~
16757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016758 $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'
cristy3ed852e2009-09-05 21:47:34 +000016759 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016760 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016761 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16762 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'
16763 ;;
16764 esac
16765
16766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016768 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'
cristy3ed852e2009-09-05 21:47:34 +000016769 ;;
16770 cxx*)
16771 # Compaq C++
16772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773 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'
16774
16775 runpath_var=LD_RUN_PATH
16776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16777 hardcode_libdir_separator_CXX=:
16778
16779 # Commands to make compiler produce verbose output that lists
16780 # what "hidden" libraries, object files and flags are used when
16781 # linking a shared library.
16782 #
16783 # There doesn't appear to be a way to prevent this compiler from
16784 # explicitly linking system object files so we need to strip them
16785 # from the output so that they don't get included in the library
16786 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016787 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'
cristy3ed852e2009-09-05 21:47:34 +000016788 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016789 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016790 # IBM XL 8.0 on PPC, with GNU ld
16791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16793 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16794 if test "x$supports_anon_versioning" = xyes; then
16795 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16797 echo "local: *; };" >> $output_objdir/$libname.ver~
16798 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16799 fi
16800 ;;
16801 *)
16802 case `$CC -V 2>&1 | sed 5q` in
16803 *Sun\ C*)
16804 # Sun C++ 5.9
16805 no_undefined_flag_CXX=' -zdefs'
16806 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16807 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'
16808 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016809 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'
cristy3ed852e2009-09-05 21:47:34 +000016810 compiler_needs_object_CXX=yes
16811
16812 # Not sure whether something based on
16813 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16814 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016815 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016816
16817 # Archives containing C++ object files must be created using
16818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16819 # necessary to make sure instantiated templates are included
16820 # in the archive.
16821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16822 ;;
16823 esac
16824 ;;
16825 esac
16826 ;;
16827
16828 lynxos*)
16829 # FIXME: insert proper C++ library support
16830 ld_shlibs_CXX=no
16831 ;;
16832
16833 m88k*)
16834 # FIXME: insert proper C++ library support
16835 ld_shlibs_CXX=no
16836 ;;
16837
16838 mvs*)
16839 case $cc_basename in
16840 cxx*)
16841 # FIXME: insert proper C++ library support
16842 ld_shlibs_CXX=no
16843 ;;
16844 *)
16845 # FIXME: insert proper C++ library support
16846 ld_shlibs_CXX=no
16847 ;;
16848 esac
16849 ;;
16850
16851 netbsd*)
16852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16853 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16854 wlarc=
16855 hardcode_libdir_flag_spec_CXX='-R$libdir'
16856 hardcode_direct_CXX=yes
16857 hardcode_shlibpath_var_CXX=no
16858 fi
16859 # Workaround some broken pre-1.5 toolchains
16860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16861 ;;
16862
16863 *nto* | *qnx*)
16864 ld_shlibs_CXX=yes
16865 ;;
16866
16867 openbsd2*)
16868 # C++ shared libraries are fairly broken
16869 ld_shlibs_CXX=no
16870 ;;
16871
16872 openbsd*)
16873 if test -f /usr/libexec/ld.so; then
16874 hardcode_direct_CXX=yes
16875 hardcode_shlibpath_var_CXX=no
16876 hardcode_direct_absolute_CXX=yes
16877 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16880 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16881 export_dynamic_flag_spec_CXX='${wl}-E'
16882 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16883 fi
cristyfd9dcd42010-08-08 18:07:02 +000016884 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016885 else
16886 ld_shlibs_CXX=no
16887 fi
16888 ;;
16889
16890 osf3* | osf4* | osf5*)
16891 case $cc_basename in
16892 KCC*)
16893 # Kuck and Associates, Inc. (KAI) C++ Compiler
16894
16895 # KCC will only create a shared library if the output file
16896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16897 # to its proper name (with version) after linking.
16898 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'
16899
16900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16901 hardcode_libdir_separator_CXX=:
16902
16903 # Archives containing C++ object files must be created using
16904 # the KAI C++ compiler.
16905 case $host in
16906 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16907 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16908 esac
16909 ;;
16910 RCC*)
16911 # Rational C++ 2.4.1
16912 # FIXME: insert proper C++ library support
16913 ld_shlibs_CXX=no
16914 ;;
16915 cxx*)
16916 case $host in
16917 osf3*)
16918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016919 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'
cristy3ed852e2009-09-05 21:47:34 +000016920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16921 ;;
16922 *)
16923 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016924 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'
cristy3ed852e2009-09-05 21:47:34 +000016925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16926 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016927 $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~
cristy3ed852e2009-09-05 21:47:34 +000016928 $RM $lib.exp'
16929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16930 ;;
16931 esac
16932
16933 hardcode_libdir_separator_CXX=:
16934
16935 # Commands to make compiler produce verbose output that lists
16936 # what "hidden" libraries, object files and flags are used when
16937 # linking a shared library.
16938 #
16939 # There doesn't appear to be a way to prevent this compiler from
16940 # explicitly linking system object files so we need to strip them
16941 # from the output so that they don't get included in the library
16942 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016943 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"'
cristy3ed852e2009-09-05 21:47:34 +000016944 ;;
16945 *)
16946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16948 case $host in
16949 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016950 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'
cristy3ed852e2009-09-05 21:47:34 +000016951 ;;
16952 *)
cristyfd9dcd42010-08-08 18:07:02 +000016953 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000016954 ;;
16955 esac
16956
16957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16958 hardcode_libdir_separator_CXX=:
16959
16960 # Commands to make compiler produce verbose output that lists
16961 # what "hidden" libraries, object files and flags are used when
16962 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016964
16965 else
16966 # FIXME: insert proper C++ library support
16967 ld_shlibs_CXX=no
16968 fi
16969 ;;
16970 esac
16971 ;;
16972
16973 psos*)
16974 # FIXME: insert proper C++ library support
16975 ld_shlibs_CXX=no
16976 ;;
16977
16978 sunos4*)
16979 case $cc_basename in
16980 CC*)
16981 # Sun C++ 4.x
16982 # FIXME: insert proper C++ library support
16983 ld_shlibs_CXX=no
16984 ;;
16985 lcc*)
16986 # Lucid
16987 # FIXME: insert proper C++ library support
16988 ld_shlibs_CXX=no
16989 ;;
16990 *)
16991 # FIXME: insert proper C++ library support
16992 ld_shlibs_CXX=no
16993 ;;
16994 esac
16995 ;;
16996
16997 solaris*)
16998 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016999 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017000 # Sun C++ 4.2, 5.x and Centerline C++
17001 archive_cmds_need_lc_CXX=yes
17002 no_undefined_flag_CXX=' -zdefs'
17003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17004 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17005 $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'
17006
17007 hardcode_libdir_flag_spec_CXX='-R$libdir'
17008 hardcode_shlibpath_var_CXX=no
17009 case $host_os in
17010 solaris2.[0-5] | solaris2.[0-5].*) ;;
17011 *)
17012 # The compiler driver will combine and reorder linker options,
17013 # but understands `-z linker_flag'.
17014 # Supported since Solaris 2.6 (maybe 2.5.1?)
17015 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17016 ;;
17017 esac
17018 link_all_deplibs_CXX=yes
17019
cristyfd9dcd42010-08-08 18:07:02 +000017020 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017021
17022 # Archives containing C++ object files must be created using
17023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17024 # necessary to make sure instantiated templates are included
17025 # in the archive.
17026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17027 ;;
17028 gcx*)
17029 # Green Hills C++ Compiler
17030 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17031
17032 # The C++ compiler must be used to create the archive.
17033 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17034 ;;
17035 *)
17036 # GNU C++ compiler with Solaris linker
17037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17038 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17039 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17040 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17042 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17043
17044 # Commands to make compiler produce verbose output that lists
17045 # what "hidden" libraries, object files and flags are used when
17046 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017048 else
17049 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17050 # platform.
17051 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17052 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17053 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17054
17055 # Commands to make compiler produce verbose output that lists
17056 # what "hidden" libraries, object files and flags are used when
17057 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017058 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017059 fi
17060
17061 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17062 case $host_os in
17063 solaris2.[0-5] | solaris2.[0-5].*) ;;
17064 *)
17065 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17066 ;;
17067 esac
17068 fi
17069 ;;
17070 esac
17071 ;;
17072
17073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17074 no_undefined_flag_CXX='${wl}-z,text'
17075 archive_cmds_need_lc_CXX=no
17076 hardcode_shlibpath_var_CXX=no
17077 runpath_var='LD_RUN_PATH'
17078
17079 case $cc_basename in
17080 CC*)
17081 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 ;;
17084 *)
17085 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 ;;
17088 esac
17089 ;;
17090
17091 sysv5* | sco3.2v5* | sco5v6*)
17092 # Note: We can NOT use -z defs as we might desire, because we do not
17093 # link with -lc, and that would cause any symbols used from libc to
17094 # always be unresolved, which means just about no library would
17095 # ever link correctly. If we're not using GNU ld we use -z text
17096 # though, which does catch some bad symbols but isn't as heavy-handed
17097 # as -z defs.
17098 no_undefined_flag_CXX='${wl}-z,text'
17099 allow_undefined_flag_CXX='${wl}-z,nodefs'
17100 archive_cmds_need_lc_CXX=no
17101 hardcode_shlibpath_var_CXX=no
17102 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17103 hardcode_libdir_separator_CXX=':'
17104 link_all_deplibs_CXX=yes
17105 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17106 runpath_var='LD_RUN_PATH'
17107
17108 case $cc_basename in
17109 CC*)
17110 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristyfd9dcd42010-08-08 18:07:02 +000017112 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17113 '"$old_archive_cmds_CXX"
17114 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17115 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017116 ;;
17117 *)
17118 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17120 ;;
17121 esac
17122 ;;
17123
17124 tandem*)
17125 case $cc_basename in
17126 NCC*)
17127 # NonStop-UX NCC 3.20
17128 # FIXME: insert proper C++ library support
17129 ld_shlibs_CXX=no
17130 ;;
17131 *)
17132 # FIXME: insert proper C++ library support
17133 ld_shlibs_CXX=no
17134 ;;
17135 esac
17136 ;;
17137
17138 vxworks*)
17139 # FIXME: insert proper C++ library support
17140 ld_shlibs_CXX=no
17141 ;;
17142
17143 *)
17144 # FIXME: insert proper C++ library support
17145 ld_shlibs_CXX=no
17146 ;;
17147 esac
17148
cristy8b350f62009-11-15 23:12:43 +000017149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017150$as_echo "$ld_shlibs_CXX" >&6; }
17151 test "$ld_shlibs_CXX" = no && can_build_shared=no
17152
17153 GCC_CXX="$GXX"
17154 LD_CXX="$LD"
17155
17156 ## CAVEAT EMPTOR:
17157 ## There is no encapsulation within the following macros, do not change
17158 ## the running order or otherwise move them around unless you know exactly
17159 ## what you are doing...
17160 # Dependencies to place before and after the object being linked:
17161predep_objects_CXX=
17162postdep_objects_CXX=
17163predeps_CXX=
17164postdeps_CXX=
17165compiler_lib_search_path_CXX=
17166
17167cat > conftest.$ac_ext <<_LT_EOF
17168class Foo
17169{
17170public:
17171 Foo (void) { a = 0; }
17172private:
17173 int a;
17174};
17175_LT_EOF
17176
cristy8b350f62009-11-15 23:12:43 +000017177if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017178 (eval $ac_compile) 2>&5
17179 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17181 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017182 # Parse the compiler output and extract the necessary
17183 # objects, libraries and library flags.
17184
17185 # Sentinel used to keep track of whether or not we are before
17186 # the conftest object file.
17187 pre_test_object_deps_done=no
17188
17189 for p in `eval "$output_verbose_link_cmd"`; do
17190 case $p in
17191
17192 -L* | -R* | -l*)
17193 # Some compilers place space between "-{L,R}" and the path.
17194 # Remove the space.
17195 if test $p = "-L" ||
17196 test $p = "-R"; then
17197 prev=$p
17198 continue
17199 else
17200 prev=
17201 fi
17202
17203 if test "$pre_test_object_deps_done" = no; then
17204 case $p in
17205 -L* | -R*)
17206 # Internal compiler library paths should come after those
17207 # provided the user. The postdeps already come after the
17208 # user supplied libs so there is no need to process them.
17209 if test -z "$compiler_lib_search_path_CXX"; then
17210 compiler_lib_search_path_CXX="${prev}${p}"
17211 else
17212 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17213 fi
17214 ;;
17215 # The "-l" case would never come before the object being
17216 # linked, so don't bother handling this case.
17217 esac
17218 else
17219 if test -z "$postdeps_CXX"; then
17220 postdeps_CXX="${prev}${p}"
17221 else
17222 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17223 fi
17224 fi
17225 ;;
17226
17227 *.$objext)
17228 # This assumes that the test object file only shows up
17229 # once in the compiler output.
17230 if test "$p" = "conftest.$objext"; then
17231 pre_test_object_deps_done=yes
17232 continue
17233 fi
17234
17235 if test "$pre_test_object_deps_done" = no; then
17236 if test -z "$predep_objects_CXX"; then
17237 predep_objects_CXX="$p"
17238 else
17239 predep_objects_CXX="$predep_objects_CXX $p"
17240 fi
17241 else
17242 if test -z "$postdep_objects_CXX"; then
17243 postdep_objects_CXX="$p"
17244 else
17245 postdep_objects_CXX="$postdep_objects_CXX $p"
17246 fi
17247 fi
17248 ;;
17249
17250 *) ;; # Ignore the rest.
17251
17252 esac
17253 done
17254
17255 # Clean up.
17256 rm -f a.out a.exe
17257else
17258 echo "libtool.m4: error: problem compiling CXX test program"
17259fi
17260
17261$RM -f confest.$objext
17262
17263# PORTME: override above test on systems where it is broken
17264case $host_os in
17265interix[3-9]*)
17266 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17267 # hack all around it, let's just trust "g++" to DTRT.
17268 predep_objects_CXX=
17269 postdep_objects_CXX=
17270 postdeps_CXX=
17271 ;;
17272
17273linux*)
17274 case `$CC -V 2>&1 | sed 5q` in
17275 *Sun\ C*)
17276 # Sun C++ 5.9
17277
17278 # The more standards-conforming stlport4 library is
17279 # incompatible with the Cstd library. Avoid specifying
17280 # it if it's in CXXFLAGS. Ignore libCrun as
17281 # -library=stlport4 depends on it.
17282 case " $CXX $CXXFLAGS " in
17283 *" -library=stlport4 "*)
17284 solaris_use_stlport4=yes
17285 ;;
17286 esac
17287
17288 if test "$solaris_use_stlport4" != yes; then
17289 postdeps_CXX='-library=Cstd -library=Crun'
17290 fi
17291 ;;
17292 esac
17293 ;;
17294
17295solaris*)
17296 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017297 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017298 # The more standards-conforming stlport4 library is
17299 # incompatible with the Cstd library. Avoid specifying
17300 # it if it's in CXXFLAGS. Ignore libCrun as
17301 # -library=stlport4 depends on it.
17302 case " $CXX $CXXFLAGS " in
17303 *" -library=stlport4 "*)
17304 solaris_use_stlport4=yes
17305 ;;
17306 esac
17307
17308 # Adding this requires a known-good setup of shared libraries for
17309 # Sun compiler versions before 5.6, else PIC objects from an old
17310 # archive will be linked into the output, leading to subtle bugs.
17311 if test "$solaris_use_stlport4" != yes; then
17312 postdeps_CXX='-library=Cstd -library=Crun'
17313 fi
17314 ;;
17315 esac
17316 ;;
17317esac
17318
17319
17320case " $postdeps_CXX " in
17321*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17322esac
17323 compiler_lib_search_dirs_CXX=
17324if test -n "${compiler_lib_search_path_CXX}"; then
17325 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17326fi
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358 lt_prog_compiler_wl_CXX=
17359lt_prog_compiler_pic_CXX=
17360lt_prog_compiler_static_CXX=
17361
cristy8b350f62009-11-15 23:12:43 +000017362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017363$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17364
17365 # C++ specific cases for pic, static, wl, etc.
17366 if test "$GXX" = yes; then
17367 lt_prog_compiler_wl_CXX='-Wl,'
17368 lt_prog_compiler_static_CXX='-static'
17369
17370 case $host_os in
17371 aix*)
17372 # All AIX code is PIC.
17373 if test "$host_cpu" = ia64; then
17374 # AIX 5 now supports IA64 processor
17375 lt_prog_compiler_static_CXX='-Bstatic'
17376 fi
17377 ;;
17378
17379 amigaos*)
17380 case $host_cpu in
17381 powerpc)
17382 # see comment about AmigaOS4 .so support
17383 lt_prog_compiler_pic_CXX='-fPIC'
17384 ;;
17385 m68k)
17386 # FIXME: we need at least 68020 code to build shared libraries, but
17387 # adding the `-m68020' flag to GCC prevents building anything better,
17388 # like `-m68040'.
17389 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17390 ;;
17391 esac
17392 ;;
17393
17394 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17395 # PIC is the default for these OSes.
17396 ;;
17397 mingw* | cygwin* | os2* | pw32* | cegcc*)
17398 # This hack is so that the source file can tell whether it is being
17399 # built for inclusion in a dll (and should export symbols for example).
17400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17401 # (--disable-auto-import) libraries
17402 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17403 ;;
17404 darwin* | rhapsody*)
17405 # PIC is the default on this platform
17406 # Common symbols not allowed in MH_DYLIB files
17407 lt_prog_compiler_pic_CXX='-fno-common'
17408 ;;
17409 *djgpp*)
17410 # DJGPP does not support shared libraries at all
17411 lt_prog_compiler_pic_CXX=
17412 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017413 haiku*)
17414 # PIC is the default for Haiku.
17415 # The "-static" flag exists, but is broken.
17416 lt_prog_compiler_static_CXX=
17417 ;;
cristy3ed852e2009-09-05 21:47:34 +000017418 interix[3-9]*)
17419 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17420 # Instead, we relocate shared libraries at runtime.
17421 ;;
17422 sysv4*MP*)
17423 if test -d /usr/nec; then
17424 lt_prog_compiler_pic_CXX=-Kconform_pic
17425 fi
17426 ;;
17427 hpux*)
17428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17430 # sets the default TLS model and affects inlining.
17431 case $host_cpu in
17432 hppa*64*)
17433 ;;
17434 *)
17435 lt_prog_compiler_pic_CXX='-fPIC'
17436 ;;
17437 esac
17438 ;;
17439 *qnx* | *nto*)
17440 # QNX uses GNU C++, but need to define -shared option too, otherwise
17441 # it will coredump.
17442 lt_prog_compiler_pic_CXX='-fPIC -shared'
17443 ;;
17444 *)
17445 lt_prog_compiler_pic_CXX='-fPIC'
17446 ;;
17447 esac
17448 else
17449 case $host_os in
17450 aix[4-9]*)
17451 # All AIX code is PIC.
17452 if test "$host_cpu" = ia64; then
17453 # AIX 5 now supports IA64 processor
17454 lt_prog_compiler_static_CXX='-Bstatic'
17455 else
17456 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17457 fi
17458 ;;
17459 chorus*)
17460 case $cc_basename in
17461 cxch68*)
17462 # Green Hills C++ Compiler
17463 # _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"
17464 ;;
17465 esac
17466 ;;
17467 dgux*)
17468 case $cc_basename in
17469 ec++*)
17470 lt_prog_compiler_pic_CXX='-KPIC'
17471 ;;
17472 ghcx*)
17473 # Green Hills C++ Compiler
17474 lt_prog_compiler_pic_CXX='-pic'
17475 ;;
17476 *)
17477 ;;
17478 esac
17479 ;;
17480 freebsd* | dragonfly*)
17481 # FreeBSD uses GNU C++
17482 ;;
17483 hpux9* | hpux10* | hpux11*)
17484 case $cc_basename in
17485 CC*)
17486 lt_prog_compiler_wl_CXX='-Wl,'
17487 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17488 if test "$host_cpu" != ia64; then
17489 lt_prog_compiler_pic_CXX='+Z'
17490 fi
17491 ;;
17492 aCC*)
17493 lt_prog_compiler_wl_CXX='-Wl,'
17494 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17495 case $host_cpu in
17496 hppa*64*|ia64*)
17497 # +Z the default
17498 ;;
17499 *)
17500 lt_prog_compiler_pic_CXX='+Z'
17501 ;;
17502 esac
17503 ;;
17504 *)
17505 ;;
17506 esac
17507 ;;
17508 interix*)
17509 # This is c89, which is MS Visual C++ (no shared libs)
17510 # Anyone wants to do a port?
17511 ;;
17512 irix5* | irix6* | nonstopux*)
17513 case $cc_basename in
17514 CC*)
17515 lt_prog_compiler_wl_CXX='-Wl,'
17516 lt_prog_compiler_static_CXX='-non_shared'
17517 # CC pic flag -KPIC is the default.
17518 ;;
17519 *)
17520 ;;
17521 esac
17522 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017524 case $cc_basename in
17525 KCC*)
17526 # KAI C++ Compiler
17527 lt_prog_compiler_wl_CXX='--backend -Wl,'
17528 lt_prog_compiler_pic_CXX='-fPIC'
17529 ;;
17530 ecpc* )
17531 # old Intel C++ for x86_64 which still supported -KPIC.
17532 lt_prog_compiler_wl_CXX='-Wl,'
17533 lt_prog_compiler_pic_CXX='-KPIC'
17534 lt_prog_compiler_static_CXX='-static'
17535 ;;
17536 icpc* )
17537 # Intel C++, used to be incompatible with GCC.
17538 # ICC 10 doesn't accept -KPIC any more.
17539 lt_prog_compiler_wl_CXX='-Wl,'
17540 lt_prog_compiler_pic_CXX='-fPIC'
17541 lt_prog_compiler_static_CXX='-static'
17542 ;;
17543 pgCC* | pgcpp*)
17544 # Portland Group C++ compiler
17545 lt_prog_compiler_wl_CXX='-Wl,'
17546 lt_prog_compiler_pic_CXX='-fpic'
17547 lt_prog_compiler_static_CXX='-Bstatic'
17548 ;;
17549 cxx*)
17550 # Compaq C++
17551 # Make sure the PIC flag is empty. It appears that all Alpha
17552 # Linux and Compaq Tru64 Unix objects are PIC.
17553 lt_prog_compiler_pic_CXX=
17554 lt_prog_compiler_static_CXX='-non_shared'
17555 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017556 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17557 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017558 lt_prog_compiler_wl_CXX='-Wl,'
17559 lt_prog_compiler_pic_CXX='-qpic'
17560 lt_prog_compiler_static_CXX='-qstaticlink'
17561 ;;
17562 *)
17563 case `$CC -V 2>&1 | sed 5q` in
17564 *Sun\ C*)
17565 # Sun C++ 5.9
17566 lt_prog_compiler_pic_CXX='-KPIC'
17567 lt_prog_compiler_static_CXX='-Bstatic'
17568 lt_prog_compiler_wl_CXX='-Qoption ld '
17569 ;;
17570 esac
17571 ;;
17572 esac
17573 ;;
17574 lynxos*)
17575 ;;
17576 m88k*)
17577 ;;
17578 mvs*)
17579 case $cc_basename in
17580 cxx*)
17581 lt_prog_compiler_pic_CXX='-W c,exportall'
17582 ;;
17583 *)
17584 ;;
17585 esac
17586 ;;
17587 netbsd*)
17588 ;;
17589 *qnx* | *nto*)
17590 # QNX uses GNU C++, but need to define -shared option too, otherwise
17591 # it will coredump.
17592 lt_prog_compiler_pic_CXX='-fPIC -shared'
17593 ;;
17594 osf3* | osf4* | osf5*)
17595 case $cc_basename in
17596 KCC*)
17597 lt_prog_compiler_wl_CXX='--backend -Wl,'
17598 ;;
17599 RCC*)
17600 # Rational C++ 2.4.1
17601 lt_prog_compiler_pic_CXX='-pic'
17602 ;;
17603 cxx*)
17604 # Digital/Compaq C++
17605 lt_prog_compiler_wl_CXX='-Wl,'
17606 # Make sure the PIC flag is empty. It appears that all Alpha
17607 # Linux and Compaq Tru64 Unix objects are PIC.
17608 lt_prog_compiler_pic_CXX=
17609 lt_prog_compiler_static_CXX='-non_shared'
17610 ;;
17611 *)
17612 ;;
17613 esac
17614 ;;
17615 psos*)
17616 ;;
17617 solaris*)
17618 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017619 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017620 # Sun C++ 4.2, 5.x and Centerline C++
17621 lt_prog_compiler_pic_CXX='-KPIC'
17622 lt_prog_compiler_static_CXX='-Bstatic'
17623 lt_prog_compiler_wl_CXX='-Qoption ld '
17624 ;;
17625 gcx*)
17626 # Green Hills C++ Compiler
17627 lt_prog_compiler_pic_CXX='-PIC'
17628 ;;
17629 *)
17630 ;;
17631 esac
17632 ;;
17633 sunos4*)
17634 case $cc_basename in
17635 CC*)
17636 # Sun C++ 4.x
17637 lt_prog_compiler_pic_CXX='-pic'
17638 lt_prog_compiler_static_CXX='-Bstatic'
17639 ;;
17640 lcc*)
17641 # Lucid
17642 lt_prog_compiler_pic_CXX='-pic'
17643 ;;
17644 *)
17645 ;;
17646 esac
17647 ;;
17648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17649 case $cc_basename in
17650 CC*)
17651 lt_prog_compiler_wl_CXX='-Wl,'
17652 lt_prog_compiler_pic_CXX='-KPIC'
17653 lt_prog_compiler_static_CXX='-Bstatic'
17654 ;;
17655 esac
17656 ;;
17657 tandem*)
17658 case $cc_basename in
17659 NCC*)
17660 # NonStop-UX NCC 3.20
17661 lt_prog_compiler_pic_CXX='-KPIC'
17662 ;;
17663 *)
17664 ;;
17665 esac
17666 ;;
17667 vxworks*)
17668 ;;
17669 *)
17670 lt_prog_compiler_can_build_shared_CXX=no
17671 ;;
17672 esac
17673 fi
17674
17675case $host_os in
17676 # For platforms which do not support PIC, -DPIC is meaningless:
17677 *djgpp*)
17678 lt_prog_compiler_pic_CXX=
17679 ;;
17680 *)
17681 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17682 ;;
17683esac
cristy8b350f62009-11-15 23:12:43 +000017684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017685$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17686
17687
17688
17689#
17690# Check to make sure the PIC flag actually works.
17691#
17692if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017694$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017695if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017696 $as_echo_n "(cached) " >&6
17697else
17698 lt_cv_prog_compiler_pic_works_CXX=no
17699 ac_outfile=conftest.$ac_objext
17700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17701 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17702 # Insert the option either (1) after the last *FLAGS variable, or
17703 # (2) before a word containing "conftest.", or (3) at the end.
17704 # Note that $ac_compile itself does not contain backslashes and begins
17705 # with a dollar sign (not a hyphen), so the echo should work correctly.
17706 # The option is referenced via a variable to avoid confusing sed.
17707 lt_compile=`echo "$ac_compile" | $SED \
17708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17710 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017712 (eval "$lt_compile" 2>conftest.err)
17713 ac_status=$?
17714 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017716 if (exit $ac_status) && test -s "$ac_outfile"; then
17717 # The compiler can only warn and ignore the option if not recognized
17718 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17722 lt_cv_prog_compiler_pic_works_CXX=yes
17723 fi
17724 fi
17725 $RM conftest*
17726
17727fi
cristy8b350f62009-11-15 23:12:43 +000017728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017729$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17730
17731if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17732 case $lt_prog_compiler_pic_CXX in
17733 "" | " "*) ;;
17734 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17735 esac
17736else
17737 lt_prog_compiler_pic_CXX=
17738 lt_prog_compiler_can_build_shared_CXX=no
17739fi
17740
17741fi
17742
17743
17744
17745#
17746# Check to make sure the static flag actually works.
17747#
17748wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017750$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017751if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017752 $as_echo_n "(cached) " >&6
17753else
17754 lt_cv_prog_compiler_static_works_CXX=no
17755 save_LDFLAGS="$LDFLAGS"
17756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17759 # The linker can only warn and ignore the option if not recognized
17760 # So say no if there are warnings
17761 if test -s conftest.err; then
17762 # Append any errors to the config.log.
17763 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017764 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17766 if diff conftest.exp conftest.er2 >/dev/null; then
17767 lt_cv_prog_compiler_static_works_CXX=yes
17768 fi
17769 else
17770 lt_cv_prog_compiler_static_works_CXX=yes
17771 fi
17772 fi
17773 $RM -r conftest*
17774 LDFLAGS="$save_LDFLAGS"
17775
17776fi
cristy8b350f62009-11-15 23:12:43 +000017777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017778$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17779
17780if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17781 :
17782else
17783 lt_prog_compiler_static_CXX=
17784fi
17785
17786
17787
17788
cristy8b350f62009-11-15 23:12:43 +000017789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017790$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017791if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017792 $as_echo_n "(cached) " >&6
17793else
17794 lt_cv_prog_compiler_c_o_CXX=no
17795 $RM -r conftest 2>/dev/null
17796 mkdir conftest
17797 cd conftest
17798 mkdir out
17799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17800
17801 lt_compiler_flag="-o out/conftest2.$ac_objext"
17802 # Insert the option either (1) after the last *FLAGS variable, or
17803 # (2) before a word containing "conftest.", or (3) at the end.
17804 # Note that $ac_compile itself does not contain backslashes and begins
17805 # with a dollar sign (not a hyphen), so the echo should work correctly.
17806 lt_compile=`echo "$ac_compile" | $SED \
17807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17809 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017811 (eval "$lt_compile" 2>out/conftest.err)
17812 ac_status=$?
17813 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17816 then
17817 # The compiler can only warn and ignore the option if not recognized
17818 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17822 lt_cv_prog_compiler_c_o_CXX=yes
17823 fi
17824 fi
17825 chmod u+w . 2>&5
17826 $RM conftest*
17827 # SGI C++ compiler will create directory out/ii_files/ for
17828 # template instantiation
17829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17830 $RM out/* && rmdir out
17831 cd ..
17832 $RM -r conftest
17833 $RM conftest*
17834
17835fi
cristy8b350f62009-11-15 23:12:43 +000017836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017837$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17838
17839
17840
cristy8b350f62009-11-15 23:12:43 +000017841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017842$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017843if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017844 $as_echo_n "(cached) " >&6
17845else
17846 lt_cv_prog_compiler_c_o_CXX=no
17847 $RM -r conftest 2>/dev/null
17848 mkdir conftest
17849 cd conftest
17850 mkdir out
17851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17852
17853 lt_compiler_flag="-o out/conftest2.$ac_objext"
17854 # Insert the option either (1) after the last *FLAGS variable, or
17855 # (2) before a word containing "conftest.", or (3) at the end.
17856 # Note that $ac_compile itself does not contain backslashes and begins
17857 # with a dollar sign (not a hyphen), so the echo should work correctly.
17858 lt_compile=`echo "$ac_compile" | $SED \
17859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17861 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017863 (eval "$lt_compile" 2>out/conftest.err)
17864 ac_status=$?
17865 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17868 then
17869 # The compiler can only warn and ignore the option if not recognized
17870 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17874 lt_cv_prog_compiler_c_o_CXX=yes
17875 fi
17876 fi
17877 chmod u+w . 2>&5
17878 $RM conftest*
17879 # SGI C++ compiler will create directory out/ii_files/ for
17880 # template instantiation
17881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17882 $RM out/* && rmdir out
17883 cd ..
17884 $RM -r conftest
17885 $RM conftest*
17886
17887fi
cristy8b350f62009-11-15 23:12:43 +000017888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017889$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17890
17891
17892
17893
17894hard_links="nottested"
17895if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17896 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017898$as_echo_n "checking if we can lock with hard links... " >&6; }
17899 hard_links=yes
17900 $RM conftest*
17901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17902 touch conftest.a
17903 ln conftest.a conftest.b 2>&5 || hard_links=no
17904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017906$as_echo "$hard_links" >&6; }
17907 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000017909$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17910 need_locks=warn
17911 fi
17912else
17913 need_locks=no
17914fi
17915
17916
17917
cristy8b350f62009-11-15 23:12:43 +000017918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017919$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17920
17921 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17922 case $host_os in
17923 aix[4-9]*)
17924 # If we're using GNU nm, then we don't want the "-C" option.
17925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017926 # Also, AIX nm treats weak defined symbols like other global defined
17927 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017929 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'
cristy3ed852e2009-09-05 21:47:34 +000017930 else
17931 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'
17932 fi
17933 ;;
17934 pw32*)
17935 export_symbols_cmds_CXX="$ltdll_cmds"
17936 ;;
17937 cygwin* | mingw* | cegcc*)
17938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17939 ;;
17940 *)
17941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17942 ;;
17943 esac
17944 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17945
cristy8b350f62009-11-15 23:12:43 +000017946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017947$as_echo "$ld_shlibs_CXX" >&6; }
17948test "$ld_shlibs_CXX" = no && can_build_shared=no
17949
17950with_gnu_ld_CXX=$with_gnu_ld
17951
17952
17953
17954
17955
17956
17957#
17958# Do we need to explicitly link libc?
17959#
17960case "x$archive_cmds_need_lc_CXX" in
17961x|xyes)
17962 # Assume -lc should be added
17963 archive_cmds_need_lc_CXX=yes
17964
17965 if test "$enable_shared" = yes && test "$GCC" = yes; then
17966 case $archive_cmds_CXX in
17967 *'~'*)
17968 # FIXME: we may have to deal with multi-command sequences.
17969 ;;
17970 '$CC '*)
17971 # Test whether the compiler implicitly links with -lc since on some
17972 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17973 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017975$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017976if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17977 $as_echo_n "(cached) " >&6
17978else
17979 $RM conftest*
17980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017981
cristyfd9dcd42010-08-08 18:07:02 +000017982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017983 (eval $ac_compile) 2>&5
17984 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017987 soname=conftest
17988 lib=conftest
17989 libobjs=conftest.$ac_objext
17990 deplibs=
17991 wl=$lt_prog_compiler_wl_CXX
17992 pic_flag=$lt_prog_compiler_pic_CXX
17993 compiler_flags=-v
17994 linker_flags=-v
17995 verstring=
17996 output_objdir=.
17997 libname=conftest
17998 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17999 allow_undefined_flag_CXX=
18000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018001 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18002 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18004 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000018005 then
18006 lt_cv_archive_cmds_need_lc_CXX=no
18007 else
18008 lt_cv_archive_cmds_need_lc_CXX=yes
18009 fi
18010 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18011 else
18012 cat conftest.err 1>&5
18013 fi
18014 $RM conftest*
18015
18016fi
18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18018$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18019 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018020 ;;
18021 esac
18022 fi
18023 ;;
18024esac
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
cristy8b350f62009-11-15 23:12:43 +000018089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018090$as_echo_n "checking dynamic linker characteristics... " >&6; }
18091
18092library_names_spec=
18093libname_spec='lib$name'
18094soname_spec=
18095shrext_cmds=".so"
18096postinstall_cmds=
18097postuninstall_cmds=
18098finish_cmds=
18099finish_eval=
18100shlibpath_var=
18101shlibpath_overrides_runpath=unknown
18102version_type=none
18103dynamic_linker="$host_os ld.so"
18104sys_lib_dlsearch_path_spec="/lib /usr/lib"
18105need_lib_prefix=unknown
18106hardcode_into_libs=no
18107
18108# when you set need_version to no, make sure it does not cause -set_version
18109# flags to be left without arguments
18110need_version=unknown
18111
18112case $host_os in
18113aix3*)
18114 version_type=linux
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18116 shlibpath_var=LIBPATH
18117
18118 # AIX 3 has no versioning support, so we append a major version to the name.
18119 soname_spec='${libname}${release}${shared_ext}$major'
18120 ;;
18121
18122aix[4-9]*)
18123 version_type=linux
18124 need_lib_prefix=no
18125 need_version=no
18126 hardcode_into_libs=yes
18127 if test "$host_cpu" = ia64; then
18128 # AIX 5 supports IA64
18129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18130 shlibpath_var=LD_LIBRARY_PATH
18131 else
18132 # With GCC up to 2.95.x, collect2 would create an import file
18133 # for dependence libraries. The import file would start with
18134 # the line `#! .'. This would cause the generated library to
18135 # depend on `.', always an invalid library. This was fixed in
18136 # development snapshots of GCC prior to 3.0.
18137 case $host_os in
18138 aix4 | aix4.[01] | aix4.[01].*)
18139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18140 echo ' yes '
18141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18142 :
18143 else
18144 can_build_shared=no
18145 fi
18146 ;;
18147 esac
18148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18149 # soname into executable. Probably we can add versioning support to
18150 # collect2, so additional links can be useful in future.
18151 if test "$aix_use_runtimelinking" = yes; then
18152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18153 # instead of lib<name>.a to let people know that these are not
18154 # typical AIX shared libraries.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 else
18157 # We preserve .a as extension for shared libraries through AIX4.2
18158 # and later when we are not doing run time linking.
18159 library_names_spec='${libname}${release}.a $libname.a'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 fi
18162 shlibpath_var=LIBPATH
18163 fi
18164 ;;
18165
18166amigaos*)
18167 case $host_cpu in
18168 powerpc)
18169 # Since July 2007 AmigaOS4 officially supports .so libraries.
18170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 ;;
18173 m68k)
18174 library_names_spec='$libname.ixlibrary $libname.a'
18175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018176 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'
cristy3ed852e2009-09-05 21:47:34 +000018177 ;;
18178 esac
18179 ;;
18180
18181beos*)
18182 library_names_spec='${libname}${shared_ext}'
18183 dynamic_linker="$host_os ld.so"
18184 shlibpath_var=LIBRARY_PATH
18185 ;;
18186
18187bsdi[45]*)
18188 version_type=linux
18189 need_version=no
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18196 # the default ld.so.conf also contains /usr/contrib/lib and
18197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18198 # libtool to hard-code these into programs
18199 ;;
18200
18201cygwin* | mingw* | pw32* | cegcc*)
18202 version_type=windows
18203 shrext_cmds=".dll"
18204 need_version=no
18205 need_lib_prefix=no
18206
18207 case $GCC,$host_os in
18208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18209 library_names_spec='$libname.dll.a'
18210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18211 postinstall_cmds='base_file=`basename \${file}`~
18212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18213 dldir=$destdir/`dirname \$dlpath`~
18214 test -d \$dldir || mkdir -p \$dldir~
18215 $install_prog $dir/$dlname \$dldir/$dlname~
18216 chmod a+x \$dldir/$dlname~
18217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18219 fi'
18220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18221 dlpath=$dir/\$dldll~
18222 $RM \$dlpath'
18223 shlibpath_overrides_runpath=yes
18224
18225 case $host_os in
18226 cygwin*)
18227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018229
cristy3ed852e2009-09-05 21:47:34 +000018230 ;;
18231 mingw* | cegcc*)
18232 # MinGW DLLs use traditional 'lib' prefix
18233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018234 ;;
18235 pw32*)
18236 # pw32 DLLs use 'pw' prefix rather than 'lib'
18237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18238 ;;
18239 esac
18240 ;;
18241
18242 *)
18243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18244 ;;
18245 esac
18246 dynamic_linker='Win32 ld.exe'
18247 # FIXME: first we should search . and the directory the executable is in
18248 shlibpath_var=PATH
18249 ;;
18250
18251darwin* | rhapsody*)
18252 dynamic_linker="$host_os dyld"
18253 version_type=darwin
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18257 soname_spec='${libname}${release}${major}$shared_ext'
18258 shlibpath_overrides_runpath=yes
18259 shlibpath_var=DYLD_LIBRARY_PATH
18260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18261
18262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18263 ;;
18264
18265dgux*)
18266 version_type=linux
18267 need_lib_prefix=no
18268 need_version=no
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 ;;
18273
18274freebsd1*)
18275 dynamic_linker=no
18276 ;;
18277
18278freebsd* | dragonfly*)
18279 # DragonFly does not have aout. When/if they implement a new
18280 # versioning mechanism, adjust this.
18281 if test -x /usr/bin/objformat; then
18282 objformat=`/usr/bin/objformat`
18283 else
18284 case $host_os in
18285 freebsd[123]*) objformat=aout ;;
18286 *) objformat=elf ;;
18287 esac
18288 fi
18289 version_type=freebsd-$objformat
18290 case $version_type in
18291 freebsd-elf*)
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18293 need_version=no
18294 need_lib_prefix=no
18295 ;;
18296 freebsd-*)
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18298 need_version=yes
18299 ;;
18300 esac
18301 shlibpath_var=LD_LIBRARY_PATH
18302 case $host_os in
18303 freebsd2*)
18304 shlibpath_overrides_runpath=yes
18305 ;;
18306 freebsd3.[01]* | freebsdelf3.[01]*)
18307 shlibpath_overrides_runpath=yes
18308 hardcode_into_libs=yes
18309 ;;
18310 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18311 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18312 shlibpath_overrides_runpath=no
18313 hardcode_into_libs=yes
18314 ;;
18315 *) # from 4.6 on, and DragonFly
18316 shlibpath_overrides_runpath=yes
18317 hardcode_into_libs=yes
18318 ;;
18319 esac
18320 ;;
18321
18322gnu*)
18323 version_type=linux
18324 need_lib_prefix=no
18325 need_version=no
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18327 soname_spec='${libname}${release}${shared_ext}$major'
18328 shlibpath_var=LD_LIBRARY_PATH
18329 hardcode_into_libs=yes
18330 ;;
18331
cristyfd9dcd42010-08-08 18:07:02 +000018332haiku*)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 dynamic_linker="$host_os runtime_loader"
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18338 soname_spec='${libname}${release}${shared_ext}$major'
18339 shlibpath_var=LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes
18341 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18342 hardcode_into_libs=yes
18343 ;;
18344
cristy3ed852e2009-09-05 21:47:34 +000018345hpux9* | hpux10* | hpux11*)
18346 # Give a soname corresponding to the major version so that dld.sl refuses to
18347 # link against other versions.
18348 version_type=sunos
18349 need_lib_prefix=no
18350 need_version=no
18351 case $host_cpu in
18352 ia64*)
18353 shrext_cmds='.so'
18354 hardcode_into_libs=yes
18355 dynamic_linker="$host_os dld.so"
18356 shlibpath_var=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 if test "X$HPUX_IA64_MODE" = X32; then
18361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18362 else
18363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18364 fi
18365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18366 ;;
18367 hppa*64*)
18368 shrext_cmds='.sl'
18369 hardcode_into_libs=yes
18370 dynamic_linker="$host_os dld.sl"
18371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18377 ;;
18378 *)
18379 shrext_cmds='.sl'
18380 dynamic_linker="$host_os dld.sl"
18381 shlibpath_var=SHLIB_PATH
18382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18384 soname_spec='${libname}${release}${shared_ext}$major'
18385 ;;
18386 esac
cristyfd9dcd42010-08-08 18:07:02 +000018387 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018388 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018389 # or fails outright, so override atomically:
18390 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018391 ;;
18392
18393interix[3-9]*)
18394 version_type=linux
18395 need_lib_prefix=no
18396 need_version=no
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 shlibpath_overrides_runpath=no
18402 hardcode_into_libs=yes
18403 ;;
18404
18405irix5* | irix6* | nonstopux*)
18406 case $host_os in
18407 nonstopux*) version_type=nonstopux ;;
18408 *)
18409 if test "$lt_cv_prog_gnu_ld" = yes; then
18410 version_type=linux
18411 else
18412 version_type=irix
18413 fi ;;
18414 esac
18415 need_lib_prefix=no
18416 need_version=no
18417 soname_spec='${libname}${release}${shared_ext}$major'
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18419 case $host_os in
18420 irix5* | nonstopux*)
18421 libsuff= shlibsuff=
18422 ;;
18423 *)
18424 case $LD in # libtool.m4 will add one of these switches to LD
18425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18426 libsuff= shlibsuff= libmagic=32-bit;;
18427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18428 libsuff=32 shlibsuff=N32 libmagic=N32;;
18429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18430 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18431 *) libsuff= shlibsuff= libmagic=never-match;;
18432 esac
18433 ;;
18434 esac
18435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18436 shlibpath_overrides_runpath=no
18437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18439 hardcode_into_libs=yes
18440 ;;
18441
18442# No shared lib support for Linux oldld, aout, or coff.
18443linux*oldld* | linux*aout* | linux*coff*)
18444 dynamic_linker=no
18445 ;;
18446
18447# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018448linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018449 version_type=linux
18450 need_lib_prefix=no
18451 need_version=no
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018457
cristy3ed852e2009-09-05 21:47:34 +000018458 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018459 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18460 $as_echo_n "(cached) " >&6
18461else
18462 lt_cv_shlibpath_overrides_runpath=no
18463 save_LDFLAGS=$LDFLAGS
18464 save_libdir=$libdir
18465 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18466 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018468/* end confdefs.h. */
18469
18470int
18471main ()
18472{
18473
18474 ;
18475 return 0;
18476}
18477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018478if ac_fn_cxx_try_link "$LINENO"; then :
18479 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018480 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018481fi
cristy3ed852e2009-09-05 21:47:34 +000018482fi
cristy8b350f62009-11-15 23:12:43 +000018483rm -f core conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018485 LDFLAGS=$save_LDFLAGS
18486 libdir=$save_libdir
18487
18488fi
18489
18490 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018491
18492 # This implies no fast_install, which is unacceptable.
18493 # Some rework will be needed to allow for fast_install
18494 # before this can be enabled.
18495 hardcode_into_libs=yes
18496
cristy679ed8e2009-12-05 02:37:41 +000018497 # Add ABI-specific directories to the system library path.
18498 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18499
cristy3ed852e2009-09-05 21:47:34 +000018500 # Append ld.so.conf contents to the search path
18501 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018502 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018503 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018504
cristy3ed852e2009-09-05 21:47:34 +000018505 fi
18506
18507 # We used to test for /lib/ld.so.1 and disable shared libraries on
18508 # powerpc, because MkLinux only supported shared libraries with the
18509 # GNU dynamic linker. Since this was broken with cross compilers,
18510 # most powerpc-linux boxes support dynamic linking these days and
18511 # people can always --disable-shared, the test was removed, and we
18512 # assume the GNU/Linux dynamic linker is in use.
18513 dynamic_linker='GNU/Linux ld.so'
18514 ;;
18515
18516netbsd*)
18517 version_type=sunos
18518 need_lib_prefix=no
18519 need_version=no
18520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18523 dynamic_linker='NetBSD (a.out) ld.so'
18524 else
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18526 soname_spec='${libname}${release}${shared_ext}$major'
18527 dynamic_linker='NetBSD ld.elf_so'
18528 fi
18529 shlibpath_var=LD_LIBRARY_PATH
18530 shlibpath_overrides_runpath=yes
18531 hardcode_into_libs=yes
18532 ;;
18533
18534newsos6)
18535 version_type=linux
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 shlibpath_var=LD_LIBRARY_PATH
18538 shlibpath_overrides_runpath=yes
18539 ;;
18540
18541*nto* | *qnx*)
18542 version_type=qnx
18543 need_lib_prefix=no
18544 need_version=no
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18546 soname_spec='${libname}${release}${shared_ext}$major'
18547 shlibpath_var=LD_LIBRARY_PATH
18548 shlibpath_overrides_runpath=no
18549 hardcode_into_libs=yes
18550 dynamic_linker='ldqnx.so'
18551 ;;
18552
18553openbsd*)
18554 version_type=sunos
18555 sys_lib_dlsearch_path_spec="/usr/lib"
18556 need_lib_prefix=no
18557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18558 case $host_os in
18559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18560 *) need_version=no ;;
18561 esac
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18566 case $host_os in
18567 openbsd2.[89] | openbsd2.[89].*)
18568 shlibpath_overrides_runpath=no
18569 ;;
18570 *)
18571 shlibpath_overrides_runpath=yes
18572 ;;
18573 esac
18574 else
18575 shlibpath_overrides_runpath=yes
18576 fi
18577 ;;
18578
18579os2*)
18580 libname_spec='$name'
18581 shrext_cmds=".dll"
18582 need_lib_prefix=no
18583 library_names_spec='$libname${shared_ext} $libname.a'
18584 dynamic_linker='OS/2 ld.exe'
18585 shlibpath_var=LIBPATH
18586 ;;
18587
18588osf3* | osf4* | osf5*)
18589 version_type=osf
18590 need_lib_prefix=no
18591 need_version=no
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18597 ;;
18598
18599rdos*)
18600 dynamic_linker=no
18601 ;;
18602
18603solaris*)
18604 version_type=linux
18605 need_lib_prefix=no
18606 need_version=no
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 shlibpath_var=LD_LIBRARY_PATH
18610 shlibpath_overrides_runpath=yes
18611 hardcode_into_libs=yes
18612 # ldd complains unless libraries are executable
18613 postinstall_cmds='chmod +x $lib'
18614 ;;
18615
18616sunos4*)
18617 version_type=sunos
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 shlibpath_overrides_runpath=yes
18622 if test "$with_gnu_ld" = yes; then
18623 need_lib_prefix=no
18624 fi
18625 need_version=yes
18626 ;;
18627
18628sysv4 | sysv4.3*)
18629 version_type=linux
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 shlibpath_var=LD_LIBRARY_PATH
18633 case $host_vendor in
18634 sni)
18635 shlibpath_overrides_runpath=no
18636 need_lib_prefix=no
18637 runpath_var=LD_RUN_PATH
18638 ;;
18639 siemens)
18640 need_lib_prefix=no
18641 ;;
18642 motorola)
18643 need_lib_prefix=no
18644 need_version=no
18645 shlibpath_overrides_runpath=no
18646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18647 ;;
18648 esac
18649 ;;
18650
18651sysv4*MP*)
18652 if test -d /usr/nec ;then
18653 version_type=linux
18654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18655 soname_spec='$libname${shared_ext}.$major'
18656 shlibpath_var=LD_LIBRARY_PATH
18657 fi
18658 ;;
18659
18660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18661 version_type=freebsd-elf
18662 need_lib_prefix=no
18663 need_version=no
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18666 shlibpath_var=LD_LIBRARY_PATH
18667 shlibpath_overrides_runpath=yes
18668 hardcode_into_libs=yes
18669 if test "$with_gnu_ld" = yes; then
18670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18671 else
18672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18673 case $host_os in
18674 sco3.2v5*)
18675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18676 ;;
18677 esac
18678 fi
18679 sys_lib_dlsearch_path_spec='/usr/lib'
18680 ;;
18681
18682tpf*)
18683 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18684 version_type=linux
18685 need_lib_prefix=no
18686 need_version=no
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=no
18690 hardcode_into_libs=yes
18691 ;;
18692
18693uts4*)
18694 version_type=linux
18695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18696 soname_spec='${libname}${release}${shared_ext}$major'
18697 shlibpath_var=LD_LIBRARY_PATH
18698 ;;
18699
18700*)
18701 dynamic_linker=no
18702 ;;
18703esac
cristy8b350f62009-11-15 23:12:43 +000018704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018705$as_echo "$dynamic_linker" >&6; }
18706test "$dynamic_linker" = no && can_build_shared=no
18707
18708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18709if test "$GCC" = yes; then
18710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18711fi
18712
18713if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18714 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18715fi
18716if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18717 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18718fi
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
cristyfd9dcd42010-08-08 18:07:02 +000018755
18756
cristy8b350f62009-11-15 23:12:43 +000018757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018758$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18759hardcode_action_CXX=
18760if test -n "$hardcode_libdir_flag_spec_CXX" ||
18761 test -n "$runpath_var_CXX" ||
18762 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18763
18764 # We can hardcode non-existent directories.
18765 if test "$hardcode_direct_CXX" != no &&
18766 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18767 # have to relink, otherwise we might link with an installed library
18768 # when we should be linking with a yet-to-be-installed one
18769 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18770 test "$hardcode_minus_L_CXX" != no; then
18771 # Linking always hardcodes the temporary library directory.
18772 hardcode_action_CXX=relink
18773 else
18774 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18775 hardcode_action_CXX=immediate
18776 fi
18777else
18778 # We cannot hardcode anything, or else we can only hardcode existing
18779 # directories.
18780 hardcode_action_CXX=unsupported
18781fi
cristy8b350f62009-11-15 23:12:43 +000018782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018783$as_echo "$hardcode_action_CXX" >&6; }
18784
18785if test "$hardcode_action_CXX" = relink ||
18786 test "$inherit_rpath_CXX" = yes; then
18787 # Fast installation is not supported
18788 enable_fast_install=no
18789elif test "$shlibpath_overrides_runpath" = yes ||
18790 test "$enable_shared" = no; then
18791 # Fast installation is not necessary
18792 enable_fast_install=needless
18793fi
18794
18795
18796
18797
18798
18799
18800
18801 fi # test -n "$compiler"
18802
18803 CC=$lt_save_CC
18804 LDCXX=$LD
18805 LD=$lt_save_LD
18806 GCC=$lt_save_GCC
18807 with_gnu_ld=$lt_save_with_gnu_ld
18808 lt_cv_path_LDCXX=$lt_cv_path_LD
18809 lt_cv_path_LD=$lt_save_path_LD
18810 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18811 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18812fi # test "$_lt_caught_CXX_error" != yes
18813
18814ac_ext=c
18815ac_cpp='$CPP $CPPFLAGS'
18816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818ac_compiler_gnu=$ac_cv_c_compiler_gnu
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832 ac_config_commands="$ac_config_commands libtool"
18833
18834
18835
18836
18837# Only expand once:
18838
18839
18840
18841
18842
18843# Configure libltdl
18844
18845
18846
18847
18848
18849
18850
cristy8b350f62009-11-15 23:12:43 +000018851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018852$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018853if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018854 $as_echo_n "(cached) " >&6
18855else
18856
18857module=yes
18858eval libltdl_cv_shlibext=$shrext_cmds
18859
18860fi
cristy8b350f62009-11-15 23:12:43 +000018861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018862$as_echo "$libltdl_cv_shlibext" >&6; }
18863if test -n "$libltdl_cv_shlibext"; then
18864
18865cat >>confdefs.h <<_ACEOF
18866#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18867_ACEOF
18868
18869fi
18870
cristy8b350f62009-11-15 23:12:43 +000018871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018872$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018873if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018874 $as_echo_n "(cached) " >&6
18875else
18876 lt_cv_module_path_var="$shlibpath_var"
18877fi
cristy8b350f62009-11-15 23:12:43 +000018878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018879$as_echo "$lt_cv_module_path_var" >&6; }
18880if test -n "$lt_cv_module_path_var"; then
18881
18882cat >>confdefs.h <<_ACEOF
18883#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18884_ACEOF
18885
18886fi
18887
cristy8b350f62009-11-15 23:12:43 +000018888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018889$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018890if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018891 $as_echo_n "(cached) " >&6
18892else
18893 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18894fi
cristy8b350f62009-11-15 23:12:43 +000018895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018896$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18897if test -n "$lt_cv_sys_dlsearch_path"; then
18898 sys_dlsearch_path=
18899 for dir in $lt_cv_sys_dlsearch_path; do
18900 if test -z "$sys_dlsearch_path"; then
18901 sys_dlsearch_path="$dir"
18902 else
18903 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18904 fi
18905 done
18906
18907cat >>confdefs.h <<_ACEOF
18908#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18909_ACEOF
18910
18911fi
18912
18913
18914LT_DLLOADERS=
18915
18916
18917ac_ext=c
18918ac_cpp='$CPP $CPPFLAGS'
18919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921ac_compiler_gnu=$ac_cv_c_compiler_gnu
18922
18923
18924LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018926$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018927if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018928 $as_echo_n "(cached) " >&6
18929else
18930 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018932/* end confdefs.h. */
18933
18934/* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18937#ifdef __cplusplus
18938extern "C"
18939#endif
18940char dlopen ();
18941int
18942main ()
18943{
18944return dlopen ();
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949for ac_lib in '' dl; do
18950 if test -z "$ac_lib"; then
18951 ac_res="none required"
18952 else
18953 ac_res=-l$ac_lib
18954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18955 fi
cristy8b350f62009-11-15 23:12:43 +000018956 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018957 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018958fi
cristy8b350f62009-11-15 23:12:43 +000018959rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext
18961 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018962 break
18963fi
18964done
cristy8b350f62009-11-15 23:12:43 +000018965if test "${ac_cv_search_dlopen+set}" = set; then :
18966
cristy3ed852e2009-09-05 21:47:34 +000018967else
18968 ac_cv_search_dlopen=no
18969fi
18970rm conftest.$ac_ext
18971LIBS=$ac_func_search_save_LIBS
18972fi
cristy8b350f62009-11-15 23:12:43 +000018973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018974$as_echo "$ac_cv_search_dlopen" >&6; }
18975ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018976if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18978
cristy8b350f62009-11-15 23:12:43 +000018979$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018980
18981 if test "$ac_cv_search_dlopen" != "none required" ; then
18982 LIBADD_DLOPEN="-ldl"
18983 fi
18984 libltdl_cv_lib_dl_dlopen="yes"
18985 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18986else
cristy8b350f62009-11-15 23:12:43 +000018987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018988/* end confdefs.h. */
18989#if HAVE_DLFCN_H
18990# include <dlfcn.h>
18991#endif
18992
18993int
18994main ()
18995{
18996dlopen(0, 0);
18997 ;
18998 return 0;
18999}
19000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019002
cristy8b350f62009-11-15 23:12:43 +000019003$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019004
19005 libltdl_cv_func_dlopen="yes"
19006 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19007else
cristy8b350f62009-11-15 23:12:43 +000019008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019009$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019010if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019011 $as_echo_n "(cached) " >&6
19012else
19013 ac_check_lib_save_LIBS=$LIBS
19014LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019016/* end confdefs.h. */
19017
19018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021#ifdef __cplusplus
19022extern "C"
19023#endif
19024char dlopen ();
19025int
19026main ()
19027{
19028return dlopen ();
19029 ;
19030 return 0;
19031}
19032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019034 ac_cv_lib_svld_dlopen=yes
19035else
cristy8b350f62009-11-15 23:12:43 +000019036 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019037fi
cristy8b350f62009-11-15 23:12:43 +000019038rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019040LIBS=$ac_check_lib_save_LIBS
19041fi
cristy8b350f62009-11-15 23:12:43 +000019042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019043$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019044if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019045
cristy8b350f62009-11-15 23:12:43 +000019046$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019047
19048 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19049 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19050fi
19051
19052fi
cristy8b350f62009-11-15 23:12:43 +000019053rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019055fi
19056
19057if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19058then
19059 lt_save_LIBS="$LIBS"
19060 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019061 for ac_func in dlerror
19062do :
19063 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19064if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019065 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019066#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019067_ACEOF
19068
19069fi
19070done
19071
19072 LIBS="$lt_save_LIBS"
19073fi
19074
19075
19076LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019077ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19078if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019079
cristy8b350f62009-11-15 23:12:43 +000019080$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019081
19082 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19083else
cristy8b350f62009-11-15 23:12:43 +000019084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019085$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019086if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019087 $as_echo_n "(cached) " >&6
19088else
19089 ac_check_lib_save_LIBS=$LIBS
19090LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019092/* end confdefs.h. */
19093
19094/* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19097#ifdef __cplusplus
19098extern "C"
19099#endif
19100char shl_load ();
19101int
19102main ()
19103{
19104return shl_load ();
19105 ;
19106 return 0;
19107}
19108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019110 ac_cv_lib_dld_shl_load=yes
19111else
cristy8b350f62009-11-15 23:12:43 +000019112 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019113fi
cristy8b350f62009-11-15 23:12:43 +000019114rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019116LIBS=$ac_check_lib_save_LIBS
19117fi
cristy8b350f62009-11-15 23:12:43 +000019118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019119$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019120if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019121
cristy8b350f62009-11-15 23:12:43 +000019122$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019123
19124 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19125 LIBADD_SHL_LOAD="-ldld"
19126fi
19127
19128fi
19129
19130
19131
19132case $host_os in
19133darwin[1567].*)
19134# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019135 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19136if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019137
cristy8b350f62009-11-15 23:12:43 +000019138$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019139
19140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19141fi
19142
19143 ;;
19144beos*)
19145 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19146 ;;
19147cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019148 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19149"
19150if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19151 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019152else
cristy8b350f62009-11-15 23:12:43 +000019153 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019154fi
19155
cristy3ed852e2009-09-05 21:47:34 +000019156cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019157#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019158_ACEOF
19159
cristy3ed852e2009-09-05 21:47:34 +000019160 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19161 ;;
19162esac
19163
cristy8b350f62009-11-15 23:12:43 +000019164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019165$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019166if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019167 $as_echo_n "(cached) " >&6
19168else
19169 ac_check_lib_save_LIBS=$LIBS
19170LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019172/* end confdefs.h. */
19173
19174/* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19177#ifdef __cplusplus
19178extern "C"
19179#endif
19180char dld_link ();
19181int
19182main ()
19183{
19184return dld_link ();
19185 ;
19186 return 0;
19187}
19188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019190 ac_cv_lib_dld_dld_link=yes
19191else
cristy8b350f62009-11-15 23:12:43 +000019192 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019193fi
cristy8b350f62009-11-15 23:12:43 +000019194rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019196LIBS=$ac_check_lib_save_LIBS
19197fi
cristy8b350f62009-11-15 23:12:43 +000019198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019199$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019200if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019201
cristy8b350f62009-11-15 23:12:43 +000019202$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019203
19204 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19205fi
19206
19207
19208
19209
19210LT_DLPREOPEN=
19211if test -n "$LT_DLLOADERS"
19212then
19213 for lt_loader in $LT_DLLOADERS; do
19214 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19215 done
19216
cristy8b350f62009-11-15 23:12:43 +000019217$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019218
19219fi
19220
19221
19222LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19223
19224
19225ac_ext=c
19226ac_cpp='$CPP $CPPFLAGS'
19227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230
19231
cristy8b350f62009-11-15 23:12:43 +000019232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019233$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019234if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019235 $as_echo_n "(cached) " >&6
19236else
19237 lt_cv_sys_symbol_underscore=no
19238 cat > conftest.$ac_ext <<_LT_EOF
19239void nm_test_func(){}
19240int main(){nm_test_func;return 0;}
19241_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019243 (eval $ac_compile) 2>&5
19244 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19246 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019247 # Now try to grab the symbols.
19248 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19251 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19253 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019254 # See whether the symbols have a leading underscore.
19255 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19256 lt_cv_sys_symbol_underscore=yes
19257 else
19258 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19259 :
19260 else
19261 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19262 fi
19263 fi
19264 else
19265 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19266 fi
19267 else
19268 echo "configure: failed program was:" >&5
19269 cat conftest.c >&5
19270 fi
19271 rm -rf conftest*
19272
19273fi
cristy8b350f62009-11-15 23:12:43 +000019274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019275$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19276 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19277
19278
19279if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19280 if test x"$libltdl_cv_func_dlopen" = xyes ||
19281 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019283$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019284if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019285 $as_echo_n "(cached) " >&6
19286else
19287 libltdl_cv_need_uscore=unknown
19288 save_LIBS="$LIBS"
19289 LIBS="$LIBS $LIBADD_DLOPEN"
19290 if test "$cross_compiling" = yes; then :
19291 libltdl_cv_need_uscore=cross
19292else
19293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19294 lt_status=$lt_dlunknown
19295 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019296#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019297#include "confdefs.h"
19298
19299#if HAVE_DLFCN_H
19300#include <dlfcn.h>
19301#endif
19302
19303#include <stdio.h>
19304
19305#ifdef RTLD_GLOBAL
19306# define LT_DLGLOBAL RTLD_GLOBAL
19307#else
19308# ifdef DL_GLOBAL
19309# define LT_DLGLOBAL DL_GLOBAL
19310# else
19311# define LT_DLGLOBAL 0
19312# endif
19313#endif
19314
19315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19316 find out it does not work in some platform. */
19317#ifndef LT_DLLAZY_OR_NOW
19318# ifdef RTLD_LAZY
19319# define LT_DLLAZY_OR_NOW RTLD_LAZY
19320# else
19321# ifdef DL_LAZY
19322# define LT_DLLAZY_OR_NOW DL_LAZY
19323# else
19324# ifdef RTLD_NOW
19325# define LT_DLLAZY_OR_NOW RTLD_NOW
19326# else
19327# ifdef DL_NOW
19328# define LT_DLLAZY_OR_NOW DL_NOW
19329# else
19330# define LT_DLLAZY_OR_NOW 0
19331# endif
19332# endif
19333# endif
19334# endif
19335#endif
19336
cristyfd9dcd42010-08-08 18:07:02 +000019337/* When -fvisbility=hidden is used, assume the code has been annotated
19338 correspondingly for the symbols needed. */
19339#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19340void fnord () __attribute__((visibility("default")));
19341#endif
19342
19343void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019344int main ()
19345{
19346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19347 int status = $lt_dlunknown;
19348
19349 if (self)
19350 {
19351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019352 else
19353 {
19354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19355 else puts (dlerror ());
19356 }
cristy3ed852e2009-09-05 21:47:34 +000019357 /* dlclose (self); */
19358 }
19359 else
19360 puts (dlerror ());
19361
19362 return status;
19363}
19364_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019366 (eval $ac_link) 2>&5
19367 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019370 (./conftest; exit; ) >&5 2>/dev/null
19371 lt_status=$?
19372 case x$lt_status in
19373 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19374 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19375 x$lt_dlunknown|x*) ;;
19376 esac
19377 else :
19378 # compilation failed
19379
19380 fi
19381fi
19382rm -fr conftest*
19383
19384 LIBS="$save_LIBS"
19385
19386fi
cristy8b350f62009-11-15 23:12:43 +000019387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019388$as_echo "$libltdl_cv_need_uscore" >&6; }
19389 fi
19390fi
19391
19392if test x"$libltdl_cv_need_uscore" = xyes; then
19393
cristy8b350f62009-11-15 23:12:43 +000019394$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019395
19396fi
19397
cristy8b350f62009-11-15 23:12:43 +000019398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019399$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019400if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019401 $as_echo_n "(cached) " >&6
19402else
19403 # PORTME does your system automatically load deplibs for dlopen?
19404 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19405 # For now, we just catch OSes we know something about -- in the
19406 # future, we'll try test this programmatically.
19407 lt_cv_sys_dlopen_deplibs=unknown
19408 case $host_os in
19409 aix3*|aix4.1.*|aix4.2.*)
19410 # Unknown whether this is true for these versions of AIX, but
19411 # we want this `case' here to explicitly catch those versions.
19412 lt_cv_sys_dlopen_deplibs=unknown
19413 ;;
19414 aix[4-9]*)
19415 lt_cv_sys_dlopen_deplibs=yes
19416 ;;
19417 amigaos*)
19418 case $host_cpu in
19419 powerpc)
19420 lt_cv_sys_dlopen_deplibs=no
19421 ;;
19422 esac
19423 ;;
19424 darwin*)
19425 # Assuming the user has installed a libdl from somewhere, this is true
19426 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19427 lt_cv_sys_dlopen_deplibs=yes
19428 ;;
19429 freebsd* | dragonfly*)
19430 lt_cv_sys_dlopen_deplibs=yes
19431 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019432 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019433 # GNU and its variants, using gnu ld.so (Glibc)
19434 lt_cv_sys_dlopen_deplibs=yes
19435 ;;
19436 hpux10*|hpux11*)
19437 lt_cv_sys_dlopen_deplibs=yes
19438 ;;
19439 interix*)
19440 lt_cv_sys_dlopen_deplibs=yes
19441 ;;
19442 irix[12345]*|irix6.[01]*)
19443 # Catch all versions of IRIX before 6.2, and indicate that we don't
19444 # know how it worked for any of those versions.
19445 lt_cv_sys_dlopen_deplibs=unknown
19446 ;;
19447 irix*)
19448 # The case above catches anything before 6.2, and it's known that
19449 # at 6.2 and later dlopen does load deplibs.
19450 lt_cv_sys_dlopen_deplibs=yes
19451 ;;
19452 netbsd*)
19453 lt_cv_sys_dlopen_deplibs=yes
19454 ;;
19455 openbsd*)
19456 lt_cv_sys_dlopen_deplibs=yes
19457 ;;
19458 osf[1234]*)
19459 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19460 # it did *not* use an RPATH in a shared library to find objects the
19461 # library depends on, so we explicitly say `no'.
19462 lt_cv_sys_dlopen_deplibs=no
19463 ;;
19464 osf5.0|osf5.0a|osf5.1)
19465 # dlopen *does* load deplibs and with the right loader patch applied
19466 # it even uses RPATH in a shared library to search for shared objects
19467 # that the library depends on, but there's no easy way to know if that
19468 # patch is installed. Since this is the case, all we can really
19469 # say is unknown -- it depends on the patch being installed. If
19470 # it is, this changes to `yes'. Without it, it would be `no'.
19471 lt_cv_sys_dlopen_deplibs=unknown
19472 ;;
19473 osf*)
19474 # the two cases above should catch all versions of osf <= 5.1. Read
19475 # the comments above for what we know about them.
19476 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19477 # is used to find them so we can finally say `yes'.
19478 lt_cv_sys_dlopen_deplibs=yes
19479 ;;
19480 qnx*)
19481 lt_cv_sys_dlopen_deplibs=yes
19482 ;;
19483 solaris*)
19484 lt_cv_sys_dlopen_deplibs=yes
19485 ;;
19486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19487 libltdl_cv_sys_dlopen_deplibs=yes
19488 ;;
19489 esac
19490
19491fi
cristy8b350f62009-11-15 23:12:43 +000019492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019493$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19494if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19495
cristy8b350f62009-11-15 23:12:43 +000019496$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019497
19498fi
19499
19500:
19501
cristy3ed852e2009-09-05 21:47:34 +000019502for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019503do :
19504 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19505"
19506if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019507 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019508#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019509_ACEOF
19510
19511fi
19512
19513done
19514
19515
cristy8b350f62009-11-15 23:12:43 +000019516ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019517# include <argz.h>
19518#endif
cristy8b350f62009-11-15 23:12:43 +000019519"
19520if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019521
19522cat >>confdefs.h <<_ACEOF
19523#define HAVE_ERROR_T 1
19524_ACEOF
19525
19526
19527else
19528
cristy8b350f62009-11-15 23:12:43 +000019529$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019530
19531
cristy8b350f62009-11-15 23:12:43 +000019532$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019533
19534fi
19535
19536
19537ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019538for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19539 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019540do :
19541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19542ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019543if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019544 cat >>confdefs.h <<_ACEOF
19545#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19546_ACEOF
19547
19548else
19549 ARGZ_H=argz.h;
19550
19551 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19552
19553fi
19554done
19555
19556
cristy8b350f62009-11-15 23:12:43 +000019557if test -z "$ARGZ_H"; then :
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019559$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019560if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019561 $as_echo_n "(cached) " >&6
19562else
19563 case $host_os in #(
19564 *cygwin*)
19565 lt_cv_sys_argz_works=no
19566 if test "$cross_compiling" != no; then
19567 lt_cv_sys_argz_works="guessing no"
19568 else
19569 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19570 save_IFS=$IFS
19571 IFS=-.
19572 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19573 IFS=$save_IFS
19574 lt_os_major=${2-0}
19575 lt_os_minor=${3-0}
19576 lt_os_micro=${4-0}
19577 if test "$lt_os_major" -gt 1 \
19578 || { test "$lt_os_major" -eq 1 \
19579 && { test "$lt_os_minor" -gt 5 \
19580 || { test "$lt_os_minor" -eq 5 \
19581 && test "$lt_os_micro" -gt 24; }; }; }; then
19582 lt_cv_sys_argz_works=yes
19583 fi
19584 fi
19585 ;; #(
19586 *) lt_cv_sys_argz_works=yes ;;
19587 esac
19588fi
cristy8b350f62009-11-15 23:12:43 +000019589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019590$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019591 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019592
cristy8b350f62009-11-15 23:12:43 +000019593$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019594
19595else
19596 ARGZ_H=argz.h
19597
19598
19599 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19600
19601fi
cristy3ed852e2009-09-05 21:47:34 +000019602fi
19603
19604
19605
cristy8b350f62009-11-15 23:12:43 +000019606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019607$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019608if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019609 $as_echo_n "(cached) " >&6
19610else
19611 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19612 libltdl_cv_preloaded_symbols=yes
19613 else
19614 libltdl_cv_preloaded_symbols=no
19615 fi
19616
19617fi
cristy8b350f62009-11-15 23:12:43 +000019618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019619$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19620if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19621
cristy8b350f62009-11-15 23:12:43 +000019622$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019623
19624fi
19625
19626# Set options
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019639if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019640 withval=$with_included_ltdl;
19641fi
19642
19643
19644if test "x$with_included_ltdl" != xyes; then
19645 # We are not being forced to use the included libltdl sources, so
19646 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019647 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019648
cristy8b350f62009-11-15 23:12:43 +000019649"
19650if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19651 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019652 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019653"
19654if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019656$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019657if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019658 $as_echo_n "(cached) " >&6
19659else
19660 ac_check_lib_save_LIBS=$LIBS
19661LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019663/* end confdefs.h. */
19664
19665/* Override any GCC internal prototype to avoid an error.
19666 Use char because int might match the return type of a GCC
19667 builtin and then its argument prototype would still apply. */
19668#ifdef __cplusplus
19669extern "C"
19670#endif
19671char lt_dladvise_preload ();
19672int
19673main ()
19674{
19675return lt_dladvise_preload ();
19676 ;
19677 return 0;
19678}
19679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019681 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19682else
cristy8b350f62009-11-15 23:12:43 +000019683 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019684fi
cristy8b350f62009-11-15 23:12:43 +000019685rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019687LIBS=$ac_check_lib_save_LIBS
19688fi
cristy8b350f62009-11-15 23:12:43 +000019689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019690$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019691if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019692 with_included_ltdl=no
19693else
19694 with_included_ltdl=yes
19695fi
19696
19697else
19698 with_included_ltdl=yes
19699fi
19700
19701else
19702 with_included_ltdl=yes
19703fi
19704
19705
19706fi
19707
19708
19709
19710
19711# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019712if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019713 withval=$with_ltdl_include;
19714fi
19715
19716
19717if test -n "$with_ltdl_include"; then
19718 if test -f "$with_ltdl_include/ltdl.h"; then :
19719 else
cristyfd9dcd42010-08-08 18:07:02 +000019720 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019721 fi
19722else
19723 with_ltdl_include=no
19724fi
19725
19726
19727# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019728if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019729 withval=$with_ltdl_lib;
19730fi
19731
19732
19733if test -n "$with_ltdl_lib"; then
19734 if test -f "$with_ltdl_lib/libltdl.la"; then :
19735 else
cristyfd9dcd42010-08-08 18:07:02 +000019736 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019737 fi
19738else
19739 with_ltdl_lib=no
19740fi
19741
19742case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19743 ,yes,no,no,)
19744 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019745 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019746 "") enable_ltdl_convenience=yes
19747 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19748esac
19749LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19750LTDLDEPS=$LIBLTDL
19751LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19752
19753
19754
19755
19756
19757# For backwards non-gettext consistent compatibility...
19758INCLTDL="$LTDLINCL"
19759
19760
19761 ;;
19762 ,no,no,no,)
19763 # If the included ltdl is not to be used, then use the
19764 # preinstalled libltdl we found.
19765
cristy8b350f62009-11-15 23:12:43 +000019766$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019767
19768 LIBLTDL=-lltdl
19769 LTDLDEPS=
19770 LTDLINCL=
19771 ;;
19772 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019773 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019774 ;;
19775 *) with_included_ltdl=no
19776 LIBLTDL="-L$with_ltdl_lib -lltdl"
19777 LTDLDEPS=
19778 LTDLINCL="-I$with_ltdl_include"
19779 ;;
19780esac
19781INCLTDL="$LTDLINCL"
19782
19783# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019785$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019787$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019789$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019791$as_echo "$LIBLTDL" >&6; }
19792
19793
19794
19795# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019796if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019797 enableval=$enable_ltdl_install;
19798fi
19799
19800
19801case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19802 *yes*) ;;
19803 *) enable_ltdl_convenience=yes ;;
19804esac
19805
19806 if test x"${enable_ltdl_install-no}" != xno; then
19807 INSTALL_LTDL_TRUE=
19808 INSTALL_LTDL_FALSE='#'
19809else
19810 INSTALL_LTDL_TRUE='#'
19811 INSTALL_LTDL_FALSE=
19812fi
19813
19814 if test x"${enable_ltdl_convenience-no}" != xno; then
19815 CONVENIENCE_LTDL_TRUE=
19816 CONVENIENCE_LTDL_FALSE='#'
19817else
19818 CONVENIENCE_LTDL_TRUE='#'
19819 CONVENIENCE_LTDL_FALSE=
19820fi
19821
19822
19823
19824
19825
19826
cristy3ed852e2009-09-05 21:47:34 +000019827# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19828# the user used. This is so that ltdl.h can pick up the parent projects
19829# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19830# definitions required by ltdl.c.
19831# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19832
19833
19834
cristy3ed852e2009-09-05 21:47:34 +000019835for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019836do :
19837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19838ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19839"
cristyfd9dcd42010-08-08 18:07:02 +000019840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019841 cat >>confdefs.h <<_ACEOF
19842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19843_ACEOF
19844
19845fi
19846
19847done
19848
19849
cristy3ed852e2009-09-05 21:47:34 +000019850for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019851do :
19852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19853ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019854if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019855 cat >>confdefs.h <<_ACEOF
19856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19857_ACEOF
19858
19859else
19860
19861
19862 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19863
19864fi
19865done
19866
cristy3ed852e2009-09-05 21:47:34 +000019867for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019868do :
19869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019871if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019872 cat >>confdefs.h <<_ACEOF
19873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19874_ACEOF
19875
19876else
19877
19878
19879 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19880
19881fi
19882done
19883
19884
19885
19886cat >>confdefs.h <<_ACEOF
19887#define LT_LIBEXT "$libext"
19888_ACEOF
19889
19890
19891name=ltdl
19892LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19893
19894
19895
19896
19897
19898
19899
19900
19901# Only expand once:
19902
19903
19904
19905# Check to see if building shared libraries
19906libtool_build_shared_libs='no'
19907if test "$enable_shared" = 'yes'; then
19908 libtool_build_shared_libs='yes'
19909fi
19910
19911# Check to see if building static libraries
19912libtool_build_static_libs='no'
19913if test "$enable_static" = 'yes'; then
19914 libtool_build_static_libs='yes'
19915fi
19916
cristyfa112112010-01-04 17:48:07 +000019917 if test "${libtool_build_shared_libs}" = 'yes'; then
19918 WITH_SHARED_LIBS_TRUE=
19919 WITH_SHARED_LIBS_FALSE='#'
19920else
19921 WITH_SHARED_LIBS_TRUE='#'
19922 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019923fi
19924
19925#
19926# Enable support for building loadable modules
19927#
19928
19929# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019930if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019931 withval=$with_modules; with_modules=$withval
19932else
cristy5a1cefd2010-01-06 20:42:35 +000019933 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019934fi
19935
19936
19937# Only allow building loadable modules if we are building shared libraries
19938if test "$with_modules" != 'no' ; then
19939 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019940 { $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 +000019941$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19942 with_modules='no'
19943 fi
19944fi
19945if test "$with_modules" != 'no'; then
19946
cristy8b350f62009-11-15 23:12:43 +000019947$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019948
19949fi
19950 if test "$with_modules" != 'no'; then
19951 WITH_MODULES_TRUE=
19952 WITH_MODULES_FALSE='#'
19953else
19954 WITH_MODULES_TRUE='#'
19955 WITH_MODULES_FALSE=
19956fi
19957
19958
19959# Enable building/use of libltdl if we are building shared libraries regardless
19960# of whether modules are built or not.
19961with_ltdl='no'
19962if test "$libtool_build_shared_libs" != 'no'; then
19963 with_ltdl='yes'
19964fi
19965
19966 if test "$with_ltdl" != 'no'; then
19967 WITH_LTDL_TRUE=
19968 WITH_LTDL_FALSE='#'
19969else
19970 WITH_LTDL_TRUE='#'
19971 WITH_LTDL_FALSE=
19972fi
19973
19974if test "$with_ltdl" != 'no'; then
19975
cristy8b350f62009-11-15 23:12:43 +000019976$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019977
19978
19979 # Set DLLDFLAGS
19980 if test X"$enable_shared" = Xyes; then
19981 DLLDFLAGS=-export-dynamic
19982
19983 fi
19984fi
19985
19986# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019987# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019988# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019989if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019990 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19991else
19992 enable_delegate_build='no'
19993fi
19994
19995
19996# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019997if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019998 enableval=$enable_deprecated; enable_deprecated=$enableval
19999else
20000 enable_deprecated='no'
20001fi
20002
20003
20004if test "$enable_deprecated" = 'yes'; then
20005
cristy8b350f62009-11-15 23:12:43 +000020006$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020007
20008else
20009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20010fi
20011
20012# Build a version of ImageMagick which operates uninstalled.
20013# Used to build distributions located via MAGICK_HOME / executable path
20014# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020015if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020016 enableval=$enable_installed; enable_installed=$enableval
20017else
20018 enable_installed='yes'
20019fi
20020
20021
20022if test "$enable_installed" = 'yes'; then
20023
cristy8b350f62009-11-15 23:12:43 +000020024$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020025
20026else
20027 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20028fi
20029
20030# Permit enciphering and deciphering image pixels.
20031# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020032if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020033 enableval=$enable_cipher; enable_cipher=$enableval
20034else
20035 enable_cipher='yes'
20036fi
20037
20038
20039if test "$enable_cipher" = 'yes'; then
20040
cristy8b350f62009-11-15 23:12:43 +000020041$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020042
20043fi
20044
20045# Build an embeddable version of ImageMagick.
20046# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020047if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020048 enableval=$enable_embeddable; enable_embeddable=$enableval
20049else
20050 enable_embeddable='no'
20051fi
20052
20053
20054if test "$enable_embeddable" = 'yes'; then
20055
cristy8b350f62009-11-15 23:12:43 +000020056$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020057
20058fi
20059
20060# Build a high dynamic range version of ImageMagick.
20061# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020062if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020063 enableval=$enable_hdri; enable_hdri=$enableval
20064else
20065 enable_hdri='no'
20066fi
20067
20068
20069MAGICK_HDRI=""
20070if test "$enable_hdri" = 'yes'; then
20071 MAGICK_HDRI="HDRI"
20072
cristy8b350f62009-11-15 23:12:43 +000020073$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020074
cristyfd9dcd42010-08-08 18:07:02 +000020075 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020076fi
20077
cristy3ed852e2009-09-05 21:47:34 +000020078# Build a version of ImageMagick with assert statements.
20079# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020080if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020081 enableval=$enable_assert; enable_assert=$enableval
20082else
20083 enable_assert='yes'
20084fi
20085
20086
20087if test "$enable_assert" = 'no'; then
20088
cristy8b350f62009-11-15 23:12:43 +000020089$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020090
20091fi
20092
20093# Add configure option --enable-maintainer-mode which enables dependency
20094# checking and generation useful to package maintainers. This is made an
20095# option to avoid confusing end users.
20096
cristy8b350f62009-11-15 23:12:43 +000020097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020098$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20099 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020100if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020101 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20102else
20103 USE_MAINTAINER_MODE=no
20104fi
20105
cristy8b350f62009-11-15 23:12:43 +000020106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020107$as_echo "$USE_MAINTAINER_MODE" >&6; }
20108 if test $USE_MAINTAINER_MODE = yes; then
20109 MAINTAINER_MODE_TRUE=
20110 MAINTAINER_MODE_FALSE='#'
20111else
20112 MAINTAINER_MODE_TRUE='#'
20113 MAINTAINER_MODE_FALSE=
20114fi
20115
20116 MAINT=$MAINTAINER_MODE_TRUE
20117
20118
20119
20120
20121# Enable ccmalloc memory debugging support
20122# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020123if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020124 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20125else
20126 enable_ccmalloc='no'
20127fi
20128
20129
20130# Enable Electric Fence memory debugging support
20131# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020132if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020133 enableval=$enable_efence; enable_efence=$enableval
20134else
20135 enable_efence='no'
20136fi
20137
20138
20139# Enable prof-based profiling support
20140# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020141if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020142 enableval=$enable_prof; enable_prof=$enableval
20143else
20144 enable_prof='no'
20145fi
20146
20147
20148# Enable gprof-based profiling support
20149# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020150if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020151 enableval=$enable_gprof; enable_gprof=$enableval
20152else
20153 enable_gprof='no'
20154fi
20155
20156
20157# Enable gcov-based profiling support
20158# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020159if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020160 enableval=$enable_gcov; enable_gcov=$enableval
20161else
20162 enable_gcov='no'
20163fi
20164
20165
20166enable_profiling='no'
20167if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20168 enable_profiling='yes'
20169 if test "$libtool_build_shared_libs" = 'yes'; then
20170 echo "Warning: Can not profile code using shared libraries"
20171 fi
20172fi
20173
20174# Magick API method prefix
20175
20176# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020177if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 withval=$with_method_prefix; with_method_prefix=$enableval
20179else
20180 with_method_prefix=''
20181fi
20182
20183
20184if test "$with_method_prefix" != ''; then
20185
20186cat >>confdefs.h <<_ACEOF
20187#define NAMESPACE_PREFIX $with_method_prefix
20188_ACEOF
20189
20190fi
20191
20192# Number of bits in a Quantum
20193
20194# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020195if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020196 withval=$with_quantum_depth; with_quantum_depth=$withval
20197else
20198 with_quantum_depth=16
20199fi
20200
20201
20202if test "$with_quantum_depth" != '8'; then
20203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20204fi
20205
20206case "${with_quantum_depth}" in
20207 8 ) ;;
20208 16 ) ;;
20209 32 ) ;;
20210 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000020211 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020212esac
cristycdae12a2010-09-19 02:24:31 +000020213if test "$enable_hdri" = 'yes'; then
20214 with_quantum_depth=16
20215fi
cristy3ed852e2009-09-05 21:47:34 +000020216QUANTUM_DEPTH="$with_quantum_depth"
20217
20218cat >>confdefs.h <<_ACEOF
20219#define QUANTUM_DEPTH $QUANTUM_DEPTH
20220_ACEOF
20221
20222
20223# Set pixel cache threshold
20224
20225# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020226if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020227 withval=$with_cache; with_cache=$withval
20228else
20229 with_cache=''
20230fi
20231
20232
20233if test "$with_cache" != ''; then
20234
20235cat >>confdefs.h <<_ACEOF
20236#define PixelCacheThreshold $with_cache
20237_ACEOF
20238
20239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20240fi
20241
20242# Disable/Enable support for full delegate paths
20243
20244# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020245if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020246 withval=$with_frozenpaths; with_frozenpaths=$withval
20247else
20248 with_frozenpaths='no'
20249fi
20250
20251
20252# Enable build/install of Magick++
20253
20254# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020255if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020256 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20257else
20258 with_magick_plus_plus='yes'
20259fi
20260
20261
20262# Disable build/install of PerlMagick.
20263
20264# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020265if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020266 withval=$with_perl; with_perl=$withval
20267else
cristyb5f4e2f2010-04-25 00:49:11 +000020268 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020269fi
20270
20271
20272# Options to pass when configuring PerlMagick
20273
20274# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020275if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020276 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020277fi
20278
20279
cristy3ed852e2009-09-05 21:47:34 +000020280
20281# Enable umem, object-caching memory allocation library.
20282
20283# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020284if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020285 withval=$with_umem; with_umem=$withval
20286else
20287 with_umem='no'
20288fi
20289
20290if test "$with_umem" != 'yes' ; then
20291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20292fi
20293
20294#
20295# Specify path to shared libstdc++ if not in normal location
20296#
20297
20298# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020299if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 withval=$with_libstdc; with_libstdc=$withval
20301else
20302 with_libstdc=''
20303fi
20304
20305
20306if test "$with_libstdc" != ''; then
20307 if test -d "$with_libstdc"; then
20308 LIBSTDCLDFLAGS="-L$with_libstdc"
20309 fi
20310fi
20311
20312
20313# Does gcc required -traditional?
20314if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020316$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020317if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020318 $as_echo_n "(cached) " >&6
20319else
20320 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020322/* end confdefs.h. */
20323#include <sgtty.h>
20324Autoconf TIOCGETP
20325_ACEOF
20326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020327 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020328 ac_cv_prog_gcc_traditional=yes
20329else
20330 ac_cv_prog_gcc_traditional=no
20331fi
20332rm -f conftest*
20333
20334
20335 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020337/* end confdefs.h. */
20338#include <termio.h>
20339Autoconf TCGETA
20340_ACEOF
20341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020342 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020343 ac_cv_prog_gcc_traditional=yes
20344fi
20345rm -f conftest*
20346
20347 fi
20348fi
cristy8b350f62009-11-15 23:12:43 +000020349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020350$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20351 if test $ac_cv_prog_gcc_traditional = yes; then
20352 CC="$CC -traditional"
20353 fi
20354fi
20355
20356
20357########
20358#
20359# Set defines required to build DLLs and modules using MinGW
20360#
20361########
20362# These options are set for multi-thread DLL module build
20363# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20364# module: _DLL
20365# executable/Magick++: _DLL _MAGICKMOD_
20366MODULE_EXTRA_CPPFLAGS=''
20367LIBRARY_EXTRA_CPPFLAGS=''
20368if test "${native_win32_build}" = 'yes'; then
20369 if test "${libtool_build_shared_libs}" = 'yes'; then
20370 CPPFLAGS="$CPPFLAGS -D_DLL"
20371 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20372 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20373 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20374 if test "$with_modules" = 'yes'; then
20375 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20376 else
20377 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20378 fi
20379 else
20380 CPPFLAGS="$CPPFLAGS -D_LIB"
20381 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20382 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20383 fi
20384 if test "$with_threads" = 'yes'; then
20385 CPPFLAGS="$CPPFLAGS -D_MT"
20386 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20387 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20388 fi
20389fi
20390
20391
20392
20393# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020395$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020396if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020397 $as_echo_n "(cached) " >&6
20398else
cristy8b350f62009-11-15 23:12:43 +000020399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020400/* end confdefs.h. */
20401#include <stdlib.h>
20402#include <stdarg.h>
20403#include <string.h>
20404#include <float.h>
20405
20406int
20407main ()
20408{
20409
20410 ;
20411 return 0;
20412}
20413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020415 ac_cv_header_stdc=yes
20416else
cristy8b350f62009-11-15 23:12:43 +000020417 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020418fi
cristy3ed852e2009-09-05 21:47:34 +000020419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420
20421if test $ac_cv_header_stdc = yes; then
20422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020424/* end confdefs.h. */
20425#include <string.h>
20426
20427_ACEOF
20428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020429 $EGREP "memchr" >/dev/null 2>&1; then :
20430
cristy3ed852e2009-09-05 21:47:34 +000020431else
20432 ac_cv_header_stdc=no
20433fi
20434rm -f conftest*
20435
20436fi
20437
20438if test $ac_cv_header_stdc = yes; then
20439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020441/* end confdefs.h. */
20442#include <stdlib.h>
20443
20444_ACEOF
20445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020446 $EGREP "free" >/dev/null 2>&1; then :
20447
cristy3ed852e2009-09-05 21:47:34 +000020448else
20449 ac_cv_header_stdc=no
20450fi
20451rm -f conftest*
20452
20453fi
20454
20455if test $ac_cv_header_stdc = yes; then
20456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020457 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020458 :
20459else
cristy8b350f62009-11-15 23:12:43 +000020460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020461/* end confdefs.h. */
20462#include <ctype.h>
20463#include <stdlib.h>
20464#if ((' ' & 0x0FF) == 0x020)
20465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20467#else
20468# define ISLOWER(c) \
20469 (('a' <= (c) && (c) <= 'i') \
20470 || ('j' <= (c) && (c) <= 'r') \
20471 || ('s' <= (c) && (c) <= 'z'))
20472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20473#endif
20474
20475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20476int
20477main ()
20478{
20479 int i;
20480 for (i = 0; i < 256; i++)
20481 if (XOR (islower (i), ISLOWER (i))
20482 || toupper (i) != TOUPPER (i))
20483 return 2;
20484 return 0;
20485}
20486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020487if ac_fn_c_try_run "$LINENO"; then :
20488
cristy3ed852e2009-09-05 21:47:34 +000020489else
cristy8b350f62009-11-15 23:12:43 +000020490 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020491fi
cristy8b350f62009-11-15 23:12:43 +000020492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20493 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020494fi
20495
cristy3ed852e2009-09-05 21:47:34 +000020496fi
20497fi
cristy8b350f62009-11-15 23:12:43 +000020498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020499$as_echo "$ac_cv_header_stdc" >&6; }
20500if test $ac_cv_header_stdc = yes; then
20501
cristy8b350f62009-11-15 23:12:43 +000020502$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020503
20504fi
20505
20506if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020507 { $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 +000020508 header files. Compilation cannot proceed. Please install the ANSI C
20509 headers and rerun this script." >&5
20510$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20511 header files. Compilation cannot proceed. Please install the ANSI C
20512 headers and rerun this script." >&2;};
20513fi
cristya0b81c32010-01-22 02:54:33 +000020514
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20516$as_echo_n "checking whether to enable assertions... " >&6; }
20517 # Check whether --enable-assert was given.
20518if test "${enable_assert+set}" = set; then :
20519 enableval=$enable_assert; ac_enable_assert=$enableval
20520 if test "x$enableval" = xno; then :
20521
20522$as_echo "#define NDEBUG 1" >>confdefs.h
20523
20524elif test "x$enableval" != xyes; then :
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20526$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20527 ac_enable_assert=yes
20528fi
20529else
20530 ac_enable_assert=yes
20531fi
20532
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20534$as_echo "$ac_enable_assert" >&6; }
20535
cristy3ed852e2009-09-05 21:47:34 +000020536ac_header_dirent=no
20537for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20538 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020540$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020541if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020542 $as_echo_n "(cached) " >&6
20543else
cristy8b350f62009-11-15 23:12:43 +000020544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020545/* end confdefs.h. */
20546#include <sys/types.h>
20547#include <$ac_hdr>
20548
20549int
20550main ()
20551{
20552if ((DIR *) 0)
20553return 0;
20554 ;
20555 return 0;
20556}
20557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020558if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020559 eval "$as_ac_Header=yes"
20560else
cristy8b350f62009-11-15 23:12:43 +000020561 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020562fi
cristy3ed852e2009-09-05 21:47:34 +000020563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564fi
cristy8b350f62009-11-15 23:12:43 +000020565eval ac_res=\$$as_ac_Header
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020567$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020569 cat >>confdefs.h <<_ACEOF
20570#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20571_ACEOF
20572
20573ac_header_dirent=$ac_hdr; break
20574fi
20575
20576done
20577# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20578if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020580$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020581if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020582 $as_echo_n "(cached) " >&6
20583else
20584 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020586/* end confdefs.h. */
20587
20588/* Override any GCC internal prototype to avoid an error.
20589 Use char because int might match the return type of a GCC
20590 builtin and then its argument prototype would still apply. */
20591#ifdef __cplusplus
20592extern "C"
20593#endif
20594char opendir ();
20595int
20596main ()
20597{
20598return opendir ();
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603for ac_lib in '' dir; do
20604 if test -z "$ac_lib"; then
20605 ac_res="none required"
20606 else
20607 ac_res=-l$ac_lib
20608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20609 fi
cristy8b350f62009-11-15 23:12:43 +000020610 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020611 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020612fi
cristy8b350f62009-11-15 23:12:43 +000020613rm -f core conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext
20615 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020616 break
20617fi
20618done
cristy8b350f62009-11-15 23:12:43 +000020619if test "${ac_cv_search_opendir+set}" = set; then :
20620
cristy3ed852e2009-09-05 21:47:34 +000020621else
20622 ac_cv_search_opendir=no
20623fi
20624rm conftest.$ac_ext
20625LIBS=$ac_func_search_save_LIBS
20626fi
cristy8b350f62009-11-15 23:12:43 +000020627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020628$as_echo "$ac_cv_search_opendir" >&6; }
20629ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020630if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20632
20633fi
20634
20635else
cristy8b350f62009-11-15 23:12:43 +000020636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020637$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020638if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020639 $as_echo_n "(cached) " >&6
20640else
20641 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020643/* end confdefs.h. */
20644
20645/* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20648#ifdef __cplusplus
20649extern "C"
20650#endif
20651char opendir ();
20652int
20653main ()
20654{
20655return opendir ();
20656 ;
20657 return 0;
20658}
20659_ACEOF
20660for ac_lib in '' x; do
20661 if test -z "$ac_lib"; then
20662 ac_res="none required"
20663 else
20664 ac_res=-l$ac_lib
20665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20666 fi
cristy8b350f62009-11-15 23:12:43 +000020667 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020668 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020669fi
cristy8b350f62009-11-15 23:12:43 +000020670rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext
20672 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020673 break
20674fi
20675done
cristy8b350f62009-11-15 23:12:43 +000020676if test "${ac_cv_search_opendir+set}" = set; then :
20677
cristy3ed852e2009-09-05 21:47:34 +000020678else
20679 ac_cv_search_opendir=no
20680fi
20681rm conftest.$ac_ext
20682LIBS=$ac_func_search_save_LIBS
20683fi
cristy8b350f62009-11-15 23:12:43 +000020684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020685$as_echo "$ac_cv_search_opendir" >&6; }
20686ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020687if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20689
20690fi
20691
20692fi
20693
20694
20695# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020696for 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
cristy8b350f62009-11-15 23:12:43 +000020697do :
20698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20699ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020701 cat >>confdefs.h <<_ACEOF
20702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20703_ACEOF
20704
20705fi
20706
20707done
20708
20709
20710########
20711#
20712# Checks for typedefs, structures, and compiler characteristics.
20713#
20714########
20715
cristy8b350f62009-11-15 23:12:43 +000020716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020717$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020718if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020719 $as_echo_n "(cached) " >&6
20720else
cristy8b350f62009-11-15 23:12:43 +000020721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020722/* end confdefs.h. */
20723
20724#include <stdbool.h>
20725#ifndef bool
20726 "error: bool is not defined"
20727#endif
20728#ifndef false
20729 "error: false is not defined"
20730#endif
20731#if false
20732 "error: false is not 0"
20733#endif
20734#ifndef true
20735 "error: true is not defined"
20736#endif
20737#if true != 1
20738 "error: true is not 1"
20739#endif
20740#ifndef __bool_true_false_are_defined
20741 "error: __bool_true_false_are_defined is not defined"
20742#endif
20743
20744 struct s { _Bool s: 1; _Bool t; } s;
20745
20746 char a[true == 1 ? 1 : -1];
20747 char b[false == 0 ? 1 : -1];
20748 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20749 char d[(bool) 0.5 == true ? 1 : -1];
20750 bool e = &s;
20751 char f[(_Bool) 0.0 == false ? 1 : -1];
20752 char g[true];
20753 char h[sizeof (_Bool)];
20754 char i[sizeof s.t];
20755 enum { j = false, k = true, l = false * true, m = true * 256 };
20756 /* The following fails for
20757 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20758 _Bool n[m];
20759 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20760 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20761# if defined __xlc__ || defined __GNUC__
20762 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20763 reported by James Lemley on 2005-10-05; see
20764 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20765 This test is not quite right, since xlc is allowed to
20766 reject this program, as the initializer for xlcbug is
20767 not one of the forms that C requires support for.
20768 However, doing the test right would require a runtime
20769 test, and that would make cross-compilation harder.
20770 Let us hope that IBM fixes the xlc bug, and also adds
20771 support for this kind of constant expression. In the
20772 meantime, this test will reject xlc, which is OK, since
20773 our stdbool.h substitute should suffice. We also test
20774 this with GCC, where it should work, to detect more
20775 quickly whether someone messes up the test in the
20776 future. */
20777 char digs[] = "0123456789";
20778 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20779# endif
20780 /* Catch a bug in an HP-UX C compiler. See
20781 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20782 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20783 */
20784 _Bool q = true;
20785 _Bool *pq = &q;
20786
20787int
20788main ()
20789{
20790
20791 *pq |= q;
20792 *pq |= ! q;
20793 /* Refer to every declared value, to avoid compiler optimizations. */
20794 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20795 + !m + !n + !o + !p + !q + !pq);
20796
20797 ;
20798 return 0;
20799}
20800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020801if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020802 ac_cv_header_stdbool_h=yes
20803else
cristy8b350f62009-11-15 23:12:43 +000020804 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020805fi
cristy3ed852e2009-09-05 21:47:34 +000020806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807fi
cristy8b350f62009-11-15 23:12:43 +000020808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020809$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020810ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20811if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020812
20813cat >>confdefs.h <<_ACEOF
20814#define HAVE__BOOL 1
20815_ACEOF
20816
20817
20818fi
20819
20820if test $ac_cv_header_stdbool_h = yes; then
20821
cristy8b350f62009-11-15 23:12:43 +000020822$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020823
20824fi
20825
cristy8b350f62009-11-15 23:12:43 +000020826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020827$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020828if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020829 $as_echo_n "(cached) " >&6
20830else
cristy8b350f62009-11-15 23:12:43 +000020831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020832/* end confdefs.h. */
20833
20834int
20835main ()
20836{
20837
20838volatile int x;
20839int * volatile y = (int *) 0;
20840return !x && !y;
20841 ;
20842 return 0;
20843}
20844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020845if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020846 ac_cv_c_volatile=yes
20847else
cristy8b350f62009-11-15 23:12:43 +000020848 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020849fi
cristy3ed852e2009-09-05 21:47:34 +000020850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851fi
cristy8b350f62009-11-15 23:12:43 +000020852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020853$as_echo "$ac_cv_c_volatile" >&6; }
20854if test $ac_cv_c_volatile = no; then
20855
cristy8b350f62009-11-15 23:12:43 +000020856$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020857
20858fi
20859
cristy8b350f62009-11-15 23:12:43 +000020860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020861$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020862if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020863 $as_echo_n "(cached) " >&6
20864else
cristy8b350f62009-11-15 23:12:43 +000020865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020866/* end confdefs.h. */
20867#define x(y) #y
20868
20869char *s = x(teststring);
20870_ACEOF
20871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020872 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020873 ac_cv_c_stringize=no
20874else
20875 ac_cv_c_stringize=yes
20876fi
20877rm -f conftest*
20878
20879fi
cristy8b350f62009-11-15 23:12:43 +000020880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020881$as_echo "$ac_cv_c_stringize" >&6; }
20882if test $ac_cv_c_stringize = yes; then
20883
cristy8b350f62009-11-15 23:12:43 +000020884$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020885
20886fi
20887
cristy8b350f62009-11-15 23:12:43 +000020888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020889$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020890if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020891 $as_echo_n "(cached) " >&6
20892else
cristy8b350f62009-11-15 23:12:43 +000020893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020894/* end confdefs.h. */
20895#include <sys/types.h>
20896#include <sys/stat.h>
20897
20898#if defined S_ISBLK && defined S_IFDIR
20899extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20900#endif
20901
20902#if defined S_ISBLK && defined S_IFCHR
20903extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20904#endif
20905
20906#if defined S_ISLNK && defined S_IFREG
20907extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20908#endif
20909
20910#if defined S_ISSOCK && defined S_IFREG
20911extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20912#endif
20913
20914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020915if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020916 ac_cv_header_stat_broken=no
20917else
cristy8b350f62009-11-15 23:12:43 +000020918 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020919fi
cristy3ed852e2009-09-05 21:47:34 +000020920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921fi
cristy8b350f62009-11-15 23:12:43 +000020922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020923$as_echo "$ac_cv_header_stat_broken" >&6; }
20924if test $ac_cv_header_stat_broken = yes; then
20925
cristy8b350f62009-11-15 23:12:43 +000020926$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020927
20928fi
20929
cristy8b350f62009-11-15 23:12:43 +000020930{ $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 +000020931$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020932if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020933 $as_echo_n "(cached) " >&6
20934else
cristy8b350f62009-11-15 23:12:43 +000020935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020936/* end confdefs.h. */
20937#include <sys/types.h>
20938#include <sys/time.h>
20939#include <time.h>
20940
20941int
20942main ()
20943{
20944if ((struct tm *) 0)
20945return 0;
20946 ;
20947 return 0;
20948}
20949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 ac_cv_header_time=yes
20952else
cristy8b350f62009-11-15 23:12:43 +000020953 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020954fi
cristy3ed852e2009-09-05 21:47:34 +000020955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956fi
cristy8b350f62009-11-15 23:12:43 +000020957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020958$as_echo "$ac_cv_header_time" >&6; }
20959if test $ac_cv_header_time = yes; then
20960
cristy8b350f62009-11-15 23:12:43 +000020961$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020962
20963fi
20964
cristy8b350f62009-11-15 23:12:43 +000020965{ $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 +000020966$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020967if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 $as_echo_n "(cached) " >&6
20969else
cristy8b350f62009-11-15 23:12:43 +000020970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020971/* end confdefs.h. */
20972#include <sys/types.h>
20973#include <time.h>
20974
20975int
20976main ()
20977{
20978struct tm tm;
20979 int *p = &tm.tm_sec;
20980 return !p;
20981 ;
20982 return 0;
20983}
20984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020985if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 ac_cv_struct_tm=time.h
20987else
cristy8b350f62009-11-15 23:12:43 +000020988 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020989fi
cristy3ed852e2009-09-05 21:47:34 +000020990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991fi
cristy8b350f62009-11-15 23:12:43 +000020992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020993$as_echo "$ac_cv_struct_tm" >&6; }
20994if test $ac_cv_struct_tm = sys/time.h; then
20995
cristy8b350f62009-11-15 23:12:43 +000020996$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020997
20998fi
20999
cristy92703d82010-04-26 00:18:18 +000021000ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21001#include <$ac_cv_struct_tm>
21002
21003"
21004if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21005
21006cat >>confdefs.h <<_ACEOF
21007#define HAVE_STRUCT_TM_TM_ZONE 1
21008_ACEOF
21009
21010
21011fi
21012
21013if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21014
21015$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21016
21017else
21018 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21019"
21020if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21021 ac_have_decl=1
21022else
21023 ac_have_decl=0
21024fi
21025
21026cat >>confdefs.h <<_ACEOF
21027#define HAVE_DECL_TZNAME $ac_have_decl
21028_ACEOF
21029
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21031$as_echo_n "checking for tzname... " >&6; }
21032if test "${ac_cv_var_tzname+set}" = set; then :
21033 $as_echo_n "(cached) " >&6
21034else
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036/* end confdefs.h. */
21037#include <time.h>
21038#if !HAVE_DECL_TZNAME
21039extern char *tzname[];
21040#endif
21041
21042int
21043main ()
21044{
21045return tzname[0][0];
21046 ;
21047 return 0;
21048}
21049_ACEOF
21050if ac_fn_c_try_link "$LINENO"; then :
21051 ac_cv_var_tzname=yes
21052else
21053 ac_cv_var_tzname=no
21054fi
21055rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21057fi
21058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21059$as_echo "$ac_cv_var_tzname" >&6; }
21060 if test $ac_cv_var_tzname = yes; then
21061
21062$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21063
21064 fi
21065fi
21066
cristy8b350f62009-11-15 23:12:43 +000021067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021068$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021069if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021070 $as_echo_n "(cached) " >&6
21071else
21072 echo '#! /bin/cat
21073exit 69
21074' >conftest
21075chmod u+x conftest
21076(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21077if test $? -ne 69; then
21078 ac_cv_sys_interpreter=yes
21079else
21080 ac_cv_sys_interpreter=no
21081fi
21082rm -f conftest
21083fi
cristy8b350f62009-11-15 23:12:43 +000021084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021085$as_echo "$ac_cv_sys_interpreter" >&6; }
21086interpval=$ac_cv_sys_interpreter
21087
21088
cristy3ed852e2009-09-05 21:47:34 +000021089# If the C compiler supports the keyword inline, do nothing. Otherwise
21090# define inline to __inline__ or __inline if it accepts one of those,
21091# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021093$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021094if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021095 $as_echo_n "(cached) " >&6
21096else
21097 ac_cv_c_inline=no
21098for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021100/* end confdefs.h. */
21101#ifndef __cplusplus
21102typedef int foo_t;
21103static $ac_kw foo_t static_foo () {return 0; }
21104$ac_kw foo_t foo () {return 0; }
21105#endif
21106
21107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021108if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021109 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021110fi
cristy3ed852e2009-09-05 21:47:34 +000021111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 test "$ac_cv_c_inline" != no && break
21113done
21114
21115fi
cristy8b350f62009-11-15 23:12:43 +000021116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021117$as_echo "$ac_cv_c_inline" >&6; }
21118
cristy3ed852e2009-09-05 21:47:34 +000021119case $ac_cv_c_inline in
21120 inline | yes) ;;
21121 *)
21122 case $ac_cv_c_inline in
21123 no) ac_val=;;
21124 *) ac_val=$ac_cv_c_inline;;
21125 esac
21126 cat >>confdefs.h <<_ACEOF
21127#ifndef __cplusplus
21128#define inline $ac_val
21129#endif
21130_ACEOF
21131 ;;
21132esac
21133
21134
21135# If the C compiler supports the keyword restrict, do nothing. Otherwise
21136# define restrict to __restrict__ or __restrict if it accepts one of those,
21137# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021139$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021140if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 $as_echo_n "(cached) " >&6
21142else
21143 ac_cv_c_restrict=no
21144 # The order here caters to the fact that C++ does not require restrict.
21145 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021147/* end confdefs.h. */
21148typedef int * int_ptr;
21149 int foo (int_ptr $ac_kw ip) {
21150 return ip[0];
21151 }
21152int
21153main ()
21154{
21155int s[1];
21156 int * $ac_kw t = s;
21157 t[0] = 0;
21158 return foo(t)
21159 ;
21160 return 0;
21161}
21162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021163if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021165fi
cristy3ed852e2009-09-05 21:47:34 +000021166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 test "$ac_cv_c_restrict" != no && break
21168 done
21169
21170fi
cristy8b350f62009-11-15 23:12:43 +000021171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021172$as_echo "$ac_cv_c_restrict" >&6; }
21173
cristy3ed852e2009-09-05 21:47:34 +000021174 case $ac_cv_c_restrict in
21175 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021176 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021177 ;;
21178 *) cat >>confdefs.h <<_ACEOF
21179#define restrict $ac_cv_c_restrict
21180_ACEOF
21181 ;;
21182 esac
21183
21184
21185# If words are stored with the most significant byte first (like
21186# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021188$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021189if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021190 $as_echo_n "(cached) " >&6
21191else
21192 ac_cv_c_bigendian=unknown
21193 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021195/* end confdefs.h. */
21196#ifndef __APPLE_CC__
21197 not a universal capable compiler
21198 #endif
21199 typedef int dummy;
21200
21201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021202if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021203
21204 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021205 # there are at least two -arch flags with different values.
21206 ac_arch=
21207 ac_prev=
21208 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21209 if test -n "$ac_prev"; then
21210 case $ac_word in
21211 i?86 | x86_64 | ppc | ppc64)
21212 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21213 ac_arch=$ac_word
21214 else
21215 ac_cv_c_bigendian=universal
21216 break
21217 fi
21218 ;;
21219 esac
21220 ac_prev=
21221 elif test "x$ac_word" = "x-arch"; then
21222 ac_prev=arch
21223 fi
21224 done
cristy3ed852e2009-09-05 21:47:34 +000021225fi
cristy3ed852e2009-09-05 21:47:34 +000021226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 if test $ac_cv_c_bigendian = unknown; then
21228 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021230/* end confdefs.h. */
21231#include <sys/types.h>
21232 #include <sys/param.h>
21233
21234int
21235main ()
21236{
21237#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21238 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21239 && LITTLE_ENDIAN)
21240 bogus endian macros
21241 #endif
21242
21243 ;
21244 return 0;
21245}
21246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021247if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021248 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021250/* end confdefs.h. */
21251#include <sys/types.h>
21252 #include <sys/param.h>
21253
21254int
21255main ()
21256{
21257#if BYTE_ORDER != BIG_ENDIAN
21258 not big endian
21259 #endif
21260
21261 ;
21262 return 0;
21263}
21264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021265if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021266 ac_cv_c_bigendian=yes
21267else
cristy8b350f62009-11-15 23:12:43 +000021268 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021269fi
cristy3ed852e2009-09-05 21:47:34 +000021270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021271fi
cristy3ed852e2009-09-05 21:47:34 +000021272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 fi
21274 if test $ac_cv_c_bigendian = unknown; then
21275 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021277/* end confdefs.h. */
21278#include <limits.h>
21279
21280int
21281main ()
21282{
21283#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21284 bogus endian macros
21285 #endif
21286
21287 ;
21288 return 0;
21289}
21290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021291if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021292 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021294/* end confdefs.h. */
21295#include <limits.h>
21296
21297int
21298main ()
21299{
21300#ifndef _BIG_ENDIAN
21301 not big endian
21302 #endif
21303
21304 ;
21305 return 0;
21306}
21307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021308if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021309 ac_cv_c_bigendian=yes
21310else
cristy8b350f62009-11-15 23:12:43 +000021311 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021312fi
cristy3ed852e2009-09-05 21:47:34 +000021313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021314fi
cristy3ed852e2009-09-05 21:47:34 +000021315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 fi
21317 if test $ac_cv_c_bigendian = unknown; then
21318 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021319 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021322/* end confdefs.h. */
21323short int ascii_mm[] =
21324 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21325 short int ascii_ii[] =
21326 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21327 int use_ascii (int i) {
21328 return ascii_mm[i] + ascii_ii[i];
21329 }
21330 short int ebcdic_ii[] =
21331 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21332 short int ebcdic_mm[] =
21333 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21334 int use_ebcdic (int i) {
21335 return ebcdic_mm[i] + ebcdic_ii[i];
21336 }
21337 extern int foo;
21338
21339int
21340main ()
21341{
21342return use_ascii (foo) == use_ebcdic (foo);
21343 ;
21344 return 0;
21345}
21346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021347if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021348 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21349 ac_cv_c_bigendian=yes
21350 fi
21351 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21352 if test "$ac_cv_c_bigendian" = unknown; then
21353 ac_cv_c_bigendian=no
21354 else
21355 # finding both strings is unlikely to happen, but who knows?
21356 ac_cv_c_bigendian=unknown
21357 fi
21358 fi
cristy3ed852e2009-09-05 21:47:34 +000021359fi
cristy3ed852e2009-09-05 21:47:34 +000021360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361else
cristy8b350f62009-11-15 23:12:43 +000021362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021363/* end confdefs.h. */
21364$ac_includes_default
21365int
21366main ()
21367{
21368
21369 /* Are we little or big endian? From Harbison&Steele. */
21370 union
21371 {
21372 long int l;
21373 char c[sizeof (long int)];
21374 } u;
21375 u.l = 1;
21376 return u.c[sizeof (long int) - 1] == 1;
21377
21378 ;
21379 return 0;
21380}
21381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021382if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021383 ac_cv_c_bigendian=no
21384else
cristy8b350f62009-11-15 23:12:43 +000021385 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021386fi
cristy8b350f62009-11-15 23:12:43 +000021387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21388 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021389fi
21390
cristy3ed852e2009-09-05 21:47:34 +000021391 fi
21392fi
cristy8b350f62009-11-15 23:12:43 +000021393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021394$as_echo "$ac_cv_c_bigendian" >&6; }
21395 case $ac_cv_c_bigendian in #(
21396 yes)
cristy8b350f62009-11-15 23:12:43 +000021397 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021398;; #(
21399 no)
21400 ;; #(
21401 universal)
21402
cristy8b350f62009-11-15 23:12:43 +000021403$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021404
21405 ;; #(
21406 *)
cristyfd9dcd42010-08-08 18:07:02 +000021407 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021408 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021409 esac
21410
21411
21412# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021413ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21414if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021415
cristy3ed852e2009-09-05 21:47:34 +000021416else
21417
21418cat >>confdefs.h <<_ACEOF
21419#define mode_t int
21420_ACEOF
21421
21422fi
21423
21424
21425# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021426ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21427if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021428
cristy3ed852e2009-09-05 21:47:34 +000021429else
21430
21431cat >>confdefs.h <<_ACEOF
21432#define off_t long int
21433_ACEOF
21434
21435fi
21436
21437
21438# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021439ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21440if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021441
cristy3ed852e2009-09-05 21:47:34 +000021442else
21443
21444cat >>confdefs.h <<_ACEOF
21445#define pid_t int
21446_ACEOF
21447
21448fi
21449
21450
21451# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021452ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21453if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021454
cristy3ed852e2009-09-05 21:47:34 +000021455else
21456
21457cat >>confdefs.h <<_ACEOF
21458#define size_t unsigned int
21459_ACEOF
21460
21461fi
21462
21463
21464# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021465ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21466if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021467
cristy3ed852e2009-09-05 21:47:34 +000021468else
21469
21470cat >>confdefs.h <<_ACEOF
21471#define ssize_t int
21472_ACEOF
21473
21474fi
21475
21476
21477# If the C compiler supports a working long double type with more range
21478# or precision than the double type, define HAVE_LONG_DOUBLE.
21479
cristy8b350f62009-11-15 23:12:43 +000021480 { $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 +000021481$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021482if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021483 $as_echo_n "(cached) " >&6
21484else
cristy8b350f62009-11-15 23:12:43 +000021485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021486/* end confdefs.h. */
21487#include <float.h>
21488 long double const a[] =
21489 {
21490 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21491 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21492 };
21493 long double
21494 f (long double x)
21495 {
21496 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21497 + (x ? f (x) : 'c'));
21498 }
21499
21500int
21501main ()
21502{
21503static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21504 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21505 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21506 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21507 && (int) LDBL_EPSILON == 0
21508 )];
21509test_array [0] = 0
21510
21511 ;
21512 return 0;
21513}
21514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 ac_cv_type_long_double_wider=yes
21517else
cristy8b350f62009-11-15 23:12:43 +000021518 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021519fi
cristy3ed852e2009-09-05 21:47:34 +000021520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521fi
cristy8b350f62009-11-15 23:12:43 +000021522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021523$as_echo "$ac_cv_type_long_double_wider" >&6; }
21524 if test $ac_cv_type_long_double_wider = yes; then
21525
cristy8b350f62009-11-15 23:12:43 +000021526$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021527
21528 fi
21529
21530
21531# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21532# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021534$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021535if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 $as_echo_n "(cached) " >&6
21537else
cristy8b350f62009-11-15 23:12:43 +000021538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021539/* end confdefs.h. */
21540$ac_includes_default
21541int
21542main ()
21543{
21544static int test_array [1 - 2 * !(((char) -1) < 0)];
21545test_array [0] = 0
21546
21547 ;
21548 return 0;
21549}
21550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021551if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 ac_cv_c_char_unsigned=no
21553else
cristy8b350f62009-11-15 23:12:43 +000021554 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021555fi
cristy3ed852e2009-09-05 21:47:34 +000021556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557fi
cristy8b350f62009-11-15 23:12:43 +000021558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021559$as_echo "$ac_cv_c_char_unsigned" >&6; }
21560if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021561 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021562
21563fi
21564
21565
21566# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21567# The cast to long int works around a bug in the HP C Compiler
21568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21570# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021572$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021573if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021574 $as_echo_n "(cached) " >&6
21575else
cristy8b350f62009-11-15 23:12:43 +000021576 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 +000021577
cristy3ed852e2009-09-05 21:47:34 +000021578else
cristy8b350f62009-11-15 23:12:43 +000021579 if test "$ac_cv_type_signed_short" = yes; then
21580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021582as_fn_error 77 "cannot compute sizeof (signed short)
21583See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021584 else
21585 ac_cv_sizeof_signed_short=0
21586 fi
21587fi
cristy8b350f62009-11-15 23:12:43 +000021588
cristy3ed852e2009-09-05 21:47:34 +000021589fi
cristy8b350f62009-11-15 23:12:43 +000021590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021591$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21592
21593
21594
21595cat >>confdefs.h <<_ACEOF
21596#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21597_ACEOF
21598
21599
21600
21601# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21602# The cast to long int works around a bug in the HP C Compiler
21603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21605# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021608if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 $as_echo_n "(cached) " >&6
21610else
cristy8b350f62009-11-15 23:12:43 +000021611 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 +000021612
cristy3ed852e2009-09-05 21:47:34 +000021613else
cristy8b350f62009-11-15 23:12:43 +000021614 if test "$ac_cv_type_unsigned_short" = yes; then
21615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021617as_fn_error 77 "cannot compute sizeof (unsigned short)
21618See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021619 else
21620 ac_cv_sizeof_unsigned_short=0
21621 fi
21622fi
cristy8b350f62009-11-15 23:12:43 +000021623
cristy3ed852e2009-09-05 21:47:34 +000021624fi
cristy8b350f62009-11-15 23:12:43 +000021625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021626$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21627
21628
21629
21630cat >>confdefs.h <<_ACEOF
21631#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21632_ACEOF
21633
21634
21635
21636# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21637# The cast to long int works around a bug in the HP C Compiler
21638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21640# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021643if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 $as_echo_n "(cached) " >&6
21645else
cristy8b350f62009-11-15 23:12:43 +000021646 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 +000021647
cristy3ed852e2009-09-05 21:47:34 +000021648else
cristy8b350f62009-11-15 23:12:43 +000021649 if test "$ac_cv_type_signed_int" = yes; then
21650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021652as_fn_error 77 "cannot compute sizeof (signed int)
21653See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021654 else
21655 ac_cv_sizeof_signed_int=0
21656 fi
21657fi
cristy8b350f62009-11-15 23:12:43 +000021658
cristy3ed852e2009-09-05 21:47:34 +000021659fi
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21662
21663
21664
21665cat >>confdefs.h <<_ACEOF
21666#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21667_ACEOF
21668
21669
21670
21671# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21672# The cast to long int works around a bug in the HP C Compiler
21673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21675# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021678if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021679 $as_echo_n "(cached) " >&6
21680else
cristy8b350f62009-11-15 23:12:43 +000021681 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 +000021682
cristy3ed852e2009-09-05 21:47:34 +000021683else
cristy8b350f62009-11-15 23:12:43 +000021684 if test "$ac_cv_type_unsigned_int" = yes; then
21685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021687as_fn_error 77 "cannot compute sizeof (unsigned int)
21688See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021689 else
21690 ac_cv_sizeof_unsigned_int=0
21691 fi
21692fi
cristy8b350f62009-11-15 23:12:43 +000021693
cristy3ed852e2009-09-05 21:47:34 +000021694fi
cristy8b350f62009-11-15 23:12:43 +000021695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021696$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21697
21698
21699
21700cat >>confdefs.h <<_ACEOF
21701#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21702_ACEOF
21703
21704
21705
21706# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21707# The cast to long int works around a bug in the HP C Compiler
21708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21710# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021713if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 $as_echo_n "(cached) " >&6
21715else
cristy8b350f62009-11-15 23:12:43 +000021716 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 +000021717
cristy3ed852e2009-09-05 21:47:34 +000021718else
cristy8b350f62009-11-15 23:12:43 +000021719 if test "$ac_cv_type_signed_long" = yes; then
21720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021722as_fn_error 77 "cannot compute sizeof (signed long)
21723See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021724 else
21725 ac_cv_sizeof_signed_long=0
21726 fi
21727fi
cristy8b350f62009-11-15 23:12:43 +000021728
cristy3ed852e2009-09-05 21:47:34 +000021729fi
cristy8b350f62009-11-15 23:12:43 +000021730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021731$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21732
21733
21734
21735cat >>confdefs.h <<_ACEOF
21736#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21737_ACEOF
21738
21739
21740
21741# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21742# The cast to long int works around a bug in the HP C Compiler
21743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21745# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021747$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021748if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 $as_echo_n "(cached) " >&6
21750else
cristy8b350f62009-11-15 23:12:43 +000021751 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 +000021752
cristy3ed852e2009-09-05 21:47:34 +000021753else
cristy8b350f62009-11-15 23:12:43 +000021754 if test "$ac_cv_type_unsigned_long" = yes; then
21755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021757as_fn_error 77 "cannot compute sizeof (unsigned long)
21758See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021759 else
21760 ac_cv_sizeof_unsigned_long=0
21761 fi
21762fi
cristy8b350f62009-11-15 23:12:43 +000021763
cristy3ed852e2009-09-05 21:47:34 +000021764fi
cristy8b350f62009-11-15 23:12:43 +000021765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021766$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21767
21768
21769
21770cat >>confdefs.h <<_ACEOF
21771#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21772_ACEOF
21773
21774
21775
21776# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21777# 'signed long long' is not supported then the value defined is zero.
21778# The cast to long int works around a bug in the HP C Compiler
21779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021783$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021784if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021785 $as_echo_n "(cached) " >&6
21786else
cristy8b350f62009-11-15 23:12:43 +000021787 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 +000021788
cristy3ed852e2009-09-05 21:47:34 +000021789else
cristy8b350f62009-11-15 23:12:43 +000021790 if test "$ac_cv_type_signed_long_long" = yes; then
21791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021793as_fn_error 77 "cannot compute sizeof (signed long long)
21794See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021795 else
21796 ac_cv_sizeof_signed_long_long=0
21797 fi
21798fi
cristy8b350f62009-11-15 23:12:43 +000021799
cristy3ed852e2009-09-05 21:47:34 +000021800fi
cristy8b350f62009-11-15 23:12:43 +000021801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021802$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21803
21804
21805
21806cat >>confdefs.h <<_ACEOF
21807#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21808_ACEOF
21809
21810
21811
21812# Obtain size of a 'unsigned long long' and define as
21813# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21814# supported then the value defined is zero.
21815# The cast to long int works around a bug in the HP C Compiler
21816# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21817# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21818# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021820$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021821if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 $as_echo_n "(cached) " >&6
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 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 +000021825
cristy3ed852e2009-09-05 21:47:34 +000021826else
cristy8b350f62009-11-15 23:12:43 +000021827 if test "$ac_cv_type_unsigned_long_long" = yes; then
21828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021830as_fn_error 77 "cannot compute sizeof (unsigned long long)
21831See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021832 else
21833 ac_cv_sizeof_unsigned_long_long=0
21834 fi
21835fi
cristy8b350f62009-11-15 23:12:43 +000021836
cristy3ed852e2009-09-05 21:47:34 +000021837fi
cristy8b350f62009-11-15 23:12:43 +000021838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21840
21841
21842
21843cat >>confdefs.h <<_ACEOF
21844#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21845_ACEOF
21846
21847
21848
21849# Obtain size of off_t and define as SIZEOF_OFF_T
21850# The cast to long int works around a bug in the HP C Compiler
21851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021856if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021857 $as_echo_n "(cached) " >&6
21858else
cristy8b350f62009-11-15 23:12:43 +000021859 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 +000021860
cristy3ed852e2009-09-05 21:47:34 +000021861else
cristy8b350f62009-11-15 23:12:43 +000021862 if test "$ac_cv_type_off_t" = yes; then
21863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021865as_fn_error 77 "cannot compute sizeof (off_t)
21866See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021867 else
21868 ac_cv_sizeof_off_t=0
21869 fi
21870fi
cristy8b350f62009-11-15 23:12:43 +000021871
cristy3ed852e2009-09-05 21:47:34 +000021872fi
cristy8b350f62009-11-15 23:12:43 +000021873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021874$as_echo "$ac_cv_sizeof_off_t" >&6; }
21875
21876
21877
21878cat >>confdefs.h <<_ACEOF
21879#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21880_ACEOF
21881
21882
21883
21884# Obtain size of size_t and define as SIZEOF_SIZE_T
21885# The cast to long int works around a bug in the HP C Compiler
21886# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21887# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21888# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021891if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 $as_echo_n "(cached) " >&6
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 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 +000021895
cristy3ed852e2009-09-05 21:47:34 +000021896else
cristy8b350f62009-11-15 23:12:43 +000021897 if test "$ac_cv_type_size_t" = yes; then
21898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021900as_fn_error 77 "cannot compute sizeof (size_t)
21901See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021902 else
21903 ac_cv_sizeof_size_t=0
21904 fi
21905fi
cristy8b350f62009-11-15 23:12:43 +000021906
cristy3ed852e2009-09-05 21:47:34 +000021907fi
cristy8b350f62009-11-15 23:12:43 +000021908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021909$as_echo "$ac_cv_sizeof_size_t" >&6; }
21910
21911
21912
21913cat >>confdefs.h <<_ACEOF
21914#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21915_ACEOF
21916
21917
21918
cristy330e9352010-06-01 18:42:49 +000021919# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21920# The cast to long int works around a bug in the HP C Compiler
21921# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21922# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21923# This bug is HP SR number 8606223364.
21924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21925$as_echo_n "checking size of ssize_t... " >&6; }
21926if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21927 $as_echo_n "(cached) " >&6
21928else
21929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21930
21931else
21932 if test "$ac_cv_type_ssize_t" = yes; then
21933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021935as_fn_error 77 "cannot compute sizeof (ssize_t)
21936See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021937 else
21938 ac_cv_sizeof_ssize_t=0
21939 fi
21940fi
21941
21942fi
21943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21944$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21945
21946
21947
21948cat >>confdefs.h <<_ACEOF
21949#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21950_ACEOF
21951
21952
21953
cristy3ed852e2009-09-05 21:47:34 +000021954# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21955# The cast to long int works around a bug in the HP C Compiler
21956# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21957# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21958# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021960$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021961if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 $as_echo_n "(cached) " >&6
21963else
cristy8b350f62009-11-15 23:12:43 +000021964 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 +000021965
cristy3ed852e2009-09-05 21:47:34 +000021966else
cristy8b350f62009-11-15 23:12:43 +000021967 if test "$ac_cv_type_unsigned_intp" = yes; then
21968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021970as_fn_error 77 "cannot compute sizeof (unsigned int*)
21971See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021972 else
21973 ac_cv_sizeof_unsigned_intp=0
21974 fi
21975fi
cristy8b350f62009-11-15 23:12:43 +000021976
cristy3ed852e2009-09-05 21:47:34 +000021977fi
cristy8b350f62009-11-15 23:12:43 +000021978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021979$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21980
21981
21982
21983cat >>confdefs.h <<_ACEOF
21984#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21985_ACEOF
21986
21987
21988
21989#
21990# Compute sized types for current CPU and compiler options.
21991#
21992
cristy8b350f62009-11-15 23:12:43 +000021993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021994$as_echo_n "checking for signed 8-bit type... " >&6; }
21995INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo "$INT8_T" >&6; }
21998
21999
cristy8b350f62009-11-15 23:12:43 +000022000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022001$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22002UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo "$UINT8_T" >&6; }
22005
22006
cristy8b350f62009-11-15 23:12:43 +000022007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022008$as_echo_n "checking for signed 16-bit type... " >&6; }
22009INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo "$INT16_T" >&6; }
22012
22013
cristy8b350f62009-11-15 23:12:43 +000022014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022015$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22016UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018$as_echo "$UINT16_T" >&6; }
22019
22020
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo_n "checking for signed 32-bit type... " >&6; }
22023INT32_T='none'
22024if test $ac_cv_sizeof_signed_int -eq 4; then
22025 INT32_T='signed int'
22026elif test $ac_cv_sizeof_signed_long -eq 4; then
22027 INT32_T='signed long'
22028fi
cristy8b350f62009-11-15 23:12:43 +000022029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022030$as_echo "$INT32_T" >&6; }
22031
22032
cristy8b350f62009-11-15 23:12:43 +000022033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22035UINT32_T='none'
22036if test $ac_cv_sizeof_unsigned_int -eq 4; then
22037 UINT32_T='unsigned int'
22038elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22039 UINT32_T='unsigned long'
22040fi
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo "$UINT32_T" >&6; }
22043
22044
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo_n "checking for signed 64-bit type... " >&6; }
22047INT64_T='none'
22048if test $ac_cv_sizeof_signed_long -eq 8; then
22049 INT64_T='signed long'
22050elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22051 INT64_T='signed long long'
22052fi
cristy8b350f62009-11-15 23:12:43 +000022053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022054$as_echo "$INT64_T" >&6; }
22055
22056
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22059UINT64_T='none'
22060if test $ac_cv_sizeof_unsigned_long -eq 8; then
22061 UINT64_T='unsigned long'
22062elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22063 UINT64_T='unsigned long long'
22064fi
cristy8b350f62009-11-15 23:12:43 +000022065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022066$as_echo "$UINT64_T" >&6; }
22067
22068
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo_n "checking for unsigned maximum type... " >&6; }
22071UINTMAX_T='none'
22072if test "$UINT64_T" != 'none'; then
22073 UINTMAX_T=$UINT64_T
22074elif test "$UINT32_T" != 'none'; then
22075 UINTMAX_T=$UINT32_T
22076fi
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$UINTMAX_T" >&6; }
22079
22080
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo_n "checking for pointer difference type... " >&6; }
22083UINTPTR_T='none'
22084if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22085 UINTPTR_T='unsigned long'
22086elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22087 UINTPTR_T='unsigned long long'
22088fi
cristy8b350f62009-11-15 23:12:43 +000022089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022090$as_echo "$UINTPTR_T" >&6; }
22091
22092
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022096/* end confdefs.h. */
22097
22098int
22099main ()
22100{
22101{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22102 ;
22103 return 0;
22104}
22105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022106if ac_fn_c_try_compile "$LINENO"; then :
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "yes" >&6; }
22109else
cristy8b350f62009-11-15 23:12:43 +000022110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022113$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022115/* end confdefs.h. */
22116
22117int
22118main ()
22119{
22120{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22121 ;
22122 return 0;
22123}
22124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022125if ac_fn_c_try_compile "$LINENO"; then :
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022127$as_echo "yes" >&6; }
22128
cristy8b350f62009-11-15 23:12:43 +000022129$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022130
22131else
cristy8b350f62009-11-15 23:12:43 +000022132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022133$as_echo "no" >&6; }
22134
cristy8b350f62009-11-15 23:12:43 +000022135$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022136
22137fi
cristy3ed852e2009-09-05 21:47:34 +000022138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139fi
cristy3ed852e2009-09-05 21:47:34 +000022140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141
22142########
22143#
22144# Check for functions
22145#
22146########
cristy3ed852e2009-09-05 21:47:34 +000022147for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022148do :
22149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022152 cat >>confdefs.h <<_ACEOF
22153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22154_ACEOF
22155
22156fi
22157
22158done
22159
cristy3ed852e2009-09-05 21:47:34 +000022160for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022161do :
22162 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22163if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022165#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022166_ACEOF
22167
22168fi
22169done
22170
cristy8b350f62009-11-15 23:12:43 +000022171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022172$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022173if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022174 $as_echo_n "(cached) " >&6
22175else
cristy8b350f62009-11-15 23:12:43 +000022176 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022177 magick_cv_func_mmap_fileio=no
22178else
cristy8b350f62009-11-15 23:12:43 +000022179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022180/* end confdefs.h. */
22181$ac_includes_default
22182/* malloc might have been renamed as rpl_malloc. */
22183#undef malloc
22184
22185/*
22186 This test is derived from GNU Autoconf's similar macro.
22187 The purpose of this test is to verify that files may be memory
22188 mapped, and that memory mapping and file I/O are coherent.
22189
22190 The test creates a test file, memory maps the file, updates
22191 the file using the memory map, and then reads the file using
22192 file I/O to verify that the file contains the updates.
22193*/
22194
22195#include <fcntl.h>
22196#include <sys/mman.h>
22197
22198#if !STDC_HEADERS && !HAVE_STDLIB_H
22199char *malloc ();
22200#endif
22201
22202/* This mess was copied from the GNU getpagesize.h. */
22203#if !HAVE_GETPAGESIZE
22204/* Assume that all systems that can run configure have sys/param.h. */
22205# if !HAVE_SYS_PARAM_H
22206# define HAVE_SYS_PARAM_H 1
22207# endif
22208
22209# ifdef _SC_PAGESIZE
22210# define getpagesize() sysconf(_SC_PAGESIZE)
22211# else /* no _SC_PAGESIZE */
22212# if HAVE_SYS_PARAM_H
22213# include <sys/param.h>
22214# ifdef EXEC_PAGESIZE
22215# define getpagesize() EXEC_PAGESIZE
22216# else /* no EXEC_PAGESIZE */
22217# ifdef NBPG
22218# define getpagesize() NBPG * CLSIZE
22219# ifndef CLSIZE
22220# define CLSIZE 1
22221# endif /* no CLSIZE */
22222# else /* no NBPG */
22223# ifdef NBPC
22224# define getpagesize() NBPC
22225# else /* no NBPC */
22226# ifdef PAGESIZE
22227# define getpagesize() PAGESIZE
22228# endif /* PAGESIZE */
22229# endif /* no NBPC */
22230# endif /* no NBPG */
22231# endif /* no EXEC_PAGESIZE */
22232# else /* no HAVE_SYS_PARAM_H */
22233# define getpagesize() 8192 /* punt totally */
22234# endif /* no HAVE_SYS_PARAM_H */
22235# endif /* no _SC_PAGESIZE */
22236
22237#endif /* no HAVE_GETPAGESIZE */
22238
22239int
22240main ()
22241{
22242 char *data, *data2, *data3;
22243 int i, pagesize;
22244 int fd;
22245
22246 pagesize = getpagesize ();
22247
22248 /* First, make a file with some known garbage in it. */
22249 data = (char *) malloc (pagesize);
22250 if (!data)
22251 exit (1);
22252 for (i = 0; i < pagesize; ++i)
22253 *(data + i) = rand ();
22254 umask (0);
22255 fd = creat ("conftest.mmap", 0600);
22256 if (fd < 0)
22257 exit (1);
22258 if (write (fd, data, pagesize) != pagesize)
22259 exit (1);
22260 close (fd);
22261
22262 /* Mmap the file as read/write/shared and verify that we see the
22263 same garbage. */
22264 fd = open ("conftest.mmap", O_RDWR);
22265 if (fd < 0)
22266 exit (1);
22267 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22268 if (data2 == 0)
22269 exit (1);
22270 for (i = 0; i < pagesize; ++i)
22271 if (*(data + i) != *(data2 + i))
22272 exit (1);
22273
22274 /* Finally, make sure that changes to the mapped area
22275 percolate back to the file as seen by read(). */
22276 for (i = 0; i < pagesize; ++i)
22277 *(data2 + i) = *(data2 + i) + 1;
22278 data3 = (char *) malloc (pagesize);
22279 if (!data3)
22280 exit (1);
22281 if (read (fd, data3, pagesize) != pagesize)
22282 exit (1);
22283 for (i = 0; i < pagesize; ++i)
22284 if (*(data2 + i) != *(data3 + i))
22285 exit (1);
22286 close (fd);
22287 exit (0);
22288}
22289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022290if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022291 magick_cv_func_mmap_fileio=yes
22292else
cristy8b350f62009-11-15 23:12:43 +000022293 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022294fi
cristy8b350f62009-11-15 23:12:43 +000022295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22296 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022297fi
22298
cristy3ed852e2009-09-05 21:47:34 +000022299fi
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22302if test $magick_cv_func_mmap_fileio = yes; then
22303
cristy8b350f62009-11-15 23:12:43 +000022304$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022305
22306fi
22307rm -f conftest.mmap
22308
cristy8b350f62009-11-15 23:12:43 +000022309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022310$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022311if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 $as_echo_n "(cached) " >&6
22313else
cristy8b350f62009-11-15 23:12:43 +000022314 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 ac_cv_func_closedir_void=yes
22316else
cristy8b350f62009-11-15 23:12:43 +000022317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022318/* end confdefs.h. */
22319$ac_includes_default
22320#include <$ac_header_dirent>
22321#ifndef __cplusplus
22322int closedir ();
22323#endif
22324
22325int
22326main ()
22327{
22328return closedir (opendir (".")) != 0;
22329 ;
22330 return 0;
22331}
22332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022333if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022334 ac_cv_func_closedir_void=no
22335else
cristy8b350f62009-11-15 23:12:43 +000022336 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022337fi
cristy8b350f62009-11-15 23:12:43 +000022338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22339 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022340fi
22341
cristy3ed852e2009-09-05 21:47:34 +000022342fi
cristy8b350f62009-11-15 23:12:43 +000022343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022344$as_echo "$ac_cv_func_closedir_void" >&6; }
22345if test $ac_cv_func_closedir_void = yes; then
22346
cristy8b350f62009-11-15 23:12:43 +000022347$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022348
22349fi
22350
cristycd4c5312009-11-22 01:19:08 +000022351
22352
22353
22354 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022355do :
22356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022357ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22358"
cristyfd9dcd42010-08-08 18:07:02 +000022359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 cat >>confdefs.h <<_ACEOF
22361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22362_ACEOF
22363
22364fi
22365
22366done
22367
cristycd4c5312009-11-22 01:19:08 +000022368
22369
22370
22371
22372
22373
22374
cristy3ed852e2009-09-05 21:47:34 +000022375for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022376do :
22377 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22378if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022380#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022381_ACEOF
22382
22383fi
22384done
22385
cristy8b350f62009-11-15 23:12:43 +000022386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022387$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022388if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 $as_echo_n "(cached) " >&6
22390else
cristy8b350f62009-11-15 23:12:43 +000022391 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 ac_cv_func_mmap_fixed_mapped=no
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022395/* end confdefs.h. */
22396$ac_includes_default
22397/* malloc might have been renamed as rpl_malloc. */
22398#undef malloc
22399
22400/* Thanks to Mike Haertel and Jim Avera for this test.
22401 Here is a matrix of mmap possibilities:
22402 mmap private not fixed
22403 mmap private fixed at somewhere currently unmapped
22404 mmap private fixed at somewhere already mapped
22405 mmap shared not fixed
22406 mmap shared fixed at somewhere currently unmapped
22407 mmap shared fixed at somewhere already mapped
22408 For private mappings, we should verify that changes cannot be read()
22409 back from the file, nor mmap's back from the file at a different
22410 address. (There have been systems where private was not correctly
22411 implemented like the infamous i386 svr4.0, and systems where the
22412 VM page cache was not coherent with the file system buffer cache
22413 like early versions of FreeBSD and possibly contemporary NetBSD.)
22414 For shared mappings, we should conversely verify that changes get
22415 propagated back to all the places they're supposed to be.
22416
22417 Grep wants private fixed already mapped.
22418 The main things grep needs to know about mmap are:
22419 * does it exist and is it safe to write into the mmap'd area
22420 * how to use it (BSD variants) */
22421
22422#include <fcntl.h>
22423#include <sys/mman.h>
22424
22425#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22426char *malloc ();
22427#endif
22428
22429/* This mess was copied from the GNU getpagesize.h. */
22430#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022431# ifdef _SC_PAGESIZE
22432# define getpagesize() sysconf(_SC_PAGESIZE)
22433# else /* no _SC_PAGESIZE */
22434# ifdef HAVE_SYS_PARAM_H
22435# include <sys/param.h>
22436# ifdef EXEC_PAGESIZE
22437# define getpagesize() EXEC_PAGESIZE
22438# else /* no EXEC_PAGESIZE */
22439# ifdef NBPG
22440# define getpagesize() NBPG * CLSIZE
22441# ifndef CLSIZE
22442# define CLSIZE 1
22443# endif /* no CLSIZE */
22444# else /* no NBPG */
22445# ifdef NBPC
22446# define getpagesize() NBPC
22447# else /* no NBPC */
22448# ifdef PAGESIZE
22449# define getpagesize() PAGESIZE
22450# endif /* PAGESIZE */
22451# endif /* no NBPC */
22452# endif /* no NBPG */
22453# endif /* no EXEC_PAGESIZE */
22454# else /* no HAVE_SYS_PARAM_H */
22455# define getpagesize() 8192 /* punt totally */
22456# endif /* no HAVE_SYS_PARAM_H */
22457# endif /* no _SC_PAGESIZE */
22458
22459#endif /* no HAVE_GETPAGESIZE */
22460
22461int
22462main ()
22463{
22464 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022465 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022466 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022467 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022468
22469 pagesize = getpagesize ();
22470
22471 /* First, make a file with some known garbage in it. */
22472 data = (char *) malloc (pagesize);
22473 if (!data)
22474 return 1;
22475 for (i = 0; i < pagesize; ++i)
22476 *(data + i) = rand ();
22477 umask (0);
22478 fd = creat ("conftest.mmap", 0600);
22479 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022480 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022481 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022482 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022483 close (fd);
22484
cristycd4c5312009-11-22 01:19:08 +000022485 /* Next, check that the tail of a page is zero-filled. File must have
22486 non-zero length, otherwise we risk SIGBUS for entire page. */
22487 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22488 if (fd2 < 0)
22489 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022490 cdata2 = "";
22491 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022492 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022493 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022494 if (data2 == MAP_FAILED)
22495 return 6;
22496 for (i = 0; i < pagesize; ++i)
22497 if (*(data2 + i))
22498 return 7;
22499 close (fd2);
22500 if (munmap (data2, pagesize))
22501 return 8;
22502
cristy3ed852e2009-09-05 21:47:34 +000022503 /* Next, try to mmap the file at a fixed address which already has
22504 something else allocated at it. If we can, also make sure that
22505 we see the same garbage. */
22506 fd = open ("conftest.mmap", O_RDWR);
22507 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022508 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022509 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22510 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022511 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022512 for (i = 0; i < pagesize; ++i)
22513 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022514 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022515
22516 /* Finally, make sure that changes to the mapped area do not
22517 percolate back to the file as seen by read(). (This is a bug on
22518 some variants of i386 svr4.0.) */
22519 for (i = 0; i < pagesize; ++i)
22520 *(data2 + i) = *(data2 + i) + 1;
22521 data3 = (char *) malloc (pagesize);
22522 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022523 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022524 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022525 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022526 for (i = 0; i < pagesize; ++i)
22527 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022528 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022529 close (fd);
22530 return 0;
22531}
22532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022533if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022534 ac_cv_func_mmap_fixed_mapped=yes
22535else
cristy8b350f62009-11-15 23:12:43 +000022536 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022537fi
cristy8b350f62009-11-15 23:12:43 +000022538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22539 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022540fi
22541
cristy3ed852e2009-09-05 21:47:34 +000022542fi
cristy8b350f62009-11-15 23:12:43 +000022543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022544$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22545if test $ac_cv_func_mmap_fixed_mapped = yes; then
22546
cristy8b350f62009-11-15 23:12:43 +000022547$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022548
22549fi
cristycd4c5312009-11-22 01:19:08 +000022550rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022551
cristy3ed852e2009-09-05 21:47:34 +000022552for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022553do :
22554 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22555if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022557#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022558_ACEOF
22559
22560fi
22561
22562done
22563
cristy3ed852e2009-09-05 21:47:34 +000022564for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022565do :
22566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022569 cat >>confdefs.h <<_ACEOF
22570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22571_ACEOF
22572
22573fi
22574done
22575
22576if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022579if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 $as_echo_n "(cached) " >&6
22581else
cristy8b350f62009-11-15 23:12:43 +000022582 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 ac_cv_func_fork_works=cross
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022586/* end confdefs.h. */
22587$ac_includes_default
22588int
22589main ()
22590{
22591
22592 /* By Ruediger Kuhlmann. */
22593 return fork () < 0;
22594
22595 ;
22596 return 0;
22597}
22598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022599if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022600 ac_cv_func_fork_works=yes
22601else
cristy8b350f62009-11-15 23:12:43 +000022602 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022603fi
cristy8b350f62009-11-15 23:12:43 +000022604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22605 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022606fi
22607
cristy3ed852e2009-09-05 21:47:34 +000022608fi
cristy8b350f62009-11-15 23:12:43 +000022609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022610$as_echo "$ac_cv_func_fork_works" >&6; }
22611
22612else
22613 ac_cv_func_fork_works=$ac_cv_func_fork
22614fi
22615if test "x$ac_cv_func_fork_works" = xcross; then
22616 case $host in
22617 *-*-amigaos* | *-*-msdosdjgpp*)
22618 # Override, as these systems have only a dummy fork() stub
22619 ac_cv_func_fork_works=no
22620 ;;
22621 *)
22622 ac_cv_func_fork_works=yes
22623 ;;
22624 esac
cristy8b350f62009-11-15 23:12:43 +000022625 { $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 +000022626$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22627fi
22628ac_cv_func_vfork_works=$ac_cv_func_vfork
22629if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022631$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022632if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022633 $as_echo_n "(cached) " >&6
22634else
cristy8b350f62009-11-15 23:12:43 +000022635 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 ac_cv_func_vfork_works=cross
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022639/* end confdefs.h. */
22640/* Thanks to Paul Eggert for this test. */
22641$ac_includes_default
22642#include <sys/wait.h>
22643#ifdef HAVE_VFORK_H
22644# include <vfork.h>
22645#endif
22646/* On some sparc systems, changes by the child to local and incoming
22647 argument registers are propagated back to the parent. The compiler
22648 is told about this with #include <vfork.h>, but some compilers
22649 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22650 static variable whose address is put into a register that is
22651 clobbered by the vfork. */
22652static void
22653#ifdef __cplusplus
22654sparc_address_test (int arg)
22655# else
22656sparc_address_test (arg) int arg;
22657#endif
22658{
22659 static pid_t child;
22660 if (!child) {
22661 child = vfork ();
22662 if (child < 0) {
22663 perror ("vfork");
22664 _exit(2);
22665 }
22666 if (!child) {
22667 arg = getpid();
22668 write(-1, "", 0);
22669 _exit (arg);
22670 }
22671 }
22672}
22673
22674int
22675main ()
22676{
22677 pid_t parent = getpid ();
22678 pid_t child;
22679
22680 sparc_address_test (0);
22681
22682 child = vfork ();
22683
22684 if (child == 0) {
22685 /* Here is another test for sparc vfork register problems. This
22686 test uses lots of local variables, at least as many local
22687 variables as main has allocated so far including compiler
22688 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22689 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22690 reuse the register of parent for one of the local variables,
22691 since it will think that parent can't possibly be used any more
22692 in this routine. Assigning to the local variable will thus
22693 munge parent in the parent process. */
22694 pid_t
22695 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22696 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22697 /* Convince the compiler that p..p7 are live; otherwise, it might
22698 use the same hardware register for all 8 local variables. */
22699 if (p != p1 || p != p2 || p != p3 || p != p4
22700 || p != p5 || p != p6 || p != p7)
22701 _exit(1);
22702
22703 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22704 from child file descriptors. If the child closes a descriptor
22705 before it execs or exits, this munges the parent's descriptor
22706 as well. Test for this by closing stdout in the child. */
22707 _exit(close(fileno(stdout)) != 0);
22708 } else {
22709 int status;
22710 struct stat st;
22711
22712 while (wait(&status) != child)
22713 ;
22714 return (
22715 /* Was there some problem with vforking? */
22716 child < 0
22717
22718 /* Did the child fail? (This shouldn't happen.) */
22719 || status
22720
22721 /* Did the vfork/compiler bug occur? */
22722 || parent != getpid()
22723
22724 /* Did the file descriptor bug occur? */
22725 || fstat(fileno(stdout), &st) != 0
22726 );
22727 }
22728}
22729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022730if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022731 ac_cv_func_vfork_works=yes
22732else
cristy8b350f62009-11-15 23:12:43 +000022733 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022734fi
cristy8b350f62009-11-15 23:12:43 +000022735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22736 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022737fi
22738
cristy3ed852e2009-09-05 21:47:34 +000022739fi
cristy8b350f62009-11-15 23:12:43 +000022740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022741$as_echo "$ac_cv_func_vfork_works" >&6; }
22742
22743fi;
22744if test "x$ac_cv_func_fork_works" = xcross; then
22745 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022746 { $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 +000022747$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22748fi
22749
22750if test "x$ac_cv_func_vfork_works" = xyes; then
22751
cristy8b350f62009-11-15 23:12:43 +000022752$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022753
22754else
22755
cristy8b350f62009-11-15 23:12:43 +000022756$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022757
22758fi
22759if test "x$ac_cv_func_fork_works" = xyes; then
22760
cristy8b350f62009-11-15 23:12:43 +000022761$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022762
22763fi
22764
cristy8b350f62009-11-15 23:12:43 +000022765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022766$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022767if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022768 $as_echo_n "(cached) " >&6
22769else
cristy8b350f62009-11-15 23:12:43 +000022770 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 ac_cv_func_memcmp_working=no
22772else
cristy8b350f62009-11-15 23:12:43 +000022773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022774/* end confdefs.h. */
22775$ac_includes_default
22776int
22777main ()
22778{
22779
22780 /* Some versions of memcmp are not 8-bit clean. */
22781 char c0 = '\100', c1 = '\200', c2 = '\201';
22782 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22783 return 1;
22784
22785 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22786 or more and with at least one buffer not starting on a 4-byte boundary.
22787 William Lewis provided this test program. */
22788 {
22789 char foo[21];
22790 char bar[21];
22791 int i;
22792 for (i = 0; i < 4; i++)
22793 {
22794 char *a = foo + i;
22795 char *b = bar + i;
22796 strcpy (a, "--------01111111");
22797 strcpy (b, "--------10000000");
22798 if (memcmp (a, b, 16) >= 0)
22799 return 1;
22800 }
22801 return 0;
22802 }
22803
22804 ;
22805 return 0;
22806}
22807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022808if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022809 ac_cv_func_memcmp_working=yes
22810else
cristy8b350f62009-11-15 23:12:43 +000022811 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022812fi
cristy8b350f62009-11-15 23:12:43 +000022813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22814 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022815fi
22816
cristy3ed852e2009-09-05 21:47:34 +000022817fi
cristy8b350f62009-11-15 23:12:43 +000022818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo "$ac_cv_func_memcmp_working" >&6; }
22820test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22821 *" memcmp.$ac_objext "* ) ;;
22822 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22823 ;;
22824esac
22825
22826
cristy3ed852e2009-09-05 21:47:34 +000022827for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022828do :
22829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22830ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022832 cat >>confdefs.h <<_ACEOF
22833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22834_ACEOF
22835
22836fi
22837
22838done
22839
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022842if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 $as_echo_n "(cached) " >&6
22844else
22845 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22846 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22847 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022849/* end confdefs.h. */
22850$ac_includes_default
22851#ifdef HAVE_SYS_SELECT_H
22852# include <sys/select.h>
22853#endif
22854#ifdef HAVE_SYS_SOCKET_H
22855# include <sys/socket.h>
22856#endif
22857
22858int
22859main ()
22860{
22861extern int select ($ac_arg1,
22862 $ac_arg234, $ac_arg234, $ac_arg234,
22863 $ac_arg5);
22864 ;
22865 return 0;
22866}
22867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022869 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022870fi
cristy3ed852e2009-09-05 21:47:34 +000022871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 done
22873 done
22874done
22875# Provide a safe default value.
22876: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22877
22878fi
cristy8b350f62009-11-15 23:12:43 +000022879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo "$ac_cv_func_select_args" >&6; }
22881ac_save_IFS=$IFS; IFS=','
22882set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22883IFS=$ac_save_IFS
22884shift
22885
22886cat >>confdefs.h <<_ACEOF
22887#define SELECT_TYPE_ARG1 $1
22888_ACEOF
22889
22890
22891cat >>confdefs.h <<_ACEOF
22892#define SELECT_TYPE_ARG234 ($2)
22893_ACEOF
22894
22895
22896cat >>confdefs.h <<_ACEOF
22897#define SELECT_TYPE_ARG5 ($3)
22898_ACEOF
22899
22900rm -f conftest*
22901
cristy8b350f62009-11-15 23:12:43 +000022902if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022903 $as_echo_n "(cached) " >&6
22904else
22905 ac_cv_func_setvbuf_reversed=no
22906fi
22907
22908
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022911if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022912 $as_echo_n "(cached) " >&6
22913else
cristy8b350f62009-11-15 23:12:43 +000022914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022915/* end confdefs.h. */
22916#include <sys/types.h>
22917#include <signal.h>
22918
22919int
22920main ()
22921{
22922return *(signal (0, 0)) (0) == 1;
22923 ;
22924 return 0;
22925}
22926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022928 ac_cv_type_signal=int
22929else
cristy8b350f62009-11-15 23:12:43 +000022930 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022931fi
cristy3ed852e2009-09-05 21:47:34 +000022932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933fi
cristy8b350f62009-11-15 23:12:43 +000022934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo "$ac_cv_type_signal" >&6; }
22936
22937cat >>confdefs.h <<_ACEOF
22938#define RETSIGTYPE $ac_cv_type_signal
22939_ACEOF
22940
22941
cristy8b350f62009-11-15 23:12:43 +000022942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022943$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022944if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022945 $as_echo_n "(cached) " >&6
22946else
cristy8b350f62009-11-15 23:12:43 +000022947 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022948 ac_cv_func_strtod=no
22949else
cristy8b350f62009-11-15 23:12:43 +000022950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022951/* end confdefs.h. */
22952
22953$ac_includes_default
22954#ifndef strtod
22955double strtod ();
22956#endif
22957int
22958main()
22959{
22960 {
22961 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22962 char *string = " +69";
22963 char *term;
22964 double value;
22965 value = strtod (string, &term);
22966 if (value != 69 || term != (string + 4))
22967 return 1;
22968 }
22969
22970 {
22971 /* Under Solaris 2.4, strtod returns the wrong value for the
22972 terminating character under some conditions. */
22973 char *string = "NaN";
22974 char *term;
22975 strtod (string, &term);
22976 if (term != string && *(term - 1) == 0)
22977 return 1;
22978 }
22979 return 0;
22980}
22981
22982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022983if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022984 ac_cv_func_strtod=yes
22985else
cristy8b350f62009-11-15 23:12:43 +000022986 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022987fi
cristy8b350f62009-11-15 23:12:43 +000022988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22989 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022990fi
22991
cristy3ed852e2009-09-05 21:47:34 +000022992fi
cristy8b350f62009-11-15 23:12:43 +000022993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022994$as_echo "$ac_cv_func_strtod" >&6; }
22995if test $ac_cv_func_strtod = no; then
22996 case " $LIBOBJS " in
22997 *" strtod.$ac_objext "* ) ;;
22998 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22999 ;;
23000esac
23001
cristy8b350f62009-11-15 23:12:43 +000023002ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23003if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023004
cristy3ed852e2009-09-05 21:47:34 +000023005fi
23006
cristy3ed852e2009-09-05 21:47:34 +000023007if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023009$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023010if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023011 $as_echo_n "(cached) " >&6
23012else
23013 ac_check_lib_save_LIBS=$LIBS
23014LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023016/* end confdefs.h. */
23017
23018/* Override any GCC internal prototype to avoid an error.
23019 Use char because int might match the return type of a GCC
23020 builtin and then its argument prototype would still apply. */
23021#ifdef __cplusplus
23022extern "C"
23023#endif
23024char pow ();
23025int
23026main ()
23027{
23028return pow ();
23029 ;
23030 return 0;
23031}
23032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023034 ac_cv_lib_m_pow=yes
23035else
cristy8b350f62009-11-15 23:12:43 +000023036 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023037fi
cristy8b350f62009-11-15 23:12:43 +000023038rm -f core conftest.err conftest.$ac_objext \
23039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023040LIBS=$ac_check_lib_save_LIBS
23041fi
cristy8b350f62009-11-15 23:12:43 +000023042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023043$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023044if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023045 POW_LIB=-lm
23046else
cristy8b350f62009-11-15 23:12:43 +000023047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023048$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23049fi
23050
23051fi
23052
23053fi
23054
cristy3ed852e2009-09-05 21:47:34 +000023055for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023056do :
23057 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23058if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023059 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023060#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023061_ACEOF
23062
cristy8b350f62009-11-15 23:12:43 +000023063ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23064if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023065
cristy8b350f62009-11-15 23:12:43 +000023066$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023067
23068fi
23069
23070fi
23071done
23072
23073
23074
cristy161b9262010-03-20 19:34:32 +000023075#
23076# Find math library
23077#
23078MATH_LIBS=''
23079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23080$as_echo_n "checking for sqrt in -lm... " >&6; }
23081if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083else
23084 ac_check_lib_save_LIBS=$LIBS
23085LIBS="-lm $LIBS"
23086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087/* end confdefs.h. */
23088
23089/* Override any GCC internal prototype to avoid an error.
23090 Use char because int might match the return type of a GCC
23091 builtin and then its argument prototype would still apply. */
23092#ifdef __cplusplus
23093extern "C"
23094#endif
23095char sqrt ();
23096int
23097main ()
23098{
23099return sqrt ();
23100 ;
23101 return 0;
23102}
23103_ACEOF
23104if ac_fn_c_try_link "$LINENO"; then :
23105 ac_cv_lib_m_sqrt=yes
23106else
23107 ac_cv_lib_m_sqrt=no
23108fi
23109rm -f core conftest.err conftest.$ac_objext \
23110 conftest$ac_exeext conftest.$ac_ext
23111LIBS=$ac_check_lib_save_LIBS
23112fi
23113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23114$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23115if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23116 MATH_LIBS="-lm"
23117fi
23118
23119LIBS="$MATH_LIBS $LIBS"
23120
23121
cristyf1897e32010-08-29 19:59:09 +000023122for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _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 strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023123do :
23124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23125ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023126if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 cat >>confdefs.h <<_ACEOF
23128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23129_ACEOF
23130
23131fi
23132done
23133
23134
cristye43a45e2009-09-28 14:49:00 +000023135#
23136# Check for clock_gettime().
23137#
cristy8b350f62009-11-15 23:12:43 +000023138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023139$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023140if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023141 $as_echo_n "(cached) " >&6
23142else
23143 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023145/* end confdefs.h. */
23146
23147/* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23150#ifdef __cplusplus
23151extern "C"
23152#endif
23153char clock_gettime ();
23154int
23155main ()
23156{
23157return clock_gettime ();
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162for ac_lib in '' rt; do
23163 if test -z "$ac_lib"; then
23164 ac_res="none required"
23165 else
23166 ac_res=-l$ac_lib
23167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23168 fi
cristy8b350f62009-11-15 23:12:43 +000023169 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023170 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023171fi
cristy8b350f62009-11-15 23:12:43 +000023172rm -f core conftest.err conftest.$ac_objext \
23173 conftest$ac_exeext
23174 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023175 break
23176fi
23177done
cristy8b350f62009-11-15 23:12:43 +000023178if test "${ac_cv_search_clock_gettime+set}" = set; then :
23179
cristye43a45e2009-09-28 14:49:00 +000023180else
23181 ac_cv_search_clock_gettime=no
23182fi
23183rm conftest.$ac_ext
23184LIBS=$ac_func_search_save_LIBS
23185fi
cristy8b350f62009-11-15 23:12:43 +000023186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023187$as_echo "$ac_cv_search_clock_gettime" >&6; }
23188ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023189if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23191
23192
cristy8b350f62009-11-15 23:12:43 +000023193$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023194
cristy8b350f62009-11-15 23:12:43 +000023195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023196$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023198/* end confdefs.h. */
23199#include <time.h>
23200int
23201main ()
23202{
23203clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023204 ;
23205 return 0;
23206}
23207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023208if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023209
cristy8b350f62009-11-15 23:12:43 +000023210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023211$as_echo "yes" >&6; }
23212
cristy8b350f62009-11-15 23:12:43 +000023213$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023214
23215
23216else
cristy8b350f62009-11-15 23:12:43 +000023217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023218$as_echo "no" >&6; }
23219
23220fi
cristye43a45e2009-09-28 14:49:00 +000023221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222
23223else
23224
cristy8b350f62009-11-15 23:12:43 +000023225 for ac_func in gettimeofday ftime
23226do :
23227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023229if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023230 cat >>confdefs.h <<_ACEOF
23231#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23232_ACEOF
23233 break
23234fi
23235done
23236
23237
23238
23239fi
23240
23241
cristy3ed852e2009-09-05 21:47:34 +000023242########
23243#
23244# Check for function prototypes
23245#
23246########
23247
cristy8b350f62009-11-15 23:12:43 +000023248ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023249#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023250"
23251if test "x$ac_cv_have_decl_pread" = x""yes; then :
23252 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023253else
cristy8b350f62009-11-15 23:12:43 +000023254 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023255fi
23256
cristy3ed852e2009-09-05 21:47:34 +000023257cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023258#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023260ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023261#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023262"
23263if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23264 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023265else
cristy8b350f62009-11-15 23:12:43 +000023266 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023267fi
23268
cristy3ed852e2009-09-05 21:47:34 +000023269cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023270#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023271_ACEOF
23272
23273
cristy8b350f62009-11-15 23:12:43 +000023274ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023275#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023276"
23277if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23278 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023279else
cristy8b350f62009-11-15 23:12:43 +000023280 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023281fi
23282
cristy3ed852e2009-09-05 21:47:34 +000023283cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023284#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023285_ACEOF
23286
23287
cristy8b350f62009-11-15 23:12:43 +000023288ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023289#include <stdio.h>
23290#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023291"
23292if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23293 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023294else
cristy8b350f62009-11-15 23:12:43 +000023295 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023296fi
23297
cristy3ed852e2009-09-05 21:47:34 +000023298cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023299#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023300_ACEOF
23301
23302
cristy3ed852e2009-09-05 21:47:34 +000023303########
23304#
23305# C++ Support Tests (For Magick++)
23306#
23307########
23308have_magick_plus_plus='no'
23309if test "$with_magick_plus_plus" = 'yes'; then
23310 OLIBS="$LIBS"
23311 LIBS=''
23312 ac_ext=cpp
23313ac_cpp='$CXXCPP $CPPFLAGS'
23314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23317
23318
23319 # Full set of headers used...
23320 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23321 # functional iomanip iosfwd iostream iterator list string strstream utility
23322 ac_ext=cpp
23323ac_cpp='$CXXCPP $CPPFLAGS'
23324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23327
23328 ac_ext=cpp
23329ac_cpp='$CXXCPP $CPPFLAGS'
23330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23333if test -z "$CXX"; then
23334 if test -n "$CCC"; then
23335 CXX=$CCC
23336 else
23337 if test -n "$ac_tool_prefix"; then
23338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23339 do
23340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023343$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023344if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023345 $as_echo_n "(cached) " >&6
23346else
23347 if test -n "$CXX"; then
23348 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23349else
23350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23351for as_dir in $PATH
23352do
23353 IFS=$as_save_IFS
23354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023359 break 2
23360 fi
23361done
cristy8b350f62009-11-15 23:12:43 +000023362 done
cristy3ed852e2009-09-05 21:47:34 +000023363IFS=$as_save_IFS
23364
23365fi
23366fi
23367CXX=$ac_cv_prog_CXX
23368if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "$CXX" >&6; }
23371else
cristy8b350f62009-11-15 23:12:43 +000023372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "no" >&6; }
23374fi
23375
23376
23377 test -n "$CXX" && break
23378 done
23379fi
23380if test -z "$CXX"; then
23381 ac_ct_CXX=$CXX
23382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23383do
23384 # Extract the first word of "$ac_prog", so it can be a program name with args.
23385set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023387$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023388if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023389 $as_echo_n "(cached) " >&6
23390else
23391 if test -n "$ac_ct_CXX"; then
23392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23393else
23394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23395for as_dir in $PATH
23396do
23397 IFS=$as_save_IFS
23398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23401 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023403 break 2
23404 fi
23405done
cristy8b350f62009-11-15 23:12:43 +000023406 done
cristy3ed852e2009-09-05 21:47:34 +000023407IFS=$as_save_IFS
23408
23409fi
23410fi
23411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23412if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo "$ac_ct_CXX" >&6; }
23415else
cristy8b350f62009-11-15 23:12:43 +000023416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023417$as_echo "no" >&6; }
23418fi
23419
23420
23421 test -n "$ac_ct_CXX" && break
23422done
23423
23424 if test "x$ac_ct_CXX" = x; then
23425 CXX="g++"
23426 else
23427 case $cross_compiling:$ac_tool_warned in
23428yes:)
cristy8b350f62009-11-15 23:12:43 +000023429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23431ac_tool_warned=yes ;;
23432esac
23433 CXX=$ac_ct_CXX
23434 fi
23435fi
23436
23437 fi
23438fi
23439# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023440$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023441set X $ac_compile
23442ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023443for ac_option in --version -v -V -qversion; do
23444 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023445case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448esac
cristy8b350f62009-11-15 23:12:43 +000023449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23450$as_echo "$ac_try_echo"; } >&5
23451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023452 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023453 if test -s conftest.err; then
23454 sed '10a\
23455... rest of stderr output deleted ...
23456 10q' conftest.err >conftest.er1
23457 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023458 fi
cristycd4c5312009-11-22 01:19:08 +000023459 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23461 test $ac_status = 0; }
23462done
cristy3ed852e2009-09-05 21:47:34 +000023463
cristy8b350f62009-11-15 23:12:43 +000023464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023466if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023467 $as_echo_n "(cached) " >&6
23468else
cristy8b350f62009-11-15 23:12:43 +000023469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023470/* end confdefs.h. */
23471
23472int
23473main ()
23474{
23475#ifndef __GNUC__
23476 choke me
23477#endif
23478
23479 ;
23480 return 0;
23481}
23482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023483if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 ac_compiler_gnu=yes
23485else
cristy8b350f62009-11-15 23:12:43 +000023486 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023487fi
cristy3ed852e2009-09-05 21:47:34 +000023488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23490
23491fi
cristy8b350f62009-11-15 23:12:43 +000023492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023493$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23494if test $ac_compiler_gnu = yes; then
23495 GXX=yes
23496else
23497 GXX=
23498fi
23499ac_test_CXXFLAGS=${CXXFLAGS+set}
23500ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023502$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023503if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023504 $as_echo_n "(cached) " >&6
23505else
23506 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23507 ac_cxx_werror_flag=yes
23508 ac_cv_prog_cxx_g=no
23509 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023511/* end confdefs.h. */
23512
23513int
23514main ()
23515{
23516
23517 ;
23518 return 0;
23519}
23520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023521if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023522 ac_cv_prog_cxx_g=yes
23523else
cristy8b350f62009-11-15 23:12:43 +000023524 CXXFLAGS=""
23525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023526/* end confdefs.h. */
23527
23528int
23529main ()
23530{
23531
23532 ;
23533 return 0;
23534}
23535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023536if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023537
cristy8b350f62009-11-15 23:12:43 +000023538else
23539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023540 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023542/* end confdefs.h. */
23543
23544int
23545main ()
23546{
23547
23548 ;
23549 return 0;
23550}
23551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023552if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023553 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023554fi
cristy3ed852e2009-09-05 21:47:34 +000023555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556fi
cristy3ed852e2009-09-05 21:47:34 +000023557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558fi
cristy3ed852e2009-09-05 21:47:34 +000023559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23561fi
cristy8b350f62009-11-15 23:12:43 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo "$ac_cv_prog_cxx_g" >&6; }
23564if test "$ac_test_CXXFLAGS" = set; then
23565 CXXFLAGS=$ac_save_CXXFLAGS
23566elif test $ac_cv_prog_cxx_g = yes; then
23567 if test "$GXX" = yes; then
23568 CXXFLAGS="-g -O2"
23569 else
23570 CXXFLAGS="-g"
23571 fi
23572else
23573 if test "$GXX" = yes; then
23574 CXXFLAGS="-O2"
23575 else
23576 CXXFLAGS=
23577 fi
23578fi
23579ac_ext=cpp
23580ac_cpp='$CXXCPP $CPPFLAGS'
23581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23584
23585depcc="$CXX" am_compiler_list=
23586
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023589if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023590 $as_echo_n "(cached) " >&6
23591else
23592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23593 # We make a subdir and do the tests there. Otherwise we can end up
23594 # making bogus files that we don't know about and never remove. For
23595 # instance it was reported that on HP-UX the gcc test will end up
23596 # making a dummy file named `D' -- because `-MD' means `put the output
23597 # in D'.
23598 mkdir conftest.dir
23599 # Copy depcomp to subdir because otherwise we won't find it if we're
23600 # using a relative directory.
23601 cp "$am_depcomp" conftest.dir
23602 cd conftest.dir
23603 # We will build objects and dependencies in a subdirectory because
23604 # it helps to detect inapplicable dependency modes. For instance
23605 # both Tru64's cc and ICC support -MD to output dependencies as a
23606 # side effect of compilation, but ICC will put the dependencies in
23607 # the current directory while Tru64 will put them in the object
23608 # directory.
23609 mkdir sub
23610
23611 am_cv_CXX_dependencies_compiler_type=none
23612 if test "$am_compiler_list" = ""; then
23613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23614 fi
23615 am__universal=false
23616 case " $depcc " in #(
23617 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23618 esac
23619
23620 for depmode in $am_compiler_list; do
23621 # Setup a source with many dependencies, because some compilers
23622 # like to wrap large dependency lists on column 80 (with \), and
23623 # we should not choose a depcomp mode which is confused by this.
23624 #
23625 # We need to recreate these files for each test, as the compiler may
23626 # overwrite some of them when testing with obscure command lines.
23627 # This happens at least with the AIX C compiler.
23628 : > sub/conftest.c
23629 for i in 1 2 3 4 5 6; do
23630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23631 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23632 # Solaris 8's {/usr,}/bin/sh.
23633 touch sub/conftst$i.h
23634 done
23635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23636
23637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23638 # mode. It turns out that the SunPro C++ compiler does not properly
23639 # handle `-M -o', and we need to detect this. Also, some Intel
23640 # versions had trouble with output in subdirs
23641 am__obj=sub/conftest.${OBJEXT-o}
23642 am__minus_obj="-o $am__obj"
23643 case $depmode in
23644 gcc)
23645 # This depmode causes a compiler race in universal mode.
23646 test "$am__universal" = false || continue
23647 ;;
23648 nosideeffect)
23649 # after this tag, mechanisms are not by side-effect, so they'll
23650 # only be used when explicitly requested
23651 if test "x$enable_dependency_tracking" = xyes; then
23652 continue
23653 else
23654 break
23655 fi
23656 ;;
23657 msvisualcpp | msvcmsys)
23658 # This compiler won't grok `-c -o', but also, the minuso test has
23659 # not run yet. These depmodes are late enough in the game, and
23660 # so weak that their functioning should not be impacted.
23661 am__obj=conftest.${OBJEXT-o}
23662 am__minus_obj=
23663 ;;
23664 none) break ;;
23665 esac
23666 if depmode=$depmode \
23667 source=sub/conftest.c object=$am__obj \
23668 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23669 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23670 >/dev/null 2>conftest.err &&
23671 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23673 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23675 # icc doesn't choke on unknown options, it will just issue warnings
23676 # or remarks (even with -Werror). So we grep stderr for any message
23677 # that says an option was ignored or not supported.
23678 # When given -MP, icc 7.0 and 7.1 complain thusly:
23679 # icc: Command line warning: ignoring option '-M'; no argument required
23680 # The diagnosis changed in icc 8.0:
23681 # icc: Command line remark: option '-MP' not supported
23682 if (grep 'ignoring option' conftest.err ||
23683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23684 am_cv_CXX_dependencies_compiler_type=$depmode
23685 break
23686 fi
23687 fi
23688 done
23689
23690 cd ..
23691 rm -rf conftest.dir
23692else
23693 am_cv_CXX_dependencies_compiler_type=none
23694fi
23695
23696fi
cristy8b350f62009-11-15 23:12:43 +000023697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023698$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23699CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23700
23701 if
23702 test "x$enable_dependency_tracking" != xno \
23703 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23704 am__fastdepCXX_TRUE=
23705 am__fastdepCXX_FALSE='#'
23706else
23707 am__fastdepCXX_TRUE='#'
23708 am__fastdepCXX_FALSE=
23709fi
23710
23711
cristy8b350f62009-11-15 23:12:43 +000023712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023714if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023715 $as_echo_n "(cached) " >&6
23716else
23717
23718 ac_ext=cpp
23719ac_cpp='$CXXCPP $CPPFLAGS'
23720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23723
cristy8b350f62009-11-15 23:12:43 +000023724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023725/* end confdefs.h. */
23726
23727int f(int x){return 1;}
23728int f(char x){return 1;}
23729int f(bool x){return 1;}
23730
23731int
23732main ()
23733{
23734bool b = true; return f(b);
23735 ;
23736 return 0;
23737}
23738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023739if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023740 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023741else
cristy964cb7f2010-04-25 23:18:00 +000023742 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023743fi
cristy3ed852e2009-09-05 21:47:34 +000023744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 ac_ext=cpp
23746ac_cpp='$CXXCPP $CPPFLAGS'
23747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23750
23751
23752fi
cristy964cb7f2010-04-25 23:18:00 +000023753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23754$as_echo "$ax_cv_cxx_bool" >&6; }
23755if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023756
cristy8b350f62009-11-15 23:12:43 +000023757$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023758
23759fi
23760
cristy8b350f62009-11-15 23:12:43 +000023761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023763if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023764 $as_echo_n "(cached) " >&6
23765else
23766
23767 ac_ext=cpp
23768ac_cpp='$CXXCPP $CPPFLAGS'
23769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23772
cristy8b350f62009-11-15 23:12:43 +000023773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023774/* end confdefs.h. */
23775namespace Outer { namespace Inner { int i = 0; }}
23776int
23777main ()
23778{
23779using namespace Outer::Inner; return i;
23780 ;
23781 return 0;
23782}
23783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023784if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023785 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023786else
cristy964cb7f2010-04-25 23:18:00 +000023787 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023788fi
cristy3ed852e2009-09-05 21:47:34 +000023789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 ac_ext=cpp
23791ac_cpp='$CXXCPP $CPPFLAGS'
23792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23795
23796
23797fi
cristy964cb7f2010-04-25 23:18:00 +000023798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23799$as_echo "$ax_cv_cxx_namespaces" >&6; }
23800if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023801
cristy8b350f62009-11-15 23:12:43 +000023802$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023803
23804fi
23805
cristy964cb7f2010-04-25 23:18:00 +000023806
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23808$as_echo_n "checking if g++ supports namespace std... " >&6; }
23809if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023810 $as_echo_n "(cached) " >&6
23811else
23812
cristy964cb7f2010-04-25 23:18:00 +000023813 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023814ac_cpp='$CXXCPP $CPPFLAGS'
23815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23818
cristy964cb7f2010-04-25 23:18:00 +000023819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023820/* end confdefs.h. */
23821#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023822 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023823int
23824main ()
23825{
cristy964cb7f2010-04-25 23:18:00 +000023826
cristy3ed852e2009-09-05 21:47:34 +000023827 ;
23828 return 0;
23829}
23830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023831if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023832 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023833else
cristy964cb7f2010-04-25 23:18:00 +000023834 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023835fi
cristy3ed852e2009-09-05 21:47:34 +000023836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023837 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023838ac_cpp='$CXXCPP $CPPFLAGS'
23839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23842
23843
23844fi
cristy964cb7f2010-04-25 23:18:00 +000023845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23846$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23847 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023848
cristy964cb7f2010-04-25 23:18:00 +000023849$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023850
cristy964cb7f2010-04-25 23:18:00 +000023851 fi
cristy3ed852e2009-09-05 21:47:34 +000023852
cristy8b350f62009-11-15 23:12:43 +000023853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023855if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023856 $as_echo_n "(cached) " >&6
23857else
23858
23859
23860 ac_ext=cpp
23861ac_cpp='$CXXCPP $CPPFLAGS'
23862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23865
cristy8b350f62009-11-15 23:12:43 +000023866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023867/* end confdefs.h. */
23868#include <iostream>
23869#include <map>
23870#include <iomanip>
23871#include <cmath>
23872#ifdef HAVE_NAMESPACES
23873using namespace std;
23874#endif
23875int
23876main ()
23877{
23878return 0;
23879 ;
23880 return 0;
23881}
23882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023883if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023884 ac_cv_cxx_have_std_libs=yes
23885else
cristy8b350f62009-11-15 23:12:43 +000023886 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023887fi
cristy3ed852e2009-09-05 21:47:34 +000023888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 ac_ext=cpp
23890ac_cpp='$CXXCPP $CPPFLAGS'
23891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23894
23895
23896fi
cristy8b350f62009-11-15 23:12:43 +000023897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023898$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23899if test "$ac_cv_cxx_have_std_libs" = yes; then
23900
cristy8b350f62009-11-15 23:12:43 +000023901$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023902
23903fi
23904
cristy8b350f62009-11-15 23:12:43 +000023905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023907if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 $as_echo_n "(cached) " >&6
23909else
23910
23911 ac_ext=cpp
23912ac_cpp='$CXXCPP $CPPFLAGS'
23913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23916
cristy8b350f62009-11-15 23:12:43 +000023917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023918/* end confdefs.h. */
23919const wchar_t* s=L"wide string";
23920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023921if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023922 ac_cv_cxx_have_lstring=yes
23923else
cristy8b350f62009-11-15 23:12:43 +000023924 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023925fi
cristy3ed852e2009-09-05 21:47:34 +000023926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 ac_ext=cpp
23928ac_cpp='$CXXCPP $CPPFLAGS'
23929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23932
23933
23934fi
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23937if test "$ac_cv_cxx_have_lstring" = yes; then
23938
cristy8b350f62009-11-15 23:12:43 +000023939$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023940
23941fi
23942
23943
23944 OPENMP_CXXFLAGS=
23945 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023946if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023947 enableval=$enable_openmp;
23948fi
23949
23950 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23952$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023953if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023954 $as_echo_n "(cached) " >&6
23955else
cristy8b350f62009-11-15 23:12:43 +000023956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023958
23959#ifndef _OPENMP
23960 choke me
23961#endif
23962#include <omp.h>
23963int main () { return omp_get_num_threads (); }
23964
23965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023966if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 ac_cv_prog_cxx_openmp='none needed'
23968else
cristy8b350f62009-11-15 23:12:43 +000023969 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023970 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23971 ac_save_CXXFLAGS=$CXXFLAGS
23972 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023975
23976#ifndef _OPENMP
23977 choke me
23978#endif
23979#include <omp.h>
23980int main () { return omp_get_num_threads (); }
23981
23982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023983if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023984 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023985fi
cristy8b350f62009-11-15 23:12:43 +000023986rm -f core conftest.err conftest.$ac_objext \
23987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023988 CXXFLAGS=$ac_save_CXXFLAGS
23989 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23990 break
23991 fi
23992 done
23993fi
cristy8b350f62009-11-15 23:12:43 +000023994rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023996fi
cristy8b350f62009-11-15 23:12:43 +000023997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023998$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23999 case $ac_cv_prog_cxx_openmp in #(
24000 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024001 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024002 *)
cristy8b350f62009-11-15 23:12:43 +000024003 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024004 esac
24005 fi
24006
24007
24008 ac_ext=c
24009ac_cpp='$CPP $CPPFLAGS'
24010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24012ac_compiler_gnu=$ac_cv_c_compiler_gnu
24013
24014
cristy8b350f62009-11-15 23:12:43 +000024015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024016$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24017 if \
cristy964cb7f2010-04-25 23:18:00 +000024018 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024019 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024020 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024021 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024022 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024023 have_magick_plus_plus='yes'
24024 else
24025 have_magick_plus_plus='no (failed tests)'
24026 fi
cristy8b350f62009-11-15 23:12:43 +000024027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024028$as_echo "$have_magick_plus_plus" >&6; }
24029 LIBS="$OLIBS"
24030fi
24031 if test "$have_magick_plus_plus" = 'yes'; then
24032 WITH_MAGICK_PLUS_PLUS_TRUE=
24033 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24034else
24035 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24036 WITH_MAGICK_PLUS_PLUS_FALSE=
24037fi
24038
24039
24040# Only check for delegate libraries in subdirectories if requested.
24041if test "$enable_delegate_build" != 'no'; then
24042 # Check for delegate sub-directories and add -I & -L options as required.
24043 # This presumes that delegates are installed as detailed in the ImageMagick
24044 # README. If delegates are installed in a standard location where the
24045 # compiler will automatically find them then these options should not be
24046 # required.
24047
24048 #
24049 # Most delegates have includes in the same directory as the library, but not all...
24050 #
24051 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024052 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024053 if test -d "$builddir/$dir"; then
24054 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24055 else
24056 if test -d "$srcdirfull/$dir"; then
24057 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24058 fi
24059 fi
24060 done
24061
24062 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024063 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024064 if test -d "$builddir/$dir/.libs"; then
24065 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24066 else
24067 if test -d "$srcdirfull/$dir/.libs"; then
24068 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24069 fi
24070 fi
24071 if test -d "$builddir/$dir"; then
24072 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24073 else
24074 if test -d "$srcdirfull/$dir"; then
24075 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24076 fi
24077 fi
24078 done
24079fi
24080
24081# Assume that delegate headers reside under same directory as ImageMagick
24082# installation prefix.
24083MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24084
24085#
24086# Find the X11 RGB database
24087#
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024090if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024091 $as_echo_n "(cached) " >&6
24092else
24093 # Look for the header file in a standard set of common directories.
24094# Check X11 before X11Rn because it is often a symlink to the current release.
24095 for ac_dir in \
24096 /lib/usr/lib/X11 \
24097 /usr/X11/lib \
24098 /usr/X11R4/lib \
24099 /usr/X11R5/lib \
24100 /usr/X11R6/lib \
24101 /usr/X11R7/lib \
24102 /usr/X386/lib \
24103 /usr/XFree86/lib/X11 \
24104 /usr/athena/lib \
24105 /usr/lib \
24106 /usr/lib/X11 \
24107 /usr/lib/X11R4 \
24108 /usr/lib/X11R5 \
24109 /usr/lib/X11R6 \
24110 /usr/lib/X11R7 \
24111 /usr/local/X11/lib \
24112 /usr/local/X11R4/lib \
24113 /usr/local/X11R5/lib \
24114 /usr/local/X11R6/lib \
24115 /usr/local/lib \
24116 /usr/local/lib/X11 \
24117 /usr/local/lib/X11R4 \
24118 /usr/local/lib/X11R5 \
24119 /usr/local/lib/X11R6 \
24120 /usr/local/lib/X11R7 \
24121 /usr/local/x11r5/lib \
24122 /usr/lpp/Xamples/lib \
24123 /usr/openwin/lib \
24124 /usr/openwin/share/lib \
24125 /usr/unsupported/lib \
24126 /usr/x386/lib \
24127 ; do
24128 if test -f "$ac_dir/X11/rgb.txt"; then
24129 im_cv_x_configure="$ac_dir/X11/"
24130 break
24131 elif test -f "$ac_dir/rgb.txt"; then
24132 im_cv_x_configure="$ac_dir/"
24133 break
24134 fi
24135
24136 done
24137fi
cristy8b350f62009-11-15 23:12:43 +000024138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo "$im_cv_x_configure" >&6; }
24140X11_CONFIGURE_PATH="$im_cv_x_configure"
24141case "${build_os}" in
24142 mingw* )
24143 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24144 ;;
24145esac
24146
24147cat >>confdefs.h <<_ACEOF
24148#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24149_ACEOF
24150
24151
24152#
24153# Find OpenMP library
24154#
24155GOMP_LIBS=''
24156if test "$enable_openmp" != 'no'; then
24157 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024159$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024160if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 $as_echo_n "(cached) " >&6
24162else
24163 ac_check_lib_save_LIBS=$LIBS
24164LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024166/* end confdefs.h. */
24167
24168/* Override any GCC internal prototype to avoid an error.
24169 Use char because int might match the return type of a GCC
24170 builtin and then its argument prototype would still apply. */
24171#ifdef __cplusplus
24172extern "C"
24173#endif
24174char GOMP_parallel_start ();
24175int
24176main ()
24177{
24178return GOMP_parallel_start ();
24179 ;
24180 return 0;
24181}
24182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 ac_cv_lib_gomp_GOMP_parallel_start=yes
24185else
cristy8b350f62009-11-15 23:12:43 +000024186 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024187fi
cristy8b350f62009-11-15 23:12:43 +000024188rm -f core conftest.err conftest.$ac_objext \
24189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024190LIBS=$ac_check_lib_save_LIBS
24191fi
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024194if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024195 GOMP_LIBS="-lgomp"
24196fi
24197 # gcc
24198 else
cristy8b350f62009-11-15 23:12:43 +000024199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024201if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024202 $as_echo_n "(cached) " >&6
24203else
24204 ac_check_lib_save_LIBS=$LIBS
24205LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024207/* end confdefs.h. */
24208
24209/* Override any GCC internal prototype to avoid an error.
24210 Use char because int might match the return type of a GCC
24211 builtin and then its argument prototype would still apply. */
24212#ifdef __cplusplus
24213extern "C"
24214#endif
24215char sunw_mp_register_warn ();
24216int
24217main ()
24218{
24219return sunw_mp_register_warn ();
24220 ;
24221 return 0;
24222}
24223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024224if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024225 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24226else
cristy8b350f62009-11-15 23:12:43 +000024227 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristy8b350f62009-11-15 23:12:43 +000024229rm -f core conftest.err conftest.$ac_objext \
24230 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024231LIBS=$ac_check_lib_save_LIBS
24232fi
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024235if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 GOMP_LIBS="-lmtsk"
24237fi
24238 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024241if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024242 $as_echo_n "(cached) " >&6
24243else
24244 ac_check_lib_save_LIBS=$LIBS
24245LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024247/* end confdefs.h. */
24248
24249/* Override any GCC internal prototype to avoid an error.
24250 Use char because int might match the return type of a GCC
24251 builtin and then its argument prototype would still apply. */
24252#ifdef __cplusplus
24253extern "C"
24254#endif
24255char _xlsmpFlush ();
24256int
24257main ()
24258{
24259return _xlsmpFlush ();
24260 ;
24261 return 0;
24262}
24263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024264if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 ac_cv_lib_xlsmp__xlsmpFlush=yes
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024268fi
cristy8b350f62009-11-15 23:12:43 +000024269rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024271LIBS=$ac_check_lib_save_LIBS
24272fi
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024275if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 GOMP_LIBS="-lxlsmp"
24277fi
24278 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024281if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024282 $as_echo_n "(cached) " >&6
24283else
24284 ac_check_lib_save_LIBS=$LIBS
24285LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024287/* end confdefs.h. */
24288
24289/* Override any GCC internal prototype to avoid an error.
24290 Use char because int might match the return type of a GCC
24291 builtin and then its argument prototype would still apply. */
24292#ifdef __cplusplus
24293extern "C"
24294#endif
24295char mp_destroy ();
24296int
24297main ()
24298{
24299return mp_destroy ();
24300 ;
24301 return 0;
24302}
24303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 ac_cv_lib_mp_mp_destroy=yes
24306else
cristy8b350f62009-11-15 23:12:43 +000024307 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024308fi
cristy8b350f62009-11-15 23:12:43 +000024309rm -f core conftest.err conftest.$ac_objext \
24310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024311LIBS=$ac_check_lib_save_LIBS
24312fi
cristy8b350f62009-11-15 23:12:43 +000024313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024314$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024315if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024316 GOMP_LIBS="-lmp"
24317fi
24318 # SGI IRIX 6.5 MIPSpro C/C++
24319 fi
24320 LIBS="$GOMP_LIBS $LIBS"
24321fi
24322
24323
24324#
24325# Find Posix threads library
24326#
24327THREAD_LIBS=''
24328if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24329
24330 if test "x$PTHREAD_LIBS" = "x"; then
24331 case "${host_cpu}-${host_os}" in
24332 *-freebsd*)
24333
24334
24335
24336ac_ext=c
24337ac_cpp='$CPP $CPPFLAGS'
24338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24340ac_compiler_gnu=$ac_cv_c_compiler_gnu
24341
24342magick_pthread_lib_ok=no
24343
24344LIB=-lc_r
24345save_LIBS="$LIBS"
24346LIBS="$LIBS $LIB"
24347
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024351/* end confdefs.h. */
24352#include <pthread.h>
24353int
24354main ()
24355{
24356 pthread_t th;
24357 pthread_join(th, 0);
24358 pthread_attr_init(0);
24359 pthread_cleanup_push(0, 0);
24360 pthread_create(0,0,0,0);
24361 pthread_cleanup_pop(0);
24362 ;
24363 return 0;
24364}
24365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024367 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024368fi
cristy8b350f62009-11-15 23:12:43 +000024369rm -f core conftest.err conftest.$ac_objext \
24370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024371
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo "${magick_pthread_lib_ok}" >&6; }
24374if test "$magick_pthread_lib_ok" = yes
24375then
24376 PTHREAD_LIBS=-lc_r
24377 :
24378else
24379
24380 :
24381fi
24382
24383LIBS="$save_LIBS"
24384
24385ac_ext=c
24386ac_cpp='$CPP $CPPFLAGS'
24387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24389ac_compiler_gnu=$ac_cv_c_compiler_gnu
24390
24391 ;;
24392 esac
24393 fi
24394
24395 for lib in pthread pthreads; do
24396 if test "x$PTHREAD_LIBS" = "x"; then
24397
24398
24399
24400ac_ext=c
24401ac_cpp='$CPP $CPPFLAGS'
24402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24404ac_compiler_gnu=$ac_cv_c_compiler_gnu
24405
24406magick_pthread_lib_ok=no
24407
24408LIB=-l$lib
24409save_LIBS="$LIBS"
24410LIBS="$LIBS $LIB"
24411
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024415/* end confdefs.h. */
24416#include <pthread.h>
24417int
24418main ()
24419{
24420 pthread_t th;
24421 pthread_join(th, 0);
24422 pthread_attr_init(0);
24423 pthread_cleanup_push(0, 0);
24424 pthread_create(0,0,0,0);
24425 pthread_cleanup_pop(0);
24426 ;
24427 return 0;
24428}
24429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024432fi
cristy8b350f62009-11-15 23:12:43 +000024433rm -f core conftest.err conftest.$ac_objext \
24434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024435
cristy8b350f62009-11-15 23:12:43 +000024436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024437$as_echo "${magick_pthread_lib_ok}" >&6; }
24438if test "$magick_pthread_lib_ok" = yes
24439then
24440 PTHREAD_LIBS=-l$lib
24441 :
24442else
24443
24444 :
24445fi
24446
24447LIBS="$save_LIBS"
24448
24449ac_ext=c
24450ac_cpp='$CPP $CPPFLAGS'
24451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24453ac_compiler_gnu=$ac_cv_c_compiler_gnu
24454
24455
24456 fi
24457 done
24458
24459 THREAD_LIBS="$PTHREAD_LIBS"
24460 LIBS="$LIBS $THREAD_LIBS"
24461fi
24462
24463
24464#
24465# Check for umem.
24466#
24467have_umem='no'
24468UMEM_LIBS=''
24469if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo "" >&6; }
24474 failed=0
24475 passed=0
cristy8b350f62009-11-15 23:12:43 +000024476 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24477if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 passed=`expr $passed + 1`
24479else
24480 failed=`expr $failed + 1`
24481fi
24482
24483
cristy8b350f62009-11-15 23:12:43 +000024484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024486if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024487 $as_echo_n "(cached) " >&6
24488else
24489 ac_check_lib_save_LIBS=$LIBS
24490LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024492/* end confdefs.h. */
24493
24494/* Override any GCC internal prototype to avoid an error.
24495 Use char because int might match the return type of a GCC
24496 builtin and then its argument prototype would still apply. */
24497#ifdef __cplusplus
24498extern "C"
24499#endif
24500char umem_alloc ();
24501int
24502main ()
24503{
24504return umem_alloc ();
24505 ;
24506 return 0;
24507}
24508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 ac_cv_lib_umem_umem_alloc=yes
24511else
cristy8b350f62009-11-15 23:12:43 +000024512 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024513fi
cristy8b350f62009-11-15 23:12:43 +000024514rm -f core conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024516LIBS=$ac_check_lib_save_LIBS
24517fi
cristy8b350f62009-11-15 23:12:43 +000024518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024519$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024520if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024521 passed=`expr $passed + 1`
24522else
24523 failed=`expr $failed + 1`
24524fi
24525
cristy8b350f62009-11-15 23:12:43 +000024526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024527$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024528if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024529 $as_echo_n "(cached) " >&6
24530else
24531 ac_check_lib_save_LIBS=$LIBS
24532LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024534/* end confdefs.h. */
24535
24536/* Override any GCC internal prototype to avoid an error.
24537 Use char because int might match the return type of a GCC
24538 builtin and then its argument prototype would still apply. */
24539#ifdef __cplusplus
24540extern "C"
24541#endif
24542char umem_free ();
24543int
24544main ()
24545{
24546return umem_free ();
24547 ;
24548 return 0;
24549}
24550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 ac_cv_lib_umem_umem_free=yes
24553else
cristy8b350f62009-11-15 23:12:43 +000024554 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024555fi
cristy8b350f62009-11-15 23:12:43 +000024556rm -f core conftest.err conftest.$ac_objext \
24557 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558LIBS=$ac_check_lib_save_LIBS
24559fi
cristy8b350f62009-11-15 23:12:43 +000024560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024561$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024562if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024563 passed=`expr $passed + 1`
24564else
24565 failed=`expr $failed + 1`
24566fi
24567
cristy8b350f62009-11-15 23:12:43 +000024568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024569$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24570 if test $passed -gt 0; then
24571 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024573$as_echo "no -- some components failed test" >&6; }
24574 have_umem='no (failed tests)'
24575 else
24576 UMEM_LIBS='-lumem'
24577 LIBS="$UMEM_LIBS $LIBS"
24578
cristy8b350f62009-11-15 23:12:43 +000024579$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024580
cristy8b350f62009-11-15 23:12:43 +000024581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024582$as_echo "yes" >&6; }
24583 have_umem='yes'
24584 fi
24585 else
cristy8b350f62009-11-15 23:12:43 +000024586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo "no" >&6; }
24588 fi
24589fi
24590 if test "$have_umem" = 'yes'; then
24591 HasUMEM_TRUE=
24592 HasUMEM_FALSE='#'
24593else
24594 HasUMEM_TRUE='#'
24595 HasUMEM_FALSE=
24596fi
24597
24598
24599
24600#
24601# Add support for ccmalloc memory debugging library if requested
24602#
24603have_ccmalloc='no'
24604CCMALLOC_LIBS=''
24605if test "$enable_ccmalloc" = 'yes'; then
24606 # Extract the first word of "ccmalloc", so it can be a program name with args.
24607set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024610if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024611 $as_echo_n "(cached) " >&6
24612else
24613 case $CCMALLOCDelegate in
24614 [\\/]* | ?:[\\/]*)
24615 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24616 ;;
24617 *)
24618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24619for as_dir in $PATH
24620do
24621 IFS=$as_save_IFS
24622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24625 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024627 break 2
24628 fi
24629done
cristy8b350f62009-11-15 23:12:43 +000024630 done
cristy3ed852e2009-09-05 21:47:34 +000024631IFS=$as_save_IFS
24632
24633 ;;
24634esac
24635fi
24636CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24637if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024639$as_echo "$CCMALLOCDelegate" >&6; }
24640else
cristy8b350f62009-11-15 23:12:43 +000024641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024642$as_echo "no" >&6; }
24643fi
24644
24645
24646 if test -n "$CCMALLOCDelegate"; then
24647 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24648 OLIBS="$LIBS"
24649 # Assume that gcc is used with ccmalloc.
24650 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024653if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
24656 ac_check_lib_save_LIBS=$LIBS
24657LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024659/* end confdefs.h. */
24660
24661/* Override any GCC internal prototype to avoid an error.
24662 Use char because int might match the return type of a GCC
24663 builtin and then its argument prototype would still apply. */
24664#ifdef __cplusplus
24665extern "C"
24666#endif
24667char ccmalloc_malloc ();
24668int
24669main ()
24670{
24671return ccmalloc_malloc ();
24672 ;
24673 return 0;
24674}
24675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024677 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24678else
cristy8b350f62009-11-15 23:12:43 +000024679 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024680fi
cristy8b350f62009-11-15 23:12:43 +000024681rm -f core conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024683LIBS=$ac_check_lib_save_LIBS
24684fi
cristy8b350f62009-11-15 23:12:43 +000024685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024687if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024688 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24689fi
24690
24691 if test -n "$CCMALLOC_LIBS"; then
24692 LIBS="$OLIBS"
24693 LIBS="$LIBS $CCMALLOC_LIBS"
24694 have_ccmalloc='yes'
24695 else
24696 LIBS="$OLIBS"
24697 fi
24698 fi
24699fi
24700
24701#
24702# Add support for efence memory debugging library if requested
24703#
24704if test "$enable_efence" = 'yes'; then
24705 EFENCE_LIBS='-lefence'
24706 LIBS="$EFENCE_LIBS $LIBS"
24707fi
24708
cristy3ed852e2009-09-05 21:47:34 +000024709
24710#
24711# Check for BZLIB
24712#
24713
24714
24715# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024716if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 withval=$with_bzlib; with_bzlib=$withval
24718else
24719 with_bzlib='yes'
24720fi
24721
24722
24723if test "$with_bzlib" != 'yes'; then
24724 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24725fi
24726
24727have_bzlib='no'
24728if test "$with_bzlib" != 'no'; then
24729 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024731$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024735$as_echo "" >&6; }
24736 failed=0
24737 passed=0
24738 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024739 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24740if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 passed=`expr $passed + 1`
24742else
24743 failed=`expr $failed + 1`
24744fi
24745
24746
cristy8b350f62009-11-15 23:12:43 +000024747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024749if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 $as_echo_n "(cached) " >&6
24751else
24752 ac_check_lib_save_LIBS=$LIBS
24753LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024755/* end confdefs.h. */
24756
24757/* Override any GCC internal prototype to avoid an error.
24758 Use char because int might match the return type of a GCC
24759 builtin and then its argument prototype would still apply. */
24760#ifdef __cplusplus
24761extern "C"
24762#endif
24763char BZ2_bzDecompress ();
24764int
24765main ()
24766{
24767return BZ2_bzDecompress ();
24768 ;
24769 return 0;
24770}
24771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024772if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024773 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24774else
cristy8b350f62009-11-15 23:12:43 +000024775 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024776fi
cristy8b350f62009-11-15 23:12:43 +000024777rm -f core conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024779LIBS=$ac_check_lib_save_LIBS
24780fi
cristy8b350f62009-11-15 23:12:43 +000024781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024782$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024783if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 found_libbz=`expr $found_libbz + 1`
24785fi
24786
24787 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024789$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024790if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 $as_echo_n "(cached) " >&6
24792else
24793 ac_check_lib_save_LIBS=$LIBS
24794LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024796/* end confdefs.h. */
24797
24798/* Override any GCC internal prototype to avoid an error.
24799 Use char because int might match the return type of a GCC
24800 builtin and then its argument prototype would still apply. */
24801#ifdef __cplusplus
24802extern "C"
24803#endif
24804char _imp__BZ2_decompress ();
24805int
24806main ()
24807{
24808return _imp__BZ2_decompress ();
24809 ;
24810 return 0;
24811}
24812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024814 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24815else
cristy8b350f62009-11-15 23:12:43 +000024816 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024817fi
cristy8b350f62009-11-15 23:12:43 +000024818rm -f core conftest.err conftest.$ac_objext \
24819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024820LIBS=$ac_check_lib_save_LIBS
24821fi
cristy8b350f62009-11-15 23:12:43 +000024822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024823$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024824if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 found_libbz=`expr $found_libbz + 1`
24826fi
24827
24828 fi
24829 if test $found_libbz -gt 0; then
24830 passed=`expr $passed + 1`
24831 else
24832 failed=`expr $failed + 1`
24833 fi
cristy8b350f62009-11-15 23:12:43 +000024834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024835$as_echo_n "checking if BZLIB package is complete... " >&6; }
24836 if test $passed -gt 0; then
24837 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo "no -- some components failed test" >&6; }
24840 have_bzlib='no (failed tests)'
24841 else
24842 BZLIB_LIBS='-lbz2'
24843 LIBS="$BZLIB_LIBS $LIBS"
24844
cristy8b350f62009-11-15 23:12:43 +000024845$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024846
cristy8b350f62009-11-15 23:12:43 +000024847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024848$as_echo "yes" >&6; }
24849 have_bzlib='yes'
24850 fi
24851 else
cristy8b350f62009-11-15 23:12:43 +000024852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024853$as_echo "no" >&6; }
24854 fi
24855fi
24856 if test "$have_bzlib" = 'yes'; then
24857 BZLIB_DELEGATE_TRUE=
24858 BZLIB_DELEGATE_FALSE='#'
24859else
24860 BZLIB_DELEGATE_TRUE='#'
24861 BZLIB_DELEGATE_FALSE=
24862fi
24863
24864
24865
24866#
24867# Find the X11 include and library directories.
24868#
24869IPC_LIBS=''
24870X11_LIBS=''
24871XEXT_LIBS=''
24872XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024874$as_echo_n "checking for X... " >&6; }
24875
24876
24877# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024878if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024879 withval=$with_x;
24880fi
24881
24882# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24883if test "x$with_x" = xno; then
24884 # The user explicitly disabled X.
24885 have_x=disabled
24886else
24887 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024888 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024889 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024890 $as_echo_n "(cached) " >&6
24891else
24892 # One or both of the vars are not set, and there is no cached value.
24893ac_x_includes=no ac_x_libraries=no
24894rm -f -r conftest.dir
24895if mkdir conftest.dir; then
24896 cd conftest.dir
24897 cat >Imakefile <<'_ACEOF'
24898incroot:
24899 @echo incroot='${INCROOT}'
24900usrlibdir:
24901 @echo usrlibdir='${USRLIBDIR}'
24902libdir:
24903 @echo libdir='${LIBDIR}'
24904_ACEOF
24905 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024906 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024907 for ac_var in incroot usrlibdir libdir; do
24908 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24909 done
24910 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24911 for ac_extension in a so sl dylib la dll; do
24912 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24913 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24914 ac_im_usrlibdir=$ac_im_libdir; break
24915 fi
24916 done
24917 # Screen out bogus values from the imake configuration. They are
24918 # bogus both because they are the default anyway, and because
24919 # using them would break gcc on systems where it needs fixed includes.
24920 case $ac_im_incroot in
24921 /usr/include) ac_x_includes= ;;
24922 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24923 esac
24924 case $ac_im_usrlibdir in
24925 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24926 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24927 esac
24928 fi
24929 cd ..
24930 rm -f -r conftest.dir
24931fi
24932
24933# Standard set of common directories for X headers.
24934# Check X11 before X11Rn because it is often a symlink to the current release.
24935ac_x_header_dirs='
24936/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024937/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024938/usr/X11R6/include
24939/usr/X11R5/include
24940/usr/X11R4/include
24941
24942/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024943/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024944/usr/include/X11R6
24945/usr/include/X11R5
24946/usr/include/X11R4
24947
24948/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024949/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024950/usr/local/X11R6/include
24951/usr/local/X11R5/include
24952/usr/local/X11R4/include
24953
24954/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024955/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024956/usr/local/include/X11R6
24957/usr/local/include/X11R5
24958/usr/local/include/X11R4
24959
24960/usr/X386/include
24961/usr/x386/include
24962/usr/XFree86/include/X11
24963
24964/usr/include
24965/usr/local/include
24966/usr/unsupported/include
24967/usr/athena/include
24968/usr/local/x11r5/include
24969/usr/lpp/Xamples/include
24970
24971/usr/openwin/include
24972/usr/openwin/share/include'
24973
24974if test "$ac_x_includes" = no; then
24975 # Guess where to find include files, by looking for Xlib.h.
24976 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024978/* end confdefs.h. */
24979#include <X11/Xlib.h>
24980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024981if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024982 # We can compile using X headers with no special include directory.
24983ac_x_includes=
24984else
cristyc7083c12009-10-14 03:16:55 +000024985 for ac_dir in $ac_x_header_dirs; do
24986 if test -r "$ac_dir/X11/Xlib.h"; then
24987 ac_x_includes=$ac_dir
24988 break
24989 fi
24990done
24991fi
cristyc7083c12009-10-14 03:16:55 +000024992rm -f conftest.err conftest.$ac_ext
24993fi # $ac_x_includes = no
24994
24995if test "$ac_x_libraries" = no; then
24996 # Check for the libraries.
24997 # See if we find them without any special options.
24998 # Don't add to $LIBS permanently.
24999 ac_save_LIBS=$LIBS
25000 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025002/* end confdefs.h. */
25003#include <X11/Xlib.h>
25004int
25005main ()
25006{
25007XrmInitialize ()
25008 ;
25009 return 0;
25010}
25011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025012if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025013 LIBS=$ac_save_LIBS
25014# We can link X programs with no special library path.
25015ac_x_libraries=
25016else
cristy8b350f62009-11-15 23:12:43 +000025017 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025018for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25019do
25020 # Don't even attempt the hair of trying to link an X program!
25021 for ac_extension in a so sl dylib la dll; do
25022 if test -r "$ac_dir/libX11.$ac_extension"; then
25023 ac_x_libraries=$ac_dir
25024 break 2
25025 fi
25026 done
25027done
25028fi
cristy8b350f62009-11-15 23:12:43 +000025029rm -f core conftest.err conftest.$ac_objext \
25030 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025031fi # $ac_x_libraries = no
25032
25033case $ac_x_includes,$ac_x_libraries in #(
25034 no,* | *,no | *\'*)
25035 # Didn't find X, or a directory has "'" in its name.
25036 ac_cv_have_x="have_x=no";; #(
25037 *)
25038 # Record where we found X for the cache.
25039 ac_cv_have_x="have_x=yes\
25040 ac_x_includes='$ac_x_includes'\
25041 ac_x_libraries='$ac_x_libraries'"
25042esac
25043fi
25044;; #(
25045 *) have_x=yes;;
25046 esac
25047 eval "$ac_cv_have_x"
25048fi # $with_x != no
25049
25050if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025052$as_echo "$have_x" >&6; }
25053 no_x=yes
25054else
25055 # If each of the values was on the command line, it overrides each guess.
25056 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25057 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25058 # Update the cache value to reflect the command line values.
25059 ac_cv_have_x="have_x=yes\
25060 ac_x_includes='$x_includes'\
25061 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025063$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25064fi
25065
cristy3ed852e2009-09-05 21:47:34 +000025066if test "$no_x" = yes; then
25067 # Not all programs may use this symbol, but it does not hurt to define it.
25068
cristy8b350f62009-11-15 23:12:43 +000025069$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025070
25071 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25072else
25073 if test -n "$x_includes"; then
25074 X_CFLAGS="$X_CFLAGS -I$x_includes"
25075 fi
25076
25077 # It would also be nice to do this for all -L options, not just this one.
25078 if test -n "$x_libraries"; then
25079 X_LIBS="$X_LIBS -L$x_libraries"
25080 # For Solaris; some versions of Sun CC require a space after -R and
25081 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025083$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25084 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25085 ac_xsave_c_werror_flag=$ac_c_werror_flag
25086 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025088/* end confdefs.h. */
25089
25090int
25091main ()
25092{
25093
25094 ;
25095 return 0;
25096}
25097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025098if ac_fn_c_try_link "$LINENO"; then :
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025100$as_echo "no" >&6; }
25101 X_LIBS="$X_LIBS -R$x_libraries"
25102else
cristy8b350f62009-11-15 23:12:43 +000025103 LIBS="$ac_xsave_LIBS -R $x_libraries"
25104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025105/* end confdefs.h. */
25106
25107int
25108main ()
25109{
25110
25111 ;
25112 return 0;
25113}
25114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025115if ac_fn_c_try_link "$LINENO"; then :
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025117$as_echo "yes" >&6; }
25118 X_LIBS="$X_LIBS -R $x_libraries"
25119else
cristy8b350f62009-11-15 23:12:43 +000025120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025121$as_echo "neither works" >&6; }
25122fi
cristy8b350f62009-11-15 23:12:43 +000025123rm -f core conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025125fi
cristy8b350f62009-11-15 23:12:43 +000025126rm -f core conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025128 ac_c_werror_flag=$ac_xsave_c_werror_flag
25129 LIBS=$ac_xsave_LIBS
25130 fi
25131
25132 # Check for system-dependent libraries X programs must link with.
25133 # Do this before checking for the system-independent R6 libraries
25134 # (-lICE), since we may need -lsocket or whatever for X linking.
25135
25136 if test "$ISC" = yes; then
25137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25138 else
25139 # Martyn Johnson says this is needed for Ultrix, if the X
25140 # libraries were built with DECnet support. And Karl Berry says
25141 # the Alpha needs dnet_stub (dnet does not exist).
25142 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025144/* end confdefs.h. */
25145
25146/* Override any GCC internal prototype to avoid an error.
25147 Use char because int might match the return type of a GCC
25148 builtin and then its argument prototype would still apply. */
25149#ifdef __cplusplus
25150extern "C"
25151#endif
25152char XOpenDisplay ();
25153int
25154main ()
25155{
25156return XOpenDisplay ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025162
cristy8b350f62009-11-15 23:12:43 +000025163else
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025165$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025166if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025167 $as_echo_n "(cached) " >&6
25168else
25169 ac_check_lib_save_LIBS=$LIBS
25170LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025172/* end confdefs.h. */
25173
25174/* Override any GCC internal prototype to avoid an error.
25175 Use char because int might match the return type of a GCC
25176 builtin and then its argument prototype would still apply. */
25177#ifdef __cplusplus
25178extern "C"
25179#endif
25180char dnet_ntoa ();
25181int
25182main ()
25183{
25184return dnet_ntoa ();
25185 ;
25186 return 0;
25187}
25188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025190 ac_cv_lib_dnet_dnet_ntoa=yes
25191else
cristy8b350f62009-11-15 23:12:43 +000025192 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025193fi
cristy8b350f62009-11-15 23:12:43 +000025194rm -f core conftest.err conftest.$ac_objext \
25195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025196LIBS=$ac_check_lib_save_LIBS
25197fi
cristy8b350f62009-11-15 23:12:43 +000025198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025199$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025200if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025201 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25202fi
25203
25204 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025206$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025207if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025208 $as_echo_n "(cached) " >&6
25209else
25210 ac_check_lib_save_LIBS=$LIBS
25211LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025213/* end confdefs.h. */
25214
25215/* Override any GCC internal prototype to avoid an error.
25216 Use char because int might match the return type of a GCC
25217 builtin and then its argument prototype would still apply. */
25218#ifdef __cplusplus
25219extern "C"
25220#endif
25221char dnet_ntoa ();
25222int
25223main ()
25224{
25225return dnet_ntoa ();
25226 ;
25227 return 0;
25228}
25229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025231 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25232else
cristy8b350f62009-11-15 23:12:43 +000025233 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025234fi
cristy8b350f62009-11-15 23:12:43 +000025235rm -f core conftest.err conftest.$ac_objext \
25236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025237LIBS=$ac_check_lib_save_LIBS
25238fi
cristy8b350f62009-11-15 23:12:43 +000025239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025240$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025241if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25243fi
25244
25245 fi
25246fi
cristy8b350f62009-11-15 23:12:43 +000025247rm -f core conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025249 LIBS="$ac_xsave_LIBS"
25250
25251 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25252 # to get the SysV transport functions.
25253 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25254 # needs -lnsl.
25255 # The nsl library prevents programs from opening the X display
25256 # on Irix 5.2, according to T.E. Dickey.
25257 # The functions gethostbyname, getservbyname, and inet_addr are
25258 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025259 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25260if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025261
cristy3ed852e2009-09-05 21:47:34 +000025262fi
25263
cristy3ed852e2009-09-05 21:47:34 +000025264 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025267if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 $as_echo_n "(cached) " >&6
25269else
25270 ac_check_lib_save_LIBS=$LIBS
25271LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025273/* end confdefs.h. */
25274
25275/* Override any GCC internal prototype to avoid an error.
25276 Use char because int might match the return type of a GCC
25277 builtin and then its argument prototype would still apply. */
25278#ifdef __cplusplus
25279extern "C"
25280#endif
25281char gethostbyname ();
25282int
25283main ()
25284{
25285return gethostbyname ();
25286 ;
25287 return 0;
25288}
25289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025291 ac_cv_lib_nsl_gethostbyname=yes
25292else
cristy8b350f62009-11-15 23:12:43 +000025293 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025294fi
cristy8b350f62009-11-15 23:12:43 +000025295rm -f core conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025297LIBS=$ac_check_lib_save_LIBS
25298fi
cristy8b350f62009-11-15 23:12:43 +000025299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025300$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025301if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025302 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25303fi
25304
25305 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025308if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 $as_echo_n "(cached) " >&6
25310else
25311 ac_check_lib_save_LIBS=$LIBS
25312LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025314/* end confdefs.h. */
25315
25316/* Override any GCC internal prototype to avoid an error.
25317 Use char because int might match the return type of a GCC
25318 builtin and then its argument prototype would still apply. */
25319#ifdef __cplusplus
25320extern "C"
25321#endif
25322char gethostbyname ();
25323int
25324main ()
25325{
25326return gethostbyname ();
25327 ;
25328 return 0;
25329}
25330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 ac_cv_lib_bsd_gethostbyname=yes
25333else
cristy8b350f62009-11-15 23:12:43 +000025334 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025335fi
cristy8b350f62009-11-15 23:12:43 +000025336rm -f core conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025338LIBS=$ac_check_lib_save_LIBS
25339fi
cristy8b350f62009-11-15 23:12:43 +000025340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025341$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025342if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25344fi
25345
25346 fi
25347 fi
25348
25349 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25350 # socket/setsockopt and other routines are undefined under SCO ODT
25351 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25352 # on later versions), says Simon Leinen: it contains gethostby*
25353 # variants that don't use the name server (or something). -lsocket
25354 # must be given before -lnsl if both are needed. We assume that
25355 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025356 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25357if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025358
cristy3ed852e2009-09-05 21:47:34 +000025359fi
25360
cristy3ed852e2009-09-05 21:47:34 +000025361 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025364if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025365 $as_echo_n "(cached) " >&6
25366else
25367 ac_check_lib_save_LIBS=$LIBS
25368LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025370/* end confdefs.h. */
25371
25372/* Override any GCC internal prototype to avoid an error.
25373 Use char because int might match the return type of a GCC
25374 builtin and then its argument prototype would still apply. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378char connect ();
25379int
25380main ()
25381{
25382return connect ();
25383 ;
25384 return 0;
25385}
25386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025388 ac_cv_lib_socket_connect=yes
25389else
cristy8b350f62009-11-15 23:12:43 +000025390 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025391fi
cristy8b350f62009-11-15 23:12:43 +000025392rm -f core conftest.err conftest.$ac_objext \
25393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025394LIBS=$ac_check_lib_save_LIBS
25395fi
cristy8b350f62009-11-15 23:12:43 +000025396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025398if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25400fi
25401
25402 fi
25403
25404 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025405 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25406if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025407
cristy3ed852e2009-09-05 21:47:34 +000025408fi
25409
cristy3ed852e2009-09-05 21:47:34 +000025410 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025412$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025413if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025414 $as_echo_n "(cached) " >&6
25415else
25416 ac_check_lib_save_LIBS=$LIBS
25417LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025419/* end confdefs.h. */
25420
25421/* Override any GCC internal prototype to avoid an error.
25422 Use char because int might match the return type of a GCC
25423 builtin and then its argument prototype would still apply. */
25424#ifdef __cplusplus
25425extern "C"
25426#endif
25427char remove ();
25428int
25429main ()
25430{
25431return remove ();
25432 ;
25433 return 0;
25434}
25435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 ac_cv_lib_posix_remove=yes
25438else
cristy8b350f62009-11-15 23:12:43 +000025439 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025440fi
cristy8b350f62009-11-15 23:12:43 +000025441rm -f core conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025443LIBS=$ac_check_lib_save_LIBS
25444fi
cristy8b350f62009-11-15 23:12:43 +000025445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025446$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025447if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25449fi
25450
25451 fi
25452
25453 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025454 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25455if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025456
cristy3ed852e2009-09-05 21:47:34 +000025457fi
25458
cristy3ed852e2009-09-05 21:47:34 +000025459 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025462if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 $as_echo_n "(cached) " >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025468/* end confdefs.h. */
25469
25470/* Override any GCC internal prototype to avoid an error.
25471 Use char because int might match the return type of a GCC
25472 builtin and then its argument prototype would still apply. */
25473#ifdef __cplusplus
25474extern "C"
25475#endif
25476char shmat ();
25477int
25478main ()
25479{
25480return shmat ();
25481 ;
25482 return 0;
25483}
25484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 ac_cv_lib_ipc_shmat=yes
25487else
cristy8b350f62009-11-15 23:12:43 +000025488 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025489fi
cristy8b350f62009-11-15 23:12:43 +000025490rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492LIBS=$ac_check_lib_save_LIBS
25493fi
cristy8b350f62009-11-15 23:12:43 +000025494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025495$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025496if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25498fi
25499
25500 fi
25501 fi
25502
25503 # Check for libraries that X11R6 Xt/Xaw programs need.
25504 ac_save_LDFLAGS=$LDFLAGS
25505 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25506 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25507 # check for ICE first), but we must link in the order -lSM -lICE or
25508 # we get undefined symbols. So assume we have SM if we have ICE.
25509 # These have to be linked with before -lX11, unlike the other
25510 # libraries we check for below, so use a different variable.
25511 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025513$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025514if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 $as_echo_n "(cached) " >&6
25516else
25517 ac_check_lib_save_LIBS=$LIBS
25518LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025520/* end confdefs.h. */
25521
25522/* Override any GCC internal prototype to avoid an error.
25523 Use char because int might match the return type of a GCC
25524 builtin and then its argument prototype would still apply. */
25525#ifdef __cplusplus
25526extern "C"
25527#endif
25528char IceConnectionNumber ();
25529int
25530main ()
25531{
25532return IceConnectionNumber ();
25533 ;
25534 return 0;
25535}
25536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025538 ac_cv_lib_ICE_IceConnectionNumber=yes
25539else
cristy8b350f62009-11-15 23:12:43 +000025540 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025541fi
cristy8b350f62009-11-15 23:12:43 +000025542rm -f core conftest.err conftest.$ac_objext \
25543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025544LIBS=$ac_check_lib_save_LIBS
25545fi
cristy8b350f62009-11-15 23:12:43 +000025546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025547$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025548if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25550fi
25551
25552 LDFLAGS=$ac_save_LDFLAGS
25553
25554fi
25555
25556if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025560$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025562$as_echo "" >&6; }
25563 LDFLAGS="$LDFLAGS $X_LIBS"
25564 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25565 LIBS="$X11_LIBS $LIBS"
25566 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25567
25568
cristy8b350f62009-11-15 23:12:43 +000025569$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025570
25571 #
25572 # Check for X11 shared memory extension
25573 #
25574 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025575 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25576if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025577 have_shmctl='yes'
25578fi
25579
25580 if test "$have_shmctl" != 'yes'; then
25581 PERSIST_LIBS=$LIBS
25582 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025584/* end confdefs.h. */
25585
25586/* Override any GCC internal prototype to avoid an error.
25587 Use char because int might match the return type of a GCC
25588 builtin and then its argument prototype would still apply. */
25589#ifdef __cplusplus
25590extern "C"
25591#endif
25592char shmctl ();
25593int
25594main ()
25595{
25596return shmctl ();
25597 ;
25598 return 0;
25599}
25600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025602 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025603fi
cristy8b350f62009-11-15 23:12:43 +000025604rm -f core conftest.err conftest.$ac_objext \
25605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025606 LIBS=$PERSIST_LIBS
25607 fi
25608
25609 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025611$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025612if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025613 $as_echo_n "(cached) " >&6
25614else
25615 ac_check_lib_save_LIBS=$LIBS
25616LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025618/* end confdefs.h. */
25619
25620/* Override any GCC internal prototype to avoid an error.
25621 Use char because int might match the return type of a GCC
25622 builtin and then its argument prototype would still apply. */
25623#ifdef __cplusplus
25624extern "C"
25625#endif
25626char XShmAttach ();
25627int
25628main ()
25629{
25630return XShmAttach ();
25631 ;
25632 return 0;
25633}
25634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025636 ac_cv_lib_Xext_XShmAttach=yes
25637else
cristy8b350f62009-11-15 23:12:43 +000025638 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025639fi
cristy8b350f62009-11-15 23:12:43 +000025640rm -f core conftest.err conftest.$ac_objext \
25641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025642LIBS=$ac_check_lib_save_LIBS
25643fi
cristy8b350f62009-11-15 23:12:43 +000025644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025645$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025646if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025647 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025648$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025649
25650fi
25651
25652 fi
25653
25654 #
25655 # Check for X11 shape extension
25656 #
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025659if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025660 $as_echo_n "(cached) " >&6
25661else
25662 ac_check_lib_save_LIBS=$LIBS
25663LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025665/* end confdefs.h. */
25666
25667/* Override any GCC internal prototype to avoid an error.
25668 Use char because int might match the return type of a GCC
25669 builtin and then its argument prototype would still apply. */
25670#ifdef __cplusplus
25671extern "C"
25672#endif
25673char XShapeCombineMask ();
25674int
25675main ()
25676{
25677return XShapeCombineMask ();
25678 ;
25679 return 0;
25680}
25681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025683 ac_cv_lib_Xext_XShapeCombineMask=yes
25684else
cristy8b350f62009-11-15 23:12:43 +000025685 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025686fi
cristy8b350f62009-11-15 23:12:43 +000025687rm -f core conftest.err conftest.$ac_objext \
25688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025689LIBS=$ac_check_lib_save_LIBS
25690fi
cristy8b350f62009-11-15 23:12:43 +000025691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025692$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025693if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025694 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025695$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025696
25697fi
25698
cristy8b350f62009-11-15 23:12:43 +000025699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025700$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025701if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025702 $as_echo_n "(cached) " >&6
25703else
25704 ac_check_lib_save_LIBS=$LIBS
25705LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025707/* end confdefs.h. */
25708
25709/* Override any GCC internal prototype to avoid an error.
25710 Use char because int might match the return type of a GCC
25711 builtin and then its argument prototype would still apply. */
25712#ifdef __cplusplus
25713extern "C"
25714#endif
25715char XtSetEventDispatcher ();
25716int
25717main ()
25718{
25719return XtSetEventDispatcher ();
25720 ;
25721 return 0;
25722}
25723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025725 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25726else
cristy8b350f62009-11-15 23:12:43 +000025727 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025728fi
cristy8b350f62009-11-15 23:12:43 +000025729rm -f core conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025731LIBS=$ac_check_lib_save_LIBS
25732fi
cristy8b350f62009-11-15 23:12:43 +000025733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025734$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025735if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025736 XT_LIBS='-lXt'
25737fi
25738
25739 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25740fi
25741if test "$no_x" != 'yes'; then
25742 have_x='yes'
25743else
25744 have_x='no'
25745fi
25746 if test "$have_x" = 'yes'; then
25747 X11_DELEGATE_TRUE=
25748 X11_DELEGATE_FALSE='#'
25749else
25750 X11_DELEGATE_TRUE='#'
25751 X11_DELEGATE_FALSE=
25752fi
25753
25754
25755
25756
25757
25758#
25759# Check for ZLIB
25760#
25761
25762# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025763if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025764 withval=$with_zlib; with_zlib=$withval
25765else
25766 with_zlib='yes'
25767fi
25768
25769
25770if test "$with_zlib" != 'yes'; then
25771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25772fi
25773
25774have_zlib='no'
25775ZLIB_LIBS=''
25776if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025780$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025782$as_echo "" >&6; }
25783 ZLIB_LIBS=''
25784 failed=0
25785 passed=0
cristy8b350f62009-11-15 23:12:43 +000025786 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25787if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 passed=`expr $passed + 1`
25789else
25790 failed=`expr $failed + 1`
25791fi
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25795if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025796 passed=`expr $passed + 1`
25797else
25798 failed=`expr $failed + 1`
25799fi
25800
25801
cristy8b350f62009-11-15 23:12:43 +000025802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025803$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025804if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025805 $as_echo_n "(cached) " >&6
25806else
25807 ac_check_lib_save_LIBS=$LIBS
25808LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025810/* end confdefs.h. */
25811
25812/* Override any GCC internal prototype to avoid an error.
25813 Use char because int might match the return type of a GCC
25814 builtin and then its argument prototype would still apply. */
25815#ifdef __cplusplus
25816extern "C"
25817#endif
25818char compress ();
25819int
25820main ()
25821{
25822return compress ();
25823 ;
25824 return 0;
25825}
25826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025828 ac_cv_lib_z_compress=yes
25829else
cristy8b350f62009-11-15 23:12:43 +000025830 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025831fi
cristy8b350f62009-11-15 23:12:43 +000025832rm -f core conftest.err conftest.$ac_objext \
25833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025834LIBS=$ac_check_lib_save_LIBS
25835fi
cristy8b350f62009-11-15 23:12:43 +000025836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025838if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025839 passed=`expr $passed + 1`
25840else
25841 failed=`expr $failed + 1`
25842fi
25843
cristy8b350f62009-11-15 23:12:43 +000025844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025845$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025846if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025847 $as_echo_n "(cached) " >&6
25848else
25849 ac_check_lib_save_LIBS=$LIBS
25850LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025852/* end confdefs.h. */
25853
25854/* Override any GCC internal prototype to avoid an error.
25855 Use char because int might match the return type of a GCC
25856 builtin and then its argument prototype would still apply. */
25857#ifdef __cplusplus
25858extern "C"
25859#endif
25860char uncompress ();
25861int
25862main ()
25863{
25864return uncompress ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025870 ac_cv_lib_z_uncompress=yes
25871else
cristy8b350f62009-11-15 23:12:43 +000025872 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025873fi
cristy8b350f62009-11-15 23:12:43 +000025874rm -f core conftest.err conftest.$ac_objext \
25875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025876LIBS=$ac_check_lib_save_LIBS
25877fi
cristy8b350f62009-11-15 23:12:43 +000025878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025880if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 passed=`expr $passed + 1`
25882else
25883 failed=`expr $failed + 1`
25884fi
25885
cristy8b350f62009-11-15 23:12:43 +000025886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025887$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025888if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025889 $as_echo_n "(cached) " >&6
25890else
25891 ac_check_lib_save_LIBS=$LIBS
25892LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025894/* end confdefs.h. */
25895
25896/* Override any GCC internal prototype to avoid an error.
25897 Use char because int might match the return type of a GCC
25898 builtin and then its argument prototype would still apply. */
25899#ifdef __cplusplus
25900extern "C"
25901#endif
25902char deflate ();
25903int
25904main ()
25905{
25906return deflate ();
25907 ;
25908 return 0;
25909}
25910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025911if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025912 ac_cv_lib_z_deflate=yes
25913else
cristy8b350f62009-11-15 23:12:43 +000025914 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025915fi
cristy8b350f62009-11-15 23:12:43 +000025916rm -f core conftest.err conftest.$ac_objext \
25917 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025918LIBS=$ac_check_lib_save_LIBS
25919fi
cristy8b350f62009-11-15 23:12:43 +000025920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025922if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 passed=`expr $passed + 1`
25924else
25925 failed=`expr $failed + 1`
25926fi
25927
cristy8b350f62009-11-15 23:12:43 +000025928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025929$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025930if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025931 $as_echo_n "(cached) " >&6
25932else
25933 ac_check_lib_save_LIBS=$LIBS
25934LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025936/* end confdefs.h. */
25937
25938/* Override any GCC internal prototype to avoid an error.
25939 Use char because int might match the return type of a GCC
25940 builtin and then its argument prototype would still apply. */
25941#ifdef __cplusplus
25942extern "C"
25943#endif
25944char inflate ();
25945int
25946main ()
25947{
25948return inflate ();
25949 ;
25950 return 0;
25951}
25952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025954 ac_cv_lib_z_inflate=yes
25955else
cristy8b350f62009-11-15 23:12:43 +000025956 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025957fi
cristy8b350f62009-11-15 23:12:43 +000025958rm -f core conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025960LIBS=$ac_check_lib_save_LIBS
25961fi
cristy8b350f62009-11-15 23:12:43 +000025962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025964if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 passed=`expr $passed + 1`
25966else
25967 failed=`expr $failed + 1`
25968fi
25969
cristy8b350f62009-11-15 23:12:43 +000025970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025972if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025973 $as_echo_n "(cached) " >&6
25974else
25975 ac_check_lib_save_LIBS=$LIBS
25976LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025978/* end confdefs.h. */
25979
25980/* Override any GCC internal prototype to avoid an error.
25981 Use char because int might match the return type of a GCC
25982 builtin and then its argument prototype would still apply. */
25983#ifdef __cplusplus
25984extern "C"
25985#endif
25986char gzseek ();
25987int
25988main ()
25989{
25990return gzseek ();
25991 ;
25992 return 0;
25993}
25994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025995if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025996 ac_cv_lib_z_gzseek=yes
25997else
cristy8b350f62009-11-15 23:12:43 +000025998 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025999fi
cristy8b350f62009-11-15 23:12:43 +000026000rm -f core conftest.err conftest.$ac_objext \
26001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026002LIBS=$ac_check_lib_save_LIBS
26003fi
cristy8b350f62009-11-15 23:12:43 +000026004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026006if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 passed=`expr $passed + 1`
26008else
26009 failed=`expr $failed + 1`
26010fi
26011
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026014if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026015 $as_echo_n "(cached) " >&6
26016else
26017 ac_check_lib_save_LIBS=$LIBS
26018LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026020/* end confdefs.h. */
26021
26022/* Override any GCC internal prototype to avoid an error.
26023 Use char because int might match the return type of a GCC
26024 builtin and then its argument prototype would still apply. */
26025#ifdef __cplusplus
26026extern "C"
26027#endif
26028char gztell ();
26029int
26030main ()
26031{
26032return gztell ();
26033 ;
26034 return 0;
26035}
26036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026038 ac_cv_lib_z_gztell=yes
26039else
cristy8b350f62009-11-15 23:12:43 +000026040 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026041fi
cristy8b350f62009-11-15 23:12:43 +000026042rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026044LIBS=$ac_check_lib_save_LIBS
26045fi
cristy8b350f62009-11-15 23:12:43 +000026046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026048if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026049 passed=`expr $passed + 1`
26050else
26051 failed=`expr $failed + 1`
26052fi
26053
cristy8b350f62009-11-15 23:12:43 +000026054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026055$as_echo_n "checking if ZLIB package is complete... " >&6; }
26056 if test $passed -gt 0; then
26057 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026059$as_echo "no -- some components failed test" >&6; }
26060 have_zlib='no (failed tests)'
26061 else
26062 ZLIB_LIBS='-lz'
26063 LIBS="$ZLIB_LIBS $LIBS"
26064
cristy8b350f62009-11-15 23:12:43 +000026065$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026066
cristy8b350f62009-11-15 23:12:43 +000026067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026068$as_echo "yes" >&6; }
26069 have_zlib='yes'
26070 fi
26071 else
cristy8b350f62009-11-15 23:12:43 +000026072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "no" >&6; }
26074 fi
26075fi
26076 if test "$have_zlib" = 'yes'; then
26077 ZLIB_DELEGATE_TRUE=
26078 ZLIB_DELEGATE_FALSE='#'
26079else
26080 ZLIB_DELEGATE_TRUE='#'
26081 ZLIB_DELEGATE_FALSE=
26082fi
26083
26084
26085
26086#
26087# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26088#
26089LIB_DL=''
26090if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026092$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026093if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026094 $as_echo_n "(cached) " >&6
26095else
26096 ac_check_lib_save_LIBS=$LIBS
26097LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026099/* end confdefs.h. */
26100
26101/* Override any GCC internal prototype to avoid an error.
26102 Use char because int might match the return type of a GCC
26103 builtin and then its argument prototype would still apply. */
26104#ifdef __cplusplus
26105extern "C"
26106#endif
26107char dlopen ();
26108int
26109main ()
26110{
26111return dlopen ();
26112 ;
26113 return 0;
26114}
26115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 ac_cv_lib_dl_dlopen=yes
26118else
cristy8b350f62009-11-15 23:12:43 +000026119 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026120fi
cristy8b350f62009-11-15 23:12:43 +000026121rm -f core conftest.err conftest.$ac_objext \
26122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026123LIBS=$ac_check_lib_save_LIBS
26124fi
cristy8b350f62009-11-15 23:12:43 +000026125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026126$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026127if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 LIB_DL='-ldl'
26129fi
26130
26131 LIBS="$LIB_DL $LIBS"
26132fi
26133
26134
26135
26136#
26137# Check for Autotrace delegate library.
26138#
26139
26140# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026141if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 withval=$with_autotrace; with_autotrace=$withval
26143else
26144 with_autotrace='no'
26145fi
26146
26147
26148if test "$with_autotrace" != 'yes'; then
26149 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26150fi
26151
26152have_autotrace='no'
26153AUTOTRACE_CFLAGS=""
26154AUTOTRACE_LIBS=""
26155AUTOTRACE_PKG=""
26156if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo "-------------------------------------------------------------" >&6; }
26159
26160pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026162$as_echo_n "checking for AUTOTRACE... " >&6; }
26163
26164if test -n "$AUTOTRACE_CFLAGS"; then
26165 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26166 elif test -n "$PKG_CONFIG"; then
26167 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026169 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26170 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026173 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26174else
26175 pkg_failed=yes
26176fi
26177 else
26178 pkg_failed=untried
26179fi
26180if test -n "$AUTOTRACE_LIBS"; then
26181 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26182 elif test -n "$PKG_CONFIG"; then
26183 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026185 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26186 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026189 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26190else
26191 pkg_failed=yes
26192fi
26193 else
26194 pkg_failed=untried
26195fi
26196
26197
26198
26199if test $pkg_failed = yes; then
26200
26201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26202 _pkg_short_errors_supported=yes
26203else
26204 _pkg_short_errors_supported=no
26205fi
26206 if test $_pkg_short_errors_supported = yes; then
26207 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26208 else
26209 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26210 fi
26211 # Put the nasty error message in config.log where it belongs
26212 echo "$AUTOTRACE_PKG_ERRORS" >&5
26213
cristy8b350f62009-11-15 23:12:43 +000026214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026215$as_echo "no" >&6; }
26216 have_autotrace=no
26217elif test $pkg_failed = untried; then
26218 have_autotrace=no
26219else
26220 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26221 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026223$as_echo "yes" >&6; }
26224 have_autotrace=yes
26225fi
cristy8b350f62009-11-15 23:12:43 +000026226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026227$as_echo "" >&6; }
26228fi
26229
26230if test "$have_autotrace" = 'yes'; then
26231 failed=0
26232
cristy8b350f62009-11-15 23:12:43 +000026233$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026234
26235 if test "$with_modules" = 'no'; then
26236 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26237 fi
26238fi
26239
26240 if test "$have_autotrace" = 'yes'; then
26241 AUTOTRACE_DELEGATE_TRUE=
26242 AUTOTRACE_DELEGATE_FALSE='#'
26243else
26244 AUTOTRACE_DELEGATE_TRUE='#'
26245 AUTOTRACE_DELEGATE_FALSE=
26246fi
26247
26248
26249
26250
26251
26252#
26253# Check for Display Postscript delegate library.
26254#
26255
26256# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026257if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026258 withval=$with_dps; with_dps=$withval
26259else
26260 with_dps='yes'
26261fi
26262
26263
26264if test "$with_dps" != 'yes'; then
26265 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26266fi
26267
26268have_dps='no'
26269DPS_LIBS=''
26270if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026274$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo "" >&6; }
26277 failed=0
26278 passed=0
26279 PERSIST_CPPFLAGS="$CPPFLAGS"
26280 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026281 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26282if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026283 passed=`expr $passed + 1`
26284else
26285 failed=`expr $failed + 1`
26286fi
26287
26288
26289 # DPS issues:
26290 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26291 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26292 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26293 # ImageMagick itself doesn't use -lXt.
26294 have_libdps='no'
26295 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026298if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 $as_echo_n "(cached) " >&6
26300else
26301 ac_check_lib_save_LIBS=$LIBS
26302LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026304/* end confdefs.h. */
26305
26306/* Override any GCC internal prototype to avoid an error.
26307 Use char because int might match the return type of a GCC
26308 builtin and then its argument prototype would still apply. */
26309#ifdef __cplusplus
26310extern "C"
26311#endif
26312char DPSInitialize ();
26313int
26314main ()
26315{
26316return DPSInitialize ();
26317 ;
26318 return 0;
26319}
26320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026322 ac_cv_lib_dps_DPSInitialize=yes
26323else
cristy8b350f62009-11-15 23:12:43 +000026324 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026325fi
cristy8b350f62009-11-15 23:12:43 +000026326rm -f core conftest.err conftest.$ac_objext \
26327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026328LIBS=$ac_check_lib_save_LIBS
26329fi
cristy8b350f62009-11-15 23:12:43 +000026330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026331$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026332if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026333 have_libdps='yes'
26334else
26335 have_libdps='no'
26336fi
26337
26338 if test "$have_libdps" != 'yes'; then
26339 # Unset cache variable so we can try again.
26340 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026342$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026343if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 $as_echo_n "(cached) " >&6
26345else
26346 ac_check_lib_save_LIBS=$LIBS
26347LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026349/* end confdefs.h. */
26350
26351/* Override any GCC internal prototype to avoid an error.
26352 Use char because int might match the return type of a GCC
26353 builtin and then its argument prototype would still apply. */
26354#ifdef __cplusplus
26355extern "C"
26356#endif
26357char DPSInitialize ();
26358int
26359main ()
26360{
26361return DPSInitialize ();
26362 ;
26363 return 0;
26364}
26365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026367 ac_cv_lib_dps_DPSInitialize=yes
26368else
cristy8b350f62009-11-15 23:12:43 +000026369 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026370fi
cristy8b350f62009-11-15 23:12:43 +000026371rm -f core conftest.err conftest.$ac_objext \
26372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026373LIBS=$ac_check_lib_save_LIBS
26374fi
cristy8b350f62009-11-15 23:12:43 +000026375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026376$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026377if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026378 have_libdps='yes'
26379else
26380 have_libdps='no'
26381fi
26382
26383 if test "$have_libdps" = 'yes'; then
26384 LIBDPS_XT='-lXt'
26385 fi
26386 fi
26387 if test "$have_libdps" = 'yes'; then
26388 passed=`expr $passed + 1`
26389 else
26390 failed=`expr $failed + 1`
26391 fi
cristy8b350f62009-11-15 23:12:43 +000026392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026394if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 $as_echo_n "(cached) " >&6
26396else
26397 ac_check_lib_save_LIBS=$LIBS
26398LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026400/* end confdefs.h. */
26401
26402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408char XDPSPixelsPerPoint ();
26409int
26410main ()
26411{
26412return XDPSPixelsPerPoint ();
26413 ;
26414 return 0;
26415}
26416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26419else
cristy8b350f62009-11-15 23:12:43 +000026420 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026421fi
cristy8b350f62009-11-15 23:12:43 +000026422rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424LIBS=$ac_check_lib_save_LIBS
26425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026428if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 passed=`expr $passed + 1`
26430else
26431 failed=`expr $failed + 1`
26432fi
26433
cristy8b350f62009-11-15 23:12:43 +000026434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026435$as_echo_n "checking if DPS package is complete... " >&6; }
26436 if test $passed -gt 0; then
26437 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo "no -- some components failed test" >&6; }
26440 have_dps='no (failed tests)'
26441 CPPFLAGS="$PERSIST_CPPFLAGS"
26442 else
26443 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26444 LIBS="$DPS_LIBS $LIBS"
26445
cristy8b350f62009-11-15 23:12:43 +000026446$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026447
cristy8b350f62009-11-15 23:12:43 +000026448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "yes" >&6; }
26450 have_dps='yes'
26451 fi
26452 else
cristy8b350f62009-11-15 23:12:43 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "no" >&6; }
26455 CPPFLAGS=$PERSIST_CPPFLAGS
26456 fi
26457fi
26458 if test "$have_dps" = 'yes'; then
26459 DPS_DELEGATE_TRUE=
26460 DPS_DELEGATE_FALSE='#'
26461else
26462 DPS_DELEGATE_TRUE='#'
26463 DPS_DELEGATE_FALSE=
26464fi
26465
26466
26467
26468
26469#
26470# Check for DJVU delegate library.
26471#
26472
26473# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026474if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 withval=$with_djvu; with_djvu=$withval
26476else
26477 with_djvu='yes'
26478fi
26479
26480
26481if test "$with_djvu" != 'yes'; then
26482 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26483fi
26484
26485have_djvu='no'
26486DJVU_LIBS=''
26487if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo "" >&6; }
26494 failed=0
26495 passed=0
cristy8b350f62009-11-15 23:12:43 +000026496 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26497if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 passed=`expr $passed + 1`
26499else
26500 failed=`expr $failed + 1`
26501fi
26502
26503
cristy8b350f62009-11-15 23:12:43 +000026504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026506if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 $as_echo_n "(cached) " >&6
26508else
26509 ac_check_lib_save_LIBS=$LIBS
26510LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026512/* end confdefs.h. */
26513
26514/* Override any GCC internal prototype to avoid an error.
26515 Use char because int might match the return type of a GCC
26516 builtin and then its argument prototype would still apply. */
26517#ifdef __cplusplus
26518extern "C"
26519#endif
26520char ddjvu_context_create ();
26521int
26522main ()
26523{
26524return ddjvu_context_create ();
26525 ;
26526 return 0;
26527}
26528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026530 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26531else
cristy8b350f62009-11-15 23:12:43 +000026532 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026533fi
cristy8b350f62009-11-15 23:12:43 +000026534rm -f core conftest.err conftest.$ac_objext \
26535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026536LIBS=$ac_check_lib_save_LIBS
26537fi
cristy8b350f62009-11-15 23:12:43 +000026538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026540if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 passed=`expr $passed + 1`
26542else
26543 failed=`expr $failed + 1`
26544fi
26545
cristy8b350f62009-11-15 23:12:43 +000026546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo_n "checking if DJVU package is complete... " >&6; }
26548 if test $passed -gt 0; then
26549 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo "no -- some components failed test" >&6; }
26552 have_djvu='no (failed tests)'
26553 else
26554 DJVU_LIBS='-ldjvulibre'
26555 LIBS="$DJVU_LIBS $LIBS"
26556
cristy8b350f62009-11-15 23:12:43 +000026557$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026558
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo "yes" >&6; }
26561 have_djvu='yes'
26562 fi
26563 else
cristy8b350f62009-11-15 23:12:43 +000026564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026565$as_echo "no" >&6; }
26566 fi
26567fi
26568 if test "$have_djvu" = 'yes'; then
26569 DJVU_DELEGATE_TRUE=
26570 DJVU_DELEGATE_FALSE='#'
26571else
26572 DJVU_DELEGATE_TRUE='#'
26573 DJVU_DELEGATE_FALSE=
26574fi
26575
26576
26577
26578
26579#
cristy430a7312010-01-21 20:44:04 +000026580# Set DejaVu font directory.
26581#
26582
26583# Check whether --with-dejavu-font-dir was given.
26584if test "${with_dejavu_font_dir+set}" = set; then :
26585 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26586else
26587 with_dejavu_font_dir='default'
26588fi
26589
26590
26591if test "$with_dejavu_font_dir" != 'default'; then
26592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26593fi
26594
26595
26596#
cristy3ed852e2009-09-05 21:47:34 +000026597# Check for FFTW delegate library.
26598#
26599
26600# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026601if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026602 withval=$with_fftw; with_fftw=$withval
26603else
26604 with_fftw='yes'
26605fi
26606
26607
26608if test "$with_fftw" != 'yes'; then
26609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26610fi
26611
26612have_fftw='no'
26613FFTW_LIBS=''
26614if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026616$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026618$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo "" >&6; }
26621 failed=0
26622 passed=0
cristy8b350f62009-11-15 23:12:43 +000026623 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26624if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026625 passed=`expr $passed + 1`
26626else
26627 failed=`expr $failed + 1`
26628fi
26629
26630
cristy8b350f62009-11-15 23:12:43 +000026631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026632$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026633if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026634 $as_echo_n "(cached) " >&6
26635else
26636 ac_check_lib_save_LIBS=$LIBS
26637LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026639/* end confdefs.h. */
26640
26641/* Override any GCC internal prototype to avoid an error.
26642 Use char because int might match the return type of a GCC
26643 builtin and then its argument prototype would still apply. */
26644#ifdef __cplusplus
26645extern "C"
26646#endif
26647char fftw_execute ();
26648int
26649main ()
26650{
26651return fftw_execute ();
26652 ;
26653 return 0;
26654}
26655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026657 ac_cv_lib_fftw3_fftw_execute=yes
26658else
cristy8b350f62009-11-15 23:12:43 +000026659 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026660fi
cristy8b350f62009-11-15 23:12:43 +000026661rm -f core conftest.err conftest.$ac_objext \
26662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026663LIBS=$ac_check_lib_save_LIBS
26664fi
cristy8b350f62009-11-15 23:12:43 +000026665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026667if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026668 passed=`expr $passed + 1`
26669else
26670 failed=`expr $failed + 1`
26671fi
26672
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo_n "checking if FFTW package is complete... " >&6; }
26675 if test $passed -gt 0; then
26676 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo "no -- some components failed test" >&6; }
26679 have_fftw='no (failed tests)'
26680 else
26681 FFTW_LIBS='-lfftw3'
26682 LIBS="$FFTW_LIBS $LIBS"
26683
cristy8b350f62009-11-15 23:12:43 +000026684$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026685
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "yes" >&6; }
26688 have_fftw='yes'
26689 fi
26690 else
cristy8b350f62009-11-15 23:12:43 +000026691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "no" >&6; }
26693 fi
26694fi
26695 if test "$have_fftw" = 'yes'; then
26696 FFTW_DELEGATE_TRUE=
26697 FFTW_DELEGATE_FALSE='#'
26698else
26699 FFTW_DELEGATE_TRUE='#'
26700 FFTW_DELEGATE_FALSE=
26701fi
26702
26703
26704
26705
26706#
26707# Check for FlashPIX delegate library.
26708#
26709
26710# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026711if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026712 withval=$with_fpx; with_fpx=$withval
26713else
26714 with_fpx='yes'
26715fi
26716
26717
26718if test "$with_fpx" != 'yes'; then
26719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26720fi
26721
26722have_fpx='no'
26723FPX_LIBS=''
26724if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026726$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo "" >&6; }
26731 failed=0
26732 passed=0
26733 ac_ext=cpp
26734ac_cpp='$CXXCPP $CPPFLAGS'
26735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26738
26739
cristy8b350f62009-11-15 23:12:43 +000026740ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26741if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 passed=`expr $passed + 1`
26743else
26744 failed=`expr $failed + 1`
26745fi
26746
26747
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026750if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026751 $as_echo_n "(cached) " >&6
26752else
26753 ac_check_lib_save_LIBS=$LIBS
26754LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026756/* end confdefs.h. */
26757
26758/* Override any GCC internal prototype to avoid an error.
26759 Use char because int might match the return type of a GCC
26760 builtin and then its argument prototype would still apply. */
26761#ifdef __cplusplus
26762extern "C"
26763#endif
26764char FPX_OpenImageByFilename ();
26765int
26766main ()
26767{
26768return FPX_OpenImageByFilename ();
26769 ;
26770 return 0;
26771}
26772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026773if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26775else
cristy8b350f62009-11-15 23:12:43 +000026776 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026777fi
cristy8b350f62009-11-15 23:12:43 +000026778rm -f core conftest.err conftest.$ac_objext \
26779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780LIBS=$ac_check_lib_save_LIBS
26781fi
cristy8b350f62009-11-15 23:12:43 +000026782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026784if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026785 passed=`expr $passed + 1`
26786else
26787 failed=`expr $failed + 1`
26788fi
26789
26790 ac_ext=c
26791ac_cpp='$CPP $CPPFLAGS'
26792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26794ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795
cristy8b350f62009-11-15 23:12:43 +000026796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026797$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26798 if test $passed -gt 0; then
26799 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026801$as_echo "no -- some components failed test" >&6; }
26802 have_fpx='no (failed tests)'
26803 else
26804 FPX_LIBS='-lfpx'
26805
cristy8b350f62009-11-15 23:12:43 +000026806$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026807
cristy8b350f62009-11-15 23:12:43 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "yes" >&6; }
26810 have_fpx='yes'
26811 PERLMAINCC="$CXX"
26812 fi
26813 else
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo "no" >&6; }
26816 fi
26817fi
26818 if test "$have_fpx" = 'yes'; then
26819 FPX_DELEGATE_TRUE=
26820 FPX_DELEGATE_FALSE='#'
26821else
26822 FPX_DELEGATE_TRUE='#'
26823 FPX_DELEGATE_FALSE=
26824fi
26825
26826
26827
26828
26829#
26830# Check for fontconfig delegate library.
26831#
26832
26833# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026834if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 withval=$with_fontconfig; with_fontconfig=$withval
26836else
26837 with_fontconfig=$have_x
26838fi
26839
26840
26841if test "$with_fontconfig" != 'yes'; then
26842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26843fi
26844
26845have_fontconfig='no'
26846FONTCONFIG_CFLAGS=""
26847FONTCONFIG_LIBS=""
26848FONTCONFIG_PKG=""
26849if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026851$as_echo "-------------------------------------------------------------" >&6; }
26852
26853pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo_n "checking for FONTCONFIG... " >&6; }
26856
26857if test -n "$FONTCONFIG_CFLAGS"; then
26858 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26859 elif test -n "$PKG_CONFIG"; then
26860 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026862 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26865 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026866 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26867else
26868 pkg_failed=yes
26869fi
26870 else
26871 pkg_failed=untried
26872fi
26873if test -n "$FONTCONFIG_LIBS"; then
26874 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26875 elif test -n "$PKG_CONFIG"; then
26876 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026878 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26879 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26881 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026882 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26883else
26884 pkg_failed=yes
26885fi
26886 else
26887 pkg_failed=untried
26888fi
26889
26890
26891
26892if test $pkg_failed = yes; then
26893
26894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26895 _pkg_short_errors_supported=yes
26896else
26897 _pkg_short_errors_supported=no
26898fi
26899 if test $_pkg_short_errors_supported = yes; then
26900 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26901 else
26902 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26903 fi
26904 # Put the nasty error message in config.log where it belongs
26905 echo "$FONTCONFIG_PKG_ERRORS" >&5
26906
cristy8b350f62009-11-15 23:12:43 +000026907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026908$as_echo "no" >&6; }
26909 have_fontconfig=no
26910elif test $pkg_failed = untried; then
26911 have_fontconfig=no
26912else
26913 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26914 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026916$as_echo "yes" >&6; }
26917 have_fontconfig=yes
26918fi
cristy8b350f62009-11-15 23:12:43 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo "" >&6; }
26921fi
26922
26923if test "$have_fontconfig" = 'yes'; then
26924
cristy8b350f62009-11-15 23:12:43 +000026925$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026926
cristyd09bcf92010-03-25 03:04:45 +000026927 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026928 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026929 fi
cristy3ed852e2009-09-05 21:47:34 +000026930fi
26931
26932 if test "$have_fontconfig" = 'yes'; then
26933 FONTCONFIG_DELEGATE_TRUE=
26934 FONTCONFIG_DELEGATE_FALSE='#'
26935else
26936 FONTCONFIG_DELEGATE_TRUE='#'
26937 FONTCONFIG_DELEGATE_FALSE=
26938fi
26939
26940
26941
26942
26943
26944#
26945# Check for freetype delegate library.
26946#
26947
26948# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026949if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026950 withval=$with_freetype; with_freetype=$withval
26951else
26952 with_freetype='yes'
26953fi
26954
26955
26956
26957if test "$with_freetype" != 'yes'; then
26958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26959fi
26960
26961have_freetype='no'
26962FREETYPE_LIBS=''
26963if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026965$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026969$as_echo "" >&6; }
26970 failed=0
26971 passed=0
cristy66291112009-10-03 22:44:36 +000026972 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026973 PERSIST_CPPFLAGS="$CPPFLAGS"
26974 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26975 :
26976 else
26977 freetype_config=''
26978 for ac_prog in freetype-config
26979do
26980 # Extract the first word of "$ac_prog", so it can be a program name with args.
26981set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026983$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026984if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026985 $as_echo_n "(cached) " >&6
26986else
26987 if test -n "$freetype_config"; then
26988 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26989else
26990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26991for as_dir in $PATH
26992do
26993 IFS=$as_save_IFS
26994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26997 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026999 break 2
27000 fi
27001done
cristy8b350f62009-11-15 23:12:43 +000027002 done
cristy3ed852e2009-09-05 21:47:34 +000027003IFS=$as_save_IFS
27004
27005fi
27006fi
27007freetype_config=$ac_cv_prog_freetype_config
27008if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "$freetype_config" >&6; }
27011else
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "no" >&6; }
27014fi
27015
27016
27017 test -n "$freetype_config" && break
27018done
27019 if test -n "$freetype_config"; then
27020 freetype_cflags=`$freetype_config --cflags`
27021 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027022 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027023 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27024 fi
27025 fi
27026
27027 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027030if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027031 $as_echo_n "(cached) " >&6
27032else
27033 ac_check_lib_save_LIBS=$LIBS
27034LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036/* end confdefs.h. */
27037
27038/* Override any GCC internal prototype to avoid an error.
27039 Use char because int might match the return type of a GCC
27040 builtin and then its argument prototype would still apply. */
27041#ifdef __cplusplus
27042extern "C"
27043#endif
27044char FT_Init_FreeType ();
27045int
27046main ()
27047{
27048return FT_Init_FreeType ();
27049 ;
27050 return 0;
27051}
27052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027054 ac_cv_lib_freetype_FT_Init_FreeType=yes
27055else
cristy8b350f62009-11-15 23:12:43 +000027056 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027057fi
cristy8b350f62009-11-15 23:12:43 +000027058rm -f core conftest.err conftest.$ac_objext \
27059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027060LIBS=$ac_check_lib_save_LIBS
27061fi
cristy8b350f62009-11-15 23:12:43 +000027062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027063$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027064if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027065 FREETYPE_LIBS='-lfreetype'
27066fi
27067
27068 if test "$FREETYPE_LIBS" != ''; then
27069 passed=`expr $passed + 1`
27070 else
27071 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027072 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027073 fi
27074 fi
27075
cristy8b350f62009-11-15 23:12:43 +000027076 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27077if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 FT2BUILD_H='#include <ft2build.h>'
27079else
27080 ft2build=''
27081fi
27082
27083
cristy8b350f62009-11-15 23:12:43 +000027084 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27085"
27086if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 have_freetype_h='yes'
27088else
27089 have_freetype_h='no'
27090fi
27091
27092
27093 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27094 passed=`expr $passed + 1`
27095 else
27096 failed=`expr $failed + 1`
27097 CPPFLAGS="$PERSIST_CPPFLAGS"
27098 fi
27099
cristy8b350f62009-11-15 23:12:43 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo_n "checking if FreeType package is complete... " >&6; }
27102 if test $passed -gt 0; then
27103 if test $failed -gt 0; then
27104 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "no -- some components failed test" >&6; }
27107 have_freetype='no (failed tests)'
27108 else
27109 LIBS="$FREETYPE_LIBS $LIBS"
27110
cristy8b350f62009-11-15 23:12:43 +000027111$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027112
27113 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27114
cristy8b350f62009-11-15 23:12:43 +000027115$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027116
27117 fi
cristy8b350f62009-11-15 23:12:43 +000027118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027119$as_echo "yes" >&6; }
27120 have_freetype='yes'
27121 fi
27122 else
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "no" >&6; }
27125 fi
27126fi
27127 if test "$have_freetype" = 'yes'; then
27128 FREETYPE_DELEGATE_TRUE=
27129 FREETYPE_DELEGATE_FALSE='#'
27130else
27131 FREETYPE_DELEGATE_TRUE='#'
27132 FREETYPE_DELEGATE_FALSE=
27133fi
27134
27135
27136
27137
27138
27139#
27140# Check for Ghostscript library or framework.
27141#
27142# Test for iapi.h & test for gsapi_new_instance in -lgs
27143# or -framework Ghostscript
27144
27145
27146# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027147if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027148 withval=$with_gslib; with_gslib=$withval
27149else
27150 with_gslib='no'
27151fi
27152
27153
cristyb7931f12009-09-25 10:22:21 +000027154gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027155if test "$with_gslib" != 'yes'; then
27156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27157fi
27158
27159have_gslib='no'
27160GS_LIBS=''
27161if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027168 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027169 failed=0
27170 passed=0
cristy8b350f62009-11-15 23:12:43 +000027171 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27172if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 passed=`expr $passed + 1`
27174else
27175 failed=`expr $failed + 1`
27176fi
27177
27178
cristy8b350f62009-11-15 23:12:43 +000027179 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27180if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 passed=`expr $passed + 1`
27182else
27183 failed=`expr $failed + 1`
27184fi
27185
27186
cristy8b350f62009-11-15 23:12:43 +000027187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027189if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027190 $as_echo_n "(cached) " >&6
27191else
27192 ac_check_framework_save_LIBS=$LIBS
27193LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195/* end confdefs.h. */
27196
27197/* Override any GCC internal prototype to avoid an error.
27198 Use char because int might match the return type of a GCC
27199 builtin and then its argument prototype would still apply. */
27200#ifdef __cplusplus
27201extern "C"
27202#endif
27203char gsapi_new_instance ();
27204int
27205main ()
27206{
27207return gsapi_new_instance ();
27208 ;
27209 return 0;
27210}
27211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27214else
cristy8b350f62009-11-15 23:12:43 +000027215 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027216fi
cristy8b350f62009-11-15 23:12:43 +000027217rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027219LIBS=$ac_check_framework_save_LIBS
27220fi
cristy8b350f62009-11-15 23:12:43 +000027221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027223if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 framework=`expr $framework + 1`
27225else
cristy8b350f62009-11-15 23:12:43 +000027226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027228if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027229 $as_echo_n "(cached) " >&6
27230else
27231 ac_check_lib_save_LIBS=$LIBS
27232LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234/* end confdefs.h. */
27235
27236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27239#ifdef __cplusplus
27240extern "C"
27241#endif
27242char gsapi_new_instance ();
27243int
27244main ()
27245{
27246return gsapi_new_instance ();
27247 ;
27248 return 0;
27249}
27250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 ac_cv_lib_gs_gsapi_new_instance=yes
27253else
cristy8b350f62009-11-15 23:12:43 +000027254 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027255fi
cristy8b350f62009-11-15 23:12:43 +000027256rm -f core conftest.err conftest.$ac_objext \
27257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258LIBS=$ac_check_lib_save_LIBS
27259fi
cristy8b350f62009-11-15 23:12:43 +000027260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027262if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 passed=`expr $passed + 1`
27264else
27265 failed=`expr $failed + 1`
27266fi
27267
27268fi
cristy8b350f62009-11-15 23:12:43 +000027269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27271 if test $passed -gt 0; then
27272 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo "no -- some components failed test" >&6; }
27275 have_gslib='no (failed tests)'
27276 else
27277 if test $framework -gt 0; then
27278 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027279 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027281$as_echo "yes, using framework." >&6; }
27282 else
cristy8b350f62009-11-15 23:12:43 +000027283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027284$as_echo "yes, using library." >&6; }
27285 GS_LIBS='-lgs'
27286 fi
27287 LIBS="$GS_LIBS $LIBS"
27288
cristy8b350f62009-11-15 23:12:43 +000027289$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027290
27291 have_gslib='yes'
27292 fi
27293 else
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "no" >&6; }
27296 fi
27297fi
27298 if test "$have_gslib" = 'yes'; then
27299 GS_DELEGATE_TRUE=
27300 GS_DELEGATE_FALSE='#'
27301else
27302 GS_DELEGATE_TRUE='#'
27303 GS_DELEGATE_FALSE=
27304fi
27305
27306
27307
27308# Set default font search path
27309
27310# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027311if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 withval=$with_fontpath; with_fontpath=$withval
27313else
27314 with_fontpath=''
27315fi
27316
27317
27318if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27319 with_fontpath=''
27320else
27321
27322cat >>confdefs.h <<_ACEOF
27323#define MAGICK_FONT_PATH "$with_fontpath"
27324_ACEOF
27325
27326fi
27327if test "$with_fontpath=" != ''; then
27328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27329fi
27330
27331# Set Ghostscript font directory
27332
27333# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027334if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27336else
27337 with_gs_font_dir='default'
27338fi
27339
27340
27341if test "$with_gs_font_dir" != 'default'; then
27342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27343fi
27344
27345
27346#
27347# Check for GVC delegate library.
27348#
27349
27350# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027351if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 withval=$with_gvc; with_gvc=$withval
27353else
27354 with_gvc='yes'
27355fi
27356
27357
27358if test "$with_gvc" != 'yes'; then
27359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27360fi
27361
27362GVC_PKG=""
27363if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo "-------------------------------------------------------------" >&6; }
27366
27367pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo_n "checking for GVC... " >&6; }
27370
27371if test -n "$GVC_CFLAGS"; then
27372 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27373 elif test -n "$PKG_CONFIG"; then
27374 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027376 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27377 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027380 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27381else
27382 pkg_failed=yes
27383fi
27384 else
27385 pkg_failed=untried
27386fi
27387if test -n "$GVC_LIBS"; then
27388 pkg_cv_GVC_LIBS="$GVC_LIBS"
27389 elif test -n "$PKG_CONFIG"; then
27390 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027392 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27393 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27395 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027396 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27397else
27398 pkg_failed=yes
27399fi
27400 else
27401 pkg_failed=untried
27402fi
27403
27404
27405
27406if test $pkg_failed = yes; then
27407
27408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27409 _pkg_short_errors_supported=yes
27410else
27411 _pkg_short_errors_supported=no
27412fi
27413 if test $_pkg_short_errors_supported = yes; then
27414 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27415 else
27416 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27417 fi
27418 # Put the nasty error message in config.log where it belongs
27419 echo "$GVC_PKG_ERRORS" >&5
27420
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "no" >&6; }
27423 have_gvc=no
27424elif test $pkg_failed = untried; then
27425 have_gvc=no
27426else
27427 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27428 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo "yes" >&6; }
27431 have_gvc=yes
27432fi
cristy8b350f62009-11-15 23:12:43 +000027433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027434$as_echo "" >&6; }
27435fi
27436
27437if test "$have_gvc" = 'yes'; then
27438
cristy8b350f62009-11-15 23:12:43 +000027439$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027440
27441 if test "$with_modules" = 'no'; then
27442 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27443 fi
27444fi
27445
27446 if test "$have_gvc" = 'yes'; then
27447 GVC_DELEGATE_TRUE=
27448 GVC_DELEGATE_FALSE='#'
27449else
27450 GVC_DELEGATE_TRUE='#'
27451 GVC_DELEGATE_FALSE=
27452fi
27453
27454
27455
27456
27457
27458#
27459# Check for JBIG delegate library.
27460#
27461
27462
27463# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027464if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 withval=$with_jbig; with_jbig=$withval
27466else
27467 with_jbig='yes'
27468fi
27469
27470
27471have_jbig='no'
27472JBIG_LIBS=''
27473if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo "" >&6; }
27480 failed=0
27481 passed=0
cristy8b350f62009-11-15 23:12:43 +000027482 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27483if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 passed=`expr $passed + 1`
27485else
27486 failed=`expr $failed + 1`
27487fi
27488
27489
cristy8b350f62009-11-15 23:12:43 +000027490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027492if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027493 $as_echo_n "(cached) " >&6
27494else
27495 ac_check_lib_save_LIBS=$LIBS
27496LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027498/* end confdefs.h. */
27499
27500/* Override any GCC internal prototype to avoid an error.
27501 Use char because int might match the return type of a GCC
27502 builtin and then its argument prototype would still apply. */
27503#ifdef __cplusplus
27504extern "C"
27505#endif
27506char jbg_dec_init ();
27507int
27508main ()
27509{
27510return jbg_dec_init ();
27511 ;
27512 return 0;
27513}
27514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027516 ac_cv_lib_jbig_jbg_dec_init=yes
27517else
cristy8b350f62009-11-15 23:12:43 +000027518 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027519fi
cristy8b350f62009-11-15 23:12:43 +000027520rm -f core conftest.err conftest.$ac_objext \
27521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027522LIBS=$ac_check_lib_save_LIBS
27523fi
cristy8b350f62009-11-15 23:12:43 +000027524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027526if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 passed=`expr $passed + 1`
27528else
27529 failed=`expr $failed + 1`
27530fi
27531
cristy8b350f62009-11-15 23:12:43 +000027532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027533$as_echo_n "checking if JBIG package is complete... " >&6; }
27534 if test $passed -gt 0; then
27535 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo "no -- some components failed test" >&6; }
27538 have_jbig='no (failed tests)'
27539 else
27540 JBIG_LIBS='-ljbig'
27541 LIBS="$JBIG_LIBS $LIBS"
27542
cristy8b350f62009-11-15 23:12:43 +000027543$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027544
cristy8b350f62009-11-15 23:12:43 +000027545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo "yes" >&6; }
27547 have_jbig='yes'
27548 fi
27549 else
cristy8b350f62009-11-15 23:12:43 +000027550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027551$as_echo "no" >&6; }
27552 fi
27553fi
27554 if test "$have_jbig" = 'yes'; then
27555 JBIG_DELEGATE_TRUE=
27556 JBIG_DELEGATE_FALSE='#'
27557else
27558 JBIG_DELEGATE_TRUE='#'
27559 JBIG_DELEGATE_FALSE=
27560fi
27561
27562
27563
27564
27565#
27566# Check for JPEG delegate library.
27567#
27568
27569# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027570if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 withval=$with_jpeg; with_jpeg=$withval
27572else
27573 with_jpeg='yes'
27574fi
27575
27576
27577if test "$with_jpeg" != 'yes'; then
27578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27579fi
27580
27581have_jpeg='no'
27582JPEG_LIBS=''
27583if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027589$as_echo "" >&6; }
27590 failed=0
27591 passed=0
cristy8b350f62009-11-15 23:12:43 +000027592 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27593if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 passed=`expr $passed + 1`
27595else
27596 failed=`expr $failed + 1`
27597fi
27598
27599
cristy8b350f62009-11-15 23:12:43 +000027600 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27601if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 passed=`expr $passed + 1`
27603else
27604 failed=`expr $failed + 1`
27605fi
27606
27607
cristy8b350f62009-11-15 23:12:43 +000027608 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27609if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 passed=`expr $passed + 1`
27611else
27612 failed=`expr $failed + 1`
27613fi
27614
27615
cristy8b350f62009-11-15 23:12:43 +000027616 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27617if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 passed=`expr $passed + 1`
27619else
27620 failed=`expr $failed + 1`
27621fi
27622
27623
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027626if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027627 $as_echo_n "(cached) " >&6
27628else
27629 ac_check_lib_save_LIBS=$LIBS
27630LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027632/* end confdefs.h. */
27633
27634/* Override any GCC internal prototype to avoid an error.
27635 Use char because int might match the return type of a GCC
27636 builtin and then its argument prototype would still apply. */
27637#ifdef __cplusplus
27638extern "C"
27639#endif
27640char jpeg_read_header ();
27641int
27642main ()
27643{
27644return jpeg_read_header ();
27645 ;
27646 return 0;
27647}
27648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 ac_cv_lib_jpeg_jpeg_read_header=yes
27651else
cristy8b350f62009-11-15 23:12:43 +000027652 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027653fi
cristy8b350f62009-11-15 23:12:43 +000027654rm -f core conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656LIBS=$ac_check_lib_save_LIBS
27657fi
cristy8b350f62009-11-15 23:12:43 +000027658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027660if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027661 passed=`expr $passed + 1`
27662else
27663 failed=`expr $failed + 1`
27664fi
27665
27666
27667# Test for compatible JPEG library
27668if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027671if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027672 $as_echo_n "(cached) " >&6
27673else
cristy8b350f62009-11-15 23:12:43 +000027674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027675/* end confdefs.h. */
27676#include <stdio.h>
27677#include <stdlib.h>
27678#include <jpeglib.h>
27679
27680int
27681main ()
27682{
27683
27684#if JPEG_LIB_VERSION < 62
27685#error IJG JPEG library must be version 6b or newer!
27686#endif
27687return 0;
27688
27689 ;
27690 return 0;
27691}
27692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027693if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27695else
cristy8b350f62009-11-15 23:12:43 +000027696 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027697fi
cristy3ed852e2009-09-05 21:47:34 +000027698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699fi
cristy8b350f62009-11-15 23:12:43 +000027700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27702fi
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking if JPEG package is complete... " >&6; }
27705 if test $passed -gt 0; then
27706 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027708$as_echo "no -- some components failed test" >&6; }
27709 have_jpeg='no (failed tests)'
27710 else
27711 JPEG_LIBS='-ljpeg'
27712 LIBS="$JPEG_LIBS $LIBS"
27713
cristy8b350f62009-11-15 23:12:43 +000027714$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027715
cristy8b350f62009-11-15 23:12:43 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027717$as_echo "yes" >&6; }
27718 have_jpeg='yes'
27719 fi
27720 else
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "no" >&6; }
27723 fi
27724fi
27725 if test "$have_jpeg" = 'yes'; then
27726 JPEG_DELEGATE_TRUE=
27727 JPEG_DELEGATE_FALSE='#'
27728else
27729 JPEG_DELEGATE_TRUE='#'
27730 JPEG_DELEGATE_FALSE=
27731fi
27732
27733
27734
27735
27736#
27737# Check for JPEG Version 2 delegate library.
27738#
27739
27740# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027741if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 withval=$with_jp2; with_jp2=$withval
27743else
27744 with_jp2='yes'
27745fi
27746
27747
27748if test "$with_jp2" != 'yes'; then
27749 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27750fi
27751
27752have_jp2='no'
27753JP2_LIBS=''
27754if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027760$as_echo "" >&6; }
27761 failed=0
27762 passed=0
cristy8b350f62009-11-15 23:12:43 +000027763 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27764if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 passed=`expr $passed + 1`
27766else
27767 failed=`expr $failed + 1`
27768fi
27769
27770
cristy8b350f62009-11-15 23:12:43 +000027771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027772$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027773if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027774 $as_echo_n "(cached) " >&6
27775else
27776 ac_check_lib_save_LIBS=$LIBS
27777LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027779/* end confdefs.h. */
27780
27781/* Override any GCC internal prototype to avoid an error.
27782 Use char because int might match the return type of a GCC
27783 builtin and then its argument prototype would still apply. */
27784#ifdef __cplusplus
27785extern "C"
27786#endif
27787char jas_stream_fopen ();
27788int
27789main ()
27790{
27791return jas_stream_fopen ();
27792 ;
27793 return 0;
27794}
27795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 ac_cv_lib_jasper_jas_stream_fopen=yes
27798else
cristy8b350f62009-11-15 23:12:43 +000027799 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027800fi
cristy8b350f62009-11-15 23:12:43 +000027801rm -f core conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027803LIBS=$ac_check_lib_save_LIBS
27804fi
cristy8b350f62009-11-15 23:12:43 +000027805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027807if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 passed=`expr $passed + 1`
27809else
27810 failed=`expr $failed + 1`
27811fi
27812
cristy8b350f62009-11-15 23:12:43 +000027813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27815 if test $passed -gt 0; then
27816 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo "no -- some components failed test" >&6; }
27819 have_jp2='no (failed tests)'
27820 else
27821 JP2_LIBS='-ljasper'
27822 LIBS="$JP2_LIBS $LIBS"
27823
cristy8b350f62009-11-15 23:12:43 +000027824$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027825
cristy8b350f62009-11-15 23:12:43 +000027826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo "yes" >&6; }
27828 have_jp2='yes'
27829 fi
27830 else
cristy8b350f62009-11-15 23:12:43 +000027831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027832$as_echo "no" >&6; }
27833 fi
27834fi
27835 if test "$have_jp2" = 'yes'; then
27836 JP2_DELEGATE_TRUE=
27837 JP2_DELEGATE_FALSE='#'
27838else
27839 JP2_DELEGATE_TRUE='#'
27840 JP2_DELEGATE_FALSE=
27841fi
27842
27843
27844
27845
27846#
27847# Check for LCMS delegate library.
27848#
cristy71203402010-06-18 13:12:03 +000027849# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027850
27851# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027852if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 withval=$with_lcms; with_lcms=$withval
27854else
27855 with_lcms='yes'
27856fi
27857
cristy71203402010-06-18 13:12:03 +000027858if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27860fi
27861
cristy71203402010-06-18 13:12:03 +000027862# Disable LCMS2.
27863
27864# Check whether --with-lcms2 was given.
27865if test "${with_lcms2+set}" = set; then :
27866 withval=$with_lcms2; with_lcms2=$withval
27867else
27868 with_lcms2='yes'
27869fi
27870
27871if test "$with_lcms2" != 'yes' ; then
27872 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27873fi
27874
27875have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027876LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027877if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027879$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27881$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027883$as_echo "" >&6; }
27884 failed=0
27885 passed=0
27886 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027887
27888 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027889 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27890if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27891 have_lcms_header='yes'
27892fi
27893
27894
27895 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027896
27897$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27898
cristy71203402010-06-18 13:12:03 +000027899 passed=`expr $passed + 1`
27900 fi
27901
27902 # Check for <lcms2/lcms2.h)
27903 if test "$have_lcms_header" != 'yes'; then
27904 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27905if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027906 have_lcms_header='yes'
27907fi
27908
27909
cristy71203402010-06-18 13:12:03 +000027910 if test "$have_lcms_header" = 'yes'; then
27911 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027912
cristy71203402010-06-18 13:12:03 +000027913$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027914
cristy71203402010-06-18 13:12:03 +000027915 fi
cristyd09bcf92010-03-25 03:04:45 +000027916 fi
cristy71203402010-06-18 13:12:03 +000027917
27918 # Failed to find lcms header?
27919 if test "$have_lcms_header" != 'yes'; then
27920 failed=`expr $failed + 1`
27921 fi
27922
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27924$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27925if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027926 $as_echo_n "(cached) " >&6
27927else
27928 ac_check_lib_save_LIBS=$LIBS
27929LIBS="-llcms2 $LIBS"
27930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27931/* end confdefs.h. */
27932
27933/* Override any GCC internal prototype to avoid an error.
27934 Use char because int might match the return type of a GCC
27935 builtin and then its argument prototype would still apply. */
27936#ifdef __cplusplus
27937extern "C"
27938#endif
cristy71203402010-06-18 13:12:03 +000027939char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027940int
27941main ()
27942{
cristy71203402010-06-18 13:12:03 +000027943return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027944 ;
27945 return 0;
27946}
27947_ACEOF
27948if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027949 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027950else
cristy71203402010-06-18 13:12:03 +000027951 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027952fi
27953rm -f core conftest.err conftest.$ac_objext \
27954 conftest$ac_exeext conftest.$ac_ext
27955LIBS=$ac_check_lib_save_LIBS
27956fi
cristy71203402010-06-18 13:12:03 +000027957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27958$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27959if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027960 passed=`expr $passed + 1`
27961else
27962 failed=`expr $failed + 1`
27963fi
27964
cristy71203402010-06-18 13:12:03 +000027965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27966$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027967 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027968 if test $failed -gt 0; then
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027970$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027971 have_lcms2='no (failed tests)'
27972 else
27973 LCMS_LIBS='-llcms2'
27974 LIBS="$LCMS_LIBS $LIBS"
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027976$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027977 have_lcms2='yes'
27978 fi
cristyd09bcf92010-03-25 03:04:45 +000027979 else
cristy71203402010-06-18 13:12:03 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027981$as_echo "no" >&6; }
27982 fi
27983fi
27984
cristy71203402010-06-18 13:12:03 +000027985#
27986# Check for LCMS v1 (1.11 or later)
27987#
27988if test $have_lcms2 = 'yes'; then
27989 with_lcms='no'
27990fi
27991
27992have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027993if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27995$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27997$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27999$as_echo "" >&6; }
28000 failed=0
28001 passed=0
28002 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028003
28004 # Check for <lcms.h>
28005 if test "$have_lcms_header" != 'yes'; then
28006 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028007if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028008 have_lcms_header='yes'
28009fi
28010
28011
cristy71203402010-06-18 13:12:03 +000028012 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028013 passed=`expr $passed + 1`
28014
cristy8b350f62009-11-15 23:12:43 +000028015$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028016
cristy71203402010-06-18 13:12:03 +000028017 fi
28018 fi
28019
28020 # Check for <lcms/lcms.h>
28021 if test "$have_lcms_header" != 'yes'; then
28022 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028023if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 have_lcms_header='yes'
28025fi
28026
28027
cristy71203402010-06-18 13:12:03 +000028028 if test "$have_lcms_header" = 'yes'; then
28029 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028030
cristy8b350f62009-11-15 23:12:43 +000028031$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028032
cristy71203402010-06-18 13:12:03 +000028033 fi
cristy3ed852e2009-09-05 21:47:34 +000028034 fi
cristy71203402010-06-18 13:12:03 +000028035
28036 # Failed to find lcms header?
28037 if test "$have_lcms_header" != 'yes'; then
28038 failed=`expr $failed + 1`
28039 fi
28040
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28042$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28043if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028044 $as_echo_n "(cached) " >&6
28045else
28046 ac_check_lib_save_LIBS=$LIBS
28047LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028049/* end confdefs.h. */
28050
28051/* Override any GCC internal prototype to avoid an error.
28052 Use char because int might match the return type of a GCC
28053 builtin and then its argument prototype would still apply. */
28054#ifdef __cplusplus
28055extern "C"
28056#endif
cristy71203402010-06-18 13:12:03 +000028057char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028058int
28059main ()
28060{
cristy71203402010-06-18 13:12:03 +000028061return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028062 ;
28063 return 0;
28064}
28065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028066if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028067 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028068else
cristy71203402010-06-18 13:12:03 +000028069 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028070fi
cristy8b350f62009-11-15 23:12:43 +000028071rm -f core conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028073LIBS=$ac_check_lib_save_LIBS
28074fi
cristy71203402010-06-18 13:12:03 +000028075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28076$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28077if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 passed=`expr $passed + 1`
28079else
28080 failed=`expr $failed + 1`
28081fi
28082
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo_n "checking if LCMS package is complete... " >&6; }
28085 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028086 if test $failed -gt 0; then
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028088$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028089 have_lcms='no (failed tests)'
28090 else
28091 LCMS_LIBS='-llcms'
28092 LIBS="$LCMS_LIBS $LIBS"
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028095 have_lcms='yes'
28096 fi
cristy3ed852e2009-09-05 21:47:34 +000028097 else
cristy71203402010-06-18 13:12:03 +000028098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo "no" >&6; }
28100 fi
28101fi
cristy71203402010-06-18 13:12:03 +000028102
28103 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028104 LCMS_DELEGATE_TRUE=
28105 LCMS_DELEGATE_FALSE='#'
28106else
28107 LCMS_DELEGATE_TRUE='#'
28108 LCMS_DELEGATE_FALSE=
28109fi
28110
cristy71203402010-06-18 13:12:03 +000028111if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28112
28113$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28114
28115fi
28116
cristy3ed852e2009-09-05 21:47:34 +000028117
28118
28119
28120#
28121# Check for the LQR (Liquid Rescale) delegate library.
28122#
28123
28124# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028125if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028126 withval=$with_lqr; with_lqr=$withval
28127else
28128 with_lqr='yes'
28129fi
28130
28131
28132if test "$with_lqr" != 'yes'; then
28133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28134fi
28135
28136have_lqr='no'
28137LQR_CFLAGS=""
28138LQR_LIBS=""
28139LQR_PKG=""
28140if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo "-------------------------------------------------------------" >&6; }
28143
28144pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028146$as_echo_n "checking for LQR... " >&6; }
28147
28148if test -n "$LQR_CFLAGS"; then
28149 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28150 elif test -n "$PKG_CONFIG"; then
28151 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028153 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28154 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28156 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028157 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28158else
28159 pkg_failed=yes
28160fi
28161 else
28162 pkg_failed=untried
28163fi
28164if test -n "$LQR_LIBS"; then
28165 pkg_cv_LQR_LIBS="$LQR_LIBS"
28166 elif test -n "$PKG_CONFIG"; then
28167 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028169 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28170 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28172 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028173 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28174else
28175 pkg_failed=yes
28176fi
28177 else
28178 pkg_failed=untried
28179fi
28180
28181
28182
28183if test $pkg_failed = yes; then
28184
28185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28186 _pkg_short_errors_supported=yes
28187else
28188 _pkg_short_errors_supported=no
28189fi
28190 if test $_pkg_short_errors_supported = yes; then
28191 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28192 else
28193 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28194 fi
28195 # Put the nasty error message in config.log where it belongs
28196 echo "$LQR_PKG_ERRORS" >&5
28197
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo "no" >&6; }
28200 have_lqr=no
28201elif test $pkg_failed = untried; then
28202 have_lqr=no
28203else
28204 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28205 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "yes" >&6; }
28208 have_lqr=yes
28209fi
cristy8b350f62009-11-15 23:12:43 +000028210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028211$as_echo "" >&6; }
28212fi
28213
28214if test "$have_lqr" = 'yes'; then
28215
cristy8b350f62009-11-15 23:12:43 +000028216$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028217
28218 CFLAGS="$LQR_CFLAGS $CFLAGS"
28219fi
28220
28221 if test "$have_lqr" = 'yes'; then
28222 LQR_DELEGATE_TRUE=
28223 LQR_DELEGATE_FALSE='#'
28224else
28225 LQR_DELEGATE_TRUE='#'
28226 LQR_DELEGATE_FALSE=
28227fi
28228
28229
28230
28231
28232
28233#
28234# Check for the OpenEXR delegate library.
28235#
28236
28237# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028238if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 withval=$with_openexr; with_openexr=$withval
28240else
28241 with_openexr='yes'
28242fi
28243
28244
28245if test "$with_openexr" != 'yes'; then
28246 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28247fi
28248
28249have_openexr='no'
28250OPENEXR_CFLAGS=""
28251OPENEXR_LIBS=""
28252OPENEXR_PKG=""
28253if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo "-------------------------------------------------------------" >&6; }
28256
28257pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo_n "checking for OPENEXR... " >&6; }
28260
28261if test -n "$OPENEXR_CFLAGS"; then
28262 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28263 elif test -n "$PKG_CONFIG"; then
28264 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028266 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28267 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28269 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028270 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28271else
28272 pkg_failed=yes
28273fi
28274 else
28275 pkg_failed=untried
28276fi
28277if test -n "$OPENEXR_LIBS"; then
28278 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28279 elif test -n "$PKG_CONFIG"; then
28280 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028282 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28283 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28285 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028286 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28287else
28288 pkg_failed=yes
28289fi
28290 else
28291 pkg_failed=untried
28292fi
28293
28294
28295
28296if test $pkg_failed = yes; then
28297
28298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28299 _pkg_short_errors_supported=yes
28300else
28301 _pkg_short_errors_supported=no
28302fi
28303 if test $_pkg_short_errors_supported = yes; then
28304 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28305 else
28306 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28307 fi
28308 # Put the nasty error message in config.log where it belongs
28309 echo "$OPENEXR_PKG_ERRORS" >&5
28310
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "no" >&6; }
28313 have_openexr=no
28314elif test $pkg_failed = untried; then
28315 have_openexr=no
28316else
28317 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28318 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028320$as_echo "yes" >&6; }
28321 have_openexr=yes
28322fi
cristy8b350f62009-11-15 23:12:43 +000028323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028324$as_echo "" >&6; }
28325fi
28326
28327if test "$have_openexr" = 'yes'; then
28328
cristy8b350f62009-11-15 23:12:43 +000028329$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028330
28331 if test "$with_modules" = 'no'; then
28332 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28333 fi
28334fi
28335
28336 if test "$have_openexr" = 'yes'; then
28337 OPENEXR_DELEGATE_TRUE=
28338 OPENEXR_DELEGATE_FALSE='#'
28339else
28340 OPENEXR_DELEGATE_TRUE='#'
28341 OPENEXR_DELEGATE_FALSE=
28342fi
28343
28344
28345
28346
28347
28348#
28349# Check for PNG delegate library.
28350#
28351
28352# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028353if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 withval=$with_png; with_png=$withval
28355else
28356 with_png='yes'
28357fi
28358
28359
28360if test "$with_png" != 'yes'; then
28361 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28362fi
28363
28364have_png='no'
28365PNG_LIBS=''
28366if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028370$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo "" >&6; }
28373 failed=0
28374 passed=0
cristy8b350f62009-11-15 23:12:43 +000028375 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28376if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 passed=`expr $passed + 1`
28378else
28379 failed=`expr $failed + 1`
28380fi
28381
28382
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028385if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 $as_echo_n "(cached) " >&6
28387else
28388 ac_check_lib_save_LIBS=$LIBS
28389LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028391/* end confdefs.h. */
28392
28393/* Override any GCC internal prototype to avoid an error.
28394 Use char because int might match the return type of a GCC
28395 builtin and then its argument prototype would still apply. */
28396#ifdef __cplusplus
28397extern "C"
28398#endif
28399char png_get_io_ptr ();
28400int
28401main ()
28402{
28403return png_get_io_ptr ();
28404 ;
28405 return 0;
28406}
28407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 ac_cv_lib_png_png_get_io_ptr=yes
28410else
cristy8b350f62009-11-15 23:12:43 +000028411 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028412fi
cristy8b350f62009-11-15 23:12:43 +000028413rm -f core conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028415LIBS=$ac_check_lib_save_LIBS
28416fi
cristy8b350f62009-11-15 23:12:43 +000028417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028419if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
cristy8b350f62009-11-15 23:12:43 +000028425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028426$as_echo_n "checking if PNG package is complete... " >&6; }
28427 if test $passed -gt 0; then
28428 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028430$as_echo "no -- some components failed test" >&6; }
28431 have_png='no (failed tests)'
28432 else
28433 PNG_LIBS='-lpng'
28434 LIBS="$PNG_LIBS $LIBS"
28435
cristy8b350f62009-11-15 23:12:43 +000028436$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028437
cristy8b350f62009-11-15 23:12:43 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "yes" >&6; }
28440 have_png='yes'
28441 fi
28442 else
cristy8b350f62009-11-15 23:12:43 +000028443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028444$as_echo "no" >&6; }
28445 fi
28446fi
28447 if test "$have_png" = 'yes'; then
28448 PNG_DELEGATE_TRUE=
28449 PNG_DELEGATE_FALSE='#'
28450else
28451 PNG_DELEGATE_TRUE='#'
28452 PNG_DELEGATE_FALSE=
28453fi
28454
28455
28456
28457
28458#
28459# Check for RSVG delegate library.
28460#
28461
28462# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028463if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028464 withval=$with_rsvg; with_rsvg=$withval
28465else
28466 with_rsvg=$have_x
28467fi
28468
28469
28470if test "$with_rsvg" != 'yes'; then
28471 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28472fi
28473
28474have_rsvg='no'
28475have_cairo='no'
28476RSVG_CFLAGS=""
28477RSVG_LIBS=""
28478RSVG_PKG=""
28479if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028481$as_echo "-------------------------------------------------------------" >&6; }
28482
28483pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028485$as_echo_n "checking for RSVG... " >&6; }
28486
28487if test -n "$RSVG_CFLAGS"; then
28488 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28489 elif test -n "$PKG_CONFIG"; then
28490 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028492 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28493 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028496 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28497else
28498 pkg_failed=yes
28499fi
28500 else
28501 pkg_failed=untried
28502fi
28503if test -n "$RSVG_LIBS"; then
28504 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28505 elif test -n "$PKG_CONFIG"; then
28506 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028508 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28509 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28511 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028512 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28513else
28514 pkg_failed=yes
28515fi
28516 else
28517 pkg_failed=untried
28518fi
28519
28520
28521
28522if test $pkg_failed = yes; then
28523
28524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28525 _pkg_short_errors_supported=yes
28526else
28527 _pkg_short_errors_supported=no
28528fi
28529 if test $_pkg_short_errors_supported = yes; then
28530 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28531 else
28532 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28533 fi
28534 # Put the nasty error message in config.log where it belongs
28535 echo "$RSVG_PKG_ERRORS" >&5
28536
cristy8b350f62009-11-15 23:12:43 +000028537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028538$as_echo "no" >&6; }
28539 have_rsvg=no
28540elif test $pkg_failed = untried; then
28541 have_rsvg=no
28542else
28543 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28544 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo "yes" >&6; }
28547 have_rsvg=yes
28548fi
cristy8b350f62009-11-15 23:12:43 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo "" >&6; }
28551
28552pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028554$as_echo_n "checking for CAIRO_SVG... " >&6; }
28555
28556if test -n "$CAIRO_SVG_CFLAGS"; then
28557 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28558 elif test -n "$PKG_CONFIG"; then
28559 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028561 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28562 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028565 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28566else
28567 pkg_failed=yes
28568fi
28569 else
28570 pkg_failed=untried
28571fi
28572if test -n "$CAIRO_SVG_LIBS"; then
28573 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28574 elif test -n "$PKG_CONFIG"; then
28575 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028577 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28578 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28580 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028581 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28582else
28583 pkg_failed=yes
28584fi
28585 else
28586 pkg_failed=untried
28587fi
28588
28589
28590
28591if test $pkg_failed = yes; then
28592
28593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28594 _pkg_short_errors_supported=yes
28595else
28596 _pkg_short_errors_supported=no
28597fi
28598 if test $_pkg_short_errors_supported = yes; then
28599 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28600 else
28601 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28602 fi
28603 # Put the nasty error message in config.log where it belongs
28604 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28605
cristy8b350f62009-11-15 23:12:43 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028607$as_echo "no" >&6; }
28608 have_cairo=no
28609elif test $pkg_failed = untried; then
28610 have_cairo=no
28611else
28612 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28613 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028615$as_echo "yes" >&6; }
28616 have_cairo=yes
28617fi
cristy8b350f62009-11-15 23:12:43 +000028618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028619$as_echo "" >&6; }
28620fi
28621
28622if test "$have_rsvg" = 'yes'; then
28623
cristy8b350f62009-11-15 23:12:43 +000028624$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028625
28626 if test "$with_modules" = 'no'; then
28627 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28628 fi
28629fi
28630
28631if test "$have_cairo" = 'yes'; then
28632
cristy8b350f62009-11-15 23:12:43 +000028633$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028634
28635 if test "$with_modules" = 'no'; then
28636 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28637 fi
28638fi
28639
28640 if test "$have_rsvg" = 'yes'; then
28641 RSVG_DELEGATE_TRUE=
28642 RSVG_DELEGATE_FALSE='#'
28643else
28644 RSVG_DELEGATE_TRUE='#'
28645 RSVG_DELEGATE_FALSE=
28646fi
28647
28648 if test "$have_cairo" = 'yes'; then
28649 CAIRO_DELEGATE_TRUE=
28650 CAIRO_DELEGATE_FALSE='#'
28651else
28652 CAIRO_DELEGATE_TRUE='#'
28653 CAIRO_DELEGATE_FALSE=
28654fi
28655
28656
28657
28658
28659
28660#
28661# Check for TIFF delegate library.
28662#
28663
28664# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028665if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028666 withval=$with_tiff; with_tiff=$withval
28667else
28668 with_tiff='yes'
28669fi
28670
28671
28672if test "$with_tiff" != 'yes'; then
28673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28674fi
28675
28676have_tiff='no'
28677TIFF_LIBS=''
28678if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028680$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028684$as_echo "" >&6; }
28685 failed=0
28686 passed=0
cristy8b350f62009-11-15 23:12:43 +000028687 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28688if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028689 passed=`expr $passed + 1`
28690else
28691 failed=`expr $failed + 1`
28692fi
28693
28694
cristy8b350f62009-11-15 23:12:43 +000028695 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28696if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028697 passed=`expr $passed + 1`
28698else
28699 failed=`expr $failed + 1`
28700fi
28701
28702
cristy8b350f62009-11-15 23:12:43 +000028703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028704$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028705if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028706 $as_echo_n "(cached) " >&6
28707else
28708 ac_check_lib_save_LIBS=$LIBS
28709LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028711/* end confdefs.h. */
28712
28713/* Override any GCC internal prototype to avoid an error.
28714 Use char because int might match the return type of a GCC
28715 builtin and then its argument prototype would still apply. */
28716#ifdef __cplusplus
28717extern "C"
28718#endif
28719char TIFFOpen ();
28720int
28721main ()
28722{
28723return TIFFOpen ();
28724 ;
28725 return 0;
28726}
28727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028729 ac_cv_lib_tiff_TIFFOpen=yes
28730else
cristy8b350f62009-11-15 23:12:43 +000028731 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028732fi
cristy8b350f62009-11-15 23:12:43 +000028733rm -f core conftest.err conftest.$ac_objext \
28734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028735LIBS=$ac_check_lib_save_LIBS
28736fi
cristy8b350f62009-11-15 23:12:43 +000028737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028738$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028739if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 passed=`expr $passed + 1`
28741else
28742 failed=`expr $failed + 1`
28743fi
28744
cristy8b350f62009-11-15 23:12:43 +000028745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028746$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028747if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028748 $as_echo_n "(cached) " >&6
28749else
28750 ac_check_lib_save_LIBS=$LIBS
28751LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028753/* end confdefs.h. */
28754
28755/* Override any GCC internal prototype to avoid an error.
28756 Use char because int might match the return type of a GCC
28757 builtin and then its argument prototype would still apply. */
28758#ifdef __cplusplus
28759extern "C"
28760#endif
28761char TIFFClientOpen ();
28762int
28763main ()
28764{
28765return TIFFClientOpen ();
28766 ;
28767 return 0;
28768}
28769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028771 ac_cv_lib_tiff_TIFFClientOpen=yes
28772else
cristy8b350f62009-11-15 23:12:43 +000028773 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028774fi
cristy8b350f62009-11-15 23:12:43 +000028775rm -f core conftest.err conftest.$ac_objext \
28776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028777LIBS=$ac_check_lib_save_LIBS
28778fi
cristy8b350f62009-11-15 23:12:43 +000028779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028780$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028781if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028782 passed=`expr $passed + 1`
28783else
28784 failed=`expr $failed + 1`
28785fi
28786
cristyb97f1002010-07-26 14:02:57 +000028787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28788$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28789if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28790 $as_echo_n "(cached) " >&6
28791else
28792 ac_check_lib_save_LIBS=$LIBS
28793LIBS="-ltiff $LIBS"
28794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28795/* end confdefs.h. */
28796
28797/* Override any GCC internal prototype to avoid an error.
28798 Use char because int might match the return type of a GCC
28799 builtin and then its argument prototype would still apply. */
28800#ifdef __cplusplus
28801extern "C"
28802#endif
28803char TIFFIsBigEndian ();
28804int
28805main ()
28806{
28807return TIFFIsBigEndian ();
28808 ;
28809 return 0;
28810}
28811_ACEOF
28812if ac_fn_c_try_link "$LINENO"; then :
28813 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28814else
28815 ac_cv_lib_tiff_TIFFIsBigEndian=no
28816fi
28817rm -f core conftest.err conftest.$ac_objext \
28818 conftest$ac_exeext conftest.$ac_ext
28819LIBS=$ac_check_lib_save_LIBS
28820fi
28821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28822$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28823if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28824 passed=`expr $passed + 1`
28825else
28826 failed=`expr $failed + 1`
28827fi
28828
cristy8b350f62009-11-15 23:12:43 +000028829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028830$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028831if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028832 $as_echo_n "(cached) " >&6
28833else
28834 ac_check_lib_save_LIBS=$LIBS
28835LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028837/* end confdefs.h. */
28838
28839/* Override any GCC internal prototype to avoid an error.
28840 Use char because int might match the return type of a GCC
28841 builtin and then its argument prototype would still apply. */
28842#ifdef __cplusplus
28843extern "C"
28844#endif
28845char TIFFIsByteSwapped ();
28846int
28847main ()
28848{
28849return TIFFIsByteSwapped ();
28850 ;
28851 return 0;
28852}
28853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028855 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28856else
cristy8b350f62009-11-15 23:12:43 +000028857 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028858fi
cristy8b350f62009-11-15 23:12:43 +000028859rm -f core conftest.err conftest.$ac_objext \
28860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028861LIBS=$ac_check_lib_save_LIBS
28862fi
cristy8b350f62009-11-15 23:12:43 +000028863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028864$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028865if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028866 passed=`expr $passed + 1`
28867else
28868 failed=`expr $failed + 1`
28869fi
28870
cristy8b350f62009-11-15 23:12:43 +000028871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028872$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028873if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028874 $as_echo_n "(cached) " >&6
28875else
28876 ac_check_lib_save_LIBS=$LIBS
28877LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028879/* end confdefs.h. */
28880
28881/* Override any GCC internal prototype to avoid an error.
28882 Use char because int might match the return type of a GCC
28883 builtin and then its argument prototype would still apply. */
28884#ifdef __cplusplus
28885extern "C"
28886#endif
28887char TIFFReadRGBATile ();
28888int
28889main ()
28890{
28891return TIFFReadRGBATile ();
28892 ;
28893 return 0;
28894}
28895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028897 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28898else
cristy8b350f62009-11-15 23:12:43 +000028899 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028900fi
cristy8b350f62009-11-15 23:12:43 +000028901rm -f core conftest.err conftest.$ac_objext \
28902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028903LIBS=$ac_check_lib_save_LIBS
28904fi
cristy8b350f62009-11-15 23:12:43 +000028905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028907if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028908 passed=`expr $passed + 1`
28909else
28910 failed=`expr $failed + 1`
28911fi
28912
cristy8b350f62009-11-15 23:12:43 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028914$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028915if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028916 $as_echo_n "(cached) " >&6
28917else
28918 ac_check_lib_save_LIBS=$LIBS
28919LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028921/* end confdefs.h. */
28922
28923/* Override any GCC internal prototype to avoid an error.
28924 Use char because int might match the return type of a GCC
28925 builtin and then its argument prototype would still apply. */
28926#ifdef __cplusplus
28927extern "C"
28928#endif
28929char TIFFReadRGBAStrip ();
28930int
28931main ()
28932{
28933return TIFFReadRGBAStrip ();
28934 ;
28935 return 0;
28936}
28937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28940else
cristy8b350f62009-11-15 23:12:43 +000028941 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028942fi
cristy8b350f62009-11-15 23:12:43 +000028943rm -f core conftest.err conftest.$ac_objext \
28944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028945LIBS=$ac_check_lib_save_LIBS
28946fi
cristy8b350f62009-11-15 23:12:43 +000028947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028949if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 passed=`expr $passed + 1`
28951else
28952 failed=`expr $failed + 1`
28953fi
28954
cristy8b350f62009-11-15 23:12:43 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo_n "checking if TIFF package is complete... " >&6; }
28957 if test $passed -gt 0; then
28958 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "no -- some components failed test" >&6; }
28961 have_tiff='no (failed tests)'
28962 else
28963 TIFF_LIBS='-ltiff'
28964 LIBS="$TIFF_LIBS $LIBS"
28965
cristy8b350f62009-11-15 23:12:43 +000028966$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028967
cristy8b350f62009-11-15 23:12:43 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028969$as_echo "yes" >&6; }
28970 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028971 for ac_header in tiffconf.h
28972do :
28973 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28974if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028976#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028977_ACEOF
28978
28979fi
28980
28981done
28982
cristy8b350f62009-11-15 23:12:43 +000028983 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028984 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28985 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028986do :
28987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028990 cat >>confdefs.h <<_ACEOF
28991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28992_ACEOF
28993
28994fi
28995done
28996
28997 fi
28998 else
cristy8b350f62009-11-15 23:12:43 +000028999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029000$as_echo "no" >&6; }
29001 fi
29002fi
29003 if test "$have_tiff" = 'yes'; then
29004 TIFF_DELEGATE_TRUE=
29005 TIFF_DELEGATE_FALSE='#'
29006else
29007 TIFF_DELEGATE_TRUE='#'
29008 TIFF_DELEGATE_FALSE=
29009fi
29010
29011
29012
29013
29014#
29015# Set Windows font directory.
29016#
29017
29018# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029019if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029020 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29021else
29022 with_windows_font_dir=''
29023fi
29024
29025if test "$with_windows_font_dir" != '' ; then
29026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29027fi
29028
29029
29030#
29031# Check for WMF delegate library.
29032#
29033
29034# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029035if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029036 withval=$with_wmf; with_wmf=$withval
29037else
cristy8d63d1d2010-01-06 20:38:37 +000029038 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029039fi
29040
29041
29042if test "$with_wmf" != 'yes'; then
29043 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29044fi
29045
29046have_wmf='no'
29047WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029048if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029052$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029054$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029055 failed=0
29056 passed=0
29057 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29058if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29059 passed=`expr $passed + 1`
29060else
29061 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029062fi
29063
29064
cristy735e8942010-04-02 20:32:57 +000029065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29066$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29067if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029068 $as_echo_n "(cached) " >&6
29069else
29070 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029071LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029073/* end confdefs.h. */
29074
29075/* Override any GCC internal prototype to avoid an error.
29076 Use char because int might match the return type of a GCC
29077 builtin and then its argument prototype would still apply. */
29078#ifdef __cplusplus
29079extern "C"
29080#endif
cristy735e8942010-04-02 20:32:57 +000029081char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029082int
29083main ()
29084{
cristy735e8942010-04-02 20:32:57 +000029085return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029086 ;
29087 return 0;
29088}
29089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029090if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029091 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029092else
cristy735e8942010-04-02 20:32:57 +000029093 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029094fi
cristy8b350f62009-11-15 23:12:43 +000029095rm -f core conftest.err conftest.$ac_objext \
29096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029097LIBS=$ac_check_lib_save_LIBS
29098fi
cristy735e8942010-04-02 20:32:57 +000029099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29100$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29101if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29102 passed=`expr $passed + 1`
29103else
29104 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029105fi
29106
cristy735e8942010-04-02 20:32:57 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29108$as_echo_n "checking if WMF package is complete... " >&6; }
29109 if test $passed -gt 0; then
29110 if test $failed -gt 0; then
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29112$as_echo "no -- some components failed test" >&6; }
29113 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029114 else
cristy735e8942010-04-02 20:32:57 +000029115 WMF_LIBS='-lwmf -lwmflite'
29116 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029117
cristy8b350f62009-11-15 23:12:43 +000029118$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029119
cristy735e8942010-04-02 20:32:57 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029121$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029122 have_wmf='yes'
29123 fi
cristy3ed852e2009-09-05 21:47:34 +000029124 else
cristy8b350f62009-11-15 23:12:43 +000029125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029126$as_echo "no" >&6; }
29127 fi
29128fi
29129 if test "$have_wmf" = 'yes'; then
29130 WMF_DELEGATE_TRUE=
29131 WMF_DELEGATE_FALSE='#'
29132else
29133 WMF_DELEGATE_TRUE='#'
29134 WMF_DELEGATE_FALSE=
29135fi
29136
29137
29138
29139
29140
cristy735e8942010-04-02 20:32:57 +000029141
cristy3ed852e2009-09-05 21:47:34 +000029142#
29143# Check for XML delegate library.
29144#
29145
29146# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029147if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029148 withval=$with_xml; with_xml=$withval
29149else
29150 with_xml=$have_x
29151fi
29152
29153
29154if test "$with_xml" != 'yes' ; then
29155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29156fi
29157
29158have_xml='no'
29159XML_LIBS=''
29160if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029164$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo "" >&6; }
29167 PERSIST_LDFLAGS=$LDFLAGS
29168 PERSIST_CPPFLAGS=$CPPFLAGS
29169 xml2_config=''
29170 for ac_prog in xml2-config
29171do
29172 # Extract the first word of "$ac_prog", so it can be a program name with args.
29173set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029175$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029176if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029177 $as_echo_n "(cached) " >&6
29178else
29179 if test -n "$xml2_config"; then
29180 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29181else
29182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29183for as_dir in $PATH
29184do
29185 IFS=$as_save_IFS
29186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29189 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029191 break 2
29192 fi
29193done
cristy8b350f62009-11-15 23:12:43 +000029194 done
cristy3ed852e2009-09-05 21:47:34 +000029195IFS=$as_save_IFS
29196
29197fi
29198fi
29199xml2_config=$ac_cv_prog_xml2_config
29200if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo "$xml2_config" >&6; }
29203else
cristy8b350f62009-11-15 23:12:43 +000029204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029205$as_echo "no" >&6; }
29206fi
29207
29208
29209 test -n "$xml2_config" && break
29210done
29211 if test -n "$xml2_config"; then
29212 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29213 # the shared library installed under /usr/lib, whereas the package
29214 # installs itself under $prefix/libxml and $prefix/lib.
29215 xml2_prefix=`xml2-config --prefix`
29216 if test -d "${xml2_prefix}/include/libxml2"; then
29217 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29218 fi
29219 if test "${xml2_prefix}" != '/usr'; then
29220 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29221 fi
29222 fi
29223 failed=0
29224 passed=0
cristy8b350f62009-11-15 23:12:43 +000029225 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29226if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
cristy8b350f62009-11-15 23:12:43 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029235if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 $as_echo_n "(cached) " >&6
29237else
29238 ac_check_lib_save_LIBS=$LIBS
29239LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029241/* end confdefs.h. */
29242
29243/* Override any GCC internal prototype to avoid an error.
29244 Use char because int might match the return type of a GCC
29245 builtin and then its argument prototype would still apply. */
29246#ifdef __cplusplus
29247extern "C"
29248#endif
29249char xmlParseExternalEntity ();
29250int
29251main ()
29252{
29253return xmlParseExternalEntity ();
29254 ;
29255 return 0;
29256}
29257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29260else
cristy8b350f62009-11-15 23:12:43 +000029261 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029262fi
cristy8b350f62009-11-15 23:12:43 +000029263rm -f core conftest.err conftest.$ac_objext \
29264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029265LIBS=$ac_check_lib_save_LIBS
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029269if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
cristy8b350f62009-11-15 23:12:43 +000029275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo_n "checking if XML package is complete... " >&6; }
29277 if test $passed -gt 0; then
29278 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo "no -- some components failed test" >&6; }
29281 have_xml='no (failed tests)'
29282 LDFLAGS="$PERSIST_LDFLAGS"
29283 CPPFLAGS="$PERSIST_CPPFLAGS"
29284 else
29285 XML_LIBS='-lxml2'
29286 LIBS="$XML_LIBS $LIBS"
29287
cristy8b350f62009-11-15 23:12:43 +000029288$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029289
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "yes" >&6; }
29292 have_xml='yes'
29293 fi
29294 else
cristy8b350f62009-11-15 23:12:43 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo "no" >&6; }
29297 fi
29298fi
29299 if test "$have_xml" = 'yes'; then
29300 XML_DELEGATE_TRUE=
29301 XML_DELEGATE_FALSE='#'
29302else
29303 XML_DELEGATE_TRUE='#'
29304 XML_DELEGATE_FALSE=
29305fi
29306
29307
29308
29309
29310# Substitute compiler name to build/link PerlMagick
29311#
29312
29313
29314#
29315# Configure install Paths
29316#
29317
29318# Subdirectory under lib to place ImageMagick lib files
29319LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29320
29321cat >>confdefs.h <<_ACEOF
29322#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29323_ACEOF
29324
29325
29326# Path to ImageMagick bin directory
29327EXECUTABLE_PATH="${BIN_DIR}"
29328DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29329case "${build_os}" in
29330 mingw* )
29331 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29332 ;;
29333esac
29334
29335cat >>confdefs.h <<_ACEOF
29336#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29337_ACEOF
29338
29339
29340
29341# Path to ImageMagick lib
29342LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29343DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29344case "${build_os}" in
29345 mingw* )
29346 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29347 ;;
29348esac
29349
29350cat >>confdefs.h <<_ACEOF
29351#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29352_ACEOF
29353
29354
29355
29356# Subdirectory under lib to place ImageMagick configuration files
29357CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29358
29359cat >>confdefs.h <<_ACEOF
29360#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29361_ACEOF
29362
29363CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29364DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29365case "${build_os}" in
29366 mingw* )
29367 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29368 ;;
29369esac
29370
29371cat >>confdefs.h <<_ACEOF
29372#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29373_ACEOF
29374
29375
29376
29377#
29378# Subdirectory under lib to place ImageMagick coder module files
29379CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29380
29381cat >>confdefs.h <<_ACEOF
29382#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29383_ACEOF
29384
29385CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29386DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29387case "${build_os}" in
29388 mingw* )
29389 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29390 ;;
29391esac
29392
29393cat >>confdefs.h <<_ACEOF
29394#define CODER_PATH "$DEFINE_CODER_PATH"
29395_ACEOF
29396
29397
29398
29399#
29400# Subdirectory under lib to place ImageMagick filter module files
29401FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29402
29403cat >>confdefs.h <<_ACEOF
29404#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29405_ACEOF
29406
29407FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29408DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29409case "${build_os}" in
29410 mingw* )
29411 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29412 ;;
29413esac
29414
29415cat >>confdefs.h <<_ACEOF
29416#define FILTER_PATH "$DEFINE_FILTER_PATH"
29417_ACEOF
29418
29419
29420
29421#
29422# Path to ImageMagick documentation files
29423DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29424DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29425DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29426case "${build_os}" in
29427 mingw* )
29428 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29429 ;;
29430esac
29431
29432cat >>confdefs.h <<_ACEOF
29433#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29434_ACEOF
29435
29436
29437
29438#
29439# Path to ImageMagick share files
29440SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29441SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29442DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29443case "${build_os}" in
29444 mingw* )
29445 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29446 ;;
29447esac
29448
29449cat >>confdefs.h <<_ACEOF
29450#define SHARE_PATH "$DEFINE_SHARE_PATH"
29451_ACEOF
29452
29453
29454
29455# Subdirectory under share to place ImageMagick configuration files
29456SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29457
29458cat >>confdefs.h <<_ACEOF
29459#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29460_ACEOF
29461
29462SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29463DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29464case "${build_os}" in
29465 mingw* )
29466 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29467 ;;
29468esac
29469
29470cat >>confdefs.h <<_ACEOF
29471#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29472_ACEOF
29473
29474
29475
29476#
29477# program_transform_name is formed for use in a Makefile, so create a
29478# modified version for use in a shell script.
29479configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29480
29481# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029483$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029485$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029487$as_echo "" >&6; }
29488AutotraceDecodeDelegateDefault='autotrace'
29489AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029490BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029491BZIPDelegateDefault='bzip2'
29492BrowseDelegateDefault='xdg-open'
29493CGMDecodeDelegateDefault='ralcgm'
29494CatDelegateDefault='cat'
29495DNGDecodeDelegateDefault='ufraw-batch'
29496GVCDecodeDelegateDefault='dot'
29497DVIDecodeDelegateDefault='dvips'
29498EchoDelegateDefault='echo'
29499EditorDelegateDefault='xterm'
29500FIGDecodeDelegateDefault='fig2dev'
29501ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29502DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29503MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29504GnuplotDecodeDelegateDefault='gnuplot'
29505HDRDecodeDelegateDefault='ra_pfm'
29506HPGLDecodeDelegateDefault='hp2xx'
29507HTMLDecodeDelegateDefault='html2ps'
29508ILBMDecodeDelegateDefault='ilbmtoppm'
29509ILBMEncodeDelegateDefault='ppmtoilbm'
29510LPDelegateDefault='lp'
29511LPRDelegateDefault='lpr'
29512LZWDecodeDelegateDefault='uncompress'
29513LZWEncodeDelegateDefault='compress'
29514LaunchDelegateDefault='gimp'
29515MANDelegateDefault='groff'
29516MPEGDecodeDelegateDefault='ffmpeg'
29517MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029518MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029519MVDelegateDefault='mv'
29520PCLDelegateDefault='pcl6'
29521PGPDecodeDelegateDefault='pgpv'
29522POVDelegateDefault='povray'
29523if test "$native_win32_build" = 'yes'; then
29524 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029525elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029526 PSDelegateDefault='gsc'
29527else
29528 PSDelegateDefault='gs'
29529fi
29530RLEEncodeDelegateDefault='rawtorle'
29531RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029532RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029533SCANDecodeDelegateDefault='scanimage'
29534TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029535UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029536WMFDecodeDelegateDefault='wmf2eps'
29537WWWDecodeDelegateDefault='curl'
29538XPSDelegateDefault='gxps'
29539ZipDelegateDefault='gzip'
29540
29541# Search for delegates
29542# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29543set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029545$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029546if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029547 $as_echo_n "(cached) " >&6
29548else
29549 case $AutotraceDecodeDelegate in
29550 [\\/]* | ?:[\\/]*)
29551 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29552 ;;
29553 *)
29554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29555for as_dir in $PATH
29556do
29557 IFS=$as_save_IFS
29558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29561 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029563 break 2
29564 fi
29565done
cristy8b350f62009-11-15 23:12:43 +000029566 done
cristy3ed852e2009-09-05 21:47:34 +000029567IFS=$as_save_IFS
29568
29569 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29570 ;;
29571esac
29572fi
29573AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29574if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo "$AutotraceDecodeDelegate" >&6; }
29577else
cristy8b350f62009-11-15 23:12:43 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029579$as_echo "no" >&6; }
29580fi
29581
29582
29583# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29584set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029587if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 $as_echo_n "(cached) " >&6
29589else
29590 case $AVIDecodeDelegate in
29591 [\\/]* | ?:[\\/]*)
29592 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29593 ;;
29594 *)
29595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29596for as_dir in $PATH
29597do
29598 IFS=$as_save_IFS
29599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29602 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029604 break 2
29605 fi
29606done
cristy8b350f62009-11-15 23:12:43 +000029607 done
cristy3ed852e2009-09-05 21:47:34 +000029608IFS=$as_save_IFS
29609
29610 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29611 ;;
29612esac
29613fi
29614AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29615if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo "$AVIDecodeDelegate" >&6; }
29618else
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo "no" >&6; }
29621fi
29622
29623
29624# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29625set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029628if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029629 $as_echo_n "(cached) " >&6
29630else
29631 case $BlenderDecodeDelegate in
29632 [\\/]* | ?:[\\/]*)
29633 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29634 ;;
29635 *)
29636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637for as_dir in $PATH
29638do
29639 IFS=$as_save_IFS
29640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29643 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029645 break 2
29646 fi
29647done
cristy8b350f62009-11-15 23:12:43 +000029648 done
cristy3ed852e2009-09-05 21:47:34 +000029649IFS=$as_save_IFS
29650
29651 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29652 ;;
29653esac
29654fi
29655BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29656if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo "$BlenderDecodeDelegate" >&6; }
29659else
cristy8b350f62009-11-15 23:12:43 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo "no" >&6; }
29662fi
29663
29664
29665# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29666set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029669if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029670 $as_echo_n "(cached) " >&6
29671else
29672 case $BZIPDelegate in
29673 [\\/]* | ?:[\\/]*)
29674 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29675 ;;
29676 *)
29677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29678for as_dir in $PATH
29679do
29680 IFS=$as_save_IFS
29681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29684 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029686 break 2
29687 fi
29688done
cristy8b350f62009-11-15 23:12:43 +000029689 done
cristy3ed852e2009-09-05 21:47:34 +000029690IFS=$as_save_IFS
29691
29692 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29693 ;;
29694esac
29695fi
29696BZIPDelegate=$ac_cv_path_BZIPDelegate
29697if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo "$BZIPDelegate" >&6; }
29700else
cristy8b350f62009-11-15 23:12:43 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo "no" >&6; }
29703fi
29704
29705
29706# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29707set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029710if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029711 $as_echo_n "(cached) " >&6
29712else
29713 case $BrowseDelegate in
29714 [\\/]* | ?:[\\/]*)
29715 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29716 ;;
29717 *)
29718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29719for as_dir in $PATH
29720do
29721 IFS=$as_save_IFS
29722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29725 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727 break 2
29728 fi
29729done
cristy8b350f62009-11-15 23:12:43 +000029730 done
cristy3ed852e2009-09-05 21:47:34 +000029731IFS=$as_save_IFS
29732
29733 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29734 ;;
29735esac
29736fi
29737BrowseDelegate=$ac_cv_path_BrowseDelegate
29738if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo "$BrowseDelegate" >&6; }
29741else
cristy8b350f62009-11-15 23:12:43 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029743$as_echo "no" >&6; }
29744fi
29745
29746
29747# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29748set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029751if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029752 $as_echo_n "(cached) " >&6
29753else
29754 case $CGMDecodeDelegate in
29755 [\\/]* | ?:[\\/]*)
29756 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29757 ;;
29758 *)
29759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29760for as_dir in $PATH
29761do
29762 IFS=$as_save_IFS
29763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29766 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029768 break 2
29769 fi
29770done
cristy8b350f62009-11-15 23:12:43 +000029771 done
cristy3ed852e2009-09-05 21:47:34 +000029772IFS=$as_save_IFS
29773
29774 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29775 ;;
29776esac
29777fi
29778CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29779if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo "$CGMDecodeDelegate" >&6; }
29782else
cristy8b350f62009-11-15 23:12:43 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo "no" >&6; }
29785fi
29786
29787
29788# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29789set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029792if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 $as_echo_n "(cached) " >&6
29794else
29795 case $CatDelegate in
29796 [\\/]* | ?:[\\/]*)
29797 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29798 ;;
29799 *)
29800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29801for as_dir in $PATH
29802do
29803 IFS=$as_save_IFS
29804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29807 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029809 break 2
29810 fi
29811done
cristy8b350f62009-11-15 23:12:43 +000029812 done
cristy3ed852e2009-09-05 21:47:34 +000029813IFS=$as_save_IFS
29814
29815 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29816 ;;
29817esac
29818fi
29819CatDelegate=$ac_cv_path_CatDelegate
29820if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo "$CatDelegate" >&6; }
29823else
cristy8b350f62009-11-15 23:12:43 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo "no" >&6; }
29826fi
29827
29828
29829# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29830set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029833if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029834 $as_echo_n "(cached) " >&6
29835else
29836 case $DNGDecodeDelegate in
29837 [\\/]* | ?:[\\/]*)
29838 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29839 ;;
29840 *)
29841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29842for as_dir in $PATH
29843do
29844 IFS=$as_save_IFS
29845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29848 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850 break 2
29851 fi
29852done
cristy8b350f62009-11-15 23:12:43 +000029853 done
cristy3ed852e2009-09-05 21:47:34 +000029854IFS=$as_save_IFS
29855
29856 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29857 ;;
29858esac
29859fi
29860DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29861if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863$as_echo "$DNGDecodeDelegate" >&6; }
29864else
cristy8b350f62009-11-15 23:12:43 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo "no" >&6; }
29867fi
29868
29869
29870# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29871set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029874if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029875 $as_echo_n "(cached) " >&6
29876else
29877 case $GVCDecodeDelegate in
29878 [\\/]* | ?:[\\/]*)
29879 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29880 ;;
29881 *)
29882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29883for as_dir in $PATH
29884do
29885 IFS=$as_save_IFS
29886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29889 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029891 break 2
29892 fi
29893done
cristy8b350f62009-11-15 23:12:43 +000029894 done
cristy3ed852e2009-09-05 21:47:34 +000029895IFS=$as_save_IFS
29896
29897 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29898 ;;
29899esac
29900fi
29901GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29902if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo "$GVCDecodeDelegate" >&6; }
29905else
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo "no" >&6; }
29908fi
29909
29910
29911# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29912set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029915if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 $as_echo_n "(cached) " >&6
29917else
29918 case $DVIDecodeDelegate in
29919 [\\/]* | ?:[\\/]*)
29920 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29921 ;;
29922 *)
29923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924for as_dir in $PATH
29925do
29926 IFS=$as_save_IFS
29927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29930 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932 break 2
29933 fi
29934done
cristy8b350f62009-11-15 23:12:43 +000029935 done
cristy3ed852e2009-09-05 21:47:34 +000029936IFS=$as_save_IFS
29937
29938 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29939 ;;
29940esac
29941fi
29942DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29943if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo "$DVIDecodeDelegate" >&6; }
29946else
cristy8b350f62009-11-15 23:12:43 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo "no" >&6; }
29949fi
29950
29951
29952# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29953set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029956if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 $as_echo_n "(cached) " >&6
29958else
29959 case $EchoDelegate in
29960 [\\/]* | ?:[\\/]*)
29961 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29962 ;;
29963 *)
29964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29965for as_dir in $PATH
29966do
29967 IFS=$as_save_IFS
29968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29971 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029973 break 2
29974 fi
29975done
cristy8b350f62009-11-15 23:12:43 +000029976 done
cristy3ed852e2009-09-05 21:47:34 +000029977IFS=$as_save_IFS
29978
29979 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29980 ;;
29981esac
29982fi
29983EchoDelegate=$ac_cv_path_EchoDelegate
29984if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986$as_echo "$EchoDelegate" >&6; }
29987else
cristy8b350f62009-11-15 23:12:43 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029989$as_echo "no" >&6; }
29990fi
29991
29992
29993# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29994set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029997if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029998 $as_echo_n "(cached) " >&6
29999else
30000 case $EditorDelegate in
30001 [\\/]* | ?:[\\/]*)
30002 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30003 ;;
30004 *)
30005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006for as_dir in $PATH
30007do
30008 IFS=$as_save_IFS
30009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30012 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014 break 2
30015 fi
30016done
cristy8b350f62009-11-15 23:12:43 +000030017 done
cristy3ed852e2009-09-05 21:47:34 +000030018IFS=$as_save_IFS
30019
30020 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30021 ;;
30022esac
30023fi
30024EditorDelegate=$ac_cv_path_EditorDelegate
30025if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo "$EditorDelegate" >&6; }
30028else
cristy8b350f62009-11-15 23:12:43 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030030$as_echo "no" >&6; }
30031fi
30032
30033
30034# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30035set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030038if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030039 $as_echo_n "(cached) " >&6
30040else
30041 case $FIGDecodeDelegate in
30042 [\\/]* | ?:[\\/]*)
30043 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30044 ;;
30045 *)
30046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30047for as_dir in $PATH
30048do
30049 IFS=$as_save_IFS
30050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30053 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030055 break 2
30056 fi
30057done
cristy8b350f62009-11-15 23:12:43 +000030058 done
cristy3ed852e2009-09-05 21:47:34 +000030059IFS=$as_save_IFS
30060
30061 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30062 ;;
30063esac
30064fi
30065FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30066if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo "$FIGDecodeDelegate" >&6; }
30069else
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo "no" >&6; }
30072fi
30073
30074
30075# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30076set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030079if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030080 $as_echo_n "(cached) " >&6
30081else
30082 case $ConvertDelegate in
30083 [\\/]* | ?:[\\/]*)
30084 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30085 ;;
30086 *)
30087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30088for as_dir in $PATH
30089do
30090 IFS=$as_save_IFS
30091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30094 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096 break 2
30097 fi
30098done
cristy8b350f62009-11-15 23:12:43 +000030099 done
cristy3ed852e2009-09-05 21:47:34 +000030100IFS=$as_save_IFS
30101
30102 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30103 ;;
30104esac
30105fi
30106ConvertDelegate=$ac_cv_path_ConvertDelegate
30107if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo "$ConvertDelegate" >&6; }
30110else
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "no" >&6; }
30113fi
30114
30115
30116# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30117set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030120if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030121 $as_echo_n "(cached) " >&6
30122else
30123 case $DisplayDelegate in
30124 [\\/]* | ?:[\\/]*)
30125 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30126 ;;
30127 *)
30128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129for as_dir in $PATH
30130do
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30135 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137 break 2
30138 fi
30139done
cristy8b350f62009-11-15 23:12:43 +000030140 done
cristy3ed852e2009-09-05 21:47:34 +000030141IFS=$as_save_IFS
30142
30143 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30144 ;;
30145esac
30146fi
30147DisplayDelegate=$ac_cv_path_DisplayDelegate
30148if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo "$DisplayDelegate" >&6; }
30151else
cristy8b350f62009-11-15 23:12:43 +000030152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo "no" >&6; }
30154fi
30155
30156
30157# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30158set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030161if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030162 $as_echo_n "(cached) " >&6
30163else
30164 case $MogrifyDelegate in
30165 [\\/]* | ?:[\\/]*)
30166 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30167 ;;
30168 *)
30169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170for as_dir in $PATH
30171do
30172 IFS=$as_save_IFS
30173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030178 break 2
30179 fi
30180done
cristy8b350f62009-11-15 23:12:43 +000030181 done
cristy3ed852e2009-09-05 21:47:34 +000030182IFS=$as_save_IFS
30183
30184 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30185 ;;
30186esac
30187fi
30188MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30189if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo "$MogrifyDelegate" >&6; }
30192else
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "no" >&6; }
30195fi
30196
30197
30198# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30199set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030202if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030203 $as_echo_n "(cached) " >&6
30204else
30205 case $GnuplotDecodeDelegate in
30206 [\\/]* | ?:[\\/]*)
30207 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30208 ;;
30209 *)
30210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211for as_dir in $PATH
30212do
30213 IFS=$as_save_IFS
30214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30217 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030219 break 2
30220 fi
30221done
cristy8b350f62009-11-15 23:12:43 +000030222 done
cristy3ed852e2009-09-05 21:47:34 +000030223IFS=$as_save_IFS
30224
30225 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30226 ;;
30227esac
30228fi
30229GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30230if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "$GnuplotDecodeDelegate" >&6; }
30233else
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo "no" >&6; }
30236fi
30237
30238
30239# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30240set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030243if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030244 $as_echo_n "(cached) " >&6
30245else
30246 case $HDRDecodeDelegate in
30247 [\\/]* | ?:[\\/]*)
30248 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30249 ;;
30250 *)
30251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30252for as_dir in $PATH
30253do
30254 IFS=$as_save_IFS
30255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30258 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260 break 2
30261 fi
30262done
cristy8b350f62009-11-15 23:12:43 +000030263 done
cristy3ed852e2009-09-05 21:47:34 +000030264IFS=$as_save_IFS
30265
30266 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30267 ;;
30268esac
30269fi
30270HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30271if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo "$HDRDecodeDelegate" >&6; }
30274else
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo "no" >&6; }
30277fi
30278
30279
30280# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30281set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030284if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 $as_echo_n "(cached) " >&6
30286else
30287 case $HPGLDecodeDelegate in
30288 [\\/]* | ?:[\\/]*)
30289 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30290 ;;
30291 *)
30292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30293for as_dir in $PATH
30294do
30295 IFS=$as_save_IFS
30296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30299 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301 break 2
30302 fi
30303done
cristy8b350f62009-11-15 23:12:43 +000030304 done
cristy3ed852e2009-09-05 21:47:34 +000030305IFS=$as_save_IFS
30306
30307 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30308 ;;
30309esac
30310fi
30311HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30312if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo "$HPGLDecodeDelegate" >&6; }
30315else
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "no" >&6; }
30318fi
30319
30320
30321# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30322set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030325if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030326 $as_echo_n "(cached) " >&6
30327else
30328 case $HTMLDecodeDelegate in
30329 [\\/]* | ?:[\\/]*)
30330 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30331 ;;
30332 *)
30333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30334for as_dir in $PATH
30335do
30336 IFS=$as_save_IFS
30337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30340 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342 break 2
30343 fi
30344done
cristy8b350f62009-11-15 23:12:43 +000030345 done
cristy3ed852e2009-09-05 21:47:34 +000030346IFS=$as_save_IFS
30347
30348 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30349 ;;
30350esac
30351fi
30352HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30353if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo "$HTMLDecodeDelegate" >&6; }
30356else
cristy8b350f62009-11-15 23:12:43 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo "no" >&6; }
30359fi
30360
30361
30362# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30363set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030366if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030367 $as_echo_n "(cached) " >&6
30368else
30369 case $ILBMDecodeDelegate in
30370 [\\/]* | ?:[\\/]*)
30371 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30372 ;;
30373 *)
30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375for as_dir in $PATH
30376do
30377 IFS=$as_save_IFS
30378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030383 break 2
30384 fi
30385done
cristy8b350f62009-11-15 23:12:43 +000030386 done
cristy3ed852e2009-09-05 21:47:34 +000030387IFS=$as_save_IFS
30388
30389 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30390 ;;
30391esac
30392fi
30393ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30394if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo "$ILBMDecodeDelegate" >&6; }
30397else
cristy8b350f62009-11-15 23:12:43 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030399$as_echo "no" >&6; }
30400fi
30401
30402
30403# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30404set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030407if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030408 $as_echo_n "(cached) " >&6
30409else
30410 case $ILBMEncodeDelegate in
30411 [\\/]* | ?:[\\/]*)
30412 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30413 ;;
30414 *)
30415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30416for as_dir in $PATH
30417do
30418 IFS=$as_save_IFS
30419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30422 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424 break 2
30425 fi
30426done
cristy8b350f62009-11-15 23:12:43 +000030427 done
cristy3ed852e2009-09-05 21:47:34 +000030428IFS=$as_save_IFS
30429
30430 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30431 ;;
30432esac
30433fi
30434ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30435if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo "$ILBMEncodeDelegate" >&6; }
30438else
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "no" >&6; }
30441fi
30442
30443
30444# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30445set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030448if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030449 $as_echo_n "(cached) " >&6
30450else
30451 case $LPDelegate in
30452 [\\/]* | ?:[\\/]*)
30453 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30454 ;;
30455 *)
30456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457for as_dir in $PATH
30458do
30459 IFS=$as_save_IFS
30460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30463 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030465 break 2
30466 fi
30467done
cristy8b350f62009-11-15 23:12:43 +000030468 done
cristy3ed852e2009-09-05 21:47:34 +000030469IFS=$as_save_IFS
30470
30471 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30472 ;;
30473esac
30474fi
30475LPDelegate=$ac_cv_path_LPDelegate
30476if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo "$LPDelegate" >&6; }
30479else
cristy8b350f62009-11-15 23:12:43 +000030480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030481$as_echo "no" >&6; }
30482fi
30483
30484
30485# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30486set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030489if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030490 $as_echo_n "(cached) " >&6
30491else
30492 case $LPRDelegate in
30493 [\\/]* | ?:[\\/]*)
30494 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30495 ;;
30496 *)
30497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498for as_dir in $PATH
30499do
30500 IFS=$as_save_IFS
30501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506 break 2
30507 fi
30508done
cristy8b350f62009-11-15 23:12:43 +000030509 done
cristy3ed852e2009-09-05 21:47:34 +000030510IFS=$as_save_IFS
30511
30512 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30513 ;;
30514esac
30515fi
30516LPRDelegate=$ac_cv_path_LPRDelegate
30517if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo "$LPRDelegate" >&6; }
30520else
cristy8b350f62009-11-15 23:12:43 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo "no" >&6; }
30523fi
30524
30525
30526# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30527set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030530if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030531 $as_echo_n "(cached) " >&6
30532else
30533 case $LZWDecodeDelegate in
30534 [\\/]* | ?:[\\/]*)
30535 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30536 ;;
30537 *)
30538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539for as_dir in $PATH
30540do
30541 IFS=$as_save_IFS
30542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030547 break 2
30548 fi
30549done
cristy8b350f62009-11-15 23:12:43 +000030550 done
cristy3ed852e2009-09-05 21:47:34 +000030551IFS=$as_save_IFS
30552
30553 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30554 ;;
30555esac
30556fi
30557LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30558if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo "$LZWDecodeDelegate" >&6; }
30561else
cristy8b350f62009-11-15 23:12:43 +000030562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030563$as_echo "no" >&6; }
30564fi
30565
30566
30567# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30568set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030571if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030572 $as_echo_n "(cached) " >&6
30573else
30574 case $LZWEncodeDelegate in
30575 [\\/]* | ?:[\\/]*)
30576 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30577 ;;
30578 *)
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580for as_dir in $PATH
30581do
30582 IFS=$as_save_IFS
30583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588 break 2
30589 fi
30590done
cristy8b350f62009-11-15 23:12:43 +000030591 done
cristy3ed852e2009-09-05 21:47:34 +000030592IFS=$as_save_IFS
30593
30594 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30595 ;;
30596esac
30597fi
30598LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30599if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo "$LZWEncodeDelegate" >&6; }
30602else
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo "no" >&6; }
30605fi
30606
30607
30608# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30609set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030612if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030613 $as_echo_n "(cached) " >&6
30614else
30615 case $LaunchDelegate in
30616 [\\/]* | ?:[\\/]*)
30617 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30618 ;;
30619 *)
30620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621for as_dir in $PATH
30622do
30623 IFS=$as_save_IFS
30624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629 break 2
30630 fi
30631done
cristy8b350f62009-11-15 23:12:43 +000030632 done
cristy3ed852e2009-09-05 21:47:34 +000030633IFS=$as_save_IFS
30634
30635 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30636 ;;
30637esac
30638fi
30639LaunchDelegate=$ac_cv_path_LaunchDelegate
30640if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo "$LaunchDelegate" >&6; }
30643else
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "no" >&6; }
30646fi
30647
30648
30649# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30650set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030652$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030653if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030654 $as_echo_n "(cached) " >&6
30655else
30656 case $MANDelegate in
30657 [\\/]* | ?:[\\/]*)
30658 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30659 ;;
30660 *)
30661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662for as_dir in $PATH
30663do
30664 IFS=$as_save_IFS
30665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670 break 2
30671 fi
30672done
cristy8b350f62009-11-15 23:12:43 +000030673 done
cristy3ed852e2009-09-05 21:47:34 +000030674IFS=$as_save_IFS
30675
30676 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30677 ;;
30678esac
30679fi
30680MANDelegate=$ac_cv_path_MANDelegate
30681if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo "$MANDelegate" >&6; }
30684else
cristy8b350f62009-11-15 23:12:43 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo "no" >&6; }
30687fi
30688
30689
30690# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30691set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030694if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030695 $as_echo_n "(cached) " >&6
30696else
30697 case $MPEGDecodeDelegate in
30698 [\\/]* | ?:[\\/]*)
30699 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30700 ;;
30701 *)
30702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703for as_dir in $PATH
30704do
30705 IFS=$as_save_IFS
30706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711 break 2
30712 fi
30713done
cristy8b350f62009-11-15 23:12:43 +000030714 done
cristy3ed852e2009-09-05 21:47:34 +000030715IFS=$as_save_IFS
30716
30717 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30718 ;;
30719esac
30720fi
30721MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30722if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724$as_echo "$MPEGDecodeDelegate" >&6; }
30725else
cristy8b350f62009-11-15 23:12:43 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo "no" >&6; }
30728fi
30729
30730
30731# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30732set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030735if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030736 $as_echo_n "(cached) " >&6
30737else
30738 case $MPEGEncodeDelegate in
30739 [\\/]* | ?:[\\/]*)
30740 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30741 ;;
30742 *)
30743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744for as_dir in $PATH
30745do
30746 IFS=$as_save_IFS
30747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752 break 2
30753 fi
30754done
cristy8b350f62009-11-15 23:12:43 +000030755 done
cristy3ed852e2009-09-05 21:47:34 +000030756IFS=$as_save_IFS
30757
30758 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30759 ;;
30760esac
30761fi
30762MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30763if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765$as_echo "$MPEGEncodeDelegate" >&6; }
30766else
cristy8b350f62009-11-15 23:12:43 +000030767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030768$as_echo "no" >&6; }
30769fi
30770
30771
cristy935c86e2010-06-05 23:50:07 +000030772# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30773set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775$as_echo_n "checking for $ac_word... " >&6; }
30776if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30777 $as_echo_n "(cached) " >&6
30778else
30779 case $MrSIDDecodeDelegate in
30780 [\\/]* | ?:[\\/]*)
30781 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30782 ;;
30783 *)
30784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785for as_dir in $PATH
30786do
30787 IFS=$as_save_IFS
30788 test -z "$as_dir" && as_dir=.
30789 for ac_exec_ext in '' $ac_executable_extensions; do
30790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30793 break 2
30794 fi
30795done
30796 done
30797IFS=$as_save_IFS
30798
30799 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30800 ;;
30801esac
30802fi
30803MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30804if test -n "$MrSIDDecodeDelegate"; then
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30806$as_echo "$MrSIDDecodeDelegate" >&6; }
30807else
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809$as_echo "no" >&6; }
30810fi
30811
30812
cristy3ed852e2009-09-05 21:47:34 +000030813# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30814set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030817if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030818 $as_echo_n "(cached) " >&6
30819else
30820 case $MVDelegate in
30821 [\\/]* | ?:[\\/]*)
30822 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30823 ;;
30824 *)
30825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826for as_dir in $PATH
30827do
30828 IFS=$as_save_IFS
30829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834 break 2
30835 fi
30836done
cristy8b350f62009-11-15 23:12:43 +000030837 done
cristy3ed852e2009-09-05 21:47:34 +000030838IFS=$as_save_IFS
30839
30840 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30841 ;;
30842esac
30843fi
30844MVDelegate=$ac_cv_path_MVDelegate
30845if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030847$as_echo "$MVDelegate" >&6; }
30848else
cristy8b350f62009-11-15 23:12:43 +000030849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030850$as_echo "no" >&6; }
30851fi
30852
30853
30854# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30855set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030858if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030859 $as_echo_n "(cached) " >&6
30860else
30861 case $PCLDelegate in
30862 [\\/]* | ?:[\\/]*)
30863 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30864 ;;
30865 *)
30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867for as_dir in $PATH
30868do
30869 IFS=$as_save_IFS
30870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875 break 2
30876 fi
30877done
cristy8b350f62009-11-15 23:12:43 +000030878 done
cristy3ed852e2009-09-05 21:47:34 +000030879IFS=$as_save_IFS
30880
30881 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30882 ;;
30883esac
30884fi
30885PCLDelegate=$ac_cv_path_PCLDelegate
30886if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030888$as_echo "$PCLDelegate" >&6; }
30889else
cristy8b350f62009-11-15 23:12:43 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030891$as_echo "no" >&6; }
30892fi
30893
30894
30895# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30896set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030899if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030900 $as_echo_n "(cached) " >&6
30901else
30902 case $PGPDecodeDelegate in
30903 [\\/]* | ?:[\\/]*)
30904 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30905 ;;
30906 *)
30907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908for as_dir in $PATH
30909do
30910 IFS=$as_save_IFS
30911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030916 break 2
30917 fi
30918done
cristy8b350f62009-11-15 23:12:43 +000030919 done
cristy3ed852e2009-09-05 21:47:34 +000030920IFS=$as_save_IFS
30921
30922 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30923 ;;
30924esac
30925fi
30926PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30927if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929$as_echo "$PGPDecodeDelegate" >&6; }
30930else
cristy8b350f62009-11-15 23:12:43 +000030931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo "no" >&6; }
30933fi
30934
30935
30936# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30937set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030940if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030941 $as_echo_n "(cached) " >&6
30942else
30943 case $POVDelegate in
30944 [\\/]* | ?:[\\/]*)
30945 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30946 ;;
30947 *)
30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949for as_dir in $PATH
30950do
30951 IFS=$as_save_IFS
30952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030957 break 2
30958 fi
30959done
cristy8b350f62009-11-15 23:12:43 +000030960 done
cristy3ed852e2009-09-05 21:47:34 +000030961IFS=$as_save_IFS
30962
30963 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30964 ;;
30965esac
30966fi
30967POVDelegate=$ac_cv_path_POVDelegate
30968if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030970$as_echo "$POVDelegate" >&6; }
30971else
cristy8b350f62009-11-15 23:12:43 +000030972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo "no" >&6; }
30974fi
30975
30976
30977for ac_prog in gsx gsc "$PSDelegateDefault"
30978do
30979 # Extract the first word of "$ac_prog", so it can be a program name with args.
30980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030982$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030983if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030984 $as_echo_n "(cached) " >&6
30985else
30986 case $PSDelegate in
30987 [\\/]* | ?:[\\/]*)
30988 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30989 ;;
30990 *)
30991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992for as_dir in $PATH
30993do
30994 IFS=$as_save_IFS
30995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031000 break 2
31001 fi
31002done
cristy8b350f62009-11-15 23:12:43 +000031003 done
cristy3ed852e2009-09-05 21:47:34 +000031004IFS=$as_save_IFS
31005
31006 ;;
31007esac
31008fi
31009PSDelegate=$ac_cv_path_PSDelegate
31010if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo "$PSDelegate" >&6; }
31013else
cristy8b350f62009-11-15 23:12:43 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031015$as_echo "no" >&6; }
31016fi
31017
31018
31019 test -n "$PSDelegate" && break
31020done
31021test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31022
31023# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31024set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031027if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031028 $as_echo_n "(cached) " >&6
31029else
31030 case $RLEEncodeDelegate in
31031 [\\/]* | ?:[\\/]*)
31032 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31033 ;;
31034 *)
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036for as_dir in $PATH
31037do
31038 IFS=$as_save_IFS
31039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031044 break 2
31045 fi
31046done
cristy8b350f62009-11-15 23:12:43 +000031047 done
cristy3ed852e2009-09-05 21:47:34 +000031048IFS=$as_save_IFS
31049
31050 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31051 ;;
31052esac
31053fi
31054RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31055if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031057$as_echo "$RLEEncodeDelegate" >&6; }
31058else
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo "no" >&6; }
31061fi
31062
31063
31064# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31065set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031068if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 $as_echo_n "(cached) " >&6
31070else
31071 case $RMDelegate in
31072 [\\/]* | ?:[\\/]*)
31073 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31074 ;;
31075 *)
31076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077for as_dir in $PATH
31078do
31079 IFS=$as_save_IFS
31080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085 break 2
31086 fi
31087done
cristy8b350f62009-11-15 23:12:43 +000031088 done
cristy3ed852e2009-09-05 21:47:34 +000031089IFS=$as_save_IFS
31090
31091 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31092 ;;
31093esac
31094fi
31095RMDelegate=$ac_cv_path_RMDelegate
31096if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo "$RMDelegate" >&6; }
31099else
cristy8b350f62009-11-15 23:12:43 +000031100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031101$as_echo "no" >&6; }
31102fi
31103
31104
cristy4689cf02010-02-17 21:15:45 +000031105# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31106set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31108$as_echo_n "checking for $ac_word... " >&6; }
31109if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31110 $as_echo_n "(cached) " >&6
31111else
31112 case $RSVGDecodeDelegate in
31113 [\\/]* | ?:[\\/]*)
31114 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31115 ;;
31116 *)
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118for as_dir in $PATH
31119do
31120 IFS=$as_save_IFS
31121 test -z "$as_dir" && as_dir=.
31122 for ac_exec_ext in '' $ac_executable_extensions; do
31123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31124 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31126 break 2
31127 fi
31128done
31129 done
31130IFS=$as_save_IFS
31131
31132 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31133 ;;
31134esac
31135fi
31136RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31137if test -n "$RSVGDecodeDelegate"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31139$as_echo "$RSVGDecodeDelegate" >&6; }
31140else
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142$as_echo "no" >&6; }
31143fi
31144
31145
cristy3ed852e2009-09-05 21:47:34 +000031146# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31147set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031149$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031150if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031151 $as_echo_n "(cached) " >&6
31152else
31153 case $SCANDecodeDelegate in
31154 [\\/]* | ?:[\\/]*)
31155 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31156 ;;
31157 *)
31158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31159for as_dir in $PATH
31160do
31161 IFS=$as_save_IFS
31162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31165 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031167 break 2
31168 fi
31169done
cristy8b350f62009-11-15 23:12:43 +000031170 done
cristy3ed852e2009-09-05 21:47:34 +000031171IFS=$as_save_IFS
31172
31173 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31174 ;;
31175esac
31176fi
31177SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31178if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$SCANDecodeDelegate" >&6; }
31181else
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "no" >&6; }
31184fi
31185
31186
31187# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31188set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031191if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031192 $as_echo_n "(cached) " >&6
31193else
31194 case $TXTDelegate in
31195 [\\/]* | ?:[\\/]*)
31196 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31197 ;;
31198 *)
31199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31200for as_dir in $PATH
31201do
31202 IFS=$as_save_IFS
31203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31206 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208 break 2
31209 fi
31210done
cristy8b350f62009-11-15 23:12:43 +000031211 done
cristy3ed852e2009-09-05 21:47:34 +000031212IFS=$as_save_IFS
31213
31214 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31215 ;;
31216esac
31217fi
31218TXTDelegate=$ac_cv_path_TXTDelegate
31219if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo "$TXTDelegate" >&6; }
31222else
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "no" >&6; }
31225fi
31226
31227
cristy5ac9ac82010-07-29 13:24:24 +000031228# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31229set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31231$as_echo_n "checking for $ac_word... " >&6; }
31232if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31233 $as_echo_n "(cached) " >&6
31234else
31235 case $UniconvertorDelegate in
31236 [\\/]* | ?:[\\/]*)
31237 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31238 ;;
31239 *)
31240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241for as_dir in $PATH
31242do
31243 IFS=$as_save_IFS
31244 test -z "$as_dir" && as_dir=.
31245 for ac_exec_ext in '' $ac_executable_extensions; do
31246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31249 break 2
31250 fi
31251done
31252 done
31253IFS=$as_save_IFS
31254
31255 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31256 ;;
31257esac
31258fi
31259UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31260if test -n "$UniconvertorDelegate"; then
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31262$as_echo "$UniconvertorDelegate" >&6; }
31263else
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265$as_echo "no" >&6; }
31266fi
31267
31268
cristy3ed852e2009-09-05 21:47:34 +000031269# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31270set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031272$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031273if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031274 $as_echo_n "(cached) " >&6
31275else
31276 case $WMFDecodeDelegate in
31277 [\\/]* | ?:[\\/]*)
31278 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31279 ;;
31280 *)
31281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31282for as_dir in $PATH
31283do
31284 IFS=$as_save_IFS
31285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31288 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290 break 2
31291 fi
31292done
cristy8b350f62009-11-15 23:12:43 +000031293 done
cristy3ed852e2009-09-05 21:47:34 +000031294IFS=$as_save_IFS
31295
31296 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31297 ;;
31298esac
31299fi
31300WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31301if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031303$as_echo "$WMFDecodeDelegate" >&6; }
31304else
cristy8b350f62009-11-15 23:12:43 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "no" >&6; }
31307fi
31308
31309
31310# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31311set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031314if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 $as_echo_n "(cached) " >&6
31316else
31317 case $WWWDecodeDelegate in
31318 [\\/]* | ?:[\\/]*)
31319 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31320 ;;
31321 *)
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323for as_dir in $PATH
31324do
31325 IFS=$as_save_IFS
31326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331 break 2
31332 fi
31333done
cristy8b350f62009-11-15 23:12:43 +000031334 done
cristy3ed852e2009-09-05 21:47:34 +000031335IFS=$as_save_IFS
31336
31337 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31338 ;;
31339esac
31340fi
31341WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31342if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$WWWDecodeDelegate" >&6; }
31345else
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "no" >&6; }
31348fi
31349
31350
31351# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31352set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031355if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031356 $as_echo_n "(cached) " >&6
31357else
31358 case $XPSDelegate in
31359 [\\/]* | ?:[\\/]*)
31360 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31361 ;;
31362 *)
31363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364for as_dir in $PATH
31365do
31366 IFS=$as_save_IFS
31367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372 break 2
31373 fi
31374done
cristy8b350f62009-11-15 23:12:43 +000031375 done
cristy3ed852e2009-09-05 21:47:34 +000031376IFS=$as_save_IFS
31377
31378 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31379 ;;
31380esac
31381fi
31382XPSDelegate=$ac_cv_path_XPSDelegate
31383if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo "$XPSDelegate" >&6; }
31386else
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "no" >&6; }
31389fi
31390
31391
31392# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31393set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031396if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 $as_echo_n "(cached) " >&6
31398else
31399 case $ZipDelegate in
31400 [\\/]* | ?:[\\/]*)
31401 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31402 ;;
31403 *)
31404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405for as_dir in $PATH
31406do
31407 IFS=$as_save_IFS
31408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413 break 2
31414 fi
31415done
cristy8b350f62009-11-15 23:12:43 +000031416 done
cristy3ed852e2009-09-05 21:47:34 +000031417IFS=$as_save_IFS
31418
31419 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31420 ;;
31421esac
31422fi
31423ZipDelegate=$ac_cv_path_ZipDelegate
31424if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$ZipDelegate" >&6; }
31427else
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "no" >&6; }
31430fi
31431
31432
31433
31434# Prefer lpr to lp; lp needs options tacked on.
31435if test "$LPRDelegate" != no; then
31436 PrintDelegate="$LPRDelegate"
31437else
31438 PrintDelegate="$LPDelegate -c -s"
31439fi
31440
31441
31442# Installed ImageMagick utiltity paths
31443ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31444DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31445MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31446
31447# Set delegate booleans
31448have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31449have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31450have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31451have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31452have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31453have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031454have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031455have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31456have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31457have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31458have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31459have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31460
31461#
31462# Test for font directories
31463#
31464type_include_files=''
31465
cristy430a7312010-01-21 20:44:04 +000031466# Dejavu fonts.
31467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31468$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31469dejavu_font_dir=''
31470if test "${with_dejavu_font_dir}" != 'default'; then
31471 dejavu_font_dir="${with_dejavu_font_dir}/"
31472else
31473 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31474 if test -f "${font_dir}DejaVuSerif.ttf"; then
31475 dejavu_font_dir="${font_dir}"
31476 break 1
31477 fi
31478 done
31479fi
31480if test "${dejavu_font_dir}x" != 'x'; then
31481 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31483$as_echo "$dejavu_font_dir" >&6; }
31484else
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31486$as_echo "not found!" >&6; };
31487fi
31488
31489
cristy3ed852e2009-09-05 21:47:34 +000031490# Windows
31491windows_font_dir=''
31492if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31493 windows_font_dir="${with_windows_font_dir}/"
31494fi
cristy430a7312010-01-21 20:44:04 +000031495if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031496 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31497 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31498 fi
31499 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31500 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31501 fi
31502 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31503 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31504 fi
31505fi
cristy430a7312010-01-21 20:44:04 +000031506if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031507 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31508fi
31509
31510
31511# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031513$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31514ghostscript_font_dir=''
31515if test "${with_gs_font_dir}" != 'default'; then
31516 ghostscript_font_dir="${with_gs_font_dir}/"
31517else
31518 if test "${native_win32_build}" = 'yes'; then
31519 # Native Windows Build
31520 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31521 if test -f "${font_dir}a010013l.pfb"; then
31522 ghostscript_font_dir="$font_dir"
31523 break 1
31524 fi
31525 done
31526 if test "${PSDelegate}" != 'gswin32c'; then
31527 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31528 fi
31529 else
31530 # Linux / Mac OS X / Unix Build
31531 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
31532 if test -f "${font_dir}a010013l.pfb"; then
31533 ghostscript_font_dir="${font_dir}"
31534 break 1
31535 fi
31536 done
31537 if test "${ghostscript_font_dir}x" = 'x'; then
31538 if test "$PSDelegate" != 'gs'; then
31539 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31540 fi
31541 fi
31542 fi
31543fi
31544if test "${ghostscript_font_dir}x" != 'x'; then
31545 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo "$ghostscript_font_dir" >&6; }
31548else
cristy8b350f62009-11-15 23:12:43 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031550$as_echo "not found!" >&6; };
31551fi
31552
31553case "${build_os}" in
31554 mingw* )
31555 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31556 ;;
31557esac
31558
31559
31560
31561#
31562# Handle case where user doesn't want frozen paths
31563#
31564if test "$with_frozenpaths" != 'yes'; then
31565 # Re-set delegate definitions to default (no paths)
31566 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31567 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31568 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31569 BZIPDelegate="$BZIPDelegateDefault"
31570 BrowseDelegate="$BrowseDelegateDefault"
31571 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31572 CatDelegate="$CatDelegateDefault"
31573 ConvertDelegate="$ConvertDelegateDefault"
31574 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31575 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31576 EchoDelegate="$EchoDelegateDefault"
31577 EditorDelegate="$EditorDelegateDefault"
31578 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31579 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31580 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31581 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31582 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31583 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31584 LPDelegate="$LPDelegateDefault"
31585 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31586 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31587 LaunchDelegate="$LaunchDelegateDefault"
31588 MANDelegate="$MANDelegateDefault"
31589 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31590 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031591 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031592 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31593 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031594 PCLDelegate="$PCLDelegateDefault"
31595 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31596 POVDelegate="$POVDelegateDefault"
31597 PSDelegate="$PSDelegateDefault"
31598 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31599 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31600 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031601 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031602 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31603 ShowImageDelegate="$ShowImageDelegateDefault"
31604 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031605 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031606 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31607 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31608 XPSDelegate="$XPSDelegateDefault"
31609 ZipDelegate="$ZipDelegateDefault"
31610fi
31611
31612# Delegate substitutions
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
cristy935c86e2010-06-05 23:50:07 +000031655
cristy5ac9ac82010-07-29 13:24:24 +000031656
cristy3ed852e2009-09-05 21:47:34 +000031657#
31658# RPM support.
31659#
31660RPM=''
31661for ac_prog in gnutar gtar tar
31662do
31663 # Extract the first word of "$ac_prog", so it can be a program name with args.
31664set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031666$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031667if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031668 $as_echo_n "(cached) " >&6
31669else
31670 if test -n "$TAR"; then
31671 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31672else
31673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31674for as_dir in $PATH
31675do
31676 IFS=$as_save_IFS
31677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31680 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031682 break 2
31683 fi
31684done
cristy8b350f62009-11-15 23:12:43 +000031685 done
cristy3ed852e2009-09-05 21:47:34 +000031686IFS=$as_save_IFS
31687
31688fi
31689fi
31690TAR=$ac_cv_prog_TAR
31691if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo "$TAR" >&6; }
31694else
cristy8b350f62009-11-15 23:12:43 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031696$as_echo "no" >&6; }
31697fi
31698
31699
31700 test -n "$TAR" && break
31701done
31702
31703for ac_prog in perl
31704do
31705 # Extract the first word of "$ac_prog", so it can be a program name with args.
31706set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031709if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031710 $as_echo_n "(cached) " >&6
31711else
31712 if test -n "$PERL"; then
31713 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31714else
31715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31716for as_dir in $PATH
31717do
31718 IFS=$as_save_IFS
31719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31722 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031724 break 2
31725 fi
31726done
cristy8b350f62009-11-15 23:12:43 +000031727 done
cristy3ed852e2009-09-05 21:47:34 +000031728IFS=$as_save_IFS
31729
31730fi
31731fi
31732PERL=$ac_cv_prog_PERL
31733if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo "$PERL" >&6; }
31736else
cristy8b350f62009-11-15 23:12:43 +000031737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "no" >&6; }
31739fi
31740
31741
31742 test -n "$PERL" && break
31743done
31744
31745for ac_prog in rpmbuild rpm
31746do
31747 # Extract the first word of "$ac_prog", so it can be a program name with args.
31748set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031751if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031752 $as_echo_n "(cached) " >&6
31753else
31754 if test -n "$RPM"; then
31755 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31756else
31757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31758for as_dir in $PATH
31759do
31760 IFS=$as_save_IFS
31761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31764 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031766 break 2
31767 fi
31768done
cristy8b350f62009-11-15 23:12:43 +000031769 done
cristy3ed852e2009-09-05 21:47:34 +000031770IFS=$as_save_IFS
31771
31772fi
31773fi
31774RPM=$ac_cv_prog_RPM
31775if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo "$RPM" >&6; }
31778else
cristy8b350f62009-11-15 23:12:43 +000031779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031780$as_echo "no" >&6; }
31781fi
31782
31783
31784 test -n "$RPM" && break
31785done
31786
31787
31788ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31789
31790
31791AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31792
31793
31794AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31795
31796
31797AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31798
31799
31800 if test "x$RPM" != "x" ; then
31801 RPM_DELEGATE_TRUE=
31802 RPM_DELEGATE_FALSE='#'
31803else
31804 RPM_DELEGATE_TRUE='#'
31805 RPM_DELEGATE_FALSE=
31806fi
31807
31808
31809#
31810# 7ZIP support (http://p7zip.sourceforge.net/)
31811#
31812P7ZIP=''
31813for ac_prog in 7za
31814do
31815 # Extract the first word of "$ac_prog", so it can be a program name with args.
31816set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031818$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031819if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031820 $as_echo_n "(cached) " >&6
31821else
31822 if test -n "$P7ZIP"; then
31823 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31824else
31825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31826for as_dir in $PATH
31827do
31828 IFS=$as_save_IFS
31829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31832 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031834 break 2
31835 fi
31836done
cristy8b350f62009-11-15 23:12:43 +000031837 done
cristy3ed852e2009-09-05 21:47:34 +000031838IFS=$as_save_IFS
31839
31840fi
31841fi
31842P7ZIP=$ac_cv_prog_P7ZIP
31843if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031845$as_echo "$P7ZIP" >&6; }
31846else
cristy8b350f62009-11-15 23:12:43 +000031847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo "no" >&6; }
31849fi
31850
31851
31852 test -n "$P7ZIP" && break
31853done
31854
31855
31856 if test "x$P7ZIP" != "x" ; then
31857 P7ZIP_DELEGATE_TRUE=
31858 P7ZIP_DELEGATE_FALSE='#'
31859else
31860 P7ZIP_DELEGATE_TRUE='#'
31861 P7ZIP_DELEGATE_FALSE=
31862fi
31863
31864
31865#
31866# ZIP support (http://www.info-zip.org/Zip.html)
31867#
31868ZIP=''
31869for ac_prog in zip
31870do
31871 # Extract the first word of "$ac_prog", so it can be a program name with args.
31872set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031875if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 $as_echo_n "(cached) " >&6
31877else
31878 if test -n "$ZIP"; then
31879 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31880else
31881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31882for as_dir in $PATH
31883do
31884 IFS=$as_save_IFS
31885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31888 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031890 break 2
31891 fi
31892done
cristy8b350f62009-11-15 23:12:43 +000031893 done
cristy3ed852e2009-09-05 21:47:34 +000031894IFS=$as_save_IFS
31895
31896fi
31897fi
31898ZIP=$ac_cv_prog_ZIP
31899if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo "$ZIP" >&6; }
31902else
cristy8b350f62009-11-15 23:12:43 +000031903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031904$as_echo "no" >&6; }
31905fi
31906
31907
31908 test -n "$ZIP" && break
31909done
31910
31911
31912 if test "x$ZIP" != "x" ; then
31913 ZIP_DELEGATE_TRUE=
31914 ZIP_DELEGATE_FALSE='#'
31915else
31916 ZIP_DELEGATE_TRUE='#'
31917 ZIP_DELEGATE_FALSE=
31918fi
31919
31920
31921#
31922# GhostPCL related configuration.
31923#
31924PCLColorDevice=ppmraw
31925PCLCMYKDevice=bmpsep8
31926PCLMonoDevice=pbmraw
31927if test -z "$PCLVersion"; then
31928 PCLVersion='unknown'
31929fi
31930if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031932$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031934$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031936$as_echo "" >&6; }
31937 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031939$as_echo_n "checking for pcl color device... " >&6; }
31940 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31941 :
31942 else
31943 PCLColorDevice=ppmraw
31944 fi
cristy8b350f62009-11-15 23:12:43 +000031945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946$as_echo "$PCLColorDevice" >&6; }
31947
31948 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031950$as_echo_n "checking for pcl CMYK device... " >&6; }
31951 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31952 :
31953 else
31954 PCLCMYKDevice=$PCLColorDevice
31955 fi
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo "$PCLCMYKDevice" >&6; }
31958
31959 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961$as_echo_n "checking for pcl mono device... " >&6; }
31962 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31963 :
31964 else
31965 PCLMonoDevice=$PCLColorDevice
31966 fi
cristy8b350f62009-11-15 23:12:43 +000031967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031968$as_echo "$PCLMonoDevice" >&6; }
31969fi
31970
31971
31972
31973
31974
31975
31976#
31977# GhostXPS related configuration.
31978#
31979XPSColorDevice=ppmraw
31980XPSCMYKDevice=bmpsep8
31981XPSMonoDevice=pbmraw
31982if test -z "$XPSVersion"; then
31983 XPSVersion='unknown'
31984fi
31985if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031991$as_echo "" >&6; }
31992 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031994$as_echo_n "checking for xps color device... " >&6; }
31995 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31996 :
31997 else
31998 XPSColorDevice=ppmraw
31999 fi
cristy8b350f62009-11-15 23:12:43 +000032000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032001$as_echo "$XPSColorDevice" >&6; }
32002
32003 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo_n "checking for xps CMYK device... " >&6; }
32006 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32007 :
32008 else
32009 XPSCMYKDevice=$XPSColorDevice
32010 fi
cristy8b350f62009-11-15 23:12:43 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012$as_echo "$XPSCMYKDevice" >&6; }
32013
32014 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo_n "checking for xps mono device... " >&6; }
32017 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32018 :
32019 else
32020 XPSMonoDevice=$XPSColorDevice
32021 fi
cristy8b350f62009-11-15 23:12:43 +000032022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023$as_echo "$XPSMonoDevice" >&6; }
32024fi
32025
32026
32027
32028
32029
32030
32031#
32032# Ghostscript related configuration.
32033#
32034if test "$have_png" = 'yes'; then
32035 GSAlphaDevice=pngalpha
32036else
32037 GSAlphaDevice=pnmraw
32038fi
32039GSColorDevice=pnmraw
32040GSCMYKDevice=pam
32041GSMonoDevice=pbmraw
32042GSPDFDevice=pdfwrite
32043GSPSDevice=pswrite
32044GSEPSDevice=epswrite
32045GSVersion='unknown'
32046if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032050$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032054$as_echo_n "checking for Ghostscript version... " >&6; }
32055 if GSVersion=`$PSDelegate --version`; then
32056 :
32057 else
32058 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32059 fi
cristy8b350f62009-11-15 23:12:43 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032061$as_echo "$GSVersion" >&6; }
32062
32063 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032065$as_echo_n "checking for gs alpha device... " >&6; }
32066 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32067 :
32068 else
32069 GSAlphaDevice=pnmraw
32070 fi
cristy8b350f62009-11-15 23:12:43 +000032071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032072$as_echo "$GSAlphaDevice" >&6; }
32073
32074 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076$as_echo_n "checking for gs color device... " >&6; }
32077 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32078 :
32079 else
32080 GSColorDevice=pnmraw
32081 fi
cristy8b350f62009-11-15 23:12:43 +000032082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032083$as_echo "$GSColorDevice" >&6; }
32084
32085 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087$as_echo_n "checking for gs CMYK device... " >&6; }
32088 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32089 :
32090 else
32091 GSCMYKDevice=bmpsep8
32092 fi
cristy8b350f62009-11-15 23:12:43 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo "$GSCMYKDevice" >&6; }
32095
32096 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032098$as_echo_n "checking for gs mono device... " >&6; }
32099 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32100 :
32101 else
32102 GSMonoDevice=$GSColorDevice
32103 fi
cristy8b350f62009-11-15 23:12:43 +000032104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032105$as_echo "$GSMonoDevice" >&6; }
32106
32107 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo_n "checking for gs PDF writing device... " >&6; }
32110 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32111 :
32112 else
32113 GSPDFDevice=nodevice
32114 fi
cristy8b350f62009-11-15 23:12:43 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032116$as_echo "$GSPDFDevice" >&6; }
32117
32118 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for gs PS writing device... " >&6; }
32121 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32122 :
32123 else
32124 GSPSDevice=nodevice
32125 fi
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "$GSPSDevice" >&6; }
32128
32129 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032131$as_echo_n "checking for gs EPS writing device... " >&6; }
32132 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32133 :
32134 else
32135 GSEPSDevice=nodevice
32136 fi
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo "$GSEPSDevice" >&6; }
32139fi
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150#
32151# PerlMagick-related configuration
32152#
32153
32154# Look for PERL if PerlMagick requested
32155# If name/path of desired PERL interpreter is specified, look for that one first
32156have_perl='no'
32157if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo "" >&6; }
32164 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032167if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032168 $as_echo_n "(cached) " >&6
32169else
32170 ac_cv_path_PERL="$with_perl"
32171fi
cristy8b350f62009-11-15 23:12:43 +000032172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo "$ac_cv_path_PERL" >&6; };
32174 PERL=$ac_cv_path_PERL
32175 have_perl="$ac_cv_path_PERL"
32176 else
32177 for ac_prog in perl perl5
32178do
32179 # Extract the first word of "$ac_prog", so it can be a program name with args.
32180set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032183if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032184 $as_echo_n "(cached) " >&6
32185else
32186 case $PERL in
32187 [\\/]* | ?:[\\/]*)
32188 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32189 ;;
32190 *)
32191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32192for as_dir in $PATH
32193do
32194 IFS=$as_save_IFS
32195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32198 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200 break 2
32201 fi
32202done
cristy8b350f62009-11-15 23:12:43 +000032203 done
cristy3ed852e2009-09-05 21:47:34 +000032204IFS=$as_save_IFS
32205
32206 ;;
32207esac
32208fi
32209PERL=$ac_cv_path_PERL
32210if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "$PERL" >&6; }
32213else
cristy8b350f62009-11-15 23:12:43 +000032214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032215$as_echo "no" >&6; }
32216fi
32217
32218
32219 test -n "$PERL" && break
32220done
32221 if test "$ac_cv_path_PERL"; then
32222 have_perl="$ac_cv_path_PERL"
32223 fi
32224 fi
32225fi
32226
cristy949301e2010-01-06 01:38:40 +000032227if test "$with_perl" != 'yes' ; then
32228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32229fi
32230
32231PERL_SUPPORTS_DESTDIR='no'
32232
cristy3ed852e2009-09-05 21:47:34 +000032233with_perl_static='no'
32234with_perl_dynamic='no'
32235if test "$have_perl" != 'no'; then
32236 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32237 with_perl_static='yes'
32238 fi
32239 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32240 with_perl_dynamic='yes'
32241 fi
32242 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032243
32244
32245
32246
32247 if test -n "$PERL"; then :
32248
32249 ax_perl_version="5.8.1"
32250
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32252$as_echo_n "checking for perl version... " >&6; }
32253
32254 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32255
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32257$as_echo "$perl_version" >&6; }
32258
32259 PERL_VERSION=$perl_version
32260
32261
32262
32263
32264
32265 # Used to indicate true or false condition
32266 ax_compare_version=false
32267
32268 # Convert the two version strings to be compared into a format that
32269 # allows a simple string comparison. The end result is that a version
32270 # string of the form 1.12.5-r617 will be converted to the form
32271 # 0001001200050617. In other words, each number is zero padded to four
32272 # digits, and non digits are removed.
32273
32274 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32275 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32276 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32277 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32278 -e 's/[^0-9]//g'`
32279
32280
32281 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32282 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32283 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32284 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32285 -e 's/[^0-9]//g'`
32286
32287
32288 ax_compare_version=`echo "x$ax_compare_version_A
32289x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32290
32291
32292
32293 if test "$ax_compare_version" = "true" ; then
32294
32295 :
32296 PERL_SUPPORTS_DESTDIR='yes'
32297
32298 else
32299 :
32300 PERL_SUPPORTS_DESTDIR='no'
32301
cristy3ed852e2009-09-05 21:47:34 +000032302 fi
cristy3ed852e2009-09-05 21:47:34 +000032303
cristy964cb7f2010-04-25 23:18:00 +000032304
cristy3ed852e2009-09-05 21:47:34 +000032305else
cristy3ed852e2009-09-05 21:47:34 +000032306
cristy964cb7f2010-04-25 23:18:00 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32308$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32309 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032310
32311fi
32312
cristy3ed852e2009-09-05 21:47:34 +000032313fi
32314 if test "$have_perl" != 'no'; then
32315 WITH_PERL_TRUE=
32316 WITH_PERL_FALSE='#'
32317else
32318 WITH_PERL_TRUE='#'
32319 WITH_PERL_FALSE=
32320fi
32321
32322 if test $with_perl_static = 'yes'; then
32323 WITH_PERL_STATIC_TRUE=
32324 WITH_PERL_STATIC_FALSE='#'
32325else
32326 WITH_PERL_STATIC_TRUE='#'
32327 WITH_PERL_STATIC_FALSE=
32328fi
32329
32330 if test $with_perl_dynamic = 'yes'; then
32331 WITH_PERL_DYNAMIC_TRUE=
32332 WITH_PERL_DYNAMIC_FALSE='#'
32333else
32334 WITH_PERL_DYNAMIC_TRUE='#'
32335 WITH_PERL_DYNAMIC_FALSE=
32336fi
32337
32338
32339
32340# Determine path to pick up MagickCore library from for use with building PerlMagick
32341MAGICKCORE_PATH="${LIB_DIR}"
32342if test $with_perl_static = 'yes'; then
32343 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32344 libtool_objdir=$objdir
32345
32346 # Linker search path to library, followed by -lMagickCore
32347 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32348fi
32349
32350
32351# Create a simple string containing format names for all delegate libraries
32352DELEGATES=''
32353if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32354if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32355if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32356if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32357if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32358if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32359if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32360if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32361if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32362if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32363if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32364if test "$have_jpeg" = 'yes'; then
32365 DELEGATES="$DELEGATES jpeg";
32366 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32367fi
32368if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032369if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032370if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32371if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32372if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32373if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32374if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32375if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32376if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32377if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32378if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32379if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32380if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32381
32382
32383
32384#
32385# Handle special compiler flags
32386#
32387
32388# Add '-p' if prof source profiling support enabled
32389if test "$enable_prof" = 'yes'; then
32390 CFLAGS="-p $CFLAGS"
32391 CXXFLAGS="-p $CXXFLAGS"
32392 LDFLAGS="-p $LDFLAGS"
32393fi
32394
32395# Add '-pg' if gprof source profiling support enabled
32396if test "$enable_gprof" = 'yes'; then
32397 CFLAGS="-pg $CFLAGS"
32398 CXXFLAGS="-pg $CXXFLAGS"
32399 LDFLAGS="-pg $LDFLAGS"
32400fi
32401
32402# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32403# This is a gcc-specific feature
32404if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032406$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032407if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032408 $as_echo_n "(cached) " >&6
32409else
32410 ac_check_lib_save_LIBS=$LIBS
32411LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032413/* end confdefs.h. */
32414
32415/* Override any GCC internal prototype to avoid an error.
32416 Use char because int might match the return type of a GCC
32417 builtin and then its argument prototype would still apply. */
32418#ifdef __cplusplus
32419extern "C"
32420#endif
32421char _gcov_init ();
32422int
32423main ()
32424{
32425return _gcov_init ();
32426 ;
32427 return 0;
32428}
32429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032431 ac_cv_lib_gcov__gcov_init=yes
32432else
cristy8b350f62009-11-15 23:12:43 +000032433 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032434fi
cristy8b350f62009-11-15 23:12:43 +000032435rm -f core conftest.err conftest.$ac_objext \
32436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032437LIBS=$ac_check_lib_save_LIBS
32438fi
cristy8b350f62009-11-15 23:12:43 +000032439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032440$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032441if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032442 cat >>confdefs.h <<_ACEOF
32443#define HAVE_LIBGCOV 1
32444_ACEOF
32445
32446 LIBS="-lgcov $LIBS"
32447
32448fi
32449
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032452if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032453 $as_echo_n "(cached) " >&6
32454else
32455 ac_check_lib_save_LIBS=$LIBS
32456LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032458/* end confdefs.h. */
32459
32460/* Override any GCC internal prototype to avoid an error.
32461 Use char because int might match the return type of a GCC
32462 builtin and then its argument prototype would still apply. */
32463#ifdef __cplusplus
32464extern "C"
32465#endif
32466char __gcov_init ();
32467int
32468main ()
32469{
32470return __gcov_init ();
32471 ;
32472 return 0;
32473}
32474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032476 ac_cv_lib_gcov___gcov_init=yes
32477else
cristy8b350f62009-11-15 23:12:43 +000032478 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032479fi
cristy8b350f62009-11-15 23:12:43 +000032480rm -f core conftest.err conftest.$ac_objext \
32481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032482LIBS=$ac_check_lib_save_LIBS
32483fi
cristy8b350f62009-11-15 23:12:43 +000032484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032485$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032486if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032487 cat >>confdefs.h <<_ACEOF
32488#define HAVE_LIBGCOV 1
32489_ACEOF
32490
32491 LIBS="-lgcov $LIBS"
32492
32493fi
32494
32495 case "$target_os" in
32496 darwin*)
32497 OSX_GCOV_LDFLAG="-Wl,-single_module"
32498 ;;
32499 *)
32500 OSX_GCOV_LDFLAG=""
32501 ;;
32502 esac
32503
32504 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32505 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32506 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32507fi
32508
32509#
32510# Build library dependency list for libMagickCore
32511#
32512
32513MAGICK_LIBLTDL='' # Libltdl for build
32514MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32515MAGICK_LTDLDEPS='' # extra libltdl dependencies
32516if test "$with_ltdl" != 'no'
32517then
32518 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32519 MAGICK_API_LIBLTDL='-lltdl'
32520 fi
32521 MAGICK_LIBLTDL=${LIBLTDL}
32522 MAGICK_LTDLDEPS=${LTDLDEPS}
32523fi
32524
32525
32526
32527if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032528 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 $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 +000032529else
cristy2e8b51d2009-10-17 18:26:15 +000032530 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_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 +000032531fi
32532
32533
32534#
32535# Remove extraneous spaces from output variables (asthetic)
32536#
32537X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32538X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32539X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32540X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32541
32542CC=`echo $CC | sed -e 's/ */ /g'`
32543CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32544CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32545CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32546DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32547DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32548LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32549TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32550MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32551#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32552
32553# Pass only user-provided LIBS as "global" libraries
32554LIBS=$USER_LIBS
32555
32556#AC_SUBST(CPPFLAGS)
32557
32558#AC_SUBST(LDFLAGS)
32559#AC_SUBST(X_PRE_LIBS)
32560#AC_SUBST(X_LIBS)
32561#AC_SUBST(X_EXTRA_LIBS)
32562
32563MAGICK_CFLAGS=$CFLAGS
32564MAGICK_CXXFLAGS="$CXXFLAGS"
32565MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32566MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32567MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32568MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32569
32570
32571
32572
32573
32574
32575
32576
cristyfd9dcd42010-08-08 18:07:02 +000032577
cristy3ed852e2009-09-05 21:47:34 +000032578# Set configured scripts to executable.
32579ac_config_commands="$ac_config_commands default"
32580
32581ac_config_commands="$ac_config_commands MagickCore-config.in"
32582
32583ac_config_commands="$ac_config_commands Magick-config.in"
32584
32585ac_config_commands="$ac_config_commands MagickWand-config.in"
32586
32587ac_config_commands="$ac_config_commands Wand-config.in"
32588
32589ac_config_commands="$ac_config_commands Magick++-config.in"
32590
32591ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32592
32593
cristy8b350f62009-11-15 23:12:43 +000032594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032597$as_echo "Update ImageMagick configuration" >&6; }
32598cat >confcache <<\_ACEOF
32599# This file is a shell script that caches the results of configure
32600# tests run on this system so they can be shared between configure
32601# scripts and configure runs, see configure's option --config-cache.
32602# It is not useful on other systems. If it contains results you don't
32603# want to keep, you may remove or edit it.
32604#
32605# config.status only pays attention to the cache file if you give it
32606# the --recheck option to rerun configure.
32607#
32608# `ac_cv_env_foo' variables (set or unset) will be overridden when
32609# loading this file, other *unset* `ac_cv_foo' will be assigned the
32610# following values.
32611
32612_ACEOF
32613
32614# The following way of writing the cache mishandles newlines in values,
32615# but we know of no workaround that is simple, portable, and efficient.
32616# So, we kill variables containing newlines.
32617# Ultrix sh set writes to stderr and can't be redirected directly,
32618# and sets the high bit in the cache file unless we assign to the vars.
32619(
32620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32621 eval ac_val=\$$ac_var
32622 case $ac_val in #(
32623 *${as_nl}*)
32624 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032626$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32627 esac
32628 case $ac_var in #(
32629 _ | IFS | as_nl) ;; #(
32630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032631 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032632 esac ;;
32633 esac
32634 done
32635
32636 (set) 2>&1 |
32637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32638 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032639 # `set' does not quote correctly, so add quotes: double-quote
32640 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032641 sed -n \
32642 "s/'/'\\\\''/g;
32643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32644 ;; #(
32645 *)
32646 # `set' quotes correctly as required by POSIX, so do not add quotes.
32647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32648 ;;
32649 esac |
32650 sort
32651) |
32652 sed '
32653 /^ac_cv_env_/b end
32654 t clear
32655 :clear
32656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32657 t end
32658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32659 :end' >>confcache
32660if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32661 if test -w "$cache_file"; then
32662 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "$as_me: updating cache $cache_file" >&6;}
32665 cat confcache >$cache_file
32666 else
cristy8b350f62009-11-15 23:12:43 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32669 fi
32670fi
32671rm -f confcache
32672
32673test "x$prefix" = xNONE && prefix=$ac_default_prefix
32674# Let make expand exec_prefix.
32675test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32676
32677DEFS=-DHAVE_CONFIG_H
32678
32679ac_libobjs=
32680ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032681U=
cristy3ed852e2009-09-05 21:47:34 +000032682for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32683 # 1. Remove the extension, and $U if already installed.
32684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32687 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032690done
32691LIBOBJS=$ac_libobjs
32692
32693LTLIBOBJS=$ac_ltlibobjs
32694
32695
32696 if test -n "$EXEEXT"; then
32697 am__EXEEXT_TRUE=
32698 am__EXEEXT_FALSE='#'
32699else
32700 am__EXEEXT_TRUE='#'
32701 am__EXEEXT_FALSE=
32702fi
32703
32704if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032705 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032706Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032707fi
32708if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032709 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032710Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032711fi
cristya0b81c32010-01-22 02:54:33 +000032712if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032714Usually this means the macro was only invoked conditionally." "$LINENO" 5
32715fi
cristy3ed852e2009-09-05 21:47:34 +000032716if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032717 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032718Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032719fi
32720if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032721 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032722Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032723fi
32724if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032725 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032726Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032727fi
32728if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032729 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032730Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032731fi
32732if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032733 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032734Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032735fi
cristy3ed852e2009-09-05 21:47:34 +000032736if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032737 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032738Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032739fi
32740if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032741 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032742Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032743fi
32744LT_CONFIG_H=config/config.h
32745
32746 _ltdl_libobjs=
32747 _ltdl_ltlibobjs=
32748 if test -n "$_LT_LIBOBJS"; then
32749 # Remove the extension.
32750 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32751 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32752 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32753 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32754 done
32755 fi
32756 ltdl_LIBOBJS=$_ltdl_libobjs
32757
32758 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32759
32760
cristyfa112112010-01-04 17:48:07 +000032761if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032762 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032763Usually this means the macro was only invoked conditionally." "$LINENO" 5
32764fi
cristy3ed852e2009-09-05 21:47:34 +000032765if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032766 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032767Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032768fi
32769if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032770 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032771Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032772fi
32773if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032774 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032775Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032776fi
32777
32778if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032779 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032780Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032781fi
32782if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032783 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032784Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032785fi
32786if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032787 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032788Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032791 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032792Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032793fi
32794if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032795 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032796Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032797fi
32798if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032799 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032800Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032801fi
32802if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032803 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032804Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032805fi
32806if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032807 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032808Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032809fi
32810if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032811 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032815 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
32818if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032819 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032820Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821fi
32822if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032823 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032824Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032825fi
32826if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032827 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032828Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032829fi
32830if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032831 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032833fi
32834if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032835 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837fi
32838if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032839 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032840Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032841fi
32842if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032843 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032844Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032845fi
32846if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032847 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849fi
32850if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032851 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032853fi
32854if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032855 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032856Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032857fi
32858if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032859 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032860Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032861fi
32862if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032863 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032864Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032865fi
32866if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032867 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032868Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032869fi
32870if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032871 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032872Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032873fi
32874if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032875 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032876Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032877fi
32878if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032879 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032880Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032881fi
32882if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032883 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032884Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032885fi
32886if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032887 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032888Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032889fi
32890if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032891 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032892Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032893fi
32894if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032895 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032896Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032897fi
32898if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032899 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032900Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032901fi
32902if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032903 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032904Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032905fi
32906if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032907 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032908Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032909fi
32910
32911: ${CONFIG_STATUS=./config.status}
32912ac_write_fail=0
32913ac_clean_files_save=$ac_clean_files
32914ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032915{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032917as_write_fail=0
32918cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032919#! $SHELL
32920# Generated by $as_me.
32921# Run this file to recreate the current configuration.
32922# Compiler output produced by configure, useful for debugging
32923# configure, is in config.log if it exists.
32924
32925debug=false
32926ac_cs_recheck=false
32927ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032928
cristy8b350f62009-11-15 23:12:43 +000032929SHELL=\${CONFIG_SHELL-$SHELL}
32930export SHELL
32931_ASEOF
32932cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32933## -------------------- ##
32934## M4sh Initialization. ##
32935## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032936
32937# Be more Bourne compatible
32938DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032939if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032940 emulate sh
32941 NULLCMD=:
32942 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32943 # is contrary to our usage. Disable this feature.
32944 alias -g '${1+"$@"}'='"$@"'
32945 setopt NO_GLOB_SUBST
32946else
cristy8b350f62009-11-15 23:12:43 +000032947 case `(set -o) 2>/dev/null` in #(
32948 *posix*) :
32949 set -o posix ;; #(
32950 *) :
32951 ;;
cristy3ed852e2009-09-05 21:47:34 +000032952esac
cristy3ed852e2009-09-05 21:47:34 +000032953fi
32954
32955
cristy3ed852e2009-09-05 21:47:34 +000032956as_nl='
32957'
32958export as_nl
32959# Printing a long string crashes Solaris 7 /usr/bin/printf.
32960as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32962as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032963# Prefer a ksh shell builtin over an external printf program on Solaris,
32964# but without wasting forks for bash or zsh.
32965if test -z "$BASH_VERSION$ZSH_VERSION" \
32966 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32967 as_echo='print -r --'
32968 as_echo_n='print -rn --'
32969elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032970 as_echo='printf %s\n'
32971 as_echo_n='printf %s'
32972else
32973 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32974 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32975 as_echo_n='/usr/ucb/echo -n'
32976 else
32977 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32978 as_echo_n_body='eval
32979 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032980 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032981 *"$as_nl"*)
32982 expr "X$arg" : "X\\(.*\\)$as_nl";
32983 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32984 esac;
32985 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32986 '
32987 export as_echo_n_body
32988 as_echo_n='sh -c $as_echo_n_body as_echo'
32989 fi
32990 export as_echo_body
32991 as_echo='sh -c $as_echo_body as_echo'
32992fi
32993
32994# The user is always right.
32995if test "${PATH_SEPARATOR+set}" != set; then
32996 PATH_SEPARATOR=:
32997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32999 PATH_SEPARATOR=';'
33000 }
33001fi
33002
cristy3ed852e2009-09-05 21:47:34 +000033003
33004# IFS
33005# We need space, tab and new line, in precisely that order. Quoting is
33006# there to prevent editors from complaining about space-tab.
33007# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33008# splitting by setting IFS to empty value.)
33009IFS=" "" $as_nl"
33010
33011# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033012case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033013 *[\\/]* ) as_myself=$0 ;;
33014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 ;;
33024esac
33025# We did not find ourselves, most probably we were run as `sh COMMAND'
33026# in which case we are not to be found in the path.
33027if test "x$as_myself" = x; then
33028 as_myself=$0
33029fi
33030if test ! -f "$as_myself"; then
33031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033032 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033033fi
33034
cristy8b350f62009-11-15 23:12:43 +000033035# Unset variables that we do not need and which cause bugs (e.g. in
33036# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33037# suppresses any "Segmentation fault" message there. '((' could
33038# trigger a bug in pdksh 5.2.14.
33039for as_var in BASH_ENV ENV MAIL MAILPATH
33040do eval test x\${$as_var+set} = xset \
33041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033042done
33043PS1='$ '
33044PS2='> '
33045PS4='+ '
33046
33047# NLS nuisances.
33048LC_ALL=C
33049export LC_ALL
33050LANGUAGE=C
33051export LANGUAGE
33052
cristy8b350f62009-11-15 23:12:43 +000033053# CDPATH.
33054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33055
33056
cristyfd9dcd42010-08-08 18:07:02 +000033057# as_fn_error STATUS ERROR [LINENO LOG_FD]
33058# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033059# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33060# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000033061# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033062as_fn_error ()
33063{
cristyfd9dcd42010-08-08 18:07:02 +000033064 as_status=$1; test $as_status -eq 0 && as_status=1
33065 if test "$4"; then
33066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033068 fi
cristyfd9dcd42010-08-08 18:07:02 +000033069 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033070 as_fn_exit $as_status
33071} # as_fn_error
33072
33073
33074# as_fn_set_status STATUS
33075# -----------------------
33076# Set $? to STATUS, without forking.
33077as_fn_set_status ()
33078{
33079 return $1
33080} # as_fn_set_status
33081
33082# as_fn_exit STATUS
33083# -----------------
33084# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33085as_fn_exit ()
33086{
33087 set +e
33088 as_fn_set_status $1
33089 exit $1
33090} # as_fn_exit
33091
33092# as_fn_unset VAR
33093# ---------------
33094# Portably unset VAR.
33095as_fn_unset ()
33096{
33097 { eval $1=; unset $1;}
33098}
33099as_unset=as_fn_unset
33100# as_fn_append VAR VALUE
33101# ----------------------
33102# Append the text in VALUE to the end of the definition contained in VAR. Take
33103# advantage of any shell optimizations that allow amortized linear growth over
33104# repeated appends, instead of the typical quadratic growth present in naive
33105# implementations.
33106if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33107 eval 'as_fn_append ()
33108 {
33109 eval $1+=\$2
33110 }'
33111else
33112 as_fn_append ()
33113 {
33114 eval $1=\$$1\$2
33115 }
33116fi # as_fn_append
33117
33118# as_fn_arith ARG...
33119# ------------------
33120# Perform arithmetic evaluation on the ARGs, and store the result in the
33121# global $as_val. Take advantage of shells that can avoid forks. The arguments
33122# must be portable across $(()) and expr.
33123if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33124 eval 'as_fn_arith ()
33125 {
33126 as_val=$(( $* ))
33127 }'
33128else
33129 as_fn_arith ()
33130 {
33131 as_val=`expr "$@" || test $? -eq 1`
33132 }
33133fi # as_fn_arith
33134
33135
cristy3ed852e2009-09-05 21:47:34 +000033136if expr a : '\(a\)' >/dev/null 2>&1 &&
33137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33138 as_expr=expr
33139else
33140 as_expr=false
33141fi
33142
33143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33144 as_basename=basename
33145else
33146 as_basename=false
33147fi
33148
cristy8b350f62009-11-15 23:12:43 +000033149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33150 as_dirname=dirname
33151else
33152 as_dirname=false
33153fi
cristy3ed852e2009-09-05 21:47:34 +000033154
cristy3ed852e2009-09-05 21:47:34 +000033155as_me=`$as_basename -- "$0" ||
33156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33157 X"$0" : 'X\(//\)$' \| \
33158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33159$as_echo X/"$0" |
33160 sed '/^.*\/\([^/][^/]*\)\/*$/{
33161 s//\1/
33162 q
33163 }
33164 /^X\/\(\/\/\)$/{
33165 s//\1/
33166 q
33167 }
33168 /^X\/\(\/\).*/{
33169 s//\1/
33170 q
33171 }
33172 s/.*/./; q'`
33173
cristy8b350f62009-11-15 23:12:43 +000033174# Avoid depending upon Character Ranges.
33175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33178as_cr_digits='0123456789'
33179as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033180
33181ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033182case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033183-n*)
cristy8b350f62009-11-15 23:12:43 +000033184 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033186 xy) ECHO_C='\c';;
33187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33188 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033189 esac;;
33190*)
33191 ECHO_N='-n';;
33192esac
cristy3ed852e2009-09-05 21:47:34 +000033193
33194rm -f conf$$ conf$$.exe conf$$.file
33195if test -d conf$$.dir; then
33196 rm -f conf$$.dir/conf$$.file
33197else
33198 rm -f conf$$.dir
33199 mkdir conf$$.dir 2>/dev/null
33200fi
33201if (echo >conf$$.file) 2>/dev/null; then
33202 if ln -s conf$$.file conf$$ 2>/dev/null; then
33203 as_ln_s='ln -s'
33204 # ... but there are two gotchas:
33205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33207 # In both cases, we have to default to `cp -p'.
33208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33209 as_ln_s='cp -p'
33210 elif ln conf$$.file conf$$ 2>/dev/null; then
33211 as_ln_s=ln
33212 else
33213 as_ln_s='cp -p'
33214 fi
33215else
33216 as_ln_s='cp -p'
33217fi
33218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33219rmdir conf$$.dir 2>/dev/null
33220
cristy8b350f62009-11-15 23:12:43 +000033221
33222# as_fn_mkdir_p
33223# -------------
33224# Create "$as_dir" as a directory, including parents if necessary.
33225as_fn_mkdir_p ()
33226{
33227
33228 case $as_dir in #(
33229 -*) as_dir=./$as_dir;;
33230 esac
33231 test -d "$as_dir" || eval $as_mkdir_p || {
33232 as_dirs=
33233 while :; do
33234 case $as_dir in #(
33235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33236 *) as_qdir=$as_dir;;
33237 esac
33238 as_dirs="'$as_qdir' $as_dirs"
33239 as_dir=`$as_dirname -- "$as_dir" ||
33240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33241 X"$as_dir" : 'X\(//\)[^/]' \| \
33242 X"$as_dir" : 'X\(//\)$' \| \
33243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33244$as_echo X"$as_dir" |
33245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33246 s//\1/
33247 q
33248 }
33249 /^X\(\/\/\)[^/].*/{
33250 s//\1/
33251 q
33252 }
33253 /^X\(\/\/\)$/{
33254 s//\1/
33255 q
33256 }
33257 /^X\(\/\).*/{
33258 s//\1/
33259 q
33260 }
33261 s/.*/./; q'`
33262 test -d "$as_dir" && break
33263 done
33264 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000033265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033266
33267
33268} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033269if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033270 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033271else
33272 test -d ./-p && rmdir ./-p
33273 as_mkdir_p=false
33274fi
33275
33276if test -x / >/dev/null 2>&1; then
33277 as_test_x='test -x'
33278else
33279 if ls -dL / >/dev/null 2>&1; then
33280 as_ls_L_option=L
33281 else
33282 as_ls_L_option=
33283 fi
33284 as_test_x='
33285 eval sh -c '\''
33286 if test -d "$1"; then
33287 test -d "$1/.";
33288 else
cristy8b350f62009-11-15 23:12:43 +000033289 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033290 -*)set "./$1";;
33291 esac;
cristy8b350f62009-11-15 23:12:43 +000033292 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033293 ???[sx]*):;;*)false;;esac;fi
33294 '\'' sh
33295 '
33296fi
33297as_executable_p=$as_test_x
33298
33299# Sed expression to map a string onto a valid CPP name.
33300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33301
33302# Sed expression to map a string onto a valid variable name.
33303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33304
33305
33306exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033307## ----------------------------------- ##
33308## Main body of $CONFIG_STATUS script. ##
33309## ----------------------------------- ##
33310_ASEOF
33311test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033312
cristy8b350f62009-11-15 23:12:43 +000033313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33314# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033315# report actual input values of CONFIG_FILES etc. instead of their
33316# values after options handling.
33317ac_log="
cristy56225732010-09-04 23:44:25 +000033318This file was extended by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +000033319generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033320
33321 CONFIG_FILES = $CONFIG_FILES
33322 CONFIG_HEADERS = $CONFIG_HEADERS
33323 CONFIG_LINKS = $CONFIG_LINKS
33324 CONFIG_COMMANDS = $CONFIG_COMMANDS
33325 $ $0 $@
33326
33327on `(hostname || uname -n) 2>/dev/null | sed 1q`
33328"
33329
33330_ACEOF
33331
33332case $ac_config_files in *"
33333"*) set x $ac_config_files; shift; ac_config_files=$*;;
33334esac
33335
33336case $ac_config_headers in *"
33337"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33338esac
33339
33340
33341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33342# Files that config.status was made for.
33343config_files="$ac_config_files"
33344config_headers="$ac_config_headers"
33345config_commands="$ac_config_commands"
33346
33347_ACEOF
33348
33349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33350ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033351\`$as_me' instantiates files and other configuration actions
33352from templates according to the current configuration. Unless the files
33353and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033354
cristy8b350f62009-11-15 23:12:43 +000033355Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033356
33357 -h, --help print this help, then exit
33358 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033359 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033360 -q, --quiet, --silent
33361 do not print progress messages
33362 -d, --debug don't remove temporary files
33363 --recheck update $as_me by reconfiguring in the same conditions
33364 --file=FILE[:TEMPLATE]
33365 instantiate the configuration file FILE
33366 --header=FILE[:TEMPLATE]
33367 instantiate the configuration header FILE
33368
33369Configuration files:
33370$config_files
33371
33372Configuration headers:
33373$config_headers
33374
33375Configuration commands:
33376$config_commands
33377
cristy8b350f62009-11-15 23:12:43 +000033378Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033379
33380_ACEOF
33381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033382ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033383ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033384ImageMagick config.status 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +000033385configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033386 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033387
cristyfd9dcd42010-08-08 18:07:02 +000033388Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033389This config.status script is free software; the Free Software Foundation
33390gives unlimited permission to copy, distribute and modify it."
33391
33392ac_pwd='$ac_pwd'
33393srcdir='$srcdir'
33394INSTALL='$INSTALL'
33395MKDIR_P='$MKDIR_P'
33396AWK='$AWK'
33397test -n "\$AWK" || AWK=awk
33398_ACEOF
33399
33400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33401# The default lists apply if the user does not specify any file.
33402ac_need_defaults=:
33403while test $# != 0
33404do
33405 case $1 in
33406 --*=*)
33407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33409 ac_shift=:
33410 ;;
33411 *)
33412 ac_option=$1
33413 ac_optarg=$2
33414 ac_shift=shift
33415 ;;
33416 esac
33417
33418 case $ac_option in
33419 # Handling of the options.
33420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33421 ac_cs_recheck=: ;;
33422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33423 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033424 --config | --confi | --conf | --con | --co | --c )
33425 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033426 --debug | --debu | --deb | --de | --d | -d )
33427 debug=: ;;
33428 --file | --fil | --fi | --f )
33429 $ac_shift
33430 case $ac_optarg in
33431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33432 esac
cristy8b350f62009-11-15 23:12:43 +000033433 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033434 ac_need_defaults=false;;
33435 --header | --heade | --head | --hea )
33436 $ac_shift
33437 case $ac_optarg in
33438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33439 esac
cristy8b350f62009-11-15 23:12:43 +000033440 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033441 ac_need_defaults=false;;
33442 --he | --h)
33443 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033444 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033445Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033446 --help | --hel | -h )
33447 $as_echo "$ac_cs_usage"; exit ;;
33448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33450 ac_cs_silent=: ;;
33451
33452 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033453 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033454Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033455
cristy8b350f62009-11-15 23:12:43 +000033456 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033457 ac_need_defaults=false ;;
33458
33459 esac
33460 shift
33461done
33462
33463ac_configure_extra_args=
33464
33465if $ac_cs_silent; then
33466 exec 6>/dev/null
33467 ac_configure_extra_args="$ac_configure_extra_args --silent"
33468fi
33469
33470_ACEOF
33471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33472if \$ac_cs_recheck; then
33473 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33474 shift
33475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33476 CONFIG_SHELL='$SHELL'
33477 export CONFIG_SHELL
33478 exec "\$@"
33479fi
33480
33481_ACEOF
33482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33483exec 5>>config.log
33484{
33485 echo
33486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33487## Running $as_me. ##
33488_ASBOX
33489 $as_echo "$ac_log"
33490} >&5
33491
33492_ACEOF
33493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33494#
33495# INIT-COMMANDS
33496#
33497PACKAGE="$PACKAGE"
33498AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33499
33500
33501# The HP-UX ksh and POSIX shell print the target directory to stdout
33502# if CDPATH is set.
33503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33504
33505sed_quote_subst='$sed_quote_subst'
33506double_quote_subst='$double_quote_subst'
33507delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033508SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33509Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33510GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33511EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33512FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33513SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33514ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33515LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33516macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33517macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33518AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33519DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33520OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33521enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33522enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33523pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33524enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33525host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33526host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33527host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33528build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33529build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33530build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33531NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33532LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33533max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33534ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33535exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33536lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33537lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33538lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33539reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33540reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33541deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33542file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33543AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33544AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33545STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33546RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33547old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33548old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33549old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33550lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33551CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33552CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33553compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33554GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33555lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33556lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33557lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33558lt_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"`'
33559objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33560MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33561lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33562lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33563lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33564lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33565lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33566need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33567DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33568NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33569LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33570OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33571OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33572libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33573shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33574extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33575archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33576enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33577export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33578whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33579compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33580old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33581old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33582archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33583archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33584module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33585module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33586with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33587allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33588no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33589hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33590hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33591hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33592hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33593hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33594hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33595hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33596hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33597inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33598link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33599fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33600always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33601export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33602exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33603include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33604prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33605file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33606variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33607need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33608need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33609version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33610runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33611shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33612shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33613libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33614library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33615soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33616install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33617postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33618postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33619finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33620finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33621hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33622sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33623sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33624hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33625enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33626enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33627enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33628old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33629striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33630compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33631predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33632postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33633predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33634postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33635compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33636LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33637reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33638reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33639old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33640compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33641GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33642lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33643lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33644lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33645lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33646lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33647archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33648enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33649export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33650whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33651compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33652old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33653old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33654archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33655archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33656module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33657module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33658with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33659allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33660no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33661hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33662hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33663hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33664hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33665hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33666hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33667hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33668hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33669inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33670link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33671fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33672always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33673export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33674exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33675include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33676prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33677file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33678hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33679compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33680predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33681postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33682predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33683postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33684compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033685
33686LTCC='$LTCC'
33687LTCFLAGS='$LTCFLAGS'
33688compiler='$compiler_DEFAULT'
33689
cristyfd9dcd42010-08-08 18:07:02 +000033690# A function that is used when there is no print builtin or printf.
33691func_fallback_echo ()
33692{
33693 eval 'cat <<_LTECHO_EOF
33694\$1
33695_LTECHO_EOF'
33696}
33697
cristy3ed852e2009-09-05 21:47:34 +000033698# Quote evaled strings.
33699for var in SED \
33700GREP \
33701EGREP \
33702FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033703SHELL \
33704ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033705LD \
cristyfd9dcd42010-08-08 18:07:02 +000033706AS \
33707DLLTOOL \
33708OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033709NM \
33710LN_S \
33711lt_SP2NL \
33712lt_NL2SP \
33713reload_flag \
33714deplibs_check_method \
33715file_magic_cmd \
33716AR \
33717AR_FLAGS \
33718STRIP \
33719RANLIB \
33720CC \
33721CFLAGS \
33722compiler \
33723lt_cv_sys_global_symbol_pipe \
33724lt_cv_sys_global_symbol_to_cdecl \
33725lt_cv_sys_global_symbol_to_c_name_address \
33726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033727lt_prog_compiler_no_builtin_flag \
33728lt_prog_compiler_wl \
33729lt_prog_compiler_pic \
33730lt_prog_compiler_static \
33731lt_cv_prog_compiler_c_o \
33732need_locks \
33733DSYMUTIL \
33734NMEDIT \
33735LIPO \
33736OTOOL \
33737OTOOL64 \
33738shrext_cmds \
33739export_dynamic_flag_spec \
33740whole_archive_flag_spec \
33741compiler_needs_object \
33742with_gnu_ld \
33743allow_undefined_flag \
33744no_undefined_flag \
33745hardcode_libdir_flag_spec \
33746hardcode_libdir_flag_spec_ld \
33747hardcode_libdir_separator \
33748fix_srcfile_path \
33749exclude_expsyms \
33750include_expsyms \
33751file_list_spec \
33752variables_saved_for_relink \
33753libname_spec \
33754library_names_spec \
33755soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033756install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033757finish_eval \
33758old_striplib \
33759striplib \
33760compiler_lib_search_dirs \
33761predep_objects \
33762postdep_objects \
33763predeps \
33764postdeps \
33765compiler_lib_search_path \
33766LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033767reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033768compiler_CXX \
33769lt_prog_compiler_no_builtin_flag_CXX \
33770lt_prog_compiler_wl_CXX \
33771lt_prog_compiler_pic_CXX \
33772lt_prog_compiler_static_CXX \
33773lt_cv_prog_compiler_c_o_CXX \
33774export_dynamic_flag_spec_CXX \
33775whole_archive_flag_spec_CXX \
33776compiler_needs_object_CXX \
33777with_gnu_ld_CXX \
33778allow_undefined_flag_CXX \
33779no_undefined_flag_CXX \
33780hardcode_libdir_flag_spec_CXX \
33781hardcode_libdir_flag_spec_ld_CXX \
33782hardcode_libdir_separator_CXX \
33783fix_srcfile_path_CXX \
33784exclude_expsyms_CXX \
33785include_expsyms_CXX \
33786file_list_spec_CXX \
33787compiler_lib_search_dirs_CXX \
33788predep_objects_CXX \
33789postdep_objects_CXX \
33790predeps_CXX \
33791postdeps_CXX \
33792compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033794 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033796 ;;
33797 *)
33798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33799 ;;
33800 esac
33801done
33802
33803# Double-quote double-evaled strings.
33804for var in reload_cmds \
33805old_postinstall_cmds \
33806old_postuninstall_cmds \
33807old_archive_cmds \
33808extract_expsyms_cmds \
33809old_archive_from_new_cmds \
33810old_archive_from_expsyms_cmds \
33811archive_cmds \
33812archive_expsym_cmds \
33813module_cmds \
33814module_expsym_cmds \
33815export_symbols_cmds \
33816prelink_cmds \
33817postinstall_cmds \
33818postuninstall_cmds \
33819finish_cmds \
33820sys_lib_search_path_spec \
33821sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033822reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033823old_archive_cmds_CXX \
33824old_archive_from_new_cmds_CXX \
33825old_archive_from_expsyms_cmds_CXX \
33826archive_cmds_CXX \
33827archive_expsym_cmds_CXX \
33828module_cmds_CXX \
33829module_expsym_cmds_CXX \
33830export_symbols_cmds_CXX \
33831prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033833 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033835 ;;
33836 *)
33837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33838 ;;
33839 esac
33840done
33841
cristy3ed852e2009-09-05 21:47:34 +000033842ac_aux_dir='$ac_aux_dir'
33843xsi_shell='$xsi_shell'
33844lt_shell_append='$lt_shell_append'
33845
33846# See if we are running on zsh, and set the options which allow our
33847# commands through without removal of \ escapes INIT.
33848if test -n "\${ZSH_VERSION+set}" ; then
33849 setopt NO_GLOB_SUBST
33850fi
33851
33852
33853 PACKAGE='$PACKAGE'
33854 VERSION='$VERSION'
33855 TIMESTAMP='$TIMESTAMP'
33856 RM='$RM'
33857 ofile='$ofile'
33858
33859
33860
33861
33862
33863
33864_ACEOF
33865
33866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33867
33868# Handling of arguments.
33869for ac_config_target in $ac_config_targets
33870do
33871 case $ac_config_target in
33872 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33873 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33874 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33875 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33876 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33877 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33878 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033879 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033880 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33881 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33882 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33883 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33884 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33885 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33886 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33887 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33888 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33889 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33890 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33891 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33892 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33893 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33894 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33895 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33896 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33897 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33898 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33899 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33900 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33901 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33902 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33903 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33904 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33905 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33906 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33907 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33908 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33909 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33910 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33911 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33912 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33913 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33914 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33916 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33917 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33918 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33919 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33920 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33921 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33922
cristyfd9dcd42010-08-08 18:07:02 +000033923 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033924 esac
33925done
33926
33927
33928# If the user did not use the arguments to specify the items to instantiate,
33929# then the envvar interface is used. Set only those that are not.
33930# We use the long form for the default assignment because of an extremely
33931# bizarre bug on SunOS 4.1.3.
33932if $ac_need_defaults; then
33933 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33934 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33935 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33936fi
33937
33938# Have a temporary directory for convenience. Make it in the build tree
33939# simply because there is no reason against having it here, and in addition,
33940# creating and moving files from /tmp can sometimes cause problems.
33941# Hook for its removal unless debugging.
33942# Note that there is a small window in which the directory will not be cleaned:
33943# after its creation but before its name has been assigned to `$tmp'.
33944$debug ||
33945{
33946 tmp=
33947 trap 'exit_status=$?
33948 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33949' 0
cristy8b350f62009-11-15 23:12:43 +000033950 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033951}
33952# Create a (secure) tmp directory for tmp files.
33953
33954{
33955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33956 test -n "$tmp" && test -d "$tmp"
33957} ||
33958{
33959 tmp=./conf$$-$RANDOM
33960 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033961} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033962
33963# Set up the scripts for CONFIG_FILES section.
33964# No need to generate them if there are no CONFIG_FILES.
33965# This happens for instance with `./config.status config.h'.
33966if test -n "$CONFIG_FILES"; then
33967
33968
cristy8b350f62009-11-15 23:12:43 +000033969ac_cr=`echo X | tr X '\015'`
33970# On cygwin, bash can eat \r inside `` if the user requested igncr.
33971# But we know of no other shell where ac_cr would be empty at this
33972# point, so we can use a bashism as a fallback.
33973if test "x$ac_cr" = x; then
33974 eval ac_cr=\$\'\\r\'
33975fi
cristy3ed852e2009-09-05 21:47:34 +000033976ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33977if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033978 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033979else
33980 ac_cs_awk_cr=$ac_cr
33981fi
33982
33983echo 'BEGIN {' >"$tmp/subs1.awk" &&
33984_ACEOF
33985
33986
33987{
33988 echo "cat >conf$$subs.awk <<_ACEOF" &&
33989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33990 echo "_ACEOF"
33991} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33993ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033994ac_delim='%!_!# '
33995for ac_last_try in false false false false false :; do
33996 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033998
33999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34000 if test $ac_delim_n = $ac_delim_num; then
34001 break
34002 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034004 else
34005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34006 fi
34007done
34008rm -f conf$$subs.sh
34009
34010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34011cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34012_ACEOF
34013sed -n '
34014h
34015s/^/S["/; s/!.*/"]=/
34016p
34017g
34018s/^[^!]*!//
34019:repl
34020t repl
34021s/'"$ac_delim"'$//
34022t delim
34023:nl
34024h
cristycd4c5312009-11-22 01:19:08 +000034025s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034026t more1
34027s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34028p
34029n
34030b repl
34031:more1
34032s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34033p
34034g
34035s/.\{148\}//
34036t nl
34037:delim
34038h
cristycd4c5312009-11-22 01:19:08 +000034039s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034040t more2
34041s/["\\]/\\&/g; s/^/"/; s/$/"/
34042p
34043b
34044:more2
34045s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34046p
34047g
34048s/.\{148\}//
34049t delim
34050' <conf$$subs.awk | sed '
34051/^[^""]/{
34052 N
34053 s/\n//
34054}
34055' >>$CONFIG_STATUS || ac_write_fail=1
34056rm -f conf$$subs.awk
34057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34058_ACAWK
34059cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34060 for (key in S) S_is_set[key] = 1
34061 FS = ""
34062
34063}
34064{
34065 line = $ 0
34066 nfields = split(line, field, "@")
34067 substed = 0
34068 len = length(field[1])
34069 for (i = 2; i < nfields; i++) {
34070 key = field[i]
34071 keylen = length(key)
34072 if (S_is_set[key]) {
34073 value = S[key]
34074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34075 len += length(value) + length(field[++i])
34076 substed = 1
34077 } else
34078 len += 1 + keylen
34079 }
34080
34081 print line
34082}
34083
34084_ACAWK
34085_ACEOF
34086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34087if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34088 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34089else
34090 cat
34091fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000034092 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034093_ACEOF
34094
cristyfd9dcd42010-08-08 18:07:02 +000034095# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34096# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034097# trailing colons and then remove the whole line if VPATH becomes empty
34098# (actually we leave an empty line to preserve line numbers).
34099if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000034100 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34101h
34102s///
34103s/^/:/
34104s/[ ]*$/:/
34105s/:\$(srcdir):/:/g
34106s/:\${srcdir}:/:/g
34107s/:@srcdir@:/:/g
34108s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034109s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000034110x
34111s/\(=[ ]*\).*/\1/
34112G
34113s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034114s/^[^=]*=[ ]*$//
34115}'
34116fi
34117
34118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34119fi # test -n "$CONFIG_FILES"
34120
34121# Set up the scripts for CONFIG_HEADERS section.
34122# No need to generate them if there are no CONFIG_HEADERS.
34123# This happens for instance with `./config.status Makefile'.
34124if test -n "$CONFIG_HEADERS"; then
34125cat >"$tmp/defines.awk" <<\_ACAWK ||
34126BEGIN {
34127_ACEOF
34128
34129# Transform confdefs.h into an awk script `defines.awk', embedded as
34130# here-document in config.status, that substitutes the proper values into
34131# config.h.in to produce config.h.
34132
34133# Create a delimiter string that does not exist in confdefs.h, to ease
34134# handling of long lines.
34135ac_delim='%!_!# '
34136for ac_last_try in false false :; do
34137 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34138 if test -z "$ac_t"; then
34139 break
34140 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034141 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034142 else
34143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34144 fi
34145done
34146
34147# For the awk script, D is an array of macro values keyed by name,
34148# likewise P contains macro parameters if any. Preserve backslash
34149# newline sequences.
34150
34151ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34152sed -n '
34153s/.\{148\}/&'"$ac_delim"'/g
34154t rset
34155:rset
34156s/^[ ]*#[ ]*define[ ][ ]*/ /
34157t def
34158d
34159:def
34160s/\\$//
34161t bsnl
34162s/["\\]/\\&/g
34163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34164D["\1"]=" \3"/p
34165s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34166d
34167:bsnl
34168s/["\\]/\\&/g
34169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34170D["\1"]=" \3\\\\\\n"\\/p
34171t cont
34172s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34173t cont
34174d
34175:cont
34176n
34177s/.\{148\}/&'"$ac_delim"'/g
34178t clear
34179:clear
34180s/\\$//
34181t bsnlc
34182s/["\\]/\\&/g; s/^/"/; s/$/"/p
34183d
34184:bsnlc
34185s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34186b cont
34187' <confdefs.h | sed '
34188s/'"$ac_delim"'/"\\\
34189"/g' >>$CONFIG_STATUS || ac_write_fail=1
34190
34191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34192 for (key in D) D_is_set[key] = 1
34193 FS = ""
34194}
34195/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34196 line = \$ 0
34197 split(line, arg, " ")
34198 if (arg[1] == "#") {
34199 defundef = arg[2]
34200 mac1 = arg[3]
34201 } else {
34202 defundef = substr(arg[1], 2)
34203 mac1 = arg[2]
34204 }
34205 split(mac1, mac2, "(") #)
34206 macro = mac2[1]
34207 prefix = substr(line, 1, index(line, defundef) - 1)
34208 if (D_is_set[macro]) {
34209 # Preserve the white space surrounding the "#".
34210 print prefix "define", macro P[macro] D[macro]
34211 next
34212 } else {
34213 # Replace #undef with comments. This is necessary, for example,
34214 # in the case of _POSIX_SOURCE, which is predefined and required
34215 # on some systems where configure will not decide to define it.
34216 if (defundef == "undef") {
34217 print "/*", prefix defundef, macro, "*/"
34218 next
34219 }
34220 }
34221}
34222{ print }
34223_ACAWK
34224_ACEOF
34225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000034226 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034227fi # test -n "$CONFIG_HEADERS"
34228
34229
34230eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34231shift
34232for ac_tag
34233do
34234 case $ac_tag in
34235 :[FHLC]) ac_mode=$ac_tag; continue;;
34236 esac
34237 case $ac_mode$ac_tag in
34238 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000034239 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034240 :[FH]-) ac_tag=-:-;;
34241 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34242 esac
34243 ac_save_IFS=$IFS
34244 IFS=:
34245 set x $ac_tag
34246 IFS=$ac_save_IFS
34247 shift
34248 ac_file=$1
34249 shift
34250
34251 case $ac_mode in
34252 :L) ac_source=$1;;
34253 :[FH])
34254 ac_file_inputs=
34255 for ac_f
34256 do
34257 case $ac_f in
34258 -) ac_f="$tmp/stdin";;
34259 *) # Look for the file first in the build tree, then in the source tree
34260 # (if the path is not absolute). The absolute path cannot be DOS-style,
34261 # because $ac_f cannot contain `:'.
34262 test -f "$ac_f" ||
34263 case $ac_f in
34264 [\\/$]*) false;;
34265 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34266 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000034267 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034268 esac
34269 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034270 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034271 done
34272
34273 # Let's still pretend it is `configure' which instantiates (i.e., don't
34274 # use $as_me), people would be surprised to read:
34275 # /* config.h. Generated by config.status. */
34276 configure_input='Generated from '`
34277 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34278 `' by configure.'
34279 if test x"$ac_file" != x-; then
34280 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo "$as_me: creating $ac_file" >&6;}
34283 fi
34284 # Neutralize special characters interpreted by sed in replacement strings.
34285 case $configure_input in #(
34286 *\&* | *\|* | *\\* )
34287 ac_sed_conf_input=`$as_echo "$configure_input" |
34288 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34289 *) ac_sed_conf_input=$configure_input;;
34290 esac
34291
34292 case $ac_tag in
34293 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000034294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034295 esac
34296 ;;
34297 esac
34298
34299 ac_dir=`$as_dirname -- "$ac_file" ||
34300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34301 X"$ac_file" : 'X\(//\)[^/]' \| \
34302 X"$ac_file" : 'X\(//\)$' \| \
34303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34304$as_echo X"$ac_file" |
34305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34306 s//\1/
34307 q
34308 }
34309 /^X\(\/\/\)[^/].*/{
34310 s//\1/
34311 q
34312 }
34313 /^X\(\/\/\)$/{
34314 s//\1/
34315 q
34316 }
34317 /^X\(\/\).*/{
34318 s//\1/
34319 q
34320 }
34321 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034322 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034323 ac_builddir=.
34324
34325case "$ac_dir" in
34326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34327*)
34328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34329 # A ".." for each directory in $ac_dir_suffix.
34330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34331 case $ac_top_builddir_sub in
34332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34334 esac ;;
34335esac
34336ac_abs_top_builddir=$ac_pwd
34337ac_abs_builddir=$ac_pwd$ac_dir_suffix
34338# for backward compatibility:
34339ac_top_builddir=$ac_top_build_prefix
34340
34341case $srcdir in
34342 .) # We are building in place.
34343 ac_srcdir=.
34344 ac_top_srcdir=$ac_top_builddir_sub
34345 ac_abs_top_srcdir=$ac_pwd ;;
34346 [\\/]* | ?:[\\/]* ) # Absolute name.
34347 ac_srcdir=$srcdir$ac_dir_suffix;
34348 ac_top_srcdir=$srcdir
34349 ac_abs_top_srcdir=$srcdir ;;
34350 *) # Relative name.
34351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34352 ac_top_srcdir=$ac_top_build_prefix$srcdir
34353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34354esac
34355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34356
34357
34358 case $ac_mode in
34359 :F)
34360 #
34361 # CONFIG_FILE
34362 #
34363
34364 case $INSTALL in
34365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34367 esac
34368 ac_MKDIR_P=$MKDIR_P
34369 case $MKDIR_P in
34370 [\\/$]* | ?:[\\/]* ) ;;
34371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34372 esac
34373_ACEOF
34374
34375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34376# If the template does not know about datarootdir, expand it.
34377# FIXME: This hack should be removed a few years after 2.60.
34378ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034379ac_sed_dataroot='
34380/datarootdir/ {
34381 p
34382 q
34383}
34384/@datadir@/p
34385/@docdir@/p
34386/@infodir@/p
34387/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034388/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034389case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34390*datarootdir*) ac_datarootdir_seen=yes;;
34391*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034393$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34394_ACEOF
34395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34396 ac_datarootdir_hack='
34397 s&@datadir@&$datadir&g
34398 s&@docdir@&$docdir&g
34399 s&@infodir@&$infodir&g
34400 s&@localedir@&$localedir&g
34401 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034402 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034403esac
34404_ACEOF
34405
34406# Neutralize VPATH when `$srcdir' = `.'.
34407# Shell code in configure.ac might set extrasub.
34408# FIXME: do we really want to maintain this feature?
34409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34410ac_sed_extra="$ac_vpsub
34411$extrasub
34412_ACEOF
34413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34414:t
34415/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34416s|@configure_input@|$ac_sed_conf_input|;t t
34417s&@top_builddir@&$ac_top_builddir_sub&;t t
34418s&@top_build_prefix@&$ac_top_build_prefix&;t t
34419s&@srcdir@&$ac_srcdir&;t t
34420s&@abs_srcdir@&$ac_abs_srcdir&;t t
34421s&@top_srcdir@&$ac_top_srcdir&;t t
34422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34423s&@builddir@&$ac_builddir&;t t
34424s&@abs_builddir@&$ac_abs_builddir&;t t
34425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34426s&@INSTALL@&$ac_INSTALL&;t t
34427s&@MKDIR_P@&$ac_MKDIR_P&;t t
34428$ac_datarootdir_hack
34429"
34430eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034432
34433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34434 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034437which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034439which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034440
34441 rm -f "$tmp/stdin"
34442 case $ac_file in
34443 -) cat "$tmp/out" && rm -f "$tmp/out";;
34444 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34445 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034447 ;;
34448 :H)
34449 #
34450 # CONFIG_HEADER
34451 #
34452 if test x"$ac_file" != x-; then
34453 {
34454 $as_echo "/* $configure_input */" \
34455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34456 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034458 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo "$as_me: $ac_file is unchanged" >&6;}
34461 else
34462 rm -f "$ac_file"
34463 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034465 fi
34466 else
34467 $as_echo "/* $configure_input */" \
34468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034469 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034470 fi
34471# Compute "$ac_file"'s index in $config_headers.
34472_am_arg="$ac_file"
34473_am_stamp_count=1
34474for _am_header in $config_headers :; do
34475 case $_am_header in
34476 $_am_arg | $_am_arg:* )
34477 break ;;
34478 * )
34479 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34480 esac
34481done
34482echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34483$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34484 X"$_am_arg" : 'X\(//\)[^/]' \| \
34485 X"$_am_arg" : 'X\(//\)$' \| \
34486 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34487$as_echo X"$_am_arg" |
34488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34489 s//\1/
34490 q
34491 }
34492 /^X\(\/\/\)[^/].*/{
34493 s//\1/
34494 q
34495 }
34496 /^X\(\/\/\)$/{
34497 s//\1/
34498 q
34499 }
34500 /^X\(\/\).*/{
34501 s//\1/
34502 q
34503 }
34504 s/.*/./; q'`/stamp-h$_am_stamp_count
34505 ;;
34506
cristy8b350f62009-11-15 23:12:43 +000034507 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508$as_echo "$as_me: executing $ac_file commands" >&6;}
34509 ;;
34510 esac
34511
34512
34513 case $ac_file$ac_mode in
34514 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34515ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34516ac_prefix_conf_PKG=`echo MagickCore`
34517ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34518ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34519ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34520if test ".$ac_prefix_conf_INP" = "."; then
34521 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34522 case "$ac_file" in
34523 *.h) ac_prefix_conf_INP=$ac_file ;;
34524 *)
34525 esac
34526 test ".$ac_prefix_conf_INP" != "." && break
34527 done
34528fi
34529if test ".$ac_prefix_conf_INP" = "."; then
34530 case "$ac_prefix_conf_OUT" in
34531 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34532 ;;
34533 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34534 ;;
34535 *) ac_prefix_conf_INP=config.h
34536 ;;
34537 esac
34538fi
34539if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034540 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034541else
34542 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34543 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34544 fi fi
cristy8b350f62009-11-15 23:12:43 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000034546$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34547 if test -f $ac_prefix_conf_INP ; then
34548 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34549 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034550 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34551 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034552 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034553 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34554 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034555 echo "#endif/" >> conftest.prefix
34556 # now executing _script on _DEF input to create _OUT output file
34557 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34558 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34559 echo ' ' >>$tmp/pconfig.h
34560 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34561
34562 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34563 echo ' ' >>$tmp/pconfig.h
34564 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34565 echo "#endif" >>$tmp/pconfig.h
34566 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34569 else
34570 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34571$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34572 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34573 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34574 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34575$as_echo X"$ac_prefix_conf_OUT" |
34576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34577 s//\1/
34578 q
34579 }
34580 /^X\(\/\/\)[^/].*/{
34581 s//\1/
34582 q
34583 }
34584 /^X\(\/\/\)$/{
34585 s//\1/
34586 q
34587 }
34588 /^X\(\/\).*/{
34589 s//\1/
34590 q
34591 }
34592 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034593 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034594 rm -f "$ac_prefix_conf_OUT"
34595 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34596 fi
34597 cp conftest.prefix _configs.sed
34598 else
cristyfd9dcd42010-08-08 18:07:02 +000034599 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034600 fi
34601 rm -f conftest.*
34602fi
34603 ;;
34604 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34605 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34606 # are listed without --file. Let's play safe and only enable the eval
34607 # if we detect the quoting.
34608 case $CONFIG_FILES in
34609 *\'*) eval set x "$CONFIG_FILES" ;;
34610 *) set x $CONFIG_FILES ;;
34611 esac
34612 shift
34613 for mf
34614 do
34615 # Strip MF so we end up with the name of the file.
34616 mf=`echo "$mf" | sed -e 's/:.*$//'`
34617 # Check whether this is an Automake generated Makefile or not.
34618 # We used to match only the files named `Makefile.in', but
34619 # some people rename them; so instead we look at the file content.
34620 # Grep'ing the first line is not enough: some people post-process
34621 # each Makefile.in and add a new line on top of each file to say so.
34622 # Grep'ing the whole file is not good either: AIX grep has a line
34623 # limit of 2048, but all sed's we know have understand at least 4000.
34624 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34625 dirpart=`$as_dirname -- "$mf" ||
34626$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34627 X"$mf" : 'X\(//\)[^/]' \| \
34628 X"$mf" : 'X\(//\)$' \| \
34629 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34630$as_echo X"$mf" |
34631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34632 s//\1/
34633 q
34634 }
34635 /^X\(\/\/\)[^/].*/{
34636 s//\1/
34637 q
34638 }
34639 /^X\(\/\/\)$/{
34640 s//\1/
34641 q
34642 }
34643 /^X\(\/\).*/{
34644 s//\1/
34645 q
34646 }
34647 s/.*/./; q'`
34648 else
34649 continue
34650 fi
34651 # Extract the definition of DEPDIR, am__include, and am__quote
34652 # from the Makefile without running `make'.
34653 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34654 test -z "$DEPDIR" && continue
34655 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34656 test -z "am__include" && continue
34657 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34658 # When using ansi2knr, U may be empty or an underscore; expand it
34659 U=`sed -n 's/^U = //p' < "$mf"`
34660 # Find all dependency output files, they are included files with
34661 # $(DEPDIR) in their names. We invoke sed twice because it is the
34662 # simplest approach to changing $(DEPDIR) to its actual value in the
34663 # expansion.
34664 for file in `sed -n "
34665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34667 # Make sure the directory exists.
34668 test -f "$dirpart/$file" && continue
34669 fdir=`$as_dirname -- "$file" ||
34670$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34671 X"$file" : 'X\(//\)[^/]' \| \
34672 X"$file" : 'X\(//\)$' \| \
34673 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34674$as_echo X"$file" |
34675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34676 s//\1/
34677 q
34678 }
34679 /^X\(\/\/\)[^/].*/{
34680 s//\1/
34681 q
34682 }
34683 /^X\(\/\/\)$/{
34684 s//\1/
34685 q
34686 }
34687 /^X\(\/\).*/{
34688 s//\1/
34689 q
34690 }
34691 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034692 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034693 # echo "creating $dirpart/$file"
34694 echo '# dummy' > "$dirpart/$file"
34695 done
34696 done
34697}
34698 ;;
34699 "libtool":C)
34700
34701 # See if we are running on zsh, and set the options which allow our
34702 # commands through without removal of \ escapes.
34703 if test -n "${ZSH_VERSION+set}" ; then
34704 setopt NO_GLOB_SUBST
34705 fi
34706
34707 cfgfile="${ofile}T"
34708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34709 $RM "$cfgfile"
34710
34711 cat <<_LT_EOF >> "$cfgfile"
34712#! $SHELL
34713
34714# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34715# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34716# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34717# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34718#
34719# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034720# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34721# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034722# Written by Gordon Matzigkeit, 1996
34723#
34724# This file is part of GNU Libtool.
34725#
34726# GNU Libtool is free software; you can redistribute it and/or
34727# modify it under the terms of the GNU General Public License as
34728# published by the Free Software Foundation; either version 2 of
34729# the License, or (at your option) any later version.
34730#
34731# As a special exception to the GNU General Public License,
34732# if you distribute this file as part of a program or library that
34733# is built using GNU Libtool, you may include this file under the
34734# same distribution terms that you use for the rest of that program.
34735#
34736# GNU Libtool is distributed in the hope that it will be useful,
34737# but WITHOUT ANY WARRANTY; without even the implied warranty of
34738# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34739# GNU General Public License for more details.
34740#
34741# You should have received a copy of the GNU General Public License
34742# along with GNU Libtool; see the file COPYING. If not, a copy
34743# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34744# obtained by writing to the Free Software Foundation, Inc.,
34745# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34746
34747
34748# The names of the tagged configurations supported by this script.
34749available_tags="CXX "
34750
34751# ### BEGIN LIBTOOL CONFIG
34752
34753# A sed program that does not truncate output.
34754SED=$lt_SED
34755
34756# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34757Xsed="\$SED -e 1s/^X//"
34758
34759# A grep program that handles long lines.
34760GREP=$lt_GREP
34761
34762# An ERE matcher.
34763EGREP=$lt_EGREP
34764
34765# A literal string matcher.
34766FGREP=$lt_FGREP
34767
cristyfd9dcd42010-08-08 18:07:02 +000034768# Shell to use when invoking shell scripts.
34769SHELL=$lt_SHELL
34770
34771# An echo program that protects backslashes.
34772ECHO=$lt_ECHO
34773
cristy3ed852e2009-09-05 21:47:34 +000034774# Which release of libtool.m4 was used?
34775macro_version=$macro_version
34776macro_revision=$macro_revision
34777
34778# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034779AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034780
34781# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034782DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034783
34784# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034785OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034786
34787# Whether or not to build shared libraries.
34788build_libtool_libs=$enable_shared
34789
34790# Whether or not to build static libraries.
34791build_old_libs=$enable_static
34792
34793# What type of objects to build.
34794pic_mode=$pic_mode
34795
34796# Whether or not to optimize for fast installation.
34797fast_install=$enable_fast_install
34798
34799# The host system.
34800host_alias=$host_alias
34801host=$host
34802host_os=$host_os
34803
34804# The build system.
34805build_alias=$build_alias
34806build=$build
34807build_os=$build_os
34808
34809# A BSD- or MS-compatible name lister.
34810NM=$lt_NM
34811
34812# Whether we need soft or hard links.
34813LN_S=$lt_LN_S
34814
34815# What is the maximum length of a command?
34816max_cmd_len=$max_cmd_len
34817
34818# Object file suffix (normally "o").
34819objext=$ac_objext
34820
34821# Executable file suffix (normally "").
34822exeext=$exeext
34823
34824# whether the shell understands "unset".
34825lt_unset=$lt_unset
34826
34827# turn spaces into newlines.
34828SP2NL=$lt_lt_SP2NL
34829
34830# turn newlines into spaces.
34831NL2SP=$lt_lt_NL2SP
34832
cristy3ed852e2009-09-05 21:47:34 +000034833# Method to check whether dependent libraries are shared objects.
34834deplibs_check_method=$lt_deplibs_check_method
34835
34836# Command to use when deplibs_check_method == "file_magic".
34837file_magic_cmd=$lt_file_magic_cmd
34838
34839# The archiver.
34840AR=$lt_AR
34841AR_FLAGS=$lt_AR_FLAGS
34842
34843# A symbol stripping program.
34844STRIP=$lt_STRIP
34845
34846# Commands used to install an old-style archive.
34847RANLIB=$lt_RANLIB
34848old_postinstall_cmds=$lt_old_postinstall_cmds
34849old_postuninstall_cmds=$lt_old_postuninstall_cmds
34850
cristyfd9dcd42010-08-08 18:07:02 +000034851# Whether to use a lock for old archive extraction.
34852lock_old_archive_extraction=$lock_old_archive_extraction
34853
cristy3ed852e2009-09-05 21:47:34 +000034854# A C compiler.
34855LTCC=$lt_CC
34856
34857# LTCC compiler flags.
34858LTCFLAGS=$lt_CFLAGS
34859
34860# Take the output of nm and produce a listing of raw symbols and C names.
34861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34862
34863# Transform the output of nm in a proper C declaration.
34864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34865
34866# Transform the output of nm in a C name address pair.
34867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34868
34869# Transform the output of nm in a C name address pair when lib prefix is needed.
34870global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34871
34872# The name of the directory that contains temporary libtool files.
34873objdir=$objdir
34874
cristy3ed852e2009-09-05 21:47:34 +000034875# Used to examine libraries when file_magic_cmd begins with "file".
34876MAGIC_CMD=$MAGIC_CMD
34877
34878# Must we lock files when doing compilation?
34879need_locks=$lt_need_locks
34880
34881# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34882DSYMUTIL=$lt_DSYMUTIL
34883
34884# Tool to change global to local symbols on Mac OS X.
34885NMEDIT=$lt_NMEDIT
34886
34887# Tool to manipulate fat objects and archives on Mac OS X.
34888LIPO=$lt_LIPO
34889
34890# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34891OTOOL=$lt_OTOOL
34892
34893# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34894OTOOL64=$lt_OTOOL64
34895
34896# Old archive suffix (normally "a").
34897libext=$libext
34898
34899# Shared library suffix (normally ".so").
34900shrext_cmds=$lt_shrext_cmds
34901
34902# The commands to extract the exported symbol list from a shared archive.
34903extract_expsyms_cmds=$lt_extract_expsyms_cmds
34904
34905# Variables whose values should be saved in libtool wrapper scripts and
34906# restored at link time.
34907variables_saved_for_relink=$lt_variables_saved_for_relink
34908
34909# Do we need the "lib" prefix for modules?
34910need_lib_prefix=$need_lib_prefix
34911
34912# Do we need a version for libraries?
34913need_version=$need_version
34914
34915# Library versioning type.
34916version_type=$version_type
34917
34918# Shared library runtime path variable.
34919runpath_var=$runpath_var
34920
34921# Shared library path variable.
34922shlibpath_var=$shlibpath_var
34923
34924# Is shlibpath searched before the hard-coded library search path?
34925shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34926
34927# Format of library name prefix.
34928libname_spec=$lt_libname_spec
34929
34930# List of archive names. First name is the real one, the rest are links.
34931# The last name is the one that the linker finds with -lNAME
34932library_names_spec=$lt_library_names_spec
34933
34934# The coded name of the library, if different from the real name.
34935soname_spec=$lt_soname_spec
34936
cristyfd9dcd42010-08-08 18:07:02 +000034937# Permission mode override for installation of shared libraries.
34938install_override_mode=$lt_install_override_mode
34939
cristy3ed852e2009-09-05 21:47:34 +000034940# Command to use after installation of a shared archive.
34941postinstall_cmds=$lt_postinstall_cmds
34942
34943# Command to use after uninstallation of a shared archive.
34944postuninstall_cmds=$lt_postuninstall_cmds
34945
34946# Commands used to finish a libtool library installation in a directory.
34947finish_cmds=$lt_finish_cmds
34948
34949# As "finish_cmds", except a single script fragment to be evaled but
34950# not shown.
34951finish_eval=$lt_finish_eval
34952
34953# Whether we should hardcode library paths into libraries.
34954hardcode_into_libs=$hardcode_into_libs
34955
34956# Compile-time system search path for libraries.
34957sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34958
34959# Run-time system search path for libraries.
34960sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34961
34962# Whether dlopen is supported.
34963dlopen_support=$enable_dlopen
34964
34965# Whether dlopen of programs is supported.
34966dlopen_self=$enable_dlopen_self
34967
34968# Whether dlopen of statically linked programs is supported.
34969dlopen_self_static=$enable_dlopen_self_static
34970
34971# Commands to strip libraries.
34972old_striplib=$lt_old_striplib
34973striplib=$lt_striplib
34974
34975
34976# The linker used to build libraries.
34977LD=$lt_LD
34978
cristyfd9dcd42010-08-08 18:07:02 +000034979# How to create reloadable object files.
34980reload_flag=$lt_reload_flag
34981reload_cmds=$lt_reload_cmds
34982
cristy3ed852e2009-09-05 21:47:34 +000034983# Commands used to build an old-style archive.
34984old_archive_cmds=$lt_old_archive_cmds
34985
34986# A language specific compiler.
34987CC=$lt_compiler
34988
34989# Is the compiler the GNU compiler?
34990with_gcc=$GCC
34991
34992# Compiler flag to turn off builtin functions.
34993no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34994
34995# How to pass a linker flag through the compiler.
34996wl=$lt_lt_prog_compiler_wl
34997
34998# Additional compiler flags for building library objects.
34999pic_flag=$lt_lt_prog_compiler_pic
35000
35001# Compiler flag to prevent dynamic linking.
35002link_static_flag=$lt_lt_prog_compiler_static
35003
35004# Does compiler simultaneously support -c and -o options?
35005compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35006
35007# Whether or not to add -lc for building shared libraries.
35008build_libtool_need_lc=$archive_cmds_need_lc
35009
35010# Whether or not to disallow shared libs when runtime libs are static.
35011allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35012
35013# Compiler flag to allow reflexive dlopens.
35014export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35015
35016# Compiler flag to generate shared objects directly from archives.
35017whole_archive_flag_spec=$lt_whole_archive_flag_spec
35018
35019# Whether the compiler copes with passing no objects directly.
35020compiler_needs_object=$lt_compiler_needs_object
35021
35022# Create an old-style archive from a shared archive.
35023old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35024
35025# Create a temporary old-style archive to link instead of a shared archive.
35026old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35027
35028# Commands used to build a shared archive.
35029archive_cmds=$lt_archive_cmds
35030archive_expsym_cmds=$lt_archive_expsym_cmds
35031
35032# Commands used to build a loadable module if different from building
35033# a shared archive.
35034module_cmds=$lt_module_cmds
35035module_expsym_cmds=$lt_module_expsym_cmds
35036
35037# Whether we are building with GNU ld or not.
35038with_gnu_ld=$lt_with_gnu_ld
35039
35040# Flag that allows shared libraries with undefined symbols to be built.
35041allow_undefined_flag=$lt_allow_undefined_flag
35042
35043# Flag that enforces no undefined symbols.
35044no_undefined_flag=$lt_no_undefined_flag
35045
35046# Flag to hardcode \$libdir into a binary during linking.
35047# This must work even if \$libdir does not exist
35048hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35049
35050# If ld is used when linking, flag to hardcode \$libdir into a binary
35051# during linking. This must work even if \$libdir does not exist.
35052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35053
35054# Whether we need a single "-rpath" flag with a separated argument.
35055hardcode_libdir_separator=$lt_hardcode_libdir_separator
35056
35057# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35058# DIR into the resulting binary.
35059hardcode_direct=$hardcode_direct
35060
35061# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35062# DIR into the resulting binary and the resulting library dependency is
35063# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35064# library is relocated.
35065hardcode_direct_absolute=$hardcode_direct_absolute
35066
35067# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35068# into the resulting binary.
35069hardcode_minus_L=$hardcode_minus_L
35070
35071# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35072# into the resulting binary.
35073hardcode_shlibpath_var=$hardcode_shlibpath_var
35074
35075# Set to "yes" if building a shared library automatically hardcodes DIR
35076# into the library and all subsequent libraries and executables linked
35077# against it.
35078hardcode_automatic=$hardcode_automatic
35079
35080# Set to yes if linker adds runtime paths of dependent libraries
35081# to runtime path list.
35082inherit_rpath=$inherit_rpath
35083
35084# Whether libtool must link a program against all its dependency libraries.
35085link_all_deplibs=$link_all_deplibs
35086
35087# Fix the shell variable \$srcfile for the compiler.
35088fix_srcfile_path=$lt_fix_srcfile_path
35089
35090# Set to "yes" if exported symbols are required.
35091always_export_symbols=$always_export_symbols
35092
35093# The commands to list exported symbols.
35094export_symbols_cmds=$lt_export_symbols_cmds
35095
35096# Symbols that should not be listed in the preloaded symbols.
35097exclude_expsyms=$lt_exclude_expsyms
35098
35099# Symbols that must always be exported.
35100include_expsyms=$lt_include_expsyms
35101
35102# Commands necessary for linking programs (against libraries) with templates.
35103prelink_cmds=$lt_prelink_cmds
35104
35105# Specify filename containing input files.
35106file_list_spec=$lt_file_list_spec
35107
35108# How to hardcode a shared library path into an executable.
35109hardcode_action=$hardcode_action
35110
35111# The directories searched by this compiler when creating a shared library.
35112compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35113
35114# Dependencies to place before and after the objects being linked to
35115# create a shared library.
35116predep_objects=$lt_predep_objects
35117postdep_objects=$lt_postdep_objects
35118predeps=$lt_predeps
35119postdeps=$lt_postdeps
35120
35121# The library search path used internally by the compiler when linking
35122# a shared library.
35123compiler_lib_search_path=$lt_compiler_lib_search_path
35124
35125# ### END LIBTOOL CONFIG
35126
35127_LT_EOF
35128
35129 case $host_os in
35130 aix3*)
35131 cat <<\_LT_EOF >> "$cfgfile"
35132# AIX sometimes has problems with the GCC collect2 program. For some
35133# reason, if we set the COLLECT_NAMES environment variable, the problems
35134# vanish in a puff of smoke.
35135if test "X${COLLECT_NAMES+set}" != Xset; then
35136 COLLECT_NAMES=
35137 export COLLECT_NAMES
35138fi
35139_LT_EOF
35140 ;;
35141 esac
35142
35143
35144ltmain="$ac_aux_dir/ltmain.sh"
35145
35146
35147 # We use sed instead of cat because bash on DJGPP gets confused if
35148 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35149 # text mode, it properly converts lines to CR/LF. This bash problem
35150 # is reportedly fixed, but why not run on old versions too?
35151 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35152 || (rm -f "$cfgfile"; exit 1)
35153
35154 case $xsi_shell in
35155 yes)
35156 cat << \_LT_EOF >> "$cfgfile"
35157
35158# func_dirname file append nondir_replacement
35159# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35160# otherwise set result to NONDIR_REPLACEMENT.
35161func_dirname ()
35162{
35163 case ${1} in
35164 */*) func_dirname_result="${1%/*}${2}" ;;
35165 * ) func_dirname_result="${3}" ;;
35166 esac
35167}
35168
35169# func_basename file
35170func_basename ()
35171{
35172 func_basename_result="${1##*/}"
35173}
35174
35175# func_dirname_and_basename file append nondir_replacement
35176# perform func_basename and func_dirname in a single function
35177# call:
35178# dirname: Compute the dirname of FILE. If nonempty,
35179# add APPEND to the result, otherwise set result
35180# to NONDIR_REPLACEMENT.
35181# value returned in "$func_dirname_result"
35182# basename: Compute filename of FILE.
35183# value retuned in "$func_basename_result"
35184# Implementation must be kept synchronized with func_dirname
35185# and func_basename. For efficiency, we do not delegate to
35186# those functions but instead duplicate the functionality here.
35187func_dirname_and_basename ()
35188{
35189 case ${1} in
35190 */*) func_dirname_result="${1%/*}${2}" ;;
35191 * ) func_dirname_result="${3}" ;;
35192 esac
35193 func_basename_result="${1##*/}"
35194}
35195
35196# func_stripname prefix suffix name
35197# strip PREFIX and SUFFIX off of NAME.
35198# PREFIX and SUFFIX must not contain globbing or regex special
35199# characters, hashes, percent signs, but SUFFIX may contain a leading
35200# dot (in which case that matches only a dot).
35201func_stripname ()
35202{
35203 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35204 # positional parameters, so assign one to ordinary parameter first.
35205 func_stripname_result=${3}
35206 func_stripname_result=${func_stripname_result#"${1}"}
35207 func_stripname_result=${func_stripname_result%"${2}"}
35208}
35209
35210# func_opt_split
35211func_opt_split ()
35212{
35213 func_opt_split_opt=${1%%=*}
35214 func_opt_split_arg=${1#*=}
35215}
35216
35217# func_lo2o object
35218func_lo2o ()
35219{
35220 case ${1} in
35221 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35222 *) func_lo2o_result=${1} ;;
35223 esac
35224}
35225
35226# func_xform libobj-or-source
35227func_xform ()
35228{
35229 func_xform_result=${1%.*}.lo
35230}
35231
35232# func_arith arithmetic-term...
35233func_arith ()
35234{
35235 func_arith_result=$(( $* ))
35236}
35237
35238# func_len string
35239# STRING may not start with a hyphen.
35240func_len ()
35241{
35242 func_len_result=${#1}
35243}
35244
35245_LT_EOF
35246 ;;
35247 *) # Bourne compatible functions.
35248 cat << \_LT_EOF >> "$cfgfile"
35249
35250# func_dirname file append nondir_replacement
35251# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35252# otherwise set result to NONDIR_REPLACEMENT.
35253func_dirname ()
35254{
35255 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035256 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035257 if test "X$func_dirname_result" = "X${1}"; then
35258 func_dirname_result="${3}"
35259 else
35260 func_dirname_result="$func_dirname_result${2}"
35261 fi
35262}
35263
35264# func_basename file
35265func_basename ()
35266{
cristyfd9dcd42010-08-08 18:07:02 +000035267 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035268}
35269
35270
35271# func_stripname prefix suffix name
35272# strip PREFIX and SUFFIX off of NAME.
35273# PREFIX and SUFFIX must not contain globbing or regex special
35274# characters, hashes, percent signs, but SUFFIX may contain a leading
35275# dot (in which case that matches only a dot).
35276# func_strip_suffix prefix name
35277func_stripname ()
35278{
35279 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035280 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35281 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035282 esac
35283}
35284
35285# sed scripts:
35286my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35287my_sed_long_arg='1s/^-[^=]*=//'
35288
35289# func_opt_split
35290func_opt_split ()
35291{
cristyfd9dcd42010-08-08 18:07:02 +000035292 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35293 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035294}
35295
35296# func_lo2o object
35297func_lo2o ()
35298{
cristyfd9dcd42010-08-08 18:07:02 +000035299 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035300}
35301
35302# func_xform libobj-or-source
35303func_xform ()
35304{
cristyfd9dcd42010-08-08 18:07:02 +000035305 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035306}
35307
35308# func_arith arithmetic-term...
35309func_arith ()
35310{
35311 func_arith_result=`expr "$@"`
35312}
35313
35314# func_len string
35315# STRING may not start with a hyphen.
35316func_len ()
35317{
35318 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35319}
35320
35321_LT_EOF
35322esac
35323
35324case $lt_shell_append in
35325 yes)
35326 cat << \_LT_EOF >> "$cfgfile"
35327
35328# func_append var value
35329# Append VALUE to the end of shell variable VAR.
35330func_append ()
35331{
35332 eval "$1+=\$2"
35333}
35334_LT_EOF
35335 ;;
35336 *)
35337 cat << \_LT_EOF >> "$cfgfile"
35338
35339# func_append var value
35340# Append VALUE to the end of shell variable VAR.
35341func_append ()
35342{
35343 eval "$1=\$$1\$2"
35344}
35345
35346_LT_EOF
35347 ;;
35348 esac
35349
35350
35351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35352 || (rm -f "$cfgfile"; exit 1)
35353
35354 mv -f "$cfgfile" "$ofile" ||
35355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35356 chmod +x "$ofile"
35357
35358
35359 cat <<_LT_EOF >> "$ofile"
35360
35361# ### BEGIN LIBTOOL TAG CONFIG: CXX
35362
35363# The linker used to build libraries.
35364LD=$lt_LD_CXX
35365
cristyfd9dcd42010-08-08 18:07:02 +000035366# How to create reloadable object files.
35367reload_flag=$lt_reload_flag_CXX
35368reload_cmds=$lt_reload_cmds_CXX
35369
cristy3ed852e2009-09-05 21:47:34 +000035370# Commands used to build an old-style archive.
35371old_archive_cmds=$lt_old_archive_cmds_CXX
35372
35373# A language specific compiler.
35374CC=$lt_compiler_CXX
35375
35376# Is the compiler the GNU compiler?
35377with_gcc=$GCC_CXX
35378
35379# Compiler flag to turn off builtin functions.
35380no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35381
35382# How to pass a linker flag through the compiler.
35383wl=$lt_lt_prog_compiler_wl_CXX
35384
35385# Additional compiler flags for building library objects.
35386pic_flag=$lt_lt_prog_compiler_pic_CXX
35387
35388# Compiler flag to prevent dynamic linking.
35389link_static_flag=$lt_lt_prog_compiler_static_CXX
35390
35391# Does compiler simultaneously support -c and -o options?
35392compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35393
35394# Whether or not to add -lc for building shared libraries.
35395build_libtool_need_lc=$archive_cmds_need_lc_CXX
35396
35397# Whether or not to disallow shared libs when runtime libs are static.
35398allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35399
35400# Compiler flag to allow reflexive dlopens.
35401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35402
35403# Compiler flag to generate shared objects directly from archives.
35404whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35405
35406# Whether the compiler copes with passing no objects directly.
35407compiler_needs_object=$lt_compiler_needs_object_CXX
35408
35409# Create an old-style archive from a shared archive.
35410old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35411
35412# Create a temporary old-style archive to link instead of a shared archive.
35413old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35414
35415# Commands used to build a shared archive.
35416archive_cmds=$lt_archive_cmds_CXX
35417archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35418
35419# Commands used to build a loadable module if different from building
35420# a shared archive.
35421module_cmds=$lt_module_cmds_CXX
35422module_expsym_cmds=$lt_module_expsym_cmds_CXX
35423
35424# Whether we are building with GNU ld or not.
35425with_gnu_ld=$lt_with_gnu_ld_CXX
35426
35427# Flag that allows shared libraries with undefined symbols to be built.
35428allow_undefined_flag=$lt_allow_undefined_flag_CXX
35429
35430# Flag that enforces no undefined symbols.
35431no_undefined_flag=$lt_no_undefined_flag_CXX
35432
35433# Flag to hardcode \$libdir into a binary during linking.
35434# This must work even if \$libdir does not exist
35435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35436
35437# If ld is used when linking, flag to hardcode \$libdir into a binary
35438# during linking. This must work even if \$libdir does not exist.
35439hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35440
35441# Whether we need a single "-rpath" flag with a separated argument.
35442hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35443
35444# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35445# DIR into the resulting binary.
35446hardcode_direct=$hardcode_direct_CXX
35447
35448# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35449# DIR into the resulting binary and the resulting library dependency is
35450# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35451# library is relocated.
35452hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35453
35454# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35455# into the resulting binary.
35456hardcode_minus_L=$hardcode_minus_L_CXX
35457
35458# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35459# into the resulting binary.
35460hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35461
35462# Set to "yes" if building a shared library automatically hardcodes DIR
35463# into the library and all subsequent libraries and executables linked
35464# against it.
35465hardcode_automatic=$hardcode_automatic_CXX
35466
35467# Set to yes if linker adds runtime paths of dependent libraries
35468# to runtime path list.
35469inherit_rpath=$inherit_rpath_CXX
35470
35471# Whether libtool must link a program against all its dependency libraries.
35472link_all_deplibs=$link_all_deplibs_CXX
35473
35474# Fix the shell variable \$srcfile for the compiler.
35475fix_srcfile_path=$lt_fix_srcfile_path_CXX
35476
35477# Set to "yes" if exported symbols are required.
35478always_export_symbols=$always_export_symbols_CXX
35479
35480# The commands to list exported symbols.
35481export_symbols_cmds=$lt_export_symbols_cmds_CXX
35482
35483# Symbols that should not be listed in the preloaded symbols.
35484exclude_expsyms=$lt_exclude_expsyms_CXX
35485
35486# Symbols that must always be exported.
35487include_expsyms=$lt_include_expsyms_CXX
35488
35489# Commands necessary for linking programs (against libraries) with templates.
35490prelink_cmds=$lt_prelink_cmds_CXX
35491
35492# Specify filename containing input files.
35493file_list_spec=$lt_file_list_spec_CXX
35494
35495# How to hardcode a shared library path into an executable.
35496hardcode_action=$hardcode_action_CXX
35497
35498# The directories searched by this compiler when creating a shared library.
35499compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35500
35501# Dependencies to place before and after the objects being linked to
35502# create a shared library.
35503predep_objects=$lt_predep_objects_CXX
35504postdep_objects=$lt_postdep_objects_CXX
35505predeps=$lt_predeps_CXX
35506postdeps=$lt_postdeps_CXX
35507
35508# The library search path used internally by the compiler when linking
35509# a shared library.
35510compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35511
35512# ### END LIBTOOL TAG CONFIG: CXX
35513_LT_EOF
35514
35515 ;;
35516 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35517 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35518 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35519 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35520 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35521 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35522
35523 esac
35524done # for ac_tag
35525
35526
cristy8b350f62009-11-15 23:12:43 +000035527as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035528_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035529ac_clean_files=$ac_clean_files_save
35530
35531test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035532 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035533
35534
35535# configure is writing to config.log, and then calls config.status.
35536# config.status does its own redirection, appending to config.log.
35537# Unfortunately, on DOS this fails, as config.log is still kept open
35538# by configure, so config.status won't be able to write to it; its
35539# output is simply discarded. So we exec the FD to /dev/null,
35540# effectively closing config.log, so it can be properly (re)opened and
35541# appended to by config.status. When coming back to configure, we
35542# need to make the FD available again.
35543if test "$no_create" != yes; then
35544 ac_cs_success=:
35545 ac_config_status_args=
35546 test "$silent" = yes &&
35547 ac_config_status_args="$ac_config_status_args --quiet"
35548 exec 5>/dev/null
35549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35550 exec 5>>config.log
35551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35552 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035553 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035554fi
35555if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035557$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35558fi
35559
35560
35561rm -f magick-version
35562
cristy430a7312010-01-21 20:44:04 +000035563result_dejavu_font_dir='none'
35564if test "${dejavu_font_dir}x" != 'x'; then
35565 result_dejavu_font_dir=$dejavu_font_dir
35566fi
35567
cristy3ed852e2009-09-05 21:47:34 +000035568result_ghostscript_font_dir='none'
35569if test "${ghostscript_font_dir}x" != 'x'; then
35570 result_ghostscript_font_dir=$ghostscript_font_dir
35571fi
35572
35573result_windows_font_dir='none'
35574if test "${windows_font_dir}x" != 'x'; then
35575 result_windows_font_dir=${windows_font_dir}
35576fi
35577
cristy8b350f62009-11-15 23:12:43 +000035578{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035579ImageMagick is configured as follows. Please verify that this configuration
35580matches your expectations.
35581
35582Host system type: $host
35583Build system type: $build
35584
35585 Option Value
35586-------------------------------------------------------------------------------
35587Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35588Static libraries --enable-static=$enable_static $libtool_build_static_libs
35589Module support --with-modules=$with_modules $with_modules
35590GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35591Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35592High Dynamic Range Imagery
35593 --enable-hdri=$enable_hdri $enable_hdri
35594
35595Delegate Configuration:
35596BZLIB --with-bzlib=$with_bzlib $have_bzlib
35597Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035598Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035599DJVU --with-djvu=$with_djvu $have_djvu
35600DPS --with-dps=$with_dps $have_dps
35601FFTW --with-fftw=$with_fftw $have_fftw
35602FlashPIX --with-fpx=$with_fpx $have_fpx
35603FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35604FreeType --with-freetype=$with_freetype $have_freetype
35605GhostPCL None $PCLDelegate ($PCLVersion)
35606GhostXPS None $XPSDelegate ($XPSVersion)
35607Ghostscript None $PSDelegate ($GSVersion)
35608Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35609Ghostscript lib --with-gslib=$with_gslib $have_gslib
35610Graphviz --with-gvc=$with_gvc $have_gvc
35611JBIG --with-jbig=$with_jbig $have_jbig
35612JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35613JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035614LCMS v1 --with-lcms=$with_lcms $have_lcms
35615LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035616LQR --with-lqr=$with_lqr $have_lqr
35617Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35618OpenEXR --with-openexr=$with_openexr $have_openexr
35619PERL --with-perl=$with_perl $have_perl
35620PNG --with-png=$with_png $have_png
35621RSVG --with-rsvg=$with_rsvg $have_rsvg
35622TIFF --with-tiff=$with_tiff $have_tiff
35623Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35624WMF --with-wmf=$with_wmf $have_wmf
35625X11 --with-x=$with_x $have_x
35626XML --with-xml=$with_xml $have_xml
35627ZLIB --with-zlib=$with_zlib $have_zlib
35628
35629X11 Configuration:
35630 X_CFLAGS = $X_CFLAGS
35631 X_PRE_LIBS = $X_PRE_LIBS
35632 X_LIBS = $X_LIBS
35633 X_EXTRA_LIBS = $X_EXTRA_LIBS
35634
35635Options used to compile and link:
35636 PREFIX = $PREFIX_DIR
35637 EXEC-PREFIX = $EXEC_PREFIX_DIR
35638 VERSION = $PACKAGE_VERSION
35639 CC = $CC
35640 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035641 CPPFLAGS = $MAGICK_CPPFLAGS
35642 PCFLAGS = $MAGICK_PCFLAGS
35643 DEFS = $DEFS
35644 LDFLAGS = $LDFLAGS
35645 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35646 LIBS = $MAGICK_LIBS
35647 CXX = $CXX
35648 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035649 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035650" >&5
35651$as_echo "
35652ImageMagick is configured as follows. Please verify that this configuration
35653matches your expectations.
35654
35655Host system type: $host
35656Build system type: $build
35657
35658 Option Value
35659-------------------------------------------------------------------------------
35660Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35661Static libraries --enable-static=$enable_static $libtool_build_static_libs
35662Module support --with-modules=$with_modules $with_modules
35663GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35664Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35665High Dynamic Range Imagery
35666 --enable-hdri=$enable_hdri $enable_hdri
35667
35668Delegate Configuration:
35669BZLIB --with-bzlib=$with_bzlib $have_bzlib
35670Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035671Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035672DJVU --with-djvu=$with_djvu $have_djvu
35673DPS --with-dps=$with_dps $have_dps
35674FFTW --with-fftw=$with_fftw $have_fftw
35675FlashPIX --with-fpx=$with_fpx $have_fpx
35676FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35677FreeType --with-freetype=$with_freetype $have_freetype
35678GhostPCL None $PCLDelegate ($PCLVersion)
35679GhostXPS None $XPSDelegate ($XPSVersion)
35680Ghostscript None $PSDelegate ($GSVersion)
35681Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35682Ghostscript lib --with-gslib=$with_gslib $have_gslib
35683Graphviz --with-gvc=$with_gvc $have_gvc
35684JBIG --with-jbig=$with_jbig $have_jbig
35685JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35686JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035687LCMS v1 --with-lcms=$with_lcms $have_lcms
35688LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035689LQR --with-lqr=$with_lqr $have_lqr
35690Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35691OpenEXR --with-openexr=$with_openexr $have_openexr
35692PERL --with-perl=$with_perl $have_perl
35693PNG --with-png=$with_png $have_png
35694RSVG --with-rsvg=$with_rsvg $have_rsvg
35695TIFF --with-tiff=$with_tiff $have_tiff
35696Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35697WMF --with-wmf=$with_wmf $have_wmf
35698X11 --with-x=$with_x $have_x
35699XML --with-xml=$with_xml $have_xml
35700ZLIB --with-zlib=$with_zlib $have_zlib
35701
35702X11 Configuration:
35703 X_CFLAGS = $X_CFLAGS
35704 X_PRE_LIBS = $X_PRE_LIBS
35705 X_LIBS = $X_LIBS
35706 X_EXTRA_LIBS = $X_EXTRA_LIBS
35707
35708Options used to compile and link:
35709 PREFIX = $PREFIX_DIR
35710 EXEC-PREFIX = $EXEC_PREFIX_DIR
35711 VERSION = $PACKAGE_VERSION
35712 CC = $CC
35713 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035714 CPPFLAGS = $MAGICK_CPPFLAGS
35715 PCFLAGS = $MAGICK_PCFLAGS
35716 DEFS = $DEFS
35717 LDFLAGS = $LDFLAGS
35718 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35719 LIBS = $MAGICK_LIBS
35720 CXX = $CXX
35721 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035722 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035723" >&6; }