blob: 19ed7fb060e7c4ddb5371140264fa4bec4e29915 [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*)
8173 acx_pthread_flags="-pthread $acx_pthread_flags"
8174 ;;
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;
8266 pthread_join(th, 0);
8267 pthread_attr_init(&attr);
8268 pthread_cleanup_push(routine, 0);
8269 pthread_create(&th,0,start_routine,0);
8270 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
cristy964cb7f2010-04-25 23:18:00 +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
8433 fi
8434fi
8435
8436# Enable support for OpenMP
8437if test "$have_threads" != 'yes'; then
8438 ac_cv_prog_c_openmp=unsupported
8439fi
8440
8441 OPENMP_CFLAGS=
8442 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008443if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008444 enableval=$enable_openmp;
8445fi
8446
8447 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008449$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008450if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008451 $as_echo_n "(cached) " >&6
8452else
cristy8b350f62009-11-15 23:12:43 +00008453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008455
8456#ifndef _OPENMP
8457 choke me
8458#endif
8459#include <omp.h>
8460int main () { return omp_get_num_threads (); }
8461
8462_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008464 ac_cv_prog_c_openmp='none needed'
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008467 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8468 ac_save_CFLAGS=$CFLAGS
8469 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008472
8473#ifndef _OPENMP
8474 choke me
8475#endif
8476#include <omp.h>
8477int main () { return omp_get_num_threads (); }
8478
8479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008481 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008482fi
cristy8b350f62009-11-15 23:12:43 +00008483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008485 CFLAGS=$ac_save_CFLAGS
8486 if test "$ac_cv_prog_c_openmp" != unsupported; then
8487 break
8488 fi
8489 done
8490fi
cristy8b350f62009-11-15 23:12:43 +00008491rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008493fi
cristy8b350f62009-11-15 23:12:43 +00008494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008495$as_echo "$ac_cv_prog_c_openmp" >&6; }
8496 case $ac_cv_prog_c_openmp in #(
8497 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008498 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008499 *)
cristy8b350f62009-11-15 23:12:43 +00008500 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008501 esac
8502 fi
8503
8504
8505CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8506MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8507
cristy391f1ce2010-09-09 17:23:28 +00008508if test "$enable_openmp" != no; then
8509 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8510 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8511 fi
8512fi
cristy3ed852e2009-09-05 21:47:34 +00008513
cristy736173a2009-09-20 21:18:22 +00008514# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008515
cristy964cb7f2010-04-25 23:18:00 +00008516
8517
8518ac_ext=c
8519ac_cpp='$CPP $CPPFLAGS'
8520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524ax_pthread_ok=no
8525
8526# We used to check for pthread.h first, but this fails if pthread.h
8527# requires special compiler flags (e.g. on True64 or Sequent).
8528# It gets checked for in the link test anyway.
8529
8530# First of all, check if the user has set any of the PTHREAD_LIBS,
8531# etcetera environment variables, and if threads linking works using
8532# them:
8533if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8534 save_CFLAGS="$CFLAGS"
8535 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8536 save_LIBS="$LIBS"
8537 LIBS="$PTHREAD_LIBS $LIBS"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8539$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h. */
8542
8543/* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549char pthread_join ();
8550int
8551main ()
8552{
8553return pthread_join ();
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559 ax_pthread_ok=yes
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8564$as_echo "$ax_pthread_ok" >&6; }
8565 if test x"$ax_pthread_ok" = xno; then
8566 PTHREAD_LIBS=""
8567 PTHREAD_CFLAGS=""
8568 fi
8569 LIBS="$save_LIBS"
8570 CFLAGS="$save_CFLAGS"
8571fi
8572
8573# We must check for the threads library under a number of different
8574# names; the ordering is very important because some systems
8575# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8576# libraries is broken (non-POSIX).
8577
8578# Create a list of thread flags to try. Items starting with a "-" are
8579# C compiler flags, and other items are library names, except for "none"
8580# which indicates that we try without any flags at all, and "pthread-config"
8581# which is a program returning the flags for the Pth emulation library.
8582
8583ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8584
8585# The ordering *is* (sometimes) important. Some notes on the
8586# individual items follow:
8587
8588# pthreads: AIX (must check this before -lpthread)
8589# none: in case threads are in libc; should be tried before -Kthread and
8590# other compiler flags to prevent continual compiler warnings
8591# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8592# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8593# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8594# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8595# -pthreads: Solaris/gcc
8596# -mthreads: Mingw32/gcc, Lynx/gcc
8597# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8598# doesn't hurt to check since this sometimes defines pthreads too;
8599# also defines -D_REENTRANT)
8600# ... -mt is also the pthreads flag for HP/aCC
8601# pthread: Linux, etcetera
8602# --thread-safe: KAI C++
8603# pthread-config: use pthread-config program (for GNU Pth library)
8604
8605case "${host_cpu}-${host_os}" in
8606 *solaris*)
8607
8608 # On Solaris (at least, for some versions), libc contains stubbed
8609 # (non-functional) versions of the pthreads routines, so link-based
8610 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8611 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8612 # a function called by this macro, so we could check for that, but
8613 # who knows whether they'll stub that too in a future libc.) So,
8614 # we'll just look for -pthreads and -lpthread first:
8615
8616 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8617 ;;
8618
8619 *-darwin*)
8620 acx_pthread_flags="-pthread $acx_pthread_flags"
8621 ;;
8622esac
8623
8624if test x"$ax_pthread_ok" = xno; then
8625for flag in $ax_pthread_flags; do
8626
8627 case $flag in
8628 none)
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8630$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8631 ;;
8632
8633 -*)
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8635$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8636 PTHREAD_CFLAGS="$flag"
8637 ;;
8638
8639 pthread-config)
8640 # Extract the first word of "pthread-config", so it can be a program name with args.
8641set dummy pthread-config; ac_word=$2
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643$as_echo_n "checking for $ac_word... " >&6; }
8644if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646else
8647 if test -n "$ax_pthread_config"; then
8648 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8649else
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8657 ac_cv_prog_ax_pthread_config="yes"
8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8660 fi
8661done
8662 done
8663IFS=$as_save_IFS
8664
8665 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8666fi
8667fi
8668ax_pthread_config=$ac_cv_prog_ax_pthread_config
8669if test -n "$ax_pthread_config"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8671$as_echo "$ax_pthread_config" >&6; }
8672else
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677
8678 if test x"$ax_pthread_config" = xno; then continue; fi
8679 PTHREAD_CFLAGS="`pthread-config --cflags`"
8680 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8681 ;;
8682
8683 *)
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8685$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8686 PTHREAD_LIBS="-l$flag"
8687 ;;
8688 esac
8689
8690 save_LIBS="$LIBS"
8691 save_CFLAGS="$CFLAGS"
8692 LIBS="$PTHREAD_LIBS $LIBS"
8693 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8694
8695 # Check for various functions. We must include pthread.h,
8696 # since some functions may be macros. (On the Sequent, we
8697 # need a special flag -Kthread to make this header compile.)
8698 # We check for pthread_join because it is in -lpthread on IRIX
8699 # while pthread_create is in libc. We check for pthread_attr_init
8700 # due to DEC craziness with -lpthreads. We check for
8701 # pthread_cleanup_push because it is one of the few pthread
8702 # functions on Solaris that doesn't have a non-functional libc stub.
8703 # We try pthread_create on general principles.
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706#include <pthread.h>
8707 static void routine(void* a) {a=0;}
8708 static void* start_routine(void* a) {return a;}
8709int
8710main ()
8711{
8712pthread_t th; pthread_attr_t attr;
8713 pthread_join(th, 0);
8714 pthread_attr_init(&attr);
8715 pthread_cleanup_push(routine, 0);
8716 pthread_create(&th,0,start_routine,0);
8717 pthread_cleanup_pop(0);
8718 ;
8719 return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723 ax_pthread_ok=yes
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727
8728 LIBS="$save_LIBS"
8729 CFLAGS="$save_CFLAGS"
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8732$as_echo "$ax_pthread_ok" >&6; }
8733 if test "x$ax_pthread_ok" = xyes; then
8734 break;
8735 fi
8736
8737 PTHREAD_LIBS=""
8738 PTHREAD_CFLAGS=""
8739done
8740fi
8741
8742# Various other checks:
8743if test "x$ax_pthread_ok" = xyes; then
8744 save_LIBS="$LIBS"
8745 LIBS="$PTHREAD_LIBS $LIBS"
8746 save_CFLAGS="$CFLAGS"
8747 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8748
8749 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8751$as_echo_n "checking for joinable pthread attribute... " >&6; }
8752 attr_name=unknown
8753 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h. */
8756#include <pthread.h>
8757int
8758main ()
8759{
8760int attr=$attr; return attr;
8761 ;
8762 return 0;
8763}
8764_ACEOF
8765if ac_fn_c_try_link "$LINENO"; then :
8766 attr_name=$attr; break
8767fi
8768rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 done
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8772$as_echo "$attr_name" >&6; }
8773 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8774
8775cat >>confdefs.h <<_ACEOF
8776#define PTHREAD_CREATE_JOINABLE $attr_name
8777_ACEOF
8778
8779 fi
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8782$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8783 flag=no
8784 case "${host_cpu}-${host_os}" in
8785 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8786 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8787 esac
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8789$as_echo "${flag}" >&6; }
8790 if test "x$flag" != xno; then
8791 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8792 fi
8793
8794 LIBS="$save_LIBS"
8795 CFLAGS="$save_CFLAGS"
8796
8797 # More AIX lossage: must compile with xlc_r or cc_r
8798 if test x"$GCC" != xyes; then
8799 for ac_prog in xlc_r cc_r
8800do
8801 # Extract the first word of "$ac_prog", so it can be a program name with args.
8802set dummy $ac_prog; ac_word=$2
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8807else
8808 if test -n "$PTHREAD_CC"; then
8809 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818 ac_cv_prog_PTHREAD_CC="$ac_prog"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 break 2
8821 fi
8822done
8823 done
8824IFS=$as_save_IFS
8825
8826fi
8827fi
8828PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8829if test -n "$PTHREAD_CC"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8831$as_echo "$PTHREAD_CC" >&6; }
8832else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835fi
8836
8837
8838 test -n "$PTHREAD_CC" && break
8839done
8840test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8841
8842 else
8843 PTHREAD_CC=$CC
8844 fi
8845else
8846 PTHREAD_CC="$CC"
8847fi
8848
8849
8850
8851
8852
8853# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8854if test x"$ax_pthread_ok" = xyes; then
8855
8856$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8857
8858 :
8859else
8860 ax_pthread_ok=no
8861
8862fi
8863ac_ext=c
8864ac_cpp='$CPP $CPPFLAGS'
8865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868
8869
8870
cristy43596fe2010-01-21 16:46:08 +00008871# Check whether --enable-opencl was given.
8872if test "${enable_opencl+set}" = set; then :
8873 enableval=$enable_opencl; disable_opencl=$enableval
8874else
8875 disable_opencl='yes'
8876fi
8877
8878
8879if test "$disable_opencl" = 'yes'; then
8880 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
cristy43596fe2010-01-21 16:46:08 +00008886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008887$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008888if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008889 $as_echo_n "(cached) " >&6
8890else
cristy8b350f62009-11-15 23:12:43 +00008891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008892/* end confdefs.h. */
8893
8894int
8895main ()
8896{
8897#ifndef _MSC_VER
8898 choke me
8899#endif
8900
8901 ;
8902 return 0;
8903}
8904_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008905if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008906 ax_compiler_ms=yes
8907else
cristy8b350f62009-11-15 23:12:43 +00008908 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008909fi
cristy736173a2009-09-20 21:18:22 +00008910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911ax_cv_c_compiler_ms=$ax_compiler_ms
8912
8913fi
cristy8b350f62009-11-15 23:12:43 +00008914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008915$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008916 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008917 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8918fi
8919
cristy43596fe2010-01-21 16:46:08 +00008920 ax_save_CPPFLAGS=$CPPFLAGS
8921 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8922 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008923do :
8924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008927 cat >>confdefs.h <<_ACEOF
8928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8929_ACEOF
8930
8931fi
8932
8933done
8934
cristy43596fe2010-01-21 16:46:08 +00008935 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008936
cristy43596fe2010-01-21 16:46:08 +00008937 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008938do :
8939 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8940if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008941 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008942#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008943_ACEOF
8944
8945fi
8946
8947done
8948
8949
8950
8951
cristy43596fe2010-01-21 16:46:08 +00008952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008953$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008954if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008955 $as_echo_n "(cached) " >&6
8956else
8957 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008958 case $host_cpu in
8959 x86_64) ax_check_cl_libdir=lib64 ;;
8960 *) ax_check_cl_libdir=lib ;;
8961 esac
8962 ax_save_CPPFLAGS=$CPPFLAGS
8963 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8964 ax_save_LIBS=$LIBS
8965 LIBS=""
8966 ax_check_libs="-lOpenCL -lCL -lclparser"
8967 for ax_lib in $ax_check_libs; do
8968 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008969 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8970else
8971 ax_try_lib=$ax_lib
8972fi
cristy43596fe2010-01-21 16:46:08 +00008973 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008975/* end confdefs.h. */
8976
cristy43596fe2010-01-21 16:46:08 +00008977 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8978 # include <windows.h>
8979 # endif
8980 # ifdef HAVE_CL_CL_H
8981 # include <CL/cl.h>
8982 # elif defined(HAVE_OPENCL_CL_H)
8983 # include <OpenCL/cl.h>
8984 # else
8985 # error no CL.h
8986 # endif
cristy736173a2009-09-20 21:18:22 +00008987int
8988main ()
8989{
cristyc7083c12009-10-14 03:16:55 +00008990clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008991 ;
8992 return 0;
8993}
8994_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008995if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008996 ax_cv_check_cl_libcl=$ax_try_lib; break
8997else
cristy8b350f62009-11-15 23:12:43 +00008998 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 +00008999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009000/* end confdefs.h. */
9001
cristy43596fe2010-01-21 16:46:08 +00009002 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9003 # include <windows.h>
9004 # endif
9005 # ifdef HAVE_CL_CL_H
9006 # include <CL/cl.h>
9007 # elif defined(HAVE_OPENCL_CL_H)
9008 # include <OpenCL/cl.h>
9009 # else
9010 # error no CL.h
9011 # endif
cristy736173a2009-09-20 21:18:22 +00009012int
9013main ()
9014{
cristyc7083c12009-10-14 03:16:55 +00009015clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009016 ;
9017 return 0;
9018}
9019_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009020if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009021 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9022else
cristy4dc44432009-12-30 23:30:06 +00009023 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 +00009024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009025/* end confdefs.h. */
9026
cristy43596fe2010-01-21 16:46:08 +00009027 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9028 # include <windows.h>
9029 # endif
9030 # ifdef HAVE_CL_CL_H
9031 # include <CL/cl.h>
9032 # elif defined(HAVE_OPENCL_CL_H)
9033 # include <OpenCL/cl.h>
9034 # else
9035 # error no CL.h
9036 # endif
cristy736173a2009-09-20 21:18:22 +00009037int
9038main ()
9039{
cristyc7083c12009-10-14 03:16:55 +00009040clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009041 ;
9042 return 0;
9043}
9044_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009045if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009046 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009047fi
cristy8b350f62009-11-15 23:12:43 +00009048rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009050fi
cristy8b350f62009-11-15 23:12:43 +00009051rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009053fi
cristy8b350f62009-11-15 23:12:43 +00009054rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009056 done
cristy736173a2009-09-20 21:18:22 +00009057
cristy43596fe2010-01-21 16:46:08 +00009058 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009059 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009061/* end confdefs.h. */
9062
cristy43596fe2010-01-21 16:46:08 +00009063 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9064 # include <windows.h>
9065 # endif
9066 # ifdef HAVE_CL_CL_H
9067 # include <CL/cl.h>
9068 # elif defined(HAVE_OPENCL_CL_H)
9069 # include <OpenCL/cl.h>
9070 # else
9071 # error no CL.h
9072 # endif
cristy736173a2009-09-20 21:18:22 +00009073int
9074main ()
9075{
cristyc7083c12009-10-14 03:16:55 +00009076clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009077 ;
9078 return 0;
9079}
9080_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009081if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009082 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009083fi
cristy8b350f62009-11-15 23:12:43 +00009084rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009086fi
9087
cristy43596fe2010-01-21 16:46:08 +00009088 LIBS=$ax_save_LIBS
9089 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009090fi
cristy8b350f62009-11-15 23:12:43 +00009091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009092$as_echo "$ax_cv_check_cl_libcl" >&6; }
9093
cristy43596fe2010-01-21 16:46:08 +00009094 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009095 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9096else
cristy99cc3002010-01-21 14:50:11 +00009097 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9098$as_echo "#define _OPENCL 1" >>confdefs.h
9099
cristy736173a2009-09-20 21:18:22 +00009100fi
cristy43596fe2010-01-21 16:46:08 +00009101 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009102ac_cpp='$CPP $CPPFLAGS'
9103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9105ac_compiler_gnu=$ac_cv_c_compiler_gnu
9106
cristy43596fe2010-01-21 16:46:08 +00009107fi
cristy736173a2009-09-20 21:18:22 +00009108
9109
9110
9111
cristyc7083c12009-10-14 03:16:55 +00009112CFLAGS="$CL_CFLAGS $CFLAGS"
9113LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009114
cristy391f1ce2010-09-09 17:23:28 +00009115if test "$enable_opencl" != no; then
9116 if test "_OPENCL" = '1'; then
9117 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9118 fi
cristyfd9dcd42010-08-08 18:07:02 +00009119fi
cristy2e8b51d2009-10-17 18:26:15 +00009120
cristy3ed852e2009-09-05 21:47:34 +00009121########
9122#
9123# Check for large file support
9124#
9125########
9126# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009127if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009128 enableval=$enable_largefile;
9129fi
9130
9131if test "$enable_largefile" != no; then
9132
cristy8b350f62009-11-15 23:12:43 +00009133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009134$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009135if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009136 $as_echo_n "(cached) " >&6
9137else
9138 ac_cv_sys_largefile_CC=no
9139 if test "$GCC" != yes; then
9140 ac_save_CC=$CC
9141 while :; do
9142 # IRIX 6.2 and later do not support large files by default,
9143 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009145/* end confdefs.h. */
9146#include <sys/types.h>
9147 /* Check that off_t can represent 2**63 - 1 correctly.
9148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9149 since some C++ compilers masquerading as C compilers
9150 incorrectly reject 9223372036854775807. */
9151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9153 && LARGE_OFF_T % 2147483647 == 1)
9154 ? 1 : -1];
9155int
9156main ()
9157{
9158
9159 ;
9160 return 0;
9161}
9162_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009163 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009164 break
cristy3ed852e2009-09-05 21:47:34 +00009165fi
cristy3ed852e2009-09-05 21:47:34 +00009166rm -f core conftest.err conftest.$ac_objext
9167 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009169 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009170fi
cristy3ed852e2009-09-05 21:47:34 +00009171rm -f core conftest.err conftest.$ac_objext
9172 break
9173 done
9174 CC=$ac_save_CC
9175 rm -f conftest.$ac_ext
9176 fi
9177fi
cristy8b350f62009-11-15 23:12:43 +00009178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009179$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9180 if test "$ac_cv_sys_largefile_CC" != no; then
9181 CC=$CC$ac_cv_sys_largefile_CC
9182 fi
9183
cristy8b350f62009-11-15 23:12:43 +00009184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009185$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009186if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009187 $as_echo_n "(cached) " >&6
9188else
9189 while :; do
cristy8b350f62009-11-15 23:12:43 +00009190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009191/* end confdefs.h. */
9192#include <sys/types.h>
9193 /* Check that off_t can represent 2**63 - 1 correctly.
9194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9195 since some C++ compilers masquerading as C compilers
9196 incorrectly reject 9223372036854775807. */
9197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9199 && LARGE_OFF_T % 2147483647 == 1)
9200 ? 1 : -1];
9201int
9202main ()
9203{
9204
9205 ;
9206 return 0;
9207}
9208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009209if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009210 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009211fi
cristy3ed852e2009-09-05 21:47:34 +00009212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009214/* end confdefs.h. */
9215#define _FILE_OFFSET_BITS 64
9216#include <sys/types.h>
9217 /* Check that off_t can represent 2**63 - 1 correctly.
9218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9219 since some C++ compilers masquerading as C compilers
9220 incorrectly reject 9223372036854775807. */
9221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9223 && LARGE_OFF_T % 2147483647 == 1)
9224 ? 1 : -1];
9225int
9226main ()
9227{
9228
9229 ;
9230 return 0;
9231}
9232_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009234 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009235fi
cristy3ed852e2009-09-05 21:47:34 +00009236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 ac_cv_sys_file_offset_bits=unknown
9238 break
9239done
9240fi
cristy8b350f62009-11-15 23:12:43 +00009241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009242$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9243case $ac_cv_sys_file_offset_bits in #(
9244 no | unknown) ;;
9245 *)
9246cat >>confdefs.h <<_ACEOF
9247#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9248_ACEOF
9249;;
9250esac
9251rm -rf conftest*
9252 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009254$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009255if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 $as_echo_n "(cached) " >&6
9257else
9258 while :; do
cristy8b350f62009-11-15 23:12:43 +00009259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009260/* end confdefs.h. */
9261#include <sys/types.h>
9262 /* Check that off_t can represent 2**63 - 1 correctly.
9263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264 since some C++ compilers masquerading as C compilers
9265 incorrectly reject 9223372036854775807. */
9266#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268 && LARGE_OFF_T % 2147483647 == 1)
9269 ? 1 : -1];
9270int
9271main ()
9272{
9273
9274 ;
9275 return 0;
9276}
9277_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009280fi
cristy3ed852e2009-09-05 21:47:34 +00009281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009283/* end confdefs.h. */
9284#define _LARGE_FILES 1
9285#include <sys/types.h>
9286 /* Check that off_t can represent 2**63 - 1 correctly.
9287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9288 since some C++ compilers masquerading as C compilers
9289 incorrectly reject 9223372036854775807. */
9290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9292 && LARGE_OFF_T % 2147483647 == 1)
9293 ? 1 : -1];
9294int
9295main ()
9296{
9297
9298 ;
9299 return 0;
9300}
9301_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009302if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009303 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009304fi
cristy3ed852e2009-09-05 21:47:34 +00009305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 ac_cv_sys_large_files=unknown
9307 break
9308done
9309fi
cristy8b350f62009-11-15 23:12:43 +00009310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009311$as_echo "$ac_cv_sys_large_files" >&6; }
9312case $ac_cv_sys_large_files in #(
9313 no | unknown) ;;
9314 *)
9315cat >>confdefs.h <<_ACEOF
9316#define _LARGE_FILES $ac_cv_sys_large_files
9317_ACEOF
9318;;
9319esac
9320rm -rf conftest*
9321 fi
9322fi
9323
cristy8b350f62009-11-15 23:12:43 +00009324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009325$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009326if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009327 $as_echo_n "(cached) " >&6
9328else
9329 while :; do
cristy8b350f62009-11-15 23:12:43 +00009330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009331/* end confdefs.h. */
9332#include <sys/types.h> /* for off_t */
9333 #include <stdio.h>
9334int
9335main ()
9336{
9337int (*fp) (FILE *, off_t, int) = fseeko;
9338 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9339 ;
9340 return 0;
9341}
9342_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009344 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009345fi
cristy8b350f62009-11-15 23:12:43 +00009346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009349/* end confdefs.h. */
9350#define _LARGEFILE_SOURCE 1
9351#include <sys/types.h> /* for off_t */
9352 #include <stdio.h>
9353int
9354main ()
9355{
9356int (*fp) (FILE *, off_t, int) = fseeko;
9357 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9358 ;
9359 return 0;
9360}
9361_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009363 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009364fi
cristy8b350f62009-11-15 23:12:43 +00009365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_sys_largefile_source=unknown
9368 break
9369done
9370fi
cristy8b350f62009-11-15 23:12:43 +00009371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009372$as_echo "$ac_cv_sys_largefile_source" >&6; }
9373case $ac_cv_sys_largefile_source in #(
9374 no | unknown) ;;
9375 *)
9376cat >>confdefs.h <<_ACEOF
9377#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9378_ACEOF
9379;;
9380esac
9381rm -rf conftest*
9382
9383# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9384# in glibc 2.1.3, but that breaks too many other things.
9385# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9386if test $ac_cv_sys_largefile_source != unknown; then
9387
cristy8b350f62009-11-15 23:12:43 +00009388$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009389
9390fi
9391
9392LFS_CPPFLAGS=''
9393if test "$enable_largefile" != no; then
9394 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9395 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9396 else
cristy8b350f62009-11-15 23:12:43 +00009397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009399 if test "$cross_compiling" = yes; then :
9400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009402as_fn_error $? "cannot run test program while cross compiling
9403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009404else
cristy8b350f62009-11-15 23:12:43 +00009405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009407#include <unistd.h>
9408 main () {
9409 exit(!(sizeof(off_t) == 8));
9410 }
9411_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009412if ac_fn_c_try_run "$LINENO"; then :
9413 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009414
cristy8b350f62009-11-15 23:12:43 +00009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009416$as_echo "yes" >&6; }
9417else
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo "no" >&6; }
9420fi
cristy8b350f62009-11-15 23:12:43 +00009421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009423fi
9424
cristy3ed852e2009-09-05 21:47:34 +00009425 fi
9426 if test "$ac_cv_sys_large_files" != 'no'; then
9427 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9428 fi
9429 if test "$ac_cv_sys_largefile_source" != 'no'; then
9430 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9431 fi
9432fi
9433
9434
9435#
9436# Configure libtool & libltdl
9437#
9438# Configure libtool
9439enable_dlopen=yes
9440
9441
9442
9443case `pwd` in
9444 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9447esac
9448
9449
9450
cristyfd9dcd42010-08-08 18:07:02 +00009451macro_version='2.2.10'
9452macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466ltmain="$ac_aux_dir/ltmain.sh"
9467
cristyfd9dcd42010-08-08 18:07:02 +00009468# Backslashify metacharacters that are still active within
9469# double-quoted strings.
9470sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9471
9472# Same as above, but do not quote variable references.
9473double_quote_subst='s/\(["`\\]\)/\\\1/g'
9474
9475# Sed substitution to delay expansion of an escaped shell variable in a
9476# double_quote_subst'ed string.
9477delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9478
9479# Sed substitution to delay expansion of an escaped single quote.
9480delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9481
9482# Sed substitution to avoid accidental globbing in evaled expressions
9483no_glob_subst='s/\*/\\\*/g'
9484
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009487if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009488 $as_echo_n "(cached) " >&6
9489else
9490 if test -n "$NM"; then
9491 # Let the user override the test.
9492 lt_cv_path_NM="$NM"
9493else
9494 lt_nm_to_check="${ac_tool_prefix}nm"
9495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9496 lt_nm_to_check="$lt_nm_to_check nm"
9497 fi
9498 for lt_tmp_nm in $lt_nm_to_check; do
9499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9501 IFS="$lt_save_ifs"
9502 test -z "$ac_dir" && ac_dir=.
9503 tmp_nm="$ac_dir/$lt_tmp_nm"
9504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9505 # Check to see if the nm accepts a BSD-compat flag.
9506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9507 # nm: unknown option "B" ignored
9508 # Tru64's nm complains that /dev/null is an invalid object file
9509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9510 */dev/null* | *'Invalid file or object type'*)
9511 lt_cv_path_NM="$tmp_nm -B"
9512 break
9513 ;;
9514 *)
9515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9516 */dev/null*)
9517 lt_cv_path_NM="$tmp_nm -p"
9518 break
9519 ;;
9520 *)
9521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9522 continue # so that we can try to find one that supports BSD flags
9523 ;;
9524 esac
9525 ;;
9526 esac
9527 fi
9528 done
9529 IFS="$lt_save_ifs"
9530 done
9531 : ${lt_cv_path_NM=no}
9532fi
9533fi
cristy8b350f62009-11-15 23:12:43 +00009534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009535$as_echo "$lt_cv_path_NM" >&6; }
9536if test "$lt_cv_path_NM" != "no"; then
9537 NM="$lt_cv_path_NM"
9538else
9539 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009540 if test -n "$DUMPBIN"; then :
9541 # Let the user override the test.
9542 else
9543 if test -n "$ac_tool_prefix"; then
9544 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009545 do
9546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009549$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009550if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009551 $as_echo_n "(cached) " >&6
9552else
9553 if test -n "$DUMPBIN"; then
9554 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565 break 2
9566 fi
9567done
cristy8b350f62009-11-15 23:12:43 +00009568 done
cristy3ed852e2009-09-05 21:47:34 +00009569IFS=$as_save_IFS
9570
9571fi
9572fi
9573DUMPBIN=$ac_cv_prog_DUMPBIN
9574if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009576$as_echo "$DUMPBIN" >&6; }
9577else
cristy8b350f62009-11-15 23:12:43 +00009578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009579$as_echo "no" >&6; }
9580fi
9581
9582
9583 test -n "$DUMPBIN" && break
9584 done
9585fi
9586if test -z "$DUMPBIN"; then
9587 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009588 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009589do
9590 # Extract the first word of "$ac_prog", so it can be a program name with args.
9591set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009593$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009594if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009595 $as_echo_n "(cached) " >&6
9596else
9597 if test -n "$ac_ct_DUMPBIN"; then
9598 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009609 break 2
9610 fi
9611done
cristy8b350f62009-11-15 23:12:43 +00009612 done
cristy3ed852e2009-09-05 21:47:34 +00009613IFS=$as_save_IFS
9614
9615fi
9616fi
9617ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9618if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009620$as_echo "$ac_ct_DUMPBIN" >&6; }
9621else
cristy8b350f62009-11-15 23:12:43 +00009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "no" >&6; }
9624fi
9625
9626
9627 test -n "$ac_ct_DUMPBIN" && break
9628done
9629
9630 if test "x$ac_ct_DUMPBIN" = x; then
9631 DUMPBIN=":"
9632 else
9633 case $cross_compiling:$ac_tool_warned in
9634yes:)
cristy8b350f62009-11-15 23:12:43 +00009635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9637ac_tool_warned=yes ;;
9638esac
9639 DUMPBIN=$ac_ct_DUMPBIN
9640 fi
9641fi
9642
cristyfd9dcd42010-08-08 18:07:02 +00009643 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9644 *COFF*)
9645 DUMPBIN="$DUMPBIN -symbols"
9646 ;;
9647 *)
9648 DUMPBIN=:
9649 ;;
9650 esac
9651 fi
cristy3ed852e2009-09-05 21:47:34 +00009652
9653 if test "$DUMPBIN" != ":"; then
9654 NM="$DUMPBIN"
9655 fi
9656fi
9657test -z "$NM" && NM=nm
9658
9659
9660
9661
9662
9663
cristy8b350f62009-11-15 23:12:43 +00009664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009665$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009666if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009667 $as_echo_n "(cached) " >&6
9668else
9669 lt_cv_nm_interface="BSD nm"
9670 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009671 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009672 (eval "$ac_compile" 2>conftest.err)
9673 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009674 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009675 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9676 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009677 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009678 cat conftest.out >&5
9679 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9680 lt_cv_nm_interface="MS dumpbin"
9681 fi
9682 rm -f conftest*
9683fi
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$lt_cv_nm_interface" >&6; }
9686
9687# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009690if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009691 $as_echo_n "(cached) " >&6
9692else
9693 i=0
9694 teststring="ABCD"
9695
9696 case $build_os in
9697 msdosdjgpp*)
9698 # On DJGPP, this test can blow up pretty badly due to problems in libc
9699 # (any single argument exceeding 2000 bytes causes a buffer overrun
9700 # during glob expansion). Even if it were fixed, the result of this
9701 # check would be larger than it should be.
9702 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9703 ;;
9704
9705 gnu*)
9706 # Under GNU Hurd, this test is not required because there is
9707 # no limit to the length of command line arguments.
9708 # Libtool will interpret -1 as no limit whatsoever
9709 lt_cv_sys_max_cmd_len=-1;
9710 ;;
9711
9712 cygwin* | mingw* | cegcc*)
9713 # On Win9x/ME, this test blows up -- it succeeds, but takes
9714 # about 5 minutes as the teststring grows exponentially.
9715 # Worse, since 9x/ME are not pre-emptively multitasking,
9716 # you end up with a "frozen" computer, even though with patience
9717 # the test eventually succeeds (with a max line length of 256k).
9718 # Instead, let's just punt: use the minimum linelength reported by
9719 # all of the supported platforms: 8192 (on NT/2K/XP).
9720 lt_cv_sys_max_cmd_len=8192;
9721 ;;
9722
cristyfd9dcd42010-08-08 18:07:02 +00009723 mint*)
9724 # On MiNT this can take a long time and run out of memory.
9725 lt_cv_sys_max_cmd_len=8192;
9726 ;;
9727
cristy3ed852e2009-09-05 21:47:34 +00009728 amigaos*)
9729 # On AmigaOS with pdksh, this test takes hours, literally.
9730 # So we just punt and use a minimum line length of 8192.
9731 lt_cv_sys_max_cmd_len=8192;
9732 ;;
9733
9734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9735 # This has been around since 386BSD, at least. Likely further.
9736 if test -x /sbin/sysctl; then
9737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9738 elif test -x /usr/sbin/sysctl; then
9739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9740 else
9741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9742 fi
9743 # And add a safety zone
9744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9746 ;;
9747
9748 interix*)
9749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9750 lt_cv_sys_max_cmd_len=196608
9751 ;;
9752
9753 osf*)
9754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9756 # nice to cause kernel panics so lets avoid the loop below.
9757 # First set a reasonable default.
9758 lt_cv_sys_max_cmd_len=16384
9759 #
9760 if test -x /sbin/sysconfig; then
9761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9763 esac
9764 fi
9765 ;;
9766 sco3.2v5*)
9767 lt_cv_sys_max_cmd_len=102400
9768 ;;
9769 sysv5* | sco5v6* | sysv4.2uw2*)
9770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9771 if test -n "$kargmax"; then
9772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9773 else
9774 lt_cv_sys_max_cmd_len=32768
9775 fi
9776 ;;
9777 *)
9778 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9779 if test -n "$lt_cv_sys_max_cmd_len"; then
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9782 else
9783 # Make teststring a little bigger before we do anything with it.
9784 # a 1K string should be a reasonable start.
9785 for i in 1 2 3 4 5 6 7 8 ; do
9786 teststring=$teststring$teststring
9787 done
9788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9789 # If test is not a shell built-in, we'll probably end up computing a
9790 # maximum length that is only half of the actual maximum length, but
9791 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009792 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9793 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009794 test $i != 17 # 1/2 MB should be enough
9795 do
9796 i=`expr $i + 1`
9797 teststring=$teststring$teststring
9798 done
9799 # Only check the string length outside the loop.
9800 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9801 teststring=
9802 # Add a significant safety factor because C++ compilers can tack on
9803 # massive amounts of additional arguments before passing them to the
9804 # linker. It appears as though 1/2 is a usable value.
9805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9806 fi
9807 ;;
9808 esac
9809
9810fi
9811
9812if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009814$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9815else
cristy8b350f62009-11-15 23:12:43 +00009816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009817$as_echo "none" >&6; }
9818fi
9819max_cmd_len=$lt_cv_sys_max_cmd_len
9820
9821
9822
9823
9824
9825
9826: ${CP="cp -f"}
9827: ${MV="mv -f"}
9828: ${RM="rm -f"}
9829
cristy8b350f62009-11-15 23:12:43 +00009830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009831$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9832# Try some XSI features
9833xsi_shell=no
9834( _lt_dummy="a/b/c"
9835 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9836 = c,a/b,, \
9837 && eval 'test $(( 1 + 1 )) -eq 2 \
9838 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9839 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009841$as_echo "$xsi_shell" >&6; }
9842
9843
cristy8b350f62009-11-15 23:12:43 +00009844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009845$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9846lt_shell_append=no
9847( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9848 >/dev/null 2>&1 \
9849 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009851$as_echo "$lt_shell_append" >&6; }
9852
9853
9854if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9855 lt_unset=unset
9856else
9857 lt_unset=false
9858fi
9859
9860
9861
9862
9863
9864# test EBCDIC or ASCII
9865case `echo X|tr X '\101'` in
9866 A) # ASCII based system
9867 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9868 lt_SP2NL='tr \040 \012'
9869 lt_NL2SP='tr \015\012 \040\040'
9870 ;;
9871 *) # EBCDIC based system
9872 lt_SP2NL='tr \100 \n'
9873 lt_NL2SP='tr \r\n \100\100'
9874 ;;
9875esac
9876
9877
9878
9879
9880
9881
9882
9883
9884
cristy8b350f62009-11-15 23:12:43 +00009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009886$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009887if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009888 $as_echo_n "(cached) " >&6
9889else
9890 lt_cv_ld_reload_flag='-r'
9891fi
cristy8b350f62009-11-15 23:12:43 +00009892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009893$as_echo "$lt_cv_ld_reload_flag" >&6; }
9894reload_flag=$lt_cv_ld_reload_flag
9895case $reload_flag in
9896"" | " "*) ;;
9897*) reload_flag=" $reload_flag" ;;
9898esac
9899reload_cmds='$LD$reload_flag -o $output$reload_objs'
9900case $host_os in
9901 darwin*)
9902 if test "$GCC" = yes; then
9903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9904 else
9905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9906 fi
9907 ;;
9908esac
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918if test -n "$ac_tool_prefix"; then
9919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9920set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009922$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009923if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009924 $as_echo_n "(cached) " >&6
9925else
9926 if test -n "$OBJDUMP"; then
9927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9928else
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009938 break 2
9939 fi
9940done
cristy8b350f62009-11-15 23:12:43 +00009941 done
cristy3ed852e2009-09-05 21:47:34 +00009942IFS=$as_save_IFS
9943
9944fi
9945fi
9946OBJDUMP=$ac_cv_prog_OBJDUMP
9947if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo "$OBJDUMP" >&6; }
9950else
cristy8b350f62009-11-15 23:12:43 +00009951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009952$as_echo "no" >&6; }
9953fi
9954
9955
9956fi
9957if test -z "$ac_cv_prog_OBJDUMP"; then
9958 ac_ct_OBJDUMP=$OBJDUMP
9959 # Extract the first word of "objdump", so it can be a program name with args.
9960set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009963if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009964 $as_echo_n "(cached) " >&6
9965else
9966 if test -n "$ac_ct_OBJDUMP"; then
9967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9968else
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009978 break 2
9979 fi
9980done
cristy8b350f62009-11-15 23:12:43 +00009981 done
cristy3ed852e2009-09-05 21:47:34 +00009982IFS=$as_save_IFS
9983
9984fi
9985fi
9986ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9987if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "$ac_ct_OBJDUMP" >&6; }
9990else
cristy8b350f62009-11-15 23:12:43 +00009991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009992$as_echo "no" >&6; }
9993fi
9994
9995 if test "x$ac_ct_OBJDUMP" = x; then
9996 OBJDUMP="false"
9997 else
9998 case $cross_compiling:$ac_tool_warned in
9999yes:)
cristy8b350f62009-11-15 23:12:43 +000010000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002ac_tool_warned=yes ;;
10003esac
10004 OBJDUMP=$ac_ct_OBJDUMP
10005 fi
10006else
10007 OBJDUMP="$ac_cv_prog_OBJDUMP"
10008fi
10009
10010test -z "$OBJDUMP" && OBJDUMP=objdump
10011
10012
10013
10014
10015
10016
cristy8b350f62009-11-15 23:12:43 +000010017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010018$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010019if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010020 $as_echo_n "(cached) " >&6
10021else
10022 lt_cv_file_magic_cmd='$MAGIC_CMD'
10023lt_cv_file_magic_test_file=
10024lt_cv_deplibs_check_method='unknown'
10025# Need to set the preceding variable on all platforms that support
10026# interlibrary dependencies.
10027# 'none' -- dependencies not supported.
10028# `unknown' -- same as none, but documents that we really don't know.
10029# 'pass_all' -- all dependencies passed with no checks.
10030# 'test_compile' -- check by making test program.
10031# 'file_magic [[regex]]' -- check by looking for files in library path
10032# which responds to the $file_magic_cmd with a given extended regex.
10033# If you have `file' or equivalent on your system and you're not sure
10034# whether `pass_all' will *always* work, you probably want this one.
10035
10036case $host_os in
10037aix[4-9]*)
10038 lt_cv_deplibs_check_method=pass_all
10039 ;;
10040
10041beos*)
10042 lt_cv_deplibs_check_method=pass_all
10043 ;;
10044
10045bsdi[45]*)
10046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10047 lt_cv_file_magic_cmd='/usr/bin/file -L'
10048 lt_cv_file_magic_test_file=/shlib/libc.so
10049 ;;
10050
10051cygwin*)
10052 # func_win32_libid is a shell function defined in ltmain.sh
10053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10054 lt_cv_file_magic_cmd='func_win32_libid'
10055 ;;
10056
10057mingw* | pw32*)
10058 # Base MSYS/MinGW do not provide the 'file' command needed by
10059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10060 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010061 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10062 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10064 lt_cv_file_magic_cmd='func_win32_libid'
10065 else
cristyfd9dcd42010-08-08 18:07:02 +000010066 # Keep this pattern in sync with the one in func_win32_libid.
10067 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 +000010068 lt_cv_file_magic_cmd='$OBJDUMP -f'
10069 fi
10070 ;;
10071
cristyfd9dcd42010-08-08 18:07:02 +000010072cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010073 # use the weaker test based on 'objdump'. See mingw*.
10074 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10075 lt_cv_file_magic_cmd='$OBJDUMP -f'
10076 ;;
10077
10078darwin* | rhapsody*)
10079 lt_cv_deplibs_check_method=pass_all
10080 ;;
10081
10082freebsd* | dragonfly*)
10083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10084 case $host_cpu in
10085 i*86 )
10086 # Not sure whether the presence of OpenBSD here was a mistake.
10087 # Let's accept both of them until this is cleared up.
10088 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10089 lt_cv_file_magic_cmd=/usr/bin/file
10090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10091 ;;
10092 esac
10093 else
10094 lt_cv_deplibs_check_method=pass_all
10095 fi
10096 ;;
10097
10098gnu*)
10099 lt_cv_deplibs_check_method=pass_all
10100 ;;
10101
cristyfd9dcd42010-08-08 18:07:02 +000010102haiku*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105
cristy3ed852e2009-09-05 21:47:34 +000010106hpux10.20* | hpux11*)
10107 lt_cv_file_magic_cmd=/usr/bin/file
10108 case $host_cpu in
10109 ia64*)
10110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10111 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10112 ;;
10113 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010114 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 +000010115 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10116 ;;
10117 *)
cristyfd9dcd42010-08-08 18:07:02 +000010118 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 +000010119 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10120 ;;
10121 esac
10122 ;;
10123
10124interix[3-9]*)
10125 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10127 ;;
10128
10129irix5* | irix6* | nonstopux*)
10130 case $LD in
10131 *-32|*"-32 ") libmagic=32-bit;;
10132 *-n32|*"-n32 ") libmagic=N32;;
10133 *-64|*"-64 ") libmagic=64-bit;;
10134 *) libmagic=never-match;;
10135 esac
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138
10139# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010140linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010141 lt_cv_deplibs_check_method=pass_all
10142 ;;
10143
10144netbsd*)
10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10147 else
10148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10149 fi
10150 ;;
10151
10152newos6*)
10153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10154 lt_cv_file_magic_cmd=/usr/bin/file
10155 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10156 ;;
10157
10158*nto* | *qnx*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162openbsd*)
10163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10165 else
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10167 fi
10168 ;;
10169
10170osf3* | osf4* | osf5*)
10171 lt_cv_deplibs_check_method=pass_all
10172 ;;
10173
10174rdos*)
10175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177
10178solaris*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185
10186sysv4 | sysv4.3*)
10187 case $host_vendor in
10188 motorola)
10189 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]'
10190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10191 ;;
10192 ncr)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195 sequent)
10196 lt_cv_file_magic_cmd='/bin/file'
10197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10198 ;;
10199 sni)
10200 lt_cv_file_magic_cmd='/bin/file'
10201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10202 lt_cv_file_magic_test_file=/lib/libc.so
10203 ;;
10204 siemens)
10205 lt_cv_deplibs_check_method=pass_all
10206 ;;
10207 pc)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210 esac
10211 ;;
10212
10213tpf*)
10214 lt_cv_deplibs_check_method=pass_all
10215 ;;
10216esac
10217
10218fi
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$lt_cv_deplibs_check_method" >&6; }
10221file_magic_cmd=$lt_cv_file_magic_cmd
10222deplibs_check_method=$lt_cv_deplibs_check_method
10223test -z "$deplibs_check_method" && deplibs_check_method=unknown
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236if test -n "$ac_tool_prefix"; then
10237 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10238set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010241if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010242 $as_echo_n "(cached) " >&6
10243else
10244 if test -n "$AR"; then
10245 ac_cv_prog_AR="$AR" # Let the user override the test.
10246else
10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
10249do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010256 break 2
10257 fi
10258done
cristy8b350f62009-11-15 23:12:43 +000010259 done
cristy3ed852e2009-09-05 21:47:34 +000010260IFS=$as_save_IFS
10261
10262fi
10263fi
10264AR=$ac_cv_prog_AR
10265if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010267$as_echo "$AR" >&6; }
10268else
cristy8b350f62009-11-15 23:12:43 +000010269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo "no" >&6; }
10271fi
10272
10273
10274fi
10275if test -z "$ac_cv_prog_AR"; then
10276 ac_ct_AR=$AR
10277 # Extract the first word of "ar", so it can be a program name with args.
10278set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010280$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010281if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010282 $as_echo_n "(cached) " >&6
10283else
10284 if test -n "$ac_ct_AR"; then
10285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10286else
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10294 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296 break 2
10297 fi
10298done
cristy8b350f62009-11-15 23:12:43 +000010299 done
cristy3ed852e2009-09-05 21:47:34 +000010300IFS=$as_save_IFS
10301
10302fi
10303fi
10304ac_ct_AR=$ac_cv_prog_ac_ct_AR
10305if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010307$as_echo "$ac_ct_AR" >&6; }
10308else
cristy8b350f62009-11-15 23:12:43 +000010309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010310$as_echo "no" >&6; }
10311fi
10312
10313 if test "x$ac_ct_AR" = x; then
10314 AR="false"
10315 else
10316 case $cross_compiling:$ac_tool_warned in
10317yes:)
cristy8b350f62009-11-15 23:12:43 +000010318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10320ac_tool_warned=yes ;;
10321esac
10322 AR=$ac_ct_AR
10323 fi
10324else
10325 AR="$ac_cv_prog_AR"
10326fi
10327
10328test -z "$AR" && AR=ar
10329test -z "$AR_FLAGS" && AR_FLAGS=cru
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341if test -n "$ac_tool_prefix"; then
10342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10343set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010346if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010347 $as_echo_n "(cached) " >&6
10348else
10349 if test -n "$STRIP"; then
10350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010361 break 2
10362 fi
10363done
cristy8b350f62009-11-15 23:12:43 +000010364 done
cristy3ed852e2009-09-05 21:47:34 +000010365IFS=$as_save_IFS
10366
10367fi
10368fi
10369STRIP=$ac_cv_prog_STRIP
10370if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010372$as_echo "$STRIP" >&6; }
10373else
cristy8b350f62009-11-15 23:12:43 +000010374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010375$as_echo "no" >&6; }
10376fi
10377
10378
10379fi
10380if test -z "$ac_cv_prog_STRIP"; then
10381 ac_ct_STRIP=$STRIP
10382 # Extract the first word of "strip", so it can be a program name with args.
10383set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010387 $as_echo_n "(cached) " >&6
10388else
10389 if test -n "$ac_ct_STRIP"; then
10390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10391else
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010401 break 2
10402 fi
10403done
cristy8b350f62009-11-15 23:12:43 +000010404 done
cristy3ed852e2009-09-05 21:47:34 +000010405IFS=$as_save_IFS
10406
10407fi
10408fi
10409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10410if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo "$ac_ct_STRIP" >&6; }
10413else
cristy8b350f62009-11-15 23:12:43 +000010414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010415$as_echo "no" >&6; }
10416fi
10417
10418 if test "x$ac_ct_STRIP" = x; then
10419 STRIP=":"
10420 else
10421 case $cross_compiling:$ac_tool_warned in
10422yes:)
cristy8b350f62009-11-15 23:12:43 +000010423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425ac_tool_warned=yes ;;
10426esac
10427 STRIP=$ac_ct_STRIP
10428 fi
10429else
10430 STRIP="$ac_cv_prog_STRIP"
10431fi
10432
10433test -z "$STRIP" && STRIP=:
10434
10435
10436
10437
10438
10439
10440if test -n "$ac_tool_prefix"; then
10441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010444$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010445if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010446 $as_echo_n "(cached) " >&6
10447else
10448 if test -n "$RANLIB"; then
10449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010460 break 2
10461 fi
10462done
cristy8b350f62009-11-15 23:12:43 +000010463 done
cristy3ed852e2009-09-05 21:47:34 +000010464IFS=$as_save_IFS
10465
10466fi
10467fi
10468RANLIB=$ac_cv_prog_RANLIB
10469if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010471$as_echo "$RANLIB" >&6; }
10472else
cristy8b350f62009-11-15 23:12:43 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010474$as_echo "no" >&6; }
10475fi
10476
10477
10478fi
10479if test -z "$ac_cv_prog_RANLIB"; then
10480 ac_ct_RANLIB=$RANLIB
10481 # Extract the first word of "ranlib", so it can be a program name with args.
10482set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010484$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010486 $as_echo_n "(cached) " >&6
10487else
10488 if test -n "$ac_ct_RANLIB"; then
10489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10498 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010500 break 2
10501 fi
10502done
cristy8b350f62009-11-15 23:12:43 +000010503 done
cristy3ed852e2009-09-05 21:47:34 +000010504IFS=$as_save_IFS
10505
10506fi
10507fi
10508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10509if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010511$as_echo "$ac_ct_RANLIB" >&6; }
10512else
cristy8b350f62009-11-15 23:12:43 +000010513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010514$as_echo "no" >&6; }
10515fi
10516
10517 if test "x$ac_ct_RANLIB" = x; then
10518 RANLIB=":"
10519 else
10520 case $cross_compiling:$ac_tool_warned in
10521yes:)
cristy8b350f62009-11-15 23:12:43 +000010522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10524ac_tool_warned=yes ;;
10525esac
10526 RANLIB=$ac_ct_RANLIB
10527 fi
10528else
10529 RANLIB="$ac_cv_prog_RANLIB"
10530fi
10531
10532test -z "$RANLIB" && RANLIB=:
10533
10534
10535
10536
10537
10538
10539# Determine commands to create old-style static archives.
10540old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10541old_postinstall_cmds='chmod 644 $oldlib'
10542old_postuninstall_cmds=
10543
10544if test -n "$RANLIB"; then
10545 case $host_os in
10546 openbsd*)
10547 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10548 ;;
10549 *)
10550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10551 ;;
10552 esac
10553 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10554fi
10555
cristyfd9dcd42010-08-08 18:07:02 +000010556case $host_os in
10557 darwin*)
10558 lock_old_archive_extraction=yes ;;
10559 *)
10560 lock_old_archive_extraction=no ;;
10561esac
10562
10563
10564
10565
10566
10567
cristy3ed852e2009-09-05 21:47:34 +000010568
10569
10570
10571
10572
10573
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# If no C compiler was specified, use CC.
10602LTCC=${LTCC-"$CC"}
10603
10604# If no C compiler flags were specified, use CFLAGS.
10605LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10606
10607# Allow CC to be a program name with arguments.
10608compiler=$CC
10609
10610
10611# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010613$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010614if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010615 $as_echo_n "(cached) " >&6
10616else
10617
10618# These are sane defaults that work on at least a few old systems.
10619# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10620
10621# Character class describing NM global symbol codes.
10622symcode='[BCDEGRST]'
10623
10624# Regexp to match symbols that can be accessed directly from C.
10625sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10626
10627# Define system-specific variables.
10628case $host_os in
10629aix*)
10630 symcode='[BCDT]'
10631 ;;
10632cygwin* | mingw* | pw32* | cegcc*)
10633 symcode='[ABCDGISTW]'
10634 ;;
10635hpux*)
10636 if test "$host_cpu" = ia64; then
10637 symcode='[ABCDEGRST]'
10638 fi
10639 ;;
10640irix* | nonstopux*)
10641 symcode='[BCDEGRST]'
10642 ;;
10643osf*)
10644 symcode='[BCDEGQRST]'
10645 ;;
10646solaris*)
10647 symcode='[BDRT]'
10648 ;;
10649sco3.2v5*)
10650 symcode='[DT]'
10651 ;;
10652sysv4.2uw2*)
10653 symcode='[DT]'
10654 ;;
10655sysv5* | sco5v6* | unixware* | OpenUNIX*)
10656 symcode='[ABDT]'
10657 ;;
10658sysv4)
10659 symcode='[DFNSTU]'
10660 ;;
10661esac
10662
10663# If we're using GNU nm, then use its standard symbol codes.
10664case `$NM -V 2>&1` in
10665*GNU* | *'with BFD'*)
10666 symcode='[ABCDGIRSTW]' ;;
10667esac
10668
10669# Transform an extracted symbol line into a proper C declaration.
10670# Some systems (esp. on ia64) link data and code symbols differently,
10671# so use this general approach.
10672lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10673
10674# Transform an extracted symbol line into symbol name and symbol address
10675lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10676lt_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'"
10677
10678# Handle CRLF in mingw tool chain
10679opt_cr=
10680case $build_os in
10681mingw*)
10682 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10683 ;;
10684esac
10685
10686# Try without a prefix underscore, then with it.
10687for ac_symprfx in "" "_"; do
10688
10689 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10690 symxfrm="\\1 $ac_symprfx\\2 \\2"
10691
10692 # Write the raw and C identifiers.
10693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10694 # Fake it for dumpbin and say T for any non-static function
10695 # and D for any global variable.
10696 # Also find C++ and __fastcall symbols from MSVC++,
10697 # which start with @ or ?.
10698 lt_cv_sys_global_symbol_pipe="$AWK '"\
10699" {last_section=section; section=\$ 3};"\
10700" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10701" \$ 0!~/External *\|/{next};"\
10702" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10703" {if(hide[section]) next};"\
10704" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10705" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10706" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10707" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10708" ' prfx=^$ac_symprfx"
10709 else
10710 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10711 fi
10712
10713 # Check to see that the pipe works correctly.
10714 pipe_works=no
10715
10716 rm -f conftest*
10717 cat > conftest.$ac_ext <<_LT_EOF
10718#ifdef __cplusplus
10719extern "C" {
10720#endif
10721char nm_test_var;
10722void nm_test_func(void);
10723void nm_test_func(void){}
10724#ifdef __cplusplus
10725}
10726#endif
10727int main(){nm_test_var='a';nm_test_func();return(0);}
10728_LT_EOF
10729
cristy8b350f62009-11-15 23:12:43 +000010730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010731 (eval $ac_compile) 2>&5
10732 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10734 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010735 # Now try to grab the symbols.
10736 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10738 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010739 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010742 # Try sorting and uniquifying the output.
10743 if sort "$nlist" | uniq > "$nlist"T; then
10744 mv -f "$nlist"T "$nlist"
10745 else
10746 rm -f "$nlist"T
10747 fi
10748
10749 # Make sure that we snagged all the symbols we need.
10750 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10751 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10752 cat <<_LT_EOF > conftest.$ac_ext
10753#ifdef __cplusplus
10754extern "C" {
10755#endif
10756
10757_LT_EOF
10758 # Now generate the symbol file.
10759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10760
10761 cat <<_LT_EOF >> conftest.$ac_ext
10762
10763/* The mapping between symbol names and symbols. */
10764const struct {
10765 const char *name;
10766 void *address;
10767}
10768lt__PROGRAM__LTX_preloaded_symbols[] =
10769{
10770 { "@PROGRAM@", (void *) 0 },
10771_LT_EOF
10772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10773 cat <<\_LT_EOF >> conftest.$ac_ext
10774 {0, (void *) 0}
10775};
10776
10777/* This works around a problem in FreeBSD linker */
10778#ifdef FREEBSD_WORKAROUND
10779static const void *lt_preloaded_setup() {
10780 return lt__PROGRAM__LTX_preloaded_symbols;
10781}
10782#endif
10783
10784#ifdef __cplusplus
10785}
10786#endif
10787_LT_EOF
10788 # Now try linking the two files.
10789 mv conftest.$ac_objext conftstm.$ac_objext
10790 lt_save_LIBS="$LIBS"
10791 lt_save_CFLAGS="$CFLAGS"
10792 LIBS="conftstm.$ac_objext"
10793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010795 (eval $ac_link) 2>&5
10796 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010799 pipe_works=yes
10800 fi
10801 LIBS="$lt_save_LIBS"
10802 CFLAGS="$lt_save_CFLAGS"
10803 else
10804 echo "cannot find nm_test_func in $nlist" >&5
10805 fi
10806 else
10807 echo "cannot find nm_test_var in $nlist" >&5
10808 fi
10809 else
10810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10811 fi
10812 else
10813 echo "$progname: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 fi
10816 rm -rf conftest* conftst*
10817
10818 # Do not use the global_symbol_pipe unless it works.
10819 if test "$pipe_works" = yes; then
10820 break
10821 else
10822 lt_cv_sys_global_symbol_pipe=
10823 fi
10824done
10825
10826fi
10827
10828if test -z "$lt_cv_sys_global_symbol_pipe"; then
10829 lt_cv_sys_global_symbol_to_cdecl=
10830fi
10831if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010833$as_echo "failed" >&6; }
10834else
cristy8b350f62009-11-15 23:12:43 +000010835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010836$as_echo "ok" >&6; }
10837fi
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010861if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010862 enableval=$enable_libtool_lock;
10863fi
10864
10865test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10866
10867# Some flags need to be propagated to the compiler or linker for good
10868# libtool support.
10869case $host in
10870ia64-*-hpux*)
10871 # Find out which ABI we are using.
10872 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010874 (eval $ac_compile) 2>&5
10875 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10877 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010878 case `/usr/bin/file conftest.$ac_objext` in
10879 *ELF-32*)
10880 HPUX_IA64_MODE="32"
10881 ;;
10882 *ELF-64*)
10883 HPUX_IA64_MODE="64"
10884 ;;
10885 esac
10886 fi
10887 rm -rf conftest*
10888 ;;
10889*-*-irix6*)
10890 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010891 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010893 (eval $ac_compile) 2>&5
10894 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010897 if test "$lt_cv_prog_gnu_ld" = yes; then
10898 case `/usr/bin/file conftest.$ac_objext` in
10899 *32-bit*)
10900 LD="${LD-ld} -melf32bsmip"
10901 ;;
10902 *N32*)
10903 LD="${LD-ld} -melf32bmipn32"
10904 ;;
10905 *64-bit*)
10906 LD="${LD-ld} -melf64bmip"
10907 ;;
10908 esac
10909 else
10910 case `/usr/bin/file conftest.$ac_objext` in
10911 *32-bit*)
10912 LD="${LD-ld} -32"
10913 ;;
10914 *N32*)
10915 LD="${LD-ld} -n32"
10916 ;;
10917 *64-bit*)
10918 LD="${LD-ld} -64"
10919 ;;
10920 esac
10921 fi
10922 fi
10923 rm -rf conftest*
10924 ;;
10925
10926x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10927s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10928 # Find out which ABI we are using.
10929 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010931 (eval $ac_compile) 2>&5
10932 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10934 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010935 case `/usr/bin/file conftest.o` in
10936 *32-bit*)
10937 case $host in
10938 x86_64-*kfreebsd*-gnu)
10939 LD="${LD-ld} -m elf_i386_fbsd"
10940 ;;
10941 x86_64-*linux*)
10942 LD="${LD-ld} -m elf_i386"
10943 ;;
10944 ppc64-*linux*|powerpc64-*linux*)
10945 LD="${LD-ld} -m elf32ppclinux"
10946 ;;
10947 s390x-*linux*)
10948 LD="${LD-ld} -m elf_s390"
10949 ;;
10950 sparc64-*linux*)
10951 LD="${LD-ld} -m elf32_sparc"
10952 ;;
10953 esac
10954 ;;
10955 *64-bit*)
10956 case $host in
10957 x86_64-*kfreebsd*-gnu)
10958 LD="${LD-ld} -m elf_x86_64_fbsd"
10959 ;;
10960 x86_64-*linux*)
10961 LD="${LD-ld} -m elf_x86_64"
10962 ;;
10963 ppc*-*linux*|powerpc*-*linux*)
10964 LD="${LD-ld} -m elf64ppc"
10965 ;;
10966 s390*-*linux*|s390*-*tpf*)
10967 LD="${LD-ld} -m elf64_s390"
10968 ;;
10969 sparc*-*linux*)
10970 LD="${LD-ld} -m elf64_sparc"
10971 ;;
10972 esac
10973 ;;
10974 esac
10975 fi
10976 rm -rf conftest*
10977 ;;
10978
10979*-*-sco3.2v5*)
10980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10981 SAVE_CFLAGS="$CFLAGS"
10982 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010984$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010985if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010986 $as_echo_n "(cached) " >&6
10987else
10988 ac_ext=c
10989ac_cpp='$CPP $CPPFLAGS'
10990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992ac_compiler_gnu=$ac_cv_c_compiler_gnu
10993
cristy8b350f62009-11-15 23:12:43 +000010994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010995/* end confdefs.h. */
10996
10997int
10998main ()
10999{
11000
11001 ;
11002 return 0;
11003}
11004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011006 lt_cv_cc_needs_belf=yes
11007else
cristy8b350f62009-11-15 23:12:43 +000011008 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011009fi
cristy8b350f62009-11-15 23:12:43 +000011010rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011012 ac_ext=c
11013ac_cpp='$CPP $CPPFLAGS'
11014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016ac_compiler_gnu=$ac_cv_c_compiler_gnu
11017
11018fi
cristy8b350f62009-11-15 23:12:43 +000011019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011020$as_echo "$lt_cv_cc_needs_belf" >&6; }
11021 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11022 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11023 CFLAGS="$SAVE_CFLAGS"
11024 fi
11025 ;;
11026sparc*-*solaris*)
11027 # Find out which ABI we are using.
11028 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011030 (eval $ac_compile) 2>&5
11031 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011034 case `/usr/bin/file conftest.o` in
11035 *64-bit*)
11036 case $lt_cv_prog_gnu_ld in
11037 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11038 *)
11039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11040 LD="${LD-ld} -64"
11041 fi
11042 ;;
11043 esac
11044 ;;
11045 esac
11046 fi
11047 rm -rf conftest*
11048 ;;
11049esac
11050
11051need_locks="$enable_libtool_lock"
11052
11053
11054 case $host_os in
11055 rhapsody* | darwin*)
11056 if test -n "$ac_tool_prefix"; then
11057 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11058set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011061if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011062 $as_echo_n "(cached) " >&6
11063else
11064 if test -n "$DSYMUTIL"; then
11065 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11066else
11067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068for as_dir in $PATH
11069do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11074 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011076 break 2
11077 fi
11078done
cristy8b350f62009-11-15 23:12:43 +000011079 done
cristy3ed852e2009-09-05 21:47:34 +000011080IFS=$as_save_IFS
11081
11082fi
11083fi
11084DSYMUTIL=$ac_cv_prog_DSYMUTIL
11085if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011087$as_echo "$DSYMUTIL" >&6; }
11088else
cristy8b350f62009-11-15 23:12:43 +000011089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011090$as_echo "no" >&6; }
11091fi
11092
11093
11094fi
11095if test -z "$ac_cv_prog_DSYMUTIL"; then
11096 ac_ct_DSYMUTIL=$DSYMUTIL
11097 # Extract the first word of "dsymutil", so it can be a program name with args.
11098set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011101if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011102 $as_echo_n "(cached) " >&6
11103else
11104 if test -n "$ac_ct_DSYMUTIL"; then
11105 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11106else
11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011116 break 2
11117 fi
11118done
cristy8b350f62009-11-15 23:12:43 +000011119 done
cristy3ed852e2009-09-05 21:47:34 +000011120IFS=$as_save_IFS
11121
11122fi
11123fi
11124ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11125if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011127$as_echo "$ac_ct_DSYMUTIL" >&6; }
11128else
cristy8b350f62009-11-15 23:12:43 +000011129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011130$as_echo "no" >&6; }
11131fi
11132
11133 if test "x$ac_ct_DSYMUTIL" = x; then
11134 DSYMUTIL=":"
11135 else
11136 case $cross_compiling:$ac_tool_warned in
11137yes:)
cristy8b350f62009-11-15 23:12:43 +000011138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11140ac_tool_warned=yes ;;
11141esac
11142 DSYMUTIL=$ac_ct_DSYMUTIL
11143 fi
11144else
11145 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11146fi
11147
11148 if test -n "$ac_tool_prefix"; then
11149 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11150set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011153if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011154 $as_echo_n "(cached) " >&6
11155else
11156 if test -n "$NMEDIT"; then
11157 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11158else
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11166 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011168 break 2
11169 fi
11170done
cristy8b350f62009-11-15 23:12:43 +000011171 done
cristy3ed852e2009-09-05 21:47:34 +000011172IFS=$as_save_IFS
11173
11174fi
11175fi
11176NMEDIT=$ac_cv_prog_NMEDIT
11177if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011179$as_echo "$NMEDIT" >&6; }
11180else
cristy8b350f62009-11-15 23:12:43 +000011181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011182$as_echo "no" >&6; }
11183fi
11184
11185
11186fi
11187if test -z "$ac_cv_prog_NMEDIT"; then
11188 ac_ct_NMEDIT=$NMEDIT
11189 # Extract the first word of "nmedit", so it can be a program name with args.
11190set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011192$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011193if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011194 $as_echo_n "(cached) " >&6
11195else
11196 if test -n "$ac_ct_NMEDIT"; then
11197 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011208 break 2
11209 fi
11210done
cristy8b350f62009-11-15 23:12:43 +000011211 done
cristy3ed852e2009-09-05 21:47:34 +000011212IFS=$as_save_IFS
11213
11214fi
11215fi
11216ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11217if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011219$as_echo "$ac_ct_NMEDIT" >&6; }
11220else
cristy8b350f62009-11-15 23:12:43 +000011221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011222$as_echo "no" >&6; }
11223fi
11224
11225 if test "x$ac_ct_NMEDIT" = x; then
11226 NMEDIT=":"
11227 else
11228 case $cross_compiling:$ac_tool_warned in
11229yes:)
cristy8b350f62009-11-15 23:12:43 +000011230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234 NMEDIT=$ac_ct_NMEDIT
11235 fi
11236else
11237 NMEDIT="$ac_cv_prog_NMEDIT"
11238fi
11239
11240 if test -n "$ac_tool_prefix"; then
11241 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11242set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011244$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011245if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011246 $as_echo_n "(cached) " >&6
11247else
11248 if test -n "$LIPO"; then
11249 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011260 break 2
11261 fi
11262done
cristy8b350f62009-11-15 23:12:43 +000011263 done
cristy3ed852e2009-09-05 21:47:34 +000011264IFS=$as_save_IFS
11265
11266fi
11267fi
11268LIPO=$ac_cv_prog_LIPO
11269if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011271$as_echo "$LIPO" >&6; }
11272else
cristy8b350f62009-11-15 23:12:43 +000011273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011274$as_echo "no" >&6; }
11275fi
11276
11277
11278fi
11279if test -z "$ac_cv_prog_LIPO"; then
11280 ac_ct_LIPO=$LIPO
11281 # Extract the first word of "lipo", so it can be a program name with args.
11282set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011284$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011285if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011286 $as_echo_n "(cached) " >&6
11287else
11288 if test -n "$ac_ct_LIPO"; then
11289 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011300 break 2
11301 fi
11302done
cristy8b350f62009-11-15 23:12:43 +000011303 done
cristy3ed852e2009-09-05 21:47:34 +000011304IFS=$as_save_IFS
11305
11306fi
11307fi
11308ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11309if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011311$as_echo "$ac_ct_LIPO" >&6; }
11312else
cristy8b350f62009-11-15 23:12:43 +000011313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011314$as_echo "no" >&6; }
11315fi
11316
11317 if test "x$ac_ct_LIPO" = x; then
11318 LIPO=":"
11319 else
11320 case $cross_compiling:$ac_tool_warned in
11321yes:)
cristy8b350f62009-11-15 23:12:43 +000011322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324ac_tool_warned=yes ;;
11325esac
11326 LIPO=$ac_ct_LIPO
11327 fi
11328else
11329 LIPO="$ac_cv_prog_LIPO"
11330fi
11331
11332 if test -n "$ac_tool_prefix"; then
11333 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11334set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011337if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011338 $as_echo_n "(cached) " >&6
11339else
11340 if test -n "$OTOOL"; then
11341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011352 break 2
11353 fi
11354done
cristy8b350f62009-11-15 23:12:43 +000011355 done
cristy3ed852e2009-09-05 21:47:34 +000011356IFS=$as_save_IFS
11357
11358fi
11359fi
11360OTOOL=$ac_cv_prog_OTOOL
11361if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011363$as_echo "$OTOOL" >&6; }
11364else
cristy8b350f62009-11-15 23:12:43 +000011365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011366$as_echo "no" >&6; }
11367fi
11368
11369
11370fi
11371if test -z "$ac_cv_prog_OTOOL"; then
11372 ac_ct_OTOOL=$OTOOL
11373 # Extract the first word of "otool", so it can be a program name with args.
11374set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011376$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011377if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$ac_ct_OTOOL"; then
11381 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011392 break 2
11393 fi
11394done
cristy8b350f62009-11-15 23:12:43 +000011395 done
cristy3ed852e2009-09-05 21:47:34 +000011396IFS=$as_save_IFS
11397
11398fi
11399fi
11400ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11401if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011403$as_echo "$ac_ct_OTOOL" >&6; }
11404else
cristy8b350f62009-11-15 23:12:43 +000011405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011406$as_echo "no" >&6; }
11407fi
11408
11409 if test "x$ac_ct_OTOOL" = x; then
11410 OTOOL=":"
11411 else
11412 case $cross_compiling:$ac_tool_warned in
11413yes:)
cristy8b350f62009-11-15 23:12:43 +000011414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416ac_tool_warned=yes ;;
11417esac
11418 OTOOL=$ac_ct_OTOOL
11419 fi
11420else
11421 OTOOL="$ac_cv_prog_OTOOL"
11422fi
11423
11424 if test -n "$ac_tool_prefix"; then
11425 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11426set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011428$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011429if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011430 $as_echo_n "(cached) " >&6
11431else
11432 if test -n "$OTOOL64"; then
11433 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011444 break 2
11445 fi
11446done
cristy8b350f62009-11-15 23:12:43 +000011447 done
cristy3ed852e2009-09-05 21:47:34 +000011448IFS=$as_save_IFS
11449
11450fi
11451fi
11452OTOOL64=$ac_cv_prog_OTOOL64
11453if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011455$as_echo "$OTOOL64" >&6; }
11456else
cristy8b350f62009-11-15 23:12:43 +000011457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011458$as_echo "no" >&6; }
11459fi
11460
11461
11462fi
11463if test -z "$ac_cv_prog_OTOOL64"; then
11464 ac_ct_OTOOL64=$OTOOL64
11465 # Extract the first word of "otool64", so it can be a program name with args.
11466set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011468$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011469if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011470 $as_echo_n "(cached) " >&6
11471else
11472 if test -n "$ac_ct_OTOOL64"; then
11473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011484 break 2
11485 fi
11486done
cristy8b350f62009-11-15 23:12:43 +000011487 done
cristy3ed852e2009-09-05 21:47:34 +000011488IFS=$as_save_IFS
11489
11490fi
11491fi
11492ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11493if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011495$as_echo "$ac_ct_OTOOL64" >&6; }
11496else
cristy8b350f62009-11-15 23:12:43 +000011497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011498$as_echo "no" >&6; }
11499fi
11500
11501 if test "x$ac_ct_OTOOL64" = x; then
11502 OTOOL64=":"
11503 else
11504 case $cross_compiling:$ac_tool_warned in
11505yes:)
cristy8b350f62009-11-15 23:12:43 +000011506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11508ac_tool_warned=yes ;;
11509esac
11510 OTOOL64=$ac_ct_OTOOL64
11511 fi
11512else
11513 OTOOL64="$ac_cv_prog_OTOOL64"
11514fi
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
cristy8b350f62009-11-15 23:12:43 +000011542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011543$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011544if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011545 $as_echo_n "(cached) " >&6
11546else
11547 lt_cv_apple_cc_single_mod=no
11548 if test -z "${LT_MULTI_MODULE}"; then
11549 # By default we will add the -single_module flag. You can override
11550 # by either setting the environment variable LT_MULTI_MODULE
11551 # non-empty at configure time, or by adding -multi_module to the
11552 # link flags.
11553 rm -rf libconftest.dylib*
11554 echo "int foo(void){return 1;}" > conftest.c
11555 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11556-dynamiclib -Wl,-single_module conftest.c" >&5
11557 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11558 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11559 _lt_result=$?
11560 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11561 lt_cv_apple_cc_single_mod=yes
11562 else
11563 cat conftest.err >&5
11564 fi
11565 rm -rf libconftest.dylib*
11566 rm -f conftest.*
11567 fi
11568fi
cristy8b350f62009-11-15 23:12:43 +000011569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011570$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011572$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011573if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011574 $as_echo_n "(cached) " >&6
11575else
11576 lt_cv_ld_exported_symbols_list=no
11577 save_LDFLAGS=$LDFLAGS
11578 echo "_main" > conftest.sym
11579 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011581/* end confdefs.h. */
11582
11583int
11584main ()
11585{
11586
11587 ;
11588 return 0;
11589}
11590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011592 lt_cv_ld_exported_symbols_list=yes
11593else
cristy8b350f62009-11-15 23:12:43 +000011594 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011595fi
cristy8b350f62009-11-15 23:12:43 +000011596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011598 LDFLAGS="$save_LDFLAGS"
11599
11600fi
cristy8b350f62009-11-15 23:12:43 +000011601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011602$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11604$as_echo_n "checking for -force_load linker flag... " >&6; }
11605if test "${lt_cv_ld_force_load+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607else
11608 lt_cv_ld_force_load=no
11609 cat > conftest.c << _LT_EOF
11610int forced_loaded() { return 2;}
11611_LT_EOF
11612 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11613 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11614 echo "$AR cru libconftest.a conftest.o" >&5
11615 $AR cru libconftest.a conftest.o 2>&5
11616 echo "$RANLIB libconftest.a" >&5
11617 $RANLIB libconftest.a 2>&5
11618 cat > conftest.c << _LT_EOF
11619int main() { return 0;}
11620_LT_EOF
11621 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11622 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11623 _lt_result=$?
11624 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11625 lt_cv_ld_force_load=yes
11626 else
11627 cat conftest.err >&5
11628 fi
11629 rm -f conftest.err libconftest.a conftest conftest.c
11630 rm -rf conftest.dSYM
11631
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11634$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011635 case $host_os in
11636 rhapsody* | darwin1.[012])
11637 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11638 darwin1.*)
11639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11640 darwin*) # darwin 5.x on
11641 # if running on 10.5 or later, the deployment target defaults
11642 # to the OS version, if on x86, and 10.4, the deployment
11643 # target defaults to 10.4. Don't you love it?
11644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11647 10.[012]*)
11648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11649 10.*)
11650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11651 esac
11652 ;;
11653 esac
11654 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11655 _lt_dar_single_mod='$single_module'
11656 fi
11657 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11658 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11659 else
11660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11661 fi
cristyfd9dcd42010-08-08 18:07:02 +000011662 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011663 _lt_dsymutil='~$DSYMUTIL $lib || :'
11664 else
11665 _lt_dsymutil=
11666 fi
11667 ;;
11668 esac
11669
cristy3ed852e2009-09-05 21:47:34 +000011670for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011671do :
11672 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11673"
11674if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011675 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011676#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011677_ACEOF
11678
11679fi
11680
11681done
11682
11683
11684
cristy3ed852e2009-09-05 21:47:34 +000011685
11686
11687
11688# Set options
11689enable_win32_dll=yes
11690
11691case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011692*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011693 if test -n "$ac_tool_prefix"; then
11694 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11695set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011697$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011698if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011699 $as_echo_n "(cached) " >&6
11700else
11701 if test -n "$AS"; then
11702 ac_cv_prog_AS="$AS" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011713 break 2
11714 fi
11715done
cristy8b350f62009-11-15 23:12:43 +000011716 done
cristy3ed852e2009-09-05 21:47:34 +000011717IFS=$as_save_IFS
11718
11719fi
11720fi
11721AS=$ac_cv_prog_AS
11722if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011724$as_echo "$AS" >&6; }
11725else
cristy8b350f62009-11-15 23:12:43 +000011726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011727$as_echo "no" >&6; }
11728fi
11729
11730
11731fi
11732if test -z "$ac_cv_prog_AS"; then
11733 ac_ct_AS=$AS
11734 # Extract the first word of "as", so it can be a program name with args.
11735set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011737$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011738if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011739 $as_echo_n "(cached) " >&6
11740else
11741 if test -n "$ac_ct_AS"; then
11742 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011753 break 2
11754 fi
11755done
cristy8b350f62009-11-15 23:12:43 +000011756 done
cristy3ed852e2009-09-05 21:47:34 +000011757IFS=$as_save_IFS
11758
11759fi
11760fi
11761ac_ct_AS=$ac_cv_prog_ac_ct_AS
11762if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011764$as_echo "$ac_ct_AS" >&6; }
11765else
cristy8b350f62009-11-15 23:12:43 +000011766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011767$as_echo "no" >&6; }
11768fi
11769
11770 if test "x$ac_ct_AS" = x; then
11771 AS="false"
11772 else
11773 case $cross_compiling:$ac_tool_warned in
11774yes:)
cristy8b350f62009-11-15 23:12:43 +000011775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779 AS=$ac_ct_AS
11780 fi
11781else
11782 AS="$ac_cv_prog_AS"
11783fi
11784
11785 if test -n "$ac_tool_prefix"; then
11786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11787set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011789$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011790if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011791 $as_echo_n "(cached) " >&6
11792else
11793 if test -n "$DLLTOOL"; then
11794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011805 break 2
11806 fi
11807done
cristy8b350f62009-11-15 23:12:43 +000011808 done
cristy3ed852e2009-09-05 21:47:34 +000011809IFS=$as_save_IFS
11810
11811fi
11812fi
11813DLLTOOL=$ac_cv_prog_DLLTOOL
11814if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011816$as_echo "$DLLTOOL" >&6; }
11817else
cristy8b350f62009-11-15 23:12:43 +000011818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011819$as_echo "no" >&6; }
11820fi
11821
11822
11823fi
11824if test -z "$ac_cv_prog_DLLTOOL"; then
11825 ac_ct_DLLTOOL=$DLLTOOL
11826 # Extract the first word of "dlltool", so it can be a program name with args.
11827set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011829$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011830if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011831 $as_echo_n "(cached) " >&6
11832else
11833 if test -n "$ac_ct_DLLTOOL"; then
11834 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011845 break 2
11846 fi
11847done
cristy8b350f62009-11-15 23:12:43 +000011848 done
cristy3ed852e2009-09-05 21:47:34 +000011849IFS=$as_save_IFS
11850
11851fi
11852fi
11853ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11854if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011856$as_echo "$ac_ct_DLLTOOL" >&6; }
11857else
cristy8b350f62009-11-15 23:12:43 +000011858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011859$as_echo "no" >&6; }
11860fi
11861
11862 if test "x$ac_ct_DLLTOOL" = x; then
11863 DLLTOOL="false"
11864 else
11865 case $cross_compiling:$ac_tool_warned in
11866yes:)
cristy8b350f62009-11-15 23:12:43 +000011867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869ac_tool_warned=yes ;;
11870esac
11871 DLLTOOL=$ac_ct_DLLTOOL
11872 fi
11873else
11874 DLLTOOL="$ac_cv_prog_DLLTOOL"
11875fi
11876
11877 if test -n "$ac_tool_prefix"; then
11878 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11879set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011881$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011882if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011883 $as_echo_n "(cached) " >&6
11884else
11885 if test -n "$OBJDUMP"; then
11886 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11887else
11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011897 break 2
11898 fi
11899done
cristy8b350f62009-11-15 23:12:43 +000011900 done
cristy3ed852e2009-09-05 21:47:34 +000011901IFS=$as_save_IFS
11902
11903fi
11904fi
11905OBJDUMP=$ac_cv_prog_OBJDUMP
11906if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011908$as_echo "$OBJDUMP" >&6; }
11909else
cristy8b350f62009-11-15 23:12:43 +000011910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011911$as_echo "no" >&6; }
11912fi
11913
11914
11915fi
11916if test -z "$ac_cv_prog_OBJDUMP"; then
11917 ac_ct_OBJDUMP=$OBJDUMP
11918 # Extract the first word of "objdump", so it can be a program name with args.
11919set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011921$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011922if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011923 $as_echo_n "(cached) " >&6
11924else
11925 if test -n "$ac_ct_OBJDUMP"; then
11926 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11927else
11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11935 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011937 break 2
11938 fi
11939done
cristy8b350f62009-11-15 23:12:43 +000011940 done
cristy3ed852e2009-09-05 21:47:34 +000011941IFS=$as_save_IFS
11942
11943fi
11944fi
11945ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11946if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011948$as_echo "$ac_ct_OBJDUMP" >&6; }
11949else
cristy8b350f62009-11-15 23:12:43 +000011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011951$as_echo "no" >&6; }
11952fi
11953
11954 if test "x$ac_ct_OBJDUMP" = x; then
11955 OBJDUMP="false"
11956 else
11957 case $cross_compiling:$ac_tool_warned in
11958yes:)
cristy8b350f62009-11-15 23:12:43 +000011959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11961ac_tool_warned=yes ;;
11962esac
11963 OBJDUMP=$ac_ct_OBJDUMP
11964 fi
11965else
11966 OBJDUMP="$ac_cv_prog_OBJDUMP"
11967fi
11968
11969 ;;
11970esac
11971
11972test -z "$AS" && AS=as
11973
11974
11975
11976
11977
11978test -z "$DLLTOOL" && DLLTOOL=dlltool
11979
11980
11981
11982
11983
11984test -z "$OBJDUMP" && OBJDUMP=objdump
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011995if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011996 enableval=$enable_shared; p=${PACKAGE-default}
11997 case $enableval in
11998 yes) enable_shared=yes ;;
11999 no) enable_shared=no ;;
12000 *)
12001 enable_shared=no
12002 # Look at the argument we got. We use all the common list separators.
12003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12004 for pkg in $enableval; do
12005 IFS="$lt_save_ifs"
12006 if test "X$pkg" = "X$p"; then
12007 enable_shared=yes
12008 fi
12009 done
12010 IFS="$lt_save_ifs"
12011 ;;
12012 esac
12013else
12014 enable_shared=yes
12015fi
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012026if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012027 enableval=$enable_static; p=${PACKAGE-default}
12028 case $enableval in
12029 yes) enable_static=yes ;;
12030 no) enable_static=no ;;
12031 *)
12032 enable_static=no
12033 # Look at the argument we got. We use all the common list separators.
12034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12035 for pkg in $enableval; do
12036 IFS="$lt_save_ifs"
12037 if test "X$pkg" = "X$p"; then
12038 enable_static=yes
12039 fi
12040 done
12041 IFS="$lt_save_ifs"
12042 ;;
12043 esac
12044else
12045 enable_static=yes
12046fi
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012058if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012059 withval=$with_pic; pic_mode="$withval"
12060else
12061 pic_mode=default
12062fi
12063
12064
12065test -z "$pic_mode" && pic_mode=default
12066
12067
12068
12069
12070
12071
12072
12073 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012074if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012075 enableval=$enable_fast_install; p=${PACKAGE-default}
12076 case $enableval in
12077 yes) enable_fast_install=yes ;;
12078 no) enable_fast_install=no ;;
12079 *)
12080 enable_fast_install=no
12081 # Look at the argument we got. We use all the common list separators.
12082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12083 for pkg in $enableval; do
12084 IFS="$lt_save_ifs"
12085 if test "X$pkg" = "X$p"; then
12086 enable_fast_install=yes
12087 fi
12088 done
12089 IFS="$lt_save_ifs"
12090 ;;
12091 esac
12092else
12093 enable_fast_install=yes
12094fi
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106# This can be used to rebuild libtool when needed
12107LIBTOOL_DEPS="$ltmain"
12108
12109# Always use our own libtool.
12110LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
cristyfd9dcd42010-08-08 18:07:02 +000012136
cristy3ed852e2009-09-05 21:47:34 +000012137test -z "$LN_S" && LN_S="ln -s"
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152if test -n "${ZSH_VERSION+set}" ; then
12153 setopt NO_GLOB_SUBST
12154fi
12155
cristy8b350f62009-11-15 23:12:43 +000012156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012157$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012158if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012159 $as_echo_n "(cached) " >&6
12160else
12161 rm -f .libs 2>/dev/null
12162mkdir .libs 2>/dev/null
12163if test -d .libs; then
12164 lt_cv_objdir=.libs
12165else
12166 # MS-DOS does not allow filenames that begin with a dot.
12167 lt_cv_objdir=_libs
12168fi
12169rmdir .libs 2>/dev/null
12170fi
cristy8b350f62009-11-15 23:12:43 +000012171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012172$as_echo "$lt_cv_objdir" >&6; }
12173objdir=$lt_cv_objdir
12174
12175
12176
12177
12178
12179cat >>confdefs.h <<_ACEOF
12180#define LT_OBJDIR "$lt_cv_objdir/"
12181_ACEOF
12182
12183
12184
12185
cristy3ed852e2009-09-05 21:47:34 +000012186case $host_os in
12187aix3*)
12188 # AIX sometimes has problems with the GCC collect2 program. For some
12189 # reason, if we set the COLLECT_NAMES environment variable, the problems
12190 # vanish in a puff of smoke.
12191 if test "X${COLLECT_NAMES+set}" != Xset; then
12192 COLLECT_NAMES=
12193 export COLLECT_NAMES
12194 fi
12195 ;;
12196esac
12197
cristy3ed852e2009-09-05 21:47:34 +000012198# Global variables:
12199ofile=libtool
12200can_build_shared=yes
12201
12202# All known linkers require a `.a' archive for static linking (except MSVC,
12203# which needs '.lib').
12204libext=a
12205
12206with_gnu_ld="$lt_cv_prog_gnu_ld"
12207
12208old_CC="$CC"
12209old_CFLAGS="$CFLAGS"
12210
12211# Set sane defaults for various variables
12212test -z "$CC" && CC=cc
12213test -z "$LTCC" && LTCC=$CC
12214test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12215test -z "$LD" && LD=ld
12216test -z "$ac_objext" && ac_objext=o
12217
12218for cc_temp in $compiler""; do
12219 case $cc_temp in
12220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12222 \-*) ;;
12223 *) break;;
12224 esac
12225done
cristyfd9dcd42010-08-08 18:07:02 +000012226cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012227
12228
12229# Only perform the check for file, if the check method requires it
12230test -z "$MAGIC_CMD" && MAGIC_CMD=file
12231case $deplibs_check_method in
12232file_magic*)
12233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012235$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012236if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012237 $as_echo_n "(cached) " >&6
12238else
12239 case $MAGIC_CMD in
12240[\\/*] | ?:[\\/]*)
12241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12242 ;;
12243*)
12244 lt_save_MAGIC_CMD="$MAGIC_CMD"
12245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12247 for ac_dir in $ac_dummy; do
12248 IFS="$lt_save_ifs"
12249 test -z "$ac_dir" && ac_dir=.
12250 if test -f $ac_dir/${ac_tool_prefix}file; then
12251 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12252 if test -n "$file_magic_test_file"; then
12253 case $deplibs_check_method in
12254 "file_magic "*)
12255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12258 $EGREP "$file_magic_regex" > /dev/null; then
12259 :
12260 else
12261 cat <<_LT_EOF 1>&2
12262
12263*** Warning: the command libtool uses to detect shared libraries,
12264*** $file_magic_cmd, produces output that libtool cannot recognize.
12265*** The result is that libtool may fail to recognize shared libraries
12266*** as such. This will affect the creation of libtool libraries that
12267*** depend on shared libraries, but programs linked with such libtool
12268*** libraries will work regardless of this problem. Nevertheless, you
12269*** may want to report the problem to your system manager and/or to
12270*** bug-libtool@gnu.org
12271
12272_LT_EOF
12273 fi ;;
12274 esac
12275 fi
12276 break
12277 fi
12278 done
12279 IFS="$lt_save_ifs"
12280 MAGIC_CMD="$lt_save_MAGIC_CMD"
12281 ;;
12282esac
12283fi
12284
12285MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12286if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012288$as_echo "$MAGIC_CMD" >&6; }
12289else
cristy8b350f62009-11-15 23:12:43 +000012290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012291$as_echo "no" >&6; }
12292fi
12293
12294
12295
12296
12297
12298if test -z "$lt_cv_path_MAGIC_CMD"; then
12299 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012301$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012302if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012303 $as_echo_n "(cached) " >&6
12304else
12305 case $MAGIC_CMD in
12306[\\/*] | ?:[\\/]*)
12307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12308 ;;
12309*)
12310 lt_save_MAGIC_CMD="$MAGIC_CMD"
12311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12313 for ac_dir in $ac_dummy; do
12314 IFS="$lt_save_ifs"
12315 test -z "$ac_dir" && ac_dir=.
12316 if test -f $ac_dir/file; then
12317 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12318 if test -n "$file_magic_test_file"; then
12319 case $deplibs_check_method in
12320 "file_magic "*)
12321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12324 $EGREP "$file_magic_regex" > /dev/null; then
12325 :
12326 else
12327 cat <<_LT_EOF 1>&2
12328
12329*** Warning: the command libtool uses to detect shared libraries,
12330*** $file_magic_cmd, produces output that libtool cannot recognize.
12331*** The result is that libtool may fail to recognize shared libraries
12332*** as such. This will affect the creation of libtool libraries that
12333*** depend on shared libraries, but programs linked with such libtool
12334*** libraries will work regardless of this problem. Nevertheless, you
12335*** may want to report the problem to your system manager and/or to
12336*** bug-libtool@gnu.org
12337
12338_LT_EOF
12339 fi ;;
12340 esac
12341 fi
12342 break
12343 fi
12344 done
12345 IFS="$lt_save_ifs"
12346 MAGIC_CMD="$lt_save_MAGIC_CMD"
12347 ;;
12348esac
12349fi
12350
12351MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12352if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012354$as_echo "$MAGIC_CMD" >&6; }
12355else
cristy8b350f62009-11-15 23:12:43 +000012356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012357$as_echo "no" >&6; }
12358fi
12359
12360
12361 else
12362 MAGIC_CMD=:
12363 fi
12364fi
12365
12366 fi
12367 ;;
12368esac
12369
12370# Use C for the default configuration in the libtool script
12371
12372lt_save_CC="$CC"
12373ac_ext=c
12374ac_cpp='$CPP $CPPFLAGS'
12375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377ac_compiler_gnu=$ac_cv_c_compiler_gnu
12378
12379
12380# Source file extension for C test sources.
12381ac_ext=c
12382
12383# Object file extension for compiled C test sources.
12384objext=o
12385objext=$objext
12386
12387# Code to be used in simple compile tests
12388lt_simple_compile_test_code="int some_variable = 0;"
12389
12390# Code to be used in simple link tests
12391lt_simple_link_test_code='int main(){return(0);}'
12392
12393
12394
12395
12396
12397
12398
12399# If no C compiler was specified, use CC.
12400LTCC=${LTCC-"$CC"}
12401
12402# If no C compiler flags were specified, use CFLAGS.
12403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12404
12405# Allow CC to be a program name with arguments.
12406compiler=$CC
12407
12408# Save the default compiler, since it gets overwritten when the other
12409# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12410compiler_DEFAULT=$CC
12411
12412# save warnings/boilerplate of simple test code
12413ac_outfile=conftest.$ac_objext
12414echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12416_lt_compiler_boilerplate=`cat conftest.err`
12417$RM conftest*
12418
12419ac_outfile=conftest.$ac_objext
12420echo "$lt_simple_link_test_code" >conftest.$ac_ext
12421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12422_lt_linker_boilerplate=`cat conftest.err`
12423$RM -r conftest*
12424
12425
12426## CAVEAT EMPTOR:
12427## There is no encapsulation within the following macros, do not change
12428## the running order or otherwise move them around unless you know exactly
12429## what you are doing...
12430if test -n "$compiler"; then
12431
12432lt_prog_compiler_no_builtin_flag=
12433
12434if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012435 case $cc_basename in
12436 nvcc*)
12437 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12438 *)
12439 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12440 esac
cristy3ed852e2009-09-05 21:47:34 +000012441
cristy8b350f62009-11-15 23:12:43 +000012442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012443$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012444if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012445 $as_echo_n "(cached) " >&6
12446else
12447 lt_cv_prog_compiler_rtti_exceptions=no
12448 ac_outfile=conftest.$ac_objext
12449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12450 lt_compiler_flag="-fno-rtti -fno-exceptions"
12451 # Insert the option either (1) after the last *FLAGS variable, or
12452 # (2) before a word containing "conftest.", or (3) at the end.
12453 # Note that $ac_compile itself does not contain backslashes and begins
12454 # with a dollar sign (not a hyphen), so the echo should work correctly.
12455 # The option is referenced via a variable to avoid confusing sed.
12456 lt_compile=`echo "$ac_compile" | $SED \
12457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12459 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012461 (eval "$lt_compile" 2>conftest.err)
12462 ac_status=$?
12463 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012465 if (exit $ac_status) && test -s "$ac_outfile"; then
12466 # The compiler can only warn and ignore the option if not recognized
12467 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12471 lt_cv_prog_compiler_rtti_exceptions=yes
12472 fi
12473 fi
12474 $RM conftest*
12475
12476fi
cristy8b350f62009-11-15 23:12:43 +000012477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012478$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12479
12480if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12481 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12482else
12483 :
12484fi
12485
12486fi
12487
12488
12489
12490
12491
12492
12493 lt_prog_compiler_wl=
12494lt_prog_compiler_pic=
12495lt_prog_compiler_static=
12496
cristy8b350f62009-11-15 23:12:43 +000012497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12499
12500 if test "$GCC" = yes; then
12501 lt_prog_compiler_wl='-Wl,'
12502 lt_prog_compiler_static='-static'
12503
12504 case $host_os in
12505 aix*)
12506 # All AIX code is PIC.
12507 if test "$host_cpu" = ia64; then
12508 # AIX 5 now supports IA64 processor
12509 lt_prog_compiler_static='-Bstatic'
12510 fi
12511 ;;
12512
12513 amigaos*)
12514 case $host_cpu in
12515 powerpc)
12516 # see comment about AmigaOS4 .so support
12517 lt_prog_compiler_pic='-fPIC'
12518 ;;
12519 m68k)
12520 # FIXME: we need at least 68020 code to build shared libraries, but
12521 # adding the `-m68020' flag to GCC prevents building anything better,
12522 # like `-m68040'.
12523 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12524 ;;
12525 esac
12526 ;;
12527
12528 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12529 # PIC is the default for these OSes.
12530 ;;
12531
12532 mingw* | cygwin* | pw32* | os2* | cegcc*)
12533 # This hack is so that the source file can tell whether it is being
12534 # built for inclusion in a dll (and should export symbols for example).
12535 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12536 # (--disable-auto-import) libraries
12537 lt_prog_compiler_pic='-DDLL_EXPORT'
12538 ;;
12539
12540 darwin* | rhapsody*)
12541 # PIC is the default on this platform
12542 # Common symbols not allowed in MH_DYLIB files
12543 lt_prog_compiler_pic='-fno-common'
12544 ;;
12545
cristyfd9dcd42010-08-08 18:07:02 +000012546 haiku*)
12547 # PIC is the default for Haiku.
12548 # The "-static" flag exists, but is broken.
12549 lt_prog_compiler_static=
12550 ;;
12551
cristy3ed852e2009-09-05 21:47:34 +000012552 hpux*)
12553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12555 # sets the default TLS model and affects inlining.
12556 case $host_cpu in
12557 hppa*64*)
12558 # +Z the default
12559 ;;
12560 *)
12561 lt_prog_compiler_pic='-fPIC'
12562 ;;
12563 esac
12564 ;;
12565
12566 interix[3-9]*)
12567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12568 # Instead, we relocate shared libraries at runtime.
12569 ;;
12570
12571 msdosdjgpp*)
12572 # Just because we use GCC doesn't mean we suddenly get shared libraries
12573 # on systems that don't support them.
12574 lt_prog_compiler_can_build_shared=no
12575 enable_shared=no
12576 ;;
12577
12578 *nto* | *qnx*)
12579 # QNX uses GNU C++, but need to define -shared option too, otherwise
12580 # it will coredump.
12581 lt_prog_compiler_pic='-fPIC -shared'
12582 ;;
12583
12584 sysv4*MP*)
12585 if test -d /usr/nec; then
12586 lt_prog_compiler_pic=-Kconform_pic
12587 fi
12588 ;;
12589
12590 *)
12591 lt_prog_compiler_pic='-fPIC'
12592 ;;
12593 esac
cristyfd9dcd42010-08-08 18:07:02 +000012594
12595 case $cc_basename in
12596 nvcc*) # Cuda Compiler Driver 2.2
12597 lt_prog_compiler_wl='-Xlinker '
12598 lt_prog_compiler_pic='-Xcompiler -fPIC'
12599 ;;
12600 esac
cristy3ed852e2009-09-05 21:47:34 +000012601 else
12602 # PORTME Check for flag to pass linker flags through the system compiler.
12603 case $host_os in
12604 aix*)
12605 lt_prog_compiler_wl='-Wl,'
12606 if test "$host_cpu" = ia64; then
12607 # AIX 5 now supports IA64 processor
12608 lt_prog_compiler_static='-Bstatic'
12609 else
12610 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12611 fi
12612 ;;
12613
12614 mingw* | cygwin* | pw32* | os2* | cegcc*)
12615 # This hack is so that the source file can tell whether it is being
12616 # built for inclusion in a dll (and should export symbols for example).
12617 lt_prog_compiler_pic='-DDLL_EXPORT'
12618 ;;
12619
12620 hpux9* | hpux10* | hpux11*)
12621 lt_prog_compiler_wl='-Wl,'
12622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12623 # not for PA HP-UX.
12624 case $host_cpu in
12625 hppa*64*|ia64*)
12626 # +Z the default
12627 ;;
12628 *)
12629 lt_prog_compiler_pic='+Z'
12630 ;;
12631 esac
12632 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12633 lt_prog_compiler_static='${wl}-a ${wl}archive'
12634 ;;
12635
12636 irix5* | irix6* | nonstopux*)
12637 lt_prog_compiler_wl='-Wl,'
12638 # PIC (with -KPIC) is the default.
12639 lt_prog_compiler_static='-non_shared'
12640 ;;
12641
cristyfd9dcd42010-08-08 18:07:02 +000012642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012643 case $cc_basename in
12644 # old Intel for x86_64 which still supported -KPIC.
12645 ecc*)
12646 lt_prog_compiler_wl='-Wl,'
12647 lt_prog_compiler_pic='-KPIC'
12648 lt_prog_compiler_static='-static'
12649 ;;
12650 # icc used to be incompatible with GCC.
12651 # ICC 10 doesn't accept -KPIC any more.
12652 icc* | ifort*)
12653 lt_prog_compiler_wl='-Wl,'
12654 lt_prog_compiler_pic='-fPIC'
12655 lt_prog_compiler_static='-static'
12656 ;;
12657 # Lahey Fortran 8.1.
12658 lf95*)
12659 lt_prog_compiler_wl='-Wl,'
12660 lt_prog_compiler_pic='--shared'
12661 lt_prog_compiler_static='--static'
12662 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012663 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012664 # Portland Group compilers (*not* the Pentium gcc compiler,
12665 # which looks to be a dead project)
12666 lt_prog_compiler_wl='-Wl,'
12667 lt_prog_compiler_pic='-fpic'
12668 lt_prog_compiler_static='-Bstatic'
12669 ;;
12670 ccc*)
12671 lt_prog_compiler_wl='-Wl,'
12672 # All Alpha code is PIC.
12673 lt_prog_compiler_static='-non_shared'
12674 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012675 xl* | bgxl* | bgf* | mpixl*)
12676 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012677 lt_prog_compiler_wl='-Wl,'
12678 lt_prog_compiler_pic='-qpic'
12679 lt_prog_compiler_static='-qstaticlink'
12680 ;;
12681 *)
12682 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012683 *Sun\ F* | *Sun*Fortran*)
12684 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12685 lt_prog_compiler_pic='-KPIC'
12686 lt_prog_compiler_static='-Bstatic'
12687 lt_prog_compiler_wl=''
12688 ;;
cristy3ed852e2009-09-05 21:47:34 +000012689 *Sun\ C*)
12690 # Sun C 5.9
12691 lt_prog_compiler_pic='-KPIC'
12692 lt_prog_compiler_static='-Bstatic'
12693 lt_prog_compiler_wl='-Wl,'
12694 ;;
cristy3ed852e2009-09-05 21:47:34 +000012695 esac
12696 ;;
12697 esac
12698 ;;
12699
12700 newsos6)
12701 lt_prog_compiler_pic='-KPIC'
12702 lt_prog_compiler_static='-Bstatic'
12703 ;;
12704
12705 *nto* | *qnx*)
12706 # QNX uses GNU C++, but need to define -shared option too, otherwise
12707 # it will coredump.
12708 lt_prog_compiler_pic='-fPIC -shared'
12709 ;;
12710
12711 osf3* | osf4* | osf5*)
12712 lt_prog_compiler_wl='-Wl,'
12713 # All OSF/1 code is PIC.
12714 lt_prog_compiler_static='-non_shared'
12715 ;;
12716
12717 rdos*)
12718 lt_prog_compiler_static='-non_shared'
12719 ;;
12720
12721 solaris*)
12722 lt_prog_compiler_pic='-KPIC'
12723 lt_prog_compiler_static='-Bstatic'
12724 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012725 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012726 lt_prog_compiler_wl='-Qoption ld ';;
12727 *)
12728 lt_prog_compiler_wl='-Wl,';;
12729 esac
12730 ;;
12731
12732 sunos4*)
12733 lt_prog_compiler_wl='-Qoption ld '
12734 lt_prog_compiler_pic='-PIC'
12735 lt_prog_compiler_static='-Bstatic'
12736 ;;
12737
12738 sysv4 | sysv4.2uw2* | sysv4.3*)
12739 lt_prog_compiler_wl='-Wl,'
12740 lt_prog_compiler_pic='-KPIC'
12741 lt_prog_compiler_static='-Bstatic'
12742 ;;
12743
12744 sysv4*MP*)
12745 if test -d /usr/nec ;then
12746 lt_prog_compiler_pic='-Kconform_pic'
12747 lt_prog_compiler_static='-Bstatic'
12748 fi
12749 ;;
12750
12751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12752 lt_prog_compiler_wl='-Wl,'
12753 lt_prog_compiler_pic='-KPIC'
12754 lt_prog_compiler_static='-Bstatic'
12755 ;;
12756
12757 unicos*)
12758 lt_prog_compiler_wl='-Wl,'
12759 lt_prog_compiler_can_build_shared=no
12760 ;;
12761
12762 uts4*)
12763 lt_prog_compiler_pic='-pic'
12764 lt_prog_compiler_static='-Bstatic'
12765 ;;
12766
12767 *)
12768 lt_prog_compiler_can_build_shared=no
12769 ;;
12770 esac
12771 fi
12772
12773case $host_os in
12774 # For platforms which do not support PIC, -DPIC is meaningless:
12775 *djgpp*)
12776 lt_prog_compiler_pic=
12777 ;;
12778 *)
12779 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12780 ;;
12781esac
cristy8b350f62009-11-15 23:12:43 +000012782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012783$as_echo "$lt_prog_compiler_pic" >&6; }
12784
12785
12786
12787
12788
12789
12790#
12791# Check to make sure the PIC flag actually works.
12792#
12793if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012795$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012796if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012797 $as_echo_n "(cached) " >&6
12798else
12799 lt_cv_prog_compiler_pic_works=no
12800 ac_outfile=conftest.$ac_objext
12801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12803 # Insert the option either (1) after the last *FLAGS variable, or
12804 # (2) before a word containing "conftest.", or (3) at the end.
12805 # Note that $ac_compile itself does not contain backslashes and begins
12806 # with a dollar sign (not a hyphen), so the echo should work correctly.
12807 # The option is referenced via a variable to avoid confusing sed.
12808 lt_compile=`echo "$ac_compile" | $SED \
12809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12811 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012813 (eval "$lt_compile" 2>conftest.err)
12814 ac_status=$?
12815 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012817 if (exit $ac_status) && test -s "$ac_outfile"; then
12818 # The compiler can only warn and ignore the option if not recognized
12819 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12823 lt_cv_prog_compiler_pic_works=yes
12824 fi
12825 fi
12826 $RM conftest*
12827
12828fi
cristy8b350f62009-11-15 23:12:43 +000012829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12831
12832if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12833 case $lt_prog_compiler_pic in
12834 "" | " "*) ;;
12835 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12836 esac
12837else
12838 lt_prog_compiler_pic=
12839 lt_prog_compiler_can_build_shared=no
12840fi
12841
12842fi
12843
12844
12845
12846
12847
12848
12849#
12850# Check to make sure the static flag actually works.
12851#
12852wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012855if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012856 $as_echo_n "(cached) " >&6
12857else
12858 lt_cv_prog_compiler_static_works=no
12859 save_LDFLAGS="$LDFLAGS"
12860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12863 # The linker can only warn and ignore the option if not recognized
12864 # So say no if there are warnings
12865 if test -s conftest.err; then
12866 # Append any errors to the config.log.
12867 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12870 if diff conftest.exp conftest.er2 >/dev/null; then
12871 lt_cv_prog_compiler_static_works=yes
12872 fi
12873 else
12874 lt_cv_prog_compiler_static_works=yes
12875 fi
12876 fi
12877 $RM -r conftest*
12878 LDFLAGS="$save_LDFLAGS"
12879
12880fi
cristy8b350f62009-11-15 23:12:43 +000012881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012882$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12883
12884if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12885 :
12886else
12887 lt_prog_compiler_static=
12888fi
12889
12890
12891
12892
12893
12894
12895
cristy8b350f62009-11-15 23:12:43 +000012896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012897$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012898if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012899 $as_echo_n "(cached) " >&6
12900else
12901 lt_cv_prog_compiler_c_o=no
12902 $RM -r conftest 2>/dev/null
12903 mkdir conftest
12904 cd conftest
12905 mkdir out
12906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907
12908 lt_compiler_flag="-o out/conftest2.$ac_objext"
12909 # Insert the option either (1) after the last *FLAGS variable, or
12910 # (2) before a word containing "conftest.", or (3) at the end.
12911 # Note that $ac_compile itself does not contain backslashes and begins
12912 # with a dollar sign (not a hyphen), so the echo should work correctly.
12913 lt_compile=`echo "$ac_compile" | $SED \
12914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12916 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012918 (eval "$lt_compile" 2>out/conftest.err)
12919 ac_status=$?
12920 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12923 then
12924 # The compiler can only warn and ignore the option if not recognized
12925 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12929 lt_cv_prog_compiler_c_o=yes
12930 fi
12931 fi
12932 chmod u+w . 2>&5
12933 $RM conftest*
12934 # SGI C++ compiler will create directory out/ii_files/ for
12935 # template instantiation
12936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12937 $RM out/* && rmdir out
12938 cd ..
12939 $RM -r conftest
12940 $RM conftest*
12941
12942fi
cristy8b350f62009-11-15 23:12:43 +000012943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012944$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12945
12946
12947
12948
12949
12950
cristy8b350f62009-11-15 23:12:43 +000012951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012953if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 lt_cv_prog_compiler_c_o=no
12957 $RM -r conftest 2>/dev/null
12958 mkdir conftest
12959 cd conftest
12960 mkdir out
12961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962
12963 lt_compiler_flag="-o out/conftest2.$ac_objext"
12964 # Insert the option either (1) after the last *FLAGS variable, or
12965 # (2) before a word containing "conftest.", or (3) at the end.
12966 # Note that $ac_compile itself does not contain backslashes and begins
12967 # with a dollar sign (not a hyphen), so the echo should work correctly.
12968 lt_compile=`echo "$ac_compile" | $SED \
12969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012973 (eval "$lt_compile" 2>out/conftest.err)
12974 ac_status=$?
12975 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12978 then
12979 # The compiler can only warn and ignore the option if not recognized
12980 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12984 lt_cv_prog_compiler_c_o=yes
12985 fi
12986 fi
12987 chmod u+w . 2>&5
12988 $RM conftest*
12989 # SGI C++ compiler will create directory out/ii_files/ for
12990 # template instantiation
12991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12992 $RM out/* && rmdir out
12993 cd ..
12994 $RM -r conftest
12995 $RM conftest*
12996
12997fi
cristy8b350f62009-11-15 23:12:43 +000012998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012999$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13000
13001
13002
13003
13004hard_links="nottested"
13005if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13006 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013008$as_echo_n "checking if we can lock with hard links... " >&6; }
13009 hard_links=yes
13010 $RM conftest*
13011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13012 touch conftest.a
13013 ln conftest.a conftest.b 2>&5 || hard_links=no
13014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013016$as_echo "$hard_links" >&6; }
13017 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013018 { $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 +000013019$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13020 need_locks=warn
13021 fi
13022else
13023 need_locks=no
13024fi
13025
13026
13027
13028
13029
13030
cristy8b350f62009-11-15 23:12:43 +000013031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013032$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13033
13034 runpath_var=
13035 allow_undefined_flag=
13036 always_export_symbols=no
13037 archive_cmds=
13038 archive_expsym_cmds=
13039 compiler_needs_object=no
13040 enable_shared_with_static_runtimes=no
13041 export_dynamic_flag_spec=
13042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13043 hardcode_automatic=no
13044 hardcode_direct=no
13045 hardcode_direct_absolute=no
13046 hardcode_libdir_flag_spec=
13047 hardcode_libdir_flag_spec_ld=
13048 hardcode_libdir_separator=
13049 hardcode_minus_L=no
13050 hardcode_shlibpath_var=unsupported
13051 inherit_rpath=no
13052 link_all_deplibs=unknown
13053 module_cmds=
13054 module_expsym_cmds=
13055 old_archive_from_new_cmds=
13056 old_archive_from_expsyms_cmds=
13057 thread_safe_flag_spec=
13058 whole_archive_flag_spec=
13059 # include_expsyms should be a list of space-separated symbols to be *always*
13060 # included in the symbol list
13061 include_expsyms=
13062 # exclude_expsyms can be an extended regexp of symbols to exclude
13063 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13064 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13065 # as well as any symbol that contains `d'.
13066 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13067 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13068 # platforms (ab)use it in PIC code, but their linkers get confused if
13069 # the symbol is explicitly referenced. Since portable code cannot
13070 # rely on this symbol name, it's probably fine to never include it in
13071 # preloaded symbol tables.
13072 # Exclude shared library initialization/finalization symbols.
13073 extract_expsyms_cmds=
13074
13075 case $host_os in
13076 cygwin* | mingw* | pw32* | cegcc*)
13077 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13078 # When not using gcc, we currently assume that we are using
13079 # Microsoft Visual C++.
13080 if test "$GCC" != yes; then
13081 with_gnu_ld=no
13082 fi
13083 ;;
13084 interix*)
13085 # we just hope/assume this is gcc and not c89 (= MSVC++)
13086 with_gnu_ld=yes
13087 ;;
13088 openbsd*)
13089 with_gnu_ld=no
13090 ;;
13091 esac
13092
13093 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013094
13095 # On some targets, GNU ld is compatible enough with the native linker
13096 # that we're better off using the native interface for both.
13097 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013098 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013099 case $host_os in
13100 aix*)
13101 # The AIX port of GNU ld has always aspired to compatibility
13102 # with the native linker. However, as the warning in the GNU ld
13103 # block says, versions before 2.19.5* couldn't really create working
13104 # shared libraries, regardless of the interface used.
13105 case `$LD -v 2>&1` in
13106 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13107 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13108 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13109 *)
13110 lt_use_gnu_ld_interface=yes
13111 ;;
13112 esac
13113 ;;
13114 *)
13115 lt_use_gnu_ld_interface=yes
13116 ;;
13117 esac
13118 fi
13119
13120 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013121 # If archive_cmds runs LD, not CC, wlarc should be empty
13122 wlarc='${wl}'
13123
13124 # Set some defaults for GNU ld with shared library support. These
13125 # are reset later if shared libraries are not supported. Putting them
13126 # here allows them to be overridden if necessary.
13127 runpath_var=LD_RUN_PATH
13128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13129 export_dynamic_flag_spec='${wl}--export-dynamic'
13130 # ancient GNU ld didn't support --whole-archive et. al.
13131 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13132 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13133 else
13134 whole_archive_flag_spec=
13135 fi
13136 supports_anon_versioning=no
13137 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013138 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13142 *\ 2.11.*) ;; # other 2.11 versions
13143 *) supports_anon_versioning=yes ;;
13144 esac
13145
13146 # See if GNU ld supports shared libraries.
13147 case $host_os in
13148 aix[3-9]*)
13149 # On AIX/PPC, the GNU linker is very broken
13150 if test "$host_cpu" != ia64; then
13151 ld_shlibs=no
13152 cat <<_LT_EOF 1>&2
13153
cristyfd9dcd42010-08-08 18:07:02 +000013154*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013155*** to be unable to reliably create shared libraries on AIX.
13156*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013157*** really care for shared libraries, you may want to install binutils
13158*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13159*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013160
13161_LT_EOF
13162 fi
13163 ;;
13164
13165 amigaos*)
13166 case $host_cpu in
13167 powerpc)
13168 # see comment about AmigaOS4 .so support
13169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170 archive_expsym_cmds=''
13171 ;;
13172 m68k)
13173 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)'
13174 hardcode_libdir_flag_spec='-L$libdir'
13175 hardcode_minus_L=yes
13176 ;;
13177 esac
13178 ;;
13179
13180 beos*)
13181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13182 allow_undefined_flag=unsupported
13183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13184 # support --undefined. This deserves some investigation. FIXME
13185 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186 else
13187 ld_shlibs=no
13188 fi
13189 ;;
13190
13191 cygwin* | mingw* | pw32* | cegcc*)
13192 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13193 # as there is no search path for DLLs.
13194 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013195 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013196 allow_undefined_flag=unsupported
13197 always_export_symbols=no
13198 enable_shared_with_static_runtimes=yes
13199 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13200
13201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13203 # If the export-symbols file already is a .def file (1st line
13204 # is EXPORTS), use it as is; otherwise, prepend...
13205 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13206 cp $export_symbols $output_objdir/$soname.def;
13207 else
13208 echo EXPORTS > $output_objdir/$soname.def;
13209 cat $export_symbols >> $output_objdir/$soname.def;
13210 fi~
13211 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212 else
13213 ld_shlibs=no
13214 fi
13215 ;;
13216
cristyfd9dcd42010-08-08 18:07:02 +000013217 haiku*)
13218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 link_all_deplibs=yes
13220 ;;
13221
cristy3ed852e2009-09-05 21:47:34 +000013222 interix[3-9]*)
13223 hardcode_direct=no
13224 hardcode_shlibpath_var=no
13225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13226 export_dynamic_flag_spec='${wl}-E'
13227 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13228 # Instead, shared libraries are loaded at an image base (0x10000000 by
13229 # default) and relocated if they conflict, which is a slow very memory
13230 # consuming and fragmenting process. To avoid this, we pick a random,
13231 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13232 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13234 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'
13235 ;;
13236
cristyfd9dcd42010-08-08 18:07:02 +000013237 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013238 tmp_diet=no
13239 if test "$host_os" = linux-dietlibc; then
13240 case $cc_basename in
13241 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13242 esac
13243 fi
13244 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13245 && test "$tmp_diet" = no
13246 then
13247 tmp_addflag=
13248 tmp_sharedflag='-shared'
13249 case $cc_basename,$host_cpu in
13250 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013251 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 +000013252 tmp_addflag=' $pic_flag'
13253 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013254 pgf77* | pgf90* | pgf95* | pgfortran*)
13255 # Portland Group f77 and f90 compilers
13256 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 -Mnomain' ;;
13258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13259 tmp_addflag=' -i_dynamic' ;;
13260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13261 tmp_addflag=' -i_dynamic -nofor_main' ;;
13262 ifc* | ifort*) # Intel Fortran compiler
13263 tmp_addflag=' -nofor_main' ;;
13264 lf95*) # Lahey Fortran 8.1
13265 whole_archive_flag_spec=
13266 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013267 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013268 tmp_sharedflag='-qmkshrobj'
13269 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013270 nvcc*) # Cuda Compiler Driver 2.2
13271 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'
13272 compiler_needs_object=yes
13273 ;;
cristy3ed852e2009-09-05 21:47:34 +000013274 esac
13275 case `$CC -V 2>&1 | sed 5q` in
13276 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013277 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 +000013278 compiler_needs_object=yes
13279 tmp_sharedflag='-G' ;;
13280 *Sun\ F*) # Sun Fortran 8.3
13281 tmp_sharedflag='-G' ;;
13282 esac
13283 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284
13285 if test "x$supports_anon_versioning" = xyes; then
13286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13288 echo "local: *; };" >> $output_objdir/$libname.ver~
13289 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13290 fi
13291
13292 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013293 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013294 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13295 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13296 hardcode_libdir_flag_spec=
13297 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013298 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013299 if test "x$supports_anon_versioning" = xyes; then
13300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13302 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013303 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013304 fi
13305 ;;
13306 esac
13307 else
13308 ld_shlibs=no
13309 fi
13310 ;;
13311
13312 netbsd*)
13313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13314 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13315 wlarc=
13316 else
13317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319 fi
13320 ;;
13321
13322 solaris*)
13323 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13324 ld_shlibs=no
13325 cat <<_LT_EOF 1>&2
13326
13327*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13328*** create shared libraries on Solaris systems. Therefore, libtool
13329*** is disabling shared libraries support. We urge you to upgrade GNU
13330*** binutils to release 2.9.1 or newer. Another option is to modify
13331*** your PATH or compiler configuration so that the native linker is
13332*** used, and then restart.
13333
13334_LT_EOF
13335 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13338 else
13339 ld_shlibs=no
13340 fi
13341 ;;
13342
13343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13344 case `$LD -v 2>&1` in
13345 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13346 ld_shlibs=no
13347 cat <<_LT_EOF 1>&2
13348
13349*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13350*** reliably create shared libraries on SCO systems. Therefore, libtool
13351*** is disabling shared libraries support. We urge you to upgrade GNU
13352*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13353*** your PATH or compiler configuration so that the native linker is
13354*** used, and then restart.
13355
13356_LT_EOF
13357 ;;
13358 *)
13359 # For security reasons, it is highly recommended that you always
13360 # use absolute paths for naming shared libraries, and exclude the
13361 # DT_RUNPATH tag from executables and libraries. But doing so
13362 # requires that you compile everything twice, which is a pain.
13363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13367 else
13368 ld_shlibs=no
13369 fi
13370 ;;
13371 esac
13372 ;;
13373
13374 sunos4*)
13375 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13376 wlarc=
13377 hardcode_direct=yes
13378 hardcode_shlibpath_var=no
13379 ;;
13380
13381 *)
13382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13385 else
13386 ld_shlibs=no
13387 fi
13388 ;;
13389 esac
13390
13391 if test "$ld_shlibs" = no; then
13392 runpath_var=
13393 hardcode_libdir_flag_spec=
13394 export_dynamic_flag_spec=
13395 whole_archive_flag_spec=
13396 fi
13397 else
13398 # PORTME fill in a description of your system's linker (not GNU ld)
13399 case $host_os in
13400 aix3*)
13401 allow_undefined_flag=unsupported
13402 always_export_symbols=yes
13403 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'
13404 # Note: this linker hardcodes the directories in LIBPATH if there
13405 # are no directories specified by -L.
13406 hardcode_minus_L=yes
13407 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13408 # Neither direct hardcoding nor static linking is supported with a
13409 # broken collect2.
13410 hardcode_direct=unsupported
13411 fi
13412 ;;
13413
13414 aix[4-9]*)
13415 if test "$host_cpu" = ia64; then
13416 # On IA64, the linker does run time linking by default, so we don't
13417 # have to do anything special.
13418 aix_use_runtimelinking=no
13419 exp_sym_flag='-Bexport'
13420 no_entry_flag=""
13421 else
13422 # If we're using GNU nm, then we don't want the "-C" option.
13423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013424 # Also, AIX nm treats weak defined symbols like other global
13425 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013426 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013427 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 +000013428 else
13429 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'
13430 fi
13431 aix_use_runtimelinking=no
13432
13433 # Test if we are trying to use run time linking or normal
13434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13435 # need to do runtime linking.
13436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13437 for ld_flag in $LDFLAGS; do
13438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13439 aix_use_runtimelinking=yes
13440 break
13441 fi
13442 done
13443 ;;
13444 esac
13445
13446 exp_sym_flag='-bexport'
13447 no_entry_flag='-bnoentry'
13448 fi
13449
13450 # When large executables or shared objects are built, AIX ld can
13451 # have problems creating the table of contents. If linking a library
13452 # or program results in "error TOC overflow" add -mminimal-toc to
13453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13455
13456 archive_cmds=''
13457 hardcode_direct=yes
13458 hardcode_direct_absolute=yes
13459 hardcode_libdir_separator=':'
13460 link_all_deplibs=yes
13461 file_list_spec='${wl}-f,'
13462
13463 if test "$GCC" = yes; then
13464 case $host_os in aix4.[012]|aix4.[012].*)
13465 # We only want to do this on AIX 4.2 and lower, the check
13466 # below for broken collect2 doesn't work under 4.3+
13467 collect2name=`${CC} -print-prog-name=collect2`
13468 if test -f "$collect2name" &&
13469 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13470 then
13471 # We have reworked collect2
13472 :
13473 else
13474 # We have old collect2
13475 hardcode_direct=unsupported
13476 # It fails to find uninstalled libraries when the uninstalled
13477 # path is not listed in the libpath. Setting hardcode_minus_L
13478 # to unsupported forces relinking
13479 hardcode_minus_L=yes
13480 hardcode_libdir_flag_spec='-L$libdir'
13481 hardcode_libdir_separator=
13482 fi
13483 ;;
13484 esac
13485 shared_flag='-shared'
13486 if test "$aix_use_runtimelinking" = yes; then
13487 shared_flag="$shared_flag "'${wl}-G'
13488 fi
13489 else
13490 # not using gcc
13491 if test "$host_cpu" = ia64; then
13492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13493 # chokes on -Wl,-G. The following line is correct:
13494 shared_flag='-G'
13495 else
13496 if test "$aix_use_runtimelinking" = yes; then
13497 shared_flag='${wl}-G'
13498 else
13499 shared_flag='${wl}-bM:SRE'
13500 fi
13501 fi
13502 fi
13503
13504 export_dynamic_flag_spec='${wl}-bexpall'
13505 # It seems that -bexpall does not export symbols beginning with
13506 # underscore (_), so it is better to generate a list of symbols to export.
13507 always_export_symbols=yes
13508 if test "$aix_use_runtimelinking" = yes; then
13509 # Warning - without using the other runtime loading flags (-brtl),
13510 # -berok will link without error, but may produce a broken library.
13511 allow_undefined_flag='-berok'
13512 # Determine the default libpath from the value encoded in an
13513 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013515/* end confdefs.h. */
13516
13517int
13518main ()
13519{
13520
13521 ;
13522 return 0;
13523}
13524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013526
13527lt_aix_libpath_sed='
13528 /Import File Strings/,/^$/ {
13529 /^0/ {
13530 s/^0 *\(.*\)$/\1/
13531 p
13532 }
13533 }'
13534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13535# Check for a 64-bit object if we didn't find anything.
13536if test -z "$aix_libpath"; then
13537 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13538fi
cristy3ed852e2009-09-05 21:47:34 +000013539fi
cristy8b350f62009-11-15 23:12:43 +000013540rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13543
13544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013545 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 +000013546 else
13547 if test "$host_cpu" = ia64; then
13548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13549 allow_undefined_flag="-z nodefs"
13550 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"
13551 else
13552 # Determine the default libpath from the value encoded in an
13553 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013555/* end confdefs.h. */
13556
13557int
13558main ()
13559{
13560
13561 ;
13562 return 0;
13563}
13564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013566
13567lt_aix_libpath_sed='
13568 /Import File Strings/,/^$/ {
13569 /^0/ {
13570 s/^0 *\(.*\)$/\1/
13571 p
13572 }
13573 }'
13574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13575# Check for a 64-bit object if we didn't find anything.
13576if test -z "$aix_libpath"; then
13577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578fi
cristy3ed852e2009-09-05 21:47:34 +000013579fi
cristy8b350f62009-11-15 23:12:43 +000013580rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583
13584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13585 # Warning - without using the other run time loading flags,
13586 # -berok will link without error, but may produce a broken library.
13587 no_undefined_flag=' ${wl}-bernotok'
13588 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013589 if test "$with_gnu_ld" = yes; then
13590 # We only use this code for GNU lds that support --whole-archive.
13591 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13592 else
13593 # Exported symbols can be pulled into shared objects from archives
13594 whole_archive_flag_spec='$convenience'
13595 fi
cristy3ed852e2009-09-05 21:47:34 +000013596 archive_cmds_need_lc=yes
13597 # This is similar to how AIX traditionally builds its shared libraries.
13598 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'
13599 fi
13600 fi
13601 ;;
13602
13603 amigaos*)
13604 case $host_cpu in
13605 powerpc)
13606 # see comment about AmigaOS4 .so support
13607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608 archive_expsym_cmds=''
13609 ;;
13610 m68k)
13611 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)'
13612 hardcode_libdir_flag_spec='-L$libdir'
13613 hardcode_minus_L=yes
13614 ;;
13615 esac
13616 ;;
13617
13618 bsdi[45]*)
13619 export_dynamic_flag_spec=-rdynamic
13620 ;;
13621
13622 cygwin* | mingw* | pw32* | cegcc*)
13623 # When not using gcc, we currently assume that we are using
13624 # Microsoft Visual C++.
13625 # hardcode_libdir_flag_spec is actually meaningless, as there is
13626 # no search path for DLLs.
13627 hardcode_libdir_flag_spec=' '
13628 allow_undefined_flag=unsupported
13629 # Tell ltmain to make .lib files, not .a files.
13630 libext=lib
13631 # Tell ltmain to make .dll files, not .so files.
13632 shrext_cmds=".dll"
13633 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013634 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013635 # The linker will automatically build a .lib file if we build a DLL.
13636 old_archive_from_new_cmds='true'
13637 # FIXME: Should let the user specify the lib program.
13638 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13639 fix_srcfile_path='`cygpath -w "$srcfile"`'
13640 enable_shared_with_static_runtimes=yes
13641 ;;
13642
13643 darwin* | rhapsody*)
13644
13645
13646 archive_cmds_need_lc=no
13647 hardcode_direct=no
13648 hardcode_automatic=yes
13649 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013650 if test "$lt_cv_ld_force_load" = "yes"; then
13651 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\"`'
13652 else
13653 whole_archive_flag_spec=''
13654 fi
cristy3ed852e2009-09-05 21:47:34 +000013655 link_all_deplibs=yes
13656 allow_undefined_flag="$_lt_dar_allow_undefined"
13657 case $cc_basename in
13658 ifort*) _lt_dar_can_shared=yes ;;
13659 *) _lt_dar_can_shared=$GCC ;;
13660 esac
13661 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013662 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013663 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13664 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13665 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}"
13666 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}"
13667
13668 else
13669 ld_shlibs=no
13670 fi
13671
13672 ;;
13673
13674 dgux*)
13675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13676 hardcode_libdir_flag_spec='-L$libdir'
13677 hardcode_shlibpath_var=no
13678 ;;
13679
13680 freebsd1*)
13681 ld_shlibs=no
13682 ;;
13683
13684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13685 # support. Future versions do this automatically, but an explicit c++rt0.o
13686 # does not break anything, and helps significantly (at the cost of a little
13687 # extra space).
13688 freebsd2.2*)
13689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13690 hardcode_libdir_flag_spec='-R$libdir'
13691 hardcode_direct=yes
13692 hardcode_shlibpath_var=no
13693 ;;
13694
13695 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13696 freebsd2*)
13697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 hardcode_direct=yes
13699 hardcode_minus_L=yes
13700 hardcode_shlibpath_var=no
13701 ;;
13702
13703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13704 freebsd* | dragonfly*)
13705 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13706 hardcode_libdir_flag_spec='-R$libdir'
13707 hardcode_direct=yes
13708 hardcode_shlibpath_var=no
13709 ;;
13710
13711 hpux9*)
13712 if test "$GCC" = yes; then
13713 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'
13714 else
13715 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'
13716 fi
13717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13718 hardcode_libdir_separator=:
13719 hardcode_direct=yes
13720
13721 # hardcode_minus_L: Not really in the search PATH,
13722 # but as the default location of the library.
13723 hardcode_minus_L=yes
13724 export_dynamic_flag_spec='${wl}-E'
13725 ;;
13726
13727 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13730 else
13731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13732 fi
13733 if test "$with_gnu_ld" = no; then
13734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13735 hardcode_libdir_flag_spec_ld='+b $libdir'
13736 hardcode_libdir_separator=:
13737 hardcode_direct=yes
13738 hardcode_direct_absolute=yes
13739 export_dynamic_flag_spec='${wl}-E'
13740 # hardcode_minus_L: Not really in the search PATH,
13741 # but as the default location of the library.
13742 hardcode_minus_L=yes
13743 fi
13744 ;;
13745
13746 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013747 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013748 case $host_cpu in
13749 hppa*64*)
13750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 ;;
13752 ia64*)
13753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 *)
13756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13757 ;;
13758 esac
13759 else
13760 case $host_cpu in
13761 hppa*64*)
13762 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 ;;
13764 ia64*)
13765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13766 ;;
13767 *)
cristyfd9dcd42010-08-08 18:07:02 +000013768
13769 # Older versions of the 11.00 compiler do not understand -b yet
13770 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13772$as_echo_n "checking if $CC understands -b... " >&6; }
13773if test "${lt_cv_prog_compiler__b+set}" = set; then :
13774 $as_echo_n "(cached) " >&6
13775else
13776 lt_cv_prog_compiler__b=no
13777 save_LDFLAGS="$LDFLAGS"
13778 LDFLAGS="$LDFLAGS -b"
13779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13781 # The linker can only warn and ignore the option if not recognized
13782 # So say no if there are warnings
13783 if test -s conftest.err; then
13784 # Append any errors to the config.log.
13785 cat conftest.err 1>&5
13786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13788 if diff conftest.exp conftest.er2 >/dev/null; then
13789 lt_cv_prog_compiler__b=yes
13790 fi
13791 else
13792 lt_cv_prog_compiler__b=yes
13793 fi
13794 fi
13795 $RM -r conftest*
13796 LDFLAGS="$save_LDFLAGS"
13797
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13800$as_echo "$lt_cv_prog_compiler__b" >&6; }
13801
13802if test x"$lt_cv_prog_compiler__b" = xyes; then
13803 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13804else
13805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13806fi
13807
cristy3ed852e2009-09-05 21:47:34 +000013808 ;;
13809 esac
13810 fi
13811 if test "$with_gnu_ld" = no; then
13812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13813 hardcode_libdir_separator=:
13814
13815 case $host_cpu in
13816 hppa*64*|ia64*)
13817 hardcode_direct=no
13818 hardcode_shlibpath_var=no
13819 ;;
13820 *)
13821 hardcode_direct=yes
13822 hardcode_direct_absolute=yes
13823 export_dynamic_flag_spec='${wl}-E'
13824
13825 # hardcode_minus_L: Not really in the search PATH,
13826 # but as the default location of the library.
13827 hardcode_minus_L=yes
13828 ;;
13829 esac
13830 fi
13831 ;;
13832
13833 irix5* | irix6* | nonstopux*)
13834 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013835 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 +000013836 # Try to use the -exported_symbol ld option, if it does not
13837 # work, assume that -exports_file does not work either and
13838 # implicitly export all symbols.
13839 save_LDFLAGS="$LDFLAGS"
13840 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013843int foo(void) {}
13844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013845if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013846 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 +000013847
cristy3ed852e2009-09-05 21:47:34 +000013848fi
cristy8b350f62009-11-15 23:12:43 +000013849rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013851 LDFLAGS="$save_LDFLAGS"
13852 else
cristyfd9dcd42010-08-08 18:07:02 +000013853 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'
13854 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 +000013855 fi
13856 archive_cmds_need_lc='no'
13857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13858 hardcode_libdir_separator=:
13859 inherit_rpath=yes
13860 link_all_deplibs=yes
13861 ;;
13862
13863 netbsd*)
13864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13866 else
13867 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13868 fi
13869 hardcode_libdir_flag_spec='-R$libdir'
13870 hardcode_direct=yes
13871 hardcode_shlibpath_var=no
13872 ;;
13873
13874 newsos6)
13875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_direct=yes
13877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13878 hardcode_libdir_separator=:
13879 hardcode_shlibpath_var=no
13880 ;;
13881
13882 *nto* | *qnx*)
13883 ;;
13884
13885 openbsd*)
13886 if test -f /usr/libexec/ld.so; then
13887 hardcode_direct=yes
13888 hardcode_shlibpath_var=no
13889 hardcode_direct_absolute=yes
13890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13894 export_dynamic_flag_spec='${wl}-E'
13895 else
13896 case $host_os in
13897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13899 hardcode_libdir_flag_spec='-R$libdir'
13900 ;;
13901 *)
13902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13904 ;;
13905 esac
13906 fi
13907 else
13908 ld_shlibs=no
13909 fi
13910 ;;
13911
13912 os2*)
13913 hardcode_libdir_flag_spec='-L$libdir'
13914 hardcode_minus_L=yes
13915 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013916 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 +000013917 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13918 ;;
13919
13920 osf3*)
13921 if test "$GCC" = yes; then
13922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013923 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 +000013924 else
13925 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013926 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 +000013927 fi
13928 archive_cmds_need_lc='no'
13929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13930 hardcode_libdir_separator=:
13931 ;;
13932
13933 osf4* | osf5*) # as osf3* with the addition of -msym flag
13934 if test "$GCC" = yes; then
13935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013936 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 +000013937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 else
13939 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013940 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 +000013941 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 +000013942 $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 +000013943
13944 # Both c and cxx compiler support -rpath directly
13945 hardcode_libdir_flag_spec='-rpath $libdir'
13946 fi
13947 archive_cmds_need_lc='no'
13948 hardcode_libdir_separator=:
13949 ;;
13950
13951 solaris*)
13952 no_undefined_flag=' -z defs'
13953 if test "$GCC" = yes; then
13954 wlarc='${wl}'
13955 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13958 else
13959 case `$CC -V 2>&1` in
13960 *"Compilers 5.0"*)
13961 wlarc=''
13962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13965 ;;
13966 *)
13967 wlarc='${wl}'
13968 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13970 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13971 ;;
13972 esac
13973 fi
13974 hardcode_libdir_flag_spec='-R$libdir'
13975 hardcode_shlibpath_var=no
13976 case $host_os in
13977 solaris2.[0-5] | solaris2.[0-5].*) ;;
13978 *)
13979 # The compiler driver will combine and reorder linker options,
13980 # but understands `-z linker_flag'. GCC discards it without `$wl',
13981 # but is careful enough not to reorder.
13982 # Supported since Solaris 2.6 (maybe 2.5.1?)
13983 if test "$GCC" = yes; then
13984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13985 else
13986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13987 fi
13988 ;;
13989 esac
13990 link_all_deplibs=yes
13991 ;;
13992
13993 sunos4*)
13994 if test "x$host_vendor" = xsequent; then
13995 # Use $CC to link under sequent, because it throws in some extra .o
13996 # files that make .init and .fini sections work.
13997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13998 else
13999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14000 fi
14001 hardcode_libdir_flag_spec='-L$libdir'
14002 hardcode_direct=yes
14003 hardcode_minus_L=yes
14004 hardcode_shlibpath_var=no
14005 ;;
14006
14007 sysv4)
14008 case $host_vendor in
14009 sni)
14010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_direct=yes # is this really true???
14012 ;;
14013 siemens)
14014 ## LD is ld it makes a PLAMLIB
14015 ## CC just makes a GrossModule.
14016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14017 reload_cmds='$CC -r -o $output$reload_objs'
14018 hardcode_direct=no
14019 ;;
14020 motorola)
14021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14023 ;;
14024 esac
14025 runpath_var='LD_RUN_PATH'
14026 hardcode_shlibpath_var=no
14027 ;;
14028
14029 sysv4.3*)
14030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_shlibpath_var=no
14032 export_dynamic_flag_spec='-Bexport'
14033 ;;
14034
14035 sysv4*MP*)
14036 if test -d /usr/nec; then
14037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14038 hardcode_shlibpath_var=no
14039 runpath_var=LD_RUN_PATH
14040 hardcode_runpath_var=yes
14041 ld_shlibs=yes
14042 fi
14043 ;;
14044
14045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14046 no_undefined_flag='${wl}-z,text'
14047 archive_cmds_need_lc=no
14048 hardcode_shlibpath_var=no
14049 runpath_var='LD_RUN_PATH'
14050
14051 if test "$GCC" = yes; then
14052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 else
14055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 fi
14058 ;;
14059
14060 sysv5* | sco3.2v5* | sco5v6*)
14061 # Note: We can NOT use -z defs as we might desire, because we do not
14062 # link with -lc, and that would cause any symbols used from libc to
14063 # always be unresolved, which means just about no library would
14064 # ever link correctly. If we're not using GNU ld we use -z text
14065 # though, which does catch some bad symbols but isn't as heavy-handed
14066 # as -z defs.
14067 no_undefined_flag='${wl}-z,text'
14068 allow_undefined_flag='${wl}-z,nodefs'
14069 archive_cmds_need_lc=no
14070 hardcode_shlibpath_var=no
14071 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14072 hardcode_libdir_separator=':'
14073 link_all_deplibs=yes
14074 export_dynamic_flag_spec='${wl}-Bexport'
14075 runpath_var='LD_RUN_PATH'
14076
14077 if test "$GCC" = yes; then
14078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 else
14081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 fi
14084 ;;
14085
14086 uts4*)
14087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 hardcode_libdir_flag_spec='-L$libdir'
14089 hardcode_shlibpath_var=no
14090 ;;
14091
14092 *)
14093 ld_shlibs=no
14094 ;;
14095 esac
14096
14097 if test x$host_vendor = xsni; then
14098 case $host in
14099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14100 export_dynamic_flag_spec='${wl}-Blargedynsym'
14101 ;;
14102 esac
14103 fi
14104 fi
14105
cristy8b350f62009-11-15 23:12:43 +000014106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014107$as_echo "$ld_shlibs" >&6; }
14108test "$ld_shlibs" = no && can_build_shared=no
14109
14110with_gnu_ld=$with_gnu_ld
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126#
14127# Do we need to explicitly link libc?
14128#
14129case "x$archive_cmds_need_lc" in
14130x|xyes)
14131 # Assume -lc should be added
14132 archive_cmds_need_lc=yes
14133
14134 if test "$enable_shared" = yes && test "$GCC" = yes; then
14135 case $archive_cmds in
14136 *'~'*)
14137 # FIXME: we may have to deal with multi-command sequences.
14138 ;;
14139 '$CC '*)
14140 # Test whether the compiler implicitly links with -lc since on some
14141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14142 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014144$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014145if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147else
14148 $RM conftest*
14149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014150
cristyfd9dcd42010-08-08 18:07:02 +000014151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014152 (eval $ac_compile) 2>&5
14153 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014156 soname=conftest
14157 lib=conftest
14158 libobjs=conftest.$ac_objext
14159 deplibs=
14160 wl=$lt_prog_compiler_wl
14161 pic_flag=$lt_prog_compiler_pic
14162 compiler_flags=-v
14163 linker_flags=-v
14164 verstring=
14165 output_objdir=.
14166 libname=conftest
14167 lt_save_allow_undefined_flag=$allow_undefined_flag
14168 allow_undefined_flag=
14169 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 +000014170 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14171 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014174 then
14175 lt_cv_archive_cmds_need_lc=no
14176 else
14177 lt_cv_archive_cmds_need_lc=yes
14178 fi
14179 allow_undefined_flag=$lt_save_allow_undefined_flag
14180 else
14181 cat conftest.err 1>&5
14182 fi
14183 $RM conftest*
14184
14185fi
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14187$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14188 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014189 ;;
14190 esac
14191 fi
14192 ;;
14193esac
14194
14195
14196
14197
14198
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
cristy8b350f62009-11-15 23:12:43 +000014351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014352$as_echo_n "checking dynamic linker characteristics... " >&6; }
14353
14354if test "$GCC" = yes; then
14355 case $host_os in
14356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14357 *) lt_awk_arg="/^libraries:/" ;;
14358 esac
cristyfd9dcd42010-08-08 18:07:02 +000014359 case $host_os in
14360 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14361 *) lt_sed_strip_eq="s,=/,/,g" ;;
14362 esac
14363 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14364 case $lt_search_path_spec in
14365 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014366 # if the path contains ";" then we assume it to be the separator
14367 # otherwise default to the standard path separator (i.e. ":") - it is
14368 # assumed that no part of a normal pathname contains ";" but that should
14369 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14371 ;;
14372 *)
14373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14374 ;;
14375 esac
cristy3ed852e2009-09-05 21:47:34 +000014376 # Ok, now we have the path, separated by spaces, we can step through it
14377 # and add multilib dir if necessary.
14378 lt_tmp_lt_search_path_spec=
14379 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14380 for lt_sys_path in $lt_search_path_spec; do
14381 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14383 else
14384 test -d "$lt_sys_path" && \
14385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14386 fi
14387 done
cristyfd9dcd42010-08-08 18:07:02 +000014388 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014389BEGIN {RS=" "; FS="/|\n";} {
14390 lt_foo="";
14391 lt_count=0;
14392 for (lt_i = NF; lt_i > 0; lt_i--) {
14393 if ($lt_i != "" && $lt_i != ".") {
14394 if ($lt_i == "..") {
14395 lt_count++;
14396 } else {
14397 if (lt_count == 0) {
14398 lt_foo="/" $lt_i lt_foo;
14399 } else {
14400 lt_count--;
14401 }
14402 }
14403 }
14404 }
14405 if (lt_foo != "") { lt_freq[lt_foo]++; }
14406 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14407}'`
cristyfd9dcd42010-08-08 18:07:02 +000014408 # AWK program above erroneously prepends '/' to C:/dos/paths
14409 # for these hosts.
14410 case $host_os in
14411 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14412 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14413 esac
14414 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014415else
14416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14417fi
14418library_names_spec=
14419libname_spec='lib$name'
14420soname_spec=
14421shrext_cmds=".so"
14422postinstall_cmds=
14423postuninstall_cmds=
14424finish_cmds=
14425finish_eval=
14426shlibpath_var=
14427shlibpath_overrides_runpath=unknown
14428version_type=none
14429dynamic_linker="$host_os ld.so"
14430sys_lib_dlsearch_path_spec="/lib /usr/lib"
14431need_lib_prefix=unknown
14432hardcode_into_libs=no
14433
14434# when you set need_version to no, make sure it does not cause -set_version
14435# flags to be left without arguments
14436need_version=unknown
14437
14438case $host_os in
14439aix3*)
14440 version_type=linux
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14442 shlibpath_var=LIBPATH
14443
14444 # AIX 3 has no versioning support, so we append a major version to the name.
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 ;;
14447
14448aix[4-9]*)
14449 version_type=linux
14450 need_lib_prefix=no
14451 need_version=no
14452 hardcode_into_libs=yes
14453 if test "$host_cpu" = ia64; then
14454 # AIX 5 supports IA64
14455 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 else
14458 # With GCC up to 2.95.x, collect2 would create an import file
14459 # for dependence libraries. The import file would start with
14460 # the line `#! .'. This would cause the generated library to
14461 # depend on `.', always an invalid library. This was fixed in
14462 # development snapshots of GCC prior to 3.0.
14463 case $host_os in
14464 aix4 | aix4.[01] | aix4.[01].*)
14465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466 echo ' yes '
14467 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14468 :
14469 else
14470 can_build_shared=no
14471 fi
14472 ;;
14473 esac
14474 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14475 # soname into executable. Probably we can add versioning support to
14476 # collect2, so additional links can be useful in future.
14477 if test "$aix_use_runtimelinking" = yes; then
14478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14479 # instead of lib<name>.a to let people know that these are not
14480 # typical AIX shared libraries.
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 else
14483 # We preserve .a as extension for shared libraries through AIX4.2
14484 # and later when we are not doing run time linking.
14485 library_names_spec='${libname}${release}.a $libname.a'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 fi
14488 shlibpath_var=LIBPATH
14489 fi
14490 ;;
14491
14492amigaos*)
14493 case $host_cpu in
14494 powerpc)
14495 # Since July 2007 AmigaOS4 officially supports .so libraries.
14496 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 ;;
14499 m68k)
14500 library_names_spec='$libname.ixlibrary $libname.a'
14501 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014502 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 +000014503 ;;
14504 esac
14505 ;;
14506
14507beos*)
14508 library_names_spec='${libname}${shared_ext}'
14509 dynamic_linker="$host_os ld.so"
14510 shlibpath_var=LIBRARY_PATH
14511 ;;
14512
14513bsdi[45]*)
14514 version_type=linux
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14521 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14522 # the default ld.so.conf also contains /usr/contrib/lib and
14523 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14524 # libtool to hard-code these into programs
14525 ;;
14526
14527cygwin* | mingw* | pw32* | cegcc*)
14528 version_type=windows
14529 shrext_cmds=".dll"
14530 need_version=no
14531 need_lib_prefix=no
14532
14533 case $GCC,$host_os in
14534 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14535 library_names_spec='$libname.dll.a'
14536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14537 postinstall_cmds='base_file=`basename \${file}`~
14538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14539 dldir=$destdir/`dirname \$dlpath`~
14540 test -d \$dldir || mkdir -p \$dldir~
14541 $install_prog $dir/$dlname \$dldir/$dlname~
14542 chmod a+x \$dldir/$dlname~
14543 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14544 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14545 fi'
14546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547 dlpath=$dir/\$dldll~
14548 $RM \$dlpath'
14549 shlibpath_overrides_runpath=yes
14550
14551 case $host_os in
14552 cygwin*)
14553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14554 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014555
14556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014557 ;;
14558 mingw* | cegcc*)
14559 # MinGW DLLs use traditional 'lib' prefix
14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014561 ;;
14562 pw32*)
14563 # pw32 DLLs use 'pw' prefix rather than 'lib'
14564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 ;;
14566 esac
14567 ;;
14568
14569 *)
14570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14571 ;;
14572 esac
14573 dynamic_linker='Win32 ld.exe'
14574 # FIXME: first we should search . and the directory the executable is in
14575 shlibpath_var=PATH
14576 ;;
14577
14578darwin* | rhapsody*)
14579 dynamic_linker="$host_os dyld"
14580 version_type=darwin
14581 need_lib_prefix=no
14582 need_version=no
14583 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14584 soname_spec='${libname}${release}${major}$shared_ext'
14585 shlibpath_overrides_runpath=yes
14586 shlibpath_var=DYLD_LIBRARY_PATH
14587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14588
14589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14591 ;;
14592
14593dgux*)
14594 version_type=linux
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 ;;
14601
14602freebsd1*)
14603 dynamic_linker=no
14604 ;;
14605
14606freebsd* | dragonfly*)
14607 # DragonFly does not have aout. When/if they implement a new
14608 # versioning mechanism, adjust this.
14609 if test -x /usr/bin/objformat; then
14610 objformat=`/usr/bin/objformat`
14611 else
14612 case $host_os in
14613 freebsd[123]*) objformat=aout ;;
14614 *) objformat=elf ;;
14615 esac
14616 fi
14617 version_type=freebsd-$objformat
14618 case $version_type in
14619 freebsd-elf*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14621 need_version=no
14622 need_lib_prefix=no
14623 ;;
14624 freebsd-*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14626 need_version=yes
14627 ;;
14628 esac
14629 shlibpath_var=LD_LIBRARY_PATH
14630 case $host_os in
14631 freebsd2*)
14632 shlibpath_overrides_runpath=yes
14633 ;;
14634 freebsd3.[01]* | freebsdelf3.[01]*)
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14637 ;;
14638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14640 shlibpath_overrides_runpath=no
14641 hardcode_into_libs=yes
14642 ;;
14643 *) # from 4.6 on, and DragonFly
14644 shlibpath_overrides_runpath=yes
14645 hardcode_into_libs=yes
14646 ;;
14647 esac
14648 ;;
14649
14650gnu*)
14651 version_type=linux
14652 need_lib_prefix=no
14653 need_version=no
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 hardcode_into_libs=yes
14658 ;;
14659
cristyfd9dcd42010-08-08 18:07:02 +000014660haiku*)
14661 version_type=linux
14662 need_lib_prefix=no
14663 need_version=no
14664 dynamic_linker="$host_os runtime_loader"
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LIBRARY_PATH
14668 shlibpath_overrides_runpath=yes
14669 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14670 hardcode_into_libs=yes
14671 ;;
14672
cristy3ed852e2009-09-05 21:47:34 +000014673hpux9* | hpux10* | hpux11*)
14674 # Give a soname corresponding to the major version so that dld.sl refuses to
14675 # link against other versions.
14676 version_type=sunos
14677 need_lib_prefix=no
14678 need_version=no
14679 case $host_cpu in
14680 ia64*)
14681 shrext_cmds='.so'
14682 hardcode_into_libs=yes
14683 dynamic_linker="$host_os dld.so"
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687 soname_spec='${libname}${release}${shared_ext}$major'
14688 if test "X$HPUX_IA64_MODE" = X32; then
14689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14690 else
14691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14692 fi
14693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694 ;;
14695 hppa*64*)
14696 shrext_cmds='.sl'
14697 hardcode_into_libs=yes
14698 dynamic_linker="$host_os dld.sl"
14699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14705 ;;
14706 *)
14707 shrext_cmds='.sl'
14708 dynamic_linker="$host_os dld.sl"
14709 shlibpath_var=SHLIB_PATH
14710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 ;;
14714 esac
cristyfd9dcd42010-08-08 18:07:02 +000014715 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014716 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014717 # or fails outright, so override atomically:
14718 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014719 ;;
14720
14721interix[3-9]*)
14722 version_type=linux
14723 need_lib_prefix=no
14724 need_version=no
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=no
14730 hardcode_into_libs=yes
14731 ;;
14732
14733irix5* | irix6* | nonstopux*)
14734 case $host_os in
14735 nonstopux*) version_type=nonstopux ;;
14736 *)
14737 if test "$lt_cv_prog_gnu_ld" = yes; then
14738 version_type=linux
14739 else
14740 version_type=irix
14741 fi ;;
14742 esac
14743 need_lib_prefix=no
14744 need_version=no
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14747 case $host_os in
14748 irix5* | nonstopux*)
14749 libsuff= shlibsuff=
14750 ;;
14751 *)
14752 case $LD in # libtool.m4 will add one of these switches to LD
14753 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14754 libsuff= shlibsuff= libmagic=32-bit;;
14755 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14756 libsuff=32 shlibsuff=N32 libmagic=N32;;
14757 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14758 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14759 *) libsuff= shlibsuff= libmagic=never-match;;
14760 esac
14761 ;;
14762 esac
14763 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14764 shlibpath_overrides_runpath=no
14765 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14766 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14767 hardcode_into_libs=yes
14768 ;;
14769
14770# No shared lib support for Linux oldld, aout, or coff.
14771linux*oldld* | linux*aout* | linux*coff*)
14772 dynamic_linker=no
14773 ;;
14774
14775# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014776linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014777 version_type=linux
14778 need_lib_prefix=no
14779 need_version=no
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014785
cristy3ed852e2009-09-05 21:47:34 +000014786 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014787 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14789else
14790 lt_cv_shlibpath_overrides_runpath=no
14791 save_LDFLAGS=$LDFLAGS
14792 save_libdir=$libdir
14793 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14794 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014796/* end confdefs.h. */
14797
14798int
14799main ()
14800{
14801
14802 ;
14803 return 0;
14804}
14805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014806if ac_fn_c_try_link "$LINENO"; then :
14807 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014808 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014809fi
cristy3ed852e2009-09-05 21:47:34 +000014810fi
cristy8b350f62009-11-15 23:12:43 +000014811rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014813 LDFLAGS=$save_LDFLAGS
14814 libdir=$save_libdir
14815
14816fi
14817
14818 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014819
14820 # This implies no fast_install, which is unacceptable.
14821 # Some rework will be needed to allow for fast_install
14822 # before this can be enabled.
14823 hardcode_into_libs=yes
14824
cristy679ed8e2009-12-05 02:37:41 +000014825 # Add ABI-specific directories to the system library path.
14826 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14827
cristy3ed852e2009-09-05 21:47:34 +000014828 # Append ld.so.conf contents to the search path
14829 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014830 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 +000014831 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014832
cristy3ed852e2009-09-05 21:47:34 +000014833 fi
14834
14835 # We used to test for /lib/ld.so.1 and disable shared libraries on
14836 # powerpc, because MkLinux only supported shared libraries with the
14837 # GNU dynamic linker. Since this was broken with cross compilers,
14838 # most powerpc-linux boxes support dynamic linking these days and
14839 # people can always --disable-shared, the test was removed, and we
14840 # assume the GNU/Linux dynamic linker is in use.
14841 dynamic_linker='GNU/Linux ld.so'
14842 ;;
14843
14844netbsd*)
14845 version_type=sunos
14846 need_lib_prefix=no
14847 need_version=no
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851 dynamic_linker='NetBSD (a.out) ld.so'
14852 else
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 dynamic_linker='NetBSD ld.elf_so'
14856 fi
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 hardcode_into_libs=yes
14860 ;;
14861
14862newsos6)
14863 version_type=linux
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 ;;
14868
14869*nto* | *qnx*)
14870 version_type=qnx
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=no
14877 hardcode_into_libs=yes
14878 dynamic_linker='ldqnx.so'
14879 ;;
14880
14881openbsd*)
14882 version_type=sunos
14883 sys_lib_dlsearch_path_spec="/usr/lib"
14884 need_lib_prefix=no
14885 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14886 case $host_os in
14887 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14888 *) need_version=no ;;
14889 esac
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14894 case $host_os in
14895 openbsd2.[89] | openbsd2.[89].*)
14896 shlibpath_overrides_runpath=no
14897 ;;
14898 *)
14899 shlibpath_overrides_runpath=yes
14900 ;;
14901 esac
14902 else
14903 shlibpath_overrides_runpath=yes
14904 fi
14905 ;;
14906
14907os2*)
14908 libname_spec='$name'
14909 shrext_cmds=".dll"
14910 need_lib_prefix=no
14911 library_names_spec='$libname${shared_ext} $libname.a'
14912 dynamic_linker='OS/2 ld.exe'
14913 shlibpath_var=LIBPATH
14914 ;;
14915
14916osf3* | osf4* | osf5*)
14917 version_type=osf
14918 need_lib_prefix=no
14919 need_version=no
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14925 ;;
14926
14927rdos*)
14928 dynamic_linker=no
14929 ;;
14930
14931solaris*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 # ldd complains unless libraries are executable
14941 postinstall_cmds='chmod +x $lib'
14942 ;;
14943
14944sunos4*)
14945 version_type=sunos
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14950 if test "$with_gnu_ld" = yes; then
14951 need_lib_prefix=no
14952 fi
14953 need_version=yes
14954 ;;
14955
14956sysv4 | sysv4.3*)
14957 version_type=linux
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 case $host_vendor in
14962 sni)
14963 shlibpath_overrides_runpath=no
14964 need_lib_prefix=no
14965 runpath_var=LD_RUN_PATH
14966 ;;
14967 siemens)
14968 need_lib_prefix=no
14969 ;;
14970 motorola)
14971 need_lib_prefix=no
14972 need_version=no
14973 shlibpath_overrides_runpath=no
14974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14975 ;;
14976 esac
14977 ;;
14978
14979sysv4*MP*)
14980 if test -d /usr/nec ;then
14981 version_type=linux
14982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14983 soname_spec='$libname${shared_ext}.$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 fi
14986 ;;
14987
14988sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14989 version_type=freebsd-elf
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=yes
14996 hardcode_into_libs=yes
14997 if test "$with_gnu_ld" = yes; then
14998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14999 else
15000 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15001 case $host_os in
15002 sco3.2v5*)
15003 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15004 ;;
15005 esac
15006 fi
15007 sys_lib_dlsearch_path_spec='/usr/lib'
15008 ;;
15009
15010tpf*)
15011 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 hardcode_into_libs=yes
15019 ;;
15020
15021uts4*)
15022 version_type=linux
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 ;;
15027
15028*)
15029 dynamic_linker=no
15030 ;;
15031esac
cristy8b350f62009-11-15 23:12:43 +000015032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015033$as_echo "$dynamic_linker" >&6; }
15034test "$dynamic_linker" = no && can_build_shared=no
15035
15036variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15037if test "$GCC" = yes; then
15038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15039fi
15040
15041if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15042 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15043fi
15044if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15046fi
15047
15048
15049
15050
15051
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
cristyfd9dcd42010-08-08 18:07:02 +000015134
15135
15136
15137
15138
cristy8b350f62009-11-15 23:12:43 +000015139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015140$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15141hardcode_action=
15142if test -n "$hardcode_libdir_flag_spec" ||
15143 test -n "$runpath_var" ||
15144 test "X$hardcode_automatic" = "Xyes" ; then
15145
15146 # We can hardcode non-existent directories.
15147 if test "$hardcode_direct" != no &&
15148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15149 # have to relink, otherwise we might link with an installed library
15150 # when we should be linking with a yet-to-be-installed one
15151 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15152 test "$hardcode_minus_L" != no; then
15153 # Linking always hardcodes the temporary library directory.
15154 hardcode_action=relink
15155 else
15156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15157 hardcode_action=immediate
15158 fi
15159else
15160 # We cannot hardcode anything, or else we can only hardcode existing
15161 # directories.
15162 hardcode_action=unsupported
15163fi
cristy8b350f62009-11-15 23:12:43 +000015164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015165$as_echo "$hardcode_action" >&6; }
15166
15167if test "$hardcode_action" = relink ||
15168 test "$inherit_rpath" = yes; then
15169 # Fast installation is not supported
15170 enable_fast_install=no
15171elif test "$shlibpath_overrides_runpath" = yes ||
15172 test "$enable_shared" = no; then
15173 # Fast installation is not necessary
15174 enable_fast_install=needless
15175fi
15176
15177
15178
15179
15180
15181
15182 if test "x$enable_dlopen" != xyes; then
15183 enable_dlopen=unknown
15184 enable_dlopen_self=unknown
15185 enable_dlopen_self_static=unknown
15186else
15187 lt_cv_dlopen=no
15188 lt_cv_dlopen_libs=
15189
15190 case $host_os in
15191 beos*)
15192 lt_cv_dlopen="load_add_on"
15193 lt_cv_dlopen_libs=
15194 lt_cv_dlopen_self=yes
15195 ;;
15196
15197 mingw* | pw32* | cegcc*)
15198 lt_cv_dlopen="LoadLibrary"
15199 lt_cv_dlopen_libs=
15200 ;;
15201
15202 cygwin*)
15203 lt_cv_dlopen="dlopen"
15204 lt_cv_dlopen_libs=
15205 ;;
15206
15207 darwin*)
15208 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015210$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015211if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015212 $as_echo_n "(cached) " >&6
15213else
15214 ac_check_lib_save_LIBS=$LIBS
15215LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015217/* end confdefs.h. */
15218
15219/* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15222#ifdef __cplusplus
15223extern "C"
15224#endif
15225char dlopen ();
15226int
15227main ()
15228{
15229return dlopen ();
15230 ;
15231 return 0;
15232}
15233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015235 ac_cv_lib_dl_dlopen=yes
15236else
cristy8b350f62009-11-15 23:12:43 +000015237 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015238fi
cristy8b350f62009-11-15 23:12:43 +000015239rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015241LIBS=$ac_check_lib_save_LIBS
15242fi
cristy8b350f62009-11-15 23:12:43 +000015243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015244$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015245if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15247else
15248
15249 lt_cv_dlopen="dyld"
15250 lt_cv_dlopen_libs=
15251 lt_cv_dlopen_self=yes
15252
15253fi
15254
15255 ;;
15256
15257 *)
cristy8b350f62009-11-15 23:12:43 +000015258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15259if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015260 lt_cv_dlopen="shl_load"
15261else
cristy8b350f62009-11-15 23:12:43 +000015262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015263$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015264if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015265 $as_echo_n "(cached) " >&6
15266else
15267 ac_check_lib_save_LIBS=$LIBS
15268LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015270/* end confdefs.h. */
15271
15272/* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275#ifdef __cplusplus
15276extern "C"
15277#endif
15278char shl_load ();
15279int
15280main ()
15281{
15282return shl_load ();
15283 ;
15284 return 0;
15285}
15286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015288 ac_cv_lib_dld_shl_load=yes
15289else
cristy8b350f62009-11-15 23:12:43 +000015290 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015291fi
cristy8b350f62009-11-15 23:12:43 +000015292rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015294LIBS=$ac_check_lib_save_LIBS
15295fi
cristy8b350f62009-11-15 23:12:43 +000015296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015297$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015298if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015299 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15300else
cristy8b350f62009-11-15 23:12:43 +000015301 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15302if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015303 lt_cv_dlopen="dlopen"
15304else
cristy8b350f62009-11-15 23:12:43 +000015305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015306$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015307if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 ac_check_lib_save_LIBS=$LIBS
15311LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015313/* end confdefs.h. */
15314
15315/* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15318#ifdef __cplusplus
15319extern "C"
15320#endif
15321char dlopen ();
15322int
15323main ()
15324{
15325return dlopen ();
15326 ;
15327 return 0;
15328}
15329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015330if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015331 ac_cv_lib_dl_dlopen=yes
15332else
cristy8b350f62009-11-15 23:12:43 +000015333 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015334fi
cristy8b350f62009-11-15 23:12:43 +000015335rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015337LIBS=$ac_check_lib_save_LIBS
15338fi
cristy8b350f62009-11-15 23:12:43 +000015339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015340$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015341if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15343else
cristy8b350f62009-11-15 23:12:43 +000015344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015345$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015346if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015347 $as_echo_n "(cached) " >&6
15348else
15349 ac_check_lib_save_LIBS=$LIBS
15350LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015352/* end confdefs.h. */
15353
15354/* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357#ifdef __cplusplus
15358extern "C"
15359#endif
15360char dlopen ();
15361int
15362main ()
15363{
15364return dlopen ();
15365 ;
15366 return 0;
15367}
15368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015370 ac_cv_lib_svld_dlopen=yes
15371else
cristy8b350f62009-11-15 23:12:43 +000015372 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015373fi
cristy8b350f62009-11-15 23:12:43 +000015374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015376LIBS=$ac_check_lib_save_LIBS
15377fi
cristy8b350f62009-11-15 23:12:43 +000015378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015379$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015380if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15382else
cristy8b350f62009-11-15 23:12:43 +000015383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015384$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015385if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015386 $as_echo_n "(cached) " >&6
15387else
15388 ac_check_lib_save_LIBS=$LIBS
15389LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015391/* end confdefs.h. */
15392
15393/* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply. */
15396#ifdef __cplusplus
15397extern "C"
15398#endif
15399char dld_link ();
15400int
15401main ()
15402{
15403return dld_link ();
15404 ;
15405 return 0;
15406}
15407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015409 ac_cv_lib_dld_dld_link=yes
15410else
cristy8b350f62009-11-15 23:12:43 +000015411 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015412fi
cristy8b350f62009-11-15 23:12:43 +000015413rm -f core conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015415LIBS=$ac_check_lib_save_LIBS
15416fi
cristy8b350f62009-11-15 23:12:43 +000015417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015418$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015419if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015420 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15421fi
15422
15423
15424fi
15425
15426
15427fi
15428
15429
15430fi
15431
15432
15433fi
15434
15435
15436fi
15437
15438 ;;
15439 esac
15440
15441 if test "x$lt_cv_dlopen" != xno; then
15442 enable_dlopen=yes
15443 else
15444 enable_dlopen=no
15445 fi
15446
15447 case $lt_cv_dlopen in
15448 dlopen)
15449 save_CPPFLAGS="$CPPFLAGS"
15450 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15451
15452 save_LDFLAGS="$LDFLAGS"
15453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15454
15455 save_LIBS="$LIBS"
15456 LIBS="$lt_cv_dlopen_libs $LIBS"
15457
cristy8b350f62009-11-15 23:12:43 +000015458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015459$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015460if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015461 $as_echo_n "(cached) " >&6
15462else
15463 if test "$cross_compiling" = yes; then :
15464 lt_cv_dlopen_self=cross
15465else
15466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15467 lt_status=$lt_dlunknown
15468 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015469#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015470#include "confdefs.h"
15471
15472#if HAVE_DLFCN_H
15473#include <dlfcn.h>
15474#endif
15475
15476#include <stdio.h>
15477
15478#ifdef RTLD_GLOBAL
15479# define LT_DLGLOBAL RTLD_GLOBAL
15480#else
15481# ifdef DL_GLOBAL
15482# define LT_DLGLOBAL DL_GLOBAL
15483# else
15484# define LT_DLGLOBAL 0
15485# endif
15486#endif
15487
15488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15489 find out it does not work in some platform. */
15490#ifndef LT_DLLAZY_OR_NOW
15491# ifdef RTLD_LAZY
15492# define LT_DLLAZY_OR_NOW RTLD_LAZY
15493# else
15494# ifdef DL_LAZY
15495# define LT_DLLAZY_OR_NOW DL_LAZY
15496# else
15497# ifdef RTLD_NOW
15498# define LT_DLLAZY_OR_NOW RTLD_NOW
15499# else
15500# ifdef DL_NOW
15501# define LT_DLLAZY_OR_NOW DL_NOW
15502# else
15503# define LT_DLLAZY_OR_NOW 0
15504# endif
15505# endif
15506# endif
15507# endif
15508#endif
15509
cristyfd9dcd42010-08-08 18:07:02 +000015510/* When -fvisbility=hidden is used, assume the code has been annotated
15511 correspondingly for the symbols needed. */
15512#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15513void fnord () __attribute__((visibility("default")));
15514#endif
15515
15516void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015517int main ()
15518{
15519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15520 int status = $lt_dlunknown;
15521
15522 if (self)
15523 {
15524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015525 else
15526 {
15527 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15528 else puts (dlerror ());
15529 }
cristy3ed852e2009-09-05 21:47:34 +000015530 /* dlclose (self); */
15531 }
15532 else
15533 puts (dlerror ());
15534
15535 return status;
15536}
15537_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015539 (eval $ac_link) 2>&5
15540 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015543 (./conftest; exit; ) >&5 2>/dev/null
15544 lt_status=$?
15545 case x$lt_status in
15546 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15547 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15548 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15549 esac
15550 else :
15551 # compilation failed
15552 lt_cv_dlopen_self=no
15553 fi
15554fi
15555rm -fr conftest*
15556
15557
15558fi
cristy8b350f62009-11-15 23:12:43 +000015559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015560$as_echo "$lt_cv_dlopen_self" >&6; }
15561
15562 if test "x$lt_cv_dlopen_self" = xyes; then
15563 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015565$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015566if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015567 $as_echo_n "(cached) " >&6
15568else
15569 if test "$cross_compiling" = yes; then :
15570 lt_cv_dlopen_self_static=cross
15571else
15572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15573 lt_status=$lt_dlunknown
15574 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015575#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015576#include "confdefs.h"
15577
15578#if HAVE_DLFCN_H
15579#include <dlfcn.h>
15580#endif
15581
15582#include <stdio.h>
15583
15584#ifdef RTLD_GLOBAL
15585# define LT_DLGLOBAL RTLD_GLOBAL
15586#else
15587# ifdef DL_GLOBAL
15588# define LT_DLGLOBAL DL_GLOBAL
15589# else
15590# define LT_DLGLOBAL 0
15591# endif
15592#endif
15593
15594/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15595 find out it does not work in some platform. */
15596#ifndef LT_DLLAZY_OR_NOW
15597# ifdef RTLD_LAZY
15598# define LT_DLLAZY_OR_NOW RTLD_LAZY
15599# else
15600# ifdef DL_LAZY
15601# define LT_DLLAZY_OR_NOW DL_LAZY
15602# else
15603# ifdef RTLD_NOW
15604# define LT_DLLAZY_OR_NOW RTLD_NOW
15605# else
15606# ifdef DL_NOW
15607# define LT_DLLAZY_OR_NOW DL_NOW
15608# else
15609# define LT_DLLAZY_OR_NOW 0
15610# endif
15611# endif
15612# endif
15613# endif
15614#endif
15615
cristyfd9dcd42010-08-08 18:07:02 +000015616/* When -fvisbility=hidden is used, assume the code has been annotated
15617 correspondingly for the symbols needed. */
15618#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15619void fnord () __attribute__((visibility("default")));
15620#endif
15621
15622void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015623int main ()
15624{
15625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15626 int status = $lt_dlunknown;
15627
15628 if (self)
15629 {
15630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015631 else
15632 {
15633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15634 else puts (dlerror ());
15635 }
cristy3ed852e2009-09-05 21:47:34 +000015636 /* dlclose (self); */
15637 }
15638 else
15639 puts (dlerror ());
15640
15641 return status;
15642}
15643_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015645 (eval $ac_link) 2>&5
15646 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015649 (./conftest; exit; ) >&5 2>/dev/null
15650 lt_status=$?
15651 case x$lt_status in
15652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15654 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15655 esac
15656 else :
15657 # compilation failed
15658 lt_cv_dlopen_self_static=no
15659 fi
15660fi
15661rm -fr conftest*
15662
15663
15664fi
cristy8b350f62009-11-15 23:12:43 +000015665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015666$as_echo "$lt_cv_dlopen_self_static" >&6; }
15667 fi
15668
15669 CPPFLAGS="$save_CPPFLAGS"
15670 LDFLAGS="$save_LDFLAGS"
15671 LIBS="$save_LIBS"
15672 ;;
15673 esac
15674
15675 case $lt_cv_dlopen_self in
15676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15677 *) enable_dlopen_self=unknown ;;
15678 esac
15679
15680 case $lt_cv_dlopen_self_static in
15681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15682 *) enable_dlopen_self_static=unknown ;;
15683 esac
15684fi
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702striplib=
15703old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015705$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15706if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15707 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15708 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015710$as_echo "yes" >&6; }
15711else
15712# FIXME - insert some real tests, host_os isn't really good enough
15713 case $host_os in
15714 darwin*)
15715 if test -n "$STRIP" ; then
15716 striplib="$STRIP -x"
15717 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015719$as_echo "yes" >&6; }
15720 else
cristy8b350f62009-11-15 23:12:43 +000015721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015722$as_echo "no" >&6; }
15723 fi
15724 ;;
15725 *)
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 ;;
15729 esac
15730fi
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015745$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015747$as_echo "$can_build_shared" >&6; }
15748
cristy8b350f62009-11-15 23:12:43 +000015749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015750$as_echo_n "checking whether to build shared libraries... " >&6; }
15751 test "$can_build_shared" = "no" && enable_shared=no
15752
15753 # On AIX, shared libraries and static libraries use the same namespace, and
15754 # are all built from PIC.
15755 case $host_os in
15756 aix3*)
15757 test "$enable_shared" = yes && enable_static=no
15758 if test -n "$RANLIB"; then
15759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15760 postinstall_cmds='$RANLIB $lib'
15761 fi
15762 ;;
15763
15764 aix[4-9]*)
15765 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15766 test "$enable_shared" = yes && enable_static=no
15767 fi
15768 ;;
15769 esac
cristy8b350f62009-11-15 23:12:43 +000015770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015771$as_echo "$enable_shared" >&6; }
15772
cristy8b350f62009-11-15 23:12:43 +000015773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015774$as_echo_n "checking whether to build static libraries... " >&6; }
15775 # Make sure either enable_shared or enable_static is yes.
15776 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015778$as_echo "$enable_static" >&6; }
15779
15780
15781
15782
15783fi
15784ac_ext=c
15785ac_cpp='$CPP $CPPFLAGS'
15786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789
15790CC="$lt_save_CC"
15791
cristyfd9dcd42010-08-08 18:07:02 +000015792 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15793 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15794 (test "X$CXX" != "Xg++"))) ; then
15795 ac_ext=cpp
15796ac_cpp='$CXXCPP $CPPFLAGS'
15797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15801$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15802if test -z "$CXXCPP"; then
15803 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15805else
15806 # Double quotes because CXXCPP needs to be expanded
15807 for CXXCPP in "$CXX -E" "/lib/cpp"
15808 do
15809 ac_preproc_ok=false
15810for ac_cxx_preproc_warn_flag in '' yes
15811do
15812 # Use a header file that comes with gcc, so configuring glibc
15813 # with a fresh cross-compiler works.
15814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 # <limits.h> exists even on freestanding compilers.
15816 # On the NeXT, cc -E runs the code through the compiler's parser,
15817 # not just through cpp. "Syntax error" is here to catch this case.
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820#ifdef __STDC__
15821# include <limits.h>
15822#else
15823# include <assert.h>
15824#endif
15825 Syntax error
15826_ACEOF
15827if ac_fn_cxx_try_cpp "$LINENO"; then :
15828
15829else
15830 # Broken: fails on valid input.
15831continue
15832fi
15833rm -f conftest.err conftest.$ac_ext
15834
15835 # OK, works on sane cases. Now check whether nonexistent headers
15836 # can be detected and how.
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838/* end confdefs.h. */
15839#include <ac_nonexistent.h>
15840_ACEOF
15841if ac_fn_cxx_try_cpp "$LINENO"; then :
15842 # Broken: success on invalid input.
15843continue
15844else
15845 # Passes both tests.
15846ac_preproc_ok=:
15847break
15848fi
15849rm -f conftest.err conftest.$ac_ext
15850
15851done
15852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15853rm -f conftest.err conftest.$ac_ext
15854if $ac_preproc_ok; then :
15855 break
15856fi
15857
15858 done
15859 ac_cv_prog_CXXCPP=$CXXCPP
15860
15861fi
15862 CXXCPP=$ac_cv_prog_CXXCPP
15863else
15864 ac_cv_prog_CXXCPP=$CXXCPP
15865fi
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15867$as_echo "$CXXCPP" >&6; }
15868ac_preproc_ok=false
15869for ac_cxx_preproc_warn_flag in '' yes
15870do
15871 # Use a header file that comes with gcc, so configuring glibc
15872 # with a fresh cross-compiler works.
15873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15874 # <limits.h> exists even on freestanding compilers.
15875 # On the NeXT, cc -E runs the code through the compiler's parser,
15876 # not just through cpp. "Syntax error" is here to catch this case.
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h. */
15879#ifdef __STDC__
15880# include <limits.h>
15881#else
15882# include <assert.h>
15883#endif
15884 Syntax error
15885_ACEOF
15886if ac_fn_cxx_try_cpp "$LINENO"; then :
15887
15888else
15889 # Broken: fails on valid input.
15890continue
15891fi
15892rm -f conftest.err conftest.$ac_ext
15893
15894 # OK, works on sane cases. Now check whether nonexistent headers
15895 # can be detected and how.
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h. */
15898#include <ac_nonexistent.h>
15899_ACEOF
15900if ac_fn_cxx_try_cpp "$LINENO"; then :
15901 # Broken: success on invalid input.
15902continue
15903else
15904 # Passes both tests.
15905ac_preproc_ok=:
15906break
15907fi
15908rm -f conftest.err conftest.$ac_ext
15909
15910done
15911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15912rm -f conftest.err conftest.$ac_ext
15913if $ac_preproc_ok; then :
15914
15915else
15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15918as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15919See \`config.log' for more details" "$LINENO" 5; }
15920fi
15921
15922ac_ext=c
15923ac_cpp='$CPP $CPPFLAGS'
15924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15926ac_compiler_gnu=$ac_cv_c_compiler_gnu
15927
15928else
15929 _lt_caught_CXX_error=yes
15930fi
cristy3ed852e2009-09-05 21:47:34 +000015931
15932ac_ext=cpp
15933ac_cpp='$CXXCPP $CPPFLAGS'
15934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15937
15938archive_cmds_need_lc_CXX=no
15939allow_undefined_flag_CXX=
15940always_export_symbols_CXX=no
15941archive_expsym_cmds_CXX=
15942compiler_needs_object_CXX=no
15943export_dynamic_flag_spec_CXX=
15944hardcode_direct_CXX=no
15945hardcode_direct_absolute_CXX=no
15946hardcode_libdir_flag_spec_CXX=
15947hardcode_libdir_flag_spec_ld_CXX=
15948hardcode_libdir_separator_CXX=
15949hardcode_minus_L_CXX=no
15950hardcode_shlibpath_var_CXX=unsupported
15951hardcode_automatic_CXX=no
15952inherit_rpath_CXX=no
15953module_cmds_CXX=
15954module_expsym_cmds_CXX=
15955link_all_deplibs_CXX=unknown
15956old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015957reload_flag_CXX=$reload_flag
15958reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015959no_undefined_flag_CXX=
15960whole_archive_flag_spec_CXX=
15961enable_shared_with_static_runtimes_CXX=no
15962
15963# Source file extension for C++ test sources.
15964ac_ext=cpp
15965
15966# Object file extension for compiled C++ test sources.
15967objext=o
15968objext_CXX=$objext
15969
15970# No sense in running all these tests if we already determined that
15971# the CXX compiler isn't working. Some variables (like enable_shared)
15972# are currently assumed to apply to all compilers on this platform,
15973# and will be corrupted by setting them based on a non-working compiler.
15974if test "$_lt_caught_CXX_error" != yes; then
15975 # Code to be used in simple compile tests
15976 lt_simple_compile_test_code="int some_variable = 0;"
15977
15978 # Code to be used in simple link tests
15979 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15980
15981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15982
15983
15984
15985
15986
15987
15988# If no C compiler was specified, use CC.
15989LTCC=${LTCC-"$CC"}
15990
15991# If no C compiler flags were specified, use CFLAGS.
15992LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15993
15994# Allow CC to be a program name with arguments.
15995compiler=$CC
15996
15997
15998 # save warnings/boilerplate of simple test code
15999 ac_outfile=conftest.$ac_objext
16000echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16002_lt_compiler_boilerplate=`cat conftest.err`
16003$RM conftest*
16004
16005 ac_outfile=conftest.$ac_objext
16006echo "$lt_simple_link_test_code" >conftest.$ac_ext
16007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16008_lt_linker_boilerplate=`cat conftest.err`
16009$RM -r conftest*
16010
16011
16012 # Allow CC to be a program name with arguments.
16013 lt_save_CC=$CC
16014 lt_save_LD=$LD
16015 lt_save_GCC=$GCC
16016 GCC=$GXX
16017 lt_save_with_gnu_ld=$with_gnu_ld
16018 lt_save_path_LD=$lt_cv_path_LD
16019 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16020 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16021 else
16022 $as_unset lt_cv_prog_gnu_ld
16023 fi
16024 if test -n "${lt_cv_path_LDCXX+set}"; then
16025 lt_cv_path_LD=$lt_cv_path_LDCXX
16026 else
16027 $as_unset lt_cv_path_LD
16028 fi
16029 test -z "${LDCXX+set}" || LD=$LDCXX
16030 CC=${CXX-"c++"}
16031 compiler=$CC
16032 compiler_CXX=$CC
16033 for cc_temp in $compiler""; do
16034 case $cc_temp in
16035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16037 \-*) ;;
16038 *) break;;
16039 esac
16040done
cristyfd9dcd42010-08-08 18:07:02 +000016041cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016042
16043
16044 if test -n "$compiler"; then
16045 # We don't want -fno-exception when compiling C++ code, so set the
16046 # no_builtin_flag separately
16047 if test "$GXX" = yes; then
16048 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16049 else
16050 lt_prog_compiler_no_builtin_flag_CXX=
16051 fi
16052
16053 if test "$GXX" = yes; then
16054 # Set up default GNU C++ configuration
16055
16056
16057
16058# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016059if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16061else
16062 with_gnu_ld=no
16063fi
16064
16065ac_prog=ld
16066if test "$GCC" = yes; then
16067 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016069$as_echo_n "checking for ld used by $CC... " >&6; }
16070 case $host in
16071 *-*-mingw*)
16072 # gcc leaves a trailing carriage return which upsets mingw
16073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16074 *)
16075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16076 esac
16077 case $ac_prog in
16078 # Accept absolute paths.
16079 [\\/]* | ?:[\\/]*)
16080 re_direlt='/[^/][^/]*/\.\./'
16081 # Canonicalize the pathname of ld
16082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16085 done
16086 test -z "$LD" && LD="$ac_prog"
16087 ;;
16088 "")
16089 # If it fails, then pretend we aren't using GCC.
16090 ac_prog=ld
16091 ;;
16092 *)
16093 # If it is relative, then search for the first ld in PATH.
16094 with_gnu_ld=unknown
16095 ;;
16096 esac
16097elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016099$as_echo_n "checking for GNU ld... " >&6; }
16100else
cristy8b350f62009-11-15 23:12:43 +000016101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016102$as_echo_n "checking for non-GNU ld... " >&6; }
16103fi
cristy8b350f62009-11-15 23:12:43 +000016104if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016105 $as_echo_n "(cached) " >&6
16106else
16107 if test -z "$LD"; then
16108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16109 for ac_dir in $PATH; do
16110 IFS="$lt_save_ifs"
16111 test -z "$ac_dir" && ac_dir=.
16112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16113 lt_cv_path_LD="$ac_dir/$ac_prog"
16114 # Check to see if the program is GNU ld. I'd rather use --version,
16115 # but apparently some variants of GNU ld only accept -v.
16116 # Break only if it was the GNU/non-GNU ld that we prefer.
16117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16118 *GNU* | *'with BFD'*)
16119 test "$with_gnu_ld" != no && break
16120 ;;
16121 *)
16122 test "$with_gnu_ld" != yes && break
16123 ;;
16124 esac
16125 fi
16126 done
16127 IFS="$lt_save_ifs"
16128else
16129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16130fi
16131fi
16132
16133LD="$lt_cv_path_LD"
16134if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016136$as_echo "$LD" >&6; }
16137else
cristy8b350f62009-11-15 23:12:43 +000016138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016139$as_echo "no" >&6; }
16140fi
cristyfd9dcd42010-08-08 18:07:02 +000016141test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016143$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016144if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016145 $as_echo_n "(cached) " >&6
16146else
16147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16148case `$LD -v 2>&1 </dev/null` in
16149*GNU* | *'with BFD'*)
16150 lt_cv_prog_gnu_ld=yes
16151 ;;
16152*)
16153 lt_cv_prog_gnu_ld=no
16154 ;;
16155esac
16156fi
cristy8b350f62009-11-15 23:12:43 +000016157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016158$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16159with_gnu_ld=$lt_cv_prog_gnu_ld
16160
16161
16162
16163
16164
16165
16166
16167 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16168 # archiving commands below assume that GNU ld is being used.
16169 if test "$with_gnu_ld" = yes; then
16170 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16171 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'
16172
16173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16175
16176 # If archive_cmds runs LD, not CC, wlarc should be empty
16177 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16178 # investigate it a little bit more. (MM)
16179 wlarc='${wl}'
16180
16181 # ancient GNU ld didn't support --whole-archive et. al.
16182 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16183 $GREP 'no-whole-archive' > /dev/null; then
16184 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16185 else
16186 whole_archive_flag_spec_CXX=
16187 fi
16188 else
16189 with_gnu_ld=no
16190 wlarc=
16191
16192 # A generic and very simple default shared library creation
16193 # command for GNU C++ for the case where it uses the native
16194 # linker, instead of GNU ld. If possible, this setting should
16195 # overridden to take advantage of the native linker features on
16196 # the platform it is being used on.
16197 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16198 fi
16199
16200 # Commands to make compiler produce verbose output that lists
16201 # what "hidden" libraries, object files and flags are used when
16202 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016204
16205 else
16206 GXX=no
16207 with_gnu_ld=no
16208 wlarc=
16209 fi
16210
16211 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016213$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16214 ld_shlibs_CXX=yes
16215 case $host_os in
16216 aix3*)
16217 # FIXME: insert proper C++ library support
16218 ld_shlibs_CXX=no
16219 ;;
16220 aix[4-9]*)
16221 if test "$host_cpu" = ia64; then
16222 # On IA64, the linker does run time linking by default, so we don't
16223 # have to do anything special.
16224 aix_use_runtimelinking=no
16225 exp_sym_flag='-Bexport'
16226 no_entry_flag=""
16227 else
16228 aix_use_runtimelinking=no
16229
16230 # Test if we are trying to use run time linking or normal
16231 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16232 # need to do runtime linking.
16233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16234 for ld_flag in $LDFLAGS; do
16235 case $ld_flag in
16236 *-brtl*)
16237 aix_use_runtimelinking=yes
16238 break
16239 ;;
16240 esac
16241 done
16242 ;;
16243 esac
16244
16245 exp_sym_flag='-bexport'
16246 no_entry_flag='-bnoentry'
16247 fi
16248
16249 # When large executables or shared objects are built, AIX ld can
16250 # have problems creating the table of contents. If linking a library
16251 # or program results in "error TOC overflow" add -mminimal-toc to
16252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16254
16255 archive_cmds_CXX=''
16256 hardcode_direct_CXX=yes
16257 hardcode_direct_absolute_CXX=yes
16258 hardcode_libdir_separator_CXX=':'
16259 link_all_deplibs_CXX=yes
16260 file_list_spec_CXX='${wl}-f,'
16261
16262 if test "$GXX" = yes; then
16263 case $host_os in aix4.[012]|aix4.[012].*)
16264 # We only want to do this on AIX 4.2 and lower, the check
16265 # below for broken collect2 doesn't work under 4.3+
16266 collect2name=`${CC} -print-prog-name=collect2`
16267 if test -f "$collect2name" &&
16268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16269 then
16270 # We have reworked collect2
16271 :
16272 else
16273 # We have old collect2
16274 hardcode_direct_CXX=unsupported
16275 # It fails to find uninstalled libraries when the uninstalled
16276 # path is not listed in the libpath. Setting hardcode_minus_L
16277 # to unsupported forces relinking
16278 hardcode_minus_L_CXX=yes
16279 hardcode_libdir_flag_spec_CXX='-L$libdir'
16280 hardcode_libdir_separator_CXX=
16281 fi
16282 esac
16283 shared_flag='-shared'
16284 if test "$aix_use_runtimelinking" = yes; then
16285 shared_flag="$shared_flag "'${wl}-G'
16286 fi
16287 else
16288 # not using gcc
16289 if test "$host_cpu" = ia64; then
16290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16291 # chokes on -Wl,-G. The following line is correct:
16292 shared_flag='-G'
16293 else
16294 if test "$aix_use_runtimelinking" = yes; then
16295 shared_flag='${wl}-G'
16296 else
16297 shared_flag='${wl}-bM:SRE'
16298 fi
16299 fi
16300 fi
16301
16302 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16303 # It seems that -bexpall does not export symbols beginning with
16304 # underscore (_), so it is better to generate a list of symbols to
16305 # export.
16306 always_export_symbols_CXX=yes
16307 if test "$aix_use_runtimelinking" = yes; then
16308 # Warning - without using the other runtime loading flags (-brtl),
16309 # -berok will link without error, but may produce a broken library.
16310 allow_undefined_flag_CXX='-berok'
16311 # Determine the default libpath from the value encoded in an empty
16312 # executable.
cristy8b350f62009-11-15 23:12:43 +000016313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016314/* end confdefs.h. */
16315
16316int
16317main ()
16318{
16319
16320 ;
16321 return 0;
16322}
16323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016324if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016325
16326lt_aix_libpath_sed='
16327 /Import File Strings/,/^$/ {
16328 /^0/ {
16329 s/^0 *\(.*\)$/\1/
16330 p
16331 }
16332 }'
16333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16334# Check for a 64-bit object if we didn't find anything.
16335if test -z "$aix_libpath"; then
16336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16337fi
cristy3ed852e2009-09-05 21:47:34 +000016338fi
cristy8b350f62009-11-15 23:12:43 +000016339rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16342
16343 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16344
cristyfd9dcd42010-08-08 18:07:02 +000016345 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 +000016346 else
16347 if test "$host_cpu" = ia64; then
16348 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16349 allow_undefined_flag_CXX="-z nodefs"
16350 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"
16351 else
16352 # Determine the default libpath from the value encoded in an
16353 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016355/* end confdefs.h. */
16356
16357int
16358main ()
16359{
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016365if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016366
16367lt_aix_libpath_sed='
16368 /Import File Strings/,/^$/ {
16369 /^0/ {
16370 s/^0 *\(.*\)$/\1/
16371 p
16372 }
16373 }'
16374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16375# Check for a 64-bit object if we didn't find anything.
16376if test -z "$aix_libpath"; then
16377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16378fi
cristy3ed852e2009-09-05 21:47:34 +000016379fi
cristy8b350f62009-11-15 23:12:43 +000016380rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16383
16384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16385 # Warning - without using the other run time loading flags,
16386 # -berok will link without error, but may produce a broken library.
16387 no_undefined_flag_CXX=' ${wl}-bernotok'
16388 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016389 if test "$with_gnu_ld" = yes; then
16390 # We only use this code for GNU lds that support --whole-archive.
16391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16392 else
16393 # Exported symbols can be pulled into shared objects from archives
16394 whole_archive_flag_spec_CXX='$convenience'
16395 fi
cristy3ed852e2009-09-05 21:47:34 +000016396 archive_cmds_need_lc_CXX=yes
16397 # This is similar to how AIX traditionally builds its shared
16398 # libraries.
16399 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'
16400 fi
16401 fi
16402 ;;
16403
16404 beos*)
16405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16406 allow_undefined_flag_CXX=unsupported
16407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16408 # support --undefined. This deserves some investigation. FIXME
16409 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16410 else
16411 ld_shlibs_CXX=no
16412 fi
16413 ;;
16414
16415 chorus*)
16416 case $cc_basename in
16417 *)
16418 # FIXME: insert proper C++ library support
16419 ld_shlibs_CXX=no
16420 ;;
16421 esac
16422 ;;
16423
16424 cygwin* | mingw* | pw32* | cegcc*)
16425 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16426 # as there is no search path for DLLs.
16427 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016428 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016429 allow_undefined_flag_CXX=unsupported
16430 always_export_symbols_CXX=no
16431 enable_shared_with_static_runtimes_CXX=yes
16432
16433 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16434 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'
16435 # If the export-symbols file already is a .def file (1st line
16436 # is EXPORTS), use it as is; otherwise, prepend...
16437 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 cp $export_symbols $output_objdir/$soname.def;
16439 else
16440 echo EXPORTS > $output_objdir/$soname.def;
16441 cat $export_symbols >> $output_objdir/$soname.def;
16442 fi~
16443 $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'
16444 else
16445 ld_shlibs_CXX=no
16446 fi
16447 ;;
16448 darwin* | rhapsody*)
16449
16450
16451 archive_cmds_need_lc_CXX=no
16452 hardcode_direct_CXX=no
16453 hardcode_automatic_CXX=yes
16454 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016455 if test "$lt_cv_ld_force_load" = "yes"; then
16456 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\"`'
16457 else
16458 whole_archive_flag_spec_CXX=''
16459 fi
cristy3ed852e2009-09-05 21:47:34 +000016460 link_all_deplibs_CXX=yes
16461 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16462 case $cc_basename in
16463 ifort*) _lt_dar_can_shared=yes ;;
16464 *) _lt_dar_can_shared=$GCC ;;
16465 esac
16466 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016467 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016468 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}"
16469 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16470 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}"
16471 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}"
16472 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16473 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}"
16474 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}"
16475 fi
16476
16477 else
16478 ld_shlibs_CXX=no
16479 fi
16480
16481 ;;
16482
16483 dgux*)
16484 case $cc_basename in
16485 ec++*)
16486 # FIXME: insert proper C++ library support
16487 ld_shlibs_CXX=no
16488 ;;
16489 ghcx*)
16490 # Green Hills C++ Compiler
16491 # FIXME: insert proper C++ library support
16492 ld_shlibs_CXX=no
16493 ;;
16494 *)
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 ;;
16498 esac
16499 ;;
16500
16501 freebsd[12]*)
16502 # C++ shared libraries reported to be fairly broken before
16503 # switch to ELF
16504 ld_shlibs_CXX=no
16505 ;;
16506
16507 freebsd-elf*)
16508 archive_cmds_need_lc_CXX=no
16509 ;;
16510
16511 freebsd* | dragonfly*)
16512 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16513 # conventions
16514 ld_shlibs_CXX=yes
16515 ;;
16516
16517 gnu*)
16518 ;;
16519
cristyfd9dcd42010-08-08 18:07:02 +000016520 haiku*)
16521 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16522 link_all_deplibs_CXX=yes
16523 ;;
16524
cristy3ed852e2009-09-05 21:47:34 +000016525 hpux9*)
16526 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16527 hardcode_libdir_separator_CXX=:
16528 export_dynamic_flag_spec_CXX='${wl}-E'
16529 hardcode_direct_CXX=yes
16530 hardcode_minus_L_CXX=yes # Not in the search PATH,
16531 # but as the default
16532 # location of the library.
16533
16534 case $cc_basename in
16535 CC*)
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 ;;
16539 aCC*)
16540 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'
16541 # Commands to make compiler produce verbose output that lists
16542 # what "hidden" libraries, object files and flags are used when
16543 # linking a shared library.
16544 #
16545 # There doesn't appear to be a way to prevent this compiler from
16546 # explicitly linking system object files so we need to strip them
16547 # from the output so that they don't get included in the library
16548 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016549 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 +000016550 ;;
16551 *)
16552 if test "$GXX" = yes; then
16553 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'
16554 else
16555 # FIXME: insert proper C++ library support
16556 ld_shlibs_CXX=no
16557 fi
16558 ;;
16559 esac
16560 ;;
16561
16562 hpux10*|hpux11*)
16563 if test $with_gnu_ld = no; then
16564 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16565 hardcode_libdir_separator_CXX=:
16566
16567 case $host_cpu in
16568 hppa*64*|ia64*)
16569 ;;
16570 *)
16571 export_dynamic_flag_spec_CXX='${wl}-E'
16572 ;;
16573 esac
16574 fi
16575 case $host_cpu in
16576 hppa*64*|ia64*)
16577 hardcode_direct_CXX=no
16578 hardcode_shlibpath_var_CXX=no
16579 ;;
16580 *)
16581 hardcode_direct_CXX=yes
16582 hardcode_direct_absolute_CXX=yes
16583 hardcode_minus_L_CXX=yes # Not in the search PATH,
16584 # but as the default
16585 # location of the library.
16586 ;;
16587 esac
16588
16589 case $cc_basename in
16590 CC*)
16591 # FIXME: insert proper C++ library support
16592 ld_shlibs_CXX=no
16593 ;;
16594 aCC*)
16595 case $host_cpu in
16596 hppa*64*)
16597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16598 ;;
16599 ia64*)
16600 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16601 ;;
16602 *)
16603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16604 ;;
16605 esac
16606 # Commands to make compiler produce verbose output that lists
16607 # what "hidden" libraries, object files and flags are used when
16608 # linking a shared library.
16609 #
16610 # There doesn't appear to be a way to prevent this compiler from
16611 # explicitly linking system object files so we need to strip them
16612 # from the output so that they don't get included in the library
16613 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016614 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 +000016615 ;;
16616 *)
16617 if test "$GXX" = yes; then
16618 if test $with_gnu_ld = no; then
16619 case $host_cpu in
16620 hppa*64*)
16621 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16622 ;;
16623 ia64*)
16624 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16625 ;;
16626 *)
16627 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'
16628 ;;
16629 esac
16630 fi
16631 else
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 fi
16635 ;;
16636 esac
16637 ;;
16638
16639 interix[3-9]*)
16640 hardcode_direct_CXX=no
16641 hardcode_shlibpath_var_CXX=no
16642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16643 export_dynamic_flag_spec_CXX='${wl}-E'
16644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16645 # Instead, shared libraries are loaded at an image base (0x10000000 by
16646 # default) and relocated if they conflict, which is a slow very memory
16647 # consuming and fragmenting process. To avoid this, we pick a random,
16648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16650 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'
16651 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'
16652 ;;
16653 irix5* | irix6*)
16654 case $cc_basename in
16655 CC*)
16656 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016657 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 +000016658
16659 # Archives containing C++ object files must be created using
16660 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16661 # necessary to make sure instantiated templates are included
16662 # in the archive.
16663 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16664 ;;
16665 *)
16666 if test "$GXX" = yes; then
16667 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016668 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 +000016669 else
cristyfd9dcd42010-08-08 18:07:02 +000016670 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 +000016671 fi
16672 fi
16673 link_all_deplibs_CXX=yes
16674 ;;
16675 esac
16676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16677 hardcode_libdir_separator_CXX=:
16678 inherit_rpath_CXX=yes
16679 ;;
16680
cristyfd9dcd42010-08-08 18:07:02 +000016681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016682 case $cc_basename in
16683 KCC*)
16684 # Kuck and Associates, Inc. (KAI) C++ Compiler
16685
16686 # KCC will only create a shared library if the output file
16687 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16688 # to its proper name (with version) after linking.
16689 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'
16690 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'
16691 # Commands to make compiler produce verbose output that lists
16692 # what "hidden" libraries, object files and flags are used when
16693 # linking a shared library.
16694 #
16695 # There doesn't appear to be a way to prevent this compiler from
16696 # explicitly linking system object files so we need to strip them
16697 # from the output so that they don't get included in the library
16698 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016699 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 +000016700
16701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16703
16704 # Archives containing C++ object files must be created using
16705 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16706 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16707 ;;
16708 icpc* | ecpc* )
16709 # Intel C++
16710 with_gnu_ld=yes
16711 # version 8.0 and above of icpc choke on multiply defined symbols
16712 # if we add $predep_objects and $postdep_objects, however 7.1 and
16713 # earlier do not add the objects themselves.
16714 case `$CC -V 2>&1` in
16715 *"Version 7."*)
16716 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717 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'
16718 ;;
16719 *) # Version 8.0 or newer
16720 tmp_idyn=
16721 case $host_cpu in
16722 ia64*) tmp_idyn=' -i_dynamic';;
16723 esac
16724 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 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'
16726 ;;
16727 esac
16728 archive_cmds_need_lc_CXX=no
16729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16731 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16732 ;;
16733 pgCC* | pgcpp*)
16734 # Portland Group C++ compiler
16735 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016736 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016737 prelink_cmds_CXX='tpldir=Template.dir~
16738 rm -rf $tpldir~
16739 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016740 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016741 old_archive_cmds_CXX='tpldir=Template.dir~
16742 rm -rf $tpldir~
16743 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016744 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016745 $RANLIB $oldlib'
16746 archive_cmds_CXX='tpldir=Template.dir~
16747 rm -rf $tpldir~
16748 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016749 $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 +000016750 archive_expsym_cmds_CXX='tpldir=Template.dir~
16751 rm -rf $tpldir~
16752 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016753 $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 +000016754 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016755 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016756 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16757 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'
16758 ;;
16759 esac
16760
16761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016763 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 +000016764 ;;
16765 cxx*)
16766 # Compaq C++
16767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16768 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'
16769
16770 runpath_var=LD_RUN_PATH
16771 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16772 hardcode_libdir_separator_CXX=:
16773
16774 # Commands to make compiler produce verbose output that lists
16775 # what "hidden" libraries, object files and flags are used when
16776 # linking a shared library.
16777 #
16778 # There doesn't appear to be a way to prevent this compiler from
16779 # explicitly linking system object files so we need to strip them
16780 # from the output so that they don't get included in the library
16781 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016782 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 +000016783 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016784 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016785 # IBM XL 8.0 on PPC, with GNU ld
16786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16788 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789 if test "x$supports_anon_versioning" = xyes; then
16790 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16792 echo "local: *; };" >> $output_objdir/$libname.ver~
16793 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16794 fi
16795 ;;
16796 *)
16797 case `$CC -V 2>&1 | sed 5q` in
16798 *Sun\ C*)
16799 # Sun C++ 5.9
16800 no_undefined_flag_CXX=' -zdefs'
16801 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16802 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'
16803 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016804 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 +000016805 compiler_needs_object_CXX=yes
16806
16807 # Not sure whether something based on
16808 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16809 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016810 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016811
16812 # Archives containing C++ object files must be created using
16813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16814 # necessary to make sure instantiated templates are included
16815 # in the archive.
16816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16817 ;;
16818 esac
16819 ;;
16820 esac
16821 ;;
16822
16823 lynxos*)
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16826 ;;
16827
16828 m88k*)
16829 # FIXME: insert proper C++ library support
16830 ld_shlibs_CXX=no
16831 ;;
16832
16833 mvs*)
16834 case $cc_basename in
16835 cxx*)
16836 # FIXME: insert proper C++ library support
16837 ld_shlibs_CXX=no
16838 ;;
16839 *)
16840 # FIXME: insert proper C++ library support
16841 ld_shlibs_CXX=no
16842 ;;
16843 esac
16844 ;;
16845
16846 netbsd*)
16847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16849 wlarc=
16850 hardcode_libdir_flag_spec_CXX='-R$libdir'
16851 hardcode_direct_CXX=yes
16852 hardcode_shlibpath_var_CXX=no
16853 fi
16854 # Workaround some broken pre-1.5 toolchains
16855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16856 ;;
16857
16858 *nto* | *qnx*)
16859 ld_shlibs_CXX=yes
16860 ;;
16861
16862 openbsd2*)
16863 # C++ shared libraries are fairly broken
16864 ld_shlibs_CXX=no
16865 ;;
16866
16867 openbsd*)
16868 if test -f /usr/libexec/ld.so; then
16869 hardcode_direct_CXX=yes
16870 hardcode_shlibpath_var_CXX=no
16871 hardcode_direct_absolute_CXX=yes
16872 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16876 export_dynamic_flag_spec_CXX='${wl}-E'
16877 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16878 fi
cristyfd9dcd42010-08-08 18:07:02 +000016879 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016880 else
16881 ld_shlibs_CXX=no
16882 fi
16883 ;;
16884
16885 osf3* | osf4* | osf5*)
16886 case $cc_basename in
16887 KCC*)
16888 # Kuck and Associates, Inc. (KAI) C++ Compiler
16889
16890 # KCC will only create a shared library if the output file
16891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16892 # to its proper name (with version) after linking.
16893 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'
16894
16895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16896 hardcode_libdir_separator_CXX=:
16897
16898 # Archives containing C++ object files must be created using
16899 # the KAI C++ compiler.
16900 case $host in
16901 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16902 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16903 esac
16904 ;;
16905 RCC*)
16906 # Rational C++ 2.4.1
16907 # FIXME: insert proper C++ library support
16908 ld_shlibs_CXX=no
16909 ;;
16910 cxx*)
16911 case $host in
16912 osf3*)
16913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016914 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 +000016915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16916 ;;
16917 *)
16918 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016919 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 +000016920 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16921 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016922 $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 +000016923 $RM $lib.exp'
16924 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16925 ;;
16926 esac
16927
16928 hardcode_libdir_separator_CXX=:
16929
16930 # Commands to make compiler produce verbose output that lists
16931 # what "hidden" libraries, object files and flags are used when
16932 # linking a shared library.
16933 #
16934 # There doesn't appear to be a way to prevent this compiler from
16935 # explicitly linking system object files so we need to strip them
16936 # from the output so that they don't get included in the library
16937 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016938 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 +000016939 ;;
16940 *)
16941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16943 case $host in
16944 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016945 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 +000016946 ;;
16947 *)
cristyfd9dcd42010-08-08 18:07:02 +000016948 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 +000016949 ;;
16950 esac
16951
16952 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16953 hardcode_libdir_separator_CXX=:
16954
16955 # Commands to make compiler produce verbose output that lists
16956 # what "hidden" libraries, object files and flags are used when
16957 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016959
16960 else
16961 # FIXME: insert proper C++ library support
16962 ld_shlibs_CXX=no
16963 fi
16964 ;;
16965 esac
16966 ;;
16967
16968 psos*)
16969 # FIXME: insert proper C++ library support
16970 ld_shlibs_CXX=no
16971 ;;
16972
16973 sunos4*)
16974 case $cc_basename in
16975 CC*)
16976 # Sun C++ 4.x
16977 # FIXME: insert proper C++ library support
16978 ld_shlibs_CXX=no
16979 ;;
16980 lcc*)
16981 # Lucid
16982 # FIXME: insert proper C++ library support
16983 ld_shlibs_CXX=no
16984 ;;
16985 *)
16986 # FIXME: insert proper C++ library support
16987 ld_shlibs_CXX=no
16988 ;;
16989 esac
16990 ;;
16991
16992 solaris*)
16993 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016994 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016995 # Sun C++ 4.2, 5.x and Centerline C++
16996 archive_cmds_need_lc_CXX=yes
16997 no_undefined_flag_CXX=' -zdefs'
16998 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16999 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17000 $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'
17001
17002 hardcode_libdir_flag_spec_CXX='-R$libdir'
17003 hardcode_shlibpath_var_CXX=no
17004 case $host_os in
17005 solaris2.[0-5] | solaris2.[0-5].*) ;;
17006 *)
17007 # The compiler driver will combine and reorder linker options,
17008 # but understands `-z linker_flag'.
17009 # Supported since Solaris 2.6 (maybe 2.5.1?)
17010 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17011 ;;
17012 esac
17013 link_all_deplibs_CXX=yes
17014
cristyfd9dcd42010-08-08 18:07:02 +000017015 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017016
17017 # Archives containing C++ object files must be created using
17018 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17019 # necessary to make sure instantiated templates are included
17020 # in the archive.
17021 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17022 ;;
17023 gcx*)
17024 # Green Hills C++ Compiler
17025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17026
17027 # The C++ compiler must be used to create the archive.
17028 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17029 ;;
17030 *)
17031 # GNU C++ compiler with Solaris linker
17032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17033 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17034 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17035 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17037 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17038
17039 # Commands to make compiler produce verbose output that lists
17040 # what "hidden" libraries, object files and flags are used when
17041 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017043 else
17044 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17045 # platform.
17046 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17048 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17049
17050 # Commands to make compiler produce verbose output that lists
17051 # what "hidden" libraries, object files and flags are used when
17052 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017053 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017054 fi
17055
17056 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17057 case $host_os in
17058 solaris2.[0-5] | solaris2.[0-5].*) ;;
17059 *)
17060 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17061 ;;
17062 esac
17063 fi
17064 ;;
17065 esac
17066 ;;
17067
17068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17069 no_undefined_flag_CXX='${wl}-z,text'
17070 archive_cmds_need_lc_CXX=no
17071 hardcode_shlibpath_var_CXX=no
17072 runpath_var='LD_RUN_PATH'
17073
17074 case $cc_basename in
17075 CC*)
17076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 ;;
17079 *)
17080 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 ;;
17083 esac
17084 ;;
17085
17086 sysv5* | sco3.2v5* | sco5v6*)
17087 # Note: We can NOT use -z defs as we might desire, because we do not
17088 # link with -lc, and that would cause any symbols used from libc to
17089 # always be unresolved, which means just about no library would
17090 # ever link correctly. If we're not using GNU ld we use -z text
17091 # though, which does catch some bad symbols but isn't as heavy-handed
17092 # as -z defs.
17093 no_undefined_flag_CXX='${wl}-z,text'
17094 allow_undefined_flag_CXX='${wl}-z,nodefs'
17095 archive_cmds_need_lc_CXX=no
17096 hardcode_shlibpath_var_CXX=no
17097 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17098 hardcode_libdir_separator_CXX=':'
17099 link_all_deplibs_CXX=yes
17100 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17101 runpath_var='LD_RUN_PATH'
17102
17103 case $cc_basename in
17104 CC*)
17105 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17106 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 +000017107 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17108 '"$old_archive_cmds_CXX"
17109 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17110 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017111 ;;
17112 *)
17113 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 ;;
17116 esac
17117 ;;
17118
17119 tandem*)
17120 case $cc_basename in
17121 NCC*)
17122 # NonStop-UX NCC 3.20
17123 # FIXME: insert proper C++ library support
17124 ld_shlibs_CXX=no
17125 ;;
17126 *)
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 esac
17131 ;;
17132
17133 vxworks*)
17134 # FIXME: insert proper C++ library support
17135 ld_shlibs_CXX=no
17136 ;;
17137
17138 *)
17139 # FIXME: insert proper C++ library support
17140 ld_shlibs_CXX=no
17141 ;;
17142 esac
17143
cristy8b350f62009-11-15 23:12:43 +000017144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017145$as_echo "$ld_shlibs_CXX" >&6; }
17146 test "$ld_shlibs_CXX" = no && can_build_shared=no
17147
17148 GCC_CXX="$GXX"
17149 LD_CXX="$LD"
17150
17151 ## CAVEAT EMPTOR:
17152 ## There is no encapsulation within the following macros, do not change
17153 ## the running order or otherwise move them around unless you know exactly
17154 ## what you are doing...
17155 # Dependencies to place before and after the object being linked:
17156predep_objects_CXX=
17157postdep_objects_CXX=
17158predeps_CXX=
17159postdeps_CXX=
17160compiler_lib_search_path_CXX=
17161
17162cat > conftest.$ac_ext <<_LT_EOF
17163class Foo
17164{
17165public:
17166 Foo (void) { a = 0; }
17167private:
17168 int a;
17169};
17170_LT_EOF
17171
cristy8b350f62009-11-15 23:12:43 +000017172if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017173 (eval $ac_compile) 2>&5
17174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017177 # Parse the compiler output and extract the necessary
17178 # objects, libraries and library flags.
17179
17180 # Sentinel used to keep track of whether or not we are before
17181 # the conftest object file.
17182 pre_test_object_deps_done=no
17183
17184 for p in `eval "$output_verbose_link_cmd"`; do
17185 case $p in
17186
17187 -L* | -R* | -l*)
17188 # Some compilers place space between "-{L,R}" and the path.
17189 # Remove the space.
17190 if test $p = "-L" ||
17191 test $p = "-R"; then
17192 prev=$p
17193 continue
17194 else
17195 prev=
17196 fi
17197
17198 if test "$pre_test_object_deps_done" = no; then
17199 case $p in
17200 -L* | -R*)
17201 # Internal compiler library paths should come after those
17202 # provided the user. The postdeps already come after the
17203 # user supplied libs so there is no need to process them.
17204 if test -z "$compiler_lib_search_path_CXX"; then
17205 compiler_lib_search_path_CXX="${prev}${p}"
17206 else
17207 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17208 fi
17209 ;;
17210 # The "-l" case would never come before the object being
17211 # linked, so don't bother handling this case.
17212 esac
17213 else
17214 if test -z "$postdeps_CXX"; then
17215 postdeps_CXX="${prev}${p}"
17216 else
17217 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17218 fi
17219 fi
17220 ;;
17221
17222 *.$objext)
17223 # This assumes that the test object file only shows up
17224 # once in the compiler output.
17225 if test "$p" = "conftest.$objext"; then
17226 pre_test_object_deps_done=yes
17227 continue
17228 fi
17229
17230 if test "$pre_test_object_deps_done" = no; then
17231 if test -z "$predep_objects_CXX"; then
17232 predep_objects_CXX="$p"
17233 else
17234 predep_objects_CXX="$predep_objects_CXX $p"
17235 fi
17236 else
17237 if test -z "$postdep_objects_CXX"; then
17238 postdep_objects_CXX="$p"
17239 else
17240 postdep_objects_CXX="$postdep_objects_CXX $p"
17241 fi
17242 fi
17243 ;;
17244
17245 *) ;; # Ignore the rest.
17246
17247 esac
17248 done
17249
17250 # Clean up.
17251 rm -f a.out a.exe
17252else
17253 echo "libtool.m4: error: problem compiling CXX test program"
17254fi
17255
17256$RM -f confest.$objext
17257
17258# PORTME: override above test on systems where it is broken
17259case $host_os in
17260interix[3-9]*)
17261 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17262 # hack all around it, let's just trust "g++" to DTRT.
17263 predep_objects_CXX=
17264 postdep_objects_CXX=
17265 postdeps_CXX=
17266 ;;
17267
17268linux*)
17269 case `$CC -V 2>&1 | sed 5q` in
17270 *Sun\ C*)
17271 # Sun C++ 5.9
17272
17273 # The more standards-conforming stlport4 library is
17274 # incompatible with the Cstd library. Avoid specifying
17275 # it if it's in CXXFLAGS. Ignore libCrun as
17276 # -library=stlport4 depends on it.
17277 case " $CXX $CXXFLAGS " in
17278 *" -library=stlport4 "*)
17279 solaris_use_stlport4=yes
17280 ;;
17281 esac
17282
17283 if test "$solaris_use_stlport4" != yes; then
17284 postdeps_CXX='-library=Cstd -library=Crun'
17285 fi
17286 ;;
17287 esac
17288 ;;
17289
17290solaris*)
17291 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017292 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017293 # The more standards-conforming stlport4 library is
17294 # incompatible with the Cstd library. Avoid specifying
17295 # it if it's in CXXFLAGS. Ignore libCrun as
17296 # -library=stlport4 depends on it.
17297 case " $CXX $CXXFLAGS " in
17298 *" -library=stlport4 "*)
17299 solaris_use_stlport4=yes
17300 ;;
17301 esac
17302
17303 # Adding this requires a known-good setup of shared libraries for
17304 # Sun compiler versions before 5.6, else PIC objects from an old
17305 # archive will be linked into the output, leading to subtle bugs.
17306 if test "$solaris_use_stlport4" != yes; then
17307 postdeps_CXX='-library=Cstd -library=Crun'
17308 fi
17309 ;;
17310 esac
17311 ;;
17312esac
17313
17314
17315case " $postdeps_CXX " in
17316*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17317esac
17318 compiler_lib_search_dirs_CXX=
17319if test -n "${compiler_lib_search_path_CXX}"; then
17320 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17321fi
17322
17323
17324
17325
17326
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 lt_prog_compiler_wl_CXX=
17354lt_prog_compiler_pic_CXX=
17355lt_prog_compiler_static_CXX=
17356
cristy8b350f62009-11-15 23:12:43 +000017357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017358$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17359
17360 # C++ specific cases for pic, static, wl, etc.
17361 if test "$GXX" = yes; then
17362 lt_prog_compiler_wl_CXX='-Wl,'
17363 lt_prog_compiler_static_CXX='-static'
17364
17365 case $host_os in
17366 aix*)
17367 # All AIX code is PIC.
17368 if test "$host_cpu" = ia64; then
17369 # AIX 5 now supports IA64 processor
17370 lt_prog_compiler_static_CXX='-Bstatic'
17371 fi
17372 ;;
17373
17374 amigaos*)
17375 case $host_cpu in
17376 powerpc)
17377 # see comment about AmigaOS4 .so support
17378 lt_prog_compiler_pic_CXX='-fPIC'
17379 ;;
17380 m68k)
17381 # FIXME: we need at least 68020 code to build shared libraries, but
17382 # adding the `-m68020' flag to GCC prevents building anything better,
17383 # like `-m68040'.
17384 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17385 ;;
17386 esac
17387 ;;
17388
17389 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17390 # PIC is the default for these OSes.
17391 ;;
17392 mingw* | cygwin* | os2* | pw32* | cegcc*)
17393 # This hack is so that the source file can tell whether it is being
17394 # built for inclusion in a dll (and should export symbols for example).
17395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17396 # (--disable-auto-import) libraries
17397 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17398 ;;
17399 darwin* | rhapsody*)
17400 # PIC is the default on this platform
17401 # Common symbols not allowed in MH_DYLIB files
17402 lt_prog_compiler_pic_CXX='-fno-common'
17403 ;;
17404 *djgpp*)
17405 # DJGPP does not support shared libraries at all
17406 lt_prog_compiler_pic_CXX=
17407 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017408 haiku*)
17409 # PIC is the default for Haiku.
17410 # The "-static" flag exists, but is broken.
17411 lt_prog_compiler_static_CXX=
17412 ;;
cristy3ed852e2009-09-05 21:47:34 +000017413 interix[3-9]*)
17414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17415 # Instead, we relocate shared libraries at runtime.
17416 ;;
17417 sysv4*MP*)
17418 if test -d /usr/nec; then
17419 lt_prog_compiler_pic_CXX=-Kconform_pic
17420 fi
17421 ;;
17422 hpux*)
17423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17425 # sets the default TLS model and affects inlining.
17426 case $host_cpu in
17427 hppa*64*)
17428 ;;
17429 *)
17430 lt_prog_compiler_pic_CXX='-fPIC'
17431 ;;
17432 esac
17433 ;;
17434 *qnx* | *nto*)
17435 # QNX uses GNU C++, but need to define -shared option too, otherwise
17436 # it will coredump.
17437 lt_prog_compiler_pic_CXX='-fPIC -shared'
17438 ;;
17439 *)
17440 lt_prog_compiler_pic_CXX='-fPIC'
17441 ;;
17442 esac
17443 else
17444 case $host_os in
17445 aix[4-9]*)
17446 # All AIX code is PIC.
17447 if test "$host_cpu" = ia64; then
17448 # AIX 5 now supports IA64 processor
17449 lt_prog_compiler_static_CXX='-Bstatic'
17450 else
17451 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17452 fi
17453 ;;
17454 chorus*)
17455 case $cc_basename in
17456 cxch68*)
17457 # Green Hills C++ Compiler
17458 # _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"
17459 ;;
17460 esac
17461 ;;
17462 dgux*)
17463 case $cc_basename in
17464 ec++*)
17465 lt_prog_compiler_pic_CXX='-KPIC'
17466 ;;
17467 ghcx*)
17468 # Green Hills C++ Compiler
17469 lt_prog_compiler_pic_CXX='-pic'
17470 ;;
17471 *)
17472 ;;
17473 esac
17474 ;;
17475 freebsd* | dragonfly*)
17476 # FreeBSD uses GNU C++
17477 ;;
17478 hpux9* | hpux10* | hpux11*)
17479 case $cc_basename in
17480 CC*)
17481 lt_prog_compiler_wl_CXX='-Wl,'
17482 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17483 if test "$host_cpu" != ia64; then
17484 lt_prog_compiler_pic_CXX='+Z'
17485 fi
17486 ;;
17487 aCC*)
17488 lt_prog_compiler_wl_CXX='-Wl,'
17489 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17490 case $host_cpu in
17491 hppa*64*|ia64*)
17492 # +Z the default
17493 ;;
17494 *)
17495 lt_prog_compiler_pic_CXX='+Z'
17496 ;;
17497 esac
17498 ;;
17499 *)
17500 ;;
17501 esac
17502 ;;
17503 interix*)
17504 # This is c89, which is MS Visual C++ (no shared libs)
17505 # Anyone wants to do a port?
17506 ;;
17507 irix5* | irix6* | nonstopux*)
17508 case $cc_basename in
17509 CC*)
17510 lt_prog_compiler_wl_CXX='-Wl,'
17511 lt_prog_compiler_static_CXX='-non_shared'
17512 # CC pic flag -KPIC is the default.
17513 ;;
17514 *)
17515 ;;
17516 esac
17517 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017518 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017519 case $cc_basename in
17520 KCC*)
17521 # KAI C++ Compiler
17522 lt_prog_compiler_wl_CXX='--backend -Wl,'
17523 lt_prog_compiler_pic_CXX='-fPIC'
17524 ;;
17525 ecpc* )
17526 # old Intel C++ for x86_64 which still supported -KPIC.
17527 lt_prog_compiler_wl_CXX='-Wl,'
17528 lt_prog_compiler_pic_CXX='-KPIC'
17529 lt_prog_compiler_static_CXX='-static'
17530 ;;
17531 icpc* )
17532 # Intel C++, used to be incompatible with GCC.
17533 # ICC 10 doesn't accept -KPIC any more.
17534 lt_prog_compiler_wl_CXX='-Wl,'
17535 lt_prog_compiler_pic_CXX='-fPIC'
17536 lt_prog_compiler_static_CXX='-static'
17537 ;;
17538 pgCC* | pgcpp*)
17539 # Portland Group C++ compiler
17540 lt_prog_compiler_wl_CXX='-Wl,'
17541 lt_prog_compiler_pic_CXX='-fpic'
17542 lt_prog_compiler_static_CXX='-Bstatic'
17543 ;;
17544 cxx*)
17545 # Compaq C++
17546 # Make sure the PIC flag is empty. It appears that all Alpha
17547 # Linux and Compaq Tru64 Unix objects are PIC.
17548 lt_prog_compiler_pic_CXX=
17549 lt_prog_compiler_static_CXX='-non_shared'
17550 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017551 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17552 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017553 lt_prog_compiler_wl_CXX='-Wl,'
17554 lt_prog_compiler_pic_CXX='-qpic'
17555 lt_prog_compiler_static_CXX='-qstaticlink'
17556 ;;
17557 *)
17558 case `$CC -V 2>&1 | sed 5q` in
17559 *Sun\ C*)
17560 # Sun C++ 5.9
17561 lt_prog_compiler_pic_CXX='-KPIC'
17562 lt_prog_compiler_static_CXX='-Bstatic'
17563 lt_prog_compiler_wl_CXX='-Qoption ld '
17564 ;;
17565 esac
17566 ;;
17567 esac
17568 ;;
17569 lynxos*)
17570 ;;
17571 m88k*)
17572 ;;
17573 mvs*)
17574 case $cc_basename in
17575 cxx*)
17576 lt_prog_compiler_pic_CXX='-W c,exportall'
17577 ;;
17578 *)
17579 ;;
17580 esac
17581 ;;
17582 netbsd*)
17583 ;;
17584 *qnx* | *nto*)
17585 # QNX uses GNU C++, but need to define -shared option too, otherwise
17586 # it will coredump.
17587 lt_prog_compiler_pic_CXX='-fPIC -shared'
17588 ;;
17589 osf3* | osf4* | osf5*)
17590 case $cc_basename in
17591 KCC*)
17592 lt_prog_compiler_wl_CXX='--backend -Wl,'
17593 ;;
17594 RCC*)
17595 # Rational C++ 2.4.1
17596 lt_prog_compiler_pic_CXX='-pic'
17597 ;;
17598 cxx*)
17599 # Digital/Compaq C++
17600 lt_prog_compiler_wl_CXX='-Wl,'
17601 # Make sure the PIC flag is empty. It appears that all Alpha
17602 # Linux and Compaq Tru64 Unix objects are PIC.
17603 lt_prog_compiler_pic_CXX=
17604 lt_prog_compiler_static_CXX='-non_shared'
17605 ;;
17606 *)
17607 ;;
17608 esac
17609 ;;
17610 psos*)
17611 ;;
17612 solaris*)
17613 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017614 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017615 # Sun C++ 4.2, 5.x and Centerline C++
17616 lt_prog_compiler_pic_CXX='-KPIC'
17617 lt_prog_compiler_static_CXX='-Bstatic'
17618 lt_prog_compiler_wl_CXX='-Qoption ld '
17619 ;;
17620 gcx*)
17621 # Green Hills C++ Compiler
17622 lt_prog_compiler_pic_CXX='-PIC'
17623 ;;
17624 *)
17625 ;;
17626 esac
17627 ;;
17628 sunos4*)
17629 case $cc_basename in
17630 CC*)
17631 # Sun C++ 4.x
17632 lt_prog_compiler_pic_CXX='-pic'
17633 lt_prog_compiler_static_CXX='-Bstatic'
17634 ;;
17635 lcc*)
17636 # Lucid
17637 lt_prog_compiler_pic_CXX='-pic'
17638 ;;
17639 *)
17640 ;;
17641 esac
17642 ;;
17643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17644 case $cc_basename in
17645 CC*)
17646 lt_prog_compiler_wl_CXX='-Wl,'
17647 lt_prog_compiler_pic_CXX='-KPIC'
17648 lt_prog_compiler_static_CXX='-Bstatic'
17649 ;;
17650 esac
17651 ;;
17652 tandem*)
17653 case $cc_basename in
17654 NCC*)
17655 # NonStop-UX NCC 3.20
17656 lt_prog_compiler_pic_CXX='-KPIC'
17657 ;;
17658 *)
17659 ;;
17660 esac
17661 ;;
17662 vxworks*)
17663 ;;
17664 *)
17665 lt_prog_compiler_can_build_shared_CXX=no
17666 ;;
17667 esac
17668 fi
17669
17670case $host_os in
17671 # For platforms which do not support PIC, -DPIC is meaningless:
17672 *djgpp*)
17673 lt_prog_compiler_pic_CXX=
17674 ;;
17675 *)
17676 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17677 ;;
17678esac
cristy8b350f62009-11-15 23:12:43 +000017679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017680$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17681
17682
17683
17684#
17685# Check to make sure the PIC flag actually works.
17686#
17687if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017688 { $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 +000017689$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017690if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017691 $as_echo_n "(cached) " >&6
17692else
17693 lt_cv_prog_compiler_pic_works_CXX=no
17694 ac_outfile=conftest.$ac_objext
17695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17696 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17697 # Insert the option either (1) after the last *FLAGS variable, or
17698 # (2) before a word containing "conftest.", or (3) at the end.
17699 # Note that $ac_compile itself does not contain backslashes and begins
17700 # with a dollar sign (not a hyphen), so the echo should work correctly.
17701 # The option is referenced via a variable to avoid confusing sed.
17702 lt_compile=`echo "$ac_compile" | $SED \
17703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17705 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017707 (eval "$lt_compile" 2>conftest.err)
17708 ac_status=$?
17709 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017711 if (exit $ac_status) && test -s "$ac_outfile"; then
17712 # The compiler can only warn and ignore the option if not recognized
17713 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17717 lt_cv_prog_compiler_pic_works_CXX=yes
17718 fi
17719 fi
17720 $RM conftest*
17721
17722fi
cristy8b350f62009-11-15 23:12:43 +000017723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017724$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17725
17726if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17727 case $lt_prog_compiler_pic_CXX in
17728 "" | " "*) ;;
17729 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17730 esac
17731else
17732 lt_prog_compiler_pic_CXX=
17733 lt_prog_compiler_can_build_shared_CXX=no
17734fi
17735
17736fi
17737
17738
17739
17740#
17741# Check to make sure the static flag actually works.
17742#
17743wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017745$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017746if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017747 $as_echo_n "(cached) " >&6
17748else
17749 lt_cv_prog_compiler_static_works_CXX=no
17750 save_LDFLAGS="$LDFLAGS"
17751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17754 # The linker can only warn and ignore the option if not recognized
17755 # So say no if there are warnings
17756 if test -s conftest.err; then
17757 # Append any errors to the config.log.
17758 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17761 if diff conftest.exp conftest.er2 >/dev/null; then
17762 lt_cv_prog_compiler_static_works_CXX=yes
17763 fi
17764 else
17765 lt_cv_prog_compiler_static_works_CXX=yes
17766 fi
17767 fi
17768 $RM -r conftest*
17769 LDFLAGS="$save_LDFLAGS"
17770
17771fi
cristy8b350f62009-11-15 23:12:43 +000017772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017773$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17774
17775if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17776 :
17777else
17778 lt_prog_compiler_static_CXX=
17779fi
17780
17781
17782
17783
cristy8b350f62009-11-15 23:12:43 +000017784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017786if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017787 $as_echo_n "(cached) " >&6
17788else
17789 lt_cv_prog_compiler_c_o_CXX=no
17790 $RM -r conftest 2>/dev/null
17791 mkdir conftest
17792 cd conftest
17793 mkdir out
17794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17795
17796 lt_compiler_flag="-o out/conftest2.$ac_objext"
17797 # Insert the option either (1) after the last *FLAGS variable, or
17798 # (2) before a word containing "conftest.", or (3) at the end.
17799 # Note that $ac_compile itself does not contain backslashes and begins
17800 # with a dollar sign (not a hyphen), so the echo should work correctly.
17801 lt_compile=`echo "$ac_compile" | $SED \
17802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17804 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017806 (eval "$lt_compile" 2>out/conftest.err)
17807 ac_status=$?
17808 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17811 then
17812 # The compiler can only warn and ignore the option if not recognized
17813 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17817 lt_cv_prog_compiler_c_o_CXX=yes
17818 fi
17819 fi
17820 chmod u+w . 2>&5
17821 $RM conftest*
17822 # SGI C++ compiler will create directory out/ii_files/ for
17823 # template instantiation
17824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17825 $RM out/* && rmdir out
17826 cd ..
17827 $RM -r conftest
17828 $RM conftest*
17829
17830fi
cristy8b350f62009-11-15 23:12:43 +000017831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017832$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17833
17834
17835
cristy8b350f62009-11-15 23:12:43 +000017836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017838if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017839 $as_echo_n "(cached) " >&6
17840else
17841 lt_cv_prog_compiler_c_o_CXX=no
17842 $RM -r conftest 2>/dev/null
17843 mkdir conftest
17844 cd conftest
17845 mkdir out
17846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17847
17848 lt_compiler_flag="-o out/conftest2.$ac_objext"
17849 # Insert the option either (1) after the last *FLAGS variable, or
17850 # (2) before a word containing "conftest.", or (3) at the end.
17851 # Note that $ac_compile itself does not contain backslashes and begins
17852 # with a dollar sign (not a hyphen), so the echo should work correctly.
17853 lt_compile=`echo "$ac_compile" | $SED \
17854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17856 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017858 (eval "$lt_compile" 2>out/conftest.err)
17859 ac_status=$?
17860 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17863 then
17864 # The compiler can only warn and ignore the option if not recognized
17865 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17869 lt_cv_prog_compiler_c_o_CXX=yes
17870 fi
17871 fi
17872 chmod u+w . 2>&5
17873 $RM conftest*
17874 # SGI C++ compiler will create directory out/ii_files/ for
17875 # template instantiation
17876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17877 $RM out/* && rmdir out
17878 cd ..
17879 $RM -r conftest
17880 $RM conftest*
17881
17882fi
cristy8b350f62009-11-15 23:12:43 +000017883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017884$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17885
17886
17887
17888
17889hard_links="nottested"
17890if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17891 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017893$as_echo_n "checking if we can lock with hard links... " >&6; }
17894 hard_links=yes
17895 $RM conftest*
17896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17897 touch conftest.a
17898 ln conftest.a conftest.b 2>&5 || hard_links=no
17899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017901$as_echo "$hard_links" >&6; }
17902 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017903 { $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 +000017904$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17905 need_locks=warn
17906 fi
17907else
17908 need_locks=no
17909fi
17910
17911
17912
cristy8b350f62009-11-15 23:12:43 +000017913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017914$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17915
17916 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17917 case $host_os in
17918 aix[4-9]*)
17919 # If we're using GNU nm, then we don't want the "-C" option.
17920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017921 # Also, AIX nm treats weak defined symbols like other global defined
17922 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017924 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 +000017925 else
17926 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'
17927 fi
17928 ;;
17929 pw32*)
17930 export_symbols_cmds_CXX="$ltdll_cmds"
17931 ;;
17932 cygwin* | mingw* | cegcc*)
17933 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'
17934 ;;
17935 *)
17936 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17937 ;;
17938 esac
17939 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17940
cristy8b350f62009-11-15 23:12:43 +000017941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017942$as_echo "$ld_shlibs_CXX" >&6; }
17943test "$ld_shlibs_CXX" = no && can_build_shared=no
17944
17945with_gnu_ld_CXX=$with_gnu_ld
17946
17947
17948
17949
17950
17951
17952#
17953# Do we need to explicitly link libc?
17954#
17955case "x$archive_cmds_need_lc_CXX" in
17956x|xyes)
17957 # Assume -lc should be added
17958 archive_cmds_need_lc_CXX=yes
17959
17960 if test "$enable_shared" = yes && test "$GCC" = yes; then
17961 case $archive_cmds_CXX in
17962 *'~'*)
17963 # FIXME: we may have to deal with multi-command sequences.
17964 ;;
17965 '$CC '*)
17966 # Test whether the compiler implicitly links with -lc since on some
17967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17968 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017971if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17972 $as_echo_n "(cached) " >&6
17973else
17974 $RM conftest*
17975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017976
cristyfd9dcd42010-08-08 18:07:02 +000017977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017978 (eval $ac_compile) 2>&5
17979 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17981 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017982 soname=conftest
17983 lib=conftest
17984 libobjs=conftest.$ac_objext
17985 deplibs=
17986 wl=$lt_prog_compiler_wl_CXX
17987 pic_flag=$lt_prog_compiler_pic_CXX
17988 compiler_flags=-v
17989 linker_flags=-v
17990 verstring=
17991 output_objdir=.
17992 libname=conftest
17993 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17994 allow_undefined_flag_CXX=
17995 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 +000017996 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17997 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000018000 then
18001 lt_cv_archive_cmds_need_lc_CXX=no
18002 else
18003 lt_cv_archive_cmds_need_lc_CXX=yes
18004 fi
18005 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18006 else
18007 cat conftest.err 1>&5
18008 fi
18009 $RM conftest*
18010
18011fi
18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18013$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18014 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018015 ;;
18016 esac
18017 fi
18018 ;;
18019esac
18020
18021
18022
18023
18024
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
cristy8b350f62009-11-15 23:12:43 +000018084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018085$as_echo_n "checking dynamic linker characteristics... " >&6; }
18086
18087library_names_spec=
18088libname_spec='lib$name'
18089soname_spec=
18090shrext_cmds=".so"
18091postinstall_cmds=
18092postuninstall_cmds=
18093finish_cmds=
18094finish_eval=
18095shlibpath_var=
18096shlibpath_overrides_runpath=unknown
18097version_type=none
18098dynamic_linker="$host_os ld.so"
18099sys_lib_dlsearch_path_spec="/lib /usr/lib"
18100need_lib_prefix=unknown
18101hardcode_into_libs=no
18102
18103# when you set need_version to no, make sure it does not cause -set_version
18104# flags to be left without arguments
18105need_version=unknown
18106
18107case $host_os in
18108aix3*)
18109 version_type=linux
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18111 shlibpath_var=LIBPATH
18112
18113 # AIX 3 has no versioning support, so we append a major version to the name.
18114 soname_spec='${libname}${release}${shared_ext}$major'
18115 ;;
18116
18117aix[4-9]*)
18118 version_type=linux
18119 need_lib_prefix=no
18120 need_version=no
18121 hardcode_into_libs=yes
18122 if test "$host_cpu" = ia64; then
18123 # AIX 5 supports IA64
18124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 else
18127 # With GCC up to 2.95.x, collect2 would create an import file
18128 # for dependence libraries. The import file would start with
18129 # the line `#! .'. This would cause the generated library to
18130 # depend on `.', always an invalid library. This was fixed in
18131 # development snapshots of GCC prior to 3.0.
18132 case $host_os in
18133 aix4 | aix4.[01] | aix4.[01].*)
18134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18135 echo ' yes '
18136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18137 :
18138 else
18139 can_build_shared=no
18140 fi
18141 ;;
18142 esac
18143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18144 # soname into executable. Probably we can add versioning support to
18145 # collect2, so additional links can be useful in future.
18146 if test "$aix_use_runtimelinking" = yes; then
18147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18148 # instead of lib<name>.a to let people know that these are not
18149 # typical AIX shared libraries.
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 else
18152 # We preserve .a as extension for shared libraries through AIX4.2
18153 # and later when we are not doing run time linking.
18154 library_names_spec='${libname}${release}.a $libname.a'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 fi
18157 shlibpath_var=LIBPATH
18158 fi
18159 ;;
18160
18161amigaos*)
18162 case $host_cpu in
18163 powerpc)
18164 # Since July 2007 AmigaOS4 officially supports .so libraries.
18165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 ;;
18168 m68k)
18169 library_names_spec='$libname.ixlibrary $libname.a'
18170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018171 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 +000018172 ;;
18173 esac
18174 ;;
18175
18176beos*)
18177 library_names_spec='${libname}${shared_ext}'
18178 dynamic_linker="$host_os ld.so"
18179 shlibpath_var=LIBRARY_PATH
18180 ;;
18181
18182bsdi[45]*)
18183 version_type=linux
18184 need_version=no
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18191 # the default ld.so.conf also contains /usr/contrib/lib and
18192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18193 # libtool to hard-code these into programs
18194 ;;
18195
18196cygwin* | mingw* | pw32* | cegcc*)
18197 version_type=windows
18198 shrext_cmds=".dll"
18199 need_version=no
18200 need_lib_prefix=no
18201
18202 case $GCC,$host_os in
18203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18204 library_names_spec='$libname.dll.a'
18205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18206 postinstall_cmds='base_file=`basename \${file}`~
18207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18208 dldir=$destdir/`dirname \$dlpath`~
18209 test -d \$dldir || mkdir -p \$dldir~
18210 $install_prog $dir/$dlname \$dldir/$dlname~
18211 chmod a+x \$dldir/$dlname~
18212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18214 fi'
18215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18216 dlpath=$dir/\$dldll~
18217 $RM \$dlpath'
18218 shlibpath_overrides_runpath=yes
18219
18220 case $host_os in
18221 cygwin*)
18222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018224
cristy3ed852e2009-09-05 21:47:34 +000018225 ;;
18226 mingw* | cegcc*)
18227 # MinGW DLLs use traditional 'lib' prefix
18228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018229 ;;
18230 pw32*)
18231 # pw32 DLLs use 'pw' prefix rather than 'lib'
18232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18233 ;;
18234 esac
18235 ;;
18236
18237 *)
18238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18239 ;;
18240 esac
18241 dynamic_linker='Win32 ld.exe'
18242 # FIXME: first we should search . and the directory the executable is in
18243 shlibpath_var=PATH
18244 ;;
18245
18246darwin* | rhapsody*)
18247 dynamic_linker="$host_os dyld"
18248 version_type=darwin
18249 need_lib_prefix=no
18250 need_version=no
18251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18252 soname_spec='${libname}${release}${major}$shared_ext'
18253 shlibpath_overrides_runpath=yes
18254 shlibpath_var=DYLD_LIBRARY_PATH
18255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18256
18257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18258 ;;
18259
18260dgux*)
18261 version_type=linux
18262 need_lib_prefix=no
18263 need_version=no
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 shlibpath_var=LD_LIBRARY_PATH
18267 ;;
18268
18269freebsd1*)
18270 dynamic_linker=no
18271 ;;
18272
18273freebsd* | dragonfly*)
18274 # DragonFly does not have aout. When/if they implement a new
18275 # versioning mechanism, adjust this.
18276 if test -x /usr/bin/objformat; then
18277 objformat=`/usr/bin/objformat`
18278 else
18279 case $host_os in
18280 freebsd[123]*) objformat=aout ;;
18281 *) objformat=elf ;;
18282 esac
18283 fi
18284 version_type=freebsd-$objformat
18285 case $version_type in
18286 freebsd-elf*)
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18288 need_version=no
18289 need_lib_prefix=no
18290 ;;
18291 freebsd-*)
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18293 need_version=yes
18294 ;;
18295 esac
18296 shlibpath_var=LD_LIBRARY_PATH
18297 case $host_os in
18298 freebsd2*)
18299 shlibpath_overrides_runpath=yes
18300 ;;
18301 freebsd3.[01]* | freebsdelf3.[01]*)
18302 shlibpath_overrides_runpath=yes
18303 hardcode_into_libs=yes
18304 ;;
18305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18307 shlibpath_overrides_runpath=no
18308 hardcode_into_libs=yes
18309 ;;
18310 *) # from 4.6 on, and DragonFly
18311 shlibpath_overrides_runpath=yes
18312 hardcode_into_libs=yes
18313 ;;
18314 esac
18315 ;;
18316
18317gnu*)
18318 version_type=linux
18319 need_lib_prefix=no
18320 need_version=no
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18322 soname_spec='${libname}${release}${shared_ext}$major'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 hardcode_into_libs=yes
18325 ;;
18326
cristyfd9dcd42010-08-08 18:07:02 +000018327haiku*)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 dynamic_linker="$host_os runtime_loader"
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 shlibpath_var=LIBRARY_PATH
18335 shlibpath_overrides_runpath=yes
18336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18337 hardcode_into_libs=yes
18338 ;;
18339
cristy3ed852e2009-09-05 21:47:34 +000018340hpux9* | hpux10* | hpux11*)
18341 # Give a soname corresponding to the major version so that dld.sl refuses to
18342 # link against other versions.
18343 version_type=sunos
18344 need_lib_prefix=no
18345 need_version=no
18346 case $host_cpu in
18347 ia64*)
18348 shrext_cmds='.so'
18349 hardcode_into_libs=yes
18350 dynamic_linker="$host_os dld.so"
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 if test "X$HPUX_IA64_MODE" = X32; then
18356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18357 else
18358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18359 fi
18360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18361 ;;
18362 hppa*64*)
18363 shrext_cmds='.sl'
18364 hardcode_into_libs=yes
18365 dynamic_linker="$host_os dld.sl"
18366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18372 ;;
18373 *)
18374 shrext_cmds='.sl'
18375 dynamic_linker="$host_os dld.sl"
18376 shlibpath_var=SHLIB_PATH
18377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 ;;
18381 esac
cristyfd9dcd42010-08-08 18:07:02 +000018382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018383 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018384 # or fails outright, so override atomically:
18385 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018386 ;;
18387
18388interix[3-9]*)
18389 version_type=linux
18390 need_lib_prefix=no
18391 need_version=no
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 shlibpath_overrides_runpath=no
18397 hardcode_into_libs=yes
18398 ;;
18399
18400irix5* | irix6* | nonstopux*)
18401 case $host_os in
18402 nonstopux*) version_type=nonstopux ;;
18403 *)
18404 if test "$lt_cv_prog_gnu_ld" = yes; then
18405 version_type=linux
18406 else
18407 version_type=irix
18408 fi ;;
18409 esac
18410 need_lib_prefix=no
18411 need_version=no
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18414 case $host_os in
18415 irix5* | nonstopux*)
18416 libsuff= shlibsuff=
18417 ;;
18418 *)
18419 case $LD in # libtool.m4 will add one of these switches to LD
18420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18421 libsuff= shlibsuff= libmagic=32-bit;;
18422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18423 libsuff=32 shlibsuff=N32 libmagic=N32;;
18424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18426 *) libsuff= shlibsuff= libmagic=never-match;;
18427 esac
18428 ;;
18429 esac
18430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18431 shlibpath_overrides_runpath=no
18432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18434 hardcode_into_libs=yes
18435 ;;
18436
18437# No shared lib support for Linux oldld, aout, or coff.
18438linux*oldld* | linux*aout* | linux*coff*)
18439 dynamic_linker=no
18440 ;;
18441
18442# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018443linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018444 version_type=linux
18445 need_lib_prefix=no
18446 need_version=no
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18450 shlibpath_var=LD_LIBRARY_PATH
18451 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018452
cristy3ed852e2009-09-05 21:47:34 +000018453 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018454 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18456else
18457 lt_cv_shlibpath_overrides_runpath=no
18458 save_LDFLAGS=$LDFLAGS
18459 save_libdir=$libdir
18460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018463/* end confdefs.h. */
18464
18465int
18466main ()
18467{
18468
18469 ;
18470 return 0;
18471}
18472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018473if ac_fn_cxx_try_link "$LINENO"; then :
18474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018475 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018476fi
cristy3ed852e2009-09-05 21:47:34 +000018477fi
cristy8b350f62009-11-15 23:12:43 +000018478rm -f core conftest.err conftest.$ac_objext \
18479 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018480 LDFLAGS=$save_LDFLAGS
18481 libdir=$save_libdir
18482
18483fi
18484
18485 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018486
18487 # This implies no fast_install, which is unacceptable.
18488 # Some rework will be needed to allow for fast_install
18489 # before this can be enabled.
18490 hardcode_into_libs=yes
18491
cristy679ed8e2009-12-05 02:37:41 +000018492 # Add ABI-specific directories to the system library path.
18493 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18494
cristy3ed852e2009-09-05 21:47:34 +000018495 # Append ld.so.conf contents to the search path
18496 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018497 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 +000018498 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018499
cristy3ed852e2009-09-05 21:47:34 +000018500 fi
18501
18502 # We used to test for /lib/ld.so.1 and disable shared libraries on
18503 # powerpc, because MkLinux only supported shared libraries with the
18504 # GNU dynamic linker. Since this was broken with cross compilers,
18505 # most powerpc-linux boxes support dynamic linking these days and
18506 # people can always --disable-shared, the test was removed, and we
18507 # assume the GNU/Linux dynamic linker is in use.
18508 dynamic_linker='GNU/Linux ld.so'
18509 ;;
18510
18511netbsd*)
18512 version_type=sunos
18513 need_lib_prefix=no
18514 need_version=no
18515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18518 dynamic_linker='NetBSD (a.out) ld.so'
18519 else
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18521 soname_spec='${libname}${release}${shared_ext}$major'
18522 dynamic_linker='NetBSD ld.elf_so'
18523 fi
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=yes
18526 hardcode_into_libs=yes
18527 ;;
18528
18529newsos6)
18530 version_type=linux
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532 shlibpath_var=LD_LIBRARY_PATH
18533 shlibpath_overrides_runpath=yes
18534 ;;
18535
18536*nto* | *qnx*)
18537 version_type=qnx
18538 need_lib_prefix=no
18539 need_version=no
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 shlibpath_var=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath=no
18544 hardcode_into_libs=yes
18545 dynamic_linker='ldqnx.so'
18546 ;;
18547
18548openbsd*)
18549 version_type=sunos
18550 sys_lib_dlsearch_path_spec="/usr/lib"
18551 need_lib_prefix=no
18552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18553 case $host_os in
18554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18555 *) need_version=no ;;
18556 esac
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18561 case $host_os in
18562 openbsd2.[89] | openbsd2.[89].*)
18563 shlibpath_overrides_runpath=no
18564 ;;
18565 *)
18566 shlibpath_overrides_runpath=yes
18567 ;;
18568 esac
18569 else
18570 shlibpath_overrides_runpath=yes
18571 fi
18572 ;;
18573
18574os2*)
18575 libname_spec='$name'
18576 shrext_cmds=".dll"
18577 need_lib_prefix=no
18578 library_names_spec='$libname${shared_ext} $libname.a'
18579 dynamic_linker='OS/2 ld.exe'
18580 shlibpath_var=LIBPATH
18581 ;;
18582
18583osf3* | osf4* | osf5*)
18584 version_type=osf
18585 need_lib_prefix=no
18586 need_version=no
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18592 ;;
18593
18594rdos*)
18595 dynamic_linker=no
18596 ;;
18597
18598solaris*)
18599 version_type=linux
18600 need_lib_prefix=no
18601 need_version=no
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 shlibpath_overrides_runpath=yes
18606 hardcode_into_libs=yes
18607 # ldd complains unless libraries are executable
18608 postinstall_cmds='chmod +x $lib'
18609 ;;
18610
18611sunos4*)
18612 version_type=sunos
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=yes
18617 if test "$with_gnu_ld" = yes; then
18618 need_lib_prefix=no
18619 fi
18620 need_version=yes
18621 ;;
18622
18623sysv4 | sysv4.3*)
18624 version_type=linux
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 case $host_vendor in
18629 sni)
18630 shlibpath_overrides_runpath=no
18631 need_lib_prefix=no
18632 runpath_var=LD_RUN_PATH
18633 ;;
18634 siemens)
18635 need_lib_prefix=no
18636 ;;
18637 motorola)
18638 need_lib_prefix=no
18639 need_version=no
18640 shlibpath_overrides_runpath=no
18641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18642 ;;
18643 esac
18644 ;;
18645
18646sysv4*MP*)
18647 if test -d /usr/nec ;then
18648 version_type=linux
18649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18650 soname_spec='$libname${shared_ext}.$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 fi
18653 ;;
18654
18655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18656 version_type=freebsd-elf
18657 need_lib_prefix=no
18658 need_version=no
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 shlibpath_overrides_runpath=yes
18663 hardcode_into_libs=yes
18664 if test "$with_gnu_ld" = yes; then
18665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18666 else
18667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18668 case $host_os in
18669 sco3.2v5*)
18670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18671 ;;
18672 esac
18673 fi
18674 sys_lib_dlsearch_path_spec='/usr/lib'
18675 ;;
18676
18677tpf*)
18678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18679 version_type=linux
18680 need_lib_prefix=no
18681 need_version=no
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=no
18685 hardcode_into_libs=yes
18686 ;;
18687
18688uts4*)
18689 version_type=linux
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 ;;
18694
18695*)
18696 dynamic_linker=no
18697 ;;
18698esac
cristy8b350f62009-11-15 23:12:43 +000018699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018700$as_echo "$dynamic_linker" >&6; }
18701test "$dynamic_linker" = no && can_build_shared=no
18702
18703variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18704if test "$GCC" = yes; then
18705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18706fi
18707
18708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18710fi
18711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18713fi
18714
18715
18716
18717
18718
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
cristyfd9dcd42010-08-08 18:07:02 +000018750
18751
cristy8b350f62009-11-15 23:12:43 +000018752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018753$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18754hardcode_action_CXX=
18755if test -n "$hardcode_libdir_flag_spec_CXX" ||
18756 test -n "$runpath_var_CXX" ||
18757 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18758
18759 # We can hardcode non-existent directories.
18760 if test "$hardcode_direct_CXX" != no &&
18761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18762 # have to relink, otherwise we might link with an installed library
18763 # when we should be linking with a yet-to-be-installed one
18764 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18765 test "$hardcode_minus_L_CXX" != no; then
18766 # Linking always hardcodes the temporary library directory.
18767 hardcode_action_CXX=relink
18768 else
18769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18770 hardcode_action_CXX=immediate
18771 fi
18772else
18773 # We cannot hardcode anything, or else we can only hardcode existing
18774 # directories.
18775 hardcode_action_CXX=unsupported
18776fi
cristy8b350f62009-11-15 23:12:43 +000018777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018778$as_echo "$hardcode_action_CXX" >&6; }
18779
18780if test "$hardcode_action_CXX" = relink ||
18781 test "$inherit_rpath_CXX" = yes; then
18782 # Fast installation is not supported
18783 enable_fast_install=no
18784elif test "$shlibpath_overrides_runpath" = yes ||
18785 test "$enable_shared" = no; then
18786 # Fast installation is not necessary
18787 enable_fast_install=needless
18788fi
18789
18790
18791
18792
18793
18794
18795
18796 fi # test -n "$compiler"
18797
18798 CC=$lt_save_CC
18799 LDCXX=$LD
18800 LD=$lt_save_LD
18801 GCC=$lt_save_GCC
18802 with_gnu_ld=$lt_save_with_gnu_ld
18803 lt_cv_path_LDCXX=$lt_cv_path_LD
18804 lt_cv_path_LD=$lt_save_path_LD
18805 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18806 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18807fi # test "$_lt_caught_CXX_error" != yes
18808
18809ac_ext=c
18810ac_cpp='$CPP $CPPFLAGS'
18811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827 ac_config_commands="$ac_config_commands libtool"
18828
18829
18830
18831
18832# Only expand once:
18833
18834
18835
18836
18837
18838# Configure libltdl
18839
18840
18841
18842
18843
18844
18845
cristy8b350f62009-11-15 23:12:43 +000018846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018847$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018848if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018849 $as_echo_n "(cached) " >&6
18850else
18851
18852module=yes
18853eval libltdl_cv_shlibext=$shrext_cmds
18854
18855fi
cristy8b350f62009-11-15 23:12:43 +000018856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018857$as_echo "$libltdl_cv_shlibext" >&6; }
18858if test -n "$libltdl_cv_shlibext"; then
18859
18860cat >>confdefs.h <<_ACEOF
18861#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18862_ACEOF
18863
18864fi
18865
cristy8b350f62009-11-15 23:12:43 +000018866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018867$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018868if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018869 $as_echo_n "(cached) " >&6
18870else
18871 lt_cv_module_path_var="$shlibpath_var"
18872fi
cristy8b350f62009-11-15 23:12:43 +000018873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018874$as_echo "$lt_cv_module_path_var" >&6; }
18875if test -n "$lt_cv_module_path_var"; then
18876
18877cat >>confdefs.h <<_ACEOF
18878#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18879_ACEOF
18880
18881fi
18882
cristy8b350f62009-11-15 23:12:43 +000018883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018884$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018885if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018886 $as_echo_n "(cached) " >&6
18887else
18888 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18889fi
cristy8b350f62009-11-15 23:12:43 +000018890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018891$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18892if test -n "$lt_cv_sys_dlsearch_path"; then
18893 sys_dlsearch_path=
18894 for dir in $lt_cv_sys_dlsearch_path; do
18895 if test -z "$sys_dlsearch_path"; then
18896 sys_dlsearch_path="$dir"
18897 else
18898 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18899 fi
18900 done
18901
18902cat >>confdefs.h <<_ACEOF
18903#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18904_ACEOF
18905
18906fi
18907
18908
18909LT_DLLOADERS=
18910
18911
18912ac_ext=c
18913ac_cpp='$CPP $CPPFLAGS'
18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918
18919LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018921$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018922if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018923 $as_echo_n "(cached) " >&6
18924else
18925 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018927/* end confdefs.h. */
18928
18929/* Override any GCC internal prototype to avoid an error.
18930 Use char because int might match the return type of a GCC
18931 builtin and then its argument prototype would still apply. */
18932#ifdef __cplusplus
18933extern "C"
18934#endif
18935char dlopen ();
18936int
18937main ()
18938{
18939return dlopen ();
18940 ;
18941 return 0;
18942}
18943_ACEOF
18944for ac_lib in '' dl; do
18945 if test -z "$ac_lib"; then
18946 ac_res="none required"
18947 else
18948 ac_res=-l$ac_lib
18949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18950 fi
cristy8b350f62009-11-15 23:12:43 +000018951 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018952 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018953fi
cristy8b350f62009-11-15 23:12:43 +000018954rm -f core conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext
18956 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018957 break
18958fi
18959done
cristy8b350f62009-11-15 23:12:43 +000018960if test "${ac_cv_search_dlopen+set}" = set; then :
18961
cristy3ed852e2009-09-05 21:47:34 +000018962else
18963 ac_cv_search_dlopen=no
18964fi
18965rm conftest.$ac_ext
18966LIBS=$ac_func_search_save_LIBS
18967fi
cristy8b350f62009-11-15 23:12:43 +000018968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018969$as_echo "$ac_cv_search_dlopen" >&6; }
18970ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018971if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18973
cristy8b350f62009-11-15 23:12:43 +000018974$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018975
18976 if test "$ac_cv_search_dlopen" != "none required" ; then
18977 LIBADD_DLOPEN="-ldl"
18978 fi
18979 libltdl_cv_lib_dl_dlopen="yes"
18980 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18981else
cristy8b350f62009-11-15 23:12:43 +000018982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018983/* end confdefs.h. */
18984#if HAVE_DLFCN_H
18985# include <dlfcn.h>
18986#endif
18987
18988int
18989main ()
18990{
18991dlopen(0, 0);
18992 ;
18993 return 0;
18994}
18995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018997
cristy8b350f62009-11-15 23:12:43 +000018998$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018999
19000 libltdl_cv_func_dlopen="yes"
19001 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19002else
cristy8b350f62009-11-15 23:12:43 +000019003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019004$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019005if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019006 $as_echo_n "(cached) " >&6
19007else
19008 ac_check_lib_save_LIBS=$LIBS
19009LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019011/* end confdefs.h. */
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char dlopen ();
19020int
19021main ()
19022{
19023return dlopen ();
19024 ;
19025 return 0;
19026}
19027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019029 ac_cv_lib_svld_dlopen=yes
19030else
cristy8b350f62009-11-15 23:12:43 +000019031 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019032fi
cristy8b350f62009-11-15 23:12:43 +000019033rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019035LIBS=$ac_check_lib_save_LIBS
19036fi
cristy8b350f62009-11-15 23:12:43 +000019037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019038$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019039if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019040
cristy8b350f62009-11-15 23:12:43 +000019041$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019042
19043 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19044 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19045fi
19046
19047fi
cristy8b350f62009-11-15 23:12:43 +000019048rm -f core conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019050fi
19051
19052if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19053then
19054 lt_save_LIBS="$LIBS"
19055 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019056 for ac_func in dlerror
19057do :
19058 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19059if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019060 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019061#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019062_ACEOF
19063
19064fi
19065done
19066
19067 LIBS="$lt_save_LIBS"
19068fi
19069
19070
19071LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019072ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19073if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019074
cristy8b350f62009-11-15 23:12:43 +000019075$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019076
19077 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19078else
cristy8b350f62009-11-15 23:12:43 +000019079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019080$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019081if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019082 $as_echo_n "(cached) " >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019087/* end confdefs.h. */
19088
19089/* Override any GCC internal prototype to avoid an error.
19090 Use char because int might match the return type of a GCC
19091 builtin and then its argument prototype would still apply. */
19092#ifdef __cplusplus
19093extern "C"
19094#endif
19095char shl_load ();
19096int
19097main ()
19098{
19099return shl_load ();
19100 ;
19101 return 0;
19102}
19103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019105 ac_cv_lib_dld_shl_load=yes
19106else
cristy8b350f62009-11-15 23:12:43 +000019107 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019108fi
cristy8b350f62009-11-15 23:12:43 +000019109rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019111LIBS=$ac_check_lib_save_LIBS
19112fi
cristy8b350f62009-11-15 23:12:43 +000019113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019114$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019115if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019116
cristy8b350f62009-11-15 23:12:43 +000019117$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019118
19119 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19120 LIBADD_SHL_LOAD="-ldld"
19121fi
19122
19123fi
19124
19125
19126
19127case $host_os in
19128darwin[1567].*)
19129# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019130 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19131if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019132
cristy8b350f62009-11-15 23:12:43 +000019133$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019134
19135 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19136fi
19137
19138 ;;
19139beos*)
19140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19141 ;;
19142cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019143 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19144"
19145if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19146 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019147else
cristy8b350f62009-11-15 23:12:43 +000019148 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019149fi
19150
cristy3ed852e2009-09-05 21:47:34 +000019151cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019152#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019153_ACEOF
19154
cristy3ed852e2009-09-05 21:47:34 +000019155 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19156 ;;
19157esac
19158
cristy8b350f62009-11-15 23:12:43 +000019159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019160$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019161if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019162 $as_echo_n "(cached) " >&6
19163else
19164 ac_check_lib_save_LIBS=$LIBS
19165LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019167/* end confdefs.h. */
19168
19169/* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19172#ifdef __cplusplus
19173extern "C"
19174#endif
19175char dld_link ();
19176int
19177main ()
19178{
19179return dld_link ();
19180 ;
19181 return 0;
19182}
19183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019185 ac_cv_lib_dld_dld_link=yes
19186else
cristy8b350f62009-11-15 23:12:43 +000019187 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019188fi
cristy8b350f62009-11-15 23:12:43 +000019189rm -f core conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019191LIBS=$ac_check_lib_save_LIBS
19192fi
cristy8b350f62009-11-15 23:12:43 +000019193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019194$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019195if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019196
cristy8b350f62009-11-15 23:12:43 +000019197$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019198
19199 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19200fi
19201
19202
19203
19204
19205LT_DLPREOPEN=
19206if test -n "$LT_DLLOADERS"
19207then
19208 for lt_loader in $LT_DLLOADERS; do
19209 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19210 done
19211
cristy8b350f62009-11-15 23:12:43 +000019212$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019213
19214fi
19215
19216
19217LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19218
19219
19220ac_ext=c
19221ac_cpp='$CPP $CPPFLAGS'
19222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19224ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225
19226
cristy8b350f62009-11-15 23:12:43 +000019227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019228$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019229if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019230 $as_echo_n "(cached) " >&6
19231else
19232 lt_cv_sys_symbol_underscore=no
19233 cat > conftest.$ac_ext <<_LT_EOF
19234void nm_test_func(){}
19235int main(){nm_test_func;return 0;}
19236_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019238 (eval $ac_compile) 2>&5
19239 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19241 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019242 # Now try to grab the symbols.
19243 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019244 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 +000019245 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19246 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19248 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019249 # See whether the symbols have a leading underscore.
19250 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19251 lt_cv_sys_symbol_underscore=yes
19252 else
19253 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19254 :
19255 else
19256 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19257 fi
19258 fi
19259 else
19260 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19261 fi
19262 else
19263 echo "configure: failed program was:" >&5
19264 cat conftest.c >&5
19265 fi
19266 rm -rf conftest*
19267
19268fi
cristy8b350f62009-11-15 23:12:43 +000019269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019270$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19271 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19272
19273
19274if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19275 if test x"$libltdl_cv_func_dlopen" = xyes ||
19276 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019278$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019279if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019280 $as_echo_n "(cached) " >&6
19281else
19282 libltdl_cv_need_uscore=unknown
19283 save_LIBS="$LIBS"
19284 LIBS="$LIBS $LIBADD_DLOPEN"
19285 if test "$cross_compiling" = yes; then :
19286 libltdl_cv_need_uscore=cross
19287else
19288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19289 lt_status=$lt_dlunknown
19290 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019291#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019292#include "confdefs.h"
19293
19294#if HAVE_DLFCN_H
19295#include <dlfcn.h>
19296#endif
19297
19298#include <stdio.h>
19299
19300#ifdef RTLD_GLOBAL
19301# define LT_DLGLOBAL RTLD_GLOBAL
19302#else
19303# ifdef DL_GLOBAL
19304# define LT_DLGLOBAL DL_GLOBAL
19305# else
19306# define LT_DLGLOBAL 0
19307# endif
19308#endif
19309
19310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19311 find out it does not work in some platform. */
19312#ifndef LT_DLLAZY_OR_NOW
19313# ifdef RTLD_LAZY
19314# define LT_DLLAZY_OR_NOW RTLD_LAZY
19315# else
19316# ifdef DL_LAZY
19317# define LT_DLLAZY_OR_NOW DL_LAZY
19318# else
19319# ifdef RTLD_NOW
19320# define LT_DLLAZY_OR_NOW RTLD_NOW
19321# else
19322# ifdef DL_NOW
19323# define LT_DLLAZY_OR_NOW DL_NOW
19324# else
19325# define LT_DLLAZY_OR_NOW 0
19326# endif
19327# endif
19328# endif
19329# endif
19330#endif
19331
cristyfd9dcd42010-08-08 18:07:02 +000019332/* When -fvisbility=hidden is used, assume the code has been annotated
19333 correspondingly for the symbols needed. */
19334#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19335void fnord () __attribute__((visibility("default")));
19336#endif
19337
19338void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019339int main ()
19340{
19341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19342 int status = $lt_dlunknown;
19343
19344 if (self)
19345 {
19346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019347 else
19348 {
19349 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19350 else puts (dlerror ());
19351 }
cristy3ed852e2009-09-05 21:47:34 +000019352 /* dlclose (self); */
19353 }
19354 else
19355 puts (dlerror ());
19356
19357 return status;
19358}
19359_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019361 (eval $ac_link) 2>&5
19362 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19364 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019365 (./conftest; exit; ) >&5 2>/dev/null
19366 lt_status=$?
19367 case x$lt_status in
19368 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19369 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19370 x$lt_dlunknown|x*) ;;
19371 esac
19372 else :
19373 # compilation failed
19374
19375 fi
19376fi
19377rm -fr conftest*
19378
19379 LIBS="$save_LIBS"
19380
19381fi
cristy8b350f62009-11-15 23:12:43 +000019382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019383$as_echo "$libltdl_cv_need_uscore" >&6; }
19384 fi
19385fi
19386
19387if test x"$libltdl_cv_need_uscore" = xyes; then
19388
cristy8b350f62009-11-15 23:12:43 +000019389$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019390
19391fi
19392
cristy8b350f62009-11-15 23:12:43 +000019393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019394$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019395if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019396 $as_echo_n "(cached) " >&6
19397else
19398 # PORTME does your system automatically load deplibs for dlopen?
19399 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19400 # For now, we just catch OSes we know something about -- in the
19401 # future, we'll try test this programmatically.
19402 lt_cv_sys_dlopen_deplibs=unknown
19403 case $host_os in
19404 aix3*|aix4.1.*|aix4.2.*)
19405 # Unknown whether this is true for these versions of AIX, but
19406 # we want this `case' here to explicitly catch those versions.
19407 lt_cv_sys_dlopen_deplibs=unknown
19408 ;;
19409 aix[4-9]*)
19410 lt_cv_sys_dlopen_deplibs=yes
19411 ;;
19412 amigaos*)
19413 case $host_cpu in
19414 powerpc)
19415 lt_cv_sys_dlopen_deplibs=no
19416 ;;
19417 esac
19418 ;;
19419 darwin*)
19420 # Assuming the user has installed a libdl from somewhere, this is true
19421 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19422 lt_cv_sys_dlopen_deplibs=yes
19423 ;;
19424 freebsd* | dragonfly*)
19425 lt_cv_sys_dlopen_deplibs=yes
19426 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019427 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019428 # GNU and its variants, using gnu ld.so (Glibc)
19429 lt_cv_sys_dlopen_deplibs=yes
19430 ;;
19431 hpux10*|hpux11*)
19432 lt_cv_sys_dlopen_deplibs=yes
19433 ;;
19434 interix*)
19435 lt_cv_sys_dlopen_deplibs=yes
19436 ;;
19437 irix[12345]*|irix6.[01]*)
19438 # Catch all versions of IRIX before 6.2, and indicate that we don't
19439 # know how it worked for any of those versions.
19440 lt_cv_sys_dlopen_deplibs=unknown
19441 ;;
19442 irix*)
19443 # The case above catches anything before 6.2, and it's known that
19444 # at 6.2 and later dlopen does load deplibs.
19445 lt_cv_sys_dlopen_deplibs=yes
19446 ;;
19447 netbsd*)
19448 lt_cv_sys_dlopen_deplibs=yes
19449 ;;
19450 openbsd*)
19451 lt_cv_sys_dlopen_deplibs=yes
19452 ;;
19453 osf[1234]*)
19454 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19455 # it did *not* use an RPATH in a shared library to find objects the
19456 # library depends on, so we explicitly say `no'.
19457 lt_cv_sys_dlopen_deplibs=no
19458 ;;
19459 osf5.0|osf5.0a|osf5.1)
19460 # dlopen *does* load deplibs and with the right loader patch applied
19461 # it even uses RPATH in a shared library to search for shared objects
19462 # that the library depends on, but there's no easy way to know if that
19463 # patch is installed. Since this is the case, all we can really
19464 # say is unknown -- it depends on the patch being installed. If
19465 # it is, this changes to `yes'. Without it, it would be `no'.
19466 lt_cv_sys_dlopen_deplibs=unknown
19467 ;;
19468 osf*)
19469 # the two cases above should catch all versions of osf <= 5.1. Read
19470 # the comments above for what we know about them.
19471 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19472 # is used to find them so we can finally say `yes'.
19473 lt_cv_sys_dlopen_deplibs=yes
19474 ;;
19475 qnx*)
19476 lt_cv_sys_dlopen_deplibs=yes
19477 ;;
19478 solaris*)
19479 lt_cv_sys_dlopen_deplibs=yes
19480 ;;
19481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19482 libltdl_cv_sys_dlopen_deplibs=yes
19483 ;;
19484 esac
19485
19486fi
cristy8b350f62009-11-15 23:12:43 +000019487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019488$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19489if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19490
cristy8b350f62009-11-15 23:12:43 +000019491$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019492
19493fi
19494
19495:
19496
cristy3ed852e2009-09-05 21:47:34 +000019497for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019498do :
19499 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19500"
19501if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019502 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019503#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019504_ACEOF
19505
19506fi
19507
19508done
19509
19510
cristy8b350f62009-11-15 23:12:43 +000019511ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019512# include <argz.h>
19513#endif
cristy8b350f62009-11-15 23:12:43 +000019514"
19515if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019516
19517cat >>confdefs.h <<_ACEOF
19518#define HAVE_ERROR_T 1
19519_ACEOF
19520
19521
19522else
19523
cristy8b350f62009-11-15 23:12:43 +000019524$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019525
19526
cristy8b350f62009-11-15 23:12:43 +000019527$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019528
19529fi
19530
19531
19532ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019533for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19534 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019535do :
19536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019539 cat >>confdefs.h <<_ACEOF
19540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19541_ACEOF
19542
19543else
19544 ARGZ_H=argz.h;
19545
19546 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19547
19548fi
19549done
19550
19551
cristy8b350f62009-11-15 23:12:43 +000019552if test -z "$ARGZ_H"; then :
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019554$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019555if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019556 $as_echo_n "(cached) " >&6
19557else
19558 case $host_os in #(
19559 *cygwin*)
19560 lt_cv_sys_argz_works=no
19561 if test "$cross_compiling" != no; then
19562 lt_cv_sys_argz_works="guessing no"
19563 else
19564 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19565 save_IFS=$IFS
19566 IFS=-.
19567 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19568 IFS=$save_IFS
19569 lt_os_major=${2-0}
19570 lt_os_minor=${3-0}
19571 lt_os_micro=${4-0}
19572 if test "$lt_os_major" -gt 1 \
19573 || { test "$lt_os_major" -eq 1 \
19574 && { test "$lt_os_minor" -gt 5 \
19575 || { test "$lt_os_minor" -eq 5 \
19576 && test "$lt_os_micro" -gt 24; }; }; }; then
19577 lt_cv_sys_argz_works=yes
19578 fi
19579 fi
19580 ;; #(
19581 *) lt_cv_sys_argz_works=yes ;;
19582 esac
19583fi
cristy8b350f62009-11-15 23:12:43 +000019584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019585$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019586 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019587
cristy8b350f62009-11-15 23:12:43 +000019588$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019589
19590else
19591 ARGZ_H=argz.h
19592
19593
19594 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19595
19596fi
cristy3ed852e2009-09-05 21:47:34 +000019597fi
19598
19599
19600
cristy8b350f62009-11-15 23:12:43 +000019601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019602$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019603if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019604 $as_echo_n "(cached) " >&6
19605else
19606 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19607 libltdl_cv_preloaded_symbols=yes
19608 else
19609 libltdl_cv_preloaded_symbols=no
19610 fi
19611
19612fi
cristy8b350f62009-11-15 23:12:43 +000019613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019614$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19615if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19616
cristy8b350f62009-11-15 23:12:43 +000019617$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019618
19619fi
19620
19621# Set options
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019634if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019635 withval=$with_included_ltdl;
19636fi
19637
19638
19639if test "x$with_included_ltdl" != xyes; then
19640 # We are not being forced to use the included libltdl sources, so
19641 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019642 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019643
cristy8b350f62009-11-15 23:12:43 +000019644"
19645if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19646 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 +000019647 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019648"
19649if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019651$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019652if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019653 $as_echo_n "(cached) " >&6
19654else
19655 ac_check_lib_save_LIBS=$LIBS
19656LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019658/* end confdefs.h. */
19659
19660/* Override any GCC internal prototype to avoid an error.
19661 Use char because int might match the return type of a GCC
19662 builtin and then its argument prototype would still apply. */
19663#ifdef __cplusplus
19664extern "C"
19665#endif
19666char lt_dladvise_preload ();
19667int
19668main ()
19669{
19670return lt_dladvise_preload ();
19671 ;
19672 return 0;
19673}
19674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019676 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19677else
cristy8b350f62009-11-15 23:12:43 +000019678 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019679fi
cristy8b350f62009-11-15 23:12:43 +000019680rm -f core conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019682LIBS=$ac_check_lib_save_LIBS
19683fi
cristy8b350f62009-11-15 23:12:43 +000019684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019685$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019686if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019687 with_included_ltdl=no
19688else
19689 with_included_ltdl=yes
19690fi
19691
19692else
19693 with_included_ltdl=yes
19694fi
19695
19696else
19697 with_included_ltdl=yes
19698fi
19699
19700
19701fi
19702
19703
19704
19705
19706# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019707if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019708 withval=$with_ltdl_include;
19709fi
19710
19711
19712if test -n "$with_ltdl_include"; then
19713 if test -f "$with_ltdl_include/ltdl.h"; then :
19714 else
cristyfd9dcd42010-08-08 18:07:02 +000019715 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019716 fi
19717else
19718 with_ltdl_include=no
19719fi
19720
19721
19722# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019723if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019724 withval=$with_ltdl_lib;
19725fi
19726
19727
19728if test -n "$with_ltdl_lib"; then
19729 if test -f "$with_ltdl_lib/libltdl.la"; then :
19730 else
cristyfd9dcd42010-08-08 18:07:02 +000019731 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019732 fi
19733else
19734 with_ltdl_lib=no
19735fi
19736
19737case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19738 ,yes,no,no,)
19739 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019740 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019741 "") enable_ltdl_convenience=yes
19742 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19743esac
19744LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19745LTDLDEPS=$LIBLTDL
19746LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19747
19748
19749
19750
19751
19752# For backwards non-gettext consistent compatibility...
19753INCLTDL="$LTDLINCL"
19754
19755
19756 ;;
19757 ,no,no,no,)
19758 # If the included ltdl is not to be used, then use the
19759 # preinstalled libltdl we found.
19760
cristy8b350f62009-11-15 23:12:43 +000019761$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019762
19763 LIBLTDL=-lltdl
19764 LTDLDEPS=
19765 LTDLINCL=
19766 ;;
19767 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019768 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019769 ;;
19770 *) with_included_ltdl=no
19771 LIBLTDL="-L$with_ltdl_lib -lltdl"
19772 LTDLDEPS=
19773 LTDLINCL="-I$with_ltdl_include"
19774 ;;
19775esac
19776INCLTDL="$LTDLINCL"
19777
19778# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019780$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019782$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019784$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019786$as_echo "$LIBLTDL" >&6; }
19787
19788
19789
19790# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019791if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019792 enableval=$enable_ltdl_install;
19793fi
19794
19795
19796case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19797 *yes*) ;;
19798 *) enable_ltdl_convenience=yes ;;
19799esac
19800
19801 if test x"${enable_ltdl_install-no}" != xno; then
19802 INSTALL_LTDL_TRUE=
19803 INSTALL_LTDL_FALSE='#'
19804else
19805 INSTALL_LTDL_TRUE='#'
19806 INSTALL_LTDL_FALSE=
19807fi
19808
19809 if test x"${enable_ltdl_convenience-no}" != xno; then
19810 CONVENIENCE_LTDL_TRUE=
19811 CONVENIENCE_LTDL_FALSE='#'
19812else
19813 CONVENIENCE_LTDL_TRUE='#'
19814 CONVENIENCE_LTDL_FALSE=
19815fi
19816
19817
19818
19819
19820
19821
cristy3ed852e2009-09-05 21:47:34 +000019822# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19823# the user used. This is so that ltdl.h can pick up the parent projects
19824# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19825# definitions required by ltdl.c.
19826# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19827
19828
19829
cristy3ed852e2009-09-05 21:47:34 +000019830for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019831do :
19832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19834"
cristyfd9dcd42010-08-08 18:07:02 +000019835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019836 cat >>confdefs.h <<_ACEOF
19837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838_ACEOF
19839
19840fi
19841
19842done
19843
19844
cristy3ed852e2009-09-05 21:47:34 +000019845for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019846do :
19847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19848ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019849if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019850 cat >>confdefs.h <<_ACEOF
19851#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19852_ACEOF
19853
19854else
19855
19856
19857 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19858
19859fi
19860done
19861
cristy3ed852e2009-09-05 21:47:34 +000019862for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019863do :
19864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019867 cat >>confdefs.h <<_ACEOF
19868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869_ACEOF
19870
19871else
19872
19873
19874 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19875
19876fi
19877done
19878
19879
19880
19881cat >>confdefs.h <<_ACEOF
19882#define LT_LIBEXT "$libext"
19883_ACEOF
19884
19885
19886name=ltdl
19887LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19888
19889
19890
19891
19892
19893
19894
19895
19896# Only expand once:
19897
19898
19899
19900# Check to see if building shared libraries
19901libtool_build_shared_libs='no'
19902if test "$enable_shared" = 'yes'; then
19903 libtool_build_shared_libs='yes'
19904fi
19905
19906# Check to see if building static libraries
19907libtool_build_static_libs='no'
19908if test "$enable_static" = 'yes'; then
19909 libtool_build_static_libs='yes'
19910fi
19911
cristyfa112112010-01-04 17:48:07 +000019912 if test "${libtool_build_shared_libs}" = 'yes'; then
19913 WITH_SHARED_LIBS_TRUE=
19914 WITH_SHARED_LIBS_FALSE='#'
19915else
19916 WITH_SHARED_LIBS_TRUE='#'
19917 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019918fi
19919
19920#
19921# Enable support for building loadable modules
19922#
19923
19924# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019925if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019926 withval=$with_modules; with_modules=$withval
19927else
cristy5a1cefd2010-01-06 20:42:35 +000019928 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019929fi
19930
19931
19932# Only allow building loadable modules if we are building shared libraries
19933if test "$with_modules" != 'no' ; then
19934 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019935 { $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 +000019936$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19937 with_modules='no'
19938 fi
19939fi
19940if test "$with_modules" != 'no'; then
19941
cristy8b350f62009-11-15 23:12:43 +000019942$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019943
19944fi
19945 if test "$with_modules" != 'no'; then
19946 WITH_MODULES_TRUE=
19947 WITH_MODULES_FALSE='#'
19948else
19949 WITH_MODULES_TRUE='#'
19950 WITH_MODULES_FALSE=
19951fi
19952
19953
19954# Enable building/use of libltdl if we are building shared libraries regardless
19955# of whether modules are built or not.
19956with_ltdl='no'
19957if test "$libtool_build_shared_libs" != 'no'; then
19958 with_ltdl='yes'
19959fi
19960
19961 if test "$with_ltdl" != 'no'; then
19962 WITH_LTDL_TRUE=
19963 WITH_LTDL_FALSE='#'
19964else
19965 WITH_LTDL_TRUE='#'
19966 WITH_LTDL_FALSE=
19967fi
19968
19969if test "$with_ltdl" != 'no'; then
19970
cristy8b350f62009-11-15 23:12:43 +000019971$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019972
19973
19974 # Set DLLDFLAGS
19975 if test X"$enable_shared" = Xyes; then
19976 DLLDFLAGS=-export-dynamic
19977
19978 fi
19979fi
19980
19981# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019982# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019983# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019984if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019985 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19986else
19987 enable_delegate_build='no'
19988fi
19989
19990
19991# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019992if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019993 enableval=$enable_deprecated; enable_deprecated=$enableval
19994else
19995 enable_deprecated='no'
19996fi
19997
19998
19999if test "$enable_deprecated" = 'yes'; then
20000
cristy8b350f62009-11-15 23:12:43 +000020001$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020002
20003else
20004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20005fi
20006
20007# Build a version of ImageMagick which operates uninstalled.
20008# Used to build distributions located via MAGICK_HOME / executable path
20009# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020010if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 enableval=$enable_installed; enable_installed=$enableval
20012else
20013 enable_installed='yes'
20014fi
20015
20016
20017if test "$enable_installed" = 'yes'; then
20018
cristy8b350f62009-11-15 23:12:43 +000020019$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020020
20021else
20022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20023fi
20024
20025# Permit enciphering and deciphering image pixels.
20026# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020027if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020028 enableval=$enable_cipher; enable_cipher=$enableval
20029else
20030 enable_cipher='yes'
20031fi
20032
20033
20034if test "$enable_cipher" = 'yes'; then
20035
cristy8b350f62009-11-15 23:12:43 +000020036$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020037
20038fi
20039
20040# Build an embeddable version of ImageMagick.
20041# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020042if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020043 enableval=$enable_embeddable; enable_embeddable=$enableval
20044else
20045 enable_embeddable='no'
20046fi
20047
20048
20049if test "$enable_embeddable" = 'yes'; then
20050
cristy8b350f62009-11-15 23:12:43 +000020051$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020052
20053fi
20054
20055# Build a high dynamic range version of ImageMagick.
20056# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020057if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020058 enableval=$enable_hdri; enable_hdri=$enableval
20059else
20060 enable_hdri='no'
20061fi
20062
20063
20064MAGICK_HDRI=""
20065if test "$enable_hdri" = 'yes'; then
20066 MAGICK_HDRI="HDRI"
20067
cristy8b350f62009-11-15 23:12:43 +000020068$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020069
cristyfd9dcd42010-08-08 18:07:02 +000020070 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020071fi
20072
cristy3ed852e2009-09-05 21:47:34 +000020073# Build a version of ImageMagick with assert statements.
20074# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020075if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020076 enableval=$enable_assert; enable_assert=$enableval
20077else
20078 enable_assert='yes'
20079fi
20080
20081
20082if test "$enable_assert" = 'no'; then
20083
cristy8b350f62009-11-15 23:12:43 +000020084$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020085
20086fi
20087
20088# Add configure option --enable-maintainer-mode which enables dependency
20089# checking and generation useful to package maintainers. This is made an
20090# option to avoid confusing end users.
20091
cristy8b350f62009-11-15 23:12:43 +000020092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020093$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20094 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020095if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20097else
20098 USE_MAINTAINER_MODE=no
20099fi
20100
cristy8b350f62009-11-15 23:12:43 +000020101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020102$as_echo "$USE_MAINTAINER_MODE" >&6; }
20103 if test $USE_MAINTAINER_MODE = yes; then
20104 MAINTAINER_MODE_TRUE=
20105 MAINTAINER_MODE_FALSE='#'
20106else
20107 MAINTAINER_MODE_TRUE='#'
20108 MAINTAINER_MODE_FALSE=
20109fi
20110
20111 MAINT=$MAINTAINER_MODE_TRUE
20112
20113
20114
20115
20116# Enable ccmalloc memory debugging support
20117# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020118if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020119 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20120else
20121 enable_ccmalloc='no'
20122fi
20123
20124
20125# Enable Electric Fence memory debugging support
20126# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020127if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020128 enableval=$enable_efence; enable_efence=$enableval
20129else
20130 enable_efence='no'
20131fi
20132
20133
20134# Enable prof-based profiling support
20135# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020136if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020137 enableval=$enable_prof; enable_prof=$enableval
20138else
20139 enable_prof='no'
20140fi
20141
20142
20143# Enable gprof-based profiling support
20144# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020145if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020146 enableval=$enable_gprof; enable_gprof=$enableval
20147else
20148 enable_gprof='no'
20149fi
20150
20151
20152# Enable gcov-based profiling support
20153# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020154if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020155 enableval=$enable_gcov; enable_gcov=$enableval
20156else
20157 enable_gcov='no'
20158fi
20159
20160
20161enable_profiling='no'
20162if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20163 enable_profiling='yes'
20164 if test "$libtool_build_shared_libs" = 'yes'; then
20165 echo "Warning: Can not profile code using shared libraries"
20166 fi
20167fi
20168
20169# Magick API method prefix
20170
20171# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020172if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020173 withval=$with_method_prefix; with_method_prefix=$enableval
20174else
20175 with_method_prefix=''
20176fi
20177
20178
20179if test "$with_method_prefix" != ''; then
20180
20181cat >>confdefs.h <<_ACEOF
20182#define NAMESPACE_PREFIX $with_method_prefix
20183_ACEOF
20184
20185fi
20186
20187# Number of bits in a Quantum
20188
20189# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020190if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020191 withval=$with_quantum_depth; with_quantum_depth=$withval
20192else
20193 with_quantum_depth=16
20194fi
20195
20196
20197if test "$with_quantum_depth" != '8'; then
20198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20199fi
20200
20201case "${with_quantum_depth}" in
20202 8 ) ;;
20203 16 ) ;;
20204 32 ) ;;
20205 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000020206 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020207esac
cristycdae12a2010-09-19 02:24:31 +000020208if test "$enable_hdri" = 'yes'; then
20209 with_quantum_depth=16
20210fi
cristy3ed852e2009-09-05 21:47:34 +000020211QUANTUM_DEPTH="$with_quantum_depth"
20212
20213cat >>confdefs.h <<_ACEOF
20214#define QUANTUM_DEPTH $QUANTUM_DEPTH
20215_ACEOF
20216
20217
20218# Set pixel cache threshold
20219
20220# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020221if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020222 withval=$with_cache; with_cache=$withval
20223else
20224 with_cache=''
20225fi
20226
20227
20228if test "$with_cache" != ''; then
20229
20230cat >>confdefs.h <<_ACEOF
20231#define PixelCacheThreshold $with_cache
20232_ACEOF
20233
20234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20235fi
20236
20237# Disable/Enable support for full delegate paths
20238
20239# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020240if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020241 withval=$with_frozenpaths; with_frozenpaths=$withval
20242else
20243 with_frozenpaths='no'
20244fi
20245
20246
20247# Enable build/install of Magick++
20248
20249# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020250if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020251 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20252else
20253 with_magick_plus_plus='yes'
20254fi
20255
20256
20257# Disable build/install of PerlMagick.
20258
20259# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020260if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020261 withval=$with_perl; with_perl=$withval
20262else
cristyb5f4e2f2010-04-25 00:49:11 +000020263 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020264fi
20265
20266
20267# Options to pass when configuring PerlMagick
20268
20269# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020270if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020271 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020272fi
20273
20274
cristy3ed852e2009-09-05 21:47:34 +000020275
20276# Enable umem, object-caching memory allocation library.
20277
20278# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020279if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 withval=$with_umem; with_umem=$withval
20281else
20282 with_umem='no'
20283fi
20284
20285if test "$with_umem" != 'yes' ; then
20286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20287fi
20288
20289#
20290# Specify path to shared libstdc++ if not in normal location
20291#
20292
20293# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020294if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020295 withval=$with_libstdc; with_libstdc=$withval
20296else
20297 with_libstdc=''
20298fi
20299
20300
20301if test "$with_libstdc" != ''; then
20302 if test -d "$with_libstdc"; then
20303 LIBSTDCLDFLAGS="-L$with_libstdc"
20304 fi
20305fi
20306
20307
20308# Does gcc required -traditional?
20309if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020311$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020312if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020313 $as_echo_n "(cached) " >&6
20314else
20315 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020317/* end confdefs.h. */
20318#include <sgtty.h>
20319Autoconf TIOCGETP
20320_ACEOF
20321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020323 ac_cv_prog_gcc_traditional=yes
20324else
20325 ac_cv_prog_gcc_traditional=no
20326fi
20327rm -f conftest*
20328
20329
20330 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020332/* end confdefs.h. */
20333#include <termio.h>
20334Autoconf TCGETA
20335_ACEOF
20336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020338 ac_cv_prog_gcc_traditional=yes
20339fi
20340rm -f conftest*
20341
20342 fi
20343fi
cristy8b350f62009-11-15 23:12:43 +000020344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020345$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20346 if test $ac_cv_prog_gcc_traditional = yes; then
20347 CC="$CC -traditional"
20348 fi
20349fi
20350
20351
20352########
20353#
20354# Set defines required to build DLLs and modules using MinGW
20355#
20356########
20357# These options are set for multi-thread DLL module build
20358# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20359# module: _DLL
20360# executable/Magick++: _DLL _MAGICKMOD_
20361MODULE_EXTRA_CPPFLAGS=''
20362LIBRARY_EXTRA_CPPFLAGS=''
20363if test "${native_win32_build}" = 'yes'; then
20364 if test "${libtool_build_shared_libs}" = 'yes'; then
20365 CPPFLAGS="$CPPFLAGS -D_DLL"
20366 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20367 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20368 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20369 if test "$with_modules" = 'yes'; then
20370 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20371 else
20372 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20373 fi
20374 else
20375 CPPFLAGS="$CPPFLAGS -D_LIB"
20376 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20377 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20378 fi
20379 if test "$with_threads" = 'yes'; then
20380 CPPFLAGS="$CPPFLAGS -D_MT"
20381 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20382 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20383 fi
20384fi
20385
20386
20387
20388# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020390$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020391if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020392 $as_echo_n "(cached) " >&6
20393else
cristy8b350f62009-11-15 23:12:43 +000020394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020395/* end confdefs.h. */
20396#include <stdlib.h>
20397#include <stdarg.h>
20398#include <string.h>
20399#include <float.h>
20400
20401int
20402main ()
20403{
20404
20405 ;
20406 return 0;
20407}
20408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020409if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020410 ac_cv_header_stdc=yes
20411else
cristy8b350f62009-11-15 23:12:43 +000020412 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020413fi
cristy3ed852e2009-09-05 21:47:34 +000020414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20415
20416if test $ac_cv_header_stdc = yes; then
20417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020419/* end confdefs.h. */
20420#include <string.h>
20421
20422_ACEOF
20423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020424 $EGREP "memchr" >/dev/null 2>&1; then :
20425
cristy3ed852e2009-09-05 21:47:34 +000020426else
20427 ac_cv_header_stdc=no
20428fi
20429rm -f conftest*
20430
20431fi
20432
20433if test $ac_cv_header_stdc = yes; then
20434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020436/* end confdefs.h. */
20437#include <stdlib.h>
20438
20439_ACEOF
20440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020441 $EGREP "free" >/dev/null 2>&1; then :
20442
cristy3ed852e2009-09-05 21:47:34 +000020443else
20444 ac_cv_header_stdc=no
20445fi
20446rm -f conftest*
20447
20448fi
20449
20450if test $ac_cv_header_stdc = yes; then
20451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020452 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020453 :
20454else
cristy8b350f62009-11-15 23:12:43 +000020455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020456/* end confdefs.h. */
20457#include <ctype.h>
20458#include <stdlib.h>
20459#if ((' ' & 0x0FF) == 0x020)
20460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20462#else
20463# define ISLOWER(c) \
20464 (('a' <= (c) && (c) <= 'i') \
20465 || ('j' <= (c) && (c) <= 'r') \
20466 || ('s' <= (c) && (c) <= 'z'))
20467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20468#endif
20469
20470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20471int
20472main ()
20473{
20474 int i;
20475 for (i = 0; i < 256; i++)
20476 if (XOR (islower (i), ISLOWER (i))
20477 || toupper (i) != TOUPPER (i))
20478 return 2;
20479 return 0;
20480}
20481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020482if ac_fn_c_try_run "$LINENO"; then :
20483
cristy3ed852e2009-09-05 21:47:34 +000020484else
cristy8b350f62009-11-15 23:12:43 +000020485 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020486fi
cristy8b350f62009-11-15 23:12:43 +000020487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20488 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020489fi
20490
cristy3ed852e2009-09-05 21:47:34 +000020491fi
20492fi
cristy8b350f62009-11-15 23:12:43 +000020493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020494$as_echo "$ac_cv_header_stdc" >&6; }
20495if test $ac_cv_header_stdc = yes; then
20496
cristy8b350f62009-11-15 23:12:43 +000020497$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020498
20499fi
20500
20501if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020502 { $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 +000020503 header files. Compilation cannot proceed. Please install the ANSI C
20504 headers and rerun this script." >&5
20505$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20506 header files. Compilation cannot proceed. Please install the ANSI C
20507 headers and rerun this script." >&2;};
20508fi
cristya0b81c32010-01-22 02:54:33 +000020509
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20511$as_echo_n "checking whether to enable assertions... " >&6; }
20512 # Check whether --enable-assert was given.
20513if test "${enable_assert+set}" = set; then :
20514 enableval=$enable_assert; ac_enable_assert=$enableval
20515 if test "x$enableval" = xno; then :
20516
20517$as_echo "#define NDEBUG 1" >>confdefs.h
20518
20519elif test "x$enableval" != xyes; then :
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20521$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20522 ac_enable_assert=yes
20523fi
20524else
20525 ac_enable_assert=yes
20526fi
20527
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20529$as_echo "$ac_enable_assert" >&6; }
20530
cristy3ed852e2009-09-05 21:47:34 +000020531ac_header_dirent=no
20532for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20533 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020535$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020536if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020537 $as_echo_n "(cached) " >&6
20538else
cristy8b350f62009-11-15 23:12:43 +000020539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020540/* end confdefs.h. */
20541#include <sys/types.h>
20542#include <$ac_hdr>
20543
20544int
20545main ()
20546{
20547if ((DIR *) 0)
20548return 0;
20549 ;
20550 return 0;
20551}
20552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020554 eval "$as_ac_Header=yes"
20555else
cristy8b350f62009-11-15 23:12:43 +000020556 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020557fi
cristy3ed852e2009-09-05 21:47:34 +000020558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559fi
cristy8b350f62009-11-15 23:12:43 +000020560eval ac_res=\$$as_ac_Header
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020562$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020563if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020564 cat >>confdefs.h <<_ACEOF
20565#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20566_ACEOF
20567
20568ac_header_dirent=$ac_hdr; break
20569fi
20570
20571done
20572# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20573if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020575$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020576if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020577 $as_echo_n "(cached) " >&6
20578else
20579 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020581/* end confdefs.h. */
20582
20583/* Override any GCC internal prototype to avoid an error.
20584 Use char because int might match the return type of a GCC
20585 builtin and then its argument prototype would still apply. */
20586#ifdef __cplusplus
20587extern "C"
20588#endif
20589char opendir ();
20590int
20591main ()
20592{
20593return opendir ();
20594 ;
20595 return 0;
20596}
20597_ACEOF
20598for ac_lib in '' dir; do
20599 if test -z "$ac_lib"; then
20600 ac_res="none required"
20601 else
20602 ac_res=-l$ac_lib
20603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20604 fi
cristy8b350f62009-11-15 23:12:43 +000020605 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020606 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020607fi
cristy8b350f62009-11-15 23:12:43 +000020608rm -f core conftest.err conftest.$ac_objext \
20609 conftest$ac_exeext
20610 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020611 break
20612fi
20613done
cristy8b350f62009-11-15 23:12:43 +000020614if test "${ac_cv_search_opendir+set}" = set; then :
20615
cristy3ed852e2009-09-05 21:47:34 +000020616else
20617 ac_cv_search_opendir=no
20618fi
20619rm conftest.$ac_ext
20620LIBS=$ac_func_search_save_LIBS
20621fi
cristy8b350f62009-11-15 23:12:43 +000020622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020623$as_echo "$ac_cv_search_opendir" >&6; }
20624ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020625if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20627
20628fi
20629
20630else
cristy8b350f62009-11-15 23:12:43 +000020631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020632$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020633if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020634 $as_echo_n "(cached) " >&6
20635else
20636 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020638/* end confdefs.h. */
20639
20640/* Override any GCC internal prototype to avoid an error.
20641 Use char because int might match the return type of a GCC
20642 builtin and then its argument prototype would still apply. */
20643#ifdef __cplusplus
20644extern "C"
20645#endif
20646char opendir ();
20647int
20648main ()
20649{
20650return opendir ();
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655for ac_lib in '' x; do
20656 if test -z "$ac_lib"; then
20657 ac_res="none required"
20658 else
20659 ac_res=-l$ac_lib
20660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20661 fi
cristy8b350f62009-11-15 23:12:43 +000020662 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020663 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020664fi
cristy8b350f62009-11-15 23:12:43 +000020665rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext
20667 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020668 break
20669fi
20670done
cristy8b350f62009-11-15 23:12:43 +000020671if test "${ac_cv_search_opendir+set}" = set; then :
20672
cristy3ed852e2009-09-05 21:47:34 +000020673else
20674 ac_cv_search_opendir=no
20675fi
20676rm conftest.$ac_ext
20677LIBS=$ac_func_search_save_LIBS
20678fi
cristy8b350f62009-11-15 23:12:43 +000020679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020680$as_echo "$ac_cv_search_opendir" >&6; }
20681ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020682if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20684
20685fi
20686
20687fi
20688
20689
20690# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020691for 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 +000020692do :
20693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20694ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020696 cat >>confdefs.h <<_ACEOF
20697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20698_ACEOF
20699
20700fi
20701
20702done
20703
20704
20705########
20706#
20707# Checks for typedefs, structures, and compiler characteristics.
20708#
20709########
20710
cristy8b350f62009-11-15 23:12:43 +000020711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020712$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020713if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020714 $as_echo_n "(cached) " >&6
20715else
cristy8b350f62009-11-15 23:12:43 +000020716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020717/* end confdefs.h. */
20718
20719#include <stdbool.h>
20720#ifndef bool
20721 "error: bool is not defined"
20722#endif
20723#ifndef false
20724 "error: false is not defined"
20725#endif
20726#if false
20727 "error: false is not 0"
20728#endif
20729#ifndef true
20730 "error: true is not defined"
20731#endif
20732#if true != 1
20733 "error: true is not 1"
20734#endif
20735#ifndef __bool_true_false_are_defined
20736 "error: __bool_true_false_are_defined is not defined"
20737#endif
20738
20739 struct s { _Bool s: 1; _Bool t; } s;
20740
20741 char a[true == 1 ? 1 : -1];
20742 char b[false == 0 ? 1 : -1];
20743 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20744 char d[(bool) 0.5 == true ? 1 : -1];
20745 bool e = &s;
20746 char f[(_Bool) 0.0 == false ? 1 : -1];
20747 char g[true];
20748 char h[sizeof (_Bool)];
20749 char i[sizeof s.t];
20750 enum { j = false, k = true, l = false * true, m = true * 256 };
20751 /* The following fails for
20752 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20753 _Bool n[m];
20754 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20755 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20756# if defined __xlc__ || defined __GNUC__
20757 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20758 reported by James Lemley on 2005-10-05; see
20759 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20760 This test is not quite right, since xlc is allowed to
20761 reject this program, as the initializer for xlcbug is
20762 not one of the forms that C requires support for.
20763 However, doing the test right would require a runtime
20764 test, and that would make cross-compilation harder.
20765 Let us hope that IBM fixes the xlc bug, and also adds
20766 support for this kind of constant expression. In the
20767 meantime, this test will reject xlc, which is OK, since
20768 our stdbool.h substitute should suffice. We also test
20769 this with GCC, where it should work, to detect more
20770 quickly whether someone messes up the test in the
20771 future. */
20772 char digs[] = "0123456789";
20773 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20774# endif
20775 /* Catch a bug in an HP-UX C compiler. See
20776 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20777 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20778 */
20779 _Bool q = true;
20780 _Bool *pq = &q;
20781
20782int
20783main ()
20784{
20785
20786 *pq |= q;
20787 *pq |= ! q;
20788 /* Refer to every declared value, to avoid compiler optimizations. */
20789 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20790 + !m + !n + !o + !p + !q + !pq);
20791
20792 ;
20793 return 0;
20794}
20795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020796if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020797 ac_cv_header_stdbool_h=yes
20798else
cristy8b350f62009-11-15 23:12:43 +000020799 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020800fi
cristy3ed852e2009-09-05 21:47:34 +000020801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20802fi
cristy8b350f62009-11-15 23:12:43 +000020803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020804$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020805ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20806if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020807
20808cat >>confdefs.h <<_ACEOF
20809#define HAVE__BOOL 1
20810_ACEOF
20811
20812
20813fi
20814
20815if test $ac_cv_header_stdbool_h = yes; then
20816
cristy8b350f62009-11-15 23:12:43 +000020817$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020818
20819fi
20820
cristy8b350f62009-11-15 23:12:43 +000020821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020822$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020823if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020824 $as_echo_n "(cached) " >&6
20825else
cristy8b350f62009-11-15 23:12:43 +000020826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020827/* end confdefs.h. */
20828
20829int
20830main ()
20831{
20832
20833volatile int x;
20834int * volatile y = (int *) 0;
20835return !x && !y;
20836 ;
20837 return 0;
20838}
20839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020840if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020841 ac_cv_c_volatile=yes
20842else
cristy8b350f62009-11-15 23:12:43 +000020843 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020844fi
cristy3ed852e2009-09-05 21:47:34 +000020845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846fi
cristy8b350f62009-11-15 23:12:43 +000020847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020848$as_echo "$ac_cv_c_volatile" >&6; }
20849if test $ac_cv_c_volatile = no; then
20850
cristy8b350f62009-11-15 23:12:43 +000020851$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020852
20853fi
20854
cristy8b350f62009-11-15 23:12:43 +000020855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020856$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020857if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020858 $as_echo_n "(cached) " >&6
20859else
cristy8b350f62009-11-15 23:12:43 +000020860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020861/* end confdefs.h. */
20862#define x(y) #y
20863
20864char *s = x(teststring);
20865_ACEOF
20866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020867 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020868 ac_cv_c_stringize=no
20869else
20870 ac_cv_c_stringize=yes
20871fi
20872rm -f conftest*
20873
20874fi
cristy8b350f62009-11-15 23:12:43 +000020875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020876$as_echo "$ac_cv_c_stringize" >&6; }
20877if test $ac_cv_c_stringize = yes; then
20878
cristy8b350f62009-11-15 23:12:43 +000020879$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020880
20881fi
20882
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020885if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 $as_echo_n "(cached) " >&6
20887else
cristy8b350f62009-11-15 23:12:43 +000020888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020889/* end confdefs.h. */
20890#include <sys/types.h>
20891#include <sys/stat.h>
20892
20893#if defined S_ISBLK && defined S_IFDIR
20894extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20895#endif
20896
20897#if defined S_ISBLK && defined S_IFCHR
20898extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20899#endif
20900
20901#if defined S_ISLNK && defined S_IFREG
20902extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20903#endif
20904
20905#if defined S_ISSOCK && defined S_IFREG
20906extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20907#endif
20908
20909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020910if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 ac_cv_header_stat_broken=no
20912else
cristy8b350f62009-11-15 23:12:43 +000020913 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020914fi
cristy3ed852e2009-09-05 21:47:34 +000020915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916fi
cristy8b350f62009-11-15 23:12:43 +000020917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020918$as_echo "$ac_cv_header_stat_broken" >&6; }
20919if test $ac_cv_header_stat_broken = yes; then
20920
cristy8b350f62009-11-15 23:12:43 +000020921$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020922
20923fi
20924
cristy8b350f62009-11-15 23:12:43 +000020925{ $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 +000020926$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020927if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020928 $as_echo_n "(cached) " >&6
20929else
cristy8b350f62009-11-15 23:12:43 +000020930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020931/* end confdefs.h. */
20932#include <sys/types.h>
20933#include <sys/time.h>
20934#include <time.h>
20935
20936int
20937main ()
20938{
20939if ((struct tm *) 0)
20940return 0;
20941 ;
20942 return 0;
20943}
20944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020946 ac_cv_header_time=yes
20947else
cristy8b350f62009-11-15 23:12:43 +000020948 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020949fi
cristy3ed852e2009-09-05 21:47:34 +000020950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951fi
cristy8b350f62009-11-15 23:12:43 +000020952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020953$as_echo "$ac_cv_header_time" >&6; }
20954if test $ac_cv_header_time = yes; then
20955
cristy8b350f62009-11-15 23:12:43 +000020956$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020957
20958fi
20959
cristy8b350f62009-11-15 23:12:43 +000020960{ $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 +000020961$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020962if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020963 $as_echo_n "(cached) " >&6
20964else
cristy8b350f62009-11-15 23:12:43 +000020965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020966/* end confdefs.h. */
20967#include <sys/types.h>
20968#include <time.h>
20969
20970int
20971main ()
20972{
20973struct tm tm;
20974 int *p = &tm.tm_sec;
20975 return !p;
20976 ;
20977 return 0;
20978}
20979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020980if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020981 ac_cv_struct_tm=time.h
20982else
cristy8b350f62009-11-15 23:12:43 +000020983 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020984fi
cristy3ed852e2009-09-05 21:47:34 +000020985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986fi
cristy8b350f62009-11-15 23:12:43 +000020987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020988$as_echo "$ac_cv_struct_tm" >&6; }
20989if test $ac_cv_struct_tm = sys/time.h; then
20990
cristy8b350f62009-11-15 23:12:43 +000020991$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020992
20993fi
20994
cristy92703d82010-04-26 00:18:18 +000020995ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20996#include <$ac_cv_struct_tm>
20997
20998"
20999if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21000
21001cat >>confdefs.h <<_ACEOF
21002#define HAVE_STRUCT_TM_TM_ZONE 1
21003_ACEOF
21004
21005
21006fi
21007
21008if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21009
21010$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21011
21012else
21013 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21014"
21015if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21016 ac_have_decl=1
21017else
21018 ac_have_decl=0
21019fi
21020
21021cat >>confdefs.h <<_ACEOF
21022#define HAVE_DECL_TZNAME $ac_have_decl
21023_ACEOF
21024
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21026$as_echo_n "checking for tzname... " >&6; }
21027if test "${ac_cv_var_tzname+set}" = set; then :
21028 $as_echo_n "(cached) " >&6
21029else
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031/* end confdefs.h. */
21032#include <time.h>
21033#if !HAVE_DECL_TZNAME
21034extern char *tzname[];
21035#endif
21036
21037int
21038main ()
21039{
21040return tzname[0][0];
21041 ;
21042 return 0;
21043}
21044_ACEOF
21045if ac_fn_c_try_link "$LINENO"; then :
21046 ac_cv_var_tzname=yes
21047else
21048 ac_cv_var_tzname=no
21049fi
21050rm -f core conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
21052fi
21053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21054$as_echo "$ac_cv_var_tzname" >&6; }
21055 if test $ac_cv_var_tzname = yes; then
21056
21057$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21058
21059 fi
21060fi
21061
cristy8b350f62009-11-15 23:12:43 +000021062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021063$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021064if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021065 $as_echo_n "(cached) " >&6
21066else
21067 echo '#! /bin/cat
21068exit 69
21069' >conftest
21070chmod u+x conftest
21071(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21072if test $? -ne 69; then
21073 ac_cv_sys_interpreter=yes
21074else
21075 ac_cv_sys_interpreter=no
21076fi
21077rm -f conftest
21078fi
cristy8b350f62009-11-15 23:12:43 +000021079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021080$as_echo "$ac_cv_sys_interpreter" >&6; }
21081interpval=$ac_cv_sys_interpreter
21082
21083
cristy3ed852e2009-09-05 21:47:34 +000021084# If the C compiler supports the keyword inline, do nothing. Otherwise
21085# define inline to __inline__ or __inline if it accepts one of those,
21086# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021088$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021089if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 $as_echo_n "(cached) " >&6
21091else
21092 ac_cv_c_inline=no
21093for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021095/* end confdefs.h. */
21096#ifndef __cplusplus
21097typedef int foo_t;
21098static $ac_kw foo_t static_foo () {return 0; }
21099$ac_kw foo_t foo () {return 0; }
21100#endif
21101
21102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021103if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021104 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021105fi
cristy3ed852e2009-09-05 21:47:34 +000021106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 test "$ac_cv_c_inline" != no && break
21108done
21109
21110fi
cristy8b350f62009-11-15 23:12:43 +000021111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021112$as_echo "$ac_cv_c_inline" >&6; }
21113
cristy3ed852e2009-09-05 21:47:34 +000021114case $ac_cv_c_inline in
21115 inline | yes) ;;
21116 *)
21117 case $ac_cv_c_inline in
21118 no) ac_val=;;
21119 *) ac_val=$ac_cv_c_inline;;
21120 esac
21121 cat >>confdefs.h <<_ACEOF
21122#ifndef __cplusplus
21123#define inline $ac_val
21124#endif
21125_ACEOF
21126 ;;
21127esac
21128
21129
21130# If the C compiler supports the keyword restrict, do nothing. Otherwise
21131# define restrict to __restrict__ or __restrict if it accepts one of those,
21132# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021134$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021135if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021136 $as_echo_n "(cached) " >&6
21137else
21138 ac_cv_c_restrict=no
21139 # The order here caters to the fact that C++ does not require restrict.
21140 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021142/* end confdefs.h. */
21143typedef int * int_ptr;
21144 int foo (int_ptr $ac_kw ip) {
21145 return ip[0];
21146 }
21147int
21148main ()
21149{
21150int s[1];
21151 int * $ac_kw t = s;
21152 t[0] = 0;
21153 return foo(t)
21154 ;
21155 return 0;
21156}
21157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021158if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021160fi
cristy3ed852e2009-09-05 21:47:34 +000021161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 test "$ac_cv_c_restrict" != no && break
21163 done
21164
21165fi
cristy8b350f62009-11-15 23:12:43 +000021166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021167$as_echo "$ac_cv_c_restrict" >&6; }
21168
cristy3ed852e2009-09-05 21:47:34 +000021169 case $ac_cv_c_restrict in
21170 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021171 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021172 ;;
21173 *) cat >>confdefs.h <<_ACEOF
21174#define restrict $ac_cv_c_restrict
21175_ACEOF
21176 ;;
21177 esac
21178
21179
21180# If words are stored with the most significant byte first (like
21181# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021183$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021184if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021185 $as_echo_n "(cached) " >&6
21186else
21187 ac_cv_c_bigendian=unknown
21188 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021190/* end confdefs.h. */
21191#ifndef __APPLE_CC__
21192 not a universal capable compiler
21193 #endif
21194 typedef int dummy;
21195
21196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021198
21199 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021200 # there are at least two -arch flags with different values.
21201 ac_arch=
21202 ac_prev=
21203 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21204 if test -n "$ac_prev"; then
21205 case $ac_word in
21206 i?86 | x86_64 | ppc | ppc64)
21207 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21208 ac_arch=$ac_word
21209 else
21210 ac_cv_c_bigendian=universal
21211 break
21212 fi
21213 ;;
21214 esac
21215 ac_prev=
21216 elif test "x$ac_word" = "x-arch"; then
21217 ac_prev=arch
21218 fi
21219 done
cristy3ed852e2009-09-05 21:47:34 +000021220fi
cristy3ed852e2009-09-05 21:47:34 +000021221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 if test $ac_cv_c_bigendian = unknown; then
21223 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021225/* end confdefs.h. */
21226#include <sys/types.h>
21227 #include <sys/param.h>
21228
21229int
21230main ()
21231{
21232#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21233 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21234 && LITTLE_ENDIAN)
21235 bogus endian macros
21236 #endif
21237
21238 ;
21239 return 0;
21240}
21241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021242if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021245/* end confdefs.h. */
21246#include <sys/types.h>
21247 #include <sys/param.h>
21248
21249int
21250main ()
21251{
21252#if BYTE_ORDER != BIG_ENDIAN
21253 not big endian
21254 #endif
21255
21256 ;
21257 return 0;
21258}
21259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021261 ac_cv_c_bigendian=yes
21262else
cristy8b350f62009-11-15 23:12:43 +000021263 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021264fi
cristy3ed852e2009-09-05 21:47:34 +000021265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021266fi
cristy3ed852e2009-09-05 21:47:34 +000021267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 fi
21269 if test $ac_cv_c_bigendian = unknown; then
21270 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021272/* end confdefs.h. */
21273#include <limits.h>
21274
21275int
21276main ()
21277{
21278#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21279 bogus endian macros
21280 #endif
21281
21282 ;
21283 return 0;
21284}
21285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021287 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021289/* end confdefs.h. */
21290#include <limits.h>
21291
21292int
21293main ()
21294{
21295#ifndef _BIG_ENDIAN
21296 not big endian
21297 #endif
21298
21299 ;
21300 return 0;
21301}
21302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 ac_cv_c_bigendian=yes
21305else
cristy8b350f62009-11-15 23:12:43 +000021306 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021307fi
cristy3ed852e2009-09-05 21:47:34 +000021308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021309fi
cristy3ed852e2009-09-05 21:47:34 +000021310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 fi
21312 if test $ac_cv_c_bigendian = unknown; then
21313 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021314 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021315 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021317/* end confdefs.h. */
21318short int ascii_mm[] =
21319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21320 short int ascii_ii[] =
21321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21322 int use_ascii (int i) {
21323 return ascii_mm[i] + ascii_ii[i];
21324 }
21325 short int ebcdic_ii[] =
21326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21327 short int ebcdic_mm[] =
21328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21329 int use_ebcdic (int i) {
21330 return ebcdic_mm[i] + ebcdic_ii[i];
21331 }
21332 extern int foo;
21333
21334int
21335main ()
21336{
21337return use_ascii (foo) == use_ebcdic (foo);
21338 ;
21339 return 0;
21340}
21341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021343 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21344 ac_cv_c_bigendian=yes
21345 fi
21346 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21347 if test "$ac_cv_c_bigendian" = unknown; then
21348 ac_cv_c_bigendian=no
21349 else
21350 # finding both strings is unlikely to happen, but who knows?
21351 ac_cv_c_bigendian=unknown
21352 fi
21353 fi
cristy3ed852e2009-09-05 21:47:34 +000021354fi
cristy3ed852e2009-09-05 21:47:34 +000021355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356else
cristy8b350f62009-11-15 23:12:43 +000021357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021358/* end confdefs.h. */
21359$ac_includes_default
21360int
21361main ()
21362{
21363
21364 /* Are we little or big endian? From Harbison&Steele. */
21365 union
21366 {
21367 long int l;
21368 char c[sizeof (long int)];
21369 } u;
21370 u.l = 1;
21371 return u.c[sizeof (long int) - 1] == 1;
21372
21373 ;
21374 return 0;
21375}
21376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021377if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021378 ac_cv_c_bigendian=no
21379else
cristy8b350f62009-11-15 23:12:43 +000021380 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021381fi
cristy8b350f62009-11-15 23:12:43 +000021382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21383 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021384fi
21385
cristy3ed852e2009-09-05 21:47:34 +000021386 fi
21387fi
cristy8b350f62009-11-15 23:12:43 +000021388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021389$as_echo "$ac_cv_c_bigendian" >&6; }
21390 case $ac_cv_c_bigendian in #(
21391 yes)
cristy8b350f62009-11-15 23:12:43 +000021392 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021393;; #(
21394 no)
21395 ;; #(
21396 universal)
21397
cristy8b350f62009-11-15 23:12:43 +000021398$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021399
21400 ;; #(
21401 *)
cristyfd9dcd42010-08-08 18:07:02 +000021402 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021403 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021404 esac
21405
21406
21407# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021408ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21409if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021410
cristy3ed852e2009-09-05 21:47:34 +000021411else
21412
21413cat >>confdefs.h <<_ACEOF
21414#define mode_t int
21415_ACEOF
21416
21417fi
21418
21419
21420# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021421ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21422if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021423
cristy3ed852e2009-09-05 21:47:34 +000021424else
21425
21426cat >>confdefs.h <<_ACEOF
21427#define off_t long int
21428_ACEOF
21429
21430fi
21431
21432
21433# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021434ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21435if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021436
cristy3ed852e2009-09-05 21:47:34 +000021437else
21438
21439cat >>confdefs.h <<_ACEOF
21440#define pid_t int
21441_ACEOF
21442
21443fi
21444
21445
21446# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021447ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21448if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021449
cristy3ed852e2009-09-05 21:47:34 +000021450else
21451
21452cat >>confdefs.h <<_ACEOF
21453#define size_t unsigned int
21454_ACEOF
21455
21456fi
21457
21458
21459# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021460ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21461if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021462
cristy3ed852e2009-09-05 21:47:34 +000021463else
21464
21465cat >>confdefs.h <<_ACEOF
21466#define ssize_t int
21467_ACEOF
21468
21469fi
21470
21471
21472# If the C compiler supports a working long double type with more range
21473# or precision than the double type, define HAVE_LONG_DOUBLE.
21474
cristy8b350f62009-11-15 23:12:43 +000021475 { $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 +000021476$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021477if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021478 $as_echo_n "(cached) " >&6
21479else
cristy8b350f62009-11-15 23:12:43 +000021480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021481/* end confdefs.h. */
21482#include <float.h>
21483 long double const a[] =
21484 {
21485 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21486 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21487 };
21488 long double
21489 f (long double x)
21490 {
21491 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21492 + (x ? f (x) : 'c'));
21493 }
21494
21495int
21496main ()
21497{
21498static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21499 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21500 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21501 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21502 && (int) LDBL_EPSILON == 0
21503 )];
21504test_array [0] = 0
21505
21506 ;
21507 return 0;
21508}
21509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021510if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021511 ac_cv_type_long_double_wider=yes
21512else
cristy8b350f62009-11-15 23:12:43 +000021513 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021514fi
cristy3ed852e2009-09-05 21:47:34 +000021515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516fi
cristy8b350f62009-11-15 23:12:43 +000021517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021518$as_echo "$ac_cv_type_long_double_wider" >&6; }
21519 if test $ac_cv_type_long_double_wider = yes; then
21520
cristy8b350f62009-11-15 23:12:43 +000021521$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021522
21523 fi
21524
21525
21526# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21527# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021529$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021530if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 $as_echo_n "(cached) " >&6
21532else
cristy8b350f62009-11-15 23:12:43 +000021533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021534/* end confdefs.h. */
21535$ac_includes_default
21536int
21537main ()
21538{
21539static int test_array [1 - 2 * !(((char) -1) < 0)];
21540test_array [0] = 0
21541
21542 ;
21543 return 0;
21544}
21545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021546if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021547 ac_cv_c_char_unsigned=no
21548else
cristy8b350f62009-11-15 23:12:43 +000021549 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021550fi
cristy3ed852e2009-09-05 21:47:34 +000021551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552fi
cristy8b350f62009-11-15 23:12:43 +000021553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021554$as_echo "$ac_cv_c_char_unsigned" >&6; }
21555if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021556 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021557
21558fi
21559
21560
21561# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21562# The cast to long int works around a bug in the HP C Compiler
21563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21565# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021567$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021568if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 $as_echo_n "(cached) " >&6
21570else
cristy8b350f62009-11-15 23:12:43 +000021571 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 +000021572
cristy3ed852e2009-09-05 21:47:34 +000021573else
cristy8b350f62009-11-15 23:12:43 +000021574 if test "$ac_cv_type_signed_short" = yes; then
21575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021577as_fn_error 77 "cannot compute sizeof (signed short)
21578See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021579 else
21580 ac_cv_sizeof_signed_short=0
21581 fi
21582fi
cristy8b350f62009-11-15 23:12:43 +000021583
cristy3ed852e2009-09-05 21:47:34 +000021584fi
cristy8b350f62009-11-15 23:12:43 +000021585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021586$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21587
21588
21589
21590cat >>confdefs.h <<_ACEOF
21591#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21592_ACEOF
21593
21594
21595
21596# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21597# The cast to long int works around a bug in the HP C Compiler
21598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21600# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021602$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021603if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021604 $as_echo_n "(cached) " >&6
21605else
cristy8b350f62009-11-15 23:12:43 +000021606 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 +000021607
cristy3ed852e2009-09-05 21:47:34 +000021608else
cristy8b350f62009-11-15 23:12:43 +000021609 if test "$ac_cv_type_unsigned_short" = yes; then
21610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021612as_fn_error 77 "cannot compute sizeof (unsigned short)
21613See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021614 else
21615 ac_cv_sizeof_unsigned_short=0
21616 fi
21617fi
cristy8b350f62009-11-15 23:12:43 +000021618
cristy3ed852e2009-09-05 21:47:34 +000021619fi
cristy8b350f62009-11-15 23:12:43 +000021620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21622
21623
21624
21625cat >>confdefs.h <<_ACEOF
21626#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21627_ACEOF
21628
21629
21630
21631# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21632# The cast to long int works around a bug in the HP C Compiler
21633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21635# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021637$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021638if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021639 $as_echo_n "(cached) " >&6
21640else
cristy8b350f62009-11-15 23:12:43 +000021641 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 +000021642
cristy3ed852e2009-09-05 21:47:34 +000021643else
cristy8b350f62009-11-15 23:12:43 +000021644 if test "$ac_cv_type_signed_int" = yes; then
21645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021647as_fn_error 77 "cannot compute sizeof (signed int)
21648See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021649 else
21650 ac_cv_sizeof_signed_int=0
21651 fi
21652fi
cristy8b350f62009-11-15 23:12:43 +000021653
cristy3ed852e2009-09-05 21:47:34 +000021654fi
cristy8b350f62009-11-15 23:12:43 +000021655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21657
21658
21659
21660cat >>confdefs.h <<_ACEOF
21661#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21662_ACEOF
21663
21664
21665
21666# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21667# The cast to long int works around a bug in the HP C Compiler
21668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021672$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021673if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 $as_echo_n "(cached) " >&6
21675else
cristy8b350f62009-11-15 23:12:43 +000021676 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 +000021677
cristy3ed852e2009-09-05 21:47:34 +000021678else
cristy8b350f62009-11-15 23:12:43 +000021679 if test "$ac_cv_type_unsigned_int" = yes; then
21680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021682as_fn_error 77 "cannot compute sizeof (unsigned int)
21683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021684 else
21685 ac_cv_sizeof_unsigned_int=0
21686 fi
21687fi
cristy8b350f62009-11-15 23:12:43 +000021688
cristy3ed852e2009-09-05 21:47:34 +000021689fi
cristy8b350f62009-11-15 23:12:43 +000021690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021691$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21692
21693
21694
21695cat >>confdefs.h <<_ACEOF
21696#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21697_ACEOF
21698
21699
21700
21701# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21702# The cast to long int works around a bug in the HP C Compiler
21703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21705# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021707$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021708if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 $as_echo_n "(cached) " >&6
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 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 +000021712
cristy3ed852e2009-09-05 21:47:34 +000021713else
cristy8b350f62009-11-15 23:12:43 +000021714 if test "$ac_cv_type_signed_long" = yes; then
21715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021717as_fn_error 77 "cannot compute sizeof (signed long)
21718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021719 else
21720 ac_cv_sizeof_signed_long=0
21721 fi
21722fi
cristy8b350f62009-11-15 23:12:43 +000021723
cristy3ed852e2009-09-05 21:47:34 +000021724fi
cristy8b350f62009-11-15 23:12:43 +000021725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021726$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21727
21728
21729
21730cat >>confdefs.h <<_ACEOF
21731#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21732_ACEOF
21733
21734
21735
21736# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21737# The cast to long int works around a bug in the HP C Compiler
21738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21740# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021742$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021743if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021744 $as_echo_n "(cached) " >&6
21745else
cristy8b350f62009-11-15 23:12:43 +000021746 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 +000021747
cristy3ed852e2009-09-05 21:47:34 +000021748else
cristy8b350f62009-11-15 23:12:43 +000021749 if test "$ac_cv_type_unsigned_long" = yes; then
21750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021752as_fn_error 77 "cannot compute sizeof (unsigned long)
21753See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021754 else
21755 ac_cv_sizeof_unsigned_long=0
21756 fi
21757fi
cristy8b350f62009-11-15 23:12:43 +000021758
cristy3ed852e2009-09-05 21:47:34 +000021759fi
cristy8b350f62009-11-15 23:12:43 +000021760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021761$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21762
21763
21764
21765cat >>confdefs.h <<_ACEOF
21766#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21767_ACEOF
21768
21769
21770
21771# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21772# 'signed long long' is not supported then the value defined is zero.
21773# The cast to long int works around a bug in the HP C Compiler
21774# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21775# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21776# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021778$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021779if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 $as_echo_n "(cached) " >&6
21781else
cristy8b350f62009-11-15 23:12:43 +000021782 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 +000021783
cristy3ed852e2009-09-05 21:47:34 +000021784else
cristy8b350f62009-11-15 23:12:43 +000021785 if test "$ac_cv_type_signed_long_long" = yes; then
21786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021788as_fn_error 77 "cannot compute sizeof (signed long long)
21789See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021790 else
21791 ac_cv_sizeof_signed_long_long=0
21792 fi
21793fi
cristy8b350f62009-11-15 23:12:43 +000021794
cristy3ed852e2009-09-05 21:47:34 +000021795fi
cristy8b350f62009-11-15 23:12:43 +000021796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021797$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21798
21799
21800
21801cat >>confdefs.h <<_ACEOF
21802#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21803_ACEOF
21804
21805
21806
21807# Obtain size of a 'unsigned long long' and define as
21808# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21809# supported then the value defined is zero.
21810# The cast to long int works around a bug in the HP C Compiler
21811# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21812# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21813# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021815$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021816if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021817 $as_echo_n "(cached) " >&6
21818else
cristy8b350f62009-11-15 23:12:43 +000021819 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 +000021820
cristy3ed852e2009-09-05 21:47:34 +000021821else
cristy8b350f62009-11-15 23:12:43 +000021822 if test "$ac_cv_type_unsigned_long_long" = yes; then
21823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021825as_fn_error 77 "cannot compute sizeof (unsigned long long)
21826See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021827 else
21828 ac_cv_sizeof_unsigned_long_long=0
21829 fi
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831
cristy3ed852e2009-09-05 21:47:34 +000021832fi
cristy8b350f62009-11-15 23:12:43 +000021833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021834$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21835
21836
21837
21838cat >>confdefs.h <<_ACEOF
21839#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21840_ACEOF
21841
21842
21843
21844# Obtain size of off_t and define as SIZEOF_OFF_T
21845# The cast to long int works around a bug in the HP C Compiler
21846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21848# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021850$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021851if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 $as_echo_n "(cached) " >&6
21853else
cristy8b350f62009-11-15 23:12:43 +000021854 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 +000021855
cristy3ed852e2009-09-05 21:47:34 +000021856else
cristy8b350f62009-11-15 23:12:43 +000021857 if test "$ac_cv_type_off_t" = yes; then
21858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021860as_fn_error 77 "cannot compute sizeof (off_t)
21861See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021862 else
21863 ac_cv_sizeof_off_t=0
21864 fi
21865fi
cristy8b350f62009-11-15 23:12:43 +000021866
cristy3ed852e2009-09-05 21:47:34 +000021867fi
cristy8b350f62009-11-15 23:12:43 +000021868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021869$as_echo "$ac_cv_sizeof_off_t" >&6; }
21870
21871
21872
21873cat >>confdefs.h <<_ACEOF
21874#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21875_ACEOF
21876
21877
21878
21879# Obtain size of size_t and define as SIZEOF_SIZE_T
21880# The cast to long int works around a bug in the HP C Compiler
21881# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21882# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21883# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021885$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021886if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021887 $as_echo_n "(cached) " >&6
21888else
cristy8b350f62009-11-15 23:12:43 +000021889 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 +000021890
cristy3ed852e2009-09-05 21:47:34 +000021891else
cristy8b350f62009-11-15 23:12:43 +000021892 if test "$ac_cv_type_size_t" = yes; then
21893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021895as_fn_error 77 "cannot compute sizeof (size_t)
21896See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021897 else
21898 ac_cv_sizeof_size_t=0
21899 fi
21900fi
cristy8b350f62009-11-15 23:12:43 +000021901
cristy3ed852e2009-09-05 21:47:34 +000021902fi
cristy8b350f62009-11-15 23:12:43 +000021903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo "$ac_cv_sizeof_size_t" >&6; }
21905
21906
21907
21908cat >>confdefs.h <<_ACEOF
21909#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21910_ACEOF
21911
21912
21913
cristy330e9352010-06-01 18:42:49 +000021914# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21915# The cast to long int works around a bug in the HP C Compiler
21916# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21917# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21918# This bug is HP SR number 8606223364.
21919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21920$as_echo_n "checking size of ssize_t... " >&6; }
21921if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21922 $as_echo_n "(cached) " >&6
21923else
21924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21925
21926else
21927 if test "$ac_cv_type_ssize_t" = yes; then
21928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021930as_fn_error 77 "cannot compute sizeof (ssize_t)
21931See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021932 else
21933 ac_cv_sizeof_ssize_t=0
21934 fi
21935fi
21936
21937fi
21938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21939$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21940
21941
21942
21943cat >>confdefs.h <<_ACEOF
21944#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21945_ACEOF
21946
21947
21948
cristy3ed852e2009-09-05 21:47:34 +000021949# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21950# The cast to long int works around a bug in the HP C Compiler
21951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21953# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021956if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 $as_echo_n "(cached) " >&6
21958else
cristy8b350f62009-11-15 23:12:43 +000021959 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 +000021960
cristy3ed852e2009-09-05 21:47:34 +000021961else
cristy8b350f62009-11-15 23:12:43 +000021962 if test "$ac_cv_type_unsigned_intp" = yes; then
21963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021965as_fn_error 77 "cannot compute sizeof (unsigned int*)
21966See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021967 else
21968 ac_cv_sizeof_unsigned_intp=0
21969 fi
21970fi
cristy8b350f62009-11-15 23:12:43 +000021971
cristy3ed852e2009-09-05 21:47:34 +000021972fi
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21975
21976
21977
21978cat >>confdefs.h <<_ACEOF
21979#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21980_ACEOF
21981
21982
21983
21984#
21985# Compute sized types for current CPU and compiler options.
21986#
21987
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo_n "checking for signed 8-bit type... " >&6; }
21990INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo "$INT8_T" >&6; }
21993
21994
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21997UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo "$UINT8_T" >&6; }
22000
22001
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo_n "checking for signed 16-bit type... " >&6; }
22004INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo "$INT16_T" >&6; }
22007
22008
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22011UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo "$UINT16_T" >&6; }
22014
22015
cristy8b350f62009-11-15 23:12:43 +000022016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022017$as_echo_n "checking for signed 32-bit type... " >&6; }
22018INT32_T='none'
22019if test $ac_cv_sizeof_signed_int -eq 4; then
22020 INT32_T='signed int'
22021elif test $ac_cv_sizeof_signed_long -eq 4; then
22022 INT32_T='signed long'
22023fi
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo "$INT32_T" >&6; }
22026
22027
cristy8b350f62009-11-15 23:12:43 +000022028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22030UINT32_T='none'
22031if test $ac_cv_sizeof_unsigned_int -eq 4; then
22032 UINT32_T='unsigned int'
22033elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22034 UINT32_T='unsigned long'
22035fi
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo "$UINT32_T" >&6; }
22038
22039
cristy8b350f62009-11-15 23:12:43 +000022040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022041$as_echo_n "checking for signed 64-bit type... " >&6; }
22042INT64_T='none'
22043if test $ac_cv_sizeof_signed_long -eq 8; then
22044 INT64_T='signed long'
22045elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22046 INT64_T='signed long long'
22047fi
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo "$INT64_T" >&6; }
22050
22051
cristy8b350f62009-11-15 23:12:43 +000022052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022053$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22054UINT64_T='none'
22055if test $ac_cv_sizeof_unsigned_long -eq 8; then
22056 UINT64_T='unsigned long'
22057elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22058 UINT64_T='unsigned long long'
22059fi
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo "$UINT64_T" >&6; }
22062
22063
cristy8b350f62009-11-15 23:12:43 +000022064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022065$as_echo_n "checking for unsigned maximum type... " >&6; }
22066UINTMAX_T='none'
22067if test "$UINT64_T" != 'none'; then
22068 UINTMAX_T=$UINT64_T
22069elif test "$UINT32_T" != 'none'; then
22070 UINTMAX_T=$UINT32_T
22071fi
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo "$UINTMAX_T" >&6; }
22074
22075
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo_n "checking for pointer difference type... " >&6; }
22078UINTPTR_T='none'
22079if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22080 UINTPTR_T='unsigned long'
22081elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22082 UINTPTR_T='unsigned long long'
22083fi
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo "$UINTPTR_T" >&6; }
22086
22087
cristy8b350f62009-11-15 23:12:43 +000022088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022089$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022091/* end confdefs.h. */
22092
22093int
22094main ()
22095{
22096{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22097 ;
22098 return 0;
22099}
22100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022101if ac_fn_c_try_compile "$LINENO"; then :
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022103$as_echo "yes" >&6; }
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022110/* end confdefs.h. */
22111
22112int
22113main ()
22114{
22115{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22116 ;
22117 return 0;
22118}
22119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022120if ac_fn_c_try_compile "$LINENO"; then :
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022122$as_echo "yes" >&6; }
22123
cristy8b350f62009-11-15 23:12:43 +000022124$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022125
22126else
cristy8b350f62009-11-15 23:12:43 +000022127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022128$as_echo "no" >&6; }
22129
cristy8b350f62009-11-15 23:12:43 +000022130$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022131
22132fi
cristy3ed852e2009-09-05 21:47:34 +000022133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134fi
cristy3ed852e2009-09-05 21:47:34 +000022135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136
22137########
22138#
22139# Check for functions
22140#
22141########
cristy3ed852e2009-09-05 21:47:34 +000022142for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022143do :
22144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22145ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022147 cat >>confdefs.h <<_ACEOF
22148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22149_ACEOF
22150
22151fi
22152
22153done
22154
cristy3ed852e2009-09-05 21:47:34 +000022155for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022156do :
22157 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22158if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022159 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022160#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022161_ACEOF
22162
22163fi
22164done
22165
cristy8b350f62009-11-15 23:12:43 +000022166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022168if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 $as_echo_n "(cached) " >&6
22170else
cristy8b350f62009-11-15 23:12:43 +000022171 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 magick_cv_func_mmap_fileio=no
22173else
cristy8b350f62009-11-15 23:12:43 +000022174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022175/* end confdefs.h. */
22176$ac_includes_default
22177/* malloc might have been renamed as rpl_malloc. */
22178#undef malloc
22179
22180/*
22181 This test is derived from GNU Autoconf's similar macro.
22182 The purpose of this test is to verify that files may be memory
22183 mapped, and that memory mapping and file I/O are coherent.
22184
22185 The test creates a test file, memory maps the file, updates
22186 the file using the memory map, and then reads the file using
22187 file I/O to verify that the file contains the updates.
22188*/
22189
22190#include <fcntl.h>
22191#include <sys/mman.h>
22192
22193#if !STDC_HEADERS && !HAVE_STDLIB_H
22194char *malloc ();
22195#endif
22196
22197/* This mess was copied from the GNU getpagesize.h. */
22198#if !HAVE_GETPAGESIZE
22199/* Assume that all systems that can run configure have sys/param.h. */
22200# if !HAVE_SYS_PARAM_H
22201# define HAVE_SYS_PARAM_H 1
22202# endif
22203
22204# ifdef _SC_PAGESIZE
22205# define getpagesize() sysconf(_SC_PAGESIZE)
22206# else /* no _SC_PAGESIZE */
22207# if HAVE_SYS_PARAM_H
22208# include <sys/param.h>
22209# ifdef EXEC_PAGESIZE
22210# define getpagesize() EXEC_PAGESIZE
22211# else /* no EXEC_PAGESIZE */
22212# ifdef NBPG
22213# define getpagesize() NBPG * CLSIZE
22214# ifndef CLSIZE
22215# define CLSIZE 1
22216# endif /* no CLSIZE */
22217# else /* no NBPG */
22218# ifdef NBPC
22219# define getpagesize() NBPC
22220# else /* no NBPC */
22221# ifdef PAGESIZE
22222# define getpagesize() PAGESIZE
22223# endif /* PAGESIZE */
22224# endif /* no NBPC */
22225# endif /* no NBPG */
22226# endif /* no EXEC_PAGESIZE */
22227# else /* no HAVE_SYS_PARAM_H */
22228# define getpagesize() 8192 /* punt totally */
22229# endif /* no HAVE_SYS_PARAM_H */
22230# endif /* no _SC_PAGESIZE */
22231
22232#endif /* no HAVE_GETPAGESIZE */
22233
22234int
22235main ()
22236{
22237 char *data, *data2, *data3;
22238 int i, pagesize;
22239 int fd;
22240
22241 pagesize = getpagesize ();
22242
22243 /* First, make a file with some known garbage in it. */
22244 data = (char *) malloc (pagesize);
22245 if (!data)
22246 exit (1);
22247 for (i = 0; i < pagesize; ++i)
22248 *(data + i) = rand ();
22249 umask (0);
22250 fd = creat ("conftest.mmap", 0600);
22251 if (fd < 0)
22252 exit (1);
22253 if (write (fd, data, pagesize) != pagesize)
22254 exit (1);
22255 close (fd);
22256
22257 /* Mmap the file as read/write/shared and verify that we see the
22258 same garbage. */
22259 fd = open ("conftest.mmap", O_RDWR);
22260 if (fd < 0)
22261 exit (1);
22262 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22263 if (data2 == 0)
22264 exit (1);
22265 for (i = 0; i < pagesize; ++i)
22266 if (*(data + i) != *(data2 + i))
22267 exit (1);
22268
22269 /* Finally, make sure that changes to the mapped area
22270 percolate back to the file as seen by read(). */
22271 for (i = 0; i < pagesize; ++i)
22272 *(data2 + i) = *(data2 + i) + 1;
22273 data3 = (char *) malloc (pagesize);
22274 if (!data3)
22275 exit (1);
22276 if (read (fd, data3, pagesize) != pagesize)
22277 exit (1);
22278 for (i = 0; i < pagesize; ++i)
22279 if (*(data2 + i) != *(data3 + i))
22280 exit (1);
22281 close (fd);
22282 exit (0);
22283}
22284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022285if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 magick_cv_func_mmap_fileio=yes
22287else
cristy8b350f62009-11-15 23:12:43 +000022288 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022289fi
cristy8b350f62009-11-15 23:12:43 +000022290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22291 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022292fi
22293
cristy3ed852e2009-09-05 21:47:34 +000022294fi
cristy8b350f62009-11-15 23:12:43 +000022295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022296$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22297if test $magick_cv_func_mmap_fileio = yes; then
22298
cristy8b350f62009-11-15 23:12:43 +000022299$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022300
22301fi
22302rm -f conftest.mmap
22303
cristy8b350f62009-11-15 23:12:43 +000022304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022305$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022306if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022307 $as_echo_n "(cached) " >&6
22308else
cristy8b350f62009-11-15 23:12:43 +000022309 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 ac_cv_func_closedir_void=yes
22311else
cristy8b350f62009-11-15 23:12:43 +000022312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022313/* end confdefs.h. */
22314$ac_includes_default
22315#include <$ac_header_dirent>
22316#ifndef __cplusplus
22317int closedir ();
22318#endif
22319
22320int
22321main ()
22322{
22323return closedir (opendir (".")) != 0;
22324 ;
22325 return 0;
22326}
22327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022328if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022329 ac_cv_func_closedir_void=no
22330else
cristy8b350f62009-11-15 23:12:43 +000022331 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022332fi
cristy8b350f62009-11-15 23:12:43 +000022333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22334 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022335fi
22336
cristy3ed852e2009-09-05 21:47:34 +000022337fi
cristy8b350f62009-11-15 23:12:43 +000022338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022339$as_echo "$ac_cv_func_closedir_void" >&6; }
22340if test $ac_cv_func_closedir_void = yes; then
22341
cristy8b350f62009-11-15 23:12:43 +000022342$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022343
22344fi
22345
cristycd4c5312009-11-22 01:19:08 +000022346
22347
22348
22349 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022350do :
22351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022352ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22353"
cristyfd9dcd42010-08-08 18:07:02 +000022354if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 cat >>confdefs.h <<_ACEOF
22356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22357_ACEOF
22358
22359fi
22360
22361done
22362
cristycd4c5312009-11-22 01:19:08 +000022363
22364
22365
22366
22367
22368
22369
cristy3ed852e2009-09-05 21:47:34 +000022370for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022371do :
22372 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22373if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022375#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022376_ACEOF
22377
22378fi
22379done
22380
cristy8b350f62009-11-15 23:12:43 +000022381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022382$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022383if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022384 $as_echo_n "(cached) " >&6
22385else
cristy8b350f62009-11-15 23:12:43 +000022386 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022387 ac_cv_func_mmap_fixed_mapped=no
22388else
cristy8b350f62009-11-15 23:12:43 +000022389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022390/* end confdefs.h. */
22391$ac_includes_default
22392/* malloc might have been renamed as rpl_malloc. */
22393#undef malloc
22394
22395/* Thanks to Mike Haertel and Jim Avera for this test.
22396 Here is a matrix of mmap possibilities:
22397 mmap private not fixed
22398 mmap private fixed at somewhere currently unmapped
22399 mmap private fixed at somewhere already mapped
22400 mmap shared not fixed
22401 mmap shared fixed at somewhere currently unmapped
22402 mmap shared fixed at somewhere already mapped
22403 For private mappings, we should verify that changes cannot be read()
22404 back from the file, nor mmap's back from the file at a different
22405 address. (There have been systems where private was not correctly
22406 implemented like the infamous i386 svr4.0, and systems where the
22407 VM page cache was not coherent with the file system buffer cache
22408 like early versions of FreeBSD and possibly contemporary NetBSD.)
22409 For shared mappings, we should conversely verify that changes get
22410 propagated back to all the places they're supposed to be.
22411
22412 Grep wants private fixed already mapped.
22413 The main things grep needs to know about mmap are:
22414 * does it exist and is it safe to write into the mmap'd area
22415 * how to use it (BSD variants) */
22416
22417#include <fcntl.h>
22418#include <sys/mman.h>
22419
22420#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22421char *malloc ();
22422#endif
22423
22424/* This mess was copied from the GNU getpagesize.h. */
22425#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022426# ifdef _SC_PAGESIZE
22427# define getpagesize() sysconf(_SC_PAGESIZE)
22428# else /* no _SC_PAGESIZE */
22429# ifdef HAVE_SYS_PARAM_H
22430# include <sys/param.h>
22431# ifdef EXEC_PAGESIZE
22432# define getpagesize() EXEC_PAGESIZE
22433# else /* no EXEC_PAGESIZE */
22434# ifdef NBPG
22435# define getpagesize() NBPG * CLSIZE
22436# ifndef CLSIZE
22437# define CLSIZE 1
22438# endif /* no CLSIZE */
22439# else /* no NBPG */
22440# ifdef NBPC
22441# define getpagesize() NBPC
22442# else /* no NBPC */
22443# ifdef PAGESIZE
22444# define getpagesize() PAGESIZE
22445# endif /* PAGESIZE */
22446# endif /* no NBPC */
22447# endif /* no NBPG */
22448# endif /* no EXEC_PAGESIZE */
22449# else /* no HAVE_SYS_PARAM_H */
22450# define getpagesize() 8192 /* punt totally */
22451# endif /* no HAVE_SYS_PARAM_H */
22452# endif /* no _SC_PAGESIZE */
22453
22454#endif /* no HAVE_GETPAGESIZE */
22455
22456int
22457main ()
22458{
22459 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022460 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022461 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022462 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022463
22464 pagesize = getpagesize ();
22465
22466 /* First, make a file with some known garbage in it. */
22467 data = (char *) malloc (pagesize);
22468 if (!data)
22469 return 1;
22470 for (i = 0; i < pagesize; ++i)
22471 *(data + i) = rand ();
22472 umask (0);
22473 fd = creat ("conftest.mmap", 0600);
22474 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022475 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022476 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022477 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022478 close (fd);
22479
cristycd4c5312009-11-22 01:19:08 +000022480 /* Next, check that the tail of a page is zero-filled. File must have
22481 non-zero length, otherwise we risk SIGBUS for entire page. */
22482 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22483 if (fd2 < 0)
22484 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022485 cdata2 = "";
22486 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022487 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022488 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022489 if (data2 == MAP_FAILED)
22490 return 6;
22491 for (i = 0; i < pagesize; ++i)
22492 if (*(data2 + i))
22493 return 7;
22494 close (fd2);
22495 if (munmap (data2, pagesize))
22496 return 8;
22497
cristy3ed852e2009-09-05 21:47:34 +000022498 /* Next, try to mmap the file at a fixed address which already has
22499 something else allocated at it. If we can, also make sure that
22500 we see the same garbage. */
22501 fd = open ("conftest.mmap", O_RDWR);
22502 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022503 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022504 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22505 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022506 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022507 for (i = 0; i < pagesize; ++i)
22508 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022509 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022510
22511 /* Finally, make sure that changes to the mapped area do not
22512 percolate back to the file as seen by read(). (This is a bug on
22513 some variants of i386 svr4.0.) */
22514 for (i = 0; i < pagesize; ++i)
22515 *(data2 + i) = *(data2 + i) + 1;
22516 data3 = (char *) malloc (pagesize);
22517 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022518 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022519 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022520 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022521 for (i = 0; i < pagesize; ++i)
22522 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022523 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022524 close (fd);
22525 return 0;
22526}
22527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022528if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022529 ac_cv_func_mmap_fixed_mapped=yes
22530else
cristy8b350f62009-11-15 23:12:43 +000022531 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022532fi
cristy8b350f62009-11-15 23:12:43 +000022533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22534 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022535fi
22536
cristy3ed852e2009-09-05 21:47:34 +000022537fi
cristy8b350f62009-11-15 23:12:43 +000022538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022539$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22540if test $ac_cv_func_mmap_fixed_mapped = yes; then
22541
cristy8b350f62009-11-15 23:12:43 +000022542$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022543
22544fi
cristycd4c5312009-11-22 01:19:08 +000022545rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022546
cristy3ed852e2009-09-05 21:47:34 +000022547for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022548do :
22549 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22550if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022552#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022553_ACEOF
22554
22555fi
22556
22557done
22558
cristy3ed852e2009-09-05 21:47:34 +000022559for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022560do :
22561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22562ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022563if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022564 cat >>confdefs.h <<_ACEOF
22565#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22566_ACEOF
22567
22568fi
22569done
22570
22571if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022573$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022574if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022575 $as_echo_n "(cached) " >&6
22576else
cristy8b350f62009-11-15 23:12:43 +000022577 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 ac_cv_func_fork_works=cross
22579else
cristy8b350f62009-11-15 23:12:43 +000022580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022581/* end confdefs.h. */
22582$ac_includes_default
22583int
22584main ()
22585{
22586
22587 /* By Ruediger Kuhlmann. */
22588 return fork () < 0;
22589
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 ac_cv_func_fork_works=yes
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022598fi
cristy8b350f62009-11-15 23:12:43 +000022599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22600 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022601fi
22602
cristy3ed852e2009-09-05 21:47:34 +000022603fi
cristy8b350f62009-11-15 23:12:43 +000022604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022605$as_echo "$ac_cv_func_fork_works" >&6; }
22606
22607else
22608 ac_cv_func_fork_works=$ac_cv_func_fork
22609fi
22610if test "x$ac_cv_func_fork_works" = xcross; then
22611 case $host in
22612 *-*-amigaos* | *-*-msdosdjgpp*)
22613 # Override, as these systems have only a dummy fork() stub
22614 ac_cv_func_fork_works=no
22615 ;;
22616 *)
22617 ac_cv_func_fork_works=yes
22618 ;;
22619 esac
cristy8b350f62009-11-15 23:12:43 +000022620 { $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 +000022621$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22622fi
22623ac_cv_func_vfork_works=$ac_cv_func_vfork
22624if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022626$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022627if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 $as_echo_n "(cached) " >&6
22629else
cristy8b350f62009-11-15 23:12:43 +000022630 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 ac_cv_func_vfork_works=cross
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022634/* end confdefs.h. */
22635/* Thanks to Paul Eggert for this test. */
22636$ac_includes_default
22637#include <sys/wait.h>
22638#ifdef HAVE_VFORK_H
22639# include <vfork.h>
22640#endif
22641/* On some sparc systems, changes by the child to local and incoming
22642 argument registers are propagated back to the parent. The compiler
22643 is told about this with #include <vfork.h>, but some compilers
22644 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22645 static variable whose address is put into a register that is
22646 clobbered by the vfork. */
22647static void
22648#ifdef __cplusplus
22649sparc_address_test (int arg)
22650# else
22651sparc_address_test (arg) int arg;
22652#endif
22653{
22654 static pid_t child;
22655 if (!child) {
22656 child = vfork ();
22657 if (child < 0) {
22658 perror ("vfork");
22659 _exit(2);
22660 }
22661 if (!child) {
22662 arg = getpid();
22663 write(-1, "", 0);
22664 _exit (arg);
22665 }
22666 }
22667}
22668
22669int
22670main ()
22671{
22672 pid_t parent = getpid ();
22673 pid_t child;
22674
22675 sparc_address_test (0);
22676
22677 child = vfork ();
22678
22679 if (child == 0) {
22680 /* Here is another test for sparc vfork register problems. This
22681 test uses lots of local variables, at least as many local
22682 variables as main has allocated so far including compiler
22683 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22684 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22685 reuse the register of parent for one of the local variables,
22686 since it will think that parent can't possibly be used any more
22687 in this routine. Assigning to the local variable will thus
22688 munge parent in the parent process. */
22689 pid_t
22690 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22691 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22692 /* Convince the compiler that p..p7 are live; otherwise, it might
22693 use the same hardware register for all 8 local variables. */
22694 if (p != p1 || p != p2 || p != p3 || p != p4
22695 || p != p5 || p != p6 || p != p7)
22696 _exit(1);
22697
22698 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22699 from child file descriptors. If the child closes a descriptor
22700 before it execs or exits, this munges the parent's descriptor
22701 as well. Test for this by closing stdout in the child. */
22702 _exit(close(fileno(stdout)) != 0);
22703 } else {
22704 int status;
22705 struct stat st;
22706
22707 while (wait(&status) != child)
22708 ;
22709 return (
22710 /* Was there some problem with vforking? */
22711 child < 0
22712
22713 /* Did the child fail? (This shouldn't happen.) */
22714 || status
22715
22716 /* Did the vfork/compiler bug occur? */
22717 || parent != getpid()
22718
22719 /* Did the file descriptor bug occur? */
22720 || fstat(fileno(stdout), &st) != 0
22721 );
22722 }
22723}
22724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022725if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022726 ac_cv_func_vfork_works=yes
22727else
cristy8b350f62009-11-15 23:12:43 +000022728 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022729fi
cristy8b350f62009-11-15 23:12:43 +000022730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22731 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022732fi
22733
cristy3ed852e2009-09-05 21:47:34 +000022734fi
cristy8b350f62009-11-15 23:12:43 +000022735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo "$ac_cv_func_vfork_works" >&6; }
22737
22738fi;
22739if test "x$ac_cv_func_fork_works" = xcross; then
22740 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022741 { $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 +000022742$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22743fi
22744
22745if test "x$ac_cv_func_vfork_works" = xyes; then
22746
cristy8b350f62009-11-15 23:12:43 +000022747$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022748
22749else
22750
cristy8b350f62009-11-15 23:12:43 +000022751$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022752
22753fi
22754if test "x$ac_cv_func_fork_works" = xyes; then
22755
cristy8b350f62009-11-15 23:12:43 +000022756$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022757
22758fi
22759
cristy8b350f62009-11-15 23:12:43 +000022760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022761$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022762if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022763 $as_echo_n "(cached) " >&6
22764else
cristy8b350f62009-11-15 23:12:43 +000022765 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022766 ac_cv_func_memcmp_working=no
22767else
cristy8b350f62009-11-15 23:12:43 +000022768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022769/* end confdefs.h. */
22770$ac_includes_default
22771int
22772main ()
22773{
22774
22775 /* Some versions of memcmp are not 8-bit clean. */
22776 char c0 = '\100', c1 = '\200', c2 = '\201';
22777 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22778 return 1;
22779
22780 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22781 or more and with at least one buffer not starting on a 4-byte boundary.
22782 William Lewis provided this test program. */
22783 {
22784 char foo[21];
22785 char bar[21];
22786 int i;
22787 for (i = 0; i < 4; i++)
22788 {
22789 char *a = foo + i;
22790 char *b = bar + i;
22791 strcpy (a, "--------01111111");
22792 strcpy (b, "--------10000000");
22793 if (memcmp (a, b, 16) >= 0)
22794 return 1;
22795 }
22796 return 0;
22797 }
22798
22799 ;
22800 return 0;
22801}
22802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022803if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022804 ac_cv_func_memcmp_working=yes
22805else
cristy8b350f62009-11-15 23:12:43 +000022806 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022807fi
cristy8b350f62009-11-15 23:12:43 +000022808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22809 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022810fi
22811
cristy3ed852e2009-09-05 21:47:34 +000022812fi
cristy8b350f62009-11-15 23:12:43 +000022813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022814$as_echo "$ac_cv_func_memcmp_working" >&6; }
22815test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22816 *" memcmp.$ac_objext "* ) ;;
22817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22818 ;;
22819esac
22820
22821
cristy3ed852e2009-09-05 21:47:34 +000022822for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022823do :
22824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22825ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022827 cat >>confdefs.h <<_ACEOF
22828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22829_ACEOF
22830
22831fi
22832
22833done
22834
cristy8b350f62009-11-15 23:12:43 +000022835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022836$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022837if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022838 $as_echo_n "(cached) " >&6
22839else
22840 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22841 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22842 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022844/* end confdefs.h. */
22845$ac_includes_default
22846#ifdef HAVE_SYS_SELECT_H
22847# include <sys/select.h>
22848#endif
22849#ifdef HAVE_SYS_SOCKET_H
22850# include <sys/socket.h>
22851#endif
22852
22853int
22854main ()
22855{
22856extern int select ($ac_arg1,
22857 $ac_arg234, $ac_arg234, $ac_arg234,
22858 $ac_arg5);
22859 ;
22860 return 0;
22861}
22862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022863if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022864 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022865fi
cristy3ed852e2009-09-05 21:47:34 +000022866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 done
22868 done
22869done
22870# Provide a safe default value.
22871: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22872
22873fi
cristy8b350f62009-11-15 23:12:43 +000022874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022875$as_echo "$ac_cv_func_select_args" >&6; }
22876ac_save_IFS=$IFS; IFS=','
22877set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22878IFS=$ac_save_IFS
22879shift
22880
22881cat >>confdefs.h <<_ACEOF
22882#define SELECT_TYPE_ARG1 $1
22883_ACEOF
22884
22885
22886cat >>confdefs.h <<_ACEOF
22887#define SELECT_TYPE_ARG234 ($2)
22888_ACEOF
22889
22890
22891cat >>confdefs.h <<_ACEOF
22892#define SELECT_TYPE_ARG5 ($3)
22893_ACEOF
22894
22895rm -f conftest*
22896
cristy8b350f62009-11-15 23:12:43 +000022897if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022898 $as_echo_n "(cached) " >&6
22899else
22900 ac_cv_func_setvbuf_reversed=no
22901fi
22902
22903
cristy8b350f62009-11-15 23:12:43 +000022904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022905$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022906if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022907 $as_echo_n "(cached) " >&6
22908else
cristy8b350f62009-11-15 23:12:43 +000022909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022910/* end confdefs.h. */
22911#include <sys/types.h>
22912#include <signal.h>
22913
22914int
22915main ()
22916{
22917return *(signal (0, 0)) (0) == 1;
22918 ;
22919 return 0;
22920}
22921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022923 ac_cv_type_signal=int
22924else
cristy8b350f62009-11-15 23:12:43 +000022925 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022926fi
cristy3ed852e2009-09-05 21:47:34 +000022927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo "$ac_cv_type_signal" >&6; }
22931
22932cat >>confdefs.h <<_ACEOF
22933#define RETSIGTYPE $ac_cv_type_signal
22934_ACEOF
22935
22936
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 $as_echo_n "(cached) " >&6
22941else
cristy8b350f62009-11-15 23:12:43 +000022942 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 ac_cv_func_strtod=no
22944else
cristy8b350f62009-11-15 23:12:43 +000022945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022946/* end confdefs.h. */
22947
22948$ac_includes_default
22949#ifndef strtod
22950double strtod ();
22951#endif
22952int
22953main()
22954{
22955 {
22956 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22957 char *string = " +69";
22958 char *term;
22959 double value;
22960 value = strtod (string, &term);
22961 if (value != 69 || term != (string + 4))
22962 return 1;
22963 }
22964
22965 {
22966 /* Under Solaris 2.4, strtod returns the wrong value for the
22967 terminating character under some conditions. */
22968 char *string = "NaN";
22969 char *term;
22970 strtod (string, &term);
22971 if (term != string && *(term - 1) == 0)
22972 return 1;
22973 }
22974 return 0;
22975}
22976
22977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022978if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022979 ac_cv_func_strtod=yes
22980else
cristy8b350f62009-11-15 23:12:43 +000022981 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022982fi
cristy8b350f62009-11-15 23:12:43 +000022983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22984 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022985fi
22986
cristy3ed852e2009-09-05 21:47:34 +000022987fi
cristy8b350f62009-11-15 23:12:43 +000022988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022989$as_echo "$ac_cv_func_strtod" >&6; }
22990if test $ac_cv_func_strtod = no; then
22991 case " $LIBOBJS " in
22992 *" strtod.$ac_objext "* ) ;;
22993 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22994 ;;
22995esac
22996
cristy8b350f62009-11-15 23:12:43 +000022997ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22998if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022999
cristy3ed852e2009-09-05 21:47:34 +000023000fi
23001
cristy3ed852e2009-09-05 21:47:34 +000023002if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023004$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023005if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023006 $as_echo_n "(cached) " >&6
23007else
23008 ac_check_lib_save_LIBS=$LIBS
23009LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023011/* end confdefs.h. */
23012
23013/* Override any GCC internal prototype to avoid an error.
23014 Use char because int might match the return type of a GCC
23015 builtin and then its argument prototype would still apply. */
23016#ifdef __cplusplus
23017extern "C"
23018#endif
23019char pow ();
23020int
23021main ()
23022{
23023return pow ();
23024 ;
23025 return 0;
23026}
23027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023029 ac_cv_lib_m_pow=yes
23030else
cristy8b350f62009-11-15 23:12:43 +000023031 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023032fi
cristy8b350f62009-11-15 23:12:43 +000023033rm -f core conftest.err conftest.$ac_objext \
23034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035LIBS=$ac_check_lib_save_LIBS
23036fi
cristy8b350f62009-11-15 23:12:43 +000023037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023038$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023039if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023040 POW_LIB=-lm
23041else
cristy8b350f62009-11-15 23:12:43 +000023042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023043$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23044fi
23045
23046fi
23047
23048fi
23049
cristy3ed852e2009-09-05 21:47:34 +000023050for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023051do :
23052 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23053if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023054 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023055#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023056_ACEOF
23057
cristy8b350f62009-11-15 23:12:43 +000023058ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23059if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023060
cristy8b350f62009-11-15 23:12:43 +000023061$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023062
23063fi
23064
23065fi
23066done
23067
23068
23069
cristy161b9262010-03-20 19:34:32 +000023070#
23071# Find math library
23072#
23073MATH_LIBS=''
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23075$as_echo_n "checking for sqrt in -lm... " >&6; }
23076if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23077 $as_echo_n "(cached) " >&6
23078else
23079 ac_check_lib_save_LIBS=$LIBS
23080LIBS="-lm $LIBS"
23081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23082/* end confdefs.h. */
23083
23084/* Override any GCC internal prototype to avoid an error.
23085 Use char because int might match the return type of a GCC
23086 builtin and then its argument prototype would still apply. */
23087#ifdef __cplusplus
23088extern "C"
23089#endif
23090char sqrt ();
23091int
23092main ()
23093{
23094return sqrt ();
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099if ac_fn_c_try_link "$LINENO"; then :
23100 ac_cv_lib_m_sqrt=yes
23101else
23102 ac_cv_lib_m_sqrt=no
23103fi
23104rm -f core conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23106LIBS=$ac_check_lib_save_LIBS
23107fi
23108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23109$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23110if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23111 MATH_LIBS="-lm"
23112fi
23113
23114LIBS="$MATH_LIBS $LIBS"
23115
23116
cristyf1897e32010-08-29 19:59:09 +000023117for 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 +000023118do :
23119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23120ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023121if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023122 cat >>confdefs.h <<_ACEOF
23123#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23124_ACEOF
23125
23126fi
23127done
23128
23129
cristye43a45e2009-09-28 14:49:00 +000023130#
23131# Check for clock_gettime().
23132#
cristy8b350f62009-11-15 23:12:43 +000023133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023134$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023135if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023136 $as_echo_n "(cached) " >&6
23137else
23138 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023140/* end confdefs.h. */
23141
23142/* Override any GCC internal prototype to avoid an error.
23143 Use char because int might match the return type of a GCC
23144 builtin and then its argument prototype would still apply. */
23145#ifdef __cplusplus
23146extern "C"
23147#endif
23148char clock_gettime ();
23149int
23150main ()
23151{
23152return clock_gettime ();
23153 ;
23154 return 0;
23155}
23156_ACEOF
23157for ac_lib in '' rt; do
23158 if test -z "$ac_lib"; then
23159 ac_res="none required"
23160 else
23161 ac_res=-l$ac_lib
23162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23163 fi
cristy8b350f62009-11-15 23:12:43 +000023164 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023165 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023166fi
cristy8b350f62009-11-15 23:12:43 +000023167rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext
23169 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023170 break
23171fi
23172done
cristy8b350f62009-11-15 23:12:43 +000023173if test "${ac_cv_search_clock_gettime+set}" = set; then :
23174
cristye43a45e2009-09-28 14:49:00 +000023175else
23176 ac_cv_search_clock_gettime=no
23177fi
23178rm conftest.$ac_ext
23179LIBS=$ac_func_search_save_LIBS
23180fi
cristy8b350f62009-11-15 23:12:43 +000023181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023182$as_echo "$ac_cv_search_clock_gettime" >&6; }
23183ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023184if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23186
23187
cristy8b350f62009-11-15 23:12:43 +000023188$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023189
cristy8b350f62009-11-15 23:12:43 +000023190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023191$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023193/* end confdefs.h. */
23194#include <time.h>
23195int
23196main ()
23197{
23198clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023199 ;
23200 return 0;
23201}
23202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023203if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023204
cristy8b350f62009-11-15 23:12:43 +000023205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023206$as_echo "yes" >&6; }
23207
cristy8b350f62009-11-15 23:12:43 +000023208$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023209
23210
23211else
cristy8b350f62009-11-15 23:12:43 +000023212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023213$as_echo "no" >&6; }
23214
23215fi
cristye43a45e2009-09-28 14:49:00 +000023216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217
23218else
23219
cristy8b350f62009-11-15 23:12:43 +000023220 for ac_func in gettimeofday ftime
23221do :
23222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23223ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023224if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023225 cat >>confdefs.h <<_ACEOF
23226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23227_ACEOF
23228 break
23229fi
23230done
23231
23232
23233
23234fi
23235
23236
cristy3ed852e2009-09-05 21:47:34 +000023237########
23238#
23239# Check for function prototypes
23240#
23241########
23242
cristy8b350f62009-11-15 23:12:43 +000023243ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023244#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023245"
23246if test "x$ac_cv_have_decl_pread" = x""yes; then :
23247 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023248else
cristy8b350f62009-11-15 23:12:43 +000023249 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023250fi
23251
cristy3ed852e2009-09-05 21:47:34 +000023252cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023253#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023255ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023256#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023257"
23258if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23259 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023260else
cristy8b350f62009-11-15 23:12:43 +000023261 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023262fi
23263
cristy3ed852e2009-09-05 21:47:34 +000023264cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023265#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023266_ACEOF
23267
23268
cristy8b350f62009-11-15 23:12:43 +000023269ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023270#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023271"
23272if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23273 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023274else
cristy8b350f62009-11-15 23:12:43 +000023275 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023276fi
23277
cristy3ed852e2009-09-05 21:47:34 +000023278cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023279#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023280_ACEOF
23281
23282
cristy8b350f62009-11-15 23:12:43 +000023283ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023284#include <stdio.h>
23285#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023286"
23287if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23288 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy8b350f62009-11-15 23:12:43 +000023290 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023291fi
23292
cristy3ed852e2009-09-05 21:47:34 +000023293cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023294#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023295_ACEOF
23296
23297
cristy3ed852e2009-09-05 21:47:34 +000023298########
23299#
23300# C++ Support Tests (For Magick++)
23301#
23302########
23303have_magick_plus_plus='no'
23304if test "$with_magick_plus_plus" = 'yes'; then
23305 OLIBS="$LIBS"
23306 LIBS=''
23307 ac_ext=cpp
23308ac_cpp='$CXXCPP $CPPFLAGS'
23309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23312
23313
23314 # Full set of headers used...
23315 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23316 # functional iomanip iosfwd iostream iterator list string strstream utility
23317 ac_ext=cpp
23318ac_cpp='$CXXCPP $CPPFLAGS'
23319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23322
23323 ac_ext=cpp
23324ac_cpp='$CXXCPP $CPPFLAGS'
23325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23328if test -z "$CXX"; then
23329 if test -n "$CCC"; then
23330 CXX=$CCC
23331 else
23332 if test -n "$ac_tool_prefix"; then
23333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23334 do
23335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023339if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023340 $as_echo_n "(cached) " >&6
23341else
23342 if test -n "$CXX"; then
23343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23344else
23345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23346for as_dir in $PATH
23347do
23348 IFS=$as_save_IFS
23349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354 break 2
23355 fi
23356done
cristy8b350f62009-11-15 23:12:43 +000023357 done
cristy3ed852e2009-09-05 21:47:34 +000023358IFS=$as_save_IFS
23359
23360fi
23361fi
23362CXX=$ac_cv_prog_CXX
23363if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023365$as_echo "$CXX" >&6; }
23366else
cristy8b350f62009-11-15 23:12:43 +000023367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023368$as_echo "no" >&6; }
23369fi
23370
23371
23372 test -n "$CXX" && break
23373 done
23374fi
23375if test -z "$CXX"; then
23376 ac_ct_CXX=$CXX
23377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23378do
23379 # Extract the first word of "$ac_prog", so it can be a program name with args.
23380set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023382$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023383if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023384 $as_echo_n "(cached) " >&6
23385else
23386 if test -n "$ac_ct_CXX"; then
23387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23388else
23389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23390for as_dir in $PATH
23391do
23392 IFS=$as_save_IFS
23393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23396 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398 break 2
23399 fi
23400done
cristy8b350f62009-11-15 23:12:43 +000023401 done
cristy3ed852e2009-09-05 21:47:34 +000023402IFS=$as_save_IFS
23403
23404fi
23405fi
23406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23407if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "$ac_ct_CXX" >&6; }
23410else
cristy8b350f62009-11-15 23:12:43 +000023411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo "no" >&6; }
23413fi
23414
23415
23416 test -n "$ac_ct_CXX" && break
23417done
23418
23419 if test "x$ac_ct_CXX" = x; then
23420 CXX="g++"
23421 else
23422 case $cross_compiling:$ac_tool_warned in
23423yes:)
cristy8b350f62009-11-15 23:12:43 +000023424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23426ac_tool_warned=yes ;;
23427esac
23428 CXX=$ac_ct_CXX
23429 fi
23430fi
23431
23432 fi
23433fi
23434# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023435$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023436set X $ac_compile
23437ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023438for ac_option in --version -v -V -qversion; do
23439 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023440case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23443esac
cristy8b350f62009-11-15 23:12:43 +000023444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23445$as_echo "$ac_try_echo"; } >&5
23446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023447 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023448 if test -s conftest.err; then
23449 sed '10a\
23450... rest of stderr output deleted ...
23451 10q' conftest.err >conftest.er1
23452 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023453 fi
cristycd4c5312009-11-22 01:19:08 +000023454 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23456 test $ac_status = 0; }
23457done
cristy3ed852e2009-09-05 21:47:34 +000023458
cristy8b350f62009-11-15 23:12:43 +000023459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023461if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023465/* end confdefs.h. */
23466
23467int
23468main ()
23469{
23470#ifndef __GNUC__
23471 choke me
23472#endif
23473
23474 ;
23475 return 0;
23476}
23477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023478if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023479 ac_compiler_gnu=yes
23480else
cristy8b350f62009-11-15 23:12:43 +000023481 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023482fi
cristy3ed852e2009-09-05 21:47:34 +000023483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23485
23486fi
cristy8b350f62009-11-15 23:12:43 +000023487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023488$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23489if test $ac_compiler_gnu = yes; then
23490 GXX=yes
23491else
23492 GXX=
23493fi
23494ac_test_CXXFLAGS=${CXXFLAGS+set}
23495ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023497$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023498if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023499 $as_echo_n "(cached) " >&6
23500else
23501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23502 ac_cxx_werror_flag=yes
23503 ac_cv_prog_cxx_g=no
23504 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023506/* end confdefs.h. */
23507
23508int
23509main ()
23510{
23511
23512 ;
23513 return 0;
23514}
23515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023516if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023517 ac_cv_prog_cxx_g=yes
23518else
cristy8b350f62009-11-15 23:12:43 +000023519 CXXFLAGS=""
23520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023521/* end confdefs.h. */
23522
23523int
23524main ()
23525{
23526
23527 ;
23528 return 0;
23529}
23530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023531if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023532
cristy8b350f62009-11-15 23:12:43 +000023533else
23534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023535 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023537/* end confdefs.h. */
23538
23539int
23540main ()
23541{
23542
23543 ;
23544 return 0;
23545}
23546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023547if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023548 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023549fi
cristy3ed852e2009-09-05 21:47:34 +000023550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551fi
cristy3ed852e2009-09-05 21:47:34 +000023552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553fi
cristy3ed852e2009-09-05 21:47:34 +000023554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23556fi
cristy8b350f62009-11-15 23:12:43 +000023557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023558$as_echo "$ac_cv_prog_cxx_g" >&6; }
23559if test "$ac_test_CXXFLAGS" = set; then
23560 CXXFLAGS=$ac_save_CXXFLAGS
23561elif test $ac_cv_prog_cxx_g = yes; then
23562 if test "$GXX" = yes; then
23563 CXXFLAGS="-g -O2"
23564 else
23565 CXXFLAGS="-g"
23566 fi
23567else
23568 if test "$GXX" = yes; then
23569 CXXFLAGS="-O2"
23570 else
23571 CXXFLAGS=
23572 fi
23573fi
23574ac_ext=cpp
23575ac_cpp='$CXXCPP $CPPFLAGS'
23576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23579
23580depcc="$CXX" am_compiler_list=
23581
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023584if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023585 $as_echo_n "(cached) " >&6
23586else
23587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23588 # We make a subdir and do the tests there. Otherwise we can end up
23589 # making bogus files that we don't know about and never remove. For
23590 # instance it was reported that on HP-UX the gcc test will end up
23591 # making a dummy file named `D' -- because `-MD' means `put the output
23592 # in D'.
23593 mkdir conftest.dir
23594 # Copy depcomp to subdir because otherwise we won't find it if we're
23595 # using a relative directory.
23596 cp "$am_depcomp" conftest.dir
23597 cd conftest.dir
23598 # We will build objects and dependencies in a subdirectory because
23599 # it helps to detect inapplicable dependency modes. For instance
23600 # both Tru64's cc and ICC support -MD to output dependencies as a
23601 # side effect of compilation, but ICC will put the dependencies in
23602 # the current directory while Tru64 will put them in the object
23603 # directory.
23604 mkdir sub
23605
23606 am_cv_CXX_dependencies_compiler_type=none
23607 if test "$am_compiler_list" = ""; then
23608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23609 fi
23610 am__universal=false
23611 case " $depcc " in #(
23612 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23613 esac
23614
23615 for depmode in $am_compiler_list; do
23616 # Setup a source with many dependencies, because some compilers
23617 # like to wrap large dependency lists on column 80 (with \), and
23618 # we should not choose a depcomp mode which is confused by this.
23619 #
23620 # We need to recreate these files for each test, as the compiler may
23621 # overwrite some of them when testing with obscure command lines.
23622 # This happens at least with the AIX C compiler.
23623 : > sub/conftest.c
23624 for i in 1 2 3 4 5 6; do
23625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23626 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23627 # Solaris 8's {/usr,}/bin/sh.
23628 touch sub/conftst$i.h
23629 done
23630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23631
23632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23633 # mode. It turns out that the SunPro C++ compiler does not properly
23634 # handle `-M -o', and we need to detect this. Also, some Intel
23635 # versions had trouble with output in subdirs
23636 am__obj=sub/conftest.${OBJEXT-o}
23637 am__minus_obj="-o $am__obj"
23638 case $depmode in
23639 gcc)
23640 # This depmode causes a compiler race in universal mode.
23641 test "$am__universal" = false || continue
23642 ;;
23643 nosideeffect)
23644 # after this tag, mechanisms are not by side-effect, so they'll
23645 # only be used when explicitly requested
23646 if test "x$enable_dependency_tracking" = xyes; then
23647 continue
23648 else
23649 break
23650 fi
23651 ;;
23652 msvisualcpp | msvcmsys)
23653 # This compiler won't grok `-c -o', but also, the minuso test has
23654 # not run yet. These depmodes are late enough in the game, and
23655 # so weak that their functioning should not be impacted.
23656 am__obj=conftest.${OBJEXT-o}
23657 am__minus_obj=
23658 ;;
23659 none) break ;;
23660 esac
23661 if depmode=$depmode \
23662 source=sub/conftest.c object=$am__obj \
23663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23664 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23665 >/dev/null 2>conftest.err &&
23666 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23667 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23668 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23669 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23670 # icc doesn't choke on unknown options, it will just issue warnings
23671 # or remarks (even with -Werror). So we grep stderr for any message
23672 # that says an option was ignored or not supported.
23673 # When given -MP, icc 7.0 and 7.1 complain thusly:
23674 # icc: Command line warning: ignoring option '-M'; no argument required
23675 # The diagnosis changed in icc 8.0:
23676 # icc: Command line remark: option '-MP' not supported
23677 if (grep 'ignoring option' conftest.err ||
23678 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23679 am_cv_CXX_dependencies_compiler_type=$depmode
23680 break
23681 fi
23682 fi
23683 done
23684
23685 cd ..
23686 rm -rf conftest.dir
23687else
23688 am_cv_CXX_dependencies_compiler_type=none
23689fi
23690
23691fi
cristy8b350f62009-11-15 23:12:43 +000023692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023693$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23694CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23695
23696 if
23697 test "x$enable_dependency_tracking" != xno \
23698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23699 am__fastdepCXX_TRUE=
23700 am__fastdepCXX_FALSE='#'
23701else
23702 am__fastdepCXX_TRUE='#'
23703 am__fastdepCXX_FALSE=
23704fi
23705
23706
cristy8b350f62009-11-15 23:12:43 +000023707 { $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 +000023708$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023709if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023710 $as_echo_n "(cached) " >&6
23711else
23712
23713 ac_ext=cpp
23714ac_cpp='$CXXCPP $CPPFLAGS'
23715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23718
cristy8b350f62009-11-15 23:12:43 +000023719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023720/* end confdefs.h. */
23721
23722int f(int x){return 1;}
23723int f(char x){return 1;}
23724int f(bool x){return 1;}
23725
23726int
23727main ()
23728{
23729bool b = true; return f(b);
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023735 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023736else
cristy964cb7f2010-04-25 23:18:00 +000023737 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023738fi
cristy3ed852e2009-09-05 21:47:34 +000023739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 ac_ext=cpp
23741ac_cpp='$CXXCPP $CPPFLAGS'
23742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23745
23746
23747fi
cristy964cb7f2010-04-25 23:18:00 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23749$as_echo "$ax_cv_cxx_bool" >&6; }
23750if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023751
cristy8b350f62009-11-15 23:12:43 +000023752$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023753
23754fi
23755
cristy8b350f62009-11-15 23:12:43 +000023756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023758if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023759 $as_echo_n "(cached) " >&6
23760else
23761
23762 ac_ext=cpp
23763ac_cpp='$CXXCPP $CPPFLAGS'
23764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23767
cristy8b350f62009-11-15 23:12:43 +000023768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023769/* end confdefs.h. */
23770namespace Outer { namespace Inner { int i = 0; }}
23771int
23772main ()
23773{
23774using namespace Outer::Inner; return i;
23775 ;
23776 return 0;
23777}
23778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023779if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023780 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023781else
cristy964cb7f2010-04-25 23:18:00 +000023782 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023783fi
cristy3ed852e2009-09-05 21:47:34 +000023784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 ac_ext=cpp
23786ac_cpp='$CXXCPP $CPPFLAGS'
23787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23790
23791
23792fi
cristy964cb7f2010-04-25 23:18:00 +000023793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23794$as_echo "$ax_cv_cxx_namespaces" >&6; }
23795if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023796
cristy8b350f62009-11-15 23:12:43 +000023797$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023798
23799fi
23800
cristy964cb7f2010-04-25 23:18:00 +000023801
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23803$as_echo_n "checking if g++ supports namespace std... " >&6; }
23804if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023805 $as_echo_n "(cached) " >&6
23806else
23807
cristy964cb7f2010-04-25 23:18:00 +000023808 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023809ac_cpp='$CXXCPP $CPPFLAGS'
23810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23813
cristy964cb7f2010-04-25 23:18:00 +000023814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023815/* end confdefs.h. */
23816#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023817 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023818int
23819main ()
23820{
cristy964cb7f2010-04-25 23:18:00 +000023821
cristy3ed852e2009-09-05 21:47:34 +000023822 ;
23823 return 0;
23824}
23825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023826if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023827 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023828else
cristy964cb7f2010-04-25 23:18:00 +000023829 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023830fi
cristy3ed852e2009-09-05 21:47:34 +000023831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023832 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023833ac_cpp='$CXXCPP $CPPFLAGS'
23834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23837
23838
23839fi
cristy964cb7f2010-04-25 23:18:00 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23841$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23842 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023843
cristy964cb7f2010-04-25 23:18:00 +000023844$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023845
cristy964cb7f2010-04-25 23:18:00 +000023846 fi
cristy3ed852e2009-09-05 21:47:34 +000023847
cristy8b350f62009-11-15 23:12:43 +000023848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023849$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023850if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023851 $as_echo_n "(cached) " >&6
23852else
23853
23854
23855 ac_ext=cpp
23856ac_cpp='$CXXCPP $CPPFLAGS'
23857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23860
cristy8b350f62009-11-15 23:12:43 +000023861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023862/* end confdefs.h. */
23863#include <iostream>
23864#include <map>
23865#include <iomanip>
23866#include <cmath>
23867#ifdef HAVE_NAMESPACES
23868using namespace std;
23869#endif
23870int
23871main ()
23872{
23873return 0;
23874 ;
23875 return 0;
23876}
23877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023878if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023879 ac_cv_cxx_have_std_libs=yes
23880else
cristy8b350f62009-11-15 23:12:43 +000023881 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023882fi
cristy3ed852e2009-09-05 21:47:34 +000023883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 ac_ext=cpp
23885ac_cpp='$CXXCPP $CPPFLAGS'
23886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23889
23890
23891fi
cristy8b350f62009-11-15 23:12:43 +000023892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23894if test "$ac_cv_cxx_have_std_libs" = yes; then
23895
cristy8b350f62009-11-15 23:12:43 +000023896$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023897
23898fi
23899
cristy8b350f62009-11-15 23:12:43 +000023900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023901$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023902if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023903 $as_echo_n "(cached) " >&6
23904else
23905
23906 ac_ext=cpp
23907ac_cpp='$CXXCPP $CPPFLAGS'
23908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23911
cristy8b350f62009-11-15 23:12:43 +000023912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023913/* end confdefs.h. */
23914const wchar_t* s=L"wide string";
23915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023916if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 ac_cv_cxx_have_lstring=yes
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023920fi
cristy3ed852e2009-09-05 21:47:34 +000023921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 ac_ext=cpp
23923ac_cpp='$CXXCPP $CPPFLAGS'
23924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23927
23928
23929fi
cristy8b350f62009-11-15 23:12:43 +000023930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023931$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23932if test "$ac_cv_cxx_have_lstring" = yes; then
23933
cristy8b350f62009-11-15 23:12:43 +000023934$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023935
23936fi
23937
23938
23939 OPENMP_CXXFLAGS=
23940 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023941if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023942 enableval=$enable_openmp;
23943fi
23944
23945 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23947$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023948if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023949 $as_echo_n "(cached) " >&6
23950else
cristy8b350f62009-11-15 23:12:43 +000023951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23952/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023953
23954#ifndef _OPENMP
23955 choke me
23956#endif
23957#include <omp.h>
23958int main () { return omp_get_num_threads (); }
23959
23960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023961if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023962 ac_cv_prog_cxx_openmp='none needed'
23963else
cristy8b350f62009-11-15 23:12:43 +000023964 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023965 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23966 ac_save_CXXFLAGS=$CXXFLAGS
23967 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023970
23971#ifndef _OPENMP
23972 choke me
23973#endif
23974#include <omp.h>
23975int main () { return omp_get_num_threads (); }
23976
23977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023978if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023979 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023980fi
cristy8b350f62009-11-15 23:12:43 +000023981rm -f core conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023983 CXXFLAGS=$ac_save_CXXFLAGS
23984 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23985 break
23986 fi
23987 done
23988fi
cristy8b350f62009-11-15 23:12:43 +000023989rm -f core conftest.err conftest.$ac_objext \
23990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023991fi
cristy8b350f62009-11-15 23:12:43 +000023992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023993$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23994 case $ac_cv_prog_cxx_openmp in #(
23995 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023996 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023997 *)
cristy8b350f62009-11-15 23:12:43 +000023998 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023999 esac
24000 fi
24001
24002
24003 ac_ext=c
24004ac_cpp='$CPP $CPPFLAGS'
24005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24007ac_compiler_gnu=$ac_cv_c_compiler_gnu
24008
24009
cristy8b350f62009-11-15 23:12:43 +000024010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024011$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24012 if \
cristy964cb7f2010-04-25 23:18:00 +000024013 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024014 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024015 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024016 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024017 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024018 have_magick_plus_plus='yes'
24019 else
24020 have_magick_plus_plus='no (failed tests)'
24021 fi
cristy8b350f62009-11-15 23:12:43 +000024022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024023$as_echo "$have_magick_plus_plus" >&6; }
24024 LIBS="$OLIBS"
24025fi
24026 if test "$have_magick_plus_plus" = 'yes'; then
24027 WITH_MAGICK_PLUS_PLUS_TRUE=
24028 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24029else
24030 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24031 WITH_MAGICK_PLUS_PLUS_FALSE=
24032fi
24033
24034
24035# Only check for delegate libraries in subdirectories if requested.
24036if test "$enable_delegate_build" != 'no'; then
24037 # Check for delegate sub-directories and add -I & -L options as required.
24038 # This presumes that delegates are installed as detailed in the ImageMagick
24039 # README. If delegates are installed in a standard location where the
24040 # compiler will automatically find them then these options should not be
24041 # required.
24042
24043 #
24044 # Most delegates have includes in the same directory as the library, but not all...
24045 #
24046 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024047 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 +000024048 if test -d "$builddir/$dir"; then
24049 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24050 else
24051 if test -d "$srcdirfull/$dir"; then
24052 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24053 fi
24054 fi
24055 done
24056
24057 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024058 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 +000024059 if test -d "$builddir/$dir/.libs"; then
24060 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24061 else
24062 if test -d "$srcdirfull/$dir/.libs"; then
24063 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24064 fi
24065 fi
24066 if test -d "$builddir/$dir"; then
24067 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24068 else
24069 if test -d "$srcdirfull/$dir"; then
24070 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24071 fi
24072 fi
24073 done
24074fi
24075
24076# Assume that delegate headers reside under same directory as ImageMagick
24077# installation prefix.
24078MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24079
24080#
24081# Find the X11 RGB database
24082#
cristy8b350f62009-11-15 23:12:43 +000024083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024084$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024085if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 $as_echo_n "(cached) " >&6
24087else
24088 # Look for the header file in a standard set of common directories.
24089# Check X11 before X11Rn because it is often a symlink to the current release.
24090 for ac_dir in \
24091 /lib/usr/lib/X11 \
24092 /usr/X11/lib \
24093 /usr/X11R4/lib \
24094 /usr/X11R5/lib \
24095 /usr/X11R6/lib \
24096 /usr/X11R7/lib \
24097 /usr/X386/lib \
24098 /usr/XFree86/lib/X11 \
24099 /usr/athena/lib \
24100 /usr/lib \
24101 /usr/lib/X11 \
24102 /usr/lib/X11R4 \
24103 /usr/lib/X11R5 \
24104 /usr/lib/X11R6 \
24105 /usr/lib/X11R7 \
24106 /usr/local/X11/lib \
24107 /usr/local/X11R4/lib \
24108 /usr/local/X11R5/lib \
24109 /usr/local/X11R6/lib \
24110 /usr/local/lib \
24111 /usr/local/lib/X11 \
24112 /usr/local/lib/X11R4 \
24113 /usr/local/lib/X11R5 \
24114 /usr/local/lib/X11R6 \
24115 /usr/local/lib/X11R7 \
24116 /usr/local/x11r5/lib \
24117 /usr/lpp/Xamples/lib \
24118 /usr/openwin/lib \
24119 /usr/openwin/share/lib \
24120 /usr/unsupported/lib \
24121 /usr/x386/lib \
24122 ; do
24123 if test -f "$ac_dir/X11/rgb.txt"; then
24124 im_cv_x_configure="$ac_dir/X11/"
24125 break
24126 elif test -f "$ac_dir/rgb.txt"; then
24127 im_cv_x_configure="$ac_dir/"
24128 break
24129 fi
24130
24131 done
24132fi
cristy8b350f62009-11-15 23:12:43 +000024133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo "$im_cv_x_configure" >&6; }
24135X11_CONFIGURE_PATH="$im_cv_x_configure"
24136case "${build_os}" in
24137 mingw* )
24138 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24139 ;;
24140esac
24141
24142cat >>confdefs.h <<_ACEOF
24143#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24144_ACEOF
24145
24146
24147#
24148# Find OpenMP library
24149#
24150GOMP_LIBS=''
24151if test "$enable_openmp" != 'no'; then
24152 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024154$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024155if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024156 $as_echo_n "(cached) " >&6
24157else
24158 ac_check_lib_save_LIBS=$LIBS
24159LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024161/* end confdefs.h. */
24162
24163/* Override any GCC internal prototype to avoid an error.
24164 Use char because int might match the return type of a GCC
24165 builtin and then its argument prototype would still apply. */
24166#ifdef __cplusplus
24167extern "C"
24168#endif
24169char GOMP_parallel_start ();
24170int
24171main ()
24172{
24173return GOMP_parallel_start ();
24174 ;
24175 return 0;
24176}
24177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024179 ac_cv_lib_gomp_GOMP_parallel_start=yes
24180else
cristy8b350f62009-11-15 23:12:43 +000024181 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024182fi
cristy8b350f62009-11-15 23:12:43 +000024183rm -f core conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024185LIBS=$ac_check_lib_save_LIBS
24186fi
cristy8b350f62009-11-15 23:12:43 +000024187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024188$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024189if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 GOMP_LIBS="-lgomp"
24191fi
24192 # gcc
24193 else
cristy8b350f62009-11-15 23:12:43 +000024194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024195$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024196if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 $as_echo_n "(cached) " >&6
24198else
24199 ac_check_lib_save_LIBS=$LIBS
24200LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024202/* end confdefs.h. */
24203
24204/* Override any GCC internal prototype to avoid an error.
24205 Use char because int might match the return type of a GCC
24206 builtin and then its argument prototype would still apply. */
24207#ifdef __cplusplus
24208extern "C"
24209#endif
24210char sunw_mp_register_warn ();
24211int
24212main ()
24213{
24214return sunw_mp_register_warn ();
24215 ;
24216 return 0;
24217}
24218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024220 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24221else
cristy8b350f62009-11-15 23:12:43 +000024222 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024223fi
cristy8b350f62009-11-15 23:12:43 +000024224rm -f core conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024226LIBS=$ac_check_lib_save_LIBS
24227fi
cristy8b350f62009-11-15 23:12:43 +000024228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024229$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024230if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024231 GOMP_LIBS="-lmtsk"
24232fi
24233 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024236if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
24239 ac_check_lib_save_LIBS=$LIBS
24240LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024242/* end confdefs.h. */
24243
24244/* Override any GCC internal prototype to avoid an error.
24245 Use char because int might match the return type of a GCC
24246 builtin and then its argument prototype would still apply. */
24247#ifdef __cplusplus
24248extern "C"
24249#endif
24250char _xlsmpFlush ();
24251int
24252main ()
24253{
24254return _xlsmpFlush ();
24255 ;
24256 return 0;
24257}
24258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024260 ac_cv_lib_xlsmp__xlsmpFlush=yes
24261else
cristy8b350f62009-11-15 23:12:43 +000024262 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024263fi
cristy8b350f62009-11-15 23:12:43 +000024264rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024266LIBS=$ac_check_lib_save_LIBS
24267fi
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024270if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024271 GOMP_LIBS="-lxlsmp"
24272fi
24273 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024276if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024277 $as_echo_n "(cached) " >&6
24278else
24279 ac_check_lib_save_LIBS=$LIBS
24280LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024282/* end confdefs.h. */
24283
24284/* Override any GCC internal prototype to avoid an error.
24285 Use char because int might match the return type of a GCC
24286 builtin and then its argument prototype would still apply. */
24287#ifdef __cplusplus
24288extern "C"
24289#endif
24290char mp_destroy ();
24291int
24292main ()
24293{
24294return mp_destroy ();
24295 ;
24296 return 0;
24297}
24298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 ac_cv_lib_mp_mp_destroy=yes
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024303fi
cristy8b350f62009-11-15 23:12:43 +000024304rm -f core conftest.err conftest.$ac_objext \
24305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024306LIBS=$ac_check_lib_save_LIBS
24307fi
cristy8b350f62009-11-15 23:12:43 +000024308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024310if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024311 GOMP_LIBS="-lmp"
24312fi
24313 # SGI IRIX 6.5 MIPSpro C/C++
24314 fi
24315 LIBS="$GOMP_LIBS $LIBS"
24316fi
24317
24318
24319#
24320# Find Posix threads library
24321#
24322THREAD_LIBS=''
24323if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24324
24325 if test "x$PTHREAD_LIBS" = "x"; then
24326 case "${host_cpu}-${host_os}" in
24327 *-freebsd*)
24328
24329
24330
24331ac_ext=c
24332ac_cpp='$CPP $CPPFLAGS'
24333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24335ac_compiler_gnu=$ac_cv_c_compiler_gnu
24336
24337magick_pthread_lib_ok=no
24338
24339LIB=-lc_r
24340save_LIBS="$LIBS"
24341LIBS="$LIBS $LIB"
24342
cristy8b350f62009-11-15 23:12:43 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024344$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024346/* end confdefs.h. */
24347#include <pthread.h>
24348int
24349main ()
24350{
24351 pthread_t th;
24352 pthread_join(th, 0);
24353 pthread_attr_init(0);
24354 pthread_cleanup_push(0, 0);
24355 pthread_create(0,0,0,0);
24356 pthread_cleanup_pop(0);
24357 ;
24358 return 0;
24359}
24360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024362 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024363fi
cristy8b350f62009-11-15 23:12:43 +000024364rm -f core conftest.err conftest.$ac_objext \
24365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024366
cristy8b350f62009-11-15 23:12:43 +000024367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024368$as_echo "${magick_pthread_lib_ok}" >&6; }
24369if test "$magick_pthread_lib_ok" = yes
24370then
24371 PTHREAD_LIBS=-lc_r
24372 :
24373else
24374
24375 :
24376fi
24377
24378LIBS="$save_LIBS"
24379
24380ac_ext=c
24381ac_cpp='$CPP $CPPFLAGS'
24382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384ac_compiler_gnu=$ac_cv_c_compiler_gnu
24385
24386 ;;
24387 esac
24388 fi
24389
24390 for lib in pthread pthreads; do
24391 if test "x$PTHREAD_LIBS" = "x"; then
24392
24393
24394
24395ac_ext=c
24396ac_cpp='$CPP $CPPFLAGS'
24397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24399ac_compiler_gnu=$ac_cv_c_compiler_gnu
24400
24401magick_pthread_lib_ok=no
24402
24403LIB=-l$lib
24404save_LIBS="$LIBS"
24405LIBS="$LIBS $LIB"
24406
cristy8b350f62009-11-15 23:12:43 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024408$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024410/* end confdefs.h. */
24411#include <pthread.h>
24412int
24413main ()
24414{
24415 pthread_t th;
24416 pthread_join(th, 0);
24417 pthread_attr_init(0);
24418 pthread_cleanup_push(0, 0);
24419 pthread_create(0,0,0,0);
24420 pthread_cleanup_pop(0);
24421 ;
24422 return 0;
24423}
24424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024426 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024427fi
cristy8b350f62009-11-15 23:12:43 +000024428rm -f core conftest.err conftest.$ac_objext \
24429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024430
cristy8b350f62009-11-15 23:12:43 +000024431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024432$as_echo "${magick_pthread_lib_ok}" >&6; }
24433if test "$magick_pthread_lib_ok" = yes
24434then
24435 PTHREAD_LIBS=-l$lib
24436 :
24437else
24438
24439 :
24440fi
24441
24442LIBS="$save_LIBS"
24443
24444ac_ext=c
24445ac_cpp='$CPP $CPPFLAGS'
24446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448ac_compiler_gnu=$ac_cv_c_compiler_gnu
24449
24450
24451 fi
24452 done
24453
24454 THREAD_LIBS="$PTHREAD_LIBS"
24455 LIBS="$LIBS $THREAD_LIBS"
24456fi
24457
24458
24459#
24460# Check for umem.
24461#
24462have_umem='no'
24463UMEM_LIBS=''
24464if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024468$as_echo "" >&6; }
24469 failed=0
24470 passed=0
cristy8b350f62009-11-15 23:12:43 +000024471 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24472if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 passed=`expr $passed + 1`
24474else
24475 failed=`expr $failed + 1`
24476fi
24477
24478
cristy8b350f62009-11-15 23:12:43 +000024479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024481if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 $as_echo_n "(cached) " >&6
24483else
24484 ac_check_lib_save_LIBS=$LIBS
24485LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024487/* end confdefs.h. */
24488
24489/* Override any GCC internal prototype to avoid an error.
24490 Use char because int might match the return type of a GCC
24491 builtin and then its argument prototype would still apply. */
24492#ifdef __cplusplus
24493extern "C"
24494#endif
24495char umem_alloc ();
24496int
24497main ()
24498{
24499return umem_alloc ();
24500 ;
24501 return 0;
24502}
24503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024504if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 ac_cv_lib_umem_umem_alloc=yes
24506else
cristy8b350f62009-11-15 23:12:43 +000024507 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024508fi
cristy8b350f62009-11-15 23:12:43 +000024509rm -f core conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024511LIBS=$ac_check_lib_save_LIBS
24512fi
cristy8b350f62009-11-15 23:12:43 +000024513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024515if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 passed=`expr $passed + 1`
24517else
24518 failed=`expr $failed + 1`
24519fi
24520
cristy8b350f62009-11-15 23:12:43 +000024521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024523if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 $as_echo_n "(cached) " >&6
24525else
24526 ac_check_lib_save_LIBS=$LIBS
24527LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024529/* end confdefs.h. */
24530
24531/* Override any GCC internal prototype to avoid an error.
24532 Use char because int might match the return type of a GCC
24533 builtin and then its argument prototype would still apply. */
24534#ifdef __cplusplus
24535extern "C"
24536#endif
24537char umem_free ();
24538int
24539main ()
24540{
24541return umem_free ();
24542 ;
24543 return 0;
24544}
24545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024546if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 ac_cv_lib_umem_umem_free=yes
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024550fi
cristy8b350f62009-11-15 23:12:43 +000024551rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024553LIBS=$ac_check_lib_save_LIBS
24554fi
cristy8b350f62009-11-15 23:12:43 +000024555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024556$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024557if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024558 passed=`expr $passed + 1`
24559else
24560 failed=`expr $failed + 1`
24561fi
24562
cristy8b350f62009-11-15 23:12:43 +000024563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24565 if test $passed -gt 0; then
24566 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo "no -- some components failed test" >&6; }
24569 have_umem='no (failed tests)'
24570 else
24571 UMEM_LIBS='-lumem'
24572 LIBS="$UMEM_LIBS $LIBS"
24573
cristy8b350f62009-11-15 23:12:43 +000024574$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024575
cristy8b350f62009-11-15 23:12:43 +000024576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024577$as_echo "yes" >&6; }
24578 have_umem='yes'
24579 fi
24580 else
cristy8b350f62009-11-15 23:12:43 +000024581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024582$as_echo "no" >&6; }
24583 fi
24584fi
24585 if test "$have_umem" = 'yes'; then
24586 HasUMEM_TRUE=
24587 HasUMEM_FALSE='#'
24588else
24589 HasUMEM_TRUE='#'
24590 HasUMEM_FALSE=
24591fi
24592
24593
24594
24595#
24596# Add support for ccmalloc memory debugging library if requested
24597#
24598have_ccmalloc='no'
24599CCMALLOC_LIBS=''
24600if test "$enable_ccmalloc" = 'yes'; then
24601 # Extract the first word of "ccmalloc", so it can be a program name with args.
24602set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024605if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024606 $as_echo_n "(cached) " >&6
24607else
24608 case $CCMALLOCDelegate in
24609 [\\/]* | ?:[\\/]*)
24610 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24611 ;;
24612 *)
24613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24614for as_dir in $PATH
24615do
24616 IFS=$as_save_IFS
24617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24620 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024622 break 2
24623 fi
24624done
cristy8b350f62009-11-15 23:12:43 +000024625 done
cristy3ed852e2009-09-05 21:47:34 +000024626IFS=$as_save_IFS
24627
24628 ;;
24629esac
24630fi
24631CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24632if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024634$as_echo "$CCMALLOCDelegate" >&6; }
24635else
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo "no" >&6; }
24638fi
24639
24640
24641 if test -n "$CCMALLOCDelegate"; then
24642 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24643 OLIBS="$LIBS"
24644 # Assume that gcc is used with ccmalloc.
24645 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024647$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024648if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 $as_echo_n "(cached) " >&6
24650else
24651 ac_check_lib_save_LIBS=$LIBS
24652LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024654/* end confdefs.h. */
24655
24656/* Override any GCC internal prototype to avoid an error.
24657 Use char because int might match the return type of a GCC
24658 builtin and then its argument prototype would still apply. */
24659#ifdef __cplusplus
24660extern "C"
24661#endif
24662char ccmalloc_malloc ();
24663int
24664main ()
24665{
24666return ccmalloc_malloc ();
24667 ;
24668 return 0;
24669}
24670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24673else
cristy8b350f62009-11-15 23:12:43 +000024674 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024675fi
cristy8b350f62009-11-15 23:12:43 +000024676rm -f core conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024678LIBS=$ac_check_lib_save_LIBS
24679fi
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024682if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24684fi
24685
24686 if test -n "$CCMALLOC_LIBS"; then
24687 LIBS="$OLIBS"
24688 LIBS="$LIBS $CCMALLOC_LIBS"
24689 have_ccmalloc='yes'
24690 else
24691 LIBS="$OLIBS"
24692 fi
24693 fi
24694fi
24695
24696#
24697# Add support for efence memory debugging library if requested
24698#
24699if test "$enable_efence" = 'yes'; then
24700 EFENCE_LIBS='-lefence'
24701 LIBS="$EFENCE_LIBS $LIBS"
24702fi
24703
cristy3ed852e2009-09-05 21:47:34 +000024704
24705#
24706# Check for BZLIB
24707#
24708
24709
24710# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024711if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024712 withval=$with_bzlib; with_bzlib=$withval
24713else
24714 with_bzlib='yes'
24715fi
24716
24717
24718if test "$with_bzlib" != 'yes'; then
24719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24720fi
24721
24722have_bzlib='no'
24723if test "$with_bzlib" != 'no'; then
24724 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024726$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo "" >&6; }
24731 failed=0
24732 passed=0
24733 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024734 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24735if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024736 passed=`expr $passed + 1`
24737else
24738 failed=`expr $failed + 1`
24739fi
24740
24741
cristy8b350f62009-11-15 23:12:43 +000024742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024744if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024745 $as_echo_n "(cached) " >&6
24746else
24747 ac_check_lib_save_LIBS=$LIBS
24748LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024750/* end confdefs.h. */
24751
24752/* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24755#ifdef __cplusplus
24756extern "C"
24757#endif
24758char BZ2_bzDecompress ();
24759int
24760main ()
24761{
24762return BZ2_bzDecompress ();
24763 ;
24764 return 0;
24765}
24766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024768 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24769else
cristy8b350f62009-11-15 23:12:43 +000024770 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024771fi
cristy8b350f62009-11-15 23:12:43 +000024772rm -f core conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024774LIBS=$ac_check_lib_save_LIBS
24775fi
cristy8b350f62009-11-15 23:12:43 +000024776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024777$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024778if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024779 found_libbz=`expr $found_libbz + 1`
24780fi
24781
24782 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024784$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024785if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024786 $as_echo_n "(cached) " >&6
24787else
24788 ac_check_lib_save_LIBS=$LIBS
24789LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024791/* end confdefs.h. */
24792
24793/* Override any GCC internal prototype to avoid an error.
24794 Use char because int might match the return type of a GCC
24795 builtin and then its argument prototype would still apply. */
24796#ifdef __cplusplus
24797extern "C"
24798#endif
24799char _imp__BZ2_decompress ();
24800int
24801main ()
24802{
24803return _imp__BZ2_decompress ();
24804 ;
24805 return 0;
24806}
24807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024809 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24810else
cristy8b350f62009-11-15 23:12:43 +000024811 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024812fi
cristy8b350f62009-11-15 23:12:43 +000024813rm -f core conftest.err conftest.$ac_objext \
24814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024815LIBS=$ac_check_lib_save_LIBS
24816fi
cristy8b350f62009-11-15 23:12:43 +000024817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024818$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024819if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024820 found_libbz=`expr $found_libbz + 1`
24821fi
24822
24823 fi
24824 if test $found_libbz -gt 0; then
24825 passed=`expr $passed + 1`
24826 else
24827 failed=`expr $failed + 1`
24828 fi
cristy8b350f62009-11-15 23:12:43 +000024829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024830$as_echo_n "checking if BZLIB package is complete... " >&6; }
24831 if test $passed -gt 0; then
24832 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024834$as_echo "no -- some components failed test" >&6; }
24835 have_bzlib='no (failed tests)'
24836 else
24837 BZLIB_LIBS='-lbz2'
24838 LIBS="$BZLIB_LIBS $LIBS"
24839
cristy8b350f62009-11-15 23:12:43 +000024840$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024841
cristy8b350f62009-11-15 23:12:43 +000024842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024843$as_echo "yes" >&6; }
24844 have_bzlib='yes'
24845 fi
24846 else
cristy8b350f62009-11-15 23:12:43 +000024847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024848$as_echo "no" >&6; }
24849 fi
24850fi
24851 if test "$have_bzlib" = 'yes'; then
24852 BZLIB_DELEGATE_TRUE=
24853 BZLIB_DELEGATE_FALSE='#'
24854else
24855 BZLIB_DELEGATE_TRUE='#'
24856 BZLIB_DELEGATE_FALSE=
24857fi
24858
24859
24860
24861#
24862# Find the X11 include and library directories.
24863#
24864IPC_LIBS=''
24865X11_LIBS=''
24866XEXT_LIBS=''
24867XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024869$as_echo_n "checking for X... " >&6; }
24870
24871
24872# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024873if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024874 withval=$with_x;
24875fi
24876
24877# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24878if test "x$with_x" = xno; then
24879 # The user explicitly disabled X.
24880 have_x=disabled
24881else
24882 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024883 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024884 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024885 $as_echo_n "(cached) " >&6
24886else
24887 # One or both of the vars are not set, and there is no cached value.
24888ac_x_includes=no ac_x_libraries=no
24889rm -f -r conftest.dir
24890if mkdir conftest.dir; then
24891 cd conftest.dir
24892 cat >Imakefile <<'_ACEOF'
24893incroot:
24894 @echo incroot='${INCROOT}'
24895usrlibdir:
24896 @echo usrlibdir='${USRLIBDIR}'
24897libdir:
24898 @echo libdir='${LIBDIR}'
24899_ACEOF
24900 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024901 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024902 for ac_var in incroot usrlibdir libdir; do
24903 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24904 done
24905 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24906 for ac_extension in a so sl dylib la dll; do
24907 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24908 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24909 ac_im_usrlibdir=$ac_im_libdir; break
24910 fi
24911 done
24912 # Screen out bogus values from the imake configuration. They are
24913 # bogus both because they are the default anyway, and because
24914 # using them would break gcc on systems where it needs fixed includes.
24915 case $ac_im_incroot in
24916 /usr/include) ac_x_includes= ;;
24917 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24918 esac
24919 case $ac_im_usrlibdir in
24920 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24921 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24922 esac
24923 fi
24924 cd ..
24925 rm -f -r conftest.dir
24926fi
24927
24928# Standard set of common directories for X headers.
24929# Check X11 before X11Rn because it is often a symlink to the current release.
24930ac_x_header_dirs='
24931/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024932/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024933/usr/X11R6/include
24934/usr/X11R5/include
24935/usr/X11R4/include
24936
24937/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024938/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024939/usr/include/X11R6
24940/usr/include/X11R5
24941/usr/include/X11R4
24942
24943/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024944/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024945/usr/local/X11R6/include
24946/usr/local/X11R5/include
24947/usr/local/X11R4/include
24948
24949/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024950/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024951/usr/local/include/X11R6
24952/usr/local/include/X11R5
24953/usr/local/include/X11R4
24954
24955/usr/X386/include
24956/usr/x386/include
24957/usr/XFree86/include/X11
24958
24959/usr/include
24960/usr/local/include
24961/usr/unsupported/include
24962/usr/athena/include
24963/usr/local/x11r5/include
24964/usr/lpp/Xamples/include
24965
24966/usr/openwin/include
24967/usr/openwin/share/include'
24968
24969if test "$ac_x_includes" = no; then
24970 # Guess where to find include files, by looking for Xlib.h.
24971 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024973/* end confdefs.h. */
24974#include <X11/Xlib.h>
24975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024976if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024977 # We can compile using X headers with no special include directory.
24978ac_x_includes=
24979else
cristyc7083c12009-10-14 03:16:55 +000024980 for ac_dir in $ac_x_header_dirs; do
24981 if test -r "$ac_dir/X11/Xlib.h"; then
24982 ac_x_includes=$ac_dir
24983 break
24984 fi
24985done
24986fi
cristyc7083c12009-10-14 03:16:55 +000024987rm -f conftest.err conftest.$ac_ext
24988fi # $ac_x_includes = no
24989
24990if test "$ac_x_libraries" = no; then
24991 # Check for the libraries.
24992 # See if we find them without any special options.
24993 # Don't add to $LIBS permanently.
24994 ac_save_LIBS=$LIBS
24995 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024997/* end confdefs.h. */
24998#include <X11/Xlib.h>
24999int
25000main ()
25001{
25002XrmInitialize ()
25003 ;
25004 return 0;
25005}
25006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025007if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025008 LIBS=$ac_save_LIBS
25009# We can link X programs with no special library path.
25010ac_x_libraries=
25011else
cristy8b350f62009-11-15 23:12:43 +000025012 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025013for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25014do
25015 # Don't even attempt the hair of trying to link an X program!
25016 for ac_extension in a so sl dylib la dll; do
25017 if test -r "$ac_dir/libX11.$ac_extension"; then
25018 ac_x_libraries=$ac_dir
25019 break 2
25020 fi
25021 done
25022done
25023fi
cristy8b350f62009-11-15 23:12:43 +000025024rm -f core conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025026fi # $ac_x_libraries = no
25027
25028case $ac_x_includes,$ac_x_libraries in #(
25029 no,* | *,no | *\'*)
25030 # Didn't find X, or a directory has "'" in its name.
25031 ac_cv_have_x="have_x=no";; #(
25032 *)
25033 # Record where we found X for the cache.
25034 ac_cv_have_x="have_x=yes\
25035 ac_x_includes='$ac_x_includes'\
25036 ac_x_libraries='$ac_x_libraries'"
25037esac
25038fi
25039;; #(
25040 *) have_x=yes;;
25041 esac
25042 eval "$ac_cv_have_x"
25043fi # $with_x != no
25044
25045if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025047$as_echo "$have_x" >&6; }
25048 no_x=yes
25049else
25050 # If each of the values was on the command line, it overrides each guess.
25051 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25052 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25053 # Update the cache value to reflect the command line values.
25054 ac_cv_have_x="have_x=yes\
25055 ac_x_includes='$x_includes'\
25056 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025058$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25059fi
25060
cristy3ed852e2009-09-05 21:47:34 +000025061if test "$no_x" = yes; then
25062 # Not all programs may use this symbol, but it does not hurt to define it.
25063
cristy8b350f62009-11-15 23:12:43 +000025064$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025065
25066 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25067else
25068 if test -n "$x_includes"; then
25069 X_CFLAGS="$X_CFLAGS -I$x_includes"
25070 fi
25071
25072 # It would also be nice to do this for all -L options, not just this one.
25073 if test -n "$x_libraries"; then
25074 X_LIBS="$X_LIBS -L$x_libraries"
25075 # For Solaris; some versions of Sun CC require a space after -R and
25076 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25079 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25080 ac_xsave_c_werror_flag=$ac_c_werror_flag
25081 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025083/* end confdefs.h. */
25084
25085int
25086main ()
25087{
25088
25089 ;
25090 return 0;
25091}
25092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025093if ac_fn_c_try_link "$LINENO"; then :
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025095$as_echo "no" >&6; }
25096 X_LIBS="$X_LIBS -R$x_libraries"
25097else
cristy8b350f62009-11-15 23:12:43 +000025098 LIBS="$ac_xsave_LIBS -R $x_libraries"
25099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025100/* end confdefs.h. */
25101
25102int
25103main ()
25104{
25105
25106 ;
25107 return 0;
25108}
25109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025110if ac_fn_c_try_link "$LINENO"; then :
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "yes" >&6; }
25113 X_LIBS="$X_LIBS -R $x_libraries"
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025116$as_echo "neither works" >&6; }
25117fi
cristy8b350f62009-11-15 23:12:43 +000025118rm -f core conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025120fi
cristy8b350f62009-11-15 23:12:43 +000025121rm -f core conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123 ac_c_werror_flag=$ac_xsave_c_werror_flag
25124 LIBS=$ac_xsave_LIBS
25125 fi
25126
25127 # Check for system-dependent libraries X programs must link with.
25128 # Do this before checking for the system-independent R6 libraries
25129 # (-lICE), since we may need -lsocket or whatever for X linking.
25130
25131 if test "$ISC" = yes; then
25132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25133 else
25134 # Martyn Johnson says this is needed for Ultrix, if the X
25135 # libraries were built with DECnet support. And Karl Berry says
25136 # the Alpha needs dnet_stub (dnet does not exist).
25137 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025139/* end confdefs.h. */
25140
25141/* Override any GCC internal prototype to avoid an error.
25142 Use char because int might match the return type of a GCC
25143 builtin and then its argument prototype would still apply. */
25144#ifdef __cplusplus
25145extern "C"
25146#endif
25147char XOpenDisplay ();
25148int
25149main ()
25150{
25151return XOpenDisplay ();
25152 ;
25153 return 0;
25154}
25155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025157
cristy8b350f62009-11-15 23:12:43 +000025158else
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025160$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025161if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025162 $as_echo_n "(cached) " >&6
25163else
25164 ac_check_lib_save_LIBS=$LIBS
25165LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025167/* end confdefs.h. */
25168
25169/* Override any GCC internal prototype to avoid an error.
25170 Use char because int might match the return type of a GCC
25171 builtin and then its argument prototype would still apply. */
25172#ifdef __cplusplus
25173extern "C"
25174#endif
25175char dnet_ntoa ();
25176int
25177main ()
25178{
25179return dnet_ntoa ();
25180 ;
25181 return 0;
25182}
25183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025185 ac_cv_lib_dnet_dnet_ntoa=yes
25186else
cristy8b350f62009-11-15 23:12:43 +000025187 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025188fi
cristy8b350f62009-11-15 23:12:43 +000025189rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025191LIBS=$ac_check_lib_save_LIBS
25192fi
cristy8b350f62009-11-15 23:12:43 +000025193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025194$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025195if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25197fi
25198
25199 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025201$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025202if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025203 $as_echo_n "(cached) " >&6
25204else
25205 ac_check_lib_save_LIBS=$LIBS
25206LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025208/* end confdefs.h. */
25209
25210/* Override any GCC internal prototype to avoid an error.
25211 Use char because int might match the return type of a GCC
25212 builtin and then its argument prototype would still apply. */
25213#ifdef __cplusplus
25214extern "C"
25215#endif
25216char dnet_ntoa ();
25217int
25218main ()
25219{
25220return dnet_ntoa ();
25221 ;
25222 return 0;
25223}
25224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25227else
cristy8b350f62009-11-15 23:12:43 +000025228 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025229fi
cristy8b350f62009-11-15 23:12:43 +000025230rm -f core conftest.err conftest.$ac_objext \
25231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025232LIBS=$ac_check_lib_save_LIBS
25233fi
cristy8b350f62009-11-15 23:12:43 +000025234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025235$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025236if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25238fi
25239
25240 fi
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025244 LIBS="$ac_xsave_LIBS"
25245
25246 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25247 # to get the SysV transport functions.
25248 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25249 # needs -lnsl.
25250 # The nsl library prevents programs from opening the X display
25251 # on Irix 5.2, according to T.E. Dickey.
25252 # The functions gethostbyname, getservbyname, and inet_addr are
25253 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025254 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25255if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025256
cristy3ed852e2009-09-05 21:47:34 +000025257fi
25258
cristy3ed852e2009-09-05 21:47:34 +000025259 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025262if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025263 $as_echo_n "(cached) " >&6
25264else
25265 ac_check_lib_save_LIBS=$LIBS
25266LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025268/* end confdefs.h. */
25269
25270/* Override any GCC internal prototype to avoid an error.
25271 Use char because int might match the return type of a GCC
25272 builtin and then its argument prototype would still apply. */
25273#ifdef __cplusplus
25274extern "C"
25275#endif
25276char gethostbyname ();
25277int
25278main ()
25279{
25280return gethostbyname ();
25281 ;
25282 return 0;
25283}
25284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025286 ac_cv_lib_nsl_gethostbyname=yes
25287else
cristy8b350f62009-11-15 23:12:43 +000025288 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025289fi
cristy8b350f62009-11-15 23:12:43 +000025290rm -f core conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025292LIBS=$ac_check_lib_save_LIBS
25293fi
cristy8b350f62009-11-15 23:12:43 +000025294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025296if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25298fi
25299
25300 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025302$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025303if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025304 $as_echo_n "(cached) " >&6
25305else
25306 ac_check_lib_save_LIBS=$LIBS
25307LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025309/* end confdefs.h. */
25310
25311/* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25314#ifdef __cplusplus
25315extern "C"
25316#endif
25317char gethostbyname ();
25318int
25319main ()
25320{
25321return gethostbyname ();
25322 ;
25323 return 0;
25324}
25325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025326if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 ac_cv_lib_bsd_gethostbyname=yes
25328else
cristy8b350f62009-11-15 23:12:43 +000025329 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025330fi
cristy8b350f62009-11-15 23:12:43 +000025331rm -f core conftest.err conftest.$ac_objext \
25332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025333LIBS=$ac_check_lib_save_LIBS
25334fi
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025337if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25339fi
25340
25341 fi
25342 fi
25343
25344 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25345 # socket/setsockopt and other routines are undefined under SCO ODT
25346 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25347 # on later versions), says Simon Leinen: it contains gethostby*
25348 # variants that don't use the name server (or something). -lsocket
25349 # must be given before -lnsl if both are needed. We assume that
25350 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025351 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25352if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025353
cristy3ed852e2009-09-05 21:47:34 +000025354fi
25355
cristy3ed852e2009-09-05 21:47:34 +000025356 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025358$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025359if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025360 $as_echo_n "(cached) " >&6
25361else
25362 ac_check_lib_save_LIBS=$LIBS
25363LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025365/* end confdefs.h. */
25366
25367/* Override any GCC internal prototype to avoid an error.
25368 Use char because int might match the return type of a GCC
25369 builtin and then its argument prototype would still apply. */
25370#ifdef __cplusplus
25371extern "C"
25372#endif
25373char connect ();
25374int
25375main ()
25376{
25377return connect ();
25378 ;
25379 return 0;
25380}
25381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025383 ac_cv_lib_socket_connect=yes
25384else
cristy8b350f62009-11-15 23:12:43 +000025385 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025386fi
cristy8b350f62009-11-15 23:12:43 +000025387rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025389LIBS=$ac_check_lib_save_LIBS
25390fi
cristy8b350f62009-11-15 23:12:43 +000025391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025393if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25395fi
25396
25397 fi
25398
25399 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025400 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25401if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025402
cristy3ed852e2009-09-05 21:47:34 +000025403fi
25404
cristy3ed852e2009-09-05 21:47:34 +000025405 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025408if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 $as_echo_n "(cached) " >&6
25410else
25411 ac_check_lib_save_LIBS=$LIBS
25412LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025414/* end confdefs.h. */
25415
25416/* Override any GCC internal prototype to avoid an error.
25417 Use char because int might match the return type of a GCC
25418 builtin and then its argument prototype would still apply. */
25419#ifdef __cplusplus
25420extern "C"
25421#endif
25422char remove ();
25423int
25424main ()
25425{
25426return remove ();
25427 ;
25428 return 0;
25429}
25430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025432 ac_cv_lib_posix_remove=yes
25433else
cristy8b350f62009-11-15 23:12:43 +000025434 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025435fi
cristy8b350f62009-11-15 23:12:43 +000025436rm -f core conftest.err conftest.$ac_objext \
25437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025438LIBS=$ac_check_lib_save_LIBS
25439fi
cristy8b350f62009-11-15 23:12:43 +000025440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025442if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25444fi
25445
25446 fi
25447
25448 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025449 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25450if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025451
cristy3ed852e2009-09-05 21:47:34 +000025452fi
25453
cristy3ed852e2009-09-05 21:47:34 +000025454 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025456$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025457if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025458 $as_echo_n "(cached) " >&6
25459else
25460 ac_check_lib_save_LIBS=$LIBS
25461LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025463/* end confdefs.h. */
25464
25465/* Override any GCC internal prototype to avoid an error.
25466 Use char because int might match the return type of a GCC
25467 builtin and then its argument prototype would still apply. */
25468#ifdef __cplusplus
25469extern "C"
25470#endif
25471char shmat ();
25472int
25473main ()
25474{
25475return shmat ();
25476 ;
25477 return 0;
25478}
25479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025481 ac_cv_lib_ipc_shmat=yes
25482else
cristy8b350f62009-11-15 23:12:43 +000025483 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025484fi
cristy8b350f62009-11-15 23:12:43 +000025485rm -f core conftest.err conftest.$ac_objext \
25486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025487LIBS=$ac_check_lib_save_LIBS
25488fi
cristy8b350f62009-11-15 23:12:43 +000025489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025490$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025491if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25493fi
25494
25495 fi
25496 fi
25497
25498 # Check for libraries that X11R6 Xt/Xaw programs need.
25499 ac_save_LDFLAGS=$LDFLAGS
25500 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25501 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25502 # check for ICE first), but we must link in the order -lSM -lICE or
25503 # we get undefined symbols. So assume we have SM if we have ICE.
25504 # These have to be linked with before -lX11, unlike the other
25505 # libraries we check for below, so use a different variable.
25506 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025508$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025509if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025510 $as_echo_n "(cached) " >&6
25511else
25512 ac_check_lib_save_LIBS=$LIBS
25513LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025515/* end confdefs.h. */
25516
25517/* Override any GCC internal prototype to avoid an error.
25518 Use char because int might match the return type of a GCC
25519 builtin and then its argument prototype would still apply. */
25520#ifdef __cplusplus
25521extern "C"
25522#endif
25523char IceConnectionNumber ();
25524int
25525main ()
25526{
25527return IceConnectionNumber ();
25528 ;
25529 return 0;
25530}
25531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025533 ac_cv_lib_ICE_IceConnectionNumber=yes
25534else
cristy8b350f62009-11-15 23:12:43 +000025535 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025536fi
cristy8b350f62009-11-15 23:12:43 +000025537rm -f core conftest.err conftest.$ac_objext \
25538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025539LIBS=$ac_check_lib_save_LIBS
25540fi
cristy8b350f62009-11-15 23:12:43 +000025541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025543if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025544 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25545fi
25546
25547 LDFLAGS=$ac_save_LDFLAGS
25548
25549fi
25550
25551if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025553$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo "" >&6; }
25558 LDFLAGS="$LDFLAGS $X_LIBS"
25559 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25560 LIBS="$X11_LIBS $LIBS"
25561 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25562
25563
cristy8b350f62009-11-15 23:12:43 +000025564$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025565
25566 #
25567 # Check for X11 shared memory extension
25568 #
25569 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025570 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25571if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025572 have_shmctl='yes'
25573fi
25574
25575 if test "$have_shmctl" != 'yes'; then
25576 PERSIST_LIBS=$LIBS
25577 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025579/* end confdefs.h. */
25580
25581/* Override any GCC internal prototype to avoid an error.
25582 Use char because int might match the return type of a GCC
25583 builtin and then its argument prototype would still apply. */
25584#ifdef __cplusplus
25585extern "C"
25586#endif
25587char shmctl ();
25588int
25589main ()
25590{
25591return shmctl ();
25592 ;
25593 return 0;
25594}
25595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025597 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025598fi
cristy8b350f62009-11-15 23:12:43 +000025599rm -f core conftest.err conftest.$ac_objext \
25600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025601 LIBS=$PERSIST_LIBS
25602 fi
25603
25604 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025606$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025607if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025608 $as_echo_n "(cached) " >&6
25609else
25610 ac_check_lib_save_LIBS=$LIBS
25611LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025613/* end confdefs.h. */
25614
25615/* Override any GCC internal prototype to avoid an error.
25616 Use char because int might match the return type of a GCC
25617 builtin and then its argument prototype would still apply. */
25618#ifdef __cplusplus
25619extern "C"
25620#endif
25621char XShmAttach ();
25622int
25623main ()
25624{
25625return XShmAttach ();
25626 ;
25627 return 0;
25628}
25629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 ac_cv_lib_Xext_XShmAttach=yes
25632else
cristy8b350f62009-11-15 23:12:43 +000025633 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025634fi
cristy8b350f62009-11-15 23:12:43 +000025635rm -f core conftest.err conftest.$ac_objext \
25636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025637LIBS=$ac_check_lib_save_LIBS
25638fi
cristy8b350f62009-11-15 23:12:43 +000025639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025640$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025641if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025642 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025643$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025644
25645fi
25646
25647 fi
25648
25649 #
25650 # Check for X11 shape extension
25651 #
cristy8b350f62009-11-15 23:12:43 +000025652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025653$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025654if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025655 $as_echo_n "(cached) " >&6
25656else
25657 ac_check_lib_save_LIBS=$LIBS
25658LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025660/* end confdefs.h. */
25661
25662/* Override any GCC internal prototype to avoid an error.
25663 Use char because int might match the return type of a GCC
25664 builtin and then its argument prototype would still apply. */
25665#ifdef __cplusplus
25666extern "C"
25667#endif
25668char XShapeCombineMask ();
25669int
25670main ()
25671{
25672return XShapeCombineMask ();
25673 ;
25674 return 0;
25675}
25676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025678 ac_cv_lib_Xext_XShapeCombineMask=yes
25679else
cristy8b350f62009-11-15 23:12:43 +000025680 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025681fi
cristy8b350f62009-11-15 23:12:43 +000025682rm -f core conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025684LIBS=$ac_check_lib_save_LIBS
25685fi
cristy8b350f62009-11-15 23:12:43 +000025686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025687$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025688if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025689 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025690$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025691
25692fi
25693
cristy8b350f62009-11-15 23:12:43 +000025694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025695$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025696if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025697 $as_echo_n "(cached) " >&6
25698else
25699 ac_check_lib_save_LIBS=$LIBS
25700LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025702/* end confdefs.h. */
25703
25704/* Override any GCC internal prototype to avoid an error.
25705 Use char because int might match the return type of a GCC
25706 builtin and then its argument prototype would still apply. */
25707#ifdef __cplusplus
25708extern "C"
25709#endif
25710char XtSetEventDispatcher ();
25711int
25712main ()
25713{
25714return XtSetEventDispatcher ();
25715 ;
25716 return 0;
25717}
25718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025720 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25721else
cristy8b350f62009-11-15 23:12:43 +000025722 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025723fi
cristy8b350f62009-11-15 23:12:43 +000025724rm -f core conftest.err conftest.$ac_objext \
25725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025726LIBS=$ac_check_lib_save_LIBS
25727fi
cristy8b350f62009-11-15 23:12:43 +000025728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025729$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025730if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 XT_LIBS='-lXt'
25732fi
25733
25734 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25735fi
25736if test "$no_x" != 'yes'; then
25737 have_x='yes'
25738else
25739 have_x='no'
25740fi
25741 if test "$have_x" = 'yes'; then
25742 X11_DELEGATE_TRUE=
25743 X11_DELEGATE_FALSE='#'
25744else
25745 X11_DELEGATE_TRUE='#'
25746 X11_DELEGATE_FALSE=
25747fi
25748
25749
25750
25751
25752
25753#
25754# Check for ZLIB
25755#
25756
25757# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025758if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025759 withval=$with_zlib; with_zlib=$withval
25760else
25761 with_zlib='yes'
25762fi
25763
25764
25765if test "$with_zlib" != 'yes'; then
25766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25767fi
25768
25769have_zlib='no'
25770ZLIB_LIBS=''
25771if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025775$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025777$as_echo "" >&6; }
25778 ZLIB_LIBS=''
25779 failed=0
25780 passed=0
cristy8b350f62009-11-15 23:12:43 +000025781 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25782if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025783 passed=`expr $passed + 1`
25784else
25785 failed=`expr $failed + 1`
25786fi
25787
25788
cristy8b350f62009-11-15 23:12:43 +000025789 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25790if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025791 passed=`expr $passed + 1`
25792else
25793 failed=`expr $failed + 1`
25794fi
25795
25796
cristy8b350f62009-11-15 23:12:43 +000025797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025798$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025799if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 $as_echo_n "(cached) " >&6
25801else
25802 ac_check_lib_save_LIBS=$LIBS
25803LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025805/* end confdefs.h. */
25806
25807/* Override any GCC internal prototype to avoid an error.
25808 Use char because int might match the return type of a GCC
25809 builtin and then its argument prototype would still apply. */
25810#ifdef __cplusplus
25811extern "C"
25812#endif
25813char compress ();
25814int
25815main ()
25816{
25817return compress ();
25818 ;
25819 return 0;
25820}
25821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025823 ac_cv_lib_z_compress=yes
25824else
cristy8b350f62009-11-15 23:12:43 +000025825 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025826fi
cristy8b350f62009-11-15 23:12:43 +000025827rm -f core conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025829LIBS=$ac_check_lib_save_LIBS
25830fi
cristy8b350f62009-11-15 23:12:43 +000025831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025832$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025833if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025834 passed=`expr $passed + 1`
25835else
25836 failed=`expr $failed + 1`
25837fi
25838
cristy8b350f62009-11-15 23:12:43 +000025839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025841if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 $as_echo_n "(cached) " >&6
25843else
25844 ac_check_lib_save_LIBS=$LIBS
25845LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025847/* end confdefs.h. */
25848
25849/* Override any GCC internal prototype to avoid an error.
25850 Use char because int might match the return type of a GCC
25851 builtin and then its argument prototype would still apply. */
25852#ifdef __cplusplus
25853extern "C"
25854#endif
25855char uncompress ();
25856int
25857main ()
25858{
25859return uncompress ();
25860 ;
25861 return 0;
25862}
25863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025865 ac_cv_lib_z_uncompress=yes
25866else
cristy8b350f62009-11-15 23:12:43 +000025867 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025868fi
cristy8b350f62009-11-15 23:12:43 +000025869rm -f core conftest.err conftest.$ac_objext \
25870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025871LIBS=$ac_check_lib_save_LIBS
25872fi
cristy8b350f62009-11-15 23:12:43 +000025873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025874$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025875if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025876 passed=`expr $passed + 1`
25877else
25878 failed=`expr $failed + 1`
25879fi
25880
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
25886 ac_check_lib_save_LIBS=$LIBS
25887LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025889/* end confdefs.h. */
25890
25891/* Override any GCC internal prototype to avoid an error.
25892 Use char because int might match the return type of a GCC
25893 builtin and then its argument prototype would still apply. */
25894#ifdef __cplusplus
25895extern "C"
25896#endif
25897char deflate ();
25898int
25899main ()
25900{
25901return deflate ();
25902 ;
25903 return 0;
25904}
25905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 ac_cv_lib_z_deflate=yes
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025910fi
cristy8b350f62009-11-15 23:12:43 +000025911rm -f core conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913LIBS=$ac_check_lib_save_LIBS
25914fi
cristy8b350f62009-11-15 23:12:43 +000025915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025917if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 passed=`expr $passed + 1`
25919else
25920 failed=`expr $failed + 1`
25921fi
25922
cristy8b350f62009-11-15 23:12:43 +000025923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025924$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025925if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025926 $as_echo_n "(cached) " >&6
25927else
25928 ac_check_lib_save_LIBS=$LIBS
25929LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025931/* end confdefs.h. */
25932
25933/* Override any GCC internal prototype to avoid an error.
25934 Use char because int might match the return type of a GCC
25935 builtin and then its argument prototype would still apply. */
25936#ifdef __cplusplus
25937extern "C"
25938#endif
25939char inflate ();
25940int
25941main ()
25942{
25943return inflate ();
25944 ;
25945 return 0;
25946}
25947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025948if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 ac_cv_lib_z_inflate=yes
25950else
cristy8b350f62009-11-15 23:12:43 +000025951 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025952fi
cristy8b350f62009-11-15 23:12:43 +000025953rm -f core conftest.err conftest.$ac_objext \
25954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025955LIBS=$ac_check_lib_save_LIBS
25956fi
cristy8b350f62009-11-15 23:12:43 +000025957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025958$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025959if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025960 passed=`expr $passed + 1`
25961else
25962 failed=`expr $failed + 1`
25963fi
25964
cristy8b350f62009-11-15 23:12:43 +000025965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025967if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 $as_echo_n "(cached) " >&6
25969else
25970 ac_check_lib_save_LIBS=$LIBS
25971LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025973/* end confdefs.h. */
25974
25975/* Override any GCC internal prototype to avoid an error.
25976 Use char because int might match the return type of a GCC
25977 builtin and then its argument prototype would still apply. */
25978#ifdef __cplusplus
25979extern "C"
25980#endif
25981char gzseek ();
25982int
25983main ()
25984{
25985return gzseek ();
25986 ;
25987 return 0;
25988}
25989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 ac_cv_lib_z_gzseek=yes
25992else
cristy8b350f62009-11-15 23:12:43 +000025993 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025994fi
cristy8b350f62009-11-15 23:12:43 +000025995rm -f core conftest.err conftest.$ac_objext \
25996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025997LIBS=$ac_check_lib_save_LIBS
25998fi
cristy8b350f62009-11-15 23:12:43 +000025999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026000$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026001if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026002 passed=`expr $passed + 1`
26003else
26004 failed=`expr $failed + 1`
26005fi
26006
cristy8b350f62009-11-15 23:12:43 +000026007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026009if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 $as_echo_n "(cached) " >&6
26011else
26012 ac_check_lib_save_LIBS=$LIBS
26013LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026015/* end confdefs.h. */
26016
26017/* Override any GCC internal prototype to avoid an error.
26018 Use char because int might match the return type of a GCC
26019 builtin and then its argument prototype would still apply. */
26020#ifdef __cplusplus
26021extern "C"
26022#endif
26023char gztell ();
26024int
26025main ()
26026{
26027return gztell ();
26028 ;
26029 return 0;
26030}
26031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026033 ac_cv_lib_z_gztell=yes
26034else
cristy8b350f62009-11-15 23:12:43 +000026035 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026036fi
cristy8b350f62009-11-15 23:12:43 +000026037rm -f core conftest.err conftest.$ac_objext \
26038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026039LIBS=$ac_check_lib_save_LIBS
26040fi
cristy8b350f62009-11-15 23:12:43 +000026041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026043if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026044 passed=`expr $passed + 1`
26045else
26046 failed=`expr $failed + 1`
26047fi
26048
cristy8b350f62009-11-15 23:12:43 +000026049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo_n "checking if ZLIB package is complete... " >&6; }
26051 if test $passed -gt 0; then
26052 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo "no -- some components failed test" >&6; }
26055 have_zlib='no (failed tests)'
26056 else
26057 ZLIB_LIBS='-lz'
26058 LIBS="$ZLIB_LIBS $LIBS"
26059
cristy8b350f62009-11-15 23:12:43 +000026060$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026061
cristy8b350f62009-11-15 23:12:43 +000026062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026063$as_echo "yes" >&6; }
26064 have_zlib='yes'
26065 fi
26066 else
cristy8b350f62009-11-15 23:12:43 +000026067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026068$as_echo "no" >&6; }
26069 fi
26070fi
26071 if test "$have_zlib" = 'yes'; then
26072 ZLIB_DELEGATE_TRUE=
26073 ZLIB_DELEGATE_FALSE='#'
26074else
26075 ZLIB_DELEGATE_TRUE='#'
26076 ZLIB_DELEGATE_FALSE=
26077fi
26078
26079
26080
26081#
26082# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26083#
26084LIB_DL=''
26085if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026087$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026088if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026089 $as_echo_n "(cached) " >&6
26090else
26091 ac_check_lib_save_LIBS=$LIBS
26092LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026094/* end confdefs.h. */
26095
26096/* Override any GCC internal prototype to avoid an error.
26097 Use char because int might match the return type of a GCC
26098 builtin and then its argument prototype would still apply. */
26099#ifdef __cplusplus
26100extern "C"
26101#endif
26102char dlopen ();
26103int
26104main ()
26105{
26106return dlopen ();
26107 ;
26108 return 0;
26109}
26110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026112 ac_cv_lib_dl_dlopen=yes
26113else
cristy8b350f62009-11-15 23:12:43 +000026114 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026115fi
cristy8b350f62009-11-15 23:12:43 +000026116rm -f core conftest.err conftest.$ac_objext \
26117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026118LIBS=$ac_check_lib_save_LIBS
26119fi
cristy8b350f62009-11-15 23:12:43 +000026120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026121$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026122if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026123 LIB_DL='-ldl'
26124fi
26125
26126 LIBS="$LIB_DL $LIBS"
26127fi
26128
26129
26130
26131#
26132# Check for Autotrace delegate library.
26133#
26134
26135# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026136if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026137 withval=$with_autotrace; with_autotrace=$withval
26138else
26139 with_autotrace='no'
26140fi
26141
26142
26143if test "$with_autotrace" != 'yes'; then
26144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26145fi
26146
26147have_autotrace='no'
26148AUTOTRACE_CFLAGS=""
26149AUTOTRACE_LIBS=""
26150AUTOTRACE_PKG=""
26151if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026153$as_echo "-------------------------------------------------------------" >&6; }
26154
26155pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026157$as_echo_n "checking for AUTOTRACE... " >&6; }
26158
26159if test -n "$AUTOTRACE_CFLAGS"; then
26160 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26161 elif test -n "$PKG_CONFIG"; then
26162 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026164 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26167 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026168 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26169else
26170 pkg_failed=yes
26171fi
26172 else
26173 pkg_failed=untried
26174fi
26175if test -n "$AUTOTRACE_LIBS"; then
26176 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26177 elif test -n "$PKG_CONFIG"; then
26178 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026180 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26181 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26183 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026184 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26185else
26186 pkg_failed=yes
26187fi
26188 else
26189 pkg_failed=untried
26190fi
26191
26192
26193
26194if test $pkg_failed = yes; then
26195
26196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26197 _pkg_short_errors_supported=yes
26198else
26199 _pkg_short_errors_supported=no
26200fi
26201 if test $_pkg_short_errors_supported = yes; then
26202 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26203 else
26204 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26205 fi
26206 # Put the nasty error message in config.log where it belongs
26207 echo "$AUTOTRACE_PKG_ERRORS" >&5
26208
cristy8b350f62009-11-15 23:12:43 +000026209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo "no" >&6; }
26211 have_autotrace=no
26212elif test $pkg_failed = untried; then
26213 have_autotrace=no
26214else
26215 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26216 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo "yes" >&6; }
26219 have_autotrace=yes
26220fi
cristy8b350f62009-11-15 23:12:43 +000026221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo "" >&6; }
26223fi
26224
26225if test "$have_autotrace" = 'yes'; then
26226 failed=0
26227
cristy8b350f62009-11-15 23:12:43 +000026228$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026229
26230 if test "$with_modules" = 'no'; then
26231 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26232 fi
26233fi
26234
26235 if test "$have_autotrace" = 'yes'; then
26236 AUTOTRACE_DELEGATE_TRUE=
26237 AUTOTRACE_DELEGATE_FALSE='#'
26238else
26239 AUTOTRACE_DELEGATE_TRUE='#'
26240 AUTOTRACE_DELEGATE_FALSE=
26241fi
26242
26243
26244
26245
26246
26247#
26248# Check for Display Postscript delegate library.
26249#
26250
26251# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026252if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 withval=$with_dps; with_dps=$withval
26254else
26255 with_dps='yes'
26256fi
26257
26258
26259if test "$with_dps" != 'yes'; then
26260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26261fi
26262
26263have_dps='no'
26264DPS_LIBS=''
26265if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026267$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "" >&6; }
26272 failed=0
26273 passed=0
26274 PERSIST_CPPFLAGS="$CPPFLAGS"
26275 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026276 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26277if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 passed=`expr $passed + 1`
26279else
26280 failed=`expr $failed + 1`
26281fi
26282
26283
26284 # DPS issues:
26285 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26286 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26287 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26288 # ImageMagick itself doesn't use -lXt.
26289 have_libdps='no'
26290 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026292$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026293if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 $as_echo_n "(cached) " >&6
26295else
26296 ac_check_lib_save_LIBS=$LIBS
26297LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026299/* end confdefs.h. */
26300
26301/* Override any GCC internal prototype to avoid an error.
26302 Use char because int might match the return type of a GCC
26303 builtin and then its argument prototype would still apply. */
26304#ifdef __cplusplus
26305extern "C"
26306#endif
26307char DPSInitialize ();
26308int
26309main ()
26310{
26311return DPSInitialize ();
26312 ;
26313 return 0;
26314}
26315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 ac_cv_lib_dps_DPSInitialize=yes
26318else
cristy8b350f62009-11-15 23:12:43 +000026319 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026320fi
cristy8b350f62009-11-15 23:12:43 +000026321rm -f core conftest.err conftest.$ac_objext \
26322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026323LIBS=$ac_check_lib_save_LIBS
26324fi
cristy8b350f62009-11-15 23:12:43 +000026325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026326$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026327if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 have_libdps='yes'
26329else
26330 have_libdps='no'
26331fi
26332
26333 if test "$have_libdps" != 'yes'; then
26334 # Unset cache variable so we can try again.
26335 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026337$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026338if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026339 $as_echo_n "(cached) " >&6
26340else
26341 ac_check_lib_save_LIBS=$LIBS
26342LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344/* end confdefs.h. */
26345
26346/* Override any GCC internal prototype to avoid an error.
26347 Use char because int might match the return type of a GCC
26348 builtin and then its argument prototype would still apply. */
26349#ifdef __cplusplus
26350extern "C"
26351#endif
26352char DPSInitialize ();
26353int
26354main ()
26355{
26356return DPSInitialize ();
26357 ;
26358 return 0;
26359}
26360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026362 ac_cv_lib_dps_DPSInitialize=yes
26363else
cristy8b350f62009-11-15 23:12:43 +000026364 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026365fi
cristy8b350f62009-11-15 23:12:43 +000026366rm -f core conftest.err conftest.$ac_objext \
26367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026368LIBS=$ac_check_lib_save_LIBS
26369fi
cristy8b350f62009-11-15 23:12:43 +000026370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026372if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026373 have_libdps='yes'
26374else
26375 have_libdps='no'
26376fi
26377
26378 if test "$have_libdps" = 'yes'; then
26379 LIBDPS_XT='-lXt'
26380 fi
26381 fi
26382 if test "$have_libdps" = 'yes'; then
26383 passed=`expr $passed + 1`
26384 else
26385 failed=`expr $failed + 1`
26386 fi
cristy8b350f62009-11-15 23:12:43 +000026387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026388$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026389if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026390 $as_echo_n "(cached) " >&6
26391else
26392 ac_check_lib_save_LIBS=$LIBS
26393LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026395/* end confdefs.h. */
26396
26397/* Override any GCC internal prototype to avoid an error.
26398 Use char because int might match the return type of a GCC
26399 builtin and then its argument prototype would still apply. */
26400#ifdef __cplusplus
26401extern "C"
26402#endif
26403char XDPSPixelsPerPoint ();
26404int
26405main ()
26406{
26407return XDPSPixelsPerPoint ();
26408 ;
26409 return 0;
26410}
26411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026413 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26414else
cristy8b350f62009-11-15 23:12:43 +000026415 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026416fi
cristy8b350f62009-11-15 23:12:43 +000026417rm -f core conftest.err conftest.$ac_objext \
26418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026419LIBS=$ac_check_lib_save_LIBS
26420fi
cristy8b350f62009-11-15 23:12:43 +000026421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026422$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026423if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 passed=`expr $passed + 1`
26425else
26426 failed=`expr $failed + 1`
26427fi
26428
cristy8b350f62009-11-15 23:12:43 +000026429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo_n "checking if DPS package is complete... " >&6; }
26431 if test $passed -gt 0; then
26432 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo "no -- some components failed test" >&6; }
26435 have_dps='no (failed tests)'
26436 CPPFLAGS="$PERSIST_CPPFLAGS"
26437 else
26438 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26439 LIBS="$DPS_LIBS $LIBS"
26440
cristy8b350f62009-11-15 23:12:43 +000026441$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026442
cristy8b350f62009-11-15 23:12:43 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "yes" >&6; }
26445 have_dps='yes'
26446 fi
26447 else
cristy8b350f62009-11-15 23:12:43 +000026448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "no" >&6; }
26450 CPPFLAGS=$PERSIST_CPPFLAGS
26451 fi
26452fi
26453 if test "$have_dps" = 'yes'; then
26454 DPS_DELEGATE_TRUE=
26455 DPS_DELEGATE_FALSE='#'
26456else
26457 DPS_DELEGATE_TRUE='#'
26458 DPS_DELEGATE_FALSE=
26459fi
26460
26461
26462
26463
26464#
26465# Check for DJVU delegate library.
26466#
26467
26468# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026469if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 withval=$with_djvu; with_djvu=$withval
26471else
26472 with_djvu='yes'
26473fi
26474
26475
26476if test "$with_djvu" != 'yes'; then
26477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26478fi
26479
26480have_djvu='no'
26481DJVU_LIBS=''
26482if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026484$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo "" >&6; }
26489 failed=0
26490 passed=0
cristy8b350f62009-11-15 23:12:43 +000026491 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26492if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 passed=`expr $passed + 1`
26494else
26495 failed=`expr $failed + 1`
26496fi
26497
26498
cristy8b350f62009-11-15 23:12:43 +000026499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026501if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 $as_echo_n "(cached) " >&6
26503else
26504 ac_check_lib_save_LIBS=$LIBS
26505LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026507/* end confdefs.h. */
26508
26509/* Override any GCC internal prototype to avoid an error.
26510 Use char because int might match the return type of a GCC
26511 builtin and then its argument prototype would still apply. */
26512#ifdef __cplusplus
26513extern "C"
26514#endif
26515char ddjvu_context_create ();
26516int
26517main ()
26518{
26519return ddjvu_context_create ();
26520 ;
26521 return 0;
26522}
26523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026525 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26526else
cristy8b350f62009-11-15 23:12:43 +000026527 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026528fi
cristy8b350f62009-11-15 23:12:43 +000026529rm -f core conftest.err conftest.$ac_objext \
26530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026531LIBS=$ac_check_lib_save_LIBS
26532fi
cristy8b350f62009-11-15 23:12:43 +000026533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026534$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026535if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 passed=`expr $passed + 1`
26537else
26538 failed=`expr $failed + 1`
26539fi
26540
cristy8b350f62009-11-15 23:12:43 +000026541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo_n "checking if DJVU package is complete... " >&6; }
26543 if test $passed -gt 0; then
26544 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026546$as_echo "no -- some components failed test" >&6; }
26547 have_djvu='no (failed tests)'
26548 else
26549 DJVU_LIBS='-ldjvulibre'
26550 LIBS="$DJVU_LIBS $LIBS"
26551
cristy8b350f62009-11-15 23:12:43 +000026552$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026553
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "yes" >&6; }
26556 have_djvu='yes'
26557 fi
26558 else
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo "no" >&6; }
26561 fi
26562fi
26563 if test "$have_djvu" = 'yes'; then
26564 DJVU_DELEGATE_TRUE=
26565 DJVU_DELEGATE_FALSE='#'
26566else
26567 DJVU_DELEGATE_TRUE='#'
26568 DJVU_DELEGATE_FALSE=
26569fi
26570
26571
26572
26573
26574#
cristy430a7312010-01-21 20:44:04 +000026575# Set DejaVu font directory.
26576#
26577
26578# Check whether --with-dejavu-font-dir was given.
26579if test "${with_dejavu_font_dir+set}" = set; then :
26580 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26581else
26582 with_dejavu_font_dir='default'
26583fi
26584
26585
26586if test "$with_dejavu_font_dir" != 'default'; then
26587 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26588fi
26589
26590
26591#
cristy3ed852e2009-09-05 21:47:34 +000026592# Check for FFTW delegate library.
26593#
26594
26595# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026596if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026597 withval=$with_fftw; with_fftw=$withval
26598else
26599 with_fftw='yes'
26600fi
26601
26602
26603if test "$with_fftw" != 'yes'; then
26604 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26605fi
26606
26607have_fftw='no'
26608FFTW_LIBS=''
26609if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "" >&6; }
26616 failed=0
26617 passed=0
cristy8b350f62009-11-15 23:12:43 +000026618 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26619if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026620 passed=`expr $passed + 1`
26621else
26622 failed=`expr $failed + 1`
26623fi
26624
26625
cristy8b350f62009-11-15 23:12:43 +000026626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026628if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 $as_echo_n "(cached) " >&6
26630else
26631 ac_check_lib_save_LIBS=$LIBS
26632LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026634/* end confdefs.h. */
26635
26636/* Override any GCC internal prototype to avoid an error.
26637 Use char because int might match the return type of a GCC
26638 builtin and then its argument prototype would still apply. */
26639#ifdef __cplusplus
26640extern "C"
26641#endif
26642char fftw_execute ();
26643int
26644main ()
26645{
26646return fftw_execute ();
26647 ;
26648 return 0;
26649}
26650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026651if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026652 ac_cv_lib_fftw3_fftw_execute=yes
26653else
cristy8b350f62009-11-15 23:12:43 +000026654 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026655fi
cristy8b350f62009-11-15 23:12:43 +000026656rm -f core conftest.err conftest.$ac_objext \
26657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026658LIBS=$ac_check_lib_save_LIBS
26659fi
cristy8b350f62009-11-15 23:12:43 +000026660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026661$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026662if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026663 passed=`expr $passed + 1`
26664else
26665 failed=`expr $failed + 1`
26666fi
26667
cristy8b350f62009-11-15 23:12:43 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo_n "checking if FFTW package is complete... " >&6; }
26670 if test $passed -gt 0; then
26671 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026673$as_echo "no -- some components failed test" >&6; }
26674 have_fftw='no (failed tests)'
26675 else
26676 FFTW_LIBS='-lfftw3'
26677 LIBS="$FFTW_LIBS $LIBS"
26678
cristy8b350f62009-11-15 23:12:43 +000026679$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026680
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "yes" >&6; }
26683 have_fftw='yes'
26684 fi
26685 else
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "no" >&6; }
26688 fi
26689fi
26690 if test "$have_fftw" = 'yes'; then
26691 FFTW_DELEGATE_TRUE=
26692 FFTW_DELEGATE_FALSE='#'
26693else
26694 FFTW_DELEGATE_TRUE='#'
26695 FFTW_DELEGATE_FALSE=
26696fi
26697
26698
26699
26700
26701#
26702# Check for FlashPIX delegate library.
26703#
26704
26705# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026706if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026707 withval=$with_fpx; with_fpx=$withval
26708else
26709 with_fpx='yes'
26710fi
26711
26712
26713if test "$with_fpx" != 'yes'; then
26714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26715fi
26716
26717have_fpx='no'
26718FPX_LIBS=''
26719if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026725$as_echo "" >&6; }
26726 failed=0
26727 passed=0
26728 ac_ext=cpp
26729ac_cpp='$CXXCPP $CPPFLAGS'
26730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26733
26734
cristy8b350f62009-11-15 23:12:43 +000026735ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26736if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 passed=`expr $passed + 1`
26738else
26739 failed=`expr $failed + 1`
26740fi
26741
26742
cristy8b350f62009-11-15 23:12:43 +000026743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026744$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026745if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 $as_echo_n "(cached) " >&6
26747else
26748 ac_check_lib_save_LIBS=$LIBS
26749LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026751/* end confdefs.h. */
26752
26753/* Override any GCC internal prototype to avoid an error.
26754 Use char because int might match the return type of a GCC
26755 builtin and then its argument prototype would still apply. */
26756#ifdef __cplusplus
26757extern "C"
26758#endif
26759char FPX_OpenImageByFilename ();
26760int
26761main ()
26762{
26763return FPX_OpenImageByFilename ();
26764 ;
26765 return 0;
26766}
26767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026768if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026769 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26770else
cristy8b350f62009-11-15 23:12:43 +000026771 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026772fi
cristy8b350f62009-11-15 23:12:43 +000026773rm -f core conftest.err conftest.$ac_objext \
26774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026775LIBS=$ac_check_lib_save_LIBS
26776fi
cristy8b350f62009-11-15 23:12:43 +000026777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026779if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026780 passed=`expr $passed + 1`
26781else
26782 failed=`expr $failed + 1`
26783fi
26784
26785 ac_ext=c
26786ac_cpp='$CPP $CPPFLAGS'
26787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26789ac_compiler_gnu=$ac_cv_c_compiler_gnu
26790
cristy8b350f62009-11-15 23:12:43 +000026791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026792$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26793 if test $passed -gt 0; then
26794 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026796$as_echo "no -- some components failed test" >&6; }
26797 have_fpx='no (failed tests)'
26798 else
26799 FPX_LIBS='-lfpx'
26800
cristy8b350f62009-11-15 23:12:43 +000026801$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026802
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "yes" >&6; }
26805 have_fpx='yes'
26806 PERLMAINCC="$CXX"
26807 fi
26808 else
cristy8b350f62009-11-15 23:12:43 +000026809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo "no" >&6; }
26811 fi
26812fi
26813 if test "$have_fpx" = 'yes'; then
26814 FPX_DELEGATE_TRUE=
26815 FPX_DELEGATE_FALSE='#'
26816else
26817 FPX_DELEGATE_TRUE='#'
26818 FPX_DELEGATE_FALSE=
26819fi
26820
26821
26822
26823
26824#
26825# Check for fontconfig delegate library.
26826#
26827
26828# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026829if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026830 withval=$with_fontconfig; with_fontconfig=$withval
26831else
26832 with_fontconfig=$have_x
26833fi
26834
26835
26836if test "$with_fontconfig" != 'yes'; then
26837 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26838fi
26839
26840have_fontconfig='no'
26841FONTCONFIG_CFLAGS=""
26842FONTCONFIG_LIBS=""
26843FONTCONFIG_PKG=""
26844if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo "-------------------------------------------------------------" >&6; }
26847
26848pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026850$as_echo_n "checking for FONTCONFIG... " >&6; }
26851
26852if test -n "$FONTCONFIG_CFLAGS"; then
26853 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26854 elif test -n "$PKG_CONFIG"; then
26855 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026857 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026861 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26862else
26863 pkg_failed=yes
26864fi
26865 else
26866 pkg_failed=untried
26867fi
26868if test -n "$FONTCONFIG_LIBS"; then
26869 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26870 elif test -n "$PKG_CONFIG"; then
26871 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026873 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26874 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26876 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026877 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26878else
26879 pkg_failed=yes
26880fi
26881 else
26882 pkg_failed=untried
26883fi
26884
26885
26886
26887if test $pkg_failed = yes; then
26888
26889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26890 _pkg_short_errors_supported=yes
26891else
26892 _pkg_short_errors_supported=no
26893fi
26894 if test $_pkg_short_errors_supported = yes; then
26895 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26896 else
26897 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26898 fi
26899 # Put the nasty error message in config.log where it belongs
26900 echo "$FONTCONFIG_PKG_ERRORS" >&5
26901
cristy8b350f62009-11-15 23:12:43 +000026902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026903$as_echo "no" >&6; }
26904 have_fontconfig=no
26905elif test $pkg_failed = untried; then
26906 have_fontconfig=no
26907else
26908 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26909 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "yes" >&6; }
26912 have_fontconfig=yes
26913fi
cristy8b350f62009-11-15 23:12:43 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo "" >&6; }
26916fi
26917
26918if test "$have_fontconfig" = 'yes'; then
26919
cristy8b350f62009-11-15 23:12:43 +000026920$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026921
cristyd09bcf92010-03-25 03:04:45 +000026922 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026923 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026924 fi
cristy3ed852e2009-09-05 21:47:34 +000026925fi
26926
26927 if test "$have_fontconfig" = 'yes'; then
26928 FONTCONFIG_DELEGATE_TRUE=
26929 FONTCONFIG_DELEGATE_FALSE='#'
26930else
26931 FONTCONFIG_DELEGATE_TRUE='#'
26932 FONTCONFIG_DELEGATE_FALSE=
26933fi
26934
26935
26936
26937
26938
26939#
26940# Check for freetype delegate library.
26941#
26942
26943# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026944if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026945 withval=$with_freetype; with_freetype=$withval
26946else
26947 with_freetype='yes'
26948fi
26949
26950
26951
26952if test "$with_freetype" != 'yes'; then
26953 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26954fi
26955
26956have_freetype='no'
26957FREETYPE_LIBS=''
26958if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo "" >&6; }
26965 failed=0
26966 passed=0
cristy66291112009-10-03 22:44:36 +000026967 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026968 PERSIST_CPPFLAGS="$CPPFLAGS"
26969 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26970 :
26971 else
26972 freetype_config=''
26973 for ac_prog in freetype-config
26974do
26975 # Extract the first word of "$ac_prog", so it can be a program name with args.
26976set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026979if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 $as_echo_n "(cached) " >&6
26981else
26982 if test -n "$freetype_config"; then
26983 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26984else
26985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26986for as_dir in $PATH
26987do
26988 IFS=$as_save_IFS
26989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26992 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026994 break 2
26995 fi
26996done
cristy8b350f62009-11-15 23:12:43 +000026997 done
cristy3ed852e2009-09-05 21:47:34 +000026998IFS=$as_save_IFS
26999
27000fi
27001fi
27002freetype_config=$ac_cv_prog_freetype_config
27003if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo "$freetype_config" >&6; }
27006else
cristy8b350f62009-11-15 23:12:43 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "no" >&6; }
27009fi
27010
27011
27012 test -n "$freetype_config" && break
27013done
27014 if test -n "$freetype_config"; then
27015 freetype_cflags=`$freetype_config --cflags`
27016 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027017 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027018 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27019 fi
27020 fi
27021
27022 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027025if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 $as_echo_n "(cached) " >&6
27027else
27028 ac_check_lib_save_LIBS=$LIBS
27029LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027031/* end confdefs.h. */
27032
27033/* Override any GCC internal prototype to avoid an error.
27034 Use char because int might match the return type of a GCC
27035 builtin and then its argument prototype would still apply. */
27036#ifdef __cplusplus
27037extern "C"
27038#endif
27039char FT_Init_FreeType ();
27040int
27041main ()
27042{
27043return FT_Init_FreeType ();
27044 ;
27045 return 0;
27046}
27047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 ac_cv_lib_freetype_FT_Init_FreeType=yes
27050else
cristy8b350f62009-11-15 23:12:43 +000027051 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027052fi
cristy8b350f62009-11-15 23:12:43 +000027053rm -f core conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027055LIBS=$ac_check_lib_save_LIBS
27056fi
cristy8b350f62009-11-15 23:12:43 +000027057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027058$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027059if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027060 FREETYPE_LIBS='-lfreetype'
27061fi
27062
27063 if test "$FREETYPE_LIBS" != ''; then
27064 passed=`expr $passed + 1`
27065 else
27066 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027067 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027068 fi
27069 fi
27070
cristy8b350f62009-11-15 23:12:43 +000027071 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27072if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027073 FT2BUILD_H='#include <ft2build.h>'
27074else
27075 ft2build=''
27076fi
27077
27078
cristy8b350f62009-11-15 23:12:43 +000027079 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27080"
27081if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 have_freetype_h='yes'
27083else
27084 have_freetype_h='no'
27085fi
27086
27087
27088 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27089 passed=`expr $passed + 1`
27090 else
27091 failed=`expr $failed + 1`
27092 CPPFLAGS="$PERSIST_CPPFLAGS"
27093 fi
27094
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking if FreeType package is complete... " >&6; }
27097 if test $passed -gt 0; then
27098 if test $failed -gt 0; then
27099 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo "no -- some components failed test" >&6; }
27102 have_freetype='no (failed tests)'
27103 else
27104 LIBS="$FREETYPE_LIBS $LIBS"
27105
cristy8b350f62009-11-15 23:12:43 +000027106$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027107
27108 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27109
cristy8b350f62009-11-15 23:12:43 +000027110$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027111
27112 fi
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "yes" >&6; }
27115 have_freetype='yes'
27116 fi
27117 else
cristy8b350f62009-11-15 23:12:43 +000027118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027119$as_echo "no" >&6; }
27120 fi
27121fi
27122 if test "$have_freetype" = 'yes'; then
27123 FREETYPE_DELEGATE_TRUE=
27124 FREETYPE_DELEGATE_FALSE='#'
27125else
27126 FREETYPE_DELEGATE_TRUE='#'
27127 FREETYPE_DELEGATE_FALSE=
27128fi
27129
27130
27131
27132
27133
27134#
27135# Check for Ghostscript library or framework.
27136#
27137# Test for iapi.h & test for gsapi_new_instance in -lgs
27138# or -framework Ghostscript
27139
27140
27141# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027142if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 withval=$with_gslib; with_gslib=$withval
27144else
27145 with_gslib='no'
27146fi
27147
27148
cristyb7931f12009-09-25 10:22:21 +000027149gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027150if test "$with_gslib" != 'yes'; then
27151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27152fi
27153
27154have_gslib='no'
27155GS_LIBS=''
27156if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027163 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027164 failed=0
27165 passed=0
cristy8b350f62009-11-15 23:12:43 +000027166 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27167if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 passed=`expr $passed + 1`
27169else
27170 failed=`expr $failed + 1`
27171fi
27172
27173
cristy8b350f62009-11-15 23:12:43 +000027174 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27175if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 passed=`expr $passed + 1`
27177else
27178 failed=`expr $failed + 1`
27179fi
27180
27181
cristy8b350f62009-11-15 23:12:43 +000027182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027183$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027184if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027185 $as_echo_n "(cached) " >&6
27186else
27187 ac_check_framework_save_LIBS=$LIBS
27188LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027190/* end confdefs.h. */
27191
27192/* Override any GCC internal prototype to avoid an error.
27193 Use char because int might match the return type of a GCC
27194 builtin and then its argument prototype would still apply. */
27195#ifdef __cplusplus
27196extern "C"
27197#endif
27198char gsapi_new_instance ();
27199int
27200main ()
27201{
27202return gsapi_new_instance ();
27203 ;
27204 return 0;
27205}
27206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027207if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027208 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27209else
cristy8b350f62009-11-15 23:12:43 +000027210 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027211fi
cristy8b350f62009-11-15 23:12:43 +000027212rm -f core conftest.err conftest.$ac_objext \
27213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027214LIBS=$ac_check_framework_save_LIBS
27215fi
cristy8b350f62009-11-15 23:12:43 +000027216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027218if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027219 framework=`expr $framework + 1`
27220else
cristy8b350f62009-11-15 23:12:43 +000027221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027223if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 $as_echo_n "(cached) " >&6
27225else
27226 ac_check_lib_save_LIBS=$LIBS
27227LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229/* end confdefs.h. */
27230
27231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27234#ifdef __cplusplus
27235extern "C"
27236#endif
27237char gsapi_new_instance ();
27238int
27239main ()
27240{
27241return gsapi_new_instance ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 ac_cv_lib_gs_gsapi_new_instance=yes
27248else
cristy8b350f62009-11-15 23:12:43 +000027249 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027250fi
cristy8b350f62009-11-15 23:12:43 +000027251rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253LIBS=$ac_check_lib_save_LIBS
27254fi
cristy8b350f62009-11-15 23:12:43 +000027255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027257if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 passed=`expr $passed + 1`
27259else
27260 failed=`expr $failed + 1`
27261fi
27262
27263fi
cristy8b350f62009-11-15 23:12:43 +000027264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27266 if test $passed -gt 0; then
27267 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027269$as_echo "no -- some components failed test" >&6; }
27270 have_gslib='no (failed tests)'
27271 else
27272 if test $framework -gt 0; then
27273 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027274 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo "yes, using framework." >&6; }
27277 else
cristy8b350f62009-11-15 23:12:43 +000027278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027279$as_echo "yes, using library." >&6; }
27280 GS_LIBS='-lgs'
27281 fi
27282 LIBS="$GS_LIBS $LIBS"
27283
cristy8b350f62009-11-15 23:12:43 +000027284$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027285
27286 have_gslib='yes'
27287 fi
27288 else
cristy8b350f62009-11-15 23:12:43 +000027289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027290$as_echo "no" >&6; }
27291 fi
27292fi
27293 if test "$have_gslib" = 'yes'; then
27294 GS_DELEGATE_TRUE=
27295 GS_DELEGATE_FALSE='#'
27296else
27297 GS_DELEGATE_TRUE='#'
27298 GS_DELEGATE_FALSE=
27299fi
27300
27301
27302
27303# Set default font search path
27304
27305# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027306if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 withval=$with_fontpath; with_fontpath=$withval
27308else
27309 with_fontpath=''
27310fi
27311
27312
27313if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27314 with_fontpath=''
27315else
27316
27317cat >>confdefs.h <<_ACEOF
27318#define MAGICK_FONT_PATH "$with_fontpath"
27319_ACEOF
27320
27321fi
27322if test "$with_fontpath=" != ''; then
27323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27324fi
27325
27326# Set Ghostscript font directory
27327
27328# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027329if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27331else
27332 with_gs_font_dir='default'
27333fi
27334
27335
27336if test "$with_gs_font_dir" != 'default'; then
27337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27338fi
27339
27340
27341#
27342# Check for GVC delegate library.
27343#
27344
27345# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027346if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 withval=$with_gvc; with_gvc=$withval
27348else
27349 with_gvc='yes'
27350fi
27351
27352
27353if test "$with_gvc" != 'yes'; then
27354 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27355fi
27356
27357GVC_PKG=""
27358if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "-------------------------------------------------------------" >&6; }
27361
27362pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo_n "checking for GVC... " >&6; }
27365
27366if test -n "$GVC_CFLAGS"; then
27367 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27368 elif test -n "$PKG_CONFIG"; then
27369 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027371 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27372 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27374 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027375 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27376else
27377 pkg_failed=yes
27378fi
27379 else
27380 pkg_failed=untried
27381fi
27382if test -n "$GVC_LIBS"; then
27383 pkg_cv_GVC_LIBS="$GVC_LIBS"
27384 elif test -n "$PKG_CONFIG"; then
27385 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027387 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27388 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027391 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27392else
27393 pkg_failed=yes
27394fi
27395 else
27396 pkg_failed=untried
27397fi
27398
27399
27400
27401if test $pkg_failed = yes; then
27402
27403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27404 _pkg_short_errors_supported=yes
27405else
27406 _pkg_short_errors_supported=no
27407fi
27408 if test $_pkg_short_errors_supported = yes; then
27409 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27410 else
27411 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27412 fi
27413 # Put the nasty error message in config.log where it belongs
27414 echo "$GVC_PKG_ERRORS" >&5
27415
cristy8b350f62009-11-15 23:12:43 +000027416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo "no" >&6; }
27418 have_gvc=no
27419elif test $pkg_failed = untried; then
27420 have_gvc=no
27421else
27422 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27423 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo "yes" >&6; }
27426 have_gvc=yes
27427fi
cristy8b350f62009-11-15 23:12:43 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo "" >&6; }
27430fi
27431
27432if test "$have_gvc" = 'yes'; then
27433
cristy8b350f62009-11-15 23:12:43 +000027434$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027435
27436 if test "$with_modules" = 'no'; then
27437 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27438 fi
27439fi
27440
27441 if test "$have_gvc" = 'yes'; then
27442 GVC_DELEGATE_TRUE=
27443 GVC_DELEGATE_FALSE='#'
27444else
27445 GVC_DELEGATE_TRUE='#'
27446 GVC_DELEGATE_FALSE=
27447fi
27448
27449
27450
27451
27452
27453#
27454# Check for JBIG delegate library.
27455#
27456
27457
27458# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027459if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027460 withval=$with_jbig; with_jbig=$withval
27461else
27462 with_jbig='yes'
27463fi
27464
27465
27466have_jbig='no'
27467JBIG_LIBS=''
27468if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "" >&6; }
27475 failed=0
27476 passed=0
cristy8b350f62009-11-15 23:12:43 +000027477 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27478if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 passed=`expr $passed + 1`
27480else
27481 failed=`expr $failed + 1`
27482fi
27483
27484
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027487if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 $as_echo_n "(cached) " >&6
27489else
27490 ac_check_lib_save_LIBS=$LIBS
27491LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027493/* end confdefs.h. */
27494
27495/* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
27498#ifdef __cplusplus
27499extern "C"
27500#endif
27501char jbg_dec_init ();
27502int
27503main ()
27504{
27505return jbg_dec_init ();
27506 ;
27507 return 0;
27508}
27509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 ac_cv_lib_jbig_jbg_dec_init=yes
27512else
cristy8b350f62009-11-15 23:12:43 +000027513 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027514fi
cristy8b350f62009-11-15 23:12:43 +000027515rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027517LIBS=$ac_check_lib_save_LIBS
27518fi
cristy8b350f62009-11-15 23:12:43 +000027519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027521if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027522 passed=`expr $passed + 1`
27523else
27524 failed=`expr $failed + 1`
27525fi
27526
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo_n "checking if JBIG package is complete... " >&6; }
27529 if test $passed -gt 0; then
27530 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "no -- some components failed test" >&6; }
27533 have_jbig='no (failed tests)'
27534 else
27535 JBIG_LIBS='-ljbig'
27536 LIBS="$JBIG_LIBS $LIBS"
27537
cristy8b350f62009-11-15 23:12:43 +000027538$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027539
cristy8b350f62009-11-15 23:12:43 +000027540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027541$as_echo "yes" >&6; }
27542 have_jbig='yes'
27543 fi
27544 else
cristy8b350f62009-11-15 23:12:43 +000027545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo "no" >&6; }
27547 fi
27548fi
27549 if test "$have_jbig" = 'yes'; then
27550 JBIG_DELEGATE_TRUE=
27551 JBIG_DELEGATE_FALSE='#'
27552else
27553 JBIG_DELEGATE_TRUE='#'
27554 JBIG_DELEGATE_FALSE=
27555fi
27556
27557
27558
27559
27560#
27561# Check for JPEG delegate library.
27562#
27563
27564# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027565if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 withval=$with_jpeg; with_jpeg=$withval
27567else
27568 with_jpeg='yes'
27569fi
27570
27571
27572if test "$with_jpeg" != 'yes'; then
27573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27574fi
27575
27576have_jpeg='no'
27577JPEG_LIBS=''
27578if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo "" >&6; }
27585 failed=0
27586 passed=0
cristy8b350f62009-11-15 23:12:43 +000027587 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27588if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 passed=`expr $passed + 1`
27590else
27591 failed=`expr $failed + 1`
27592fi
27593
27594
cristy8b350f62009-11-15 23:12:43 +000027595 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27596if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 passed=`expr $passed + 1`
27598else
27599 failed=`expr $failed + 1`
27600fi
27601
27602
cristy8b350f62009-11-15 23:12:43 +000027603 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27604if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 passed=`expr $passed + 1`
27606else
27607 failed=`expr $failed + 1`
27608fi
27609
27610
cristy8b350f62009-11-15 23:12:43 +000027611 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27612if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027613 passed=`expr $passed + 1`
27614else
27615 failed=`expr $failed + 1`
27616fi
27617
27618
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027621if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629/* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27632#ifdef __cplusplus
27633extern "C"
27634#endif
27635char jpeg_read_header ();
27636int
27637main ()
27638{
27639return jpeg_read_header ();
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 ac_cv_lib_jpeg_jpeg_read_header=yes
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651LIBS=$ac_check_lib_save_LIBS
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027655if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 passed=`expr $passed + 1`
27657else
27658 failed=`expr $failed + 1`
27659fi
27660
27661
27662# Test for compatible JPEG library
27663if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027665$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027666if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027667 $as_echo_n "(cached) " >&6
27668else
cristy8b350f62009-11-15 23:12:43 +000027669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670/* end confdefs.h. */
27671#include <stdio.h>
27672#include <stdlib.h>
27673#include <jpeglib.h>
27674
27675int
27676main ()
27677{
27678
27679#if JPEG_LIB_VERSION < 62
27680#error IJG JPEG library must be version 6b or newer!
27681#endif
27682return 0;
27683
27684 ;
27685 return 0;
27686}
27687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27690else
cristy8b350f62009-11-15 23:12:43 +000027691 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027692fi
cristy3ed852e2009-09-05 21:47:34 +000027693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27694fi
cristy8b350f62009-11-15 23:12:43 +000027695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27697fi
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo_n "checking if JPEG package is complete... " >&6; }
27700 if test $passed -gt 0; then
27701 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027703$as_echo "no -- some components failed test" >&6; }
27704 have_jpeg='no (failed tests)'
27705 else
27706 JPEG_LIBS='-ljpeg'
27707 LIBS="$JPEG_LIBS $LIBS"
27708
cristy8b350f62009-11-15 23:12:43 +000027709$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027710
cristy8b350f62009-11-15 23:12:43 +000027711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027712$as_echo "yes" >&6; }
27713 have_jpeg='yes'
27714 fi
27715 else
cristy8b350f62009-11-15 23:12:43 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027717$as_echo "no" >&6; }
27718 fi
27719fi
27720 if test "$have_jpeg" = 'yes'; then
27721 JPEG_DELEGATE_TRUE=
27722 JPEG_DELEGATE_FALSE='#'
27723else
27724 JPEG_DELEGATE_TRUE='#'
27725 JPEG_DELEGATE_FALSE=
27726fi
27727
27728
27729
27730
27731#
27732# Check for JPEG Version 2 delegate library.
27733#
27734
27735# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027736if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027737 withval=$with_jp2; with_jp2=$withval
27738else
27739 with_jp2='yes'
27740fi
27741
27742
27743if test "$with_jp2" != 'yes'; then
27744 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27745fi
27746
27747have_jp2='no'
27748JP2_LIBS=''
27749if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "" >&6; }
27756 failed=0
27757 passed=0
cristy8b350f62009-11-15 23:12:43 +000027758 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27759if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027760 passed=`expr $passed + 1`
27761else
27762 failed=`expr $failed + 1`
27763fi
27764
27765
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027768if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 $as_echo_n "(cached) " >&6
27770else
27771 ac_check_lib_save_LIBS=$LIBS
27772LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027774/* end confdefs.h. */
27775
27776/* Override any GCC internal prototype to avoid an error.
27777 Use char because int might match the return type of a GCC
27778 builtin and then its argument prototype would still apply. */
27779#ifdef __cplusplus
27780extern "C"
27781#endif
27782char jas_stream_fopen ();
27783int
27784main ()
27785{
27786return jas_stream_fopen ();
27787 ;
27788 return 0;
27789}
27790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 ac_cv_lib_jasper_jas_stream_fopen=yes
27793else
cristy8b350f62009-11-15 23:12:43 +000027794 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027795fi
cristy8b350f62009-11-15 23:12:43 +000027796rm -f core conftest.err conftest.$ac_objext \
27797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027798LIBS=$ac_check_lib_save_LIBS
27799fi
cristy8b350f62009-11-15 23:12:43 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027802if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 passed=`expr $passed + 1`
27804else
27805 failed=`expr $failed + 1`
27806fi
27807
cristy8b350f62009-11-15 23:12:43 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27810 if test $passed -gt 0; then
27811 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo "no -- some components failed test" >&6; }
27814 have_jp2='no (failed tests)'
27815 else
27816 JP2_LIBS='-ljasper'
27817 LIBS="$JP2_LIBS $LIBS"
27818
cristy8b350f62009-11-15 23:12:43 +000027819$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027820
cristy8b350f62009-11-15 23:12:43 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo "yes" >&6; }
27823 have_jp2='yes'
27824 fi
27825 else
cristy8b350f62009-11-15 23:12:43 +000027826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo "no" >&6; }
27828 fi
27829fi
27830 if test "$have_jp2" = 'yes'; then
27831 JP2_DELEGATE_TRUE=
27832 JP2_DELEGATE_FALSE='#'
27833else
27834 JP2_DELEGATE_TRUE='#'
27835 JP2_DELEGATE_FALSE=
27836fi
27837
27838
27839
27840
27841#
27842# Check for LCMS delegate library.
27843#
cristy71203402010-06-18 13:12:03 +000027844# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027845
27846# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027847if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027848 withval=$with_lcms; with_lcms=$withval
27849else
27850 with_lcms='yes'
27851fi
27852
cristy71203402010-06-18 13:12:03 +000027853if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027854 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27855fi
27856
cristy71203402010-06-18 13:12:03 +000027857# Disable LCMS2.
27858
27859# Check whether --with-lcms2 was given.
27860if test "${with_lcms2+set}" = set; then :
27861 withval=$with_lcms2; with_lcms2=$withval
27862else
27863 with_lcms2='yes'
27864fi
27865
27866if test "$with_lcms2" != 'yes' ; then
27867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27868fi
27869
27870have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027871LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027872if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027874$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27876$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027878$as_echo "" >&6; }
27879 failed=0
27880 passed=0
27881 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027882
27883 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027884 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27885if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27886 have_lcms_header='yes'
27887fi
27888
27889
27890 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027891
27892$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27893
cristy71203402010-06-18 13:12:03 +000027894 passed=`expr $passed + 1`
27895 fi
27896
27897 # Check for <lcms2/lcms2.h)
27898 if test "$have_lcms_header" != 'yes'; then
27899 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27900if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027901 have_lcms_header='yes'
27902fi
27903
27904
cristy71203402010-06-18 13:12:03 +000027905 if test "$have_lcms_header" = 'yes'; then
27906 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027907
cristy71203402010-06-18 13:12:03 +000027908$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027909
cristy71203402010-06-18 13:12:03 +000027910 fi
cristyd09bcf92010-03-25 03:04:45 +000027911 fi
cristy71203402010-06-18 13:12:03 +000027912
27913 # Failed to find lcms header?
27914 if test "$have_lcms_header" != 'yes'; then
27915 failed=`expr $failed + 1`
27916 fi
27917
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27919$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27920if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027921 $as_echo_n "(cached) " >&6
27922else
27923 ac_check_lib_save_LIBS=$LIBS
27924LIBS="-llcms2 $LIBS"
27925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926/* end confdefs.h. */
27927
27928/* Override any GCC internal prototype to avoid an error.
27929 Use char because int might match the return type of a GCC
27930 builtin and then its argument prototype would still apply. */
27931#ifdef __cplusplus
27932extern "C"
27933#endif
cristy71203402010-06-18 13:12:03 +000027934char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027935int
27936main ()
27937{
cristy71203402010-06-18 13:12:03 +000027938return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027939 ;
27940 return 0;
27941}
27942_ACEOF
27943if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027944 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027945else
cristy71203402010-06-18 13:12:03 +000027946 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027947fi
27948rm -f core conftest.err conftest.$ac_objext \
27949 conftest$ac_exeext conftest.$ac_ext
27950LIBS=$ac_check_lib_save_LIBS
27951fi
cristy71203402010-06-18 13:12:03 +000027952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27953$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27954if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027955 passed=`expr $passed + 1`
27956else
27957 failed=`expr $failed + 1`
27958fi
27959
cristy71203402010-06-18 13:12:03 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27961$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027962 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027963 if test $failed -gt 0; then
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027965$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027966 have_lcms2='no (failed tests)'
27967 else
27968 LCMS_LIBS='-llcms2'
27969 LIBS="$LCMS_LIBS $LIBS"
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027971$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027972 have_lcms2='yes'
27973 fi
cristyd09bcf92010-03-25 03:04:45 +000027974 else
cristy71203402010-06-18 13:12:03 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027976$as_echo "no" >&6; }
27977 fi
27978fi
27979
cristy71203402010-06-18 13:12:03 +000027980#
27981# Check for LCMS v1 (1.11 or later)
27982#
27983if test $have_lcms2 = 'yes'; then
27984 with_lcms='no'
27985fi
27986
27987have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027988if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27990$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27992$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27994$as_echo "" >&6; }
27995 failed=0
27996 passed=0
27997 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027998
27999 # Check for <lcms.h>
28000 if test "$have_lcms_header" != 'yes'; then
28001 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028002if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 have_lcms_header='yes'
28004fi
28005
28006
cristy71203402010-06-18 13:12:03 +000028007 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028008 passed=`expr $passed + 1`
28009
cristy8b350f62009-11-15 23:12:43 +000028010$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028011
cristy71203402010-06-18 13:12:03 +000028012 fi
28013 fi
28014
28015 # Check for <lcms/lcms.h>
28016 if test "$have_lcms_header" != 'yes'; then
28017 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 +000028018if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028019 have_lcms_header='yes'
28020fi
28021
28022
cristy71203402010-06-18 13:12:03 +000028023 if test "$have_lcms_header" = 'yes'; then
28024 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028025
cristy8b350f62009-11-15 23:12:43 +000028026$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028027
cristy71203402010-06-18 13:12:03 +000028028 fi
cristy3ed852e2009-09-05 21:47:34 +000028029 fi
cristy71203402010-06-18 13:12:03 +000028030
28031 # Failed to find lcms header?
28032 if test "$have_lcms_header" != 'yes'; then
28033 failed=`expr $failed + 1`
28034 fi
28035
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28037$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28038if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 $as_echo_n "(cached) " >&6
28040else
28041 ac_check_lib_save_LIBS=$LIBS
28042LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028044/* end confdefs.h. */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
cristy71203402010-06-18 13:12:03 +000028052char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028053int
28054main ()
28055{
cristy71203402010-06-18 13:12:03 +000028056return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028057 ;
28058 return 0;
28059}
28060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028061if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028062 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028063else
cristy71203402010-06-18 13:12:03 +000028064 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028065fi
cristy8b350f62009-11-15 23:12:43 +000028066rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068LIBS=$ac_check_lib_save_LIBS
28069fi
cristy71203402010-06-18 13:12:03 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28071$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28072if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 passed=`expr $passed + 1`
28074else
28075 failed=`expr $failed + 1`
28076fi
28077
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking if LCMS package is complete... " >&6; }
28080 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028081 if test $failed -gt 0; then
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028084 have_lcms='no (failed tests)'
28085 else
28086 LCMS_LIBS='-llcms'
28087 LIBS="$LCMS_LIBS $LIBS"
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028090 have_lcms='yes'
28091 fi
cristy3ed852e2009-09-05 21:47:34 +000028092 else
cristy71203402010-06-18 13:12:03 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "no" >&6; }
28095 fi
28096fi
cristy71203402010-06-18 13:12:03 +000028097
28098 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028099 LCMS_DELEGATE_TRUE=
28100 LCMS_DELEGATE_FALSE='#'
28101else
28102 LCMS_DELEGATE_TRUE='#'
28103 LCMS_DELEGATE_FALSE=
28104fi
28105
cristy71203402010-06-18 13:12:03 +000028106if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28107
28108$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28109
28110fi
28111
cristy3ed852e2009-09-05 21:47:34 +000028112
28113
28114
28115#
28116# Check for the LQR (Liquid Rescale) delegate library.
28117#
28118
28119# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028120if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 withval=$with_lqr; with_lqr=$withval
28122else
28123 with_lqr='yes'
28124fi
28125
28126
28127if test "$with_lqr" != 'yes'; then
28128 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28129fi
28130
28131have_lqr='no'
28132LQR_CFLAGS=""
28133LQR_LIBS=""
28134LQR_PKG=""
28135if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "-------------------------------------------------------------" >&6; }
28138
28139pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo_n "checking for LQR... " >&6; }
28142
28143if test -n "$LQR_CFLAGS"; then
28144 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28145 elif test -n "$PKG_CONFIG"; then
28146 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028148 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28149 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28151 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028152 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28153else
28154 pkg_failed=yes
28155fi
28156 else
28157 pkg_failed=untried
28158fi
28159if test -n "$LQR_LIBS"; then
28160 pkg_cv_LQR_LIBS="$LQR_LIBS"
28161 elif test -n "$PKG_CONFIG"; then
28162 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028164 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28167 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028168 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28169else
28170 pkg_failed=yes
28171fi
28172 else
28173 pkg_failed=untried
28174fi
28175
28176
28177
28178if test $pkg_failed = yes; then
28179
28180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28181 _pkg_short_errors_supported=yes
28182else
28183 _pkg_short_errors_supported=no
28184fi
28185 if test $_pkg_short_errors_supported = yes; then
28186 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28187 else
28188 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28189 fi
28190 # Put the nasty error message in config.log where it belongs
28191 echo "$LQR_PKG_ERRORS" >&5
28192
cristy8b350f62009-11-15 23:12:43 +000028193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo "no" >&6; }
28195 have_lqr=no
28196elif test $pkg_failed = untried; then
28197 have_lqr=no
28198else
28199 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28200 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo "yes" >&6; }
28203 have_lqr=yes
28204fi
cristy8b350f62009-11-15 23:12:43 +000028205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028206$as_echo "" >&6; }
28207fi
28208
28209if test "$have_lqr" = 'yes'; then
28210
cristy8b350f62009-11-15 23:12:43 +000028211$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028212
28213 CFLAGS="$LQR_CFLAGS $CFLAGS"
28214fi
28215
28216 if test "$have_lqr" = 'yes'; then
28217 LQR_DELEGATE_TRUE=
28218 LQR_DELEGATE_FALSE='#'
28219else
28220 LQR_DELEGATE_TRUE='#'
28221 LQR_DELEGATE_FALSE=
28222fi
28223
28224
28225
28226
28227
28228#
28229# Check for the OpenEXR delegate library.
28230#
28231
28232# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028233if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 withval=$with_openexr; with_openexr=$withval
28235else
28236 with_openexr='yes'
28237fi
28238
28239
28240if test "$with_openexr" != 'yes'; then
28241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28242fi
28243
28244have_openexr='no'
28245OPENEXR_CFLAGS=""
28246OPENEXR_LIBS=""
28247OPENEXR_PKG=""
28248if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo "-------------------------------------------------------------" >&6; }
28251
28252pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo_n "checking for OPENEXR... " >&6; }
28255
28256if test -n "$OPENEXR_CFLAGS"; then
28257 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28258 elif test -n "$PKG_CONFIG"; then
28259 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028261 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28262 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28264 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028265 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28266else
28267 pkg_failed=yes
28268fi
28269 else
28270 pkg_failed=untried
28271fi
28272if test -n "$OPENEXR_LIBS"; then
28273 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28274 elif test -n "$PKG_CONFIG"; then
28275 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028277 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28278 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28280 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028281 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28282else
28283 pkg_failed=yes
28284fi
28285 else
28286 pkg_failed=untried
28287fi
28288
28289
28290
28291if test $pkg_failed = yes; then
28292
28293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28294 _pkg_short_errors_supported=yes
28295else
28296 _pkg_short_errors_supported=no
28297fi
28298 if test $_pkg_short_errors_supported = yes; then
28299 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28300 else
28301 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28302 fi
28303 # Put the nasty error message in config.log where it belongs
28304 echo "$OPENEXR_PKG_ERRORS" >&5
28305
cristy8b350f62009-11-15 23:12:43 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo "no" >&6; }
28308 have_openexr=no
28309elif test $pkg_failed = untried; then
28310 have_openexr=no
28311else
28312 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28313 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo "yes" >&6; }
28316 have_openexr=yes
28317fi
cristy8b350f62009-11-15 23:12:43 +000028318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028319$as_echo "" >&6; }
28320fi
28321
28322if test "$have_openexr" = 'yes'; then
28323
cristy8b350f62009-11-15 23:12:43 +000028324$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028325
28326 if test "$with_modules" = 'no'; then
28327 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28328 fi
28329fi
28330
28331 if test "$have_openexr" = 'yes'; then
28332 OPENEXR_DELEGATE_TRUE=
28333 OPENEXR_DELEGATE_FALSE='#'
28334else
28335 OPENEXR_DELEGATE_TRUE='#'
28336 OPENEXR_DELEGATE_FALSE=
28337fi
28338
28339
28340
28341
28342
28343#
28344# Check for PNG delegate library.
28345#
28346
28347# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028348if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028349 withval=$with_png; with_png=$withval
28350else
28351 with_png='yes'
28352fi
28353
28354
28355if test "$with_png" != 'yes'; then
28356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28357fi
28358
28359have_png='no'
28360PNG_LIBS=''
28361if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "" >&6; }
28368 failed=0
28369 passed=0
cristy8b350f62009-11-15 23:12:43 +000028370 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28371if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028372 passed=`expr $passed + 1`
28373else
28374 failed=`expr $failed + 1`
28375fi
28376
28377
cristy8b350f62009-11-15 23:12:43 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028379$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028380if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 $as_echo_n "(cached) " >&6
28382else
28383 ac_check_lib_save_LIBS=$LIBS
28384LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028386/* end confdefs.h. */
28387
28388/* Override any GCC internal prototype to avoid an error.
28389 Use char because int might match the return type of a GCC
28390 builtin and then its argument prototype would still apply. */
28391#ifdef __cplusplus
28392extern "C"
28393#endif
28394char png_get_io_ptr ();
28395int
28396main ()
28397{
28398return png_get_io_ptr ();
28399 ;
28400 return 0;
28401}
28402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 ac_cv_lib_png_png_get_io_ptr=yes
28405else
cristy8b350f62009-11-15 23:12:43 +000028406 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028407fi
cristy8b350f62009-11-15 23:12:43 +000028408rm -f core conftest.err conftest.$ac_objext \
28409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028410LIBS=$ac_check_lib_save_LIBS
28411fi
cristy8b350f62009-11-15 23:12:43 +000028412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028414if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 passed=`expr $passed + 1`
28416else
28417 failed=`expr $failed + 1`
28418fi
28419
cristy8b350f62009-11-15 23:12:43 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028421$as_echo_n "checking if PNG package is complete... " >&6; }
28422 if test $passed -gt 0; then
28423 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo "no -- some components failed test" >&6; }
28426 have_png='no (failed tests)'
28427 else
28428 PNG_LIBS='-lpng'
28429 LIBS="$PNG_LIBS $LIBS"
28430
cristy8b350f62009-11-15 23:12:43 +000028431$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028432
cristy8b350f62009-11-15 23:12:43 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo "yes" >&6; }
28435 have_png='yes'
28436 fi
28437 else
cristy8b350f62009-11-15 23:12:43 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "no" >&6; }
28440 fi
28441fi
28442 if test "$have_png" = 'yes'; then
28443 PNG_DELEGATE_TRUE=
28444 PNG_DELEGATE_FALSE='#'
28445else
28446 PNG_DELEGATE_TRUE='#'
28447 PNG_DELEGATE_FALSE=
28448fi
28449
28450
28451
28452
28453#
28454# Check for RSVG delegate library.
28455#
28456
28457# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028458if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 withval=$with_rsvg; with_rsvg=$withval
28460else
28461 with_rsvg=$have_x
28462fi
28463
28464
28465if test "$with_rsvg" != 'yes'; then
28466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28467fi
28468
28469have_rsvg='no'
28470have_cairo='no'
28471RSVG_CFLAGS=""
28472RSVG_LIBS=""
28473RSVG_PKG=""
28474if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo "-------------------------------------------------------------" >&6; }
28477
28478pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo_n "checking for RSVG... " >&6; }
28481
28482if test -n "$RSVG_CFLAGS"; then
28483 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28484 elif test -n "$PKG_CONFIG"; then
28485 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028486 { { $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 +000028487 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28488 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28490 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028491 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28492else
28493 pkg_failed=yes
28494fi
28495 else
28496 pkg_failed=untried
28497fi
28498if test -n "$RSVG_LIBS"; then
28499 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28500 elif test -n "$PKG_CONFIG"; then
28501 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028502 { { $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 +000028503 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28504 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28506 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028507 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28508else
28509 pkg_failed=yes
28510fi
28511 else
28512 pkg_failed=untried
28513fi
28514
28515
28516
28517if test $pkg_failed = yes; then
28518
28519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28520 _pkg_short_errors_supported=yes
28521else
28522 _pkg_short_errors_supported=no
28523fi
28524 if test $_pkg_short_errors_supported = yes; then
28525 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28526 else
28527 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28528 fi
28529 # Put the nasty error message in config.log where it belongs
28530 echo "$RSVG_PKG_ERRORS" >&5
28531
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo "no" >&6; }
28534 have_rsvg=no
28535elif test $pkg_failed = untried; then
28536 have_rsvg=no
28537else
28538 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28539 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo "yes" >&6; }
28542 have_rsvg=yes
28543fi
cristy8b350f62009-11-15 23:12:43 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo "" >&6; }
28546
28547pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo_n "checking for CAIRO_SVG... " >&6; }
28550
28551if test -n "$CAIRO_SVG_CFLAGS"; then
28552 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28553 elif test -n "$PKG_CONFIG"; then
28554 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028556 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28557 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28559 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028560 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28561else
28562 pkg_failed=yes
28563fi
28564 else
28565 pkg_failed=untried
28566fi
28567if test -n "$CAIRO_SVG_LIBS"; then
28568 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28569 elif test -n "$PKG_CONFIG"; then
28570 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028572 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28573 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28575 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028576 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28577else
28578 pkg_failed=yes
28579fi
28580 else
28581 pkg_failed=untried
28582fi
28583
28584
28585
28586if test $pkg_failed = yes; then
28587
28588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28589 _pkg_short_errors_supported=yes
28590else
28591 _pkg_short_errors_supported=no
28592fi
28593 if test $_pkg_short_errors_supported = yes; then
28594 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28595 else
28596 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28597 fi
28598 # Put the nasty error message in config.log where it belongs
28599 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28600
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo "no" >&6; }
28603 have_cairo=no
28604elif test $pkg_failed = untried; then
28605 have_cairo=no
28606else
28607 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28608 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "yes" >&6; }
28611 have_cairo=yes
28612fi
cristy8b350f62009-11-15 23:12:43 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028614$as_echo "" >&6; }
28615fi
28616
28617if test "$have_rsvg" = 'yes'; then
28618
cristy8b350f62009-11-15 23:12:43 +000028619$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028620
28621 if test "$with_modules" = 'no'; then
28622 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28623 fi
28624fi
28625
28626if test "$have_cairo" = 'yes'; then
28627
cristy8b350f62009-11-15 23:12:43 +000028628$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028629
28630 if test "$with_modules" = 'no'; then
28631 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28632 fi
28633fi
28634
28635 if test "$have_rsvg" = 'yes'; then
28636 RSVG_DELEGATE_TRUE=
28637 RSVG_DELEGATE_FALSE='#'
28638else
28639 RSVG_DELEGATE_TRUE='#'
28640 RSVG_DELEGATE_FALSE=
28641fi
28642
28643 if test "$have_cairo" = 'yes'; then
28644 CAIRO_DELEGATE_TRUE=
28645 CAIRO_DELEGATE_FALSE='#'
28646else
28647 CAIRO_DELEGATE_TRUE='#'
28648 CAIRO_DELEGATE_FALSE=
28649fi
28650
28651
28652
28653
28654
28655#
28656# Check for TIFF delegate library.
28657#
28658
28659# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028660if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028661 withval=$with_tiff; with_tiff=$withval
28662else
28663 with_tiff='yes'
28664fi
28665
28666
28667if test "$with_tiff" != 'yes'; then
28668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28669fi
28670
28671have_tiff='no'
28672TIFF_LIBS=''
28673if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo "" >&6; }
28680 failed=0
28681 passed=0
cristy8b350f62009-11-15 23:12:43 +000028682 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28683if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028684 passed=`expr $passed + 1`
28685else
28686 failed=`expr $failed + 1`
28687fi
28688
28689
cristy8b350f62009-11-15 23:12:43 +000028690 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28691if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028692 passed=`expr $passed + 1`
28693else
28694 failed=`expr $failed + 1`
28695fi
28696
28697
cristy8b350f62009-11-15 23:12:43 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028699$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028700if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 $as_echo_n "(cached) " >&6
28702else
28703 ac_check_lib_save_LIBS=$LIBS
28704LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028706/* end confdefs.h. */
28707
28708/* Override any GCC internal prototype to avoid an error.
28709 Use char because int might match the return type of a GCC
28710 builtin and then its argument prototype would still apply. */
28711#ifdef __cplusplus
28712extern "C"
28713#endif
28714char TIFFOpen ();
28715int
28716main ()
28717{
28718return TIFFOpen ();
28719 ;
28720 return 0;
28721}
28722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028724 ac_cv_lib_tiff_TIFFOpen=yes
28725else
cristy8b350f62009-11-15 23:12:43 +000028726 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028727fi
cristy8b350f62009-11-15 23:12:43 +000028728rm -f core conftest.err conftest.$ac_objext \
28729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028730LIBS=$ac_check_lib_save_LIBS
28731fi
cristy8b350f62009-11-15 23:12:43 +000028732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028734if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028735 passed=`expr $passed + 1`
28736else
28737 failed=`expr $failed + 1`
28738fi
28739
cristy8b350f62009-11-15 23:12:43 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028741$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028742if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 $as_echo_n "(cached) " >&6
28744else
28745 ac_check_lib_save_LIBS=$LIBS
28746LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028748/* end confdefs.h. */
28749
28750/* Override any GCC internal prototype to avoid an error.
28751 Use char because int might match the return type of a GCC
28752 builtin and then its argument prototype would still apply. */
28753#ifdef __cplusplus
28754extern "C"
28755#endif
28756char TIFFClientOpen ();
28757int
28758main ()
28759{
28760return TIFFClientOpen ();
28761 ;
28762 return 0;
28763}
28764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028766 ac_cv_lib_tiff_TIFFClientOpen=yes
28767else
cristy8b350f62009-11-15 23:12:43 +000028768 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028769fi
cristy8b350f62009-11-15 23:12:43 +000028770rm -f core conftest.err conftest.$ac_objext \
28771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028772LIBS=$ac_check_lib_save_LIBS
28773fi
cristy8b350f62009-11-15 23:12:43 +000028774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028775$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028776if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 passed=`expr $passed + 1`
28778else
28779 failed=`expr $failed + 1`
28780fi
28781
cristyb97f1002010-07-26 14:02:57 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28783$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28784if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28785 $as_echo_n "(cached) " >&6
28786else
28787 ac_check_lib_save_LIBS=$LIBS
28788LIBS="-ltiff $LIBS"
28789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28790/* end confdefs.h. */
28791
28792/* Override any GCC internal prototype to avoid an error.
28793 Use char because int might match the return type of a GCC
28794 builtin and then its argument prototype would still apply. */
28795#ifdef __cplusplus
28796extern "C"
28797#endif
28798char TIFFIsBigEndian ();
28799int
28800main ()
28801{
28802return TIFFIsBigEndian ();
28803 ;
28804 return 0;
28805}
28806_ACEOF
28807if ac_fn_c_try_link "$LINENO"; then :
28808 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28809else
28810 ac_cv_lib_tiff_TIFFIsBigEndian=no
28811fi
28812rm -f core conftest.err conftest.$ac_objext \
28813 conftest$ac_exeext conftest.$ac_ext
28814LIBS=$ac_check_lib_save_LIBS
28815fi
28816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28817$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28818if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28819 passed=`expr $passed + 1`
28820else
28821 failed=`expr $failed + 1`
28822fi
28823
cristy8b350f62009-11-15 23:12:43 +000028824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028825$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028826if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028827 $as_echo_n "(cached) " >&6
28828else
28829 ac_check_lib_save_LIBS=$LIBS
28830LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028832/* end confdefs.h. */
28833
28834/* Override any GCC internal prototype to avoid an error.
28835 Use char because int might match the return type of a GCC
28836 builtin and then its argument prototype would still apply. */
28837#ifdef __cplusplus
28838extern "C"
28839#endif
28840char TIFFIsByteSwapped ();
28841int
28842main ()
28843{
28844return TIFFIsByteSwapped ();
28845 ;
28846 return 0;
28847}
28848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28851else
cristy8b350f62009-11-15 23:12:43 +000028852 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028853fi
cristy8b350f62009-11-15 23:12:43 +000028854rm -f core conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028856LIBS=$ac_check_lib_save_LIBS
28857fi
cristy8b350f62009-11-15 23:12:43 +000028858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028860if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 passed=`expr $passed + 1`
28862else
28863 failed=`expr $failed + 1`
28864fi
28865
cristy8b350f62009-11-15 23:12:43 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028868if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 $as_echo_n "(cached) " >&6
28870else
28871 ac_check_lib_save_LIBS=$LIBS
28872LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028874/* end confdefs.h. */
28875
28876/* Override any GCC internal prototype to avoid an error.
28877 Use char because int might match the return type of a GCC
28878 builtin and then its argument prototype would still apply. */
28879#ifdef __cplusplus
28880extern "C"
28881#endif
28882char TIFFReadRGBATile ();
28883int
28884main ()
28885{
28886return TIFFReadRGBATile ();
28887 ;
28888 return 0;
28889}
28890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28893else
cristy8b350f62009-11-15 23:12:43 +000028894 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028895fi
cristy8b350f62009-11-15 23:12:43 +000028896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028898LIBS=$ac_check_lib_save_LIBS
28899fi
cristy8b350f62009-11-15 23:12:43 +000028900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028902if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 passed=`expr $passed + 1`
28904else
28905 failed=`expr $failed + 1`
28906fi
28907
cristy8b350f62009-11-15 23:12:43 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028909$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028910if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028911 $as_echo_n "(cached) " >&6
28912else
28913 ac_check_lib_save_LIBS=$LIBS
28914LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028916/* end confdefs.h. */
28917
28918/* Override any GCC internal prototype to avoid an error.
28919 Use char because int might match the return type of a GCC
28920 builtin and then its argument prototype would still apply. */
28921#ifdef __cplusplus
28922extern "C"
28923#endif
28924char TIFFReadRGBAStrip ();
28925int
28926main ()
28927{
28928return TIFFReadRGBAStrip ();
28929 ;
28930 return 0;
28931}
28932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28935else
cristy8b350f62009-11-15 23:12:43 +000028936 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028937fi
cristy8b350f62009-11-15 23:12:43 +000028938rm -f core conftest.err conftest.$ac_objext \
28939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028940LIBS=$ac_check_lib_save_LIBS
28941fi
cristy8b350f62009-11-15 23:12:43 +000028942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028943$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028944if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 passed=`expr $passed + 1`
28946else
28947 failed=`expr $failed + 1`
28948fi
28949
cristy8b350f62009-11-15 23:12:43 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo_n "checking if TIFF package is complete... " >&6; }
28952 if test $passed -gt 0; then
28953 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "no -- some components failed test" >&6; }
28956 have_tiff='no (failed tests)'
28957 else
28958 TIFF_LIBS='-ltiff'
28959 LIBS="$TIFF_LIBS $LIBS"
28960
cristy8b350f62009-11-15 23:12:43 +000028961$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028962
cristy8b350f62009-11-15 23:12:43 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028964$as_echo "yes" >&6; }
28965 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028966 for ac_header in tiffconf.h
28967do :
28968 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28969if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028970 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028971#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028972_ACEOF
28973
28974fi
28975
28976done
28977
cristy8b350f62009-11-15 23:12:43 +000028978 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028979 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28980 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028981do :
28982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28983ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028984if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 cat >>confdefs.h <<_ACEOF
28986#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28987_ACEOF
28988
28989fi
28990done
28991
28992 fi
28993 else
cristy8b350f62009-11-15 23:12:43 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028995$as_echo "no" >&6; }
28996 fi
28997fi
28998 if test "$have_tiff" = 'yes'; then
28999 TIFF_DELEGATE_TRUE=
29000 TIFF_DELEGATE_FALSE='#'
29001else
29002 TIFF_DELEGATE_TRUE='#'
29003 TIFF_DELEGATE_FALSE=
29004fi
29005
29006
29007
29008
29009#
29010# Set Windows font directory.
29011#
29012
29013# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029014if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029015 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29016else
29017 with_windows_font_dir=''
29018fi
29019
29020if test "$with_windows_font_dir" != '' ; then
29021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29022fi
29023
29024
29025#
29026# Check for WMF delegate library.
29027#
29028
29029# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029030if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 withval=$with_wmf; with_wmf=$withval
29032else
cristy8d63d1d2010-01-06 20:38:37 +000029033 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029034fi
29035
29036
29037if test "$with_wmf" != 'yes'; then
29038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29039fi
29040
29041have_wmf='no'
29042WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029043if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029045$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029049$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029050 failed=0
29051 passed=0
29052 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29053if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29054 passed=`expr $passed + 1`
29055else
29056 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029057fi
29058
29059
cristy735e8942010-04-02 20:32:57 +000029060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29061$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29062if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029063 $as_echo_n "(cached) " >&6
29064else
29065 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029066LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029068/* end confdefs.h. */
29069
29070/* Override any GCC internal prototype to avoid an error.
29071 Use char because int might match the return type of a GCC
29072 builtin and then its argument prototype would still apply. */
29073#ifdef __cplusplus
29074extern "C"
29075#endif
cristy735e8942010-04-02 20:32:57 +000029076char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029077int
29078main ()
29079{
cristy735e8942010-04-02 20:32:57 +000029080return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029081 ;
29082 return 0;
29083}
29084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029085if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029086 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029087else
cristy735e8942010-04-02 20:32:57 +000029088 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029089fi
cristy8b350f62009-11-15 23:12:43 +000029090rm -f core conftest.err conftest.$ac_objext \
29091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029092LIBS=$ac_check_lib_save_LIBS
29093fi
cristy735e8942010-04-02 20:32:57 +000029094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29095$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29096if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29097 passed=`expr $passed + 1`
29098else
29099 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029100fi
29101
cristy735e8942010-04-02 20:32:57 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29103$as_echo_n "checking if WMF package is complete... " >&6; }
29104 if test $passed -gt 0; then
29105 if test $failed -gt 0; then
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29107$as_echo "no -- some components failed test" >&6; }
29108 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029109 else
cristy735e8942010-04-02 20:32:57 +000029110 WMF_LIBS='-lwmf -lwmflite'
29111 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029112
cristy8b350f62009-11-15 23:12:43 +000029113$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029114
cristy735e8942010-04-02 20:32:57 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029116$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029117 have_wmf='yes'
29118 fi
cristy3ed852e2009-09-05 21:47:34 +000029119 else
cristy8b350f62009-11-15 23:12:43 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029121$as_echo "no" >&6; }
29122 fi
29123fi
29124 if test "$have_wmf" = 'yes'; then
29125 WMF_DELEGATE_TRUE=
29126 WMF_DELEGATE_FALSE='#'
29127else
29128 WMF_DELEGATE_TRUE='#'
29129 WMF_DELEGATE_FALSE=
29130fi
29131
29132
29133
29134
29135
cristy735e8942010-04-02 20:32:57 +000029136
cristy3ed852e2009-09-05 21:47:34 +000029137#
29138# Check for XML delegate library.
29139#
29140
29141# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029142if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029143 withval=$with_xml; with_xml=$withval
29144else
29145 with_xml=$have_x
29146fi
29147
29148
29149if test "$with_xml" != 'yes' ; then
29150 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29151fi
29152
29153have_xml='no'
29154XML_LIBS=''
29155if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029157$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029159$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029161$as_echo "" >&6; }
29162 PERSIST_LDFLAGS=$LDFLAGS
29163 PERSIST_CPPFLAGS=$CPPFLAGS
29164 xml2_config=''
29165 for ac_prog in xml2-config
29166do
29167 # Extract the first word of "$ac_prog", so it can be a program name with args.
29168set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029171if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029172 $as_echo_n "(cached) " >&6
29173else
29174 if test -n "$xml2_config"; then
29175 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29176else
29177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29178for as_dir in $PATH
29179do
29180 IFS=$as_save_IFS
29181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29184 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029186 break 2
29187 fi
29188done
cristy8b350f62009-11-15 23:12:43 +000029189 done
cristy3ed852e2009-09-05 21:47:34 +000029190IFS=$as_save_IFS
29191
29192fi
29193fi
29194xml2_config=$ac_cv_prog_xml2_config
29195if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029197$as_echo "$xml2_config" >&6; }
29198else
cristy8b350f62009-11-15 23:12:43 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo "no" >&6; }
29201fi
29202
29203
29204 test -n "$xml2_config" && break
29205done
29206 if test -n "$xml2_config"; then
29207 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29208 # the shared library installed under /usr/lib, whereas the package
29209 # installs itself under $prefix/libxml and $prefix/lib.
29210 xml2_prefix=`xml2-config --prefix`
29211 if test -d "${xml2_prefix}/include/libxml2"; then
29212 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29213 fi
29214 if test "${xml2_prefix}" != '/usr'; then
29215 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29216 fi
29217 fi
29218 failed=0
29219 passed=0
cristy8b350f62009-11-15 23:12:43 +000029220 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29221if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029222 passed=`expr $passed + 1`
29223else
29224 failed=`expr $failed + 1`
29225fi
29226
29227
cristy8b350f62009-11-15 23:12:43 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029229$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029230if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029231 $as_echo_n "(cached) " >&6
29232else
29233 ac_check_lib_save_LIBS=$LIBS
29234LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029236/* end confdefs.h. */
29237
29238/* Override any GCC internal prototype to avoid an error.
29239 Use char because int might match the return type of a GCC
29240 builtin and then its argument prototype would still apply. */
29241#ifdef __cplusplus
29242extern "C"
29243#endif
29244char xmlParseExternalEntity ();
29245int
29246main ()
29247{
29248return xmlParseExternalEntity ();
29249 ;
29250 return 0;
29251}
29252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029254 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29255else
cristy8b350f62009-11-15 23:12:43 +000029256 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029257fi
cristy8b350f62009-11-15 23:12:43 +000029258rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029260LIBS=$ac_check_lib_save_LIBS
29261fi
cristy8b350f62009-11-15 23:12:43 +000029262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029263$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029264if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 passed=`expr $passed + 1`
29266else
29267 failed=`expr $failed + 1`
29268fi
29269
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking if XML package is complete... " >&6; }
29272 if test $passed -gt 0; then
29273 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo "no -- some components failed test" >&6; }
29276 have_xml='no (failed tests)'
29277 LDFLAGS="$PERSIST_LDFLAGS"
29278 CPPFLAGS="$PERSIST_CPPFLAGS"
29279 else
29280 XML_LIBS='-lxml2'
29281 LIBS="$XML_LIBS $LIBS"
29282
cristy8b350f62009-11-15 23:12:43 +000029283$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029284
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "yes" >&6; }
29287 have_xml='yes'
29288 fi
29289 else
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "no" >&6; }
29292 fi
29293fi
29294 if test "$have_xml" = 'yes'; then
29295 XML_DELEGATE_TRUE=
29296 XML_DELEGATE_FALSE='#'
29297else
29298 XML_DELEGATE_TRUE='#'
29299 XML_DELEGATE_FALSE=
29300fi
29301
29302
29303
29304
29305# Substitute compiler name to build/link PerlMagick
29306#
29307
29308
29309#
29310# Configure install Paths
29311#
29312
29313# Subdirectory under lib to place ImageMagick lib files
29314LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29315
29316cat >>confdefs.h <<_ACEOF
29317#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29318_ACEOF
29319
29320
29321# Path to ImageMagick bin directory
29322EXECUTABLE_PATH="${BIN_DIR}"
29323DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29324case "${build_os}" in
29325 mingw* )
29326 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29327 ;;
29328esac
29329
29330cat >>confdefs.h <<_ACEOF
29331#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29332_ACEOF
29333
29334
29335
29336# Path to ImageMagick lib
29337LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29338DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29339case "${build_os}" in
29340 mingw* )
29341 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29342 ;;
29343esac
29344
29345cat >>confdefs.h <<_ACEOF
29346#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29347_ACEOF
29348
29349
29350
29351# Subdirectory under lib to place ImageMagick configuration files
29352CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29353
29354cat >>confdefs.h <<_ACEOF
29355#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29356_ACEOF
29357
29358CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29359DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29360case "${build_os}" in
29361 mingw* )
29362 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29363 ;;
29364esac
29365
29366cat >>confdefs.h <<_ACEOF
29367#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29368_ACEOF
29369
29370
29371
29372#
29373# Subdirectory under lib to place ImageMagick coder module files
29374CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29375
29376cat >>confdefs.h <<_ACEOF
29377#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29378_ACEOF
29379
29380CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29381DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29382case "${build_os}" in
29383 mingw* )
29384 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29385 ;;
29386esac
29387
29388cat >>confdefs.h <<_ACEOF
29389#define CODER_PATH "$DEFINE_CODER_PATH"
29390_ACEOF
29391
29392
29393
29394#
29395# Subdirectory under lib to place ImageMagick filter module files
29396FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29397
29398cat >>confdefs.h <<_ACEOF
29399#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29400_ACEOF
29401
29402FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29403DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29404case "${build_os}" in
29405 mingw* )
29406 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29407 ;;
29408esac
29409
29410cat >>confdefs.h <<_ACEOF
29411#define FILTER_PATH "$DEFINE_FILTER_PATH"
29412_ACEOF
29413
29414
29415
29416#
29417# Path to ImageMagick documentation files
29418DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29419DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29420DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29421case "${build_os}" in
29422 mingw* )
29423 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29424 ;;
29425esac
29426
29427cat >>confdefs.h <<_ACEOF
29428#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29429_ACEOF
29430
29431
29432
29433#
29434# Path to ImageMagick share files
29435SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29436SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29437DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29438case "${build_os}" in
29439 mingw* )
29440 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29441 ;;
29442esac
29443
29444cat >>confdefs.h <<_ACEOF
29445#define SHARE_PATH "$DEFINE_SHARE_PATH"
29446_ACEOF
29447
29448
29449
29450# Subdirectory under share to place ImageMagick configuration files
29451SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29452
29453cat >>confdefs.h <<_ACEOF
29454#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29455_ACEOF
29456
29457SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29458DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29459case "${build_os}" in
29460 mingw* )
29461 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29462 ;;
29463esac
29464
29465cat >>confdefs.h <<_ACEOF
29466#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29467_ACEOF
29468
29469
29470
29471#
29472# program_transform_name is formed for use in a Makefile, so create a
29473# modified version for use in a shell script.
29474configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29475
29476# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029482$as_echo "" >&6; }
29483AutotraceDecodeDelegateDefault='autotrace'
29484AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029485BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029486BZIPDelegateDefault='bzip2'
29487BrowseDelegateDefault='xdg-open'
29488CGMDecodeDelegateDefault='ralcgm'
29489CatDelegateDefault='cat'
29490DNGDecodeDelegateDefault='ufraw-batch'
29491GVCDecodeDelegateDefault='dot'
29492DVIDecodeDelegateDefault='dvips'
29493EchoDelegateDefault='echo'
29494EditorDelegateDefault='xterm'
29495FIGDecodeDelegateDefault='fig2dev'
29496ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29497DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29498MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29499GnuplotDecodeDelegateDefault='gnuplot'
29500HDRDecodeDelegateDefault='ra_pfm'
29501HPGLDecodeDelegateDefault='hp2xx'
29502HTMLDecodeDelegateDefault='html2ps'
29503ILBMDecodeDelegateDefault='ilbmtoppm'
29504ILBMEncodeDelegateDefault='ppmtoilbm'
29505LPDelegateDefault='lp'
29506LPRDelegateDefault='lpr'
29507LZWDecodeDelegateDefault='uncompress'
29508LZWEncodeDelegateDefault='compress'
29509LaunchDelegateDefault='gimp'
29510MANDelegateDefault='groff'
29511MPEGDecodeDelegateDefault='ffmpeg'
29512MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029513MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029514MVDelegateDefault='mv'
29515PCLDelegateDefault='pcl6'
29516PGPDecodeDelegateDefault='pgpv'
29517POVDelegateDefault='povray'
29518if test "$native_win32_build" = 'yes'; then
29519 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029520elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029521 PSDelegateDefault='gsc'
29522else
29523 PSDelegateDefault='gs'
29524fi
29525RLEEncodeDelegateDefault='rawtorle'
29526RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029527RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029528SCANDecodeDelegateDefault='scanimage'
29529TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029530UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029531WMFDecodeDelegateDefault='wmf2eps'
29532WWWDecodeDelegateDefault='curl'
29533XPSDelegateDefault='gxps'
29534ZipDelegateDefault='gzip'
29535
29536# Search for delegates
29537# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29538set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029541if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029542 $as_echo_n "(cached) " >&6
29543else
29544 case $AutotraceDecodeDelegate in
29545 [\\/]* | ?:[\\/]*)
29546 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29547 ;;
29548 *)
29549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29550for as_dir in $PATH
29551do
29552 IFS=$as_save_IFS
29553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29556 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029558 break 2
29559 fi
29560done
cristy8b350f62009-11-15 23:12:43 +000029561 done
cristy3ed852e2009-09-05 21:47:34 +000029562IFS=$as_save_IFS
29563
29564 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29565 ;;
29566esac
29567fi
29568AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29569if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029571$as_echo "$AutotraceDecodeDelegate" >&6; }
29572else
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo "no" >&6; }
29575fi
29576
29577
29578# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29579set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029582if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029583 $as_echo_n "(cached) " >&6
29584else
29585 case $AVIDecodeDelegate in
29586 [\\/]* | ?:[\\/]*)
29587 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29588 ;;
29589 *)
29590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29591for as_dir in $PATH
29592do
29593 IFS=$as_save_IFS
29594 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29597 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599 break 2
29600 fi
29601done
cristy8b350f62009-11-15 23:12:43 +000029602 done
cristy3ed852e2009-09-05 21:47:34 +000029603IFS=$as_save_IFS
29604
29605 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29606 ;;
29607esac
29608fi
29609AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29610if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo "$AVIDecodeDelegate" >&6; }
29613else
cristy8b350f62009-11-15 23:12:43 +000029614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029615$as_echo "no" >&6; }
29616fi
29617
29618
29619# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29620set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029623if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 $as_echo_n "(cached) " >&6
29625else
29626 case $BlenderDecodeDelegate in
29627 [\\/]* | ?:[\\/]*)
29628 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29629 ;;
29630 *)
29631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29632for as_dir in $PATH
29633do
29634 IFS=$as_save_IFS
29635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29638 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640 break 2
29641 fi
29642done
cristy8b350f62009-11-15 23:12:43 +000029643 done
cristy3ed852e2009-09-05 21:47:34 +000029644IFS=$as_save_IFS
29645
29646 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29647 ;;
29648esac
29649fi
29650BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29651if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo "$BlenderDecodeDelegate" >&6; }
29654else
cristy8b350f62009-11-15 23:12:43 +000029655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029656$as_echo "no" >&6; }
29657fi
29658
29659
29660# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29661set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029664if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 $as_echo_n "(cached) " >&6
29666else
29667 case $BZIPDelegate in
29668 [\\/]* | ?:[\\/]*)
29669 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29670 ;;
29671 *)
29672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29673for as_dir in $PATH
29674do
29675 IFS=$as_save_IFS
29676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29679 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681 break 2
29682 fi
29683done
cristy8b350f62009-11-15 23:12:43 +000029684 done
cristy3ed852e2009-09-05 21:47:34 +000029685IFS=$as_save_IFS
29686
29687 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29688 ;;
29689esac
29690fi
29691BZIPDelegate=$ac_cv_path_BZIPDelegate
29692if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo "$BZIPDelegate" >&6; }
29695else
cristy8b350f62009-11-15 23:12:43 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029697$as_echo "no" >&6; }
29698fi
29699
29700
29701# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29702set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029705if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029706 $as_echo_n "(cached) " >&6
29707else
29708 case $BrowseDelegate in
29709 [\\/]* | ?:[\\/]*)
29710 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29711 ;;
29712 *)
29713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29714for as_dir in $PATH
29715do
29716 IFS=$as_save_IFS
29717 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029718 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29720 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029722 break 2
29723 fi
29724done
cristy8b350f62009-11-15 23:12:43 +000029725 done
cristy3ed852e2009-09-05 21:47:34 +000029726IFS=$as_save_IFS
29727
29728 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29729 ;;
29730esac
29731fi
29732BrowseDelegate=$ac_cv_path_BrowseDelegate
29733if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029735$as_echo "$BrowseDelegate" >&6; }
29736else
cristy8b350f62009-11-15 23:12:43 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo "no" >&6; }
29739fi
29740
29741
29742# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29743set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029746if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029747 $as_echo_n "(cached) " >&6
29748else
29749 case $CGMDecodeDelegate in
29750 [\\/]* | ?:[\\/]*)
29751 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29752 ;;
29753 *)
29754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29755for as_dir in $PATH
29756do
29757 IFS=$as_save_IFS
29758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29761 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763 break 2
29764 fi
29765done
cristy8b350f62009-11-15 23:12:43 +000029766 done
cristy3ed852e2009-09-05 21:47:34 +000029767IFS=$as_save_IFS
29768
29769 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29770 ;;
29771esac
29772fi
29773CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29774if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo "$CGMDecodeDelegate" >&6; }
29777else
cristy8b350f62009-11-15 23:12:43 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029779$as_echo "no" >&6; }
29780fi
29781
29782
29783# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29784set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029787if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029788 $as_echo_n "(cached) " >&6
29789else
29790 case $CatDelegate in
29791 [\\/]* | ?:[\\/]*)
29792 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29793 ;;
29794 *)
29795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29796for as_dir in $PATH
29797do
29798 IFS=$as_save_IFS
29799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29802 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029804 break 2
29805 fi
29806done
cristy8b350f62009-11-15 23:12:43 +000029807 done
cristy3ed852e2009-09-05 21:47:34 +000029808IFS=$as_save_IFS
29809
29810 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29811 ;;
29812esac
29813fi
29814CatDelegate=$ac_cv_path_CatDelegate
29815if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029817$as_echo "$CatDelegate" >&6; }
29818else
cristy8b350f62009-11-15 23:12:43 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029820$as_echo "no" >&6; }
29821fi
29822
29823
29824# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29825set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029828if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029829 $as_echo_n "(cached) " >&6
29830else
29831 case $DNGDecodeDelegate in
29832 [\\/]* | ?:[\\/]*)
29833 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29834 ;;
29835 *)
29836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29837for as_dir in $PATH
29838do
29839 IFS=$as_save_IFS
29840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29843 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029845 break 2
29846 fi
29847done
cristy8b350f62009-11-15 23:12:43 +000029848 done
cristy3ed852e2009-09-05 21:47:34 +000029849IFS=$as_save_IFS
29850
29851 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29852 ;;
29853esac
29854fi
29855DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29856if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029858$as_echo "$DNGDecodeDelegate" >&6; }
29859else
cristy8b350f62009-11-15 23:12:43 +000029860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029861$as_echo "no" >&6; }
29862fi
29863
29864
29865# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29866set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029869if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029870 $as_echo_n "(cached) " >&6
29871else
29872 case $GVCDecodeDelegate in
29873 [\\/]* | ?:[\\/]*)
29874 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29875 ;;
29876 *)
29877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29878for as_dir in $PATH
29879do
29880 IFS=$as_save_IFS
29881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29884 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886 break 2
29887 fi
29888done
cristy8b350f62009-11-15 23:12:43 +000029889 done
cristy3ed852e2009-09-05 21:47:34 +000029890IFS=$as_save_IFS
29891
29892 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29893 ;;
29894esac
29895fi
29896GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29897if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029899$as_echo "$GVCDecodeDelegate" >&6; }
29900else
cristy8b350f62009-11-15 23:12:43 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029902$as_echo "no" >&6; }
29903fi
29904
29905
29906# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29907set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029909$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029910if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029911 $as_echo_n "(cached) " >&6
29912else
29913 case $DVIDecodeDelegate in
29914 [\\/]* | ?:[\\/]*)
29915 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29916 ;;
29917 *)
29918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29919for as_dir in $PATH
29920do
29921 IFS=$as_save_IFS
29922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29925 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029927 break 2
29928 fi
29929done
cristy8b350f62009-11-15 23:12:43 +000029930 done
cristy3ed852e2009-09-05 21:47:34 +000029931IFS=$as_save_IFS
29932
29933 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29934 ;;
29935esac
29936fi
29937DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29938if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029940$as_echo "$DVIDecodeDelegate" >&6; }
29941else
cristy8b350f62009-11-15 23:12:43 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029943$as_echo "no" >&6; }
29944fi
29945
29946
29947# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29948set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029951if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029952 $as_echo_n "(cached) " >&6
29953else
29954 case $EchoDelegate in
29955 [\\/]* | ?:[\\/]*)
29956 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29957 ;;
29958 *)
29959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29960for as_dir in $PATH
29961do
29962 IFS=$as_save_IFS
29963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29966 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029968 break 2
29969 fi
29970done
cristy8b350f62009-11-15 23:12:43 +000029971 done
cristy3ed852e2009-09-05 21:47:34 +000029972IFS=$as_save_IFS
29973
29974 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29975 ;;
29976esac
29977fi
29978EchoDelegate=$ac_cv_path_EchoDelegate
29979if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029981$as_echo "$EchoDelegate" >&6; }
29982else
cristy8b350f62009-11-15 23:12:43 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029984$as_echo "no" >&6; }
29985fi
29986
29987
29988# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29989set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029992if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029993 $as_echo_n "(cached) " >&6
29994else
29995 case $EditorDelegate in
29996 [\\/]* | ?:[\\/]*)
29997 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29998 ;;
29999 *)
30000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30001for as_dir in $PATH
30002do
30003 IFS=$as_save_IFS
30004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30007 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030009 break 2
30010 fi
30011done
cristy8b350f62009-11-15 23:12:43 +000030012 done
cristy3ed852e2009-09-05 21:47:34 +000030013IFS=$as_save_IFS
30014
30015 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30016 ;;
30017esac
30018fi
30019EditorDelegate=$ac_cv_path_EditorDelegate
30020if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030022$as_echo "$EditorDelegate" >&6; }
30023else
cristy8b350f62009-11-15 23:12:43 +000030024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030025$as_echo "no" >&6; }
30026fi
30027
30028
30029# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30030set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030032$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030033if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030034 $as_echo_n "(cached) " >&6
30035else
30036 case $FIGDecodeDelegate in
30037 [\\/]* | ?:[\\/]*)
30038 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30039 ;;
30040 *)
30041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042for as_dir in $PATH
30043do
30044 IFS=$as_save_IFS
30045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050 break 2
30051 fi
30052done
cristy8b350f62009-11-15 23:12:43 +000030053 done
cristy3ed852e2009-09-05 21:47:34 +000030054IFS=$as_save_IFS
30055
30056 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30057 ;;
30058esac
30059fi
30060FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30061if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030063$as_echo "$FIGDecodeDelegate" >&6; }
30064else
cristy8b350f62009-11-15 23:12:43 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030066$as_echo "no" >&6; }
30067fi
30068
30069
30070# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30071set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030074if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030075 $as_echo_n "(cached) " >&6
30076else
30077 case $ConvertDelegate in
30078 [\\/]* | ?:[\\/]*)
30079 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30080 ;;
30081 *)
30082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30083for as_dir in $PATH
30084do
30085 IFS=$as_save_IFS
30086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30089 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030091 break 2
30092 fi
30093done
cristy8b350f62009-11-15 23:12:43 +000030094 done
cristy3ed852e2009-09-05 21:47:34 +000030095IFS=$as_save_IFS
30096
30097 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30098 ;;
30099esac
30100fi
30101ConvertDelegate=$ac_cv_path_ConvertDelegate
30102if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030104$as_echo "$ConvertDelegate" >&6; }
30105else
cristy8b350f62009-11-15 23:12:43 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030107$as_echo "no" >&6; }
30108fi
30109
30110
30111# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30112set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030115if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030116 $as_echo_n "(cached) " >&6
30117else
30118 case $DisplayDelegate in
30119 [\\/]* | ?:[\\/]*)
30120 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30121 ;;
30122 *)
30123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30124for as_dir in $PATH
30125do
30126 IFS=$as_save_IFS
30127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30130 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030132 break 2
30133 fi
30134done
cristy8b350f62009-11-15 23:12:43 +000030135 done
cristy3ed852e2009-09-05 21:47:34 +000030136IFS=$as_save_IFS
30137
30138 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30139 ;;
30140esac
30141fi
30142DisplayDelegate=$ac_cv_path_DisplayDelegate
30143if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030145$as_echo "$DisplayDelegate" >&6; }
30146else
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo "no" >&6; }
30149fi
30150
30151
30152# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30153set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030156if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030157 $as_echo_n "(cached) " >&6
30158else
30159 case $MogrifyDelegate in
30160 [\\/]* | ?:[\\/]*)
30161 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30162 ;;
30163 *)
30164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30165for as_dir in $PATH
30166do
30167 IFS=$as_save_IFS
30168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30171 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030173 break 2
30174 fi
30175done
cristy8b350f62009-11-15 23:12:43 +000030176 done
cristy3ed852e2009-09-05 21:47:34 +000030177IFS=$as_save_IFS
30178
30179 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30180 ;;
30181esac
30182fi
30183MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30184if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo "$MogrifyDelegate" >&6; }
30187else
cristy8b350f62009-11-15 23:12:43 +000030188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "no" >&6; }
30190fi
30191
30192
30193# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30194set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030197if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030198 $as_echo_n "(cached) " >&6
30199else
30200 case $GnuplotDecodeDelegate in
30201 [\\/]* | ?:[\\/]*)
30202 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30203 ;;
30204 *)
30205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30206for as_dir in $PATH
30207do
30208 IFS=$as_save_IFS
30209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30212 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030214 break 2
30215 fi
30216done
cristy8b350f62009-11-15 23:12:43 +000030217 done
cristy3ed852e2009-09-05 21:47:34 +000030218IFS=$as_save_IFS
30219
30220 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30221 ;;
30222esac
30223fi
30224GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30225if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo "$GnuplotDecodeDelegate" >&6; }
30228else
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "no" >&6; }
30231fi
30232
30233
30234# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30235set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030238if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030239 $as_echo_n "(cached) " >&6
30240else
30241 case $HDRDecodeDelegate in
30242 [\\/]* | ?:[\\/]*)
30243 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30244 ;;
30245 *)
30246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30247for as_dir in $PATH
30248do
30249 IFS=$as_save_IFS
30250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30253 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030255 break 2
30256 fi
30257done
cristy8b350f62009-11-15 23:12:43 +000030258 done
cristy3ed852e2009-09-05 21:47:34 +000030259IFS=$as_save_IFS
30260
30261 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30262 ;;
30263esac
30264fi
30265HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30266if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030268$as_echo "$HDRDecodeDelegate" >&6; }
30269else
cristy8b350f62009-11-15 23:12:43 +000030270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030271$as_echo "no" >&6; }
30272fi
30273
30274
30275# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30276set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030278$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030279if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030280 $as_echo_n "(cached) " >&6
30281else
30282 case $HPGLDecodeDelegate in
30283 [\\/]* | ?:[\\/]*)
30284 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30285 ;;
30286 *)
30287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30288for as_dir in $PATH
30289do
30290 IFS=$as_save_IFS
30291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30294 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030296 break 2
30297 fi
30298done
cristy8b350f62009-11-15 23:12:43 +000030299 done
cristy3ed852e2009-09-05 21:47:34 +000030300IFS=$as_save_IFS
30301
30302 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30303 ;;
30304esac
30305fi
30306HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30307if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030309$as_echo "$HPGLDecodeDelegate" >&6; }
30310else
cristy8b350f62009-11-15 23:12:43 +000030311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030312$as_echo "no" >&6; }
30313fi
30314
30315
30316# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30317set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030320if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030321 $as_echo_n "(cached) " >&6
30322else
30323 case $HTMLDecodeDelegate in
30324 [\\/]* | ?:[\\/]*)
30325 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30326 ;;
30327 *)
30328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30329for as_dir in $PATH
30330do
30331 IFS=$as_save_IFS
30332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30335 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337 break 2
30338 fi
30339done
cristy8b350f62009-11-15 23:12:43 +000030340 done
cristy3ed852e2009-09-05 21:47:34 +000030341IFS=$as_save_IFS
30342
30343 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30344 ;;
30345esac
30346fi
30347HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30348if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030350$as_echo "$HTMLDecodeDelegate" >&6; }
30351else
cristy8b350f62009-11-15 23:12:43 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030353$as_echo "no" >&6; }
30354fi
30355
30356
30357# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30358set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030360$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030361if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030362 $as_echo_n "(cached) " >&6
30363else
30364 case $ILBMDecodeDelegate in
30365 [\\/]* | ?:[\\/]*)
30366 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30367 ;;
30368 *)
30369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30370for as_dir in $PATH
30371do
30372 IFS=$as_save_IFS
30373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30376 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378 break 2
30379 fi
30380done
cristy8b350f62009-11-15 23:12:43 +000030381 done
cristy3ed852e2009-09-05 21:47:34 +000030382IFS=$as_save_IFS
30383
30384 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30385 ;;
30386esac
30387fi
30388ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30389if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo "$ILBMDecodeDelegate" >&6; }
30392else
cristy8b350f62009-11-15 23:12:43 +000030393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030394$as_echo "no" >&6; }
30395fi
30396
30397
30398# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30399set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030401$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030402if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030403 $as_echo_n "(cached) " >&6
30404else
30405 case $ILBMEncodeDelegate in
30406 [\\/]* | ?:[\\/]*)
30407 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30408 ;;
30409 *)
30410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30411for as_dir in $PATH
30412do
30413 IFS=$as_save_IFS
30414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30417 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030419 break 2
30420 fi
30421done
cristy8b350f62009-11-15 23:12:43 +000030422 done
cristy3ed852e2009-09-05 21:47:34 +000030423IFS=$as_save_IFS
30424
30425 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30426 ;;
30427esac
30428fi
30429ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30430if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030432$as_echo "$ILBMEncodeDelegate" >&6; }
30433else
cristy8b350f62009-11-15 23:12:43 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo "no" >&6; }
30436fi
30437
30438
30439# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30440set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030443if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030444 $as_echo_n "(cached) " >&6
30445else
30446 case $LPDelegate in
30447 [\\/]* | ?:[\\/]*)
30448 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30449 ;;
30450 *)
30451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30452for as_dir in $PATH
30453do
30454 IFS=$as_save_IFS
30455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30458 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030460 break 2
30461 fi
30462done
cristy8b350f62009-11-15 23:12:43 +000030463 done
cristy3ed852e2009-09-05 21:47:34 +000030464IFS=$as_save_IFS
30465
30466 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30467 ;;
30468esac
30469fi
30470LPDelegate=$ac_cv_path_LPDelegate
30471if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473$as_echo "$LPDelegate" >&6; }
30474else
cristy8b350f62009-11-15 23:12:43 +000030475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030476$as_echo "no" >&6; }
30477fi
30478
30479
30480# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30481set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030484if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030485 $as_echo_n "(cached) " >&6
30486else
30487 case $LPRDelegate in
30488 [\\/]* | ?:[\\/]*)
30489 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30490 ;;
30491 *)
30492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30493for as_dir in $PATH
30494do
30495 IFS=$as_save_IFS
30496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30499 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030501 break 2
30502 fi
30503done
cristy8b350f62009-11-15 23:12:43 +000030504 done
cristy3ed852e2009-09-05 21:47:34 +000030505IFS=$as_save_IFS
30506
30507 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30508 ;;
30509esac
30510fi
30511LPRDelegate=$ac_cv_path_LPRDelegate
30512if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030514$as_echo "$LPRDelegate" >&6; }
30515else
cristy8b350f62009-11-15 23:12:43 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030517$as_echo "no" >&6; }
30518fi
30519
30520
30521# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30522set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030525if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030526 $as_echo_n "(cached) " >&6
30527else
30528 case $LZWDecodeDelegate in
30529 [\\/]* | ?:[\\/]*)
30530 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30531 ;;
30532 *)
30533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30534for as_dir in $PATH
30535do
30536 IFS=$as_save_IFS
30537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30540 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030542 break 2
30543 fi
30544done
cristy8b350f62009-11-15 23:12:43 +000030545 done
cristy3ed852e2009-09-05 21:47:34 +000030546IFS=$as_save_IFS
30547
30548 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30549 ;;
30550esac
30551fi
30552LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30553if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030555$as_echo "$LZWDecodeDelegate" >&6; }
30556else
cristy8b350f62009-11-15 23:12:43 +000030557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030558$as_echo "no" >&6; }
30559fi
30560
30561
30562# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30563set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030565$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030566if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030567 $as_echo_n "(cached) " >&6
30568else
30569 case $LZWEncodeDelegate in
30570 [\\/]* | ?:[\\/]*)
30571 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30572 ;;
30573 *)
30574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30575for as_dir in $PATH
30576do
30577 IFS=$as_save_IFS
30578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30581 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030583 break 2
30584 fi
30585done
cristy8b350f62009-11-15 23:12:43 +000030586 done
cristy3ed852e2009-09-05 21:47:34 +000030587IFS=$as_save_IFS
30588
30589 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30590 ;;
30591esac
30592fi
30593LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30594if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo "$LZWEncodeDelegate" >&6; }
30597else
cristy8b350f62009-11-15 23:12:43 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030599$as_echo "no" >&6; }
30600fi
30601
30602
30603# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30604set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030606$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030607if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030608 $as_echo_n "(cached) " >&6
30609else
30610 case $LaunchDelegate in
30611 [\\/]* | ?:[\\/]*)
30612 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30613 ;;
30614 *)
30615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30616for as_dir in $PATH
30617do
30618 IFS=$as_save_IFS
30619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30622 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030624 break 2
30625 fi
30626done
cristy8b350f62009-11-15 23:12:43 +000030627 done
cristy3ed852e2009-09-05 21:47:34 +000030628IFS=$as_save_IFS
30629
30630 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30631 ;;
30632esac
30633fi
30634LaunchDelegate=$ac_cv_path_LaunchDelegate
30635if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "$LaunchDelegate" >&6; }
30638else
cristy8b350f62009-11-15 23:12:43 +000030639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030640$as_echo "no" >&6; }
30641fi
30642
30643
30644# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30645set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030647$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030648if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030649 $as_echo_n "(cached) " >&6
30650else
30651 case $MANDelegate in
30652 [\\/]* | ?:[\\/]*)
30653 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30654 ;;
30655 *)
30656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657for as_dir in $PATH
30658do
30659 IFS=$as_save_IFS
30660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30663 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030665 break 2
30666 fi
30667done
cristy8b350f62009-11-15 23:12:43 +000030668 done
cristy3ed852e2009-09-05 21:47:34 +000030669IFS=$as_save_IFS
30670
30671 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30672 ;;
30673esac
30674fi
30675MANDelegate=$ac_cv_path_MANDelegate
30676if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030678$as_echo "$MANDelegate" >&6; }
30679else
cristy8b350f62009-11-15 23:12:43 +000030680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030681$as_echo "no" >&6; }
30682fi
30683
30684
30685# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30686set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030689if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030690 $as_echo_n "(cached) " >&6
30691else
30692 case $MPEGDecodeDelegate in
30693 [\\/]* | ?:[\\/]*)
30694 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30695 ;;
30696 *)
30697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30698for as_dir in $PATH
30699do
30700 IFS=$as_save_IFS
30701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30704 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030706 break 2
30707 fi
30708done
cristy8b350f62009-11-15 23:12:43 +000030709 done
cristy3ed852e2009-09-05 21:47:34 +000030710IFS=$as_save_IFS
30711
30712 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30713 ;;
30714esac
30715fi
30716MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30717if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo "$MPEGDecodeDelegate" >&6; }
30720else
cristy8b350f62009-11-15 23:12:43 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030722$as_echo "no" >&6; }
30723fi
30724
30725
30726# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30727set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030729$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030730if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030731 $as_echo_n "(cached) " >&6
30732else
30733 case $MPEGEncodeDelegate in
30734 [\\/]* | ?:[\\/]*)
30735 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30736 ;;
30737 *)
30738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739for as_dir in $PATH
30740do
30741 IFS=$as_save_IFS
30742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30745 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030747 break 2
30748 fi
30749done
cristy8b350f62009-11-15 23:12:43 +000030750 done
cristy3ed852e2009-09-05 21:47:34 +000030751IFS=$as_save_IFS
30752
30753 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30754 ;;
30755esac
30756fi
30757MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30758if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760$as_echo "$MPEGEncodeDelegate" >&6; }
30761else
cristy8b350f62009-11-15 23:12:43 +000030762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030763$as_echo "no" >&6; }
30764fi
30765
30766
cristy935c86e2010-06-05 23:50:07 +000030767# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30768set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30770$as_echo_n "checking for $ac_word... " >&6; }
30771if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30772 $as_echo_n "(cached) " >&6
30773else
30774 case $MrSIDDecodeDelegate in
30775 [\\/]* | ?:[\\/]*)
30776 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30777 ;;
30778 *)
30779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30780for as_dir in $PATH
30781do
30782 IFS=$as_save_IFS
30783 test -z "$as_dir" && as_dir=.
30784 for ac_exec_ext in '' $ac_executable_extensions; do
30785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30786 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30788 break 2
30789 fi
30790done
30791 done
30792IFS=$as_save_IFS
30793
30794 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30795 ;;
30796esac
30797fi
30798MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30799if test -n "$MrSIDDecodeDelegate"; then
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30801$as_echo "$MrSIDDecodeDelegate" >&6; }
30802else
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30804$as_echo "no" >&6; }
30805fi
30806
30807
cristy3ed852e2009-09-05 21:47:34 +000030808# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30809set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030812if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030813 $as_echo_n "(cached) " >&6
30814else
30815 case $MVDelegate in
30816 [\\/]* | ?:[\\/]*)
30817 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30818 ;;
30819 *)
30820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30821for as_dir in $PATH
30822do
30823 IFS=$as_save_IFS
30824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30827 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030829 break 2
30830 fi
30831done
cristy8b350f62009-11-15 23:12:43 +000030832 done
cristy3ed852e2009-09-05 21:47:34 +000030833IFS=$as_save_IFS
30834
30835 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30836 ;;
30837esac
30838fi
30839MVDelegate=$ac_cv_path_MVDelegate
30840if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030842$as_echo "$MVDelegate" >&6; }
30843else
cristy8b350f62009-11-15 23:12:43 +000030844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030845$as_echo "no" >&6; }
30846fi
30847
30848
30849# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30850set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030853if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030854 $as_echo_n "(cached) " >&6
30855else
30856 case $PCLDelegate in
30857 [\\/]* | ?:[\\/]*)
30858 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30859 ;;
30860 *)
30861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30862for as_dir in $PATH
30863do
30864 IFS=$as_save_IFS
30865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30868 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030870 break 2
30871 fi
30872done
cristy8b350f62009-11-15 23:12:43 +000030873 done
cristy3ed852e2009-09-05 21:47:34 +000030874IFS=$as_save_IFS
30875
30876 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30877 ;;
30878esac
30879fi
30880PCLDelegate=$ac_cv_path_PCLDelegate
30881if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883$as_echo "$PCLDelegate" >&6; }
30884else
cristy8b350f62009-11-15 23:12:43 +000030885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030886$as_echo "no" >&6; }
30887fi
30888
30889
30890# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30891set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030894if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030895 $as_echo_n "(cached) " >&6
30896else
30897 case $PGPDecodeDelegate in
30898 [\\/]* | ?:[\\/]*)
30899 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30900 ;;
30901 *)
30902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30903for as_dir in $PATH
30904do
30905 IFS=$as_save_IFS
30906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30909 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030911 break 2
30912 fi
30913done
cristy8b350f62009-11-15 23:12:43 +000030914 done
cristy3ed852e2009-09-05 21:47:34 +000030915IFS=$as_save_IFS
30916
30917 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30918 ;;
30919esac
30920fi
30921PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30922if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924$as_echo "$PGPDecodeDelegate" >&6; }
30925else
cristy8b350f62009-11-15 23:12:43 +000030926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "no" >&6; }
30928fi
30929
30930
30931# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30932set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030934$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030935if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030936 $as_echo_n "(cached) " >&6
30937else
30938 case $POVDelegate in
30939 [\\/]* | ?:[\\/]*)
30940 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30941 ;;
30942 *)
30943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30944for as_dir in $PATH
30945do
30946 IFS=$as_save_IFS
30947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30950 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030952 break 2
30953 fi
30954done
cristy8b350f62009-11-15 23:12:43 +000030955 done
cristy3ed852e2009-09-05 21:47:34 +000030956IFS=$as_save_IFS
30957
30958 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30959 ;;
30960esac
30961fi
30962POVDelegate=$ac_cv_path_POVDelegate
30963if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965$as_echo "$POVDelegate" >&6; }
30966else
cristy8b350f62009-11-15 23:12:43 +000030967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030968$as_echo "no" >&6; }
30969fi
30970
30971
30972for ac_prog in gsx gsc "$PSDelegateDefault"
30973do
30974 # Extract the first word of "$ac_prog", so it can be a program name with args.
30975set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030977$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030978if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030979 $as_echo_n "(cached) " >&6
30980else
30981 case $PSDelegate in
30982 [\\/]* | ?:[\\/]*)
30983 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30984 ;;
30985 *)
30986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30987for as_dir in $PATH
30988do
30989 IFS=$as_save_IFS
30990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30993 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030995 break 2
30996 fi
30997done
cristy8b350f62009-11-15 23:12:43 +000030998 done
cristy3ed852e2009-09-05 21:47:34 +000030999IFS=$as_save_IFS
31000
31001 ;;
31002esac
31003fi
31004PSDelegate=$ac_cv_path_PSDelegate
31005if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007$as_echo "$PSDelegate" >&6; }
31008else
cristy8b350f62009-11-15 23:12:43 +000031009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031010$as_echo "no" >&6; }
31011fi
31012
31013
31014 test -n "$PSDelegate" && break
31015done
31016test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31017
31018# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31019set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031021$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031022if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031023 $as_echo_n "(cached) " >&6
31024else
31025 case $RLEEncodeDelegate in
31026 [\\/]* | ?:[\\/]*)
31027 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31028 ;;
31029 *)
31030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31031for as_dir in $PATH
31032do
31033 IFS=$as_save_IFS
31034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31037 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031039 break 2
31040 fi
31041done
cristy8b350f62009-11-15 23:12:43 +000031042 done
cristy3ed852e2009-09-05 21:47:34 +000031043IFS=$as_save_IFS
31044
31045 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31046 ;;
31047esac
31048fi
31049RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31050if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052$as_echo "$RLEEncodeDelegate" >&6; }
31053else
cristy8b350f62009-11-15 23:12:43 +000031054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo "no" >&6; }
31056fi
31057
31058
31059# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31060set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031062$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031063if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031064 $as_echo_n "(cached) " >&6
31065else
31066 case $RMDelegate in
31067 [\\/]* | ?:[\\/]*)
31068 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31069 ;;
31070 *)
31071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31072for as_dir in $PATH
31073do
31074 IFS=$as_save_IFS
31075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31078 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080 break 2
31081 fi
31082done
cristy8b350f62009-11-15 23:12:43 +000031083 done
cristy3ed852e2009-09-05 21:47:34 +000031084IFS=$as_save_IFS
31085
31086 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31087 ;;
31088esac
31089fi
31090RMDelegate=$ac_cv_path_RMDelegate
31091if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031093$as_echo "$RMDelegate" >&6; }
31094else
cristy8b350f62009-11-15 23:12:43 +000031095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031096$as_echo "no" >&6; }
31097fi
31098
31099
cristy4689cf02010-02-17 21:15:45 +000031100# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31101set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31103$as_echo_n "checking for $ac_word... " >&6; }
31104if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31105 $as_echo_n "(cached) " >&6
31106else
31107 case $RSVGDecodeDelegate in
31108 [\\/]* | ?:[\\/]*)
31109 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31110 ;;
31111 *)
31112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31113for as_dir in $PATH
31114do
31115 IFS=$as_save_IFS
31116 test -z "$as_dir" && as_dir=.
31117 for ac_exec_ext in '' $ac_executable_extensions; do
31118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31119 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31121 break 2
31122 fi
31123done
31124 done
31125IFS=$as_save_IFS
31126
31127 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31128 ;;
31129esac
31130fi
31131RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31132if test -n "$RSVGDecodeDelegate"; then
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31134$as_echo "$RSVGDecodeDelegate" >&6; }
31135else
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138fi
31139
31140
cristy3ed852e2009-09-05 21:47:34 +000031141# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31142set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031144$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031145if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031146 $as_echo_n "(cached) " >&6
31147else
31148 case $SCANDecodeDelegate in
31149 [\\/]* | ?:[\\/]*)
31150 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31151 ;;
31152 *)
31153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31154for as_dir in $PATH
31155do
31156 IFS=$as_save_IFS
31157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31160 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031162 break 2
31163 fi
31164done
cristy8b350f62009-11-15 23:12:43 +000031165 done
cristy3ed852e2009-09-05 21:47:34 +000031166IFS=$as_save_IFS
31167
31168 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31169 ;;
31170esac
31171fi
31172SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31173if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031175$as_echo "$SCANDecodeDelegate" >&6; }
31176else
cristy8b350f62009-11-15 23:12:43 +000031177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031178$as_echo "no" >&6; }
31179fi
31180
31181
31182# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31183set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031185$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031186if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031187 $as_echo_n "(cached) " >&6
31188else
31189 case $TXTDelegate in
31190 [\\/]* | ?:[\\/]*)
31191 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31192 ;;
31193 *)
31194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31195for as_dir in $PATH
31196do
31197 IFS=$as_save_IFS
31198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31201 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031203 break 2
31204 fi
31205done
cristy8b350f62009-11-15 23:12:43 +000031206 done
cristy3ed852e2009-09-05 21:47:34 +000031207IFS=$as_save_IFS
31208
31209 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31210 ;;
31211esac
31212fi
31213TXTDelegate=$ac_cv_path_TXTDelegate
31214if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031216$as_echo "$TXTDelegate" >&6; }
31217else
cristy8b350f62009-11-15 23:12:43 +000031218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031219$as_echo "no" >&6; }
31220fi
31221
31222
cristy5ac9ac82010-07-29 13:24:24 +000031223# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31224set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31226$as_echo_n "checking for $ac_word... " >&6; }
31227if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31228 $as_echo_n "(cached) " >&6
31229else
31230 case $UniconvertorDelegate in
31231 [\\/]* | ?:[\\/]*)
31232 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31233 ;;
31234 *)
31235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31236for as_dir in $PATH
31237do
31238 IFS=$as_save_IFS
31239 test -z "$as_dir" && as_dir=.
31240 for ac_exec_ext in '' $ac_executable_extensions; do
31241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31242 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31244 break 2
31245 fi
31246done
31247 done
31248IFS=$as_save_IFS
31249
31250 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31251 ;;
31252esac
31253fi
31254UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31255if test -n "$UniconvertorDelegate"; then
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31257$as_echo "$UniconvertorDelegate" >&6; }
31258else
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31260$as_echo "no" >&6; }
31261fi
31262
31263
cristy3ed852e2009-09-05 21:47:34 +000031264# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31265set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031267$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031268if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031269 $as_echo_n "(cached) " >&6
31270else
31271 case $WMFDecodeDelegate in
31272 [\\/]* | ?:[\\/]*)
31273 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31274 ;;
31275 *)
31276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31277for as_dir in $PATH
31278do
31279 IFS=$as_save_IFS
31280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31283 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031285 break 2
31286 fi
31287done
cristy8b350f62009-11-15 23:12:43 +000031288 done
cristy3ed852e2009-09-05 21:47:34 +000031289IFS=$as_save_IFS
31290
31291 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31292 ;;
31293esac
31294fi
31295WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31296if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031298$as_echo "$WMFDecodeDelegate" >&6; }
31299else
cristy8b350f62009-11-15 23:12:43 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031301$as_echo "no" >&6; }
31302fi
31303
31304
31305# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31306set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031309if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031310 $as_echo_n "(cached) " >&6
31311else
31312 case $WWWDecodeDelegate in
31313 [\\/]* | ?:[\\/]*)
31314 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31315 ;;
31316 *)
31317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31318for as_dir in $PATH
31319do
31320 IFS=$as_save_IFS
31321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31324 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031326 break 2
31327 fi
31328done
cristy8b350f62009-11-15 23:12:43 +000031329 done
cristy3ed852e2009-09-05 21:47:34 +000031330IFS=$as_save_IFS
31331
31332 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31333 ;;
31334esac
31335fi
31336WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31337if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031339$as_echo "$WWWDecodeDelegate" >&6; }
31340else
cristy8b350f62009-11-15 23:12:43 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031342$as_echo "no" >&6; }
31343fi
31344
31345
31346# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31347set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031350if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031351 $as_echo_n "(cached) " >&6
31352else
31353 case $XPSDelegate in
31354 [\\/]* | ?:[\\/]*)
31355 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31356 ;;
31357 *)
31358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31359for as_dir in $PATH
31360do
31361 IFS=$as_save_IFS
31362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31365 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031367 break 2
31368 fi
31369done
cristy8b350f62009-11-15 23:12:43 +000031370 done
cristy3ed852e2009-09-05 21:47:34 +000031371IFS=$as_save_IFS
31372
31373 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31374 ;;
31375esac
31376fi
31377XPSDelegate=$ac_cv_path_XPSDelegate
31378if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031380$as_echo "$XPSDelegate" >&6; }
31381else
cristy8b350f62009-11-15 23:12:43 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo "no" >&6; }
31384fi
31385
31386
31387# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31388set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031391if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031392 $as_echo_n "(cached) " >&6
31393else
31394 case $ZipDelegate in
31395 [\\/]* | ?:[\\/]*)
31396 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31397 ;;
31398 *)
31399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31400for as_dir in $PATH
31401do
31402 IFS=$as_save_IFS
31403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31406 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408 break 2
31409 fi
31410done
cristy8b350f62009-11-15 23:12:43 +000031411 done
cristy3ed852e2009-09-05 21:47:34 +000031412IFS=$as_save_IFS
31413
31414 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31415 ;;
31416esac
31417fi
31418ZipDelegate=$ac_cv_path_ZipDelegate
31419if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031421$as_echo "$ZipDelegate" >&6; }
31422else
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo "no" >&6; }
31425fi
31426
31427
31428
31429# Prefer lpr to lp; lp needs options tacked on.
31430if test "$LPRDelegate" != no; then
31431 PrintDelegate="$LPRDelegate"
31432else
31433 PrintDelegate="$LPDelegate -c -s"
31434fi
31435
31436
31437# Installed ImageMagick utiltity paths
31438ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31439DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31440MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31441
31442# Set delegate booleans
31443have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31444have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31445have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31446have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31447have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31448have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031449have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031450have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31451have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31452have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31453have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31454have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31455
31456#
31457# Test for font directories
31458#
31459type_include_files=''
31460
cristy430a7312010-01-21 20:44:04 +000031461# Dejavu fonts.
31462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31463$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31464dejavu_font_dir=''
31465if test "${with_dejavu_font_dir}" != 'default'; then
31466 dejavu_font_dir="${with_dejavu_font_dir}/"
31467else
31468 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31469 if test -f "${font_dir}DejaVuSerif.ttf"; then
31470 dejavu_font_dir="${font_dir}"
31471 break 1
31472 fi
31473 done
31474fi
31475if test "${dejavu_font_dir}x" != 'x'; then
31476 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31478$as_echo "$dejavu_font_dir" >&6; }
31479else
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31481$as_echo "not found!" >&6; };
31482fi
31483
31484
cristy3ed852e2009-09-05 21:47:34 +000031485# Windows
31486windows_font_dir=''
31487if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31488 windows_font_dir="${with_windows_font_dir}/"
31489fi
cristy430a7312010-01-21 20:44:04 +000031490if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031491 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31492 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31493 fi
31494 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31495 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31496 fi
31497 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31498 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31499 fi
31500fi
cristy430a7312010-01-21 20:44:04 +000031501if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031502 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31503fi
31504
31505
31506# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31509ghostscript_font_dir=''
31510if test "${with_gs_font_dir}" != 'default'; then
31511 ghostscript_font_dir="${with_gs_font_dir}/"
31512else
31513 if test "${native_win32_build}" = 'yes'; then
31514 # Native Windows Build
31515 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31516 if test -f "${font_dir}a010013l.pfb"; then
31517 ghostscript_font_dir="$font_dir"
31518 break 1
31519 fi
31520 done
31521 if test "${PSDelegate}" != 'gswin32c'; then
31522 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31523 fi
31524 else
31525 # Linux / Mac OS X / Unix Build
31526 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
31527 if test -f "${font_dir}a010013l.pfb"; then
31528 ghostscript_font_dir="${font_dir}"
31529 break 1
31530 fi
31531 done
31532 if test "${ghostscript_font_dir}x" = 'x'; then
31533 if test "$PSDelegate" != 'gs'; then
31534 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31535 fi
31536 fi
31537 fi
31538fi
31539if test "${ghostscript_font_dir}x" != 'x'; then
31540 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "$ghostscript_font_dir" >&6; }
31543else
cristy8b350f62009-11-15 23:12:43 +000031544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031545$as_echo "not found!" >&6; };
31546fi
31547
31548case "${build_os}" in
31549 mingw* )
31550 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31551 ;;
31552esac
31553
31554
31555
31556#
31557# Handle case where user doesn't want frozen paths
31558#
31559if test "$with_frozenpaths" != 'yes'; then
31560 # Re-set delegate definitions to default (no paths)
31561 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31562 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31563 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31564 BZIPDelegate="$BZIPDelegateDefault"
31565 BrowseDelegate="$BrowseDelegateDefault"
31566 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31567 CatDelegate="$CatDelegateDefault"
31568 ConvertDelegate="$ConvertDelegateDefault"
31569 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31570 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31571 EchoDelegate="$EchoDelegateDefault"
31572 EditorDelegate="$EditorDelegateDefault"
31573 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31574 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31575 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31576 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31577 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31578 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31579 LPDelegate="$LPDelegateDefault"
31580 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31581 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31582 LaunchDelegate="$LaunchDelegateDefault"
31583 MANDelegate="$MANDelegateDefault"
31584 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31585 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031586 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031587 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31588 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031589 PCLDelegate="$PCLDelegateDefault"
31590 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31591 POVDelegate="$POVDelegateDefault"
31592 PSDelegate="$PSDelegateDefault"
31593 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31594 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31595 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031596 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031597 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31598 ShowImageDelegate="$ShowImageDelegateDefault"
31599 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031600 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031601 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31602 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31603 XPSDelegate="$XPSDelegateDefault"
31604 ZipDelegate="$ZipDelegateDefault"
31605fi
31606
31607# Delegate substitutions
31608
31609
31610
31611
31612
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
cristy935c86e2010-06-05 23:50:07 +000031650
cristy5ac9ac82010-07-29 13:24:24 +000031651
cristy3ed852e2009-09-05 21:47:34 +000031652#
31653# RPM support.
31654#
31655RPM=''
31656for ac_prog in gnutar gtar tar
31657do
31658 # Extract the first word of "$ac_prog", so it can be a program name with args.
31659set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031661$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031662if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 $as_echo_n "(cached) " >&6
31664else
31665 if test -n "$TAR"; then
31666 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31667else
31668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31669for as_dir in $PATH
31670do
31671 IFS=$as_save_IFS
31672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31675 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031677 break 2
31678 fi
31679done
cristy8b350f62009-11-15 23:12:43 +000031680 done
cristy3ed852e2009-09-05 21:47:34 +000031681IFS=$as_save_IFS
31682
31683fi
31684fi
31685TAR=$ac_cv_prog_TAR
31686if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031688$as_echo "$TAR" >&6; }
31689else
cristy8b350f62009-11-15 23:12:43 +000031690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031691$as_echo "no" >&6; }
31692fi
31693
31694
31695 test -n "$TAR" && break
31696done
31697
31698for ac_prog in perl
31699do
31700 # Extract the first word of "$ac_prog", so it can be a program name with args.
31701set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031704if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031705 $as_echo_n "(cached) " >&6
31706else
31707 if test -n "$PERL"; then
31708 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31709else
31710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31711for as_dir in $PATH
31712do
31713 IFS=$as_save_IFS
31714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31717 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719 break 2
31720 fi
31721done
cristy8b350f62009-11-15 23:12:43 +000031722 done
cristy3ed852e2009-09-05 21:47:34 +000031723IFS=$as_save_IFS
31724
31725fi
31726fi
31727PERL=$ac_cv_prog_PERL
31728if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo "$PERL" >&6; }
31731else
cristy8b350f62009-11-15 23:12:43 +000031732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031733$as_echo "no" >&6; }
31734fi
31735
31736
31737 test -n "$PERL" && break
31738done
31739
31740for ac_prog in rpmbuild rpm
31741do
31742 # Extract the first word of "$ac_prog", so it can be a program name with args.
31743set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031746if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031747 $as_echo_n "(cached) " >&6
31748else
31749 if test -n "$RPM"; then
31750 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31751else
31752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31753for as_dir in $PATH
31754do
31755 IFS=$as_save_IFS
31756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31759 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031761 break 2
31762 fi
31763done
cristy8b350f62009-11-15 23:12:43 +000031764 done
cristy3ed852e2009-09-05 21:47:34 +000031765IFS=$as_save_IFS
31766
31767fi
31768fi
31769RPM=$ac_cv_prog_RPM
31770if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo "$RPM" >&6; }
31773else
cristy8b350f62009-11-15 23:12:43 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031775$as_echo "no" >&6; }
31776fi
31777
31778
31779 test -n "$RPM" && break
31780done
31781
31782
31783ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31784
31785
31786AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31787
31788
31789AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31790
31791
31792AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31793
31794
31795 if test "x$RPM" != "x" ; then
31796 RPM_DELEGATE_TRUE=
31797 RPM_DELEGATE_FALSE='#'
31798else
31799 RPM_DELEGATE_TRUE='#'
31800 RPM_DELEGATE_FALSE=
31801fi
31802
31803
31804#
31805# 7ZIP support (http://p7zip.sourceforge.net/)
31806#
31807P7ZIP=''
31808for ac_prog in 7za
31809do
31810 # Extract the first word of "$ac_prog", so it can be a program name with args.
31811set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031813$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031814if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031815 $as_echo_n "(cached) " >&6
31816else
31817 if test -n "$P7ZIP"; then
31818 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31819else
31820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31821for as_dir in $PATH
31822do
31823 IFS=$as_save_IFS
31824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31827 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829 break 2
31830 fi
31831done
cristy8b350f62009-11-15 23:12:43 +000031832 done
cristy3ed852e2009-09-05 21:47:34 +000031833IFS=$as_save_IFS
31834
31835fi
31836fi
31837P7ZIP=$ac_cv_prog_P7ZIP
31838if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo "$P7ZIP" >&6; }
31841else
cristy8b350f62009-11-15 23:12:43 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo "no" >&6; }
31844fi
31845
31846
31847 test -n "$P7ZIP" && break
31848done
31849
31850
31851 if test "x$P7ZIP" != "x" ; then
31852 P7ZIP_DELEGATE_TRUE=
31853 P7ZIP_DELEGATE_FALSE='#'
31854else
31855 P7ZIP_DELEGATE_TRUE='#'
31856 P7ZIP_DELEGATE_FALSE=
31857fi
31858
31859
31860#
31861# ZIP support (http://www.info-zip.org/Zip.html)
31862#
31863ZIP=''
31864for ac_prog in zip
31865do
31866 # Extract the first word of "$ac_prog", so it can be a program name with args.
31867set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031870if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031871 $as_echo_n "(cached) " >&6
31872else
31873 if test -n "$ZIP"; then
31874 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31875else
31876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31877for as_dir in $PATH
31878do
31879 IFS=$as_save_IFS
31880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31883 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885 break 2
31886 fi
31887done
cristy8b350f62009-11-15 23:12:43 +000031888 done
cristy3ed852e2009-09-05 21:47:34 +000031889IFS=$as_save_IFS
31890
31891fi
31892fi
31893ZIP=$ac_cv_prog_ZIP
31894if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo "$ZIP" >&6; }
31897else
cristy8b350f62009-11-15 23:12:43 +000031898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo "no" >&6; }
31900fi
31901
31902
31903 test -n "$ZIP" && break
31904done
31905
31906
31907 if test "x$ZIP" != "x" ; then
31908 ZIP_DELEGATE_TRUE=
31909 ZIP_DELEGATE_FALSE='#'
31910else
31911 ZIP_DELEGATE_TRUE='#'
31912 ZIP_DELEGATE_FALSE=
31913fi
31914
31915
31916#
31917# GhostPCL related configuration.
31918#
31919PCLColorDevice=ppmraw
31920PCLCMYKDevice=bmpsep8
31921PCLMonoDevice=pbmraw
31922if test -z "$PCLVersion"; then
31923 PCLVersion='unknown'
31924fi
31925if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031927$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031929$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031931$as_echo "" >&6; }
31932 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031934$as_echo_n "checking for pcl color device... " >&6; }
31935 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31936 :
31937 else
31938 PCLColorDevice=ppmraw
31939 fi
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo "$PCLColorDevice" >&6; }
31942
31943 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031945$as_echo_n "checking for pcl CMYK device... " >&6; }
31946 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31947 :
31948 else
31949 PCLCMYKDevice=$PCLColorDevice
31950 fi
cristy8b350f62009-11-15 23:12:43 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031952$as_echo "$PCLCMYKDevice" >&6; }
31953
31954 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo_n "checking for pcl mono device... " >&6; }
31957 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31958 :
31959 else
31960 PCLMonoDevice=$PCLColorDevice
31961 fi
cristy8b350f62009-11-15 23:12:43 +000031962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031963$as_echo "$PCLMonoDevice" >&6; }
31964fi
31965
31966
31967
31968
31969
31970
31971#
31972# GhostXPS related configuration.
31973#
31974XPSColorDevice=ppmraw
31975XPSCMYKDevice=bmpsep8
31976XPSMonoDevice=pbmraw
31977if test -z "$XPSVersion"; then
31978 XPSVersion='unknown'
31979fi
31980if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031986$as_echo "" >&6; }
31987 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo_n "checking for xps color device... " >&6; }
31990 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31991 :
31992 else
31993 XPSColorDevice=ppmraw
31994 fi
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo "$XPSColorDevice" >&6; }
31997
31998 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo_n "checking for xps CMYK device... " >&6; }
32001 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32002 :
32003 else
32004 XPSCMYKDevice=$XPSColorDevice
32005 fi
cristy8b350f62009-11-15 23:12:43 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo "$XPSCMYKDevice" >&6; }
32008
32009 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011$as_echo_n "checking for xps mono device... " >&6; }
32012 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32013 :
32014 else
32015 XPSMonoDevice=$XPSColorDevice
32016 fi
cristy8b350f62009-11-15 23:12:43 +000032017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032018$as_echo "$XPSMonoDevice" >&6; }
32019fi
32020
32021
32022
32023
32024
32025
32026#
32027# Ghostscript related configuration.
32028#
32029if test "$have_png" = 'yes'; then
32030 GSAlphaDevice=pngalpha
32031else
32032 GSAlphaDevice=pnmraw
32033fi
32034GSColorDevice=pnmraw
32035GSCMYKDevice=pam
32036GSMonoDevice=pbmraw
32037GSPDFDevice=pdfwrite
32038GSPSDevice=pswrite
32039GSEPSDevice=epswrite
32040GSVersion='unknown'
32041if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032047$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032049$as_echo_n "checking for Ghostscript version... " >&6; }
32050 if GSVersion=`$PSDelegate --version`; then
32051 :
32052 else
32053 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32054 fi
cristy8b350f62009-11-15 23:12:43 +000032055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032056$as_echo "$GSVersion" >&6; }
32057
32058 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo_n "checking for gs alpha device... " >&6; }
32061 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32062 :
32063 else
32064 GSAlphaDevice=pnmraw
32065 fi
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo "$GSAlphaDevice" >&6; }
32068
32069 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032071$as_echo_n "checking for gs color device... " >&6; }
32072 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32073 :
32074 else
32075 GSColorDevice=pnmraw
32076 fi
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo "$GSColorDevice" >&6; }
32079
32080 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo_n "checking for gs CMYK device... " >&6; }
32083 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32084 :
32085 else
32086 GSCMYKDevice=bmpsep8
32087 fi
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo "$GSCMYKDevice" >&6; }
32090
32091 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093$as_echo_n "checking for gs mono device... " >&6; }
32094 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32095 :
32096 else
32097 GSMonoDevice=$GSColorDevice
32098 fi
cristy8b350f62009-11-15 23:12:43 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo "$GSMonoDevice" >&6; }
32101
32102 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032104$as_echo_n "checking for gs PDF writing device... " >&6; }
32105 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32106 :
32107 else
32108 GSPDFDevice=nodevice
32109 fi
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo "$GSPDFDevice" >&6; }
32112
32113 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032115$as_echo_n "checking for gs PS writing device... " >&6; }
32116 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32117 :
32118 else
32119 GSPSDevice=nodevice
32120 fi
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo "$GSPSDevice" >&6; }
32123
32124 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126$as_echo_n "checking for gs EPS writing device... " >&6; }
32127 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32128 :
32129 else
32130 GSEPSDevice=nodevice
32131 fi
cristy8b350f62009-11-15 23:12:43 +000032132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032133$as_echo "$GSEPSDevice" >&6; }
32134fi
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145#
32146# PerlMagick-related configuration
32147#
32148
32149# Look for PERL if PerlMagick requested
32150# If name/path of desired PERL interpreter is specified, look for that one first
32151have_perl='no'
32152if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo "" >&6; }
32159 if test "$with_perl" != 'yes'; then
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 +000032162if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032163 $as_echo_n "(cached) " >&6
32164else
32165 ac_cv_path_PERL="$with_perl"
32166fi
cristy8b350f62009-11-15 23:12:43 +000032167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032168$as_echo "$ac_cv_path_PERL" >&6; };
32169 PERL=$ac_cv_path_PERL
32170 have_perl="$ac_cv_path_PERL"
32171 else
32172 for ac_prog in perl perl5
32173do
32174 # Extract the first word of "$ac_prog", so it can be a program name with args.
32175set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032178if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032179 $as_echo_n "(cached) " >&6
32180else
32181 case $PERL in
32182 [\\/]* | ?:[\\/]*)
32183 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32184 ;;
32185 *)
32186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32187for as_dir in $PATH
32188do
32189 IFS=$as_save_IFS
32190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32193 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195 break 2
32196 fi
32197done
cristy8b350f62009-11-15 23:12:43 +000032198 done
cristy3ed852e2009-09-05 21:47:34 +000032199IFS=$as_save_IFS
32200
32201 ;;
32202esac
32203fi
32204PERL=$ac_cv_path_PERL
32205if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo "$PERL" >&6; }
32208else
cristy8b350f62009-11-15 23:12:43 +000032209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo "no" >&6; }
32211fi
32212
32213
32214 test -n "$PERL" && break
32215done
32216 if test "$ac_cv_path_PERL"; then
32217 have_perl="$ac_cv_path_PERL"
32218 fi
32219 fi
32220fi
32221
cristy949301e2010-01-06 01:38:40 +000032222if test "$with_perl" != 'yes' ; then
32223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32224fi
32225
32226PERL_SUPPORTS_DESTDIR='no'
32227
cristy3ed852e2009-09-05 21:47:34 +000032228with_perl_static='no'
32229with_perl_dynamic='no'
32230if test "$have_perl" != 'no'; then
32231 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32232 with_perl_static='yes'
32233 fi
32234 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32235 with_perl_dynamic='yes'
32236 fi
32237 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032238
32239
32240
32241
32242 if test -n "$PERL"; then :
32243
32244 ax_perl_version="5.8.1"
32245
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32247$as_echo_n "checking for perl version... " >&6; }
32248
32249 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32250
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32252$as_echo "$perl_version" >&6; }
32253
32254 PERL_VERSION=$perl_version
32255
32256
32257
32258
32259
32260 # Used to indicate true or false condition
32261 ax_compare_version=false
32262
32263 # Convert the two version strings to be compared into a format that
32264 # allows a simple string comparison. The end result is that a version
32265 # string of the form 1.12.5-r617 will be converted to the form
32266 # 0001001200050617. In other words, each number is zero padded to four
32267 # digits, and non digits are removed.
32268
32269 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32270 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32271 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32272 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32273 -e 's/[^0-9]//g'`
32274
32275
32276 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32277 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32278 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32279 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32280 -e 's/[^0-9]//g'`
32281
32282
32283 ax_compare_version=`echo "x$ax_compare_version_A
32284x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32285
32286
32287
32288 if test "$ax_compare_version" = "true" ; then
32289
32290 :
32291 PERL_SUPPORTS_DESTDIR='yes'
32292
32293 else
32294 :
32295 PERL_SUPPORTS_DESTDIR='no'
32296
cristy3ed852e2009-09-05 21:47:34 +000032297 fi
cristy3ed852e2009-09-05 21:47:34 +000032298
cristy964cb7f2010-04-25 23:18:00 +000032299
cristy3ed852e2009-09-05 21:47:34 +000032300else
cristy3ed852e2009-09-05 21:47:34 +000032301
cristy964cb7f2010-04-25 23:18:00 +000032302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32303$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32304 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032305
32306fi
32307
cristy3ed852e2009-09-05 21:47:34 +000032308fi
32309 if test "$have_perl" != 'no'; then
32310 WITH_PERL_TRUE=
32311 WITH_PERL_FALSE='#'
32312else
32313 WITH_PERL_TRUE='#'
32314 WITH_PERL_FALSE=
32315fi
32316
32317 if test $with_perl_static = 'yes'; then
32318 WITH_PERL_STATIC_TRUE=
32319 WITH_PERL_STATIC_FALSE='#'
32320else
32321 WITH_PERL_STATIC_TRUE='#'
32322 WITH_PERL_STATIC_FALSE=
32323fi
32324
32325 if test $with_perl_dynamic = 'yes'; then
32326 WITH_PERL_DYNAMIC_TRUE=
32327 WITH_PERL_DYNAMIC_FALSE='#'
32328else
32329 WITH_PERL_DYNAMIC_TRUE='#'
32330 WITH_PERL_DYNAMIC_FALSE=
32331fi
32332
32333
32334
32335# Determine path to pick up MagickCore library from for use with building PerlMagick
32336MAGICKCORE_PATH="${LIB_DIR}"
32337if test $with_perl_static = 'yes'; then
32338 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32339 libtool_objdir=$objdir
32340
32341 # Linker search path to library, followed by -lMagickCore
32342 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32343fi
32344
32345
32346# Create a simple string containing format names for all delegate libraries
32347DELEGATES=''
32348if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32349if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32350if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32351if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32352if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32353if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32354if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32355if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32356if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32357if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32358if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32359if test "$have_jpeg" = 'yes'; then
32360 DELEGATES="$DELEGATES jpeg";
32361 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32362fi
32363if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032364if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032365if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32366if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32367if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32368if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32369if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32370if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32371if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32372if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32373if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32374if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32375if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32376
32377
32378
32379#
32380# Handle special compiler flags
32381#
32382
32383# Add '-p' if prof source profiling support enabled
32384if test "$enable_prof" = 'yes'; then
32385 CFLAGS="-p $CFLAGS"
32386 CXXFLAGS="-p $CXXFLAGS"
32387 LDFLAGS="-p $LDFLAGS"
32388fi
32389
32390# Add '-pg' if gprof source profiling support enabled
32391if test "$enable_gprof" = 'yes'; then
32392 CFLAGS="-pg $CFLAGS"
32393 CXXFLAGS="-pg $CXXFLAGS"
32394 LDFLAGS="-pg $LDFLAGS"
32395fi
32396
32397# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32398# This is a gcc-specific feature
32399if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032401$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032402if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032403 $as_echo_n "(cached) " >&6
32404else
32405 ac_check_lib_save_LIBS=$LIBS
32406LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032408/* end confdefs.h. */
32409
32410/* Override any GCC internal prototype to avoid an error.
32411 Use char because int might match the return type of a GCC
32412 builtin and then its argument prototype would still apply. */
32413#ifdef __cplusplus
32414extern "C"
32415#endif
32416char _gcov_init ();
32417int
32418main ()
32419{
32420return _gcov_init ();
32421 ;
32422 return 0;
32423}
32424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032426 ac_cv_lib_gcov__gcov_init=yes
32427else
cristy8b350f62009-11-15 23:12:43 +000032428 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032429fi
cristy8b350f62009-11-15 23:12:43 +000032430rm -f core conftest.err conftest.$ac_objext \
32431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032432LIBS=$ac_check_lib_save_LIBS
32433fi
cristy8b350f62009-11-15 23:12:43 +000032434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032436if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032437 cat >>confdefs.h <<_ACEOF
32438#define HAVE_LIBGCOV 1
32439_ACEOF
32440
32441 LIBS="-lgcov $LIBS"
32442
32443fi
32444
cristy8b350f62009-11-15 23:12:43 +000032445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032447if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032448 $as_echo_n "(cached) " >&6
32449else
32450 ac_check_lib_save_LIBS=$LIBS
32451LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032453/* end confdefs.h. */
32454
32455/* Override any GCC internal prototype to avoid an error.
32456 Use char because int might match the return type of a GCC
32457 builtin and then its argument prototype would still apply. */
32458#ifdef __cplusplus
32459extern "C"
32460#endif
32461char __gcov_init ();
32462int
32463main ()
32464{
32465return __gcov_init ();
32466 ;
32467 return 0;
32468}
32469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032471 ac_cv_lib_gcov___gcov_init=yes
32472else
cristy8b350f62009-11-15 23:12:43 +000032473 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032474fi
cristy8b350f62009-11-15 23:12:43 +000032475rm -f core conftest.err conftest.$ac_objext \
32476 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032477LIBS=$ac_check_lib_save_LIBS
32478fi
cristy8b350f62009-11-15 23:12:43 +000032479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032480$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032481if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032482 cat >>confdefs.h <<_ACEOF
32483#define HAVE_LIBGCOV 1
32484_ACEOF
32485
32486 LIBS="-lgcov $LIBS"
32487
32488fi
32489
32490 case "$target_os" in
32491 darwin*)
32492 OSX_GCOV_LDFLAG="-Wl,-single_module"
32493 ;;
32494 *)
32495 OSX_GCOV_LDFLAG=""
32496 ;;
32497 esac
32498
32499 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32500 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32501 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32502fi
32503
32504#
32505# Build library dependency list for libMagickCore
32506#
32507
32508MAGICK_LIBLTDL='' # Libltdl for build
32509MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32510MAGICK_LTDLDEPS='' # extra libltdl dependencies
32511if test "$with_ltdl" != 'no'
32512then
32513 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32514 MAGICK_API_LIBLTDL='-lltdl'
32515 fi
32516 MAGICK_LIBLTDL=${LIBLTDL}
32517 MAGICK_LTDLDEPS=${LTDLDEPS}
32518fi
32519
32520
32521
32522if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032523 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 +000032524else
cristy2e8b51d2009-10-17 18:26:15 +000032525 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 +000032526fi
32527
32528
32529#
32530# Remove extraneous spaces from output variables (asthetic)
32531#
32532X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32533X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32534X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32535X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32536
32537CC=`echo $CC | sed -e 's/ */ /g'`
32538CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32539CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32540CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32541DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32542DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32543LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32544TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32545MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32546#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32547
32548# Pass only user-provided LIBS as "global" libraries
32549LIBS=$USER_LIBS
32550
32551#AC_SUBST(CPPFLAGS)
32552
32553#AC_SUBST(LDFLAGS)
32554#AC_SUBST(X_PRE_LIBS)
32555#AC_SUBST(X_LIBS)
32556#AC_SUBST(X_EXTRA_LIBS)
32557
32558MAGICK_CFLAGS=$CFLAGS
32559MAGICK_CXXFLAGS="$CXXFLAGS"
32560MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32561MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32562MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32563MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32564
32565
32566
32567
32568
32569
32570
32571
cristyfd9dcd42010-08-08 18:07:02 +000032572
cristy3ed852e2009-09-05 21:47:34 +000032573# Set configured scripts to executable.
32574ac_config_commands="$ac_config_commands default"
32575
32576ac_config_commands="$ac_config_commands MagickCore-config.in"
32577
32578ac_config_commands="$ac_config_commands Magick-config.in"
32579
32580ac_config_commands="$ac_config_commands MagickWand-config.in"
32581
32582ac_config_commands="$ac_config_commands Wand-config.in"
32583
32584ac_config_commands="$ac_config_commands Magick++-config.in"
32585
32586ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32587
32588
cristy8b350f62009-11-15 23:12:43 +000032589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "Update ImageMagick configuration" >&6; }
32593cat >confcache <<\_ACEOF
32594# This file is a shell script that caches the results of configure
32595# tests run on this system so they can be shared between configure
32596# scripts and configure runs, see configure's option --config-cache.
32597# It is not useful on other systems. If it contains results you don't
32598# want to keep, you may remove or edit it.
32599#
32600# config.status only pays attention to the cache file if you give it
32601# the --recheck option to rerun configure.
32602#
32603# `ac_cv_env_foo' variables (set or unset) will be overridden when
32604# loading this file, other *unset* `ac_cv_foo' will be assigned the
32605# following values.
32606
32607_ACEOF
32608
32609# The following way of writing the cache mishandles newlines in values,
32610# but we know of no workaround that is simple, portable, and efficient.
32611# So, we kill variables containing newlines.
32612# Ultrix sh set writes to stderr and can't be redirected directly,
32613# and sets the high bit in the cache file unless we assign to the vars.
32614(
32615 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32616 eval ac_val=\$$ac_var
32617 case $ac_val in #(
32618 *${as_nl}*)
32619 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032621$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32622 esac
32623 case $ac_var in #(
32624 _ | IFS | as_nl) ;; #(
32625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032626 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032627 esac ;;
32628 esac
32629 done
32630
32631 (set) 2>&1 |
32632 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32633 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032634 # `set' does not quote correctly, so add quotes: double-quote
32635 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032636 sed -n \
32637 "s/'/'\\\\''/g;
32638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32639 ;; #(
32640 *)
32641 # `set' quotes correctly as required by POSIX, so do not add quotes.
32642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32643 ;;
32644 esac |
32645 sort
32646) |
32647 sed '
32648 /^ac_cv_env_/b end
32649 t clear
32650 :clear
32651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32652 t end
32653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32654 :end' >>confcache
32655if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32656 if test -w "$cache_file"; then
32657 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "$as_me: updating cache $cache_file" >&6;}
32660 cat confcache >$cache_file
32661 else
cristy8b350f62009-11-15 23:12:43 +000032662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032663$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32664 fi
32665fi
32666rm -f confcache
32667
32668test "x$prefix" = xNONE && prefix=$ac_default_prefix
32669# Let make expand exec_prefix.
32670test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32671
32672DEFS=-DHAVE_CONFIG_H
32673
32674ac_libobjs=
32675ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032676U=
cristy3ed852e2009-09-05 21:47:34 +000032677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32678 # 1. Remove the extension, and $U if already installed.
32679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32682 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032685done
32686LIBOBJS=$ac_libobjs
32687
32688LTLIBOBJS=$ac_ltlibobjs
32689
32690
32691 if test -n "$EXEEXT"; then
32692 am__EXEEXT_TRUE=
32693 am__EXEEXT_FALSE='#'
32694else
32695 am__EXEEXT_TRUE='#'
32696 am__EXEEXT_FALSE=
32697fi
32698
32699if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032700 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032701Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032702fi
32703if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032704 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032705Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032706fi
cristya0b81c32010-01-22 02:54:33 +000032707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032709Usually this means the macro was only invoked conditionally." "$LINENO" 5
32710fi
cristy3ed852e2009-09-05 21:47:34 +000032711if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032712 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032713Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032714fi
32715if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032716 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032717Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032718fi
32719if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032720 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032721Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032722fi
32723if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032724 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032725Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032726fi
32727if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032728 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032729Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032730fi
cristy3ed852e2009-09-05 21:47:34 +000032731if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032732 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032733Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032734fi
32735if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032736 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032737Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032738fi
32739LT_CONFIG_H=config/config.h
32740
32741 _ltdl_libobjs=
32742 _ltdl_ltlibobjs=
32743 if test -n "$_LT_LIBOBJS"; then
32744 # Remove the extension.
32745 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32746 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32747 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32748 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32749 done
32750 fi
32751 ltdl_LIBOBJS=$_ltdl_libobjs
32752
32753 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32754
32755
cristyfa112112010-01-04 17:48:07 +000032756if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032757 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032758Usually this means the macro was only invoked conditionally." "$LINENO" 5
32759fi
cristy3ed852e2009-09-05 21:47:34 +000032760if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032761 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032762Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032763fi
32764if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032765 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032766Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032767fi
32768if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032769 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032770Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032771fi
32772
32773if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032774 as_fn_error $? "conditional \"am__fastdepCXX\" 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
32777if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032778 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032779Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032780fi
32781if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032782 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032783Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032784fi
32785if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032786 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032787Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032788fi
32789if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032790 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032791Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032792fi
32793if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032794 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032795Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032796fi
32797if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032798 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032799Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032800fi
32801if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032802 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032803Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032804fi
32805if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032806 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032807Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032808fi
32809if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032810 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032811Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032812fi
32813if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032814 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032815Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032816fi
32817if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032818 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032819Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032820fi
32821if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032822 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032823Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032824fi
32825if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032826 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032827Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032828fi
32829if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032830 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032831Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032832fi
32833if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032834 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032835Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032836fi
32837if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032838 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032839Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032840fi
32841if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032842 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032843Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032844fi
32845if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032846 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032847Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032848fi
32849if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032850 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032851Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032852fi
32853if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032854 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032855Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032856fi
32857if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032858 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032859Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032860fi
32861if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032862 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032863Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032864fi
32865if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032866 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032867Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032868fi
32869if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032870 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032871Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032872fi
32873if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032874 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032875Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032876fi
32877if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032878 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032879Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032880fi
32881if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032882 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032883Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032884fi
32885if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032886 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032887Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032888fi
32889if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032890 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032891Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032892fi
32893if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032894 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032895Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032896fi
32897if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032898 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032899Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032900fi
32901if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032902 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032903Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032904fi
32905
32906: ${CONFIG_STATUS=./config.status}
32907ac_write_fail=0
32908ac_clean_files_save=$ac_clean_files
32909ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032910{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032912as_write_fail=0
32913cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032914#! $SHELL
32915# Generated by $as_me.
32916# Run this file to recreate the current configuration.
32917# Compiler output produced by configure, useful for debugging
32918# configure, is in config.log if it exists.
32919
32920debug=false
32921ac_cs_recheck=false
32922ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032923
cristy8b350f62009-11-15 23:12:43 +000032924SHELL=\${CONFIG_SHELL-$SHELL}
32925export SHELL
32926_ASEOF
32927cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32928## -------------------- ##
32929## M4sh Initialization. ##
32930## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032931
32932# Be more Bourne compatible
32933DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032934if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032935 emulate sh
32936 NULLCMD=:
32937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32938 # is contrary to our usage. Disable this feature.
32939 alias -g '${1+"$@"}'='"$@"'
32940 setopt NO_GLOB_SUBST
32941else
cristy8b350f62009-11-15 23:12:43 +000032942 case `(set -o) 2>/dev/null` in #(
32943 *posix*) :
32944 set -o posix ;; #(
32945 *) :
32946 ;;
cristy3ed852e2009-09-05 21:47:34 +000032947esac
cristy3ed852e2009-09-05 21:47:34 +000032948fi
32949
32950
cristy3ed852e2009-09-05 21:47:34 +000032951as_nl='
32952'
32953export as_nl
32954# Printing a long string crashes Solaris 7 /usr/bin/printf.
32955as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32956as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32957as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032958# Prefer a ksh shell builtin over an external printf program on Solaris,
32959# but without wasting forks for bash or zsh.
32960if test -z "$BASH_VERSION$ZSH_VERSION" \
32961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32962 as_echo='print -r --'
32963 as_echo_n='print -rn --'
32964elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032965 as_echo='printf %s\n'
32966 as_echo_n='printf %s'
32967else
32968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32970 as_echo_n='/usr/ucb/echo -n'
32971 else
32972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32973 as_echo_n_body='eval
32974 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032975 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032976 *"$as_nl"*)
32977 expr "X$arg" : "X\\(.*\\)$as_nl";
32978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32979 esac;
32980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32981 '
32982 export as_echo_n_body
32983 as_echo_n='sh -c $as_echo_n_body as_echo'
32984 fi
32985 export as_echo_body
32986 as_echo='sh -c $as_echo_body as_echo'
32987fi
32988
32989# The user is always right.
32990if test "${PATH_SEPARATOR+set}" != set; then
32991 PATH_SEPARATOR=:
32992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32994 PATH_SEPARATOR=';'
32995 }
32996fi
32997
cristy3ed852e2009-09-05 21:47:34 +000032998
32999# IFS
33000# We need space, tab and new line, in precisely that order. Quoting is
33001# there to prevent editors from complaining about space-tab.
33002# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33003# splitting by setting IFS to empty value.)
33004IFS=" "" $as_nl"
33005
33006# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033007case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033008 *[\\/]* ) as_myself=$0 ;;
33009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010for as_dir in $PATH
33011do
33012 IFS=$as_save_IFS
33013 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33015 done
cristy3ed852e2009-09-05 21:47:34 +000033016IFS=$as_save_IFS
33017
33018 ;;
33019esac
33020# We did not find ourselves, most probably we were run as `sh COMMAND'
33021# in which case we are not to be found in the path.
33022if test "x$as_myself" = x; then
33023 as_myself=$0
33024fi
33025if test ! -f "$as_myself"; then
33026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033027 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033028fi
33029
cristy8b350f62009-11-15 23:12:43 +000033030# Unset variables that we do not need and which cause bugs (e.g. in
33031# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33032# suppresses any "Segmentation fault" message there. '((' could
33033# trigger a bug in pdksh 5.2.14.
33034for as_var in BASH_ENV ENV MAIL MAILPATH
33035do eval test x\${$as_var+set} = xset \
33036 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033037done
33038PS1='$ '
33039PS2='> '
33040PS4='+ '
33041
33042# NLS nuisances.
33043LC_ALL=C
33044export LC_ALL
33045LANGUAGE=C
33046export LANGUAGE
33047
cristy8b350f62009-11-15 23:12:43 +000033048# CDPATH.
33049(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33050
33051
cristyfd9dcd42010-08-08 18:07:02 +000033052# as_fn_error STATUS ERROR [LINENO LOG_FD]
33053# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033054# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33055# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000033056# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033057as_fn_error ()
33058{
cristyfd9dcd42010-08-08 18:07:02 +000033059 as_status=$1; test $as_status -eq 0 && as_status=1
33060 if test "$4"; then
33061 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033063 fi
cristyfd9dcd42010-08-08 18:07:02 +000033064 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033065 as_fn_exit $as_status
33066} # as_fn_error
33067
33068
33069# as_fn_set_status STATUS
33070# -----------------------
33071# Set $? to STATUS, without forking.
33072as_fn_set_status ()
33073{
33074 return $1
33075} # as_fn_set_status
33076
33077# as_fn_exit STATUS
33078# -----------------
33079# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33080as_fn_exit ()
33081{
33082 set +e
33083 as_fn_set_status $1
33084 exit $1
33085} # as_fn_exit
33086
33087# as_fn_unset VAR
33088# ---------------
33089# Portably unset VAR.
33090as_fn_unset ()
33091{
33092 { eval $1=; unset $1;}
33093}
33094as_unset=as_fn_unset
33095# as_fn_append VAR VALUE
33096# ----------------------
33097# Append the text in VALUE to the end of the definition contained in VAR. Take
33098# advantage of any shell optimizations that allow amortized linear growth over
33099# repeated appends, instead of the typical quadratic growth present in naive
33100# implementations.
33101if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33102 eval 'as_fn_append ()
33103 {
33104 eval $1+=\$2
33105 }'
33106else
33107 as_fn_append ()
33108 {
33109 eval $1=\$$1\$2
33110 }
33111fi # as_fn_append
33112
33113# as_fn_arith ARG...
33114# ------------------
33115# Perform arithmetic evaluation on the ARGs, and store the result in the
33116# global $as_val. Take advantage of shells that can avoid forks. The arguments
33117# must be portable across $(()) and expr.
33118if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33119 eval 'as_fn_arith ()
33120 {
33121 as_val=$(( $* ))
33122 }'
33123else
33124 as_fn_arith ()
33125 {
33126 as_val=`expr "$@" || test $? -eq 1`
33127 }
33128fi # as_fn_arith
33129
33130
cristy3ed852e2009-09-05 21:47:34 +000033131if expr a : '\(a\)' >/dev/null 2>&1 &&
33132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33133 as_expr=expr
33134else
33135 as_expr=false
33136fi
33137
33138if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33139 as_basename=basename
33140else
33141 as_basename=false
33142fi
33143
cristy8b350f62009-11-15 23:12:43 +000033144if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33145 as_dirname=dirname
33146else
33147 as_dirname=false
33148fi
cristy3ed852e2009-09-05 21:47:34 +000033149
cristy3ed852e2009-09-05 21:47:34 +000033150as_me=`$as_basename -- "$0" ||
33151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33152 X"$0" : 'X\(//\)$' \| \
33153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33154$as_echo X/"$0" |
33155 sed '/^.*\/\([^/][^/]*\)\/*$/{
33156 s//\1/
33157 q
33158 }
33159 /^X\/\(\/\/\)$/{
33160 s//\1/
33161 q
33162 }
33163 /^X\/\(\/\).*/{
33164 s//\1/
33165 q
33166 }
33167 s/.*/./; q'`
33168
cristy8b350f62009-11-15 23:12:43 +000033169# Avoid depending upon Character Ranges.
33170as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33171as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33172as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33173as_cr_digits='0123456789'
33174as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033175
33176ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033177case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033178-n*)
cristy8b350f62009-11-15 23:12:43 +000033179 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033181 xy) ECHO_C='\c';;
33182 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33183 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033184 esac;;
33185*)
33186 ECHO_N='-n';;
33187esac
cristy3ed852e2009-09-05 21:47:34 +000033188
33189rm -f conf$$ conf$$.exe conf$$.file
33190if test -d conf$$.dir; then
33191 rm -f conf$$.dir/conf$$.file
33192else
33193 rm -f conf$$.dir
33194 mkdir conf$$.dir 2>/dev/null
33195fi
33196if (echo >conf$$.file) 2>/dev/null; then
33197 if ln -s conf$$.file conf$$ 2>/dev/null; then
33198 as_ln_s='ln -s'
33199 # ... but there are two gotchas:
33200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33202 # In both cases, we have to default to `cp -p'.
33203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33204 as_ln_s='cp -p'
33205 elif ln conf$$.file conf$$ 2>/dev/null; then
33206 as_ln_s=ln
33207 else
33208 as_ln_s='cp -p'
33209 fi
33210else
33211 as_ln_s='cp -p'
33212fi
33213rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33214rmdir conf$$.dir 2>/dev/null
33215
cristy8b350f62009-11-15 23:12:43 +000033216
33217# as_fn_mkdir_p
33218# -------------
33219# Create "$as_dir" as a directory, including parents if necessary.
33220as_fn_mkdir_p ()
33221{
33222
33223 case $as_dir in #(
33224 -*) as_dir=./$as_dir;;
33225 esac
33226 test -d "$as_dir" || eval $as_mkdir_p || {
33227 as_dirs=
33228 while :; do
33229 case $as_dir in #(
33230 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33231 *) as_qdir=$as_dir;;
33232 esac
33233 as_dirs="'$as_qdir' $as_dirs"
33234 as_dir=`$as_dirname -- "$as_dir" ||
33235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33236 X"$as_dir" : 'X\(//\)[^/]' \| \
33237 X"$as_dir" : 'X\(//\)$' \| \
33238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33239$as_echo X"$as_dir" |
33240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33241 s//\1/
33242 q
33243 }
33244 /^X\(\/\/\)[^/].*/{
33245 s//\1/
33246 q
33247 }
33248 /^X\(\/\/\)$/{
33249 s//\1/
33250 q
33251 }
33252 /^X\(\/\).*/{
33253 s//\1/
33254 q
33255 }
33256 s/.*/./; q'`
33257 test -d "$as_dir" && break
33258 done
33259 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000033260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033261
33262
33263} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033264if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033265 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033266else
33267 test -d ./-p && rmdir ./-p
33268 as_mkdir_p=false
33269fi
33270
33271if test -x / >/dev/null 2>&1; then
33272 as_test_x='test -x'
33273else
33274 if ls -dL / >/dev/null 2>&1; then
33275 as_ls_L_option=L
33276 else
33277 as_ls_L_option=
33278 fi
33279 as_test_x='
33280 eval sh -c '\''
33281 if test -d "$1"; then
33282 test -d "$1/.";
33283 else
cristy8b350f62009-11-15 23:12:43 +000033284 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033285 -*)set "./$1";;
33286 esac;
cristy8b350f62009-11-15 23:12:43 +000033287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033288 ???[sx]*):;;*)false;;esac;fi
33289 '\'' sh
33290 '
33291fi
33292as_executable_p=$as_test_x
33293
33294# Sed expression to map a string onto a valid CPP name.
33295as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33296
33297# Sed expression to map a string onto a valid variable name.
33298as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33299
33300
33301exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033302## ----------------------------------- ##
33303## Main body of $CONFIG_STATUS script. ##
33304## ----------------------------------- ##
33305_ASEOF
33306test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033307
cristy8b350f62009-11-15 23:12:43 +000033308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33309# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033310# report actual input values of CONFIG_FILES etc. instead of their
33311# values after options handling.
33312ac_log="
cristy56225732010-09-04 23:44:25 +000033313This file was extended by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +000033314generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033315
33316 CONFIG_FILES = $CONFIG_FILES
33317 CONFIG_HEADERS = $CONFIG_HEADERS
33318 CONFIG_LINKS = $CONFIG_LINKS
33319 CONFIG_COMMANDS = $CONFIG_COMMANDS
33320 $ $0 $@
33321
33322on `(hostname || uname -n) 2>/dev/null | sed 1q`
33323"
33324
33325_ACEOF
33326
33327case $ac_config_files in *"
33328"*) set x $ac_config_files; shift; ac_config_files=$*;;
33329esac
33330
33331case $ac_config_headers in *"
33332"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33333esac
33334
33335
33336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33337# Files that config.status was made for.
33338config_files="$ac_config_files"
33339config_headers="$ac_config_headers"
33340config_commands="$ac_config_commands"
33341
33342_ACEOF
33343
33344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33345ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033346\`$as_me' instantiates files and other configuration actions
33347from templates according to the current configuration. Unless the files
33348and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033349
cristy8b350f62009-11-15 23:12:43 +000033350Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033351
33352 -h, --help print this help, then exit
33353 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033354 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033355 -q, --quiet, --silent
33356 do not print progress messages
33357 -d, --debug don't remove temporary files
33358 --recheck update $as_me by reconfiguring in the same conditions
33359 --file=FILE[:TEMPLATE]
33360 instantiate the configuration file FILE
33361 --header=FILE[:TEMPLATE]
33362 instantiate the configuration header FILE
33363
33364Configuration files:
33365$config_files
33366
33367Configuration headers:
33368$config_headers
33369
33370Configuration commands:
33371$config_commands
33372
cristy8b350f62009-11-15 23:12:43 +000033373Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033374
33375_ACEOF
33376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033377ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033378ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033379ImageMagick config.status 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +000033380configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033381 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033382
cristyfd9dcd42010-08-08 18:07:02 +000033383Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033384This config.status script is free software; the Free Software Foundation
33385gives unlimited permission to copy, distribute and modify it."
33386
33387ac_pwd='$ac_pwd'
33388srcdir='$srcdir'
33389INSTALL='$INSTALL'
33390MKDIR_P='$MKDIR_P'
33391AWK='$AWK'
33392test -n "\$AWK" || AWK=awk
33393_ACEOF
33394
33395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33396# The default lists apply if the user does not specify any file.
33397ac_need_defaults=:
33398while test $# != 0
33399do
33400 case $1 in
33401 --*=*)
33402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33404 ac_shift=:
33405 ;;
33406 *)
33407 ac_option=$1
33408 ac_optarg=$2
33409 ac_shift=shift
33410 ;;
33411 esac
33412
33413 case $ac_option in
33414 # Handling of the options.
33415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33416 ac_cs_recheck=: ;;
33417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33418 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033419 --config | --confi | --conf | --con | --co | --c )
33420 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033421 --debug | --debu | --deb | --de | --d | -d )
33422 debug=: ;;
33423 --file | --fil | --fi | --f )
33424 $ac_shift
33425 case $ac_optarg in
33426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33427 esac
cristy8b350f62009-11-15 23:12:43 +000033428 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_need_defaults=false;;
33430 --header | --heade | --head | --hea )
33431 $ac_shift
33432 case $ac_optarg in
33433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33434 esac
cristy8b350f62009-11-15 23:12:43 +000033435 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033436 ac_need_defaults=false;;
33437 --he | --h)
33438 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033439 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033440Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033441 --help | --hel | -h )
33442 $as_echo "$ac_cs_usage"; exit ;;
33443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33445 ac_cs_silent=: ;;
33446
33447 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033448 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033449Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033450
cristy8b350f62009-11-15 23:12:43 +000033451 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033452 ac_need_defaults=false ;;
33453
33454 esac
33455 shift
33456done
33457
33458ac_configure_extra_args=
33459
33460if $ac_cs_silent; then
33461 exec 6>/dev/null
33462 ac_configure_extra_args="$ac_configure_extra_args --silent"
33463fi
33464
33465_ACEOF
33466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33467if \$ac_cs_recheck; then
33468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33469 shift
33470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33471 CONFIG_SHELL='$SHELL'
33472 export CONFIG_SHELL
33473 exec "\$@"
33474fi
33475
33476_ACEOF
33477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33478exec 5>>config.log
33479{
33480 echo
33481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33482## Running $as_me. ##
33483_ASBOX
33484 $as_echo "$ac_log"
33485} >&5
33486
33487_ACEOF
33488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33489#
33490# INIT-COMMANDS
33491#
33492PACKAGE="$PACKAGE"
33493AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33494
33495
33496# The HP-UX ksh and POSIX shell print the target directory to stdout
33497# if CDPATH is set.
33498(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33499
33500sed_quote_subst='$sed_quote_subst'
33501double_quote_subst='$double_quote_subst'
33502delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033503SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33504Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33505GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33506EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33507FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33508SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33509ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33510LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33511macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33512macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33513AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33514DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33515OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33516enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33517enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33518pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33519enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33520host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33521host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33522host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33523build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33524build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33525build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33526NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33527LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33528max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33529ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33530exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33531lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33532lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33533lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33534reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33535reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33536deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33537file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33538AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33539AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33540STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33541RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33542old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33543old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33544old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33545lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33546CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33547CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33548compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33549GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33550lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33551lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33552lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33553lt_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"`'
33554objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33555MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33556lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33557lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33558lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33559lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33560lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33561need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33562DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33563NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33564LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33565OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33566OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33567libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33568shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33569extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33570archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33571enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33572export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33573whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33574compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33575old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33576old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33577archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33578archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33579module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33580module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33581with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33582allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33583no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33584hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33585hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33586hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33587hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33588hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33589hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33590hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33591hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33592inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33593link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33594fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33595always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33596export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33597exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33598include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33599prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33600file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33601variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33602need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33603need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33604version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33605runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33606shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33607shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33608libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33609library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33610soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33611install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33612postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33613postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33614finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33615finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33616hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33617sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33618sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33619hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33620enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33621enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33622enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33623old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33624striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33625compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33626predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33627postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33628predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33629postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33630compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33631LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33632reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33633reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33634old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33635compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33636GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33637lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33638lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33639lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33640lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33641lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33642archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33643enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33644export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33645whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33646compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33647old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33648old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33649archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33650archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33651module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33652module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33653with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33654allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33655no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33656hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33657hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33658hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33659hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33660hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33661hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33662hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33663hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33664inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33665link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33666fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33667always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33668export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33669exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33670include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33671prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33672file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33673hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33674compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33675predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33676postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33677predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33678postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33679compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033680
33681LTCC='$LTCC'
33682LTCFLAGS='$LTCFLAGS'
33683compiler='$compiler_DEFAULT'
33684
cristyfd9dcd42010-08-08 18:07:02 +000033685# A function that is used when there is no print builtin or printf.
33686func_fallback_echo ()
33687{
33688 eval 'cat <<_LTECHO_EOF
33689\$1
33690_LTECHO_EOF'
33691}
33692
cristy3ed852e2009-09-05 21:47:34 +000033693# Quote evaled strings.
33694for var in SED \
33695GREP \
33696EGREP \
33697FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033698SHELL \
33699ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033700LD \
cristyfd9dcd42010-08-08 18:07:02 +000033701AS \
33702DLLTOOL \
33703OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033704NM \
33705LN_S \
33706lt_SP2NL \
33707lt_NL2SP \
33708reload_flag \
33709deplibs_check_method \
33710file_magic_cmd \
33711AR \
33712AR_FLAGS \
33713STRIP \
33714RANLIB \
33715CC \
33716CFLAGS \
33717compiler \
33718lt_cv_sys_global_symbol_pipe \
33719lt_cv_sys_global_symbol_to_cdecl \
33720lt_cv_sys_global_symbol_to_c_name_address \
33721lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033722lt_prog_compiler_no_builtin_flag \
33723lt_prog_compiler_wl \
33724lt_prog_compiler_pic \
33725lt_prog_compiler_static \
33726lt_cv_prog_compiler_c_o \
33727need_locks \
33728DSYMUTIL \
33729NMEDIT \
33730LIPO \
33731OTOOL \
33732OTOOL64 \
33733shrext_cmds \
33734export_dynamic_flag_spec \
33735whole_archive_flag_spec \
33736compiler_needs_object \
33737with_gnu_ld \
33738allow_undefined_flag \
33739no_undefined_flag \
33740hardcode_libdir_flag_spec \
33741hardcode_libdir_flag_spec_ld \
33742hardcode_libdir_separator \
33743fix_srcfile_path \
33744exclude_expsyms \
33745include_expsyms \
33746file_list_spec \
33747variables_saved_for_relink \
33748libname_spec \
33749library_names_spec \
33750soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033751install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033752finish_eval \
33753old_striplib \
33754striplib \
33755compiler_lib_search_dirs \
33756predep_objects \
33757postdep_objects \
33758predeps \
33759postdeps \
33760compiler_lib_search_path \
33761LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033762reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033763compiler_CXX \
33764lt_prog_compiler_no_builtin_flag_CXX \
33765lt_prog_compiler_wl_CXX \
33766lt_prog_compiler_pic_CXX \
33767lt_prog_compiler_static_CXX \
33768lt_cv_prog_compiler_c_o_CXX \
33769export_dynamic_flag_spec_CXX \
33770whole_archive_flag_spec_CXX \
33771compiler_needs_object_CXX \
33772with_gnu_ld_CXX \
33773allow_undefined_flag_CXX \
33774no_undefined_flag_CXX \
33775hardcode_libdir_flag_spec_CXX \
33776hardcode_libdir_flag_spec_ld_CXX \
33777hardcode_libdir_separator_CXX \
33778fix_srcfile_path_CXX \
33779exclude_expsyms_CXX \
33780include_expsyms_CXX \
33781file_list_spec_CXX \
33782compiler_lib_search_dirs_CXX \
33783predep_objects_CXX \
33784postdep_objects_CXX \
33785predeps_CXX \
33786postdeps_CXX \
33787compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033788 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033789 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033790 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033791 ;;
33792 *)
33793 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33794 ;;
33795 esac
33796done
33797
33798# Double-quote double-evaled strings.
33799for var in reload_cmds \
33800old_postinstall_cmds \
33801old_postuninstall_cmds \
33802old_archive_cmds \
33803extract_expsyms_cmds \
33804old_archive_from_new_cmds \
33805old_archive_from_expsyms_cmds \
33806archive_cmds \
33807archive_expsym_cmds \
33808module_cmds \
33809module_expsym_cmds \
33810export_symbols_cmds \
33811prelink_cmds \
33812postinstall_cmds \
33813postuninstall_cmds \
33814finish_cmds \
33815sys_lib_search_path_spec \
33816sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033817reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033818old_archive_cmds_CXX \
33819old_archive_from_new_cmds_CXX \
33820old_archive_from_expsyms_cmds_CXX \
33821archive_cmds_CXX \
33822archive_expsym_cmds_CXX \
33823module_cmds_CXX \
33824module_expsym_cmds_CXX \
33825export_symbols_cmds_CXX \
33826prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033828 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033830 ;;
33831 *)
33832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33833 ;;
33834 esac
33835done
33836
cristy3ed852e2009-09-05 21:47:34 +000033837ac_aux_dir='$ac_aux_dir'
33838xsi_shell='$xsi_shell'
33839lt_shell_append='$lt_shell_append'
33840
33841# See if we are running on zsh, and set the options which allow our
33842# commands through without removal of \ escapes INIT.
33843if test -n "\${ZSH_VERSION+set}" ; then
33844 setopt NO_GLOB_SUBST
33845fi
33846
33847
33848 PACKAGE='$PACKAGE'
33849 VERSION='$VERSION'
33850 TIMESTAMP='$TIMESTAMP'
33851 RM='$RM'
33852 ofile='$ofile'
33853
33854
33855
33856
33857
33858
33859_ACEOF
33860
33861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33862
33863# Handling of arguments.
33864for ac_config_target in $ac_config_targets
33865do
33866 case $ac_config_target in
33867 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33868 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33869 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33870 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33871 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33872 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33873 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033874 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033875 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33876 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33877 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33878 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33879 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33880 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33881 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33882 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33883 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33884 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33885 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33886 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33887 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33888 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33889 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33890 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33891 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33892 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33893 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33894 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33895 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33896 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33897 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33898 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33899 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33900 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33901 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33902 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33903 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33904 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33905 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33906 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33907 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33908 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33909 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33910 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33911 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33912 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33913 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33914 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33915 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33916 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33917
cristyfd9dcd42010-08-08 18:07:02 +000033918 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033919 esac
33920done
33921
33922
33923# If the user did not use the arguments to specify the items to instantiate,
33924# then the envvar interface is used. Set only those that are not.
33925# We use the long form for the default assignment because of an extremely
33926# bizarre bug on SunOS 4.1.3.
33927if $ac_need_defaults; then
33928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33931fi
33932
33933# Have a temporary directory for convenience. Make it in the build tree
33934# simply because there is no reason against having it here, and in addition,
33935# creating and moving files from /tmp can sometimes cause problems.
33936# Hook for its removal unless debugging.
33937# Note that there is a small window in which the directory will not be cleaned:
33938# after its creation but before its name has been assigned to `$tmp'.
33939$debug ||
33940{
33941 tmp=
33942 trap 'exit_status=$?
33943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33944' 0
cristy8b350f62009-11-15 23:12:43 +000033945 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033946}
33947# Create a (secure) tmp directory for tmp files.
33948
33949{
33950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33951 test -n "$tmp" && test -d "$tmp"
33952} ||
33953{
33954 tmp=./conf$$-$RANDOM
33955 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033956} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033957
33958# Set up the scripts for CONFIG_FILES section.
33959# No need to generate them if there are no CONFIG_FILES.
33960# This happens for instance with `./config.status config.h'.
33961if test -n "$CONFIG_FILES"; then
33962
33963
cristy8b350f62009-11-15 23:12:43 +000033964ac_cr=`echo X | tr X '\015'`
33965# On cygwin, bash can eat \r inside `` if the user requested igncr.
33966# But we know of no other shell where ac_cr would be empty at this
33967# point, so we can use a bashism as a fallback.
33968if test "x$ac_cr" = x; then
33969 eval ac_cr=\$\'\\r\'
33970fi
cristy3ed852e2009-09-05 21:47:34 +000033971ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33972if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033973 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033974else
33975 ac_cs_awk_cr=$ac_cr
33976fi
33977
33978echo 'BEGIN {' >"$tmp/subs1.awk" &&
33979_ACEOF
33980
33981
33982{
33983 echo "cat >conf$$subs.awk <<_ACEOF" &&
33984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33985 echo "_ACEOF"
33986} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33988ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033989ac_delim='%!_!# '
33990for ac_last_try in false false false false false :; do
33991 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033993
33994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33995 if test $ac_delim_n = $ac_delim_num; then
33996 break
33997 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000033998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033999 else
34000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34001 fi
34002done
34003rm -f conf$$subs.sh
34004
34005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34006cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34007_ACEOF
34008sed -n '
34009h
34010s/^/S["/; s/!.*/"]=/
34011p
34012g
34013s/^[^!]*!//
34014:repl
34015t repl
34016s/'"$ac_delim"'$//
34017t delim
34018:nl
34019h
cristycd4c5312009-11-22 01:19:08 +000034020s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034021t more1
34022s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34023p
34024n
34025b repl
34026:more1
34027s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34028p
34029g
34030s/.\{148\}//
34031t nl
34032:delim
34033h
cristycd4c5312009-11-22 01:19:08 +000034034s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034035t more2
34036s/["\\]/\\&/g; s/^/"/; s/$/"/
34037p
34038b
34039:more2
34040s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34041p
34042g
34043s/.\{148\}//
34044t delim
34045' <conf$$subs.awk | sed '
34046/^[^""]/{
34047 N
34048 s/\n//
34049}
34050' >>$CONFIG_STATUS || ac_write_fail=1
34051rm -f conf$$subs.awk
34052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34053_ACAWK
34054cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34055 for (key in S) S_is_set[key] = 1
34056 FS = ""
34057
34058}
34059{
34060 line = $ 0
34061 nfields = split(line, field, "@")
34062 substed = 0
34063 len = length(field[1])
34064 for (i = 2; i < nfields; i++) {
34065 key = field[i]
34066 keylen = length(key)
34067 if (S_is_set[key]) {
34068 value = S[key]
34069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34070 len += length(value) + length(field[++i])
34071 substed = 1
34072 } else
34073 len += 1 + keylen
34074 }
34075
34076 print line
34077}
34078
34079_ACAWK
34080_ACEOF
34081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34082if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34084else
34085 cat
34086fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000034087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034088_ACEOF
34089
cristyfd9dcd42010-08-08 18:07:02 +000034090# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34091# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034092# trailing colons and then remove the whole line if VPATH becomes empty
34093# (actually we leave an empty line to preserve line numbers).
34094if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000034095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34096h
34097s///
34098s/^/:/
34099s/[ ]*$/:/
34100s/:\$(srcdir):/:/g
34101s/:\${srcdir}:/:/g
34102s/:@srcdir@:/:/g
34103s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034104s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000034105x
34106s/\(=[ ]*\).*/\1/
34107G
34108s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034109s/^[^=]*=[ ]*$//
34110}'
34111fi
34112
34113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34114fi # test -n "$CONFIG_FILES"
34115
34116# Set up the scripts for CONFIG_HEADERS section.
34117# No need to generate them if there are no CONFIG_HEADERS.
34118# This happens for instance with `./config.status Makefile'.
34119if test -n "$CONFIG_HEADERS"; then
34120cat >"$tmp/defines.awk" <<\_ACAWK ||
34121BEGIN {
34122_ACEOF
34123
34124# Transform confdefs.h into an awk script `defines.awk', embedded as
34125# here-document in config.status, that substitutes the proper values into
34126# config.h.in to produce config.h.
34127
34128# Create a delimiter string that does not exist in confdefs.h, to ease
34129# handling of long lines.
34130ac_delim='%!_!# '
34131for ac_last_try in false false :; do
34132 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34133 if test -z "$ac_t"; then
34134 break
34135 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034137 else
34138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34139 fi
34140done
34141
34142# For the awk script, D is an array of macro values keyed by name,
34143# likewise P contains macro parameters if any. Preserve backslash
34144# newline sequences.
34145
34146ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34147sed -n '
34148s/.\{148\}/&'"$ac_delim"'/g
34149t rset
34150:rset
34151s/^[ ]*#[ ]*define[ ][ ]*/ /
34152t def
34153d
34154:def
34155s/\\$//
34156t bsnl
34157s/["\\]/\\&/g
34158s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34159D["\1"]=" \3"/p
34160s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34161d
34162:bsnl
34163s/["\\]/\\&/g
34164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34165D["\1"]=" \3\\\\\\n"\\/p
34166t cont
34167s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34168t cont
34169d
34170:cont
34171n
34172s/.\{148\}/&'"$ac_delim"'/g
34173t clear
34174:clear
34175s/\\$//
34176t bsnlc
34177s/["\\]/\\&/g; s/^/"/; s/$/"/p
34178d
34179:bsnlc
34180s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34181b cont
34182' <confdefs.h | sed '
34183s/'"$ac_delim"'/"\\\
34184"/g' >>$CONFIG_STATUS || ac_write_fail=1
34185
34186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34187 for (key in D) D_is_set[key] = 1
34188 FS = ""
34189}
34190/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34191 line = \$ 0
34192 split(line, arg, " ")
34193 if (arg[1] == "#") {
34194 defundef = arg[2]
34195 mac1 = arg[3]
34196 } else {
34197 defundef = substr(arg[1], 2)
34198 mac1 = arg[2]
34199 }
34200 split(mac1, mac2, "(") #)
34201 macro = mac2[1]
34202 prefix = substr(line, 1, index(line, defundef) - 1)
34203 if (D_is_set[macro]) {
34204 # Preserve the white space surrounding the "#".
34205 print prefix "define", macro P[macro] D[macro]
34206 next
34207 } else {
34208 # Replace #undef with comments. This is necessary, for example,
34209 # in the case of _POSIX_SOURCE, which is predefined and required
34210 # on some systems where configure will not decide to define it.
34211 if (defundef == "undef") {
34212 print "/*", prefix defundef, macro, "*/"
34213 next
34214 }
34215 }
34216}
34217{ print }
34218_ACAWK
34219_ACEOF
34220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000034221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034222fi # test -n "$CONFIG_HEADERS"
34223
34224
34225eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34226shift
34227for ac_tag
34228do
34229 case $ac_tag in
34230 :[FHLC]) ac_mode=$ac_tag; continue;;
34231 esac
34232 case $ac_mode$ac_tag in
34233 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000034234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034235 :[FH]-) ac_tag=-:-;;
34236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34237 esac
34238 ac_save_IFS=$IFS
34239 IFS=:
34240 set x $ac_tag
34241 IFS=$ac_save_IFS
34242 shift
34243 ac_file=$1
34244 shift
34245
34246 case $ac_mode in
34247 :L) ac_source=$1;;
34248 :[FH])
34249 ac_file_inputs=
34250 for ac_f
34251 do
34252 case $ac_f in
34253 -) ac_f="$tmp/stdin";;
34254 *) # Look for the file first in the build tree, then in the source tree
34255 # (if the path is not absolute). The absolute path cannot be DOS-style,
34256 # because $ac_f cannot contain `:'.
34257 test -f "$ac_f" ||
34258 case $ac_f in
34259 [\\/$]*) false;;
34260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34261 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000034262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034263 esac
34264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034265 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034266 done
34267
34268 # Let's still pretend it is `configure' which instantiates (i.e., don't
34269 # use $as_me), people would be surprised to read:
34270 # /* config.h. Generated by config.status. */
34271 configure_input='Generated from '`
34272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34273 `' by configure.'
34274 if test x"$ac_file" != x-; then
34275 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "$as_me: creating $ac_file" >&6;}
34278 fi
34279 # Neutralize special characters interpreted by sed in replacement strings.
34280 case $configure_input in #(
34281 *\&* | *\|* | *\\* )
34282 ac_sed_conf_input=`$as_echo "$configure_input" |
34283 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34284 *) ac_sed_conf_input=$configure_input;;
34285 esac
34286
34287 case $ac_tag in
34288 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000034289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034290 esac
34291 ;;
34292 esac
34293
34294 ac_dir=`$as_dirname -- "$ac_file" ||
34295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34296 X"$ac_file" : 'X\(//\)[^/]' \| \
34297 X"$ac_file" : 'X\(//\)$' \| \
34298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34299$as_echo X"$ac_file" |
34300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34301 s//\1/
34302 q
34303 }
34304 /^X\(\/\/\)[^/].*/{
34305 s//\1/
34306 q
34307 }
34308 /^X\(\/\/\)$/{
34309 s//\1/
34310 q
34311 }
34312 /^X\(\/\).*/{
34313 s//\1/
34314 q
34315 }
34316 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034317 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034318 ac_builddir=.
34319
34320case "$ac_dir" in
34321.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34322*)
34323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34324 # A ".." for each directory in $ac_dir_suffix.
34325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34326 case $ac_top_builddir_sub in
34327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34329 esac ;;
34330esac
34331ac_abs_top_builddir=$ac_pwd
34332ac_abs_builddir=$ac_pwd$ac_dir_suffix
34333# for backward compatibility:
34334ac_top_builddir=$ac_top_build_prefix
34335
34336case $srcdir in
34337 .) # We are building in place.
34338 ac_srcdir=.
34339 ac_top_srcdir=$ac_top_builddir_sub
34340 ac_abs_top_srcdir=$ac_pwd ;;
34341 [\\/]* | ?:[\\/]* ) # Absolute name.
34342 ac_srcdir=$srcdir$ac_dir_suffix;
34343 ac_top_srcdir=$srcdir
34344 ac_abs_top_srcdir=$srcdir ;;
34345 *) # Relative name.
34346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34347 ac_top_srcdir=$ac_top_build_prefix$srcdir
34348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34349esac
34350ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34351
34352
34353 case $ac_mode in
34354 :F)
34355 #
34356 # CONFIG_FILE
34357 #
34358
34359 case $INSTALL in
34360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34362 esac
34363 ac_MKDIR_P=$MKDIR_P
34364 case $MKDIR_P in
34365 [\\/$]* | ?:[\\/]* ) ;;
34366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34367 esac
34368_ACEOF
34369
34370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34371# If the template does not know about datarootdir, expand it.
34372# FIXME: This hack should be removed a few years after 2.60.
34373ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034374ac_sed_dataroot='
34375/datarootdir/ {
34376 p
34377 q
34378}
34379/@datadir@/p
34380/@docdir@/p
34381/@infodir@/p
34382/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034383/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034384case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34385*datarootdir*) ac_datarootdir_seen=yes;;
34386*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34389_ACEOF
34390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34391 ac_datarootdir_hack='
34392 s&@datadir@&$datadir&g
34393 s&@docdir@&$docdir&g
34394 s&@infodir@&$infodir&g
34395 s&@localedir@&$localedir&g
34396 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034397 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034398esac
34399_ACEOF
34400
34401# Neutralize VPATH when `$srcdir' = `.'.
34402# Shell code in configure.ac might set extrasub.
34403# FIXME: do we really want to maintain this feature?
34404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34405ac_sed_extra="$ac_vpsub
34406$extrasub
34407_ACEOF
34408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34409:t
34410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34411s|@configure_input@|$ac_sed_conf_input|;t t
34412s&@top_builddir@&$ac_top_builddir_sub&;t t
34413s&@top_build_prefix@&$ac_top_build_prefix&;t t
34414s&@srcdir@&$ac_srcdir&;t t
34415s&@abs_srcdir@&$ac_abs_srcdir&;t t
34416s&@top_srcdir@&$ac_top_srcdir&;t t
34417s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34418s&@builddir@&$ac_builddir&;t t
34419s&@abs_builddir@&$ac_abs_builddir&;t t
34420s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34421s&@INSTALL@&$ac_INSTALL&;t t
34422s&@MKDIR_P@&$ac_MKDIR_P&;t t
34423$ac_datarootdir_hack
34424"
34425eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034427
34428test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34429 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034432which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034434which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034435
34436 rm -f "$tmp/stdin"
34437 case $ac_file in
34438 -) cat "$tmp/out" && rm -f "$tmp/out";;
34439 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34440 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034442 ;;
34443 :H)
34444 #
34445 # CONFIG_HEADER
34446 #
34447 if test x"$ac_file" != x-; then
34448 {
34449 $as_echo "/* $configure_input */" \
34450 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34451 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034453 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034455$as_echo "$as_me: $ac_file is unchanged" >&6;}
34456 else
34457 rm -f "$ac_file"
34458 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034460 fi
34461 else
34462 $as_echo "/* $configure_input */" \
34463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034464 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034465 fi
34466# Compute "$ac_file"'s index in $config_headers.
34467_am_arg="$ac_file"
34468_am_stamp_count=1
34469for _am_header in $config_headers :; do
34470 case $_am_header in
34471 $_am_arg | $_am_arg:* )
34472 break ;;
34473 * )
34474 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34475 esac
34476done
34477echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34478$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34479 X"$_am_arg" : 'X\(//\)[^/]' \| \
34480 X"$_am_arg" : 'X\(//\)$' \| \
34481 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34482$as_echo X"$_am_arg" |
34483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34484 s//\1/
34485 q
34486 }
34487 /^X\(\/\/\)[^/].*/{
34488 s//\1/
34489 q
34490 }
34491 /^X\(\/\/\)$/{
34492 s//\1/
34493 q
34494 }
34495 /^X\(\/\).*/{
34496 s//\1/
34497 q
34498 }
34499 s/.*/./; q'`/stamp-h$_am_stamp_count
34500 ;;
34501
cristy8b350f62009-11-15 23:12:43 +000034502 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo "$as_me: executing $ac_file commands" >&6;}
34504 ;;
34505 esac
34506
34507
34508 case $ac_file$ac_mode in
34509 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34510ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34511ac_prefix_conf_PKG=`echo MagickCore`
34512ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34513ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34514ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34515if test ".$ac_prefix_conf_INP" = "."; then
34516 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34517 case "$ac_file" in
34518 *.h) ac_prefix_conf_INP=$ac_file ;;
34519 *)
34520 esac
34521 test ".$ac_prefix_conf_INP" != "." && break
34522 done
34523fi
34524if test ".$ac_prefix_conf_INP" = "."; then
34525 case "$ac_prefix_conf_OUT" in
34526 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34527 ;;
34528 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34529 ;;
34530 *) ac_prefix_conf_INP=config.h
34531 ;;
34532 esac
34533fi
34534if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034535 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034536else
34537 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34538 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34539 fi fi
cristy8b350f62009-11-15 23:12:43 +000034540 { $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 +000034541$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34542 if test -f $ac_prefix_conf_INP ; then
34543 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34544 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034545 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34546 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034547 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034548 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34549 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034550 echo "#endif/" >> conftest.prefix
34551 # now executing _script on _DEF input to create _OUT output file
34552 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34553 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34554 echo ' ' >>$tmp/pconfig.h
34555 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34556
34557 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34558 echo ' ' >>$tmp/pconfig.h
34559 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34560 echo "#endif" >>$tmp/pconfig.h
34561 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34564 else
34565 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34566$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34567 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34568 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34569 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34570$as_echo X"$ac_prefix_conf_OUT" |
34571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34572 s//\1/
34573 q
34574 }
34575 /^X\(\/\/\)[^/].*/{
34576 s//\1/
34577 q
34578 }
34579 /^X\(\/\/\)$/{
34580 s//\1/
34581 q
34582 }
34583 /^X\(\/\).*/{
34584 s//\1/
34585 q
34586 }
34587 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034588 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034589 rm -f "$ac_prefix_conf_OUT"
34590 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34591 fi
34592 cp conftest.prefix _configs.sed
34593 else
cristyfd9dcd42010-08-08 18:07:02 +000034594 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 +000034595 fi
34596 rm -f conftest.*
34597fi
34598 ;;
34599 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34600 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34601 # are listed without --file. Let's play safe and only enable the eval
34602 # if we detect the quoting.
34603 case $CONFIG_FILES in
34604 *\'*) eval set x "$CONFIG_FILES" ;;
34605 *) set x $CONFIG_FILES ;;
34606 esac
34607 shift
34608 for mf
34609 do
34610 # Strip MF so we end up with the name of the file.
34611 mf=`echo "$mf" | sed -e 's/:.*$//'`
34612 # Check whether this is an Automake generated Makefile or not.
34613 # We used to match only the files named `Makefile.in', but
34614 # some people rename them; so instead we look at the file content.
34615 # Grep'ing the first line is not enough: some people post-process
34616 # each Makefile.in and add a new line on top of each file to say so.
34617 # Grep'ing the whole file is not good either: AIX grep has a line
34618 # limit of 2048, but all sed's we know have understand at least 4000.
34619 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34620 dirpart=`$as_dirname -- "$mf" ||
34621$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34622 X"$mf" : 'X\(//\)[^/]' \| \
34623 X"$mf" : 'X\(//\)$' \| \
34624 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34625$as_echo X"$mf" |
34626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34627 s//\1/
34628 q
34629 }
34630 /^X\(\/\/\)[^/].*/{
34631 s//\1/
34632 q
34633 }
34634 /^X\(\/\/\)$/{
34635 s//\1/
34636 q
34637 }
34638 /^X\(\/\).*/{
34639 s//\1/
34640 q
34641 }
34642 s/.*/./; q'`
34643 else
34644 continue
34645 fi
34646 # Extract the definition of DEPDIR, am__include, and am__quote
34647 # from the Makefile without running `make'.
34648 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34649 test -z "$DEPDIR" && continue
34650 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34651 test -z "am__include" && continue
34652 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34653 # When using ansi2knr, U may be empty or an underscore; expand it
34654 U=`sed -n 's/^U = //p' < "$mf"`
34655 # Find all dependency output files, they are included files with
34656 # $(DEPDIR) in their names. We invoke sed twice because it is the
34657 # simplest approach to changing $(DEPDIR) to its actual value in the
34658 # expansion.
34659 for file in `sed -n "
34660 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34661 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34662 # Make sure the directory exists.
34663 test -f "$dirpart/$file" && continue
34664 fdir=`$as_dirname -- "$file" ||
34665$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34666 X"$file" : 'X\(//\)[^/]' \| \
34667 X"$file" : 'X\(//\)$' \| \
34668 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34669$as_echo X"$file" |
34670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34671 s//\1/
34672 q
34673 }
34674 /^X\(\/\/\)[^/].*/{
34675 s//\1/
34676 q
34677 }
34678 /^X\(\/\/\)$/{
34679 s//\1/
34680 q
34681 }
34682 /^X\(\/\).*/{
34683 s//\1/
34684 q
34685 }
34686 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034687 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034688 # echo "creating $dirpart/$file"
34689 echo '# dummy' > "$dirpart/$file"
34690 done
34691 done
34692}
34693 ;;
34694 "libtool":C)
34695
34696 # See if we are running on zsh, and set the options which allow our
34697 # commands through without removal of \ escapes.
34698 if test -n "${ZSH_VERSION+set}" ; then
34699 setopt NO_GLOB_SUBST
34700 fi
34701
34702 cfgfile="${ofile}T"
34703 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34704 $RM "$cfgfile"
34705
34706 cat <<_LT_EOF >> "$cfgfile"
34707#! $SHELL
34708
34709# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34710# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34711# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34712# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34713#
34714# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034715# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34716# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034717# Written by Gordon Matzigkeit, 1996
34718#
34719# This file is part of GNU Libtool.
34720#
34721# GNU Libtool is free software; you can redistribute it and/or
34722# modify it under the terms of the GNU General Public License as
34723# published by the Free Software Foundation; either version 2 of
34724# the License, or (at your option) any later version.
34725#
34726# As a special exception to the GNU General Public License,
34727# if you distribute this file as part of a program or library that
34728# is built using GNU Libtool, you may include this file under the
34729# same distribution terms that you use for the rest of that program.
34730#
34731# GNU Libtool is distributed in the hope that it will be useful,
34732# but WITHOUT ANY WARRANTY; without even the implied warranty of
34733# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34734# GNU General Public License for more details.
34735#
34736# You should have received a copy of the GNU General Public License
34737# along with GNU Libtool; see the file COPYING. If not, a copy
34738# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34739# obtained by writing to the Free Software Foundation, Inc.,
34740# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34741
34742
34743# The names of the tagged configurations supported by this script.
34744available_tags="CXX "
34745
34746# ### BEGIN LIBTOOL CONFIG
34747
34748# A sed program that does not truncate output.
34749SED=$lt_SED
34750
34751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34752Xsed="\$SED -e 1s/^X//"
34753
34754# A grep program that handles long lines.
34755GREP=$lt_GREP
34756
34757# An ERE matcher.
34758EGREP=$lt_EGREP
34759
34760# A literal string matcher.
34761FGREP=$lt_FGREP
34762
cristyfd9dcd42010-08-08 18:07:02 +000034763# Shell to use when invoking shell scripts.
34764SHELL=$lt_SHELL
34765
34766# An echo program that protects backslashes.
34767ECHO=$lt_ECHO
34768
cristy3ed852e2009-09-05 21:47:34 +000034769# Which release of libtool.m4 was used?
34770macro_version=$macro_version
34771macro_revision=$macro_revision
34772
34773# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034774AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034775
34776# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034777DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034778
34779# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034780OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034781
34782# Whether or not to build shared libraries.
34783build_libtool_libs=$enable_shared
34784
34785# Whether or not to build static libraries.
34786build_old_libs=$enable_static
34787
34788# What type of objects to build.
34789pic_mode=$pic_mode
34790
34791# Whether or not to optimize for fast installation.
34792fast_install=$enable_fast_install
34793
34794# The host system.
34795host_alias=$host_alias
34796host=$host
34797host_os=$host_os
34798
34799# The build system.
34800build_alias=$build_alias
34801build=$build
34802build_os=$build_os
34803
34804# A BSD- or MS-compatible name lister.
34805NM=$lt_NM
34806
34807# Whether we need soft or hard links.
34808LN_S=$lt_LN_S
34809
34810# What is the maximum length of a command?
34811max_cmd_len=$max_cmd_len
34812
34813# Object file suffix (normally "o").
34814objext=$ac_objext
34815
34816# Executable file suffix (normally "").
34817exeext=$exeext
34818
34819# whether the shell understands "unset".
34820lt_unset=$lt_unset
34821
34822# turn spaces into newlines.
34823SP2NL=$lt_lt_SP2NL
34824
34825# turn newlines into spaces.
34826NL2SP=$lt_lt_NL2SP
34827
cristy3ed852e2009-09-05 21:47:34 +000034828# Method to check whether dependent libraries are shared objects.
34829deplibs_check_method=$lt_deplibs_check_method
34830
34831# Command to use when deplibs_check_method == "file_magic".
34832file_magic_cmd=$lt_file_magic_cmd
34833
34834# The archiver.
34835AR=$lt_AR
34836AR_FLAGS=$lt_AR_FLAGS
34837
34838# A symbol stripping program.
34839STRIP=$lt_STRIP
34840
34841# Commands used to install an old-style archive.
34842RANLIB=$lt_RANLIB
34843old_postinstall_cmds=$lt_old_postinstall_cmds
34844old_postuninstall_cmds=$lt_old_postuninstall_cmds
34845
cristyfd9dcd42010-08-08 18:07:02 +000034846# Whether to use a lock for old archive extraction.
34847lock_old_archive_extraction=$lock_old_archive_extraction
34848
cristy3ed852e2009-09-05 21:47:34 +000034849# A C compiler.
34850LTCC=$lt_CC
34851
34852# LTCC compiler flags.
34853LTCFLAGS=$lt_CFLAGS
34854
34855# Take the output of nm and produce a listing of raw symbols and C names.
34856global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34857
34858# Transform the output of nm in a proper C declaration.
34859global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34860
34861# Transform the output of nm in a C name address pair.
34862global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34863
34864# Transform the output of nm in a C name address pair when lib prefix is needed.
34865global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34866
34867# The name of the directory that contains temporary libtool files.
34868objdir=$objdir
34869
cristy3ed852e2009-09-05 21:47:34 +000034870# Used to examine libraries when file_magic_cmd begins with "file".
34871MAGIC_CMD=$MAGIC_CMD
34872
34873# Must we lock files when doing compilation?
34874need_locks=$lt_need_locks
34875
34876# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34877DSYMUTIL=$lt_DSYMUTIL
34878
34879# Tool to change global to local symbols on Mac OS X.
34880NMEDIT=$lt_NMEDIT
34881
34882# Tool to manipulate fat objects and archives on Mac OS X.
34883LIPO=$lt_LIPO
34884
34885# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34886OTOOL=$lt_OTOOL
34887
34888# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34889OTOOL64=$lt_OTOOL64
34890
34891# Old archive suffix (normally "a").
34892libext=$libext
34893
34894# Shared library suffix (normally ".so").
34895shrext_cmds=$lt_shrext_cmds
34896
34897# The commands to extract the exported symbol list from a shared archive.
34898extract_expsyms_cmds=$lt_extract_expsyms_cmds
34899
34900# Variables whose values should be saved in libtool wrapper scripts and
34901# restored at link time.
34902variables_saved_for_relink=$lt_variables_saved_for_relink
34903
34904# Do we need the "lib" prefix for modules?
34905need_lib_prefix=$need_lib_prefix
34906
34907# Do we need a version for libraries?
34908need_version=$need_version
34909
34910# Library versioning type.
34911version_type=$version_type
34912
34913# Shared library runtime path variable.
34914runpath_var=$runpath_var
34915
34916# Shared library path variable.
34917shlibpath_var=$shlibpath_var
34918
34919# Is shlibpath searched before the hard-coded library search path?
34920shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34921
34922# Format of library name prefix.
34923libname_spec=$lt_libname_spec
34924
34925# List of archive names. First name is the real one, the rest are links.
34926# The last name is the one that the linker finds with -lNAME
34927library_names_spec=$lt_library_names_spec
34928
34929# The coded name of the library, if different from the real name.
34930soname_spec=$lt_soname_spec
34931
cristyfd9dcd42010-08-08 18:07:02 +000034932# Permission mode override for installation of shared libraries.
34933install_override_mode=$lt_install_override_mode
34934
cristy3ed852e2009-09-05 21:47:34 +000034935# Command to use after installation of a shared archive.
34936postinstall_cmds=$lt_postinstall_cmds
34937
34938# Command to use after uninstallation of a shared archive.
34939postuninstall_cmds=$lt_postuninstall_cmds
34940
34941# Commands used to finish a libtool library installation in a directory.
34942finish_cmds=$lt_finish_cmds
34943
34944# As "finish_cmds", except a single script fragment to be evaled but
34945# not shown.
34946finish_eval=$lt_finish_eval
34947
34948# Whether we should hardcode library paths into libraries.
34949hardcode_into_libs=$hardcode_into_libs
34950
34951# Compile-time system search path for libraries.
34952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34953
34954# Run-time system search path for libraries.
34955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34956
34957# Whether dlopen is supported.
34958dlopen_support=$enable_dlopen
34959
34960# Whether dlopen of programs is supported.
34961dlopen_self=$enable_dlopen_self
34962
34963# Whether dlopen of statically linked programs is supported.
34964dlopen_self_static=$enable_dlopen_self_static
34965
34966# Commands to strip libraries.
34967old_striplib=$lt_old_striplib
34968striplib=$lt_striplib
34969
34970
34971# The linker used to build libraries.
34972LD=$lt_LD
34973
cristyfd9dcd42010-08-08 18:07:02 +000034974# How to create reloadable object files.
34975reload_flag=$lt_reload_flag
34976reload_cmds=$lt_reload_cmds
34977
cristy3ed852e2009-09-05 21:47:34 +000034978# Commands used to build an old-style archive.
34979old_archive_cmds=$lt_old_archive_cmds
34980
34981# A language specific compiler.
34982CC=$lt_compiler
34983
34984# Is the compiler the GNU compiler?
34985with_gcc=$GCC
34986
34987# Compiler flag to turn off builtin functions.
34988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34989
34990# How to pass a linker flag through the compiler.
34991wl=$lt_lt_prog_compiler_wl
34992
34993# Additional compiler flags for building library objects.
34994pic_flag=$lt_lt_prog_compiler_pic
34995
34996# Compiler flag to prevent dynamic linking.
34997link_static_flag=$lt_lt_prog_compiler_static
34998
34999# Does compiler simultaneously support -c and -o options?
35000compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35001
35002# Whether or not to add -lc for building shared libraries.
35003build_libtool_need_lc=$archive_cmds_need_lc
35004
35005# Whether or not to disallow shared libs when runtime libs are static.
35006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35007
35008# Compiler flag to allow reflexive dlopens.
35009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35010
35011# Compiler flag to generate shared objects directly from archives.
35012whole_archive_flag_spec=$lt_whole_archive_flag_spec
35013
35014# Whether the compiler copes with passing no objects directly.
35015compiler_needs_object=$lt_compiler_needs_object
35016
35017# Create an old-style archive from a shared archive.
35018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35019
35020# Create a temporary old-style archive to link instead of a shared archive.
35021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35022
35023# Commands used to build a shared archive.
35024archive_cmds=$lt_archive_cmds
35025archive_expsym_cmds=$lt_archive_expsym_cmds
35026
35027# Commands used to build a loadable module if different from building
35028# a shared archive.
35029module_cmds=$lt_module_cmds
35030module_expsym_cmds=$lt_module_expsym_cmds
35031
35032# Whether we are building with GNU ld or not.
35033with_gnu_ld=$lt_with_gnu_ld
35034
35035# Flag that allows shared libraries with undefined symbols to be built.
35036allow_undefined_flag=$lt_allow_undefined_flag
35037
35038# Flag that enforces no undefined symbols.
35039no_undefined_flag=$lt_no_undefined_flag
35040
35041# Flag to hardcode \$libdir into a binary during linking.
35042# This must work even if \$libdir does not exist
35043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35044
35045# If ld is used when linking, flag to hardcode \$libdir into a binary
35046# during linking. This must work even if \$libdir does not exist.
35047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35048
35049# Whether we need a single "-rpath" flag with a separated argument.
35050hardcode_libdir_separator=$lt_hardcode_libdir_separator
35051
35052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35053# DIR into the resulting binary.
35054hardcode_direct=$hardcode_direct
35055
35056# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35057# DIR into the resulting binary and the resulting library dependency is
35058# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35059# library is relocated.
35060hardcode_direct_absolute=$hardcode_direct_absolute
35061
35062# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35063# into the resulting binary.
35064hardcode_minus_L=$hardcode_minus_L
35065
35066# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35067# into the resulting binary.
35068hardcode_shlibpath_var=$hardcode_shlibpath_var
35069
35070# Set to "yes" if building a shared library automatically hardcodes DIR
35071# into the library and all subsequent libraries and executables linked
35072# against it.
35073hardcode_automatic=$hardcode_automatic
35074
35075# Set to yes if linker adds runtime paths of dependent libraries
35076# to runtime path list.
35077inherit_rpath=$inherit_rpath
35078
35079# Whether libtool must link a program against all its dependency libraries.
35080link_all_deplibs=$link_all_deplibs
35081
35082# Fix the shell variable \$srcfile for the compiler.
35083fix_srcfile_path=$lt_fix_srcfile_path
35084
35085# Set to "yes" if exported symbols are required.
35086always_export_symbols=$always_export_symbols
35087
35088# The commands to list exported symbols.
35089export_symbols_cmds=$lt_export_symbols_cmds
35090
35091# Symbols that should not be listed in the preloaded symbols.
35092exclude_expsyms=$lt_exclude_expsyms
35093
35094# Symbols that must always be exported.
35095include_expsyms=$lt_include_expsyms
35096
35097# Commands necessary for linking programs (against libraries) with templates.
35098prelink_cmds=$lt_prelink_cmds
35099
35100# Specify filename containing input files.
35101file_list_spec=$lt_file_list_spec
35102
35103# How to hardcode a shared library path into an executable.
35104hardcode_action=$hardcode_action
35105
35106# The directories searched by this compiler when creating a shared library.
35107compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35108
35109# Dependencies to place before and after the objects being linked to
35110# create a shared library.
35111predep_objects=$lt_predep_objects
35112postdep_objects=$lt_postdep_objects
35113predeps=$lt_predeps
35114postdeps=$lt_postdeps
35115
35116# The library search path used internally by the compiler when linking
35117# a shared library.
35118compiler_lib_search_path=$lt_compiler_lib_search_path
35119
35120# ### END LIBTOOL CONFIG
35121
35122_LT_EOF
35123
35124 case $host_os in
35125 aix3*)
35126 cat <<\_LT_EOF >> "$cfgfile"
35127# AIX sometimes has problems with the GCC collect2 program. For some
35128# reason, if we set the COLLECT_NAMES environment variable, the problems
35129# vanish in a puff of smoke.
35130if test "X${COLLECT_NAMES+set}" != Xset; then
35131 COLLECT_NAMES=
35132 export COLLECT_NAMES
35133fi
35134_LT_EOF
35135 ;;
35136 esac
35137
35138
35139ltmain="$ac_aux_dir/ltmain.sh"
35140
35141
35142 # We use sed instead of cat because bash on DJGPP gets confused if
35143 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35144 # text mode, it properly converts lines to CR/LF. This bash problem
35145 # is reportedly fixed, but why not run on old versions too?
35146 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35147 || (rm -f "$cfgfile"; exit 1)
35148
35149 case $xsi_shell in
35150 yes)
35151 cat << \_LT_EOF >> "$cfgfile"
35152
35153# func_dirname file append nondir_replacement
35154# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35155# otherwise set result to NONDIR_REPLACEMENT.
35156func_dirname ()
35157{
35158 case ${1} in
35159 */*) func_dirname_result="${1%/*}${2}" ;;
35160 * ) func_dirname_result="${3}" ;;
35161 esac
35162}
35163
35164# func_basename file
35165func_basename ()
35166{
35167 func_basename_result="${1##*/}"
35168}
35169
35170# func_dirname_and_basename file append nondir_replacement
35171# perform func_basename and func_dirname in a single function
35172# call:
35173# dirname: Compute the dirname of FILE. If nonempty,
35174# add APPEND to the result, otherwise set result
35175# to NONDIR_REPLACEMENT.
35176# value returned in "$func_dirname_result"
35177# basename: Compute filename of FILE.
35178# value retuned in "$func_basename_result"
35179# Implementation must be kept synchronized with func_dirname
35180# and func_basename. For efficiency, we do not delegate to
35181# those functions but instead duplicate the functionality here.
35182func_dirname_and_basename ()
35183{
35184 case ${1} in
35185 */*) func_dirname_result="${1%/*}${2}" ;;
35186 * ) func_dirname_result="${3}" ;;
35187 esac
35188 func_basename_result="${1##*/}"
35189}
35190
35191# func_stripname prefix suffix name
35192# strip PREFIX and SUFFIX off of NAME.
35193# PREFIX and SUFFIX must not contain globbing or regex special
35194# characters, hashes, percent signs, but SUFFIX may contain a leading
35195# dot (in which case that matches only a dot).
35196func_stripname ()
35197{
35198 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35199 # positional parameters, so assign one to ordinary parameter first.
35200 func_stripname_result=${3}
35201 func_stripname_result=${func_stripname_result#"${1}"}
35202 func_stripname_result=${func_stripname_result%"${2}"}
35203}
35204
35205# func_opt_split
35206func_opt_split ()
35207{
35208 func_opt_split_opt=${1%%=*}
35209 func_opt_split_arg=${1#*=}
35210}
35211
35212# func_lo2o object
35213func_lo2o ()
35214{
35215 case ${1} in
35216 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35217 *) func_lo2o_result=${1} ;;
35218 esac
35219}
35220
35221# func_xform libobj-or-source
35222func_xform ()
35223{
35224 func_xform_result=${1%.*}.lo
35225}
35226
35227# func_arith arithmetic-term...
35228func_arith ()
35229{
35230 func_arith_result=$(( $* ))
35231}
35232
35233# func_len string
35234# STRING may not start with a hyphen.
35235func_len ()
35236{
35237 func_len_result=${#1}
35238}
35239
35240_LT_EOF
35241 ;;
35242 *) # Bourne compatible functions.
35243 cat << \_LT_EOF >> "$cfgfile"
35244
35245# func_dirname file append nondir_replacement
35246# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35247# otherwise set result to NONDIR_REPLACEMENT.
35248func_dirname ()
35249{
35250 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035251 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035252 if test "X$func_dirname_result" = "X${1}"; then
35253 func_dirname_result="${3}"
35254 else
35255 func_dirname_result="$func_dirname_result${2}"
35256 fi
35257}
35258
35259# func_basename file
35260func_basename ()
35261{
cristyfd9dcd42010-08-08 18:07:02 +000035262 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035263}
35264
35265
35266# func_stripname prefix suffix name
35267# strip PREFIX and SUFFIX off of NAME.
35268# PREFIX and SUFFIX must not contain globbing or regex special
35269# characters, hashes, percent signs, but SUFFIX may contain a leading
35270# dot (in which case that matches only a dot).
35271# func_strip_suffix prefix name
35272func_stripname ()
35273{
35274 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035275 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35276 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035277 esac
35278}
35279
35280# sed scripts:
35281my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35282my_sed_long_arg='1s/^-[^=]*=//'
35283
35284# func_opt_split
35285func_opt_split ()
35286{
cristyfd9dcd42010-08-08 18:07:02 +000035287 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35288 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035289}
35290
35291# func_lo2o object
35292func_lo2o ()
35293{
cristyfd9dcd42010-08-08 18:07:02 +000035294 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035295}
35296
35297# func_xform libobj-or-source
35298func_xform ()
35299{
cristyfd9dcd42010-08-08 18:07:02 +000035300 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035301}
35302
35303# func_arith arithmetic-term...
35304func_arith ()
35305{
35306 func_arith_result=`expr "$@"`
35307}
35308
35309# func_len string
35310# STRING may not start with a hyphen.
35311func_len ()
35312{
35313 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35314}
35315
35316_LT_EOF
35317esac
35318
35319case $lt_shell_append in
35320 yes)
35321 cat << \_LT_EOF >> "$cfgfile"
35322
35323# func_append var value
35324# Append VALUE to the end of shell variable VAR.
35325func_append ()
35326{
35327 eval "$1+=\$2"
35328}
35329_LT_EOF
35330 ;;
35331 *)
35332 cat << \_LT_EOF >> "$cfgfile"
35333
35334# func_append var value
35335# Append VALUE to the end of shell variable VAR.
35336func_append ()
35337{
35338 eval "$1=\$$1\$2"
35339}
35340
35341_LT_EOF
35342 ;;
35343 esac
35344
35345
35346 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35347 || (rm -f "$cfgfile"; exit 1)
35348
35349 mv -f "$cfgfile" "$ofile" ||
35350 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35351 chmod +x "$ofile"
35352
35353
35354 cat <<_LT_EOF >> "$ofile"
35355
35356# ### BEGIN LIBTOOL TAG CONFIG: CXX
35357
35358# The linker used to build libraries.
35359LD=$lt_LD_CXX
35360
cristyfd9dcd42010-08-08 18:07:02 +000035361# How to create reloadable object files.
35362reload_flag=$lt_reload_flag_CXX
35363reload_cmds=$lt_reload_cmds_CXX
35364
cristy3ed852e2009-09-05 21:47:34 +000035365# Commands used to build an old-style archive.
35366old_archive_cmds=$lt_old_archive_cmds_CXX
35367
35368# A language specific compiler.
35369CC=$lt_compiler_CXX
35370
35371# Is the compiler the GNU compiler?
35372with_gcc=$GCC_CXX
35373
35374# Compiler flag to turn off builtin functions.
35375no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35376
35377# How to pass a linker flag through the compiler.
35378wl=$lt_lt_prog_compiler_wl_CXX
35379
35380# Additional compiler flags for building library objects.
35381pic_flag=$lt_lt_prog_compiler_pic_CXX
35382
35383# Compiler flag to prevent dynamic linking.
35384link_static_flag=$lt_lt_prog_compiler_static_CXX
35385
35386# Does compiler simultaneously support -c and -o options?
35387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35388
35389# Whether or not to add -lc for building shared libraries.
35390build_libtool_need_lc=$archive_cmds_need_lc_CXX
35391
35392# Whether or not to disallow shared libs when runtime libs are static.
35393allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35394
35395# Compiler flag to allow reflexive dlopens.
35396export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35397
35398# Compiler flag to generate shared objects directly from archives.
35399whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35400
35401# Whether the compiler copes with passing no objects directly.
35402compiler_needs_object=$lt_compiler_needs_object_CXX
35403
35404# Create an old-style archive from a shared archive.
35405old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35406
35407# Create a temporary old-style archive to link instead of a shared archive.
35408old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35409
35410# Commands used to build a shared archive.
35411archive_cmds=$lt_archive_cmds_CXX
35412archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35413
35414# Commands used to build a loadable module if different from building
35415# a shared archive.
35416module_cmds=$lt_module_cmds_CXX
35417module_expsym_cmds=$lt_module_expsym_cmds_CXX
35418
35419# Whether we are building with GNU ld or not.
35420with_gnu_ld=$lt_with_gnu_ld_CXX
35421
35422# Flag that allows shared libraries with undefined symbols to be built.
35423allow_undefined_flag=$lt_allow_undefined_flag_CXX
35424
35425# Flag that enforces no undefined symbols.
35426no_undefined_flag=$lt_no_undefined_flag_CXX
35427
35428# Flag to hardcode \$libdir into a binary during linking.
35429# This must work even if \$libdir does not exist
35430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35431
35432# If ld is used when linking, flag to hardcode \$libdir into a binary
35433# during linking. This must work even if \$libdir does not exist.
35434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35435
35436# Whether we need a single "-rpath" flag with a separated argument.
35437hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35438
35439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35440# DIR into the resulting binary.
35441hardcode_direct=$hardcode_direct_CXX
35442
35443# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35444# DIR into the resulting binary and the resulting library dependency is
35445# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35446# library is relocated.
35447hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35448
35449# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35450# into the resulting binary.
35451hardcode_minus_L=$hardcode_minus_L_CXX
35452
35453# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35454# into the resulting binary.
35455hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35456
35457# Set to "yes" if building a shared library automatically hardcodes DIR
35458# into the library and all subsequent libraries and executables linked
35459# against it.
35460hardcode_automatic=$hardcode_automatic_CXX
35461
35462# Set to yes if linker adds runtime paths of dependent libraries
35463# to runtime path list.
35464inherit_rpath=$inherit_rpath_CXX
35465
35466# Whether libtool must link a program against all its dependency libraries.
35467link_all_deplibs=$link_all_deplibs_CXX
35468
35469# Fix the shell variable \$srcfile for the compiler.
35470fix_srcfile_path=$lt_fix_srcfile_path_CXX
35471
35472# Set to "yes" if exported symbols are required.
35473always_export_symbols=$always_export_symbols_CXX
35474
35475# The commands to list exported symbols.
35476export_symbols_cmds=$lt_export_symbols_cmds_CXX
35477
35478# Symbols that should not be listed in the preloaded symbols.
35479exclude_expsyms=$lt_exclude_expsyms_CXX
35480
35481# Symbols that must always be exported.
35482include_expsyms=$lt_include_expsyms_CXX
35483
35484# Commands necessary for linking programs (against libraries) with templates.
35485prelink_cmds=$lt_prelink_cmds_CXX
35486
35487# Specify filename containing input files.
35488file_list_spec=$lt_file_list_spec_CXX
35489
35490# How to hardcode a shared library path into an executable.
35491hardcode_action=$hardcode_action_CXX
35492
35493# The directories searched by this compiler when creating a shared library.
35494compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35495
35496# Dependencies to place before and after the objects being linked to
35497# create a shared library.
35498predep_objects=$lt_predep_objects_CXX
35499postdep_objects=$lt_postdep_objects_CXX
35500predeps=$lt_predeps_CXX
35501postdeps=$lt_postdeps_CXX
35502
35503# The library search path used internally by the compiler when linking
35504# a shared library.
35505compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35506
35507# ### END LIBTOOL TAG CONFIG: CXX
35508_LT_EOF
35509
35510 ;;
35511 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35512 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35513 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35514 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35515 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35516 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35517
35518 esac
35519done # for ac_tag
35520
35521
cristy8b350f62009-11-15 23:12:43 +000035522as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035523_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035524ac_clean_files=$ac_clean_files_save
35525
35526test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035527 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035528
35529
35530# configure is writing to config.log, and then calls config.status.
35531# config.status does its own redirection, appending to config.log.
35532# Unfortunately, on DOS this fails, as config.log is still kept open
35533# by configure, so config.status won't be able to write to it; its
35534# output is simply discarded. So we exec the FD to /dev/null,
35535# effectively closing config.log, so it can be properly (re)opened and
35536# appended to by config.status. When coming back to configure, we
35537# need to make the FD available again.
35538if test "$no_create" != yes; then
35539 ac_cs_success=:
35540 ac_config_status_args=
35541 test "$silent" = yes &&
35542 ac_config_status_args="$ac_config_status_args --quiet"
35543 exec 5>/dev/null
35544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35545 exec 5>>config.log
35546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35547 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035548 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035549fi
35550if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035552$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35553fi
35554
35555
35556rm -f magick-version
35557
cristy430a7312010-01-21 20:44:04 +000035558result_dejavu_font_dir='none'
35559if test "${dejavu_font_dir}x" != 'x'; then
35560 result_dejavu_font_dir=$dejavu_font_dir
35561fi
35562
cristy3ed852e2009-09-05 21:47:34 +000035563result_ghostscript_font_dir='none'
35564if test "${ghostscript_font_dir}x" != 'x'; then
35565 result_ghostscript_font_dir=$ghostscript_font_dir
35566fi
35567
35568result_windows_font_dir='none'
35569if test "${windows_font_dir}x" != 'x'; then
35570 result_windows_font_dir=${windows_font_dir}
35571fi
35572
cristy8b350f62009-11-15 23:12:43 +000035573{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035574ImageMagick is configured as follows. Please verify that this configuration
35575matches your expectations.
35576
35577Host system type: $host
35578Build system type: $build
35579
35580 Option Value
35581-------------------------------------------------------------------------------
35582Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35583Static libraries --enable-static=$enable_static $libtool_build_static_libs
35584Module support --with-modules=$with_modules $with_modules
35585GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35586Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35587High Dynamic Range Imagery
35588 --enable-hdri=$enable_hdri $enable_hdri
35589
35590Delegate Configuration:
35591BZLIB --with-bzlib=$with_bzlib $have_bzlib
35592Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035593Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035594DJVU --with-djvu=$with_djvu $have_djvu
35595DPS --with-dps=$with_dps $have_dps
35596FFTW --with-fftw=$with_fftw $have_fftw
35597FlashPIX --with-fpx=$with_fpx $have_fpx
35598FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35599FreeType --with-freetype=$with_freetype $have_freetype
35600GhostPCL None $PCLDelegate ($PCLVersion)
35601GhostXPS None $XPSDelegate ($XPSVersion)
35602Ghostscript None $PSDelegate ($GSVersion)
35603Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35604Ghostscript lib --with-gslib=$with_gslib $have_gslib
35605Graphviz --with-gvc=$with_gvc $have_gvc
35606JBIG --with-jbig=$with_jbig $have_jbig
35607JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35608JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035609LCMS v1 --with-lcms=$with_lcms $have_lcms
35610LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035611LQR --with-lqr=$with_lqr $have_lqr
35612Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35613OpenEXR --with-openexr=$with_openexr $have_openexr
35614PERL --with-perl=$with_perl $have_perl
35615PNG --with-png=$with_png $have_png
35616RSVG --with-rsvg=$with_rsvg $have_rsvg
35617TIFF --with-tiff=$with_tiff $have_tiff
35618Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35619WMF --with-wmf=$with_wmf $have_wmf
35620X11 --with-x=$with_x $have_x
35621XML --with-xml=$with_xml $have_xml
35622ZLIB --with-zlib=$with_zlib $have_zlib
35623
35624X11 Configuration:
35625 X_CFLAGS = $X_CFLAGS
35626 X_PRE_LIBS = $X_PRE_LIBS
35627 X_LIBS = $X_LIBS
35628 X_EXTRA_LIBS = $X_EXTRA_LIBS
35629
35630Options used to compile and link:
35631 PREFIX = $PREFIX_DIR
35632 EXEC-PREFIX = $EXEC_PREFIX_DIR
35633 VERSION = $PACKAGE_VERSION
35634 CC = $CC
35635 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035636 CPPFLAGS = $MAGICK_CPPFLAGS
35637 PCFLAGS = $MAGICK_PCFLAGS
35638 DEFS = $DEFS
35639 LDFLAGS = $LDFLAGS
35640 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35641 LIBS = $MAGICK_LIBS
35642 CXX = $CXX
35643 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035644 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035645" >&5
35646$as_echo "
35647ImageMagick is configured as follows. Please verify that this configuration
35648matches your expectations.
35649
35650Host system type: $host
35651Build system type: $build
35652
35653 Option Value
35654-------------------------------------------------------------------------------
35655Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35656Static libraries --enable-static=$enable_static $libtool_build_static_libs
35657Module support --with-modules=$with_modules $with_modules
35658GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35659Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35660High Dynamic Range Imagery
35661 --enable-hdri=$enable_hdri $enable_hdri
35662
35663Delegate Configuration:
35664BZLIB --with-bzlib=$with_bzlib $have_bzlib
35665Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035666Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035667DJVU --with-djvu=$with_djvu $have_djvu
35668DPS --with-dps=$with_dps $have_dps
35669FFTW --with-fftw=$with_fftw $have_fftw
35670FlashPIX --with-fpx=$with_fpx $have_fpx
35671FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35672FreeType --with-freetype=$with_freetype $have_freetype
35673GhostPCL None $PCLDelegate ($PCLVersion)
35674GhostXPS None $XPSDelegate ($XPSVersion)
35675Ghostscript None $PSDelegate ($GSVersion)
35676Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35677Ghostscript lib --with-gslib=$with_gslib $have_gslib
35678Graphviz --with-gvc=$with_gvc $have_gvc
35679JBIG --with-jbig=$with_jbig $have_jbig
35680JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35681JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035682LCMS v1 --with-lcms=$with_lcms $have_lcms
35683LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035684LQR --with-lqr=$with_lqr $have_lqr
35685Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35686OpenEXR --with-openexr=$with_openexr $have_openexr
35687PERL --with-perl=$with_perl $have_perl
35688PNG --with-png=$with_png $have_png
35689RSVG --with-rsvg=$with_rsvg $have_rsvg
35690TIFF --with-tiff=$with_tiff $have_tiff
35691Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35692WMF --with-wmf=$with_wmf $have_wmf
35693X11 --with-x=$with_x $have_x
35694XML --with-xml=$with_xml $have_xml
35695ZLIB --with-zlib=$with_zlib $have_zlib
35696
35697X11 Configuration:
35698 X_CFLAGS = $X_CFLAGS
35699 X_PRE_LIBS = $X_PRE_LIBS
35700 X_LIBS = $X_LIBS
35701 X_EXTRA_LIBS = $X_EXTRA_LIBS
35702
35703Options used to compile and link:
35704 PREFIX = $PREFIX_DIR
35705 EXEC-PREFIX = $EXEC_PREFIX_DIR
35706 VERSION = $PACKAGE_VERSION
35707 CC = $CC
35708 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035709 CPPFLAGS = $MAGICK_CPPFLAGS
35710 PCFLAGS = $MAGICK_PCFLAGS
35711 DEFS = $DEFS
35712 LDFLAGS = $LDFLAGS
35713 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35714 LIBS = $MAGICK_LIBS
35715 CXX = $CXX
35716 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035717 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035718" >&6; }