blob: 35eecccf82dbbebdfea9b64590932bd43e744faa [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy56225732010-09-04 23:44:25 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.4.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristyfd9dcd42010-08-08 18:07:02 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristyfd9dcd42010-08-08 18:07:02 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
cristyfd9dcd42010-08-08 18:07:02 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristyfd9dcd42010-08-08 18:07:02 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristyfd9dcd42010-08-08 18:07:02 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristyfd9dcd42010-08-08 18:07:02 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
cristyfd9dcd42010-08-08 18:07:02 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000569PACKAGE_VERSION='6.6.4'
570PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
657ZIP
658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
660P7ZIP
661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000676UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000677TXTDelegate
678SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000679RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000680RMDelegate
681RLEEncodeDelegate
682PSDelegate
683POVDelegate
684PGPDecodeDelegate
685PCLDelegate
686MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000687MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688MPEGEncodeDelegate
689MPEGDecodeDelegate
690MANDelegate
691LaunchDelegate
692LZWEncodeDelegate
693LZWDecodeDelegate
694LPRDelegate
695LPDelegate
696ILBMEncodeDelegate
697ILBMDecodeDelegate
698HTMLDecodeDelegate
699HPGLDecodeDelegate
700HDRDecodeDelegate
701GnuplotDecodeDelegate
702MogrifyDelegate
703DisplayDelegate
704ConvertDelegate
705FIGDecodeDelegate
706EditorDelegate
707EchoDelegate
708DVIDecodeDelegate
709GVCDecodeDelegate
710DNGDecodeDelegate
711CatDelegate
712CGMDecodeDelegate
713BrowseDelegate
714BZIPDelegate
715BlenderDecodeDelegate
716AVIDecodeDelegate
717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
734TIFF_LIBS
735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
750OPENEXR_LIBS
751OPENEXR_CFLAGS
752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
759JP2_LIBS
760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
762JPEG_LIBS
763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
765JBIG_LIBS
766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
775FREETYPE_LIBS
776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
778freetype_config
779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
786FFTW_LIBS
787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
789DJVU_LIBS
790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
792DPS_LIBS
793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
803XEXT_LIBS
804X11_LIBS
805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
817HasUMEM_FALSE
818HasUMEM_TRUE
819THREAD_LIBS
820GOMP_LIBS
821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
845MAGICK_HDRI
846DLLDFLAGS
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
871LIBTOOL_DEPS
872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000878RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
887LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000888CL_LIBS
889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
891PTHREAD_CFLAGS
892PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000893PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
904GDI32_LIBS
905PKG_CONFIG
906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
908FGREP
cristy3ed852e2009-09-05 21:47:34 +0000909SED
cristy95646052009-11-28 23:05:30 +0000910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy3ed852e2009-09-05 21:47:34 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
1052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001055with_dmalloc
1056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
1062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
1071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
1079enable_maintainer_mode
1080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
1135PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
1152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001260 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"enable_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=no ;;
1271
1272 -docdir | --docdir | --docdi | --doc | --do)
1273 ac_prev=docdir ;;
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1276
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278 ac_prev=dvidir ;;
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1281
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1306
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1309 with_gas=yes ;;
1310
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1317
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1322
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 ac_prev=htmldir ;;
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 | --ht=*)
1327 htmldir=$ac_optarg ;;
1328
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1335
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 ac_prev=infodir ;;
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1340
1341 -libdir | --libdir | --libdi | --libd)
1342 ac_prev=libdir ;;
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1345
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1352
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1357
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1364
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 ac_prev=mandir ;;
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1369
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1372 with_fp=no ;;
1373
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1376 no_create=yes ;;
1377
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 no_recursion=yes ;;
1381
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1390
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 ac_prev=prefix ;;
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1395
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1402
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1409
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1426
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 ac_prev=pdfdir ;;
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1431
1432 -psdir | --psdir | --psdi | --psd | --ps)
1433 ac_prev=psdir ;;
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 psdir=$ac_optarg ;;
1436
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 silent=yes ;;
1440
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 ac_prev=sbindir ;;
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 | --sbi=* | --sb=*)
1445 sbindir=$ac_optarg ;;
1446
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1450 | --sha | --sh)
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 | --sha=* | --sh=*)
1456 sharedstatedir=$ac_optarg ;;
1457
1458 -site | --site | --sit)
1459 ac_prev=site ;;
1460 -site=* | --site=* | --sit=*)
1461 site=$ac_optarg ;;
1462
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 ac_prev=srcdir ;;
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1467
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1474
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1479
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 verbose=yes ;;
1482
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1485
1486 -with-* | --with-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001490 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495"with_$ac_useropt"
1496"*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=\$ac_optarg ;;
1501
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=no ;;
1517
1518 --x)
1519 # Obsolete; use --with-x.
1520 with_x=yes ;;
1521
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1528
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1535
cristyfd9dcd42010-08-08 18:07:02 +00001536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001538 ;;
1539
1540 *=*)
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyfd9dcd42010-08-08 18:07:02 +00001545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001546 esac
cristy3ed852e2009-09-05 21:47:34 +00001547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1549
1550 *)
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556 ;;
1557
1558 esac
1559done
1560
1561if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyfd9dcd42010-08-08 18:07:02 +00001563 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1568 no) ;;
cristyfd9dcd42010-08-08 18:07:02 +00001569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571 esac
1572fi
1573
1574# Check all directory arguments for consistency.
1575for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1579do
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1582 case $ac_val in
1583 */ )
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1586 esac
1587 # Be sure to have absolute directory names.
1588 case $ac_val in
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591 esac
cristyfd9dcd42010-08-08 18:07:02 +00001592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001593done
1594
1595# There might be people who depend on the old broken behavior: `$host'
1596# used to hold the argument of --host etc.
1597# FIXME: To remove some day.
1598build=$build_alias
1599host=$host_alias
1600target=$target_alias
1601
1602# FIXME: To remove some day.
1603if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
cristyfd9dcd42010-08-08 18:07:02 +00001606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001608 elif test "x$build_alias" != "x$host_alias"; then
1609 cross_compiling=yes
1610 fi
1611fi
1612
1613ac_tool_prefix=
1614test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616test "$silent" = yes && exec 6>/dev/null
1617
1618
1619ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620ac_ls_di=`ls -di .` &&
1621ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyfd9dcd42010-08-08 18:07:02 +00001622 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001623test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyfd9dcd42010-08-08 18:07:02 +00001624 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001625
1626
1627# Find the source files, if location was not specified.
1628if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636$as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 s//\1/
1639 q
1640 }
1641 /^X\(\/\/\)[^/].*/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)$/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\).*/{
1650 s//\1/
1651 q
1652 }
1653 s/.*/./; q'`
1654 srcdir=$ac_confdir
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1656 srcdir=..
1657 fi
1658else
1659 ac_srcdir_defaulted=no
1660fi
1661if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyfd9dcd42010-08-08 18:07:02 +00001663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001664fi
1665ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666ac_abs_confdir=`(
cristyfd9dcd42010-08-08 18:07:02 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001693\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristyfd9dcd42010-08-08 18:07:02 +00001707 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
1750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
1755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001882 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
1906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001973ImageMagick configure 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +00001974generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001975
cristyfd9dcd42010-08-08 18:07:02 +00001976Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001977This configure script is free software; the Free Software Foundation
1978gives unlimited permission to copy, distribute and modify it.
1979_ACEOF
1980 exit
1981fi
cristy8b350f62009-11-15 23:12:43 +00001982
1983## ------------------------ ##
1984## Autoconf initialization. ##
1985## ------------------------ ##
1986
1987# ac_fn_c_try_compile LINENO
1988# --------------------------
1989# Try to compile conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_compile ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002021 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002022
2023} # ac_fn_c_try_compile
2024
cristy95646052009-11-28 23:05:30 +00002025# ac_fn_c_try_cpp LINENO
2026# ----------------------
2027# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_c_try_cpp ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051else
2052 $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_cpp
2061
cristy8b350f62009-11-15 23:12:43 +00002062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002070 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002073if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002132( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002133## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002134## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002140if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002204if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
2310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002318if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002410 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002456 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002457
2458} # ac_fn_cxx_try_link
2459
cristyfd9dcd42010-08-08 18:07:02 +00002460# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461# ---------------------------------------------
2462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002464ac_fn_c_check_decl ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002472 $as_echo_n "(cached) " >&6
2473else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
cristyfd9dcd42010-08-08 18:07:02 +00002480#ifndef $as_decl_name
2481#ifdef __cplusplus
2482 (void) $as_decl_use;
2483#else
2484 (void) $as_decl_name;
2485#endif
cristy8b350f62009-11-15 23:12:43 +00002486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 eval "$3=yes"
2494else
2495 eval "$3=no"
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_decl
2505
2506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002515if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547 eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_type
2559
cristy92703d82010-04-26 00:18:18 +00002560# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561# ----------------------------------------------------
2562# Tries to find if the field MEMBER exists in type AGGR, after including
2563# INCLUDES, setting cache variable VAR accordingly.
2564ac_fn_c_check_member ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568$as_echo_n "checking for $2.$3... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002569if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002570 $as_echo_n "(cached) " >&6
2571else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h. */
2574$5
2575int
2576main ()
2577{
2578static $2 ac_aggr;
2579if (ac_aggr.$3)
2580return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$5
2591int
2592main ()
2593{
2594static $2 ac_aggr;
2595if (sizeof ac_aggr.$3)
2596return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603else
2604 eval "$4=no"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_member
2616
cristy8b350f62009-11-15 23:12:43 +00002617# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618# --------------------------------------------
2619# Tries to find the compile-time value of EXPR in a program that includes
2620# INCLUDES, setting VAR accordingly. Returns whether the value could be
2621# computed
2622ac_fn_c_compute_int ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$4
2630int
2631main ()
2632{
2633static int test_array [1 - 2 * !(($2) >= 0)];
2634test_array [0] = 0
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_lo=0 ac_mid=0
2642 while :; do
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h. */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650test_array [0] = 0
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2658else
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2661 ac_lo= ac_hi=
2662 break
2663 fi
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670/* end confdefs.h. */
2671$4
2672int
2673main ()
2674{
2675static int test_array [1 - 2 * !(($2) < 0)];
2676test_array [0] = 0
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=-1 ac_mid=-1
2684 while :; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2700else
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2703 ac_lo= ac_hi=
2704 break
2705 fi
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710else
2711 ac_lo= ac_hi=
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716# Binary search between lo and hi bounds.
2717while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid
2734else
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739case $ac_lo in #((
2740?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741'') ac_retval=1 ;;
2742esac
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747static long int longval () { return $2; }
2748static unsigned long int ulongval () { return $2; }
2749#include <stdio.h>
2750#include <stdlib.h>
2751int
2752main ()
2753{
2754
2755 FILE *f = fopen ("conftest.val", "w");
2756 if (! f)
2757 return 1;
2758 if (($2) < 0)
2759 {
2760 long int i = longval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%ld", i);
2764 }
2765 else
2766 {
2767 unsigned long int i = ulongval ();
2768 if (i != ($2))
2769 return 1;
2770 fprintf (f, "%lu", i);
2771 }
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782else
2783 ac_retval=1
2784fi
2785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2787rm -f conftest.val
2788
2789 fi
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002791 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002792
2793} # ac_fn_c_compute_int
2794
2795# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796# ---------------------------------------------------------
2797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798# the include files in INCLUDES and setting the cache variable VAR
2799# accordingly.
2800ac_fn_cxx_check_header_mongrel ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002803 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002806if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002807 $as_echo_n "(cached) " >&6
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812else
2813 # Is the header compilable?
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815$as_echo_n "checking $2 usability... " >&6; }
2816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819#include <$2>
2820_ACEOF
2821if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2823else
2824 ac_header_compiler=no
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828$as_echo "$ac_header_compiler" >&6; }
2829
2830# Is the header present?
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832$as_echo_n "checking $2 presence... " >&6; }
2833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835#include <$2>
2836_ACEOF
2837if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2839else
2840 ac_header_preproc=no
2841fi
2842rm -f conftest.err conftest.$ac_ext
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844$as_echo "$ac_header_preproc" >&6; }
2845
2846# So? What about this header?
2847case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848 yes:no: )
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853 ;;
2854 no:yes:* )
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002865( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002866## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002867## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002868 ) | sed "s/^/$as_me: WARNING: /" >&2
2869 ;;
2870esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002873if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002874 $as_echo_n "(cached) " >&6
2875else
2876 eval "$3=\$ac_header_compiler"
2877fi
2878eval ac_res=\$$3
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881fi
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002885cat >config.log <<_ACEOF
2886This file contains any messages produced by compilers while
2887running configure, to aid debugging if configure makes a mistake.
2888
cristy56225732010-09-04 23:44:25 +00002889It was created by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +00002890generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002891
2892 $ $0 $@
2893
2894_ACEOF
2895exec 5>>config.log
2896{
2897cat <<_ASUNAME
2898## --------- ##
2899## Platform. ##
2900## --------- ##
2901
2902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2910
2911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2918
2919_ASUNAME
2920
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002926 $as_echo "PATH: $as_dir"
2927 done
cristy3ed852e2009-09-05 21:47:34 +00002928IFS=$as_save_IFS
2929
2930} >&5
2931
2932cat >&5 <<_ACEOF
2933
2934
2935## ----------- ##
2936## Core tests. ##
2937## ----------- ##
2938
2939_ACEOF
2940
2941
2942# Keep a trace of the command line.
2943# Strip out --no-create and --no-recursion so they do not pile up.
2944# Strip out --silent because we don't want to record it for future runs.
2945# Also quote any args containing shell meta-characters.
2946# Make two passes to allow for proper duplicate-argument suppression.
2947ac_configure_args=
2948ac_configure_args0=
2949ac_configure_args1=
2950ac_must_keep_next=false
2951for ac_pass in 1 2
2952do
2953 for ac_arg
2954 do
2955 case $ac_arg in
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2959 continue ;;
2960 *\'*)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 esac
2963 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002965 2)
cristy8b350f62009-11-15 23:12:43 +00002966 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2969 else
2970 case $ac_arg in
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 esac
2978 ;;
2979 -* ) ac_must_keep_next=true ;;
2980 esac
2981 fi
cristy8b350f62009-11-15 23:12:43 +00002982 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002983 ;;
2984 esac
2985 done
2986done
cristy8b350f62009-11-15 23:12:43 +00002987{ ac_configure_args0=; unset ac_configure_args0;}
2988{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002989
2990# When interrupted or exit'd, cleanup temporary files, and complete
2991# config.log. We remove comments because anyway the quotes in there
2992# would cause problems or look ugly.
2993# WARNING: Use '\'' to represent an apostrophe within the trap.
2994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
2997 {
2998 echo
2999
cristyfd9dcd42010-08-08 18:07:02 +00003000 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003001## Cache variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003002## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005(
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003017 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033)
3034 echo
3035
cristyfd9dcd42010-08-08 18:07:02 +00003036 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003038## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003039 echo
3040 for ac_var in $ac_subst_vars
3041 do
3042 eval ac_val=\$$ac_var
3043 case $ac_val in
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 esac
3046 $as_echo "$ac_var='\''$ac_val'\''"
3047 done | sort
3048 echo
3049
3050 if test -n "$ac_subst_files"; then
cristyfd9dcd42010-08-08 18:07:02 +00003051 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003052## File substitutions. ##
cristyfd9dcd42010-08-08 18:07:02 +00003053## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003054 echo
3055 for ac_var in $ac_subst_files
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064 fi
3065
3066 if test -s confdefs.h; then
cristyfd9dcd42010-08-08 18:07:02 +00003067 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003068## confdefs.h. ##
cristyfd9dcd42010-08-08 18:07:02 +00003069## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003070 echo
3071 cat confdefs.h
3072 echo
3073 fi
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3077 } >&5
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080 exit $exit_status
3081' 0
3082for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003084done
3085ac_signal=0
3086
3087# confdefs.h avoids OS command line length limits that DEFS can exceed.
3088rm -f -r conftest* confdefs.h
3089
cristy8b350f62009-11-15 23:12:43 +00003090$as_echo "/* confdefs.h */" > confdefs.h
3091
cristy3ed852e2009-09-05 21:47:34 +00003092# Predefined preprocessor variables.
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_NAME "$PACKAGE_NAME"
3096_ACEOF
3097
cristy3ed852e2009-09-05 21:47:34 +00003098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100_ACEOF
3101
cristy3ed852e2009-09-05 21:47:34 +00003102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_VERSION "$PACKAGE_VERSION"
3104_ACEOF
3105
cristy3ed852e2009-09-05 21:47:34 +00003106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_STRING "$PACKAGE_STRING"
3108_ACEOF
3109
cristy3ed852e2009-09-05 21:47:34 +00003110cat >>confdefs.h <<_ACEOF
3111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112_ACEOF
3113
cristy8b350f62009-11-15 23:12:43 +00003114cat >>confdefs.h <<_ACEOF
3115#define PACKAGE_URL "$PACKAGE_URL"
3116_ACEOF
3117
cristy3ed852e2009-09-05 21:47:34 +00003118
3119# Let the site file select an alternate cache file if it wants to.
3120# Prefer an explicitly selected file to automatically selected ones.
3121ac_site_file1=NONE
3122ac_site_file2=NONE
3123if test -n "$CONFIG_SITE"; then
cristyfd9dcd42010-08-08 18:07:02 +00003124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3129 esac
cristy3ed852e2009-09-05 21:47:34 +00003130elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3133else
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3136fi
3137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138do
3139 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
cristyfd9dcd42010-08-08 18:07:02 +00003144 . "$ac_site_file" \
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "failed to load site script $ac_site_file
3148See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003149 fi
3150done
3151
3152if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003157$as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3162 fi
3163else
cristy8b350f62009-11-15 23:12:43 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003165$as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3167fi
3168
cristycd4c5312009-11-22 01:19:08 +00003169as_fn_append ac_header_list " stdlib.h"
3170as_fn_append ac_header_list " unistd.h"
3171as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003172# Check that the precious variables saved in the cache have kept the same
3173# value.
3174ac_cache_corrupted=false
3175for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3181 set,)
cristy8b350f62009-11-15 23:12:43 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,set)
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3189 ,);;
3190 *)
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3199 else
cristy8b350f62009-11-15 23:12:43 +00003200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 fi;;
3209 esac
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3212 case $ac_new_val in
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3215 esac
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 esac
3220 fi
3221done
3222if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00003227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003228fi
cristy8b350f62009-11-15 23:12:43 +00003229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241ac_aux_dir=
3242for ac_dir in config "$srcdir"/config; do
cristyfd9dcd42010-08-08 18:07:02 +00003243 if test -f "$ac_dir/install-sh"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3246 break
3247 elif test -f "$ac_dir/install.sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3250 break
3251 elif test -f "$ac_dir/shtool"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3254 break
3255 fi
cristy3ed852e2009-09-05 21:47:34 +00003256done
3257if test -z "$ac_aux_dir"; then
cristyfd9dcd42010-08-08 18:07:02 +00003258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003259fi
3260
3261# These three variables are undocumented and unsupported,
3262# and are intended to be withdrawn in a future Autoconf release.
3263# They can cause serious problems if a builder's source tree is in a directory
3264# whose full name contains unusual characters.
3265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3268
3269
3270
3271
3272ac_config_headers="$ac_config_headers config/config.h"
3273
3274ac_config_commands="$ac_config_commands magick/magick-config.h"
3275
cristy430a7312010-01-21 20:44:04 +00003276ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003277
3278
3279#
3280# Save initial user-tunable values
3281#
3282USER_LIBS=$LIBS
3283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284 eval isset=\${$var+set}
3285 if test "$isset" = 'set'; then
3286 eval val=$`echo $var`
3287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3288 fi
3289done
3290
3291
3292CONFIGURE_ARGS="$0 ${ac_configure_args}"
3293
3294
3295# Source file containing package/library versioning information.
3296. ${srcdir}/version.sh
3297
cristy15a88782010-01-31 23:24:49 +00003298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyfd9dcd42010-08-08 18:07:02 +00003301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302
cristy8b350f62009-11-15 23:12:43 +00003303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003304$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003305if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
cristyfd9dcd42010-08-08 18:07:02 +00003312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003315
3316fi
cristy8b350f62009-11-15 23:12:43 +00003317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003321*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003339if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003347fi
3348
3349fi
cristy8b350f62009-11-15 23:12:43 +00003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003354*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 if test "x$target_alias" = x; then
3376 ac_cv_target=$ac_cv_host
3377else
3378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380fi
3381
3382fi
cristy8b350f62009-11-15 23:12:43 +00003383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$ac_cv_target" >&6; }
3385case $ac_cv_target in
3386*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003387*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003388esac
3389target=$ac_cv_target
3390ac_save_IFS=$IFS; IFS='-'
3391set x $ac_cv_target
3392shift
3393target_cpu=$1
3394target_vendor=$2
3395shift; shift
3396# Remember, the first character of IFS is used to create $*,
3397# except with old shells:
3398target_os=$*
3399IFS=$ac_save_IFS
3400case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401
3402
3403# The aliases save the names the user supplied, while $host etc.
3404# will get canonicalized.
3405test -n "$target_alias" &&
3406 test "$program_prefix$program_suffix$program_transform_name" = \
3407 NONENONEs,x,x, &&
3408 program_prefix=${target_alias}-
3409
cristy837d6dc2010-02-27 01:16:57 +00003410
3411
3412
3413
cristy3225a072010-04-17 01:47:28 +00003414MAGICK_TARGET_CPU=$target_cpu
3415
3416
3417MAGICK_TARGET_VENDOR=$target_vendor
3418
3419
3420MAGICK_TARGET_OS=$target_os
3421
3422
cristy3ed852e2009-09-05 21:47:34 +00003423# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003424MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3425
3426MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3427
cristy3ed852e2009-09-05 21:47:34 +00003428
3429
3430# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo_n "checking whether build environment is sane... " >&6; }
3433# Just in case
3434sleep 1
3435echo timestamp > conftest.file
3436# Reject unsafe characters in $srcdir or the absolute working directory
3437# name. Accept space and tab only in the latter.
3438am_lf='
3439'
3440case `pwd` in
3441 *[\\\"\#\$\&\'\`$am_lf]*)
cristyfd9dcd42010-08-08 18:07:02 +00003442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003443esac
3444case $srcdir in
3445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyfd9dcd42010-08-08 18:07:02 +00003446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448
3449# Do `set' in a subshell so we don't clobber the current shell's
3450# arguments. Must try -L first in case configure is actually a
3451# symlink; some systems play weird games with the mod time of symlinks
3452# (eg FreeBSD returns the mod time of the symlink's containing
3453# directory).
3454if (
3455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456 if test "$*" = "X"; then
3457 # -L didn't work.
3458 set X `ls -t "$srcdir/configure" conftest.file`
3459 fi
3460 rm -f conftest.file
3461 if test "$*" != "X $srcdir/configure conftest.file" \
3462 && test "$*" != "X conftest.file $srcdir/configure"; then
3463
3464 # If neither matched, then we have a broken ls. This can happen
3465 # if, for instance, CONFIG_SHELL is bash and it inherits a
3466 # broken ls alias from the environment. This has actually
3467 # happened. Such a system could not be considered "sane".
cristyfd9dcd42010-08-08 18:07:02 +00003468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003469alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003470 fi
3471
3472 test "$2" = conftest.file
3473 )
3474then
3475 # Ok.
3476 :
3477else
cristyfd9dcd42010-08-08 18:07:02 +00003478 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003479Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "yes" >&6; }
3483
3484am__api_version='1.11'
3485
3486# Find a good install program. We prefer a C program (faster),
3487# so one script is as good as another. But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497# OS/2's system install, which has a completely different semantic
3498# ./install, which can be erroneously created by make from ./install.sh.
3499# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking for a BSD-compatible install... " >&6; }
3502if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003511 # Account for people who put trailing slashes in PATH elements.
3512case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3527 :
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
3532 else
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550esac
3551
cristy8b350f62009-11-15 23:12:43 +00003552 done
cristy3ed852e2009-09-05 21:47:34 +00003553IFS=$as_save_IFS
3554
3555rm -rf conftest.one conftest.two conftest.dir
3556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3560 else
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3566 fi
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$INSTALL" >&6; }
3570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579test "$program_prefix" != NONE &&
3580 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584# Double any \ or $.
3585# By default was `s,x,x', remove it if useless.
3586ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589# expand $ac_aux_dir to an absolute path
3590am_aux_dir=`cd $ac_aux_dir && pwd`
3591
3592if test x"${MISSING+set}" != xset; then
3593 case $am_aux_dir in
3594 *\ * | *\ *)
3595 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596 *)
3597 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598 esac
3599fi
3600# Use eval to expand $SHELL
3601if eval "$MISSING --run true"; then
3602 am_missing_run="$MISSING --run "
3603else
3604 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3607fi
3608
3609if test x"${install_sh}" != xset; then
3610 case $am_aux_dir in
3611 *\ * | *\ *)
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613 *)
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3615 esac
3616fi
3617
3618# Installed binaries are usually stripped using `strip' when the user
3619# run `make install-strip'. However `strip' might not be the right
3620# tool to use in cross-compilation environments, therefore Automake
3621# will honor the `STRIP' environment variable to overrule this program.
3622if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$STRIP"; then
3632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003643 break 2
3644 fi
3645done
cristy8b350f62009-11-15 23:12:43 +00003646 done
cristy3ed852e2009-09-05 21:47:34 +00003647IFS=$as_save_IFS
3648
3649fi
3650fi
3651STRIP=$ac_cv_prog_STRIP
3652if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003654$as_echo "$STRIP" >&6; }
3655else
cristy8b350f62009-11-15 23:12:43 +00003656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003657$as_echo "no" >&6; }
3658fi
3659
3660
3661fi
3662if test -z "$ac_cv_prog_STRIP"; then
3663 ac_ct_STRIP=$STRIP
3664 # Extract the first word of "strip", so it can be a program name with args.
3665set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$ac_ct_STRIP"; then
3672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$ac_ct_STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700 if test "x$ac_ct_STRIP" = x; then
3701 STRIP=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
cristy8b350f62009-11-15 23:12:43 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709 STRIP=$ac_ct_STRIP
3710 fi
3711else
3712 STRIP="$ac_cv_prog_STRIP"
3713fi
3714
3715fi
3716INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
cristy8b350f62009-11-15 23:12:43 +00003718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003719$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003721 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003722 $as_echo_n "(cached) " >&6
3723else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003729 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733 'mkdir (GNU coreutils) '* | \
3734 'mkdir (coreutils) '* | \
3735 'mkdir (fileutils) '4.1*)
3736 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737 break 3;;
3738 esac
3739 done
3740 done
cristy8b350f62009-11-15 23:12:43 +00003741 done
cristy3ed852e2009-09-05 21:47:34 +00003742IFS=$as_save_IFS
3743
3744fi
3745
cristycd4c5312009-11-22 01:19:08 +00003746 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003747 if test "${ac_cv_path_mkdir+set}" = set; then
3748 MKDIR_P="$ac_cv_path_mkdir -p"
3749 else
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for MKDIR_P within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003754 MKDIR_P="$ac_install_sh -d"
3755 fi
3756fi
cristy8b350f62009-11-15 23:12:43 +00003757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003758$as_echo "$MKDIR_P" >&6; }
3759
3760mkdir_p="$MKDIR_P"
3761case $mkdir_p in
3762 [\\/$]* | ?:[\\/]*) ;;
3763 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3764esac
3765
3766for ac_prog in gawk mawk nawk awk
3767do
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003772if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003773 $as_echo_n "(cached) " >&6
3774else
3775 if test -n "$AWK"; then
3776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003787 break 2
3788 fi
3789done
cristy8b350f62009-11-15 23:12:43 +00003790 done
cristy3ed852e2009-09-05 21:47:34 +00003791IFS=$as_save_IFS
3792
3793fi
3794fi
3795AWK=$ac_cv_prog_AWK
3796if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$AWK" >&6; }
3799else
cristy8b350f62009-11-15 23:12:43 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003801$as_echo "no" >&6; }
3802fi
3803
3804
3805 test -n "$AWK" && break
3806done
3807
cristy8b350f62009-11-15 23:12:43 +00003808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3810set x ${MAKE-make}
3811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00003812if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 cat >conftest.make <<\_ACEOF
3816SHELL = /bin/sh
3817all:
3818 @echo '@@@%%%=$(MAKE)=@@@%%%'
3819_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00003820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003821case `${MAKE-make} -f conftest.make 2>/dev/null` in
3822 *@@@%%%=?*=@@@%%%*)
3823 eval ac_cv_prog_make_${ac_make}_set=yes;;
3824 *)
3825 eval ac_cv_prog_make_${ac_make}_set=no;;
3826esac
3827rm -f conftest.make
3828fi
3829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "yes" >&6; }
3832 SET_MAKE=
3833else
cristy8b350f62009-11-15 23:12:43 +00003834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835$as_echo "no" >&6; }
3836 SET_MAKE="MAKE=${MAKE-make}"
3837fi
3838
3839rm -rf .tst 2>/dev/null
3840mkdir .tst 2>/dev/null
3841if test -d .tst; then
3842 am__leading_dot=.
3843else
3844 am__leading_dot=_
3845fi
3846rmdir .tst 2>/dev/null
3847
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
cristyfd9dcd42010-08-08 18:07:02 +00003854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003855 fi
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003870 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003871
3872
3873# Some tools Automake needs.
3874
3875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889# We need awk for the "check" target. The system "awk" is bad on
3890# some platforms.
3891# Always define AMTAR for backward compatibility.
3892
3893AMTAR=${AMTAR-"${am_missing_run}tar"}
3894
3895am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3896
3897
3898
3899
3900
3901
3902# Enable support for silent build rules
3903# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003904if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003905 enableval=$enable_silent_rules;
3906fi
3907
3908case $enable_silent_rules in
3909yes) AM_DEFAULT_VERBOSITY=0;;
3910no) AM_DEFAULT_VERBOSITY=1;;
3911*) AM_DEFAULT_VERBOSITY=0;;
3912esac
3913AM_BACKSLASH='\'
3914
3915
3916MAGICK_LIB_VERSION="0x"
3917if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3919fi
3920MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3923fi
3924MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3927fi
3928MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3929
3930
3931# Definition used to define MagickLibVersionText in version.h
3932MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3933
3934
3935# Definition used to define MagickLibVersionNumber in version.h
3936MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3937
3938
3939# Regenerate config.status if ChangeLog or version.sh is updated.
3940CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3941
3942
3943PERLMAINCC=$CC
3944
3945MAGICK_CFLAGS=''
3946MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947MAGICK_PCFLAGS=$CPPFLAGS_USER
3948MAGICK_LDFLAGS=''
3949MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003950MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003951
3952#
3953# Evaluate shell variable equivalents to Makefile directory variables
3954#
3955if test "x$prefix" = xNONE; then
3956 prefix=$ac_default_prefix
3957fi
3958# Let make expand exec_prefix.
3959if test "x$exec_prefix" = xNONE; then
3960 exec_prefix='${prefix}'
3961fi
3962
3963#
3964eval "eval PREFIX_DIR=${prefix}"
3965
3966eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3967
3968eval "eval BIN_DIR=$bindir"
3969
3970eval "eval SBIN_DIR=$sbindir"
3971
3972eval "eval LIBEXEC_DIR=$libexecdir"
3973
3974eval "eval DATA_DIR=$datadir"
3975
3976eval "eval SYSCONF_DIR=$sysconfdir"
3977
3978eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3979
3980eval "eval LOCALSTATE_DIR=$localstatedir"
3981
3982eval "eval LIB_DIR=$libdir"
3983
3984eval "eval INCLUDE_DIR=$includedir"
3985
3986eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3987
3988eval "eval INFO_DIR=$infodir"
3989
3990eval "eval MAN_DIR=$mandir"
3991
3992
3993# Get full paths to source and build directories
3994srcdirfull="`cd $srcdir && pwd`"
3995builddir="`pwd`"
3996
3997#
3998# Compute variables useful for running uninstalled software.
3999#
4000MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4004DIRSEP=':'
4005case "${build_os}" in
4006 mingw* )
4007 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4011 DIRSEP=';'
4012 ;;
4013esac
4014case "${host_os}" in
4015 mingw* )
4016 DIRSEP=';'
4017 ;;
4018esac
4019
4020
4021
4022
4023
4024
cristya0b81c32010-01-22 02:54:33 +00004025
4026#
4027# Enable OS features.
4028#
4029DEPDIR="${am__leading_dot}deps"
4030
4031ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034am_make=${MAKE-make}
4035cat > confinc << 'END'
4036am__doit:
4037 @echo this is the am__doit target
4038.PHONY: am__doit
4039END
4040# If we don't find an include directive, just comment out the code.
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042$as_echo_n "checking for style of include used by $am_make... " >&6; }
4043am__include="#"
4044am__quote=
4045_am_result=none
4046# First try GNU make style include.
4047echo "include confinc" > confmf
4048# Ignore all kinds of additional output from `make'.
4049case `$am_make -s -f confmf 2> /dev/null` in #(
4050*the\ am__doit\ target*)
4051 am__include=include
4052 am__quote=
4053 _am_result=GNU
4054 ;;
4055esac
4056# Now try BSD make style include.
4057if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4062 am__quote="\""
4063 _am_result=BSD
4064 ;;
4065 esac
4066fi
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070$as_echo "$_am_result" >&6; }
4071rm -f confinc confmf
4072
4073# Check whether --enable-dependency-tracking was given.
4074if test "${enable_dependency_tracking+set}" = set; then :
4075 enableval=$enable_dependency_tracking;
4076fi
4077
4078if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088fi
4089
4090
cristy3ed852e2009-09-05 21:47:34 +00004091ac_ext=c
4092ac_cpp='$CPP $CPPFLAGS'
4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004101if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004116 break 2
4117 fi
4118done
cristy8b350f62009-11-15 23:12:43 +00004119 done
cristy3ed852e2009-09-05 21:47:34 +00004120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo "$CC" >&6; }
4128else
cristy8b350f62009-11-15 23:12:43 +00004129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo "no" >&6; }
4131fi
4132
4133
4134fi
4135if test -z "$ac_cv_prog_CC"; then
4136 ac_ct_CC=$CC
4137 # Extract the first word of "gcc", so it can be a program name with args.
4138set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004142 $as_echo_n "(cached) " >&6
4143else
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156 break 2
4157 fi
4158done
cristy8b350f62009-11-15 23:12:43 +00004159 done
cristy3ed852e2009-09-05 21:47:34 +00004160IFS=$as_save_IFS
4161
4162fi
4163fi
4164ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo "$ac_ct_CC" >&6; }
4168else
cristy8b350f62009-11-15 23:12:43 +00004169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo "no" >&6; }
4171fi
4172
4173 if test "x$ac_ct_CC" = x; then
4174 CC=""
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177yes:)
cristy8b350f62009-11-15 23:12:43 +00004178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180ac_tool_warned=yes ;;
4181esac
4182 CC=$ac_ct_CC
4183 fi
4184else
4185 CC="$ac_cv_prog_CC"
4186fi
4187
4188if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004194if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209 break 2
4210 fi
4211done
cristy8b350f62009-11-15 23:12:43 +00004212 done
cristy3ed852e2009-09-05 21:47:34 +00004213IFS=$as_save_IFS
4214
4215fi
4216fi
4217CC=$ac_cv_prog_CC
4218if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "$CC" >&6; }
4221else
cristy8b350f62009-11-15 23:12:43 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo "no" >&6; }
4224fi
4225
4226
4227 fi
4228fi
4229if test -z "$CC"; then
4230 # Extract the first word of "cc", so it can be a program name with args.
4231set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004234if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
4240 ac_prog_rejected=no
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249 ac_prog_rejected=yes
4250 continue
4251 fi
4252 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254 break 2
4255 fi
4256done
cristy8b350f62009-11-15 23:12:43 +00004257 done
cristy3ed852e2009-09-05 21:47:34 +00004258IFS=$as_save_IFS
4259
4260if test $ac_prog_rejected = yes; then
4261 # We found a bogon in the path, so make sure we never use it.
4262 set dummy $ac_cv_prog_CC
4263 shift
4264 if test $# != 0; then
4265 # We chose a different compiler from the bogus one.
4266 # However, it has the same basename, so the bogon will be chosen
4267 # first if we set CC to just the basename; use the full file name.
4268 shift
4269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270 fi
4271fi
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "$CC" >&6; }
4278else
cristy8b350f62009-11-15 23:12:43 +00004279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo "no" >&6; }
4281fi
4282
4283
4284fi
4285if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in cl.exe
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004293if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004294 $as_echo_n "(cached) " >&6
4295else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308 break 2
4309 fi
4310done
cristy8b350f62009-11-15 23:12:43 +00004311 done
cristy3ed852e2009-09-05 21:47:34 +00004312IFS=$as_save_IFS
4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo "$CC" >&6; }
4320else
cristy8b350f62009-11-15 23:12:43 +00004321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004322$as_echo "no" >&6; }
4323fi
4324
4325
4326 test -n "$CC" && break
4327 done
4328fi
4329if test -z "$CC"; then
4330 ac_ct_CC=$CC
4331 for ac_prog in cl.exe
4332do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352 break 2
4353 fi
4354done
cristy8b350f62009-11-15 23:12:43 +00004355 done
cristy3ed852e2009-09-05 21:47:34 +00004356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$ac_ct_CC" >&6; }
4364else
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "no" >&6; }
4367fi
4368
4369
4370 test -n "$ac_ct_CC" && break
4371done
4372
4373 if test "x$ac_ct_CC" = x; then
4374 CC=""
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377yes:)
cristy8b350f62009-11-15 23:12:43 +00004378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380ac_tool_warned=yes ;;
4381esac
4382 CC=$ac_ct_CC
4383 fi
4384fi
4385
4386fi
4387
4388
cristy8b350f62009-11-15 23:12:43 +00004389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004391as_fn_error $? "no acceptable C compiler found in \$PATH
4392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004393
4394# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396set X $ac_compile
4397ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004398for ac_option in --version -v -V -qversion; do
4399 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
cristy8b350f62009-11-15 23:12:43 +00004404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004408 if test -s conftest.err; then
4409 sed '10a\
4410... rest of stderr output deleted ...
4411 10q' conftest.err >conftest.er1
4412 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004413 fi
cristycd4c5312009-11-22 01:19:08 +00004414 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417done
cristy3ed852e2009-09-05 21:47:34 +00004418
cristy8b350f62009-11-15 23:12:43 +00004419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004420/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004421
cristy3ed852e2009-09-05 21:47:34 +00004422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004431ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004432# Try to create an executable without -o first, disregard a.out.
4433# It will help us diagnose broken compilers, and finding out an intuition
4434# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4438
4439# The possible output files:
4440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4441
4442ac_rmfiles=
4443for ac_file in $ac_files
4444do
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448 esac
4449done
4450rm -f $ac_rmfiles
4451
cristy8b350f62009-11-15 23:12:43 +00004452if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
cristy8b350f62009-11-15 23:12:43 +00004457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 (eval "$ac_link_default") 2>&5
4460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465# in a Makefile. We should not override ac_cv_exeext if it was cached,
4466# so that the user can short-circuit this test for compilers unknown to
4467# Autoconf.
4468for ac_file in $ac_files ''
4469do
4470 test -f "$ac_file" || continue
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4473 ;;
4474 [ab].out )
4475 # We found the default executable, but exeext='' is most
4476 # certainly right.
4477 break;;
4478 *.* )
cristy8b350f62009-11-15 23:12:43 +00004479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004480 then :; else
4481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482 fi
4483 # We set ac_cv_exeext here because the later test for it is not
4484 # safe: cross compilers may not add the suffix if given an `-o'
4485 # argument, so we may need to know it at that point already.
4486 # Even if this section looks crufty: it has the advantage of
4487 # actually working.
4488 break;;
4489 * )
4490 break;;
4491 esac
4492done
4493test "$ac_cv_exeext" = no && ac_cv_exeext=
4494
4495else
4496 ac_file=''
4497fi
cristy8b350f62009-11-15 23:12:43 +00004498if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
cristy8b350f62009-11-15 23:12:43 +00004504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004506as_fn_error 77 "C compiler cannot create executables
4507See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004511fi
cristycd4c5312009-11-22 01:19:08 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513$as_echo_n "checking for C compiler default output file name... " >&6; }
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004516ac_exeext=$ac_cv_exeext
4517
cristycd4c5312009-11-22 01:19:08 +00004518rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004519ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004522if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
cristy8b350f62009-11-15 23:12:43 +00004527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 (eval "$ac_link") 2>&5
4530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535# work properly (i.e., refer to `conftest.exe'), while it won't with
4536# `rm'.
4537for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4539 case $ac_file in
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 break;;
4543 * ) break;;
4544 esac
4545done
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004549as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004551fi
cristycd4c5312009-11-22 01:19:08 +00004552rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$ac_cv_exeext" >&6; }
4555
4556rm -f conftest.$ac_ext
4557EXEEXT=$ac_cv_exeext
4558ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h. */
4561#include <stdio.h>
4562int
4563main ()
4564{
4565FILE *f = fopen ("conftest.out", "w");
4566 return ferror (f) || fclose (f) != 0;
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572ac_clean_files="$ac_clean_files conftest.out"
4573# Check that the compiler produces executables we can run. If not, either
4574# the compiler is broken, or we cross compile.
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576$as_echo_n "checking whether we are cross compiling... " >&6; }
4577if test "$cross_compiling" != yes; then
4578 { { ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_link") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 if { ac_try='./conftest$ac_cv_exeext'
4590 { { case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; }; then
4600 cross_compiling=no
4601 else
4602 if test "$cross_compiling" = maybe; then
4603 cross_compiling=yes
4604 else
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004607as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004608If you meant to cross compile, use \`--host'.
cristyfd9dcd42010-08-08 18:07:02 +00004609See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004610 fi
4611 fi
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614$as_echo "$cross_compiling" >&6; }
4615
4616rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004620if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 $as_echo_n "(cached) " >&6
4622else
cristy8b350f62009-11-15 23:12:43 +00004623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004624/* end confdefs.h. */
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004635if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
cristy8b350f62009-11-15 23:12:43 +00004640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004642 (eval "$ac_compile") 2>&5
4643 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 for ac_file in conftest.o conftest.obj conftest.*; do
4647 test -f "$ac_file" || continue;
4648 case $ac_file in
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651 break;;
4652 esac
4653done
4654else
4655 $as_echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
cristy8b350f62009-11-15 23:12:43 +00004658{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004660as_fn_error $? "cannot compute suffix of object files: cannot compile
4661See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004662fi
cristy3ed852e2009-09-05 21:47:34 +00004663rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664fi
cristy8b350f62009-11-15 23:12:43 +00004665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_cv_objext" >&6; }
4667OBJEXT=$ac_cv_objext
4668ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004671if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004672 $as_echo_n "(cached) " >&6
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680#ifndef __GNUC__
4681 choke me
4682#endif
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_compiler_gnu=yes
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004692fi
cristy3ed852e2009-09-05 21:47:34 +00004693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694ac_cv_c_compiler_gnu=$ac_compiler_gnu
4695
4696fi
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699if test $ac_compiler_gnu = yes; then
4700 GCC=yes
4701else
4702 GCC=
4703fi
4704ac_test_CFLAGS=${CFLAGS+set}
4705ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004708if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 $as_echo_n "(cached) " >&6
4710else
4711 ac_save_c_werror_flag=$ac_c_werror_flag
4712 ac_c_werror_flag=yes
4713 ac_cv_prog_cc_g=no
4714 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 ac_cv_prog_cc_g=yes
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 CFLAGS=""
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004742
cristy8b350f62009-11-15 23:12:43 +00004743else
4744 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004745 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004759fi
cristy3ed852e2009-09-05 21:47:34 +00004760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
cristy3ed852e2009-09-05 21:47:34 +00004762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
cristy3ed852e2009-09-05 21:47:34 +00004764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766fi
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_cv_prog_cc_g" >&6; }
4769if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4776 fi
4777else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4782 fi
4783fi
cristy8b350f62009-11-15 23:12:43 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004786if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 $as_echo_n "(cached) " >&6
4788else
4789 ac_cv_prog_cc_c89=no
4790ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004792/* end confdefs.h. */
4793#include <stdarg.h>
4794#include <stdio.h>
4795#include <sys/types.h>
4796#include <sys/stat.h>
4797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4798struct buf { int x; };
4799FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800static char *e (p, i)
4801 char **p;
4802 int i;
4803{
4804 return p[i];
4805}
4806static char *f (char * (*g) (char **, int), char **p, ...)
4807{
4808 char *s;
4809 va_list v;
4810 va_start (v,p);
4811 s = g (p, va_arg (v,int));
4812 va_end (v);
4813 return s;
4814}
4815
4816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4817 function prototypes and stuff, but not '\xHH' hex character constants.
4818 These don't provoke an error unfortunately, instead are silently treated
4819 as 'x'. The following induces an error, until -std is added to get
4820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4821 array size at least. It's necessary to write '\x00'==0 to get something
4822 that's true only with -std. */
4823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4824
4825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826 inside strings and character constants. */
4827#define FOO(x) 'x'
4828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4829
4830int test (int i, double x);
4831struct s1 {int (*f) (int a);};
4832struct s2 {int (*f) (double a);};
4833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834int argc;
4835char **argv;
4836int
4837main ()
4838{
4839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4846do
4847 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004848 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristy3ed852e2009-09-05 21:47:34 +00004851rm -f core conftest.err conftest.$ac_objext
4852 test "x$ac_cv_prog_cc_c89" != "xno" && break
4853done
4854rm -f conftest.$ac_ext
4855CC=$ac_save_CC
4856
4857fi
4858# AC_CACHE_VAL
4859case "x$ac_cv_prog_cc_c89" in
4860 x)
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "none needed" >&6; } ;;
4863 xno)
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "unsupported" >&6; } ;;
4866 *)
4867 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4870esac
cristy8b350f62009-11-15 23:12:43 +00004871if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004872
cristy8b350f62009-11-15 23:12:43 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874
4875ac_ext=c
4876ac_cpp='$CPP $CPPFLAGS'
4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004880
cristya0b81c32010-01-22 02:54:33 +00004881depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004882
cristya0b81c32010-01-22 02:54:33 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884$as_echo_n "checking dependency style of $depcc... " >&6; }
4885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004887else
cristya0b81c32010-01-22 02:54:33 +00004888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4893 # in D'.
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 am__universal=false
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914 esac
4915
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4920 #
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4924 : > sub/conftest.c
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928 # Solaris 8's {/usr,}/bin/sh.
4929 touch sub/conftst$i.h
4930 done
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4939 case $depmode in
4940 gcc)
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4943 ;;
4944 nosideeffect)
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4948 continue
4949 else
4950 break
4951 fi
4952 ;;
4953 msvisualcpp | msvcmsys)
4954 # This compiler won't grok `-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4958 am__minus_obj=
4959 ;;
4960 none) break ;;
4961 esac
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thusly:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4981 break
4982 fi
4983 fi
4984 done
4985
4986 cd ..
4987 rm -rf conftest.dir
4988else
4989 am_cv_CC_dependencies_compiler_type=none
4990fi
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4996
4997 if
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCC_TRUE=
5001 am__fastdepCC_FALSE='#'
5002else
5003 am__fastdepCC_TRUE='#'
5004 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005005fi
5006
5007
5008
cristya0b81c32010-01-22 02:54:33 +00005009ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015$as_echo_n "checking how to run the C preprocessor... " >&6; }
5016# On Suns, sometimes $CPP names a directory.
5017if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5019fi
5020if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028for ac_c_preproc_warn_flag in '' yes
5029do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h. */
5038#ifdef __STDC__
5039# include <limits.h>
5040#else
5041# include <assert.h>
5042#endif
5043 Syntax error
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046
5047else
5048 # Broken: fails on valid input.
5049continue
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5061continue
5062else
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then :
5073 break
5074fi
5075
5076 done
5077 ac_cv_prog_CPP=$CPP
5078
5079fi
5080 CPP=$ac_cv_prog_CPP
5081else
5082 ac_cv_prog_CPP=$CPP
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085$as_echo "$CPP" >&6; }
5086ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifdef __STDC__
5098# include <limits.h>
5099#else
5100# include <assert.h>
5101#endif
5102 Syntax error
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106else
5107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5120continue
5121else
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then :
5132
5133else
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005138fi
5139
5140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149if test "${ac_cv_path_GREP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -z "$GREP"; then
5153 ac_path_GREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in grep ggrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164# Check for GNU ac_path_GREP and select it if it is found.
5165 # Check for GNU $ac_path_GREP
5166case `"$ac_path_GREP" --version 2>&1` in
5167*GNU*)
5168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5169*)
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'GREP' >> "conftest.nl"
5178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_GREP="$ac_path_GREP"
5184 ac_path_GREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190esac
5191
5192 $ac_path_GREP_found && break 3
5193 done
5194 done
5195 done
5196IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_GREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005199 fi
5200else
5201 ac_cv_path_GREP=$GREP
5202fi
5203
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206$as_echo "$ac_cv_path_GREP" >&6; }
5207 GREP="$ac_cv_path_GREP"
5208
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211$as_echo_n "checking for egrep... " >&6; }
5212if test "${ac_cv_path_EGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216 then ac_cv_path_EGREP="$GREP -E"
5217 else
5218 if test -z "$EGREP"; then
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230# Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232case `"$ac_path_EGREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_EGREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_EGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005265 fi
5266else
5267 ac_cv_path_EGREP=$EGREP
5268fi
5269
5270 fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273$as_echo "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278$as_echo_n "checking for ANSI C header files... " >&6; }
5279if test "${ac_cv_header_stdc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdlib.h>
5285#include <stdarg.h>
5286#include <string.h>
5287#include <float.h>
5288
5289int
5290main ()
5291{
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_header_stdc=yes
5299else
5300 ac_cv_header_stdc=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#include <string.h>
5309
5310_ACEOF
5311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "memchr" >/dev/null 2>&1; then :
5313
5314else
5315 ac_cv_header_stdc=no
5316fi
5317rm -f conftest*
5318
5319fi
5320
5321if test $ac_cv_header_stdc = yes; then
5322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326
5327_ACEOF
5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then :
5330
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then :
5341 :
5342else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <ctype.h>
5346#include <stdlib.h>
5347#if ((' ' & 0x0FF) == 0x020)
5348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350#else
5351# define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356#endif
5357
5358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359int
5360main ()
5361{
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 return 2;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_run "$LINENO"; then :
5371
5372else
5373 ac_cv_header_stdc=no
5374fi
5375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377fi
5378
5379fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382$as_echo "$ac_cv_header_stdc" >&6; }
5383if test $ac_cv_header_stdc = yes; then
5384
5385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5386
5387fi
5388
5389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5392do :
5393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5395"
cristyfd9dcd42010-08-08 18:07:02 +00005396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005397 cat >>confdefs.h <<_ACEOF
5398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399_ACEOF
5400
5401fi
5402
5403done
5404
5405
5406
5407 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5409 MINIX=yes
5410else
5411 MINIX=
5412fi
5413
5414
5415 if test "$MINIX" = yes; then
5416
5417$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5418
5419
5420$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5421
5422
5423$as_echo "#define _MINIX 1" >>confdefs.h
5424
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435
5436# define __EXTENSIONS__ 1
5437 $ac_includes_default
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_safe_to_define___extensions__=yes
5448else
5449 ac_cv_safe_to_define___extensions__=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455 test $ac_cv_safe_to_define___extensions__ = yes &&
5456 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5457
5458 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5463
5464 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5465
5466
5467
5468# Check for programs
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502CC=$ac_cv_prog_CC
5503if test -n "$CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505$as_echo "$CC" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_CC"; then
5514 ac_ct_CC=$CC
5515 # Extract the first word of "gcc", so it can be a program name with args.
5516set dummy gcc; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_CC"; then
5523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_CC="gcc"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543if test -n "$ac_ct_CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545$as_echo "$ac_ct_CC" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551 if test "x$ac_ct_CC" = x; then
5552 CC=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 CC=$ac_ct_CC
5561 fi
5562else
5563 CC="$ac_cv_prog_CC"
5564fi
5565
5566if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}cc; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_CC+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_CC="${ac_tool_prefix}cc"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589done
5590 done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595CC=$ac_cv_prog_CC
5596if test -n "$CC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598$as_echo "$CC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605 fi
5606fi
5607if test -z "$CC"; then
5608 # Extract the first word of "cc", so it can be a program name with args.
5609set dummy cc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618 ac_prog_rejected=no
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627 ac_prog_rejected=yes
5628 continue
5629 fi
5630 ac_cv_prog_CC="cc"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638if test $ac_prog_rejected = yes; then
5639 # We found a bogon in the path, so make sure we never use it.
5640 set dummy $ac_cv_prog_CC
5641 shift
5642 if test $# != 0; then
5643 # We chose a different compiler from the bogus one.
5644 # However, it has the same basename, so the bogon will be chosen
5645 # first if we set CC to just the basename; use the full file name.
5646 shift
5647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5648 fi
5649fi
5650fi
5651fi
5652CC=$ac_cv_prog_CC
5653if test -n "$CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655$as_echo "$CC" >&6; }
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
5659fi
5660
5661
5662fi
5663if test -z "$CC"; then
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in cl.exe
5666 do
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694CC=$ac_cv_prog_CC
5695if test -n "$CC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697$as_echo "$CC" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704 test -n "$CC" && break
5705 done
5706fi
5707if test -z "$CC"; then
5708 ac_ct_CC=$CC
5709 for ac_prog in cl.exe
5710do
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712set dummy $ac_prog; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741$as_echo "$ac_ct_CC" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748 test -n "$ac_ct_CC" && break
5749done
5750
5751 if test "x$ac_ct_CC" = x; then
5752 CC=""
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760 CC=$ac_ct_CC
5761 fi
5762fi
5763
5764fi
5765
5766
5767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005769as_fn_error $? "no acceptable C compiler found in \$PATH
5770See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005771
5772# Provide some information about the compiler.
5773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5774set X $ac_compile
5775ac_compiler=$2
5776for ac_option in --version -v -V -qversion; do
5777 { { ac_try="$ac_compiler $ac_option >&5"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783$as_echo "$ac_try_echo"; } >&5
5784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5785 ac_status=$?
5786 if test -s conftest.err; then
5787 sed '10a\
5788... rest of stderr output deleted ...
5789 10q' conftest.err >conftest.er1
5790 cat conftest.er1 >&5
5791 fi
5792 rm -f conftest.er1 conftest.err
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5795done
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808#ifndef __GNUC__
5809 choke me
5810#endif
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_compiler_gnu=yes
5818else
5819 ac_compiler_gnu=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822ac_cv_c_compiler_gnu=$ac_compiler_gnu
5823
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827if test $ac_compiler_gnu = yes; then
5828 GCC=yes
5829else
5830 GCC=
5831fi
5832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835$as_echo_n "checking whether $CC accepts -g... " >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"; then :
5855 ac_cv_prog_cc_g=yes
5856else
5857 CFLAGS=""
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"; then :
5870
5871else
5872 ac_c_werror_flag=$ac_save_c_werror_flag
5873 CFLAGS="-g"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_prog_cc_g=yes
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896$as_echo "$ac_cv_prog_cc_g" >&6; }
5897if test "$ac_test_CFLAGS" = set; then
5898 CFLAGS=$ac_save_CFLAGS
5899elif test $ac_cv_prog_cc_g = yes; then
5900 if test "$GCC" = yes; then
5901 CFLAGS="-g -O2"
5902 else
5903 CFLAGS="-g"
5904 fi
5905else
5906 if test "$GCC" = yes; then
5907 CFLAGS="-O2"
5908 else
5909 CFLAGS=
5910 fi
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 ac_cv_prog_cc_c89=no
5918ac_save_CC=$CC
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdarg.h>
5922#include <stdio.h>
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926struct buf { int x; };
5927FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928static char *e (p, i)
5929 char **p;
5930 int i;
5931{
5932 return p[i];
5933}
5934static char *f (char * (*g) (char **, int), char **p, ...)
5935{
5936 char *s;
5937 va_list v;
5938 va_start (v,p);
5939 s = g (p, va_arg (v,int));
5940 va_end (v);
5941 return s;
5942}
5943
5944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5955#define FOO(x) 'x'
5956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958int test (int i, double x);
5959struct s1 {int (*f) (int a);};
5960struct s2 {int (*f) (double a);};
5961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962int argc;
5963char **argv;
5964int
5965main ()
5966{
5967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974do
5975 CC="$ac_save_CC $ac_arg"
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_prog_cc_c89=$ac_arg
5978fi
5979rm -f core conftest.err conftest.$ac_objext
5980 test "x$ac_cv_prog_cc_c89" != "xno" && break
5981done
5982rm -f conftest.$ac_ext
5983CC=$ac_save_CC
5984
5985fi
5986# AC_CACHE_VAL
5987case "x$ac_cv_prog_cc_c89" in
5988 x)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990$as_echo "none needed" >&6; } ;;
5991 xno)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993$as_echo "unsupported" >&6; } ;;
5994 *)
5995 CC="$CC $ac_cv_prog_cc_c89"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5998esac
5999if test "x$ac_cv_prog_cc_c89" != xno; then :
6000
6001fi
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
cristy3ed852e2009-09-05 21:47:34 +00006009depcc="$CC" am_compiler_list=
6010
cristy8b350f62009-11-15 23:12:43 +00006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006012$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006014 $as_echo_n "(cached) " >&6
6015else
6016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017 # We make a subdir and do the tests there. Otherwise we can end up
6018 # making bogus files that we don't know about and never remove. For
6019 # instance it was reported that on HP-UX the gcc test will end up
6020 # making a dummy file named `D' -- because `-MD' means `put the output
6021 # in D'.
6022 mkdir conftest.dir
6023 # Copy depcomp to subdir because otherwise we won't find it if we're
6024 # using a relative directory.
6025 cp "$am_depcomp" conftest.dir
6026 cd conftest.dir
6027 # We will build objects and dependencies in a subdirectory because
6028 # it helps to detect inapplicable dependency modes. For instance
6029 # both Tru64's cc and ICC support -MD to output dependencies as a
6030 # side effect of compilation, but ICC will put the dependencies in
6031 # the current directory while Tru64 will put them in the object
6032 # directory.
6033 mkdir sub
6034
6035 am_cv_CC_dependencies_compiler_type=none
6036 if test "$am_compiler_list" = ""; then
6037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038 fi
6039 am__universal=false
6040 case " $depcc " in #(
6041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6042 esac
6043
6044 for depmode in $am_compiler_list; do
6045 # Setup a source with many dependencies, because some compilers
6046 # like to wrap large dependency lists on column 80 (with \), and
6047 # we should not choose a depcomp mode which is confused by this.
6048 #
6049 # We need to recreate these files for each test, as the compiler may
6050 # overwrite some of them when testing with obscure command lines.
6051 # This happens at least with the AIX C compiler.
6052 : > sub/conftest.c
6053 for i in 1 2 3 4 5 6; do
6054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056 # Solaris 8's {/usr,}/bin/sh.
6057 touch sub/conftst$i.h
6058 done
6059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6060
6061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062 # mode. It turns out that the SunPro C++ compiler does not properly
6063 # handle `-M -o', and we need to detect this. Also, some Intel
6064 # versions had trouble with output in subdirs
6065 am__obj=sub/conftest.${OBJEXT-o}
6066 am__minus_obj="-o $am__obj"
6067 case $depmode in
6068 gcc)
6069 # This depmode causes a compiler race in universal mode.
6070 test "$am__universal" = false || continue
6071 ;;
6072 nosideeffect)
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6076 continue
6077 else
6078 break
6079 fi
6080 ;;
6081 msvisualcpp | msvcmsys)
6082 # This compiler won't grok `-c -o', but also, the minuso test has
6083 # not run yet. These depmodes are late enough in the game, and
6084 # so weak that their functioning should not be impacted.
6085 am__obj=conftest.${OBJEXT-o}
6086 am__minus_obj=
6087 ;;
6088 none) break ;;
6089 esac
6090 if depmode=$depmode \
6091 source=sub/conftest.c object=$am__obj \
6092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094 >/dev/null 2>conftest.err &&
6095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099 # icc doesn't choke on unknown options, it will just issue warnings
6100 # or remarks (even with -Werror). So we grep stderr for any message
6101 # that says an option was ignored or not supported.
6102 # When given -MP, icc 7.0 and 7.1 complain thusly:
6103 # icc: Command line warning: ignoring option '-M'; no argument required
6104 # The diagnosis changed in icc 8.0:
6105 # icc: Command line remark: option '-MP' not supported
6106 if (grep 'ignoring option' conftest.err ||
6107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 am_cv_CC_dependencies_compiler_type=$depmode
6109 break
6110 fi
6111 fi
6112 done
6113
6114 cd ..
6115 rm -rf conftest.dir
6116else
6117 am_cv_CC_dependencies_compiler_type=none
6118fi
6119
6120fi
cristy8b350f62009-11-15 23:12:43 +00006121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6124
6125 if
6126 test "x$enable_dependency_tracking" != xno \
6127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6128 am__fastdepCC_TRUE=
6129 am__fastdepCC_FALSE='#'
6130else
6131 am__fastdepCC_TRUE='#'
6132 am__fastdepCC_FALSE=
6133fi
6134
6135
cristy95646052009-11-28 23:05:30 +00006136ac_ext=cpp
6137ac_cpp='$CXXCPP $CPPFLAGS'
6138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6143 CXX=$CCC
6144 else
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147 do
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_CXX+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170 done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175CXX=$ac_cv_prog_CXX
6176if test -n "$CXX"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178$as_echo "$CXX" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$CXX" && break
6186 done
6187fi
6188if test -z "$CXX"; then
6189 ac_ct_CXX=$CXX
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191do
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193set dummy $ac_prog; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220if test -n "$ac_ct_CXX"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222$as_echo "$ac_ct_CXX" >&6; }
6223else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229 test -n "$ac_ct_CXX" && break
6230done
6231
6232 if test "x$ac_ct_CXX" = x; then
6233 CXX="g++"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 CXX=$ac_ct_CXX
6242 fi
6243fi
6244
6245 fi
6246fi
6247# Provide some information about the compiler.
6248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6249set X $ac_compile
6250ac_compiler=$2
6251for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260 ac_status=$?
6261 if test -s conftest.err; then
6262 sed '10a\
6263... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
6266 fi
6267 rm -f conftest.er1 conftest.err
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6270done
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_cxx_try_compile "$LINENO"; then :
6292 ac_compiler_gnu=yes
6293else
6294 ac_compiler_gnu=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302if test $ac_compiler_gnu = yes; then
6303 GXX=yes
6304else
6305 GXX=
6306fi
6307ac_test_CXXFLAGS=${CXXFLAGS+set}
6308ac_save_CXXFLAGS=$CXXFLAGS
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6316 ac_cv_prog_cxx_g=no
6317 CXXFLAGS="-g"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
6329if ac_fn_cxx_try_compile "$LINENO"; then :
6330 ac_cv_prog_cxx_g=yes
6331else
6332 CXXFLAGS=""
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_cxx_try_compile "$LINENO"; then :
6345
6346else
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6348 CXXFLAGS="-g"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371$as_echo "$ac_cv_prog_cxx_g" >&6; }
6372if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6376 CXXFLAGS="-g -O2"
6377 else
6378 CXXFLAGS="-g"
6379 fi
6380else
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-O2"
6383 else
6384 CXXFLAGS=
6385 fi
6386fi
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393depcc="$CXX" am_compiler_list=
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396$as_echo_n "checking dependency style of $depcc... " >&6; }
6397if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399else
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # in D'.
6406 mkdir conftest.dir
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6410 cd conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6416 # directory.
6417 mkdir sub
6418
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 fi
6423 am__universal=false
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426 esac
6427
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6432 #
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6436 : > sub/conftest.c
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6442 done
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6451 case $depmode in
6452 gcc)
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6455 ;;
6456 nosideeffect)
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6460 continue
6461 else
6462 break
6463 fi
6464 ;;
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6470 am__minus_obj=
6471 ;;
6472 none) break ;;
6473 esac
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6493 break
6494 fi
6495 fi
6496 done
6497
6498 cd ..
6499 rm -rf conftest.dir
6500else
6501 am_cv_CXX_dependencies_compiler_type=none
6502fi
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509 if
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6514else
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6517fi
6518
6519
cristy8b350f62009-11-15 23:12:43 +00006520 case $ac_cv_prog_cc_stdc in #(
6521 no) :
6522 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6523 *) :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006525$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006526if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006527 $as_echo_n "(cached) " >&6
6528else
6529 ac_cv_prog_cc_c99=no
6530ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006532/* end confdefs.h. */
6533#include <stdarg.h>
6534#include <stdbool.h>
6535#include <stdlib.h>
6536#include <wchar.h>
6537#include <stdio.h>
6538
6539// Check varargs macros. These examples are taken from C99 6.10.3.5.
6540#define debug(...) fprintf (stderr, __VA_ARGS__)
6541#define showlist(...) puts (#__VA_ARGS__)
6542#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6543static void
6544test_varargs_macros (void)
6545{
6546 int x = 1234;
6547 int y = 5678;
6548 debug ("Flag");
6549 debug ("X = %d\n", x);
6550 showlist (The first, second, and third items.);
6551 report (x>y, "x is %d but y is %d", x, y);
6552}
6553
6554// Check long long types.
6555#define BIG64 18446744073709551615ull
6556#define BIG32 4294967295ul
6557#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6558#if !BIG_OK
6559 your preprocessor is broken;
6560#endif
6561#if BIG_OK
6562#else
6563 your preprocessor is broken;
6564#endif
6565static long long int bignum = -9223372036854775807LL;
6566static unsigned long long int ubignum = BIG64;
6567
6568struct incomplete_array
6569{
6570 int datasize;
6571 double data[];
6572};
6573
6574struct named_init {
6575 int number;
6576 const wchar_t *name;
6577 double average;
6578};
6579
6580typedef const char *ccp;
6581
6582static inline int
6583test_restrict (ccp restrict text)
6584{
6585 // See if C++-style comments work.
6586 // Iterate through items via the restricted pointer.
6587 // Also check for declarations in for loops.
6588 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6589 continue;
6590 return 0;
6591}
6592
6593// Check varargs and va_copy.
6594static void
6595test_varargs (const char *format, ...)
6596{
6597 va_list args;
6598 va_start (args, format);
6599 va_list args_copy;
6600 va_copy (args_copy, args);
6601
6602 const char *str;
6603 int number;
6604 float fnumber;
6605
6606 while (*format)
6607 {
6608 switch (*format++)
6609 {
6610 case 's': // string
6611 str = va_arg (args_copy, const char *);
6612 break;
6613 case 'd': // int
6614 number = va_arg (args_copy, int);
6615 break;
6616 case 'f': // float
6617 fnumber = va_arg (args_copy, double);
6618 break;
6619 default:
6620 break;
6621 }
6622 }
6623 va_end (args_copy);
6624 va_end (args);
6625}
6626
6627int
6628main ()
6629{
6630
6631 // Check bool.
6632 _Bool success = false;
6633
6634 // Check restrict.
6635 if (test_restrict ("String literal") == 0)
6636 success = true;
6637 char *restrict newvar = "Another string";
6638
6639 // Check varargs.
6640 test_varargs ("s, d' f .", "string", 65, 34.234);
6641 test_varargs_macros ();
6642
6643 // Check flexible array members.
6644 struct incomplete_array *ia =
6645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6646 ia->datasize = 10;
6647 for (int i = 0; i < ia->datasize; ++i)
6648 ia->data[i] = i * 1.234;
6649
6650 // Check named initializers.
6651 struct named_init ni = {
6652 .number = 34,
6653 .name = L"Test wide string",
6654 .average = 543.34343,
6655 };
6656
6657 ni.number = 58;
6658
6659 int dynamic_array[ni.number];
6660 dynamic_array[ni.number - 1] = 543;
6661
6662 // work around unused variable warnings
6663 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664 || dynamic_array[ni.number - 1] != 543);
6665
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6671do
6672 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006673 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006674 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006675fi
cristy3ed852e2009-09-05 21:47:34 +00006676rm -f core conftest.err conftest.$ac_objext
6677 test "x$ac_cv_prog_cc_c99" != "xno" && break
6678done
6679rm -f conftest.$ac_ext
6680CC=$ac_save_CC
6681
6682fi
6683# AC_CACHE_VAL
6684case "x$ac_cv_prog_cc_c99" in
6685 x)
cristy8b350f62009-11-15 23:12:43 +00006686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo "none needed" >&6; } ;;
6688 xno)
cristy8b350f62009-11-15 23:12:43 +00006689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "unsupported" >&6; } ;;
6691 *)
6692 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006694$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6695esac
cristy8b350f62009-11-15 23:12:43 +00006696if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6698else
cristy8b350f62009-11-15 23:12:43 +00006699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006701if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006702 $as_echo_n "(cached) " >&6
6703else
6704 ac_cv_prog_cc_c89=no
6705ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006707/* end confdefs.h. */
6708#include <stdarg.h>
6709#include <stdio.h>
6710#include <sys/types.h>
6711#include <sys/stat.h>
6712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6713struct buf { int x; };
6714FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715static char *e (p, i)
6716 char **p;
6717 int i;
6718{
6719 return p[i];
6720}
6721static char *f (char * (*g) (char **, int), char **p, ...)
6722{
6723 char *s;
6724 va_list v;
6725 va_start (v,p);
6726 s = g (p, va_arg (v,int));
6727 va_end (v);
6728 return s;
6729}
6730
6731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6732 function prototypes and stuff, but not '\xHH' hex character constants.
6733 These don't provoke an error unfortunately, instead are silently treated
6734 as 'x'. The following induces an error, until -std is added to get
6735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6736 array size at least. It's necessary to write '\x00'==0 to get something
6737 that's true only with -std. */
6738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6739
6740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741 inside strings and character constants. */
6742#define FOO(x) 'x'
6743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6744
6745int test (int i, double x);
6746struct s1 {int (*f) (int a);};
6747struct s2 {int (*f) (double a);};
6748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6749int argc;
6750char **argv;
6751int
6752main ()
6753{
6754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6761do
6762 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006763 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006764 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006765fi
cristy3ed852e2009-09-05 21:47:34 +00006766rm -f core conftest.err conftest.$ac_objext
6767 test "x$ac_cv_prog_cc_c89" != "xno" && break
6768done
6769rm -f conftest.$ac_ext
6770CC=$ac_save_CC
6771
6772fi
6773# AC_CACHE_VAL
6774case "x$ac_cv_prog_cc_c89" in
6775 x)
cristy8b350f62009-11-15 23:12:43 +00006776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006777$as_echo "none needed" >&6; } ;;
6778 xno)
cristy8b350f62009-11-15 23:12:43 +00006779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006780$as_echo "unsupported" >&6; } ;;
6781 *)
6782 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6785esac
cristy8b350f62009-11-15 23:12:43 +00006786if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6788else
6789 ac_cv_prog_cc_stdc=no
6790fi
6791
cristy3ed852e2009-09-05 21:47:34 +00006792fi
cristy3ed852e2009-09-05 21:47:34 +00006793 ;;
6794esac
cristy8b350f62009-11-15 23:12:43 +00006795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006797 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799fi
6800
cristy8b350f62009-11-15 23:12:43 +00006801 case $ac_cv_prog_cc_stdc in #(
6802 no) :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804$as_echo "unsupported" >&6; } ;; #(
6805 '') :
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807$as_echo "none needed" >&6; } ;; #(
6808 *) :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6811esac
6812
cristy3ed852e2009-09-05 21:47:34 +00006813ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo_n "checking how to run the C preprocessor... " >&6; }
6820# On Suns, sometimes $CPP names a directory.
6821if test -n "$CPP" && test -d "$CPP"; then
6822 CPP=
6823fi
6824if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006825 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 $as_echo_n "(cached) " >&6
6827else
6828 # Double quotes because CPP needs to be expanded
6829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6830 do
6831 ac_preproc_ok=false
6832for ac_c_preproc_warn_flag in '' yes
6833do
6834 # Use a header file that comes with gcc, so configuring glibc
6835 # with a fresh cross-compiler works.
6836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 # <limits.h> exists even on freestanding compilers.
6838 # On the NeXT, cc -E runs the code through the compiler's parser,
6839 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006841/* end confdefs.h. */
6842#ifdef __STDC__
6843# include <limits.h>
6844#else
6845# include <assert.h>
6846#endif
6847 Syntax error
6848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006849if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006850
cristy8b350f62009-11-15 23:12:43 +00006851else
cristy3ed852e2009-09-05 21:47:34 +00006852 # Broken: fails on valid input.
6853continue
6854fi
cristy3ed852e2009-09-05 21:47:34 +00006855rm -f conftest.err conftest.$ac_ext
6856
6857 # OK, works on sane cases. Now check whether nonexistent headers
6858 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006860/* end confdefs.h. */
6861#include <ac_nonexistent.h>
6862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 # Broken: success on invalid input.
6865continue
6866else
cristy3ed852e2009-09-05 21:47:34 +00006867 # Passes both tests.
6868ac_preproc_ok=:
6869break
6870fi
cristy3ed852e2009-09-05 21:47:34 +00006871rm -f conftest.err conftest.$ac_ext
6872
6873done
6874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006876if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006877 break
6878fi
6879
6880 done
6881 ac_cv_prog_CPP=$CPP
6882
6883fi
6884 CPP=$ac_cv_prog_CPP
6885else
6886 ac_cv_prog_CPP=$CPP
6887fi
cristy8b350f62009-11-15 23:12:43 +00006888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006889$as_echo "$CPP" >&6; }
6890ac_preproc_ok=false
6891for ac_c_preproc_warn_flag in '' yes
6892do
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006900/* end confdefs.h. */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906 Syntax error
6907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006909
cristy8b350f62009-11-15 23:12:43 +00006910else
cristy3ed852e2009-09-05 21:47:34 +00006911 # Broken: fails on valid input.
6912continue
6913fi
cristy3ed852e2009-09-05 21:47:34 +00006914rm -f conftest.err conftest.$ac_ext
6915
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#include <ac_nonexistent.h>
6921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: success on invalid input.
6924continue
6925else
cristy3ed852e2009-09-05 21:47:34 +00006926 # Passes both tests.
6927ac_preproc_ok=:
6928break
6929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f conftest.err conftest.$ac_ext
6931
6932done
6933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006935if $ac_preproc_ok; then :
6936
cristy3ed852e2009-09-05 21:47:34 +00006937else
cristy8b350f62009-11-15 23:12:43 +00006938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00006940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006942fi
6943
6944ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
cristy8b350f62009-11-15 23:12:43 +00006950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006952if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956 for ac_i in 1 2 3 4 5 6 7; do
6957 ac_script="$ac_script$as_nl$ac_script"
6958 done
6959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006960 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006961 if test -z "$SED"; then
6962 ac_path_SED_found=false
6963 # Loop through the user's path and test for each of PROGNAME-LIST
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006969 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973# Check for GNU ac_path_SED and select it if it is found.
6974 # Check for GNU $ac_path_SED
6975case `"$ac_path_SED" --version 2>&1` in
6976*GNU*)
6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978*)
6979 ac_count=0
6980 $as_echo_n 0123456789 >"conftest.in"
6981 while :
6982 do
6983 cat "conftest.in" "conftest.in" >"conftest.tmp"
6984 mv "conftest.tmp" "conftest.in"
6985 cp "conftest.in" "conftest.nl"
6986 $as_echo '' >> "conftest.nl"
6987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006989 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006990 if test $ac_count -gt ${ac_path_SED_max-0}; then
6991 # Best one so far, save it but keep looking for a better one
6992 ac_cv_path_SED="$ac_path_SED"
6993 ac_path_SED_max=$ac_count
6994 fi
6995 # 10*(2^10) chars as input seems more than enough
6996 test $ac_count -gt 10 && break
6997 done
6998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999esac
7000
7001 $ac_path_SED_found && break 3
7002 done
7003 done
cristy8b350f62009-11-15 23:12:43 +00007004 done
cristy3ed852e2009-09-05 21:47:34 +00007005IFS=$as_save_IFS
7006 if test -z "$ac_cv_path_SED"; then
cristyfd9dcd42010-08-08 18:07:02 +00007007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007008 fi
7009else
7010 ac_cv_path_SED=$SED
7011fi
7012
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_path_SED" >&6; }
7016 SED="$ac_cv_path_SED"
7017 rm -f conftest.sed
7018
7019test -z "$SED" && SED=sed
7020Xsed="$SED -e 1s/^X//"
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
cristy8b350f62009-11-15 23:12:43 +00007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007033$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007034if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038 then ac_cv_path_FGREP="$GREP -F"
7039 else
7040 if test -z "$FGREP"; then
7041 ac_path_FGREP_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007048 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052# Check for GNU ac_path_FGREP and select it if it is found.
7053 # Check for GNU $ac_path_FGREP
7054case `"$ac_path_FGREP" --version 2>&1` in
7055*GNU*)
7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7057*)
7058 ac_count=0
7059 $as_echo_n 0123456789 >"conftest.in"
7060 while :
7061 do
7062 cat "conftest.in" "conftest.in" >"conftest.tmp"
7063 mv "conftest.tmp" "conftest.in"
7064 cp "conftest.in" "conftest.nl"
7065 $as_echo 'FGREP' >> "conftest.nl"
7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007068 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070 # Best one so far, save it but keep looking for a better one
7071 ac_cv_path_FGREP="$ac_path_FGREP"
7072 ac_path_FGREP_max=$ac_count
7073 fi
7074 # 10*(2^10) chars as input seems more than enough
7075 test $ac_count -gt 10 && break
7076 done
7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7078esac
7079
7080 $ac_path_FGREP_found && break 3
7081 done
7082 done
cristy8b350f62009-11-15 23:12:43 +00007083 done
cristy3ed852e2009-09-05 21:47:34 +00007084IFS=$as_save_IFS
7085 if test -z "$ac_cv_path_FGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00007086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007087 fi
7088else
7089 ac_cv_path_FGREP=$FGREP
7090fi
7091
7092 fi
7093fi
cristy8b350f62009-11-15 23:12:43 +00007094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "$ac_cv_path_FGREP" >&6; }
7096 FGREP="$ac_cv_path_FGREP"
7097
7098
7099test -z "$GREP" && GREP=grep
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
cristyfd9dcd42010-08-08 18:07:02 +00007117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122$as_echo_n "checking how to print strings... " >&6; }
7123# Test print first, because it will be a builtin if present.
7124if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7126 ECHO='print -r --'
7127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7128 ECHO='printf %s\n'
7129else
7130 # Use this function as a fallback that always works.
7131 func_fallback_echo ()
7132 {
7133 eval 'cat <<_LTECHO_EOF
7134$1
7135_LTECHO_EOF'
7136 }
7137 ECHO='func_fallback_echo'
7138fi
7139
7140# func_echo_all arg...
7141# Invoke $ECHO with all args, space-separated.
7142func_echo_all ()
7143{
7144 $ECHO ""
7145}
7146
7147case "$ECHO" in
7148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149$as_echo "printf" >&6; } ;;
7150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151$as_echo "print -r" >&6; } ;;
7152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153$as_echo "cat" >&6; } ;;
7154esac
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
cristy3ed852e2009-09-05 21:47:34 +00007169
7170
7171# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007172if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7174else
7175 with_gnu_ld=no
7176fi
7177
7178ac_prog=ld
7179if test "$GCC" = yes; then
7180 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo_n "checking for ld used by $CC... " >&6; }
7183 case $host in
7184 *-*-mingw*)
7185 # gcc leaves a trailing carriage return which upsets mingw
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7187 *)
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7189 esac
7190 case $ac_prog in
7191 # Accept absolute paths.
7192 [\\/]* | ?:[\\/]*)
7193 re_direlt='/[^/][^/]*/\.\./'
7194 # Canonicalize the pathname of ld
7195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7198 done
7199 test -z "$LD" && LD="$ac_prog"
7200 ;;
7201 "")
7202 # If it fails, then pretend we aren't using GCC.
7203 ac_prog=ld
7204 ;;
7205 *)
7206 # If it is relative, then search for the first ld in PATH.
7207 with_gnu_ld=unknown
7208 ;;
7209 esac
7210elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for GNU ld... " >&6; }
7213else
cristy8b350f62009-11-15 23:12:43 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo_n "checking for non-GNU ld... " >&6; }
7216fi
cristy8b350f62009-11-15 23:12:43 +00007217if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007218 $as_echo_n "(cached) " >&6
7219else
7220 if test -z "$LD"; then
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH; do
7223 IFS="$lt_save_ifs"
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226 lt_cv_path_LD="$ac_dir/$ac_prog"
7227 # Check to see if the program is GNU ld. I'd rather use --version,
7228 # but apparently some variants of GNU ld only accept -v.
7229 # Break only if it was the GNU/non-GNU ld that we prefer.
7230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231 *GNU* | *'with BFD'*)
7232 test "$with_gnu_ld" != no && break
7233 ;;
7234 *)
7235 test "$with_gnu_ld" != yes && break
7236 ;;
7237 esac
7238 fi
7239 done
7240 IFS="$lt_save_ifs"
7241else
7242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7243fi
7244fi
7245
7246LD="$lt_cv_path_LD"
7247if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$LD" >&6; }
7250else
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "no" >&6; }
7253fi
cristyfd9dcd42010-08-08 18:07:02 +00007254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007257if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007258 $as_echo_n "(cached) " >&6
7259else
7260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261case `$LD -v 2>&1 </dev/null` in
7262*GNU* | *'with BFD'*)
7263 lt_cv_prog_gnu_ld=yes
7264 ;;
7265*)
7266 lt_cv_prog_gnu_ld=no
7267 ;;
7268esac
7269fi
cristy8b350f62009-11-15 23:12:43 +00007270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272with_gnu_ld=$lt_cv_prog_gnu_ld
7273
7274
7275
7276
7277
7278
7279
7280
7281
cristy3ed852e2009-09-05 21:47:34 +00007282
cristy837d6dc2010-02-27 01:16:57 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 ac_cv_prog_cc_c99=no
7289ac_save_CC=$CC
7290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292#include <stdarg.h>
7293#include <stdbool.h>
7294#include <stdlib.h>
7295#include <wchar.h>
7296#include <stdio.h>
7297
7298// Check varargs macros. These examples are taken from C99 6.10.3.5.
7299#define debug(...) fprintf (stderr, __VA_ARGS__)
7300#define showlist(...) puts (#__VA_ARGS__)
7301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7302static void
7303test_varargs_macros (void)
7304{
7305 int x = 1234;
7306 int y = 5678;
7307 debug ("Flag");
7308 debug ("X = %d\n", x);
7309 showlist (The first, second, and third items.);
7310 report (x>y, "x is %d but y is %d", x, y);
7311}
7312
7313// Check long long types.
7314#define BIG64 18446744073709551615ull
7315#define BIG32 4294967295ul
7316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7317#if !BIG_OK
7318 your preprocessor is broken;
7319#endif
7320#if BIG_OK
7321#else
7322 your preprocessor is broken;
7323#endif
7324static long long int bignum = -9223372036854775807LL;
7325static unsigned long long int ubignum = BIG64;
7326
7327struct incomplete_array
7328{
7329 int datasize;
7330 double data[];
7331};
7332
7333struct named_init {
7334 int number;
7335 const wchar_t *name;
7336 double average;
7337};
7338
7339typedef const char *ccp;
7340
7341static inline int
7342test_restrict (ccp restrict text)
7343{
7344 // See if C++-style comments work.
7345 // Iterate through items via the restricted pointer.
7346 // Also check for declarations in for loops.
7347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7348 continue;
7349 return 0;
7350}
7351
7352// Check varargs and va_copy.
7353static void
7354test_varargs (const char *format, ...)
7355{
7356 va_list args;
7357 va_start (args, format);
7358 va_list args_copy;
7359 va_copy (args_copy, args);
7360
7361 const char *str;
7362 int number;
7363 float fnumber;
7364
7365 while (*format)
7366 {
7367 switch (*format++)
7368 {
7369 case 's': // string
7370 str = va_arg (args_copy, const char *);
7371 break;
7372 case 'd': // int
7373 number = va_arg (args_copy, int);
7374 break;
7375 case 'f': // float
7376 fnumber = va_arg (args_copy, double);
7377 break;
7378 default:
7379 break;
7380 }
7381 }
7382 va_end (args_copy);
7383 va_end (args);
7384}
7385
7386int
7387main ()
7388{
7389
7390 // Check bool.
7391 _Bool success = false;
7392
7393 // Check restrict.
7394 if (test_restrict ("String literal") == 0)
7395 success = true;
7396 char *restrict newvar = "Another string";
7397
7398 // Check varargs.
7399 test_varargs ("s, d' f .", "string", 65, 34.234);
7400 test_varargs_macros ();
7401
7402 // Check flexible array members.
7403 struct incomplete_array *ia =
7404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7405 ia->datasize = 10;
7406 for (int i = 0; i < ia->datasize; ++i)
7407 ia->data[i] = i * 1.234;
7408
7409 // Check named initializers.
7410 struct named_init ni = {
7411 .number = 34,
7412 .name = L"Test wide string",
7413 .average = 543.34343,
7414 };
7415
7416 ni.number = 58;
7417
7418 int dynamic_array[ni.number];
7419 dynamic_array[ni.number - 1] = 543;
7420
7421 // work around unused variable warnings
7422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423 || dynamic_array[ni.number - 1] != 543);
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7430do
7431 CC="$ac_save_CC $ac_arg"
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_prog_cc_c99=$ac_arg
7434fi
7435rm -f core conftest.err conftest.$ac_objext
7436 test "x$ac_cv_prog_cc_c99" != "xno" && break
7437done
7438rm -f conftest.$ac_ext
7439CC=$ac_save_CC
7440
7441fi
7442# AC_CACHE_VAL
7443case "x$ac_cv_prog_cc_c99" in
7444 x)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446$as_echo "none needed" >&6; } ;;
7447 xno)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449$as_echo "unsupported" >&6; } ;;
7450 *)
7451 CC="$CC $ac_cv_prog_cc_c99"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7454esac
7455if test "x$ac_cv_prog_cc_c99" != xno; then :
7456
7457fi
7458
7459
cristy3ed852e2009-09-05 21:47:34 +00007460if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007465$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7466fi
7467set dummy $CC; ac_cc=`$as_echo "$2" |
7468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyfd9dcd42010-08-08 18:07:02 +00007469if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007470 $as_echo_n "(cached) " >&6
7471else
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483# Make sure it works both with $CC and with simple cc.
7484# We do the test twice because some compilers refuse to overwrite an
7485# existing .o file with -o, though they will create one.
7486ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7487rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007488if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
cristy8b350f62009-11-15 23:12:43 +00007492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007494 (eval "$ac_try") 2>&5
7495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } &&
7498 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
cristy8b350f62009-11-15 23:12:43 +00007502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007504 (eval "$ac_try") 2>&5
7505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007508then
7509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510 if test "x$CC" != xcc; then
7511 # Test first that cc exists at all.
7512 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007513 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
cristy8b350f62009-11-15 23:12:43 +00007517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007519 (eval "$ac_try") 2>&5
7520 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007523 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7524 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007525 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
cristy8b350f62009-11-15 23:12:43 +00007529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007531 (eval "$ac_try") 2>&5
7532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } &&
7535 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
cristy8b350f62009-11-15 23:12:43 +00007539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007541 (eval "$ac_try") 2>&5
7542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007545 then
7546 # cc works too.
7547 :
7548 else
7549 # cc exists but doesn't like -o.
7550 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7551 fi
7552 fi
7553 fi
7554else
7555 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7556fi
7557rm -f core conftest*
7558
7559fi
7560if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007562$as_echo "yes" >&6; }
7563else
cristy8b350f62009-11-15 23:12:43 +00007564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007565$as_echo "no" >&6; }
7566
cristy8b350f62009-11-15 23:12:43 +00007567$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007568
7569fi
7570
7571# FIXME: we rely on the cache variable name because
7572# there is no other way.
7573set dummy $CC
7574am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576if test "$am_t" != yes; then
7577 # Losing compiler, so override with the script.
7578 # FIXME: It is wrong to rewrite CC.
7579 # But if we don't then we get into trouble of one sort or another.
7580 # A longer-term fix would be to have automake use am__CC in this case,
7581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582 CC="$am_aux_dir/compile $CC"
7583fi
7584
7585
cristy92703d82010-04-26 00:18:18 +00007586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007590else
cristy92703d82010-04-26 00:18:18 +00007591 ac_cv_cflags_warn_all="no, unknown"
7592
7593 ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 ac_save_CFLAGS="$CFLAGS"
7600for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7601do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
7608return 0;
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007615fi
cristy92703d82010-04-26 00:18:18 +00007616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617done
7618 CFLAGS="$ac_save_CFLAGS"
7619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007624
7625
cristy92703d82010-04-26 00:18:18 +00007626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628$as_echo "$ac_cv_cflags_warn_all" >&6; }
7629case ".$ac_cv_cflags_warn_all" in
7630 .ok|.ok,*) ;;
7631 .|.no|.no,*)
7632 ;;
7633 *)
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646 fi
7647 ;;
7648esac
cristy3ed852e2009-09-05 21:47:34 +00007649
cristya0b81c32010-01-22 02:54:33 +00007650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00007655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00007663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy8b350f62009-11-15 23:12:43 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007697if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "yes" >&6; }
7701
cristy8b350f62009-11-15 23:12:43 +00007702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no" >&6; }
7709fi
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no" >&6; }
7713fi
7714
7715
7716
cristy0d3a6382010-04-26 00:45:55 +00007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718$as_echo_n "checking for __attribute__... " >&6; }
7719if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <stdlib.h>
7725 static void foo(void) __attribute__ ((unused));
7726 static void
7727 foo(void) {
7728 exit(1);
7729 }
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7741else
7742 ax_cv___attribute__=no
7743
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749$as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7751
7752$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754 fi
7755
7756
cristy3ed852e2009-09-05 21:47:34 +00007757
7758if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007764if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007765 $as_echo_n "(cached) " >&6
7766else
7767 case $PKG_CONFIG in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007781 break 2
7782 fi
7783done
cristy8b350f62009-11-15 23:12:43 +00007784 done
cristy3ed852e2009-09-05 21:47:34 +00007785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007793$as_echo "$PKG_CONFIG" >&6; }
7794else
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007807if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 $as_echo_n "(cached) " >&6
7809else
7810 case $ac_pt_PKG_CONFIG in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824 break 2
7825 fi
7826done
cristy8b350f62009-11-15 23:12:43 +00007827 done
cristy3ed852e2009-09-05 21:47:34 +00007828IFS=$as_save_IFS
7829
7830 ;;
7831esac
7832fi
7833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007836$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837else
cristy8b350f62009-11-15 23:12:43 +00007838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo "no" >&6; }
7840fi
7841
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7843 PKG_CONFIG=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846yes:)
cristy8b350f62009-11-15 23:12:43 +00007847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7852 fi
7853else
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855fi
7856
7857fi
7858if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007864$as_echo "yes" >&6; }
7865 else
cristy8b350f62009-11-15 23:12:43 +00007866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo "no" >&6; }
7868 PKG_CONFIG=""
7869 fi
7870
7871fi
7872
7873#
cristy3ed852e2009-09-05 21:47:34 +00007874# Enable run-time checking.
7875#
7876# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007877if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879else
7880 enable_bounds_checking='no'
7881fi
7882
7883
7884if test "$enable_bounds_checking" = yes; then
7885
cristy8b350f62009-11-15 23:12:43 +00007886$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007887
7888fi
7889
7890#
7891# Tests for Windows
7892#
7893
7894
cristy0d3a6382010-04-26 00:45:55 +00007895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906#ifndef _MSC_VER
7907 choke me
7908#endif
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ax_compiler_ms=yes
7916else
7917 ax_compiler_ms=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007925
7926GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007927native_win32_build='no'
7928cygwin_build='no'
7929case "${host_os}" in
7930 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007931 cygwin_build='yes'
7932 GDI32_LIBS='-lgdi32'
7933 ;;
7934 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7937 ;;
7938esac
7939if test "${GDI32_LIBS}x" != 'x'; then
7940
cristy8b350f62009-11-15 23:12:43 +00007941$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007942
7943fi
7944
7945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7948else
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7951fi
7952
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7956else
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7959fi
7960
7961 if test "${cygwin_build}" = 'yes' ; then
7962 CYGWIN_BUILD_TRUE=
7963 CYGWIN_BUILD_FALSE='#'
7964else
7965 CYGWIN_BUILD_TRUE='#'
7966 CYGWIN_BUILD_FALSE=
7967fi
7968
7969 if test "x${CC}" = 'xcl.exe' ; then
7970 USING_CL_TRUE=
7971 USING_CL_FALSE='#'
7972else
7973 USING_CL_TRUE='#'
7974 USING_CL_FALSE=
7975fi
7976
7977
7978WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981#
7982# Compiler flags tweaks
7983#
7984if test "${GCC}" != "yes"; then
7985 case "${host}" in
7986 *-*-hpux* )
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-AA'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -AA"
7993 fi
7994 ;;
7995 *-dec-osf5.* )
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999 else
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001 fi
8002 esac
8003fi
8004
8005# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008008if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 $as_echo_n "(cached) " >&6
8010else
8011
8012im_cv_ld_lazyload='none'
8013case "${host}" in
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8017 fi
8018 ;;
8019esac
8020
8021fi
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "$im_cv_ld_lazyload" >&6; }
8024if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8027 else
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029 fi
8030fi
8031
8032case "$host" in
8033*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008034 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008035if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037else
8038 build_osxuniversal=no
8039fi
8040
8041
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
cristyfd9dcd42010-08-08 18:07:02 +00008044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008045Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008047 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008048 fi
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 fi
8053 ;;
8054esac
8055
8056# Enable support for threads
8057
8058# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008059if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008060 withval=$with_threads; with_threads=$withval
8061else
8062 with_threads='yes'
8063fi
8064
8065
8066have_threads=no
8067if test "$with_threads" != 'no'; then
8068
8069
8070
8071ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
cristy964cb7f2010-04-25 23:18:00 +00008077ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008078
8079# We used to check for pthread.h first, but this fails if pthread.h
8080# requires special compiler flags (e.g. on True64 or Sequent).
8081# It gets checked for in the link test anyway.
8082
8083# First of all, check if the user has set any of the PTHREAD_LIBS,
8084# etcetera environment variables, and if threads linking works using
8085# them:
8086if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089 save_LIBS="$LIBS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008094/* end confdefs.h. */
8095
8096/* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102char pthread_join ();
8103int
8104main ()
8105{
8106return pthread_join ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008111if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008112 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008113fi
cristy8b350f62009-11-15 23:12:43 +00008114rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117$as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008119 PTHREAD_LIBS=""
8120 PTHREAD_CFLAGS=""
8121 fi
8122 LIBS="$save_LIBS"
8123 CFLAGS="$save_CFLAGS"
8124fi
8125
8126# We must check for the threads library under a number of different
8127# names; the ordering is very important because some systems
8128# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129# libraries is broken (non-POSIX).
8130
8131# Create a list of thread flags to try. Items starting with a "-" are
8132# C compiler flags, and other items are library names, except for "none"
8133# which indicates that we try without any flags at all, and "pthread-config"
8134# which is a program returning the flags for the Pth emulation library.
8135
cristy964cb7f2010-04-25 23:18:00 +00008136ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008137
8138# The ordering *is* (sometimes) important. Some notes on the
8139# individual items follow:
8140
8141# pthreads: AIX (must check this before -lpthread)
8142# none: in case threads are in libc; should be tried before -Kthread and
8143# other compiler flags to prevent continual compiler warnings
8144# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148# -pthreads: Solaris/gcc
8149# -mthreads: Mingw32/gcc, Lynx/gcc
8150# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151# doesn't hurt to check since this sometimes defines pthreads too;
8152# also defines -D_REENTRANT)
8153# ... -mt is also the pthreads flag for HP/aCC
8154# pthread: Linux, etcetera
8155# --thread-safe: KAI C++
8156# pthread-config: use pthread-config program (for GNU Pth library)
8157
8158case "${host_cpu}-${host_os}" in
8159 *solaris*)
8160
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8168
cristy964cb7f2010-04-25 23:18:00 +00008169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008170 ;;
cristy964cb7f2010-04-25 23:18:00 +00008171
8172 *-darwin*)
cristy3b472e52010-09-23 16:11:43 +00008173 ax_pthread_flags="-pthread $ax_pthread_flags"
cristy964cb7f2010-04-25 23:18:00 +00008174 ;;
cristy3ed852e2009-09-05 21:47:34 +00008175esac
8176
cristy964cb7f2010-04-25 23:18:00 +00008177if test x"$ax_pthread_ok" = xno; then
8178for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008179
8180 case $flag in
8181 none)
cristy8b350f62009-11-15 23:12:43 +00008182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008183$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184 ;;
8185
8186 -*)
cristy8b350f62009-11-15 23:12:43 +00008187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008188$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8190 ;;
8191
8192 pthread-config)
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008196$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008197if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008198 $as_echo_n "(cached) " >&6
8199else
cristy964cb7f2010-04-25 23:18:00 +00008200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008210 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008212 break 2
8213 fi
8214done
cristy8b350f62009-11-15 23:12:43 +00008215 done
cristy3ed852e2009-09-05 21:47:34 +00008216IFS=$as_save_IFS
8217
cristy964cb7f2010-04-25 23:18:00 +00008218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008219fi
8220fi
cristy964cb7f2010-04-25 23:18:00 +00008221ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008225else
cristy8b350f62009-11-15 23:12:43 +00008226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008227$as_echo "no" >&6; }
8228fi
8229
8230
cristy964cb7f2010-04-25 23:18:00 +00008231 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234 ;;
8235
8236 *)
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8240 ;;
8241 esac
8242
8243 save_LIBS="$LIBS"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008258/* end confdefs.h. */
8259#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008262int
8263main ()
8264{
cristy964cb7f2010-04-25 23:18:00 +00008265pthread_t th; pthread_attr_t attr;
cristy3b472e52010-09-23 16:11:43 +00008266 pthread_create(&th,0,start_routine,0);
cristy964cb7f2010-04-25 23:18:00 +00008267 pthread_join(th, 0);
8268 pthread_attr_init(&attr);
8269 pthread_cleanup_push(routine, 0);
cristy964cb7f2010-04-25 23:18:00 +00008270 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008271 ;
8272 return 0;
8273}
8274_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008275if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008276 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008277fi
cristy8b350f62009-11-15 23:12:43 +00008278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008280
8281 LIBS="$save_LIBS"
8282 CFLAGS="$save_CFLAGS"
8283
cristy964cb7f2010-04-25 23:18:00 +00008284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285$as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008287 break;
8288 fi
8289
8290 PTHREAD_LIBS=""
8291 PTHREAD_CFLAGS=""
8292done
8293fi
8294
8295# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008296if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008297 save_LIBS="$LIBS"
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo_n "checking for joinable pthread attribute... " >&6; }
8305 attr_name=unknown
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008308/* end confdefs.h. */
8309#include <pthread.h>
8310int
8311main ()
8312{
8313int attr=$attr; return attr;
8314 ;
8315 return 0;
8316}
8317_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008319 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008320fi
cristy8b350f62009-11-15 23:12:43 +00008321rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008323 done
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328cat >>confdefs.h <<_ACEOF
8329#define PTHREAD_CREATE_JOINABLE $attr_name
8330_ACEOF
8331
8332 fi
8333
cristy8b350f62009-11-15 23:12:43 +00008334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008335$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336 flag=no
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340 esac
cristy8b350f62009-11-15 23:12:43 +00008341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008342$as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345 fi
8346
8347 LIBS="$save_LIBS"
8348 CFLAGS="$save_CFLAGS"
8349
8350 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008358if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00008371 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008373 break 2
8374 fi
8375done
cristy8b350f62009-11-15 23:12:43 +00008376 done
cristy3ed852e2009-09-05 21:47:34 +00008377IFS=$as_save_IFS
8378
cristy3ed852e2009-09-05 21:47:34 +00008379fi
8380fi
8381PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo "$PTHREAD_CC" >&6; }
8385else
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo "no" >&6; }
8388fi
8389
cristy736173a2009-09-20 21:18:22 +00008390
8391 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008392done
cristy736173a2009-09-20 21:18:22 +00008393test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008394
cristy736173a2009-09-20 21:18:22 +00008395 else
8396 PTHREAD_CC=$CC
8397 fi
cristy3ed852e2009-09-05 21:47:34 +00008398else
cristy736173a2009-09-20 21:18:22 +00008399 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008400fi
8401
cristy3ed852e2009-09-05 21:47:34 +00008402
8403
8404
8405
8406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008407if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008408
cristy8b350f62009-11-15 23:12:43 +00008409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008410
8411 :
8412else
cristy964cb7f2010-04-25 23:18:00 +00008413 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008414
8415fi
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristy7acf8fb2010-09-23 19:58:53 +00008423 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008424 have_threads=yes
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00008430$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431 CC="$PTHREAD_CC"
8432 fi
cristyb9de14a2010-09-23 16:02:17 +00008433 if test "$CXX" != "$PTHREAD_CXX"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8435$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8436 CXX="$PTHREAD_CXX"
8437 fi
cristy55bf91c2010-09-24 00:29:41 +00008438
8439$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8440
cristy3ed852e2009-09-05 21:47:34 +00008441 fi
8442fi
8443
8444# Enable support for OpenMP
8445if test "$have_threads" != 'yes'; then
8446 ac_cv_prog_c_openmp=unsupported
8447fi
8448
8449 OPENMP_CFLAGS=
8450 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008451if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008452 enableval=$enable_openmp;
8453fi
8454
8455 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008457$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008458if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008459 $as_echo_n "(cached) " >&6
8460else
cristy8b350f62009-11-15 23:12:43 +00008461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008463
8464#ifndef _OPENMP
8465 choke me
8466#endif
8467#include <omp.h>
8468int main () { return omp_get_num_threads (); }
8469
8470_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008472 ac_cv_prog_c_openmp='none needed'
8473else
cristy8b350f62009-11-15 23:12:43 +00008474 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008475 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8476 ac_save_CFLAGS=$CFLAGS
8477 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008480
8481#ifndef _OPENMP
8482 choke me
8483#endif
8484#include <omp.h>
8485int main () { return omp_get_num_threads (); }
8486
8487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008489 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008490fi
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 +00008493 CFLAGS=$ac_save_CFLAGS
8494 if test "$ac_cv_prog_c_openmp" != unsupported; then
8495 break
8496 fi
8497 done
8498fi
cristy8b350f62009-11-15 23:12:43 +00008499rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008501fi
cristy8b350f62009-11-15 23:12:43 +00008502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008503$as_echo "$ac_cv_prog_c_openmp" >&6; }
8504 case $ac_cv_prog_c_openmp in #(
8505 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008506 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008507 *)
cristy8b350f62009-11-15 23:12:43 +00008508 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008509 esac
8510 fi
8511
8512
8513CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8514MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8515
cristy391f1ce2010-09-09 17:23:28 +00008516if test "$enable_openmp" != no; then
8517 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8518 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8519 fi
8520fi
cristy3ed852e2009-09-05 21:47:34 +00008521
cristy736173a2009-09-20 21:18:22 +00008522# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008523
cristy7acf8fb2010-09-23 19:58:53 +00008524
8525
8526ac_ext=c
8527ac_cpp='$CPP $CPPFLAGS'
8528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531
8532ax_pthread_ok=no
8533
8534# We used to check for pthread.h first, but this fails if pthread.h
8535# requires special compiler flags (e.g. on True64 or Sequent).
8536# It gets checked for in the link test anyway.
8537
8538# First of all, check if the user has set any of the PTHREAD_LIBS,
8539# etcetera environment variables, and if threads linking works using
8540# them:
8541if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8542 save_CFLAGS="$CFLAGS"
8543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8544 save_LIBS="$LIBS"
8545 LIBS="$PTHREAD_LIBS $LIBS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8547$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551/* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
8554#ifdef __cplusplus
8555extern "C"
8556#endif
8557char pthread_join ();
8558int
8559main ()
8560{
8561return pthread_join ();
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_link "$LINENO"; then :
8567 ax_pthread_ok=yes
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8572$as_echo "$ax_pthread_ok" >&6; }
8573 if test x"$ax_pthread_ok" = xno; then
8574 PTHREAD_LIBS=""
8575 PTHREAD_CFLAGS=""
8576 fi
8577 LIBS="$save_LIBS"
8578 CFLAGS="$save_CFLAGS"
8579fi
8580
8581# We must check for the threads library under a number of different
8582# names; the ordering is very important because some systems
8583# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8584# libraries is broken (non-POSIX).
8585
8586# Create a list of thread flags to try. Items starting with a "-" are
8587# C compiler flags, and other items are library names, except for "none"
8588# which indicates that we try without any flags at all, and "pthread-config"
8589# which is a program returning the flags for the Pth emulation library.
8590
8591ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8592
8593# The ordering *is* (sometimes) important. Some notes on the
8594# individual items follow:
8595
8596# pthreads: AIX (must check this before -lpthread)
8597# none: in case threads are in libc; should be tried before -Kthread and
8598# other compiler flags to prevent continual compiler warnings
8599# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8600# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8601# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8602# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8603# -pthreads: Solaris/gcc
8604# -mthreads: Mingw32/gcc, Lynx/gcc
8605# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8606# doesn't hurt to check since this sometimes defines pthreads too;
8607# also defines -D_REENTRANT)
8608# ... -mt is also the pthreads flag for HP/aCC
8609# pthread: Linux, etcetera
8610# --thread-safe: KAI C++
8611# pthread-config: use pthread-config program (for GNU Pth library)
8612
8613case "${host_cpu}-${host_os}" in
8614 *solaris*)
8615
8616 # On Solaris (at least, for some versions), libc contains stubbed
8617 # (non-functional) versions of the pthreads routines, so link-based
8618 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8619 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8620 # a function called by this macro, so we could check for that, but
8621 # who knows whether they'll stub that too in a future libc.) So,
8622 # we'll just look for -pthreads and -lpthread first:
8623
8624 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8625 ;;
8626
8627 *-darwin*)
8628 ax_pthread_flags="-pthread $ax_pthread_flags"
8629 ;;
8630esac
8631
8632if test x"$ax_pthread_ok" = xno; then
8633for flag in $ax_pthread_flags; do
8634
8635 case $flag in
8636 none)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8638$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8639 ;;
8640
8641 -*)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8643$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8644 PTHREAD_CFLAGS="$flag"
8645 ;;
8646
8647 pthread-config)
8648 # Extract the first word of "pthread-config", so it can be a program name with args.
8649set dummy pthread-config; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 if test -n "$ax_pthread_config"; then
8656 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_ax_pthread_config="yes"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670 done
8671IFS=$as_save_IFS
8672
8673 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8674fi
8675fi
8676ax_pthread_config=$ac_cv_prog_ax_pthread_config
8677if test -n "$ax_pthread_config"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8679$as_echo "$ax_pthread_config" >&6; }
8680else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
8683fi
8684
8685
8686 if test x"$ax_pthread_config" = xno; then continue; fi
8687 PTHREAD_CFLAGS="`pthread-config --cflags`"
8688 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8689 ;;
8690
8691 *)
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8693$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8694 PTHREAD_LIBS="-l$flag"
8695 ;;
8696 esac
8697
8698 save_LIBS="$LIBS"
8699 save_CFLAGS="$CFLAGS"
8700 LIBS="$PTHREAD_LIBS $LIBS"
8701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8702
8703 # Check for various functions. We must include pthread.h,
8704 # since some functions may be macros. (On the Sequent, we
8705 # need a special flag -Kthread to make this header compile.)
8706 # We check for pthread_join because it is in -lpthread on IRIX
8707 # while pthread_create is in libc. We check for pthread_attr_init
8708 # due to DEC craziness with -lpthreads. We check for
8709 # pthread_cleanup_push because it is one of the few pthread
8710 # functions on Solaris that doesn't have a non-functional libc stub.
8711 # We try pthread_create on general principles.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h. */
8714#include <pthread.h>
8715 static void routine(void* a) {a=0;}
8716 static void* start_routine(void* a) {return a;}
8717int
8718main ()
8719{
8720pthread_t th; pthread_attr_t attr;
8721 pthread_create(&th,0,start_routine,0);
8722 pthread_join(th, 0);
8723 pthread_attr_init(&attr);
8724 pthread_cleanup_push(routine, 0);
8725 pthread_cleanup_pop(0);
8726 ;
8727 return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_link "$LINENO"; then :
8731 ax_pthread_ok=yes
8732fi
8733rm -f core conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735
8736 LIBS="$save_LIBS"
8737 CFLAGS="$save_CFLAGS"
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8740$as_echo "$ax_pthread_ok" >&6; }
8741 if test "x$ax_pthread_ok" = xyes; then
8742 break;
8743 fi
8744
8745 PTHREAD_LIBS=""
8746 PTHREAD_CFLAGS=""
8747done
8748fi
8749
8750# Various other checks:
8751if test "x$ax_pthread_ok" = xyes; then
8752 save_LIBS="$LIBS"
8753 LIBS="$PTHREAD_LIBS $LIBS"
8754 save_CFLAGS="$CFLAGS"
8755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8756
8757 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8759$as_echo_n "checking for joinable pthread attribute... " >&6; }
8760 attr_name=unknown
8761 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h. */
8764#include <pthread.h>
8765int
8766main ()
8767{
8768int attr=$attr; return attr;
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773if ac_fn_c_try_link "$LINENO"; then :
8774 attr_name=$attr; break
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 done
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8780$as_echo "$attr_name" >&6; }
8781 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8782
8783cat >>confdefs.h <<_ACEOF
8784#define PTHREAD_CREATE_JOINABLE $attr_name
8785_ACEOF
8786
8787 fi
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8790$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8791 flag=no
8792 case "${host_cpu}-${host_os}" in
8793 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8794 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8795 esac
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8797$as_echo "${flag}" >&6; }
8798 if test "x$flag" != xno; then
8799 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8800 fi
8801
8802 LIBS="$save_LIBS"
8803 CFLAGS="$save_CFLAGS"
8804
8805 # More AIX lossage: must compile with xlc_r or cc_r
8806 if test x"$GCC" != xyes; then
8807 for ac_prog in xlc_r cc_r
8808do
8809 # Extract the first word of "$ac_prog", so it can be a program name with args.
8810set dummy $ac_prog; ac_word=$2
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812$as_echo_n "checking for $ac_word... " >&6; }
8813if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 if test -n "$PTHREAD_CC"; then
8817 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_prog_PTHREAD_CC="$ac_prog"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831 done
8832IFS=$as_save_IFS
8833
8834fi
8835fi
8836PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8837if test -n "$PTHREAD_CC"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8839$as_echo "$PTHREAD_CC" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846 test -n "$PTHREAD_CC" && break
8847done
8848test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8849
8850 else
8851 PTHREAD_CC=$CC
8852 fi
8853else
8854 PTHREAD_CC="$CC"
8855fi
8856
8857
8858
8859
8860
8861# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8862if test x"$ax_pthread_ok" = xyes; then
8863
8864$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8865
8866 :
8867else
8868 ax_pthread_ok=no
8869
8870fi
8871ac_ext=c
8872ac_cpp='$CPP $CPPFLAGS'
8873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876
8877
8878
cristy43596fe2010-01-21 16:46:08 +00008879# Check whether --enable-opencl was given.
8880if test "${enable_opencl+set}" = set; then :
8881 enableval=$enable_opencl; disable_opencl=$enableval
8882else
8883 disable_opencl='yes'
8884fi
8885
8886
8887if test "$disable_opencl" = 'yes'; then
8888 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008889ac_cpp='$CPP $CPPFLAGS'
8890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
cristy43596fe2010-01-21 16:46:08 +00008894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008895$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008896if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008897 $as_echo_n "(cached) " >&6
8898else
cristy8b350f62009-11-15 23:12:43 +00008899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008900/* end confdefs.h. */
8901
8902int
8903main ()
8904{
8905#ifndef _MSC_VER
8906 choke me
8907#endif
8908
8909 ;
8910 return 0;
8911}
8912_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008913if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008914 ax_compiler_ms=yes
8915else
cristy8b350f62009-11-15 23:12:43 +00008916 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008917fi
cristy736173a2009-09-20 21:18:22 +00008918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919ax_cv_c_compiler_ms=$ax_compiler_ms
8920
8921fi
cristy8b350f62009-11-15 23:12:43 +00008922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008923$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008924 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008925 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8926fi
8927
cristy43596fe2010-01-21 16:46:08 +00008928 ax_save_CPPFLAGS=$CPPFLAGS
8929 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8930 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008931do :
8932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008935 cat >>confdefs.h <<_ACEOF
8936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8937_ACEOF
8938
8939fi
8940
8941done
8942
cristy43596fe2010-01-21 16:46:08 +00008943 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008944
cristy43596fe2010-01-21 16:46:08 +00008945 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008946do :
8947 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8948if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008949 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008950#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008951_ACEOF
8952
8953fi
8954
8955done
8956
8957
8958
8959
cristy43596fe2010-01-21 16:46:08 +00008960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008961$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008962if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008963 $as_echo_n "(cached) " >&6
8964else
8965 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008966 case $host_cpu in
8967 x86_64) ax_check_cl_libdir=lib64 ;;
8968 *) ax_check_cl_libdir=lib ;;
8969 esac
8970 ax_save_CPPFLAGS=$CPPFLAGS
8971 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8972 ax_save_LIBS=$LIBS
8973 LIBS=""
8974 ax_check_libs="-lOpenCL -lCL -lclparser"
8975 for ax_lib in $ax_check_libs; do
8976 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008977 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8978else
8979 ax_try_lib=$ax_lib
8980fi
cristy43596fe2010-01-21 16:46:08 +00008981 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008983/* end confdefs.h. */
8984
cristy43596fe2010-01-21 16:46:08 +00008985 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8986 # include <windows.h>
8987 # endif
8988 # ifdef HAVE_CL_CL_H
8989 # include <CL/cl.h>
8990 # elif defined(HAVE_OPENCL_CL_H)
8991 # include <OpenCL/cl.h>
8992 # else
8993 # error no CL.h
8994 # endif
cristy736173a2009-09-20 21:18:22 +00008995int
8996main ()
8997{
cristyc7083c12009-10-14 03:16:55 +00008998clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008999 ;
9000 return 0;
9001}
9002_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009003if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009004 ax_cv_check_cl_libcl=$ax_try_lib; break
9005else
cristy8b350f62009-11-15 23:12:43 +00009006 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 +00009007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009008/* end confdefs.h. */
9009
cristy43596fe2010-01-21 16:46:08 +00009010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011 # include <windows.h>
9012 # endif
9013 # ifdef HAVE_CL_CL_H
9014 # include <CL/cl.h>
9015 # elif defined(HAVE_OPENCL_CL_H)
9016 # include <OpenCL/cl.h>
9017 # else
9018 # error no CL.h
9019 # endif
cristy736173a2009-09-20 21:18:22 +00009020int
9021main ()
9022{
cristyc7083c12009-10-14 03:16:55 +00009023clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009024 ;
9025 return 0;
9026}
9027_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009028if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009029 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9030else
cristy4dc44432009-12-30 23:30:06 +00009031 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 +00009032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009033/* end confdefs.h. */
9034
cristy43596fe2010-01-21 16:46:08 +00009035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036 # include <windows.h>
9037 # endif
9038 # ifdef HAVE_CL_CL_H
9039 # include <CL/cl.h>
9040 # elif defined(HAVE_OPENCL_CL_H)
9041 # include <OpenCL/cl.h>
9042 # else
9043 # error no CL.h
9044 # endif
cristy736173a2009-09-20 21:18:22 +00009045int
9046main ()
9047{
cristyc7083c12009-10-14 03:16:55 +00009048clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009049 ;
9050 return 0;
9051}
9052_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009053if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009055fi
cristy8b350f62009-11-15 23:12:43 +00009056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009058fi
cristy8b350f62009-11-15 23:12:43 +00009059rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009061fi
cristy8b350f62009-11-15 23:12:43 +00009062rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009064 done
cristy736173a2009-09-20 21:18:22 +00009065
cristy43596fe2010-01-21 16:46:08 +00009066 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009067 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009069/* end confdefs.h. */
9070
cristy43596fe2010-01-21 16:46:08 +00009071 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9072 # include <windows.h>
9073 # endif
9074 # ifdef HAVE_CL_CL_H
9075 # include <CL/cl.h>
9076 # elif defined(HAVE_OPENCL_CL_H)
9077 # include <OpenCL/cl.h>
9078 # else
9079 # error no CL.h
9080 # endif
cristy736173a2009-09-20 21:18:22 +00009081int
9082main ()
9083{
cristyc7083c12009-10-14 03:16:55 +00009084clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009085 ;
9086 return 0;
9087}
9088_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009089if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009090 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009091fi
cristy8b350f62009-11-15 23:12:43 +00009092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009094fi
9095
cristy43596fe2010-01-21 16:46:08 +00009096 LIBS=$ax_save_LIBS
9097 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009098fi
cristy8b350f62009-11-15 23:12:43 +00009099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009100$as_echo "$ax_cv_check_cl_libcl" >&6; }
9101
cristy43596fe2010-01-21 16:46:08 +00009102 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009103 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9104else
cristy99cc3002010-01-21 14:50:11 +00009105 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9106$as_echo "#define _OPENCL 1" >>confdefs.h
9107
cristy736173a2009-09-20 21:18:22 +00009108fi
cristy43596fe2010-01-21 16:46:08 +00009109 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009110ac_cpp='$CPP $CPPFLAGS'
9111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113ac_compiler_gnu=$ac_cv_c_compiler_gnu
9114
cristy43596fe2010-01-21 16:46:08 +00009115fi
cristy736173a2009-09-20 21:18:22 +00009116
9117
9118
9119
cristyc7083c12009-10-14 03:16:55 +00009120CFLAGS="$CL_CFLAGS $CFLAGS"
9121LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009122
cristy391f1ce2010-09-09 17:23:28 +00009123if test "$enable_opencl" != no; then
9124 if test "_OPENCL" = '1'; then
9125 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9126 fi
cristyfd9dcd42010-08-08 18:07:02 +00009127fi
cristy2e8b51d2009-10-17 18:26:15 +00009128
cristy3ed852e2009-09-05 21:47:34 +00009129########
9130#
9131# Check for large file support
9132#
9133########
9134# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009135if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009136 enableval=$enable_largefile;
9137fi
9138
9139if test "$enable_largefile" != no; then
9140
cristy8b350f62009-11-15 23:12:43 +00009141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009142$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009143if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009144 $as_echo_n "(cached) " >&6
9145else
9146 ac_cv_sys_largefile_CC=no
9147 if test "$GCC" != yes; then
9148 ac_save_CC=$CC
9149 while :; do
9150 # IRIX 6.2 and later do not support large files by default,
9151 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009153/* end confdefs.h. */
9154#include <sys/types.h>
9155 /* Check that off_t can represent 2**63 - 1 correctly.
9156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9157 since some C++ compilers masquerading as C compilers
9158 incorrectly reject 9223372036854775807. */
9159#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9161 && LARGE_OFF_T % 2147483647 == 1)
9162 ? 1 : -1];
9163int
9164main ()
9165{
9166
9167 ;
9168 return 0;
9169}
9170_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009171 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009172 break
cristy3ed852e2009-09-05 21:47:34 +00009173fi
cristy3ed852e2009-09-05 21:47:34 +00009174rm -f core conftest.err conftest.$ac_objext
9175 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009176 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009177 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009178fi
cristy3ed852e2009-09-05 21:47:34 +00009179rm -f core conftest.err conftest.$ac_objext
9180 break
9181 done
9182 CC=$ac_save_CC
9183 rm -f conftest.$ac_ext
9184 fi
9185fi
cristy8b350f62009-11-15 23:12:43 +00009186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009187$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9188 if test "$ac_cv_sys_largefile_CC" != no; then
9189 CC=$CC$ac_cv_sys_largefile_CC
9190 fi
9191
cristy8b350f62009-11-15 23:12:43 +00009192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009193$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009194if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009195 $as_echo_n "(cached) " >&6
9196else
9197 while :; do
cristy8b350f62009-11-15 23:12:43 +00009198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009199/* end confdefs.h. */
9200#include <sys/types.h>
9201 /* Check that off_t can represent 2**63 - 1 correctly.
9202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9203 since some C++ compilers masquerading as C compilers
9204 incorrectly reject 9223372036854775807. */
9205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9207 && LARGE_OFF_T % 2147483647 == 1)
9208 ? 1 : -1];
9209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009217if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009218 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009219fi
cristy3ed852e2009-09-05 21:47:34 +00009220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009222/* end confdefs.h. */
9223#define _FILE_OFFSET_BITS 64
9224#include <sys/types.h>
9225 /* Check that off_t can represent 2**63 - 1 correctly.
9226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227 since some C++ compilers masquerading as C compilers
9228 incorrectly reject 9223372036854775807. */
9229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231 && LARGE_OFF_T % 2147483647 == 1)
9232 ? 1 : -1];
9233int
9234main ()
9235{
9236
9237 ;
9238 return 0;
9239}
9240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009241if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009243fi
cristy3ed852e2009-09-05 21:47:34 +00009244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 ac_cv_sys_file_offset_bits=unknown
9246 break
9247done
9248fi
cristy8b350f62009-11-15 23:12:43 +00009249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009250$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9251case $ac_cv_sys_file_offset_bits in #(
9252 no | unknown) ;;
9253 *)
9254cat >>confdefs.h <<_ACEOF
9255#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9256_ACEOF
9257;;
9258esac
9259rm -rf conftest*
9260 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009262$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009263if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009264 $as_echo_n "(cached) " >&6
9265else
9266 while :; do
cristy8b350f62009-11-15 23:12:43 +00009267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009268/* end confdefs.h. */
9269#include <sys/types.h>
9270 /* Check that off_t can represent 2**63 - 1 correctly.
9271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9272 since some C++ compilers masquerading as C compilers
9273 incorrectly reject 9223372036854775807. */
9274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9276 && LARGE_OFF_T % 2147483647 == 1)
9277 ? 1 : -1];
9278int
9279main ()
9280{
9281
9282 ;
9283 return 0;
9284}
9285_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009287 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009288fi
cristy3ed852e2009-09-05 21:47:34 +00009289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009291/* end confdefs.h. */
9292#define _LARGE_FILES 1
9293#include <sys/types.h>
9294 /* Check that off_t can represent 2**63 - 1 correctly.
9295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9296 since some C++ compilers masquerading as C compilers
9297 incorrectly reject 9223372036854775807. */
9298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9300 && LARGE_OFF_T % 2147483647 == 1)
9301 ? 1 : -1];
9302int
9303main ()
9304{
9305
9306 ;
9307 return 0;
9308}
9309_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009310if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009311 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009312fi
cristy3ed852e2009-09-05 21:47:34 +00009313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 ac_cv_sys_large_files=unknown
9315 break
9316done
9317fi
cristy8b350f62009-11-15 23:12:43 +00009318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009319$as_echo "$ac_cv_sys_large_files" >&6; }
9320case $ac_cv_sys_large_files in #(
9321 no | unknown) ;;
9322 *)
9323cat >>confdefs.h <<_ACEOF
9324#define _LARGE_FILES $ac_cv_sys_large_files
9325_ACEOF
9326;;
9327esac
9328rm -rf conftest*
9329 fi
9330fi
9331
cristy8b350f62009-11-15 23:12:43 +00009332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009334if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 $as_echo_n "(cached) " >&6
9336else
9337 while :; do
cristy8b350f62009-11-15 23:12:43 +00009338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009339/* end confdefs.h. */
9340#include <sys/types.h> /* for off_t */
9341 #include <stdio.h>
9342int
9343main ()
9344{
9345int (*fp) (FILE *, off_t, int) = fseeko;
9346 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9347 ;
9348 return 0;
9349}
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009353fi
cristy8b350f62009-11-15 23:12:43 +00009354rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009357/* end confdefs.h. */
9358#define _LARGEFILE_SOURCE 1
9359#include <sys/types.h> /* for off_t */
9360 #include <stdio.h>
9361int
9362main ()
9363{
9364int (*fp) (FILE *, off_t, int) = fseeko;
9365 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9366 ;
9367 return 0;
9368}
9369_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009372fi
cristy8b350f62009-11-15 23:12:43 +00009373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009375 ac_cv_sys_largefile_source=unknown
9376 break
9377done
9378fi
cristy8b350f62009-11-15 23:12:43 +00009379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009380$as_echo "$ac_cv_sys_largefile_source" >&6; }
9381case $ac_cv_sys_largefile_source in #(
9382 no | unknown) ;;
9383 *)
9384cat >>confdefs.h <<_ACEOF
9385#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9386_ACEOF
9387;;
9388esac
9389rm -rf conftest*
9390
9391# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9392# in glibc 2.1.3, but that breaks too many other things.
9393# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9394if test $ac_cv_sys_largefile_source != unknown; then
9395
cristy8b350f62009-11-15 23:12:43 +00009396$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009397
9398fi
9399
9400LFS_CPPFLAGS=''
9401if test "$enable_largefile" != no; then
9402 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9403 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9404 else
cristy8b350f62009-11-15 23:12:43 +00009405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009406$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009407 if test "$cross_compiling" = yes; then :
9408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009410as_fn_error $? "cannot run test program while cross compiling
9411See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009412else
cristy8b350f62009-11-15 23:12:43 +00009413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009415#include <unistd.h>
9416 main () {
9417 exit(!(sizeof(off_t) == 8));
9418 }
9419_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009420if ac_fn_c_try_run "$LINENO"; then :
9421 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009422
cristy8b350f62009-11-15 23:12:43 +00009423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009424$as_echo "yes" >&6; }
9425else
cristy8b350f62009-11-15 23:12:43 +00009426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009427$as_echo "no" >&6; }
9428fi
cristy8b350f62009-11-15 23:12:43 +00009429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9430 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009431fi
9432
cristy3ed852e2009-09-05 21:47:34 +00009433 fi
9434 if test "$ac_cv_sys_large_files" != 'no'; then
9435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9436 fi
9437 if test "$ac_cv_sys_largefile_source" != 'no'; then
9438 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9439 fi
9440fi
9441
9442
9443#
9444# Configure libtool & libltdl
9445#
9446# Configure libtool
9447enable_dlopen=yes
9448
9449
9450
9451case `pwd` in
9452 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009454$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9455esac
9456
9457
9458
cristyfd9dcd42010-08-08 18:07:02 +00009459macro_version='2.2.10'
9460macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474ltmain="$ac_aux_dir/ltmain.sh"
9475
cristyfd9dcd42010-08-08 18:07:02 +00009476# Backslashify metacharacters that are still active within
9477# double-quoted strings.
9478sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9479
9480# Same as above, but do not quote variable references.
9481double_quote_subst='s/\(["`\\]\)/\\\1/g'
9482
9483# Sed substitution to delay expansion of an escaped shell variable in a
9484# double_quote_subst'ed string.
9485delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9486
9487# Sed substitution to delay expansion of an escaped single quote.
9488delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9489
9490# Sed substitution to avoid accidental globbing in evaled expressions
9491no_glob_subst='s/\*/\\\*/g'
9492
cristy8b350f62009-11-15 23:12:43 +00009493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009494$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009495if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009496 $as_echo_n "(cached) " >&6
9497else
9498 if test -n "$NM"; then
9499 # Let the user override the test.
9500 lt_cv_path_NM="$NM"
9501else
9502 lt_nm_to_check="${ac_tool_prefix}nm"
9503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9504 lt_nm_to_check="$lt_nm_to_check nm"
9505 fi
9506 for lt_tmp_nm in $lt_nm_to_check; do
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9509 IFS="$lt_save_ifs"
9510 test -z "$ac_dir" && ac_dir=.
9511 tmp_nm="$ac_dir/$lt_tmp_nm"
9512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9513 # Check to see if the nm accepts a BSD-compat flag.
9514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9515 # nm: unknown option "B" ignored
9516 # Tru64's nm complains that /dev/null is an invalid object file
9517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9518 */dev/null* | *'Invalid file or object type'*)
9519 lt_cv_path_NM="$tmp_nm -B"
9520 break
9521 ;;
9522 *)
9523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9524 */dev/null*)
9525 lt_cv_path_NM="$tmp_nm -p"
9526 break
9527 ;;
9528 *)
9529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9530 continue # so that we can try to find one that supports BSD flags
9531 ;;
9532 esac
9533 ;;
9534 esac
9535 fi
9536 done
9537 IFS="$lt_save_ifs"
9538 done
9539 : ${lt_cv_path_NM=no}
9540fi
9541fi
cristy8b350f62009-11-15 23:12:43 +00009542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009543$as_echo "$lt_cv_path_NM" >&6; }
9544if test "$lt_cv_path_NM" != "no"; then
9545 NM="$lt_cv_path_NM"
9546else
9547 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009548 if test -n "$DUMPBIN"; then :
9549 # Let the user override the test.
9550 else
9551 if test -n "$ac_tool_prefix"; then
9552 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009553 do
9554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009558if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009559 $as_echo_n "(cached) " >&6
9560else
9561 if test -n "$DUMPBIN"; then
9562 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009573 break 2
9574 fi
9575done
cristy8b350f62009-11-15 23:12:43 +00009576 done
cristy3ed852e2009-09-05 21:47:34 +00009577IFS=$as_save_IFS
9578
9579fi
9580fi
9581DUMPBIN=$ac_cv_prog_DUMPBIN
9582if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009584$as_echo "$DUMPBIN" >&6; }
9585else
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo "no" >&6; }
9588fi
9589
9590
9591 test -n "$DUMPBIN" && break
9592 done
9593fi
9594if test -z "$DUMPBIN"; then
9595 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009596 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009597do
9598 # Extract the first word of "$ac_prog", so it can be a program name with args.
9599set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009602if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009603 $as_echo_n "(cached) " >&6
9604else
9605 if test -n "$ac_ct_DUMPBIN"; then
9606 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9607else
9608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009617 break 2
9618 fi
9619done
cristy8b350f62009-11-15 23:12:43 +00009620 done
cristy3ed852e2009-09-05 21:47:34 +00009621IFS=$as_save_IFS
9622
9623fi
9624fi
9625ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9626if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628$as_echo "$ac_ct_DUMPBIN" >&6; }
9629else
cristy8b350f62009-11-15 23:12:43 +00009630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009631$as_echo "no" >&6; }
9632fi
9633
9634
9635 test -n "$ac_ct_DUMPBIN" && break
9636done
9637
9638 if test "x$ac_ct_DUMPBIN" = x; then
9639 DUMPBIN=":"
9640 else
9641 case $cross_compiling:$ac_tool_warned in
9642yes:)
cristy8b350f62009-11-15 23:12:43 +00009643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9645ac_tool_warned=yes ;;
9646esac
9647 DUMPBIN=$ac_ct_DUMPBIN
9648 fi
9649fi
9650
cristyfd9dcd42010-08-08 18:07:02 +00009651 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9652 *COFF*)
9653 DUMPBIN="$DUMPBIN -symbols"
9654 ;;
9655 *)
9656 DUMPBIN=:
9657 ;;
9658 esac
9659 fi
cristy3ed852e2009-09-05 21:47:34 +00009660
9661 if test "$DUMPBIN" != ":"; then
9662 NM="$DUMPBIN"
9663 fi
9664fi
9665test -z "$NM" && NM=nm
9666
9667
9668
9669
9670
9671
cristy8b350f62009-11-15 23:12:43 +00009672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009674if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009675 $as_echo_n "(cached) " >&6
9676else
9677 lt_cv_nm_interface="BSD nm"
9678 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009679 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009680 (eval "$ac_compile" 2>conftest.err)
9681 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009682 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009683 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9684 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009685 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009686 cat conftest.out >&5
9687 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9688 lt_cv_nm_interface="MS dumpbin"
9689 fi
9690 rm -f conftest*
9691fi
cristy8b350f62009-11-15 23:12:43 +00009692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009693$as_echo "$lt_cv_nm_interface" >&6; }
9694
9695# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009697$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009698if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009699 $as_echo_n "(cached) " >&6
9700else
9701 i=0
9702 teststring="ABCD"
9703
9704 case $build_os in
9705 msdosdjgpp*)
9706 # On DJGPP, this test can blow up pretty badly due to problems in libc
9707 # (any single argument exceeding 2000 bytes causes a buffer overrun
9708 # during glob expansion). Even if it were fixed, the result of this
9709 # check would be larger than it should be.
9710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9711 ;;
9712
9713 gnu*)
9714 # Under GNU Hurd, this test is not required because there is
9715 # no limit to the length of command line arguments.
9716 # Libtool will interpret -1 as no limit whatsoever
9717 lt_cv_sys_max_cmd_len=-1;
9718 ;;
9719
9720 cygwin* | mingw* | cegcc*)
9721 # On Win9x/ME, this test blows up -- it succeeds, but takes
9722 # about 5 minutes as the teststring grows exponentially.
9723 # Worse, since 9x/ME are not pre-emptively multitasking,
9724 # you end up with a "frozen" computer, even though with patience
9725 # the test eventually succeeds (with a max line length of 256k).
9726 # Instead, let's just punt: use the minimum linelength reported by
9727 # all of the supported platforms: 8192 (on NT/2K/XP).
9728 lt_cv_sys_max_cmd_len=8192;
9729 ;;
9730
cristyfd9dcd42010-08-08 18:07:02 +00009731 mint*)
9732 # On MiNT this can take a long time and run out of memory.
9733 lt_cv_sys_max_cmd_len=8192;
9734 ;;
9735
cristy3ed852e2009-09-05 21:47:34 +00009736 amigaos*)
9737 # On AmigaOS with pdksh, this test takes hours, literally.
9738 # So we just punt and use a minimum line length of 8192.
9739 lt_cv_sys_max_cmd_len=8192;
9740 ;;
9741
9742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9743 # This has been around since 386BSD, at least. Likely further.
9744 if test -x /sbin/sysctl; then
9745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9746 elif test -x /usr/sbin/sysctl; then
9747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9748 else
9749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9750 fi
9751 # And add a safety zone
9752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9754 ;;
9755
9756 interix*)
9757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9758 lt_cv_sys_max_cmd_len=196608
9759 ;;
9760
9761 osf*)
9762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9764 # nice to cause kernel panics so lets avoid the loop below.
9765 # First set a reasonable default.
9766 lt_cv_sys_max_cmd_len=16384
9767 #
9768 if test -x /sbin/sysconfig; then
9769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9771 esac
9772 fi
9773 ;;
9774 sco3.2v5*)
9775 lt_cv_sys_max_cmd_len=102400
9776 ;;
9777 sysv5* | sco5v6* | sysv4.2uw2*)
9778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9779 if test -n "$kargmax"; then
9780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9781 else
9782 lt_cv_sys_max_cmd_len=32768
9783 fi
9784 ;;
9785 *)
9786 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9787 if test -n "$lt_cv_sys_max_cmd_len"; then
9788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9790 else
9791 # Make teststring a little bigger before we do anything with it.
9792 # a 1K string should be a reasonable start.
9793 for i in 1 2 3 4 5 6 7 8 ; do
9794 teststring=$teststring$teststring
9795 done
9796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9797 # If test is not a shell built-in, we'll probably end up computing a
9798 # maximum length that is only half of the actual maximum length, but
9799 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009800 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9801 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009802 test $i != 17 # 1/2 MB should be enough
9803 do
9804 i=`expr $i + 1`
9805 teststring=$teststring$teststring
9806 done
9807 # Only check the string length outside the loop.
9808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9809 teststring=
9810 # Add a significant safety factor because C++ compilers can tack on
9811 # massive amounts of additional arguments before passing them to the
9812 # linker. It appears as though 1/2 is a usable value.
9813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9814 fi
9815 ;;
9816 esac
9817
9818fi
9819
9820if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009822$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9823else
cristy8b350f62009-11-15 23:12:43 +00009824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009825$as_echo "none" >&6; }
9826fi
9827max_cmd_len=$lt_cv_sys_max_cmd_len
9828
9829
9830
9831
9832
9833
9834: ${CP="cp -f"}
9835: ${MV="mv -f"}
9836: ${RM="rm -f"}
9837
cristy8b350f62009-11-15 23:12:43 +00009838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009839$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9840# Try some XSI features
9841xsi_shell=no
9842( _lt_dummy="a/b/c"
9843 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9844 = c,a/b,, \
9845 && eval 'test $(( 1 + 1 )) -eq 2 \
9846 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9847 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009849$as_echo "$xsi_shell" >&6; }
9850
9851
cristy8b350f62009-11-15 23:12:43 +00009852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9854lt_shell_append=no
9855( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9856 >/dev/null 2>&1 \
9857 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009859$as_echo "$lt_shell_append" >&6; }
9860
9861
9862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9863 lt_unset=unset
9864else
9865 lt_unset=false
9866fi
9867
9868
9869
9870
9871
9872# test EBCDIC or ASCII
9873case `echo X|tr X '\101'` in
9874 A) # ASCII based system
9875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9876 lt_SP2NL='tr \040 \012'
9877 lt_NL2SP='tr \015\012 \040\040'
9878 ;;
9879 *) # EBCDIC based system
9880 lt_SP2NL='tr \100 \n'
9881 lt_NL2SP='tr \r\n \100\100'
9882 ;;
9883esac
9884
9885
9886
9887
9888
9889
9890
9891
9892
cristy8b350f62009-11-15 23:12:43 +00009893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009894$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009895if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009896 $as_echo_n "(cached) " >&6
9897else
9898 lt_cv_ld_reload_flag='-r'
9899fi
cristy8b350f62009-11-15 23:12:43 +00009900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009901$as_echo "$lt_cv_ld_reload_flag" >&6; }
9902reload_flag=$lt_cv_ld_reload_flag
9903case $reload_flag in
9904"" | " "*) ;;
9905*) reload_flag=" $reload_flag" ;;
9906esac
9907reload_cmds='$LD$reload_flag -o $output$reload_objs'
9908case $host_os in
9909 darwin*)
9910 if test "$GCC" = yes; then
9911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9912 else
9913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9914 fi
9915 ;;
9916esac
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926if test -n "$ac_tool_prefix"; then
9927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9928set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009931if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009932 $as_echo_n "(cached) " >&6
9933else
9934 if test -n "$OBJDUMP"; then
9935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946 break 2
9947 fi
9948done
cristy8b350f62009-11-15 23:12:43 +00009949 done
cristy3ed852e2009-09-05 21:47:34 +00009950IFS=$as_save_IFS
9951
9952fi
9953fi
9954OBJDUMP=$ac_cv_prog_OBJDUMP
9955if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo "$OBJDUMP" >&6; }
9958else
cristy8b350f62009-11-15 23:12:43 +00009959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009960$as_echo "no" >&6; }
9961fi
9962
9963
9964fi
9965if test -z "$ac_cv_prog_OBJDUMP"; then
9966 ac_ct_OBJDUMP=$OBJDUMP
9967 # Extract the first word of "objdump", so it can be a program name with args.
9968set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009970$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009971if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009972 $as_echo_n "(cached) " >&6
9973else
9974 if test -n "$ac_ct_OBJDUMP"; then
9975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9976else
9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978for as_dir in $PATH
9979do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009986 break 2
9987 fi
9988done
cristy8b350f62009-11-15 23:12:43 +00009989 done
cristy3ed852e2009-09-05 21:47:34 +00009990IFS=$as_save_IFS
9991
9992fi
9993fi
9994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9995if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo "$ac_ct_OBJDUMP" >&6; }
9998else
cristy8b350f62009-11-15 23:12:43 +00009999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010000$as_echo "no" >&6; }
10001fi
10002
10003 if test "x$ac_ct_OBJDUMP" = x; then
10004 OBJDUMP="false"
10005 else
10006 case $cross_compiling:$ac_tool_warned in
10007yes:)
cristy8b350f62009-11-15 23:12:43 +000010008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010ac_tool_warned=yes ;;
10011esac
10012 OBJDUMP=$ac_ct_OBJDUMP
10013 fi
10014else
10015 OBJDUMP="$ac_cv_prog_OBJDUMP"
10016fi
10017
10018test -z "$OBJDUMP" && OBJDUMP=objdump
10019
10020
10021
10022
10023
10024
cristy8b350f62009-11-15 23:12:43 +000010025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010026$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010027if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010028 $as_echo_n "(cached) " >&6
10029else
10030 lt_cv_file_magic_cmd='$MAGIC_CMD'
10031lt_cv_file_magic_test_file=
10032lt_cv_deplibs_check_method='unknown'
10033# Need to set the preceding variable on all platforms that support
10034# interlibrary dependencies.
10035# 'none' -- dependencies not supported.
10036# `unknown' -- same as none, but documents that we really don't know.
10037# 'pass_all' -- all dependencies passed with no checks.
10038# 'test_compile' -- check by making test program.
10039# 'file_magic [[regex]]' -- check by looking for files in library path
10040# which responds to the $file_magic_cmd with a given extended regex.
10041# If you have `file' or equivalent on your system and you're not sure
10042# whether `pass_all' will *always* work, you probably want this one.
10043
10044case $host_os in
10045aix[4-9]*)
10046 lt_cv_deplibs_check_method=pass_all
10047 ;;
10048
10049beos*)
10050 lt_cv_deplibs_check_method=pass_all
10051 ;;
10052
10053bsdi[45]*)
10054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10055 lt_cv_file_magic_cmd='/usr/bin/file -L'
10056 lt_cv_file_magic_test_file=/shlib/libc.so
10057 ;;
10058
10059cygwin*)
10060 # func_win32_libid is a shell function defined in ltmain.sh
10061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10062 lt_cv_file_magic_cmd='func_win32_libid'
10063 ;;
10064
10065mingw* | pw32*)
10066 # Base MSYS/MinGW do not provide the 'file' command needed by
10067 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10068 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010069 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10070 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10072 lt_cv_file_magic_cmd='func_win32_libid'
10073 else
cristyfd9dcd42010-08-08 18:07:02 +000010074 # Keep this pattern in sync with the one in func_win32_libid.
10075 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 +000010076 lt_cv_file_magic_cmd='$OBJDUMP -f'
10077 fi
10078 ;;
10079
cristyfd9dcd42010-08-08 18:07:02 +000010080cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010081 # use the weaker test based on 'objdump'. See mingw*.
10082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10083 lt_cv_file_magic_cmd='$OBJDUMP -f'
10084 ;;
10085
10086darwin* | rhapsody*)
10087 lt_cv_deplibs_check_method=pass_all
10088 ;;
10089
10090freebsd* | dragonfly*)
10091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10092 case $host_cpu in
10093 i*86 )
10094 # Not sure whether the presence of OpenBSD here was a mistake.
10095 # Let's accept both of them until this is cleared up.
10096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10097 lt_cv_file_magic_cmd=/usr/bin/file
10098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10099 ;;
10100 esac
10101 else
10102 lt_cv_deplibs_check_method=pass_all
10103 fi
10104 ;;
10105
10106gnu*)
10107 lt_cv_deplibs_check_method=pass_all
10108 ;;
10109
cristyfd9dcd42010-08-08 18:07:02 +000010110haiku*)
10111 lt_cv_deplibs_check_method=pass_all
10112 ;;
10113
cristy3ed852e2009-09-05 21:47:34 +000010114hpux10.20* | hpux11*)
10115 lt_cv_file_magic_cmd=/usr/bin/file
10116 case $host_cpu in
10117 ia64*)
10118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10120 ;;
10121 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010122 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 +000010123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10124 ;;
10125 *)
cristyfd9dcd42010-08-08 18:07:02 +000010126 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 +000010127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10128 ;;
10129 esac
10130 ;;
10131
10132interix[3-9]*)
10133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10135 ;;
10136
10137irix5* | irix6* | nonstopux*)
10138 case $LD in
10139 *-32|*"-32 ") libmagic=32-bit;;
10140 *-n32|*"-n32 ") libmagic=N32;;
10141 *-64|*"-64 ") libmagic=64-bit;;
10142 *) libmagic=never-match;;
10143 esac
10144 lt_cv_deplibs_check_method=pass_all
10145 ;;
10146
10147# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010148linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152netbsd*)
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10155 else
10156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10157 fi
10158 ;;
10159
10160newos6*)
10161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10162 lt_cv_file_magic_cmd=/usr/bin/file
10163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10164 ;;
10165
10166*nto* | *qnx*)
10167 lt_cv_deplibs_check_method=pass_all
10168 ;;
10169
10170openbsd*)
10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10173 else
10174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10175 fi
10176 ;;
10177
10178osf3* | osf4* | osf5*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182rdos*)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185
10186solaris*)
10187 lt_cv_deplibs_check_method=pass_all
10188 ;;
10189
10190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191 lt_cv_deplibs_check_method=pass_all
10192 ;;
10193
10194sysv4 | sysv4.3*)
10195 case $host_vendor in
10196 motorola)
10197 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]'
10198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10199 ;;
10200 ncr)
10201 lt_cv_deplibs_check_method=pass_all
10202 ;;
10203 sequent)
10204 lt_cv_file_magic_cmd='/bin/file'
10205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10206 ;;
10207 sni)
10208 lt_cv_file_magic_cmd='/bin/file'
10209 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10210 lt_cv_file_magic_test_file=/lib/libc.so
10211 ;;
10212 siemens)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215 pc)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218 esac
10219 ;;
10220
10221tpf*)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224esac
10225
10226fi
cristy8b350f62009-11-15 23:12:43 +000010227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010228$as_echo "$lt_cv_deplibs_check_method" >&6; }
10229file_magic_cmd=$lt_cv_file_magic_cmd
10230deplibs_check_method=$lt_cv_deplibs_check_method
10231test -z "$deplibs_check_method" && deplibs_check_method=unknown
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244if test -n "$ac_tool_prefix"; then
10245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10246set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010248$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010249if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010250 $as_echo_n "(cached) " >&6
10251else
10252 if test -n "$AR"; then
10253 ac_cv_prog_AR="$AR" # Let the user override the test.
10254else
10255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256for as_dir in $PATH
10257do
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010264 break 2
10265 fi
10266done
cristy8b350f62009-11-15 23:12:43 +000010267 done
cristy3ed852e2009-09-05 21:47:34 +000010268IFS=$as_save_IFS
10269
10270fi
10271fi
10272AR=$ac_cv_prog_AR
10273if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010275$as_echo "$AR" >&6; }
10276else
cristy8b350f62009-11-15 23:12:43 +000010277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010278$as_echo "no" >&6; }
10279fi
10280
10281
10282fi
10283if test -z "$ac_cv_prog_AR"; then
10284 ac_ct_AR=$AR
10285 # Extract the first word of "ar", so it can be a program name with args.
10286set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010288$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010290 $as_echo_n "(cached) " >&6
10291else
10292 if test -n "$ac_ct_AR"; then
10293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304 break 2
10305 fi
10306done
cristy8b350f62009-11-15 23:12:43 +000010307 done
cristy3ed852e2009-09-05 21:47:34 +000010308IFS=$as_save_IFS
10309
10310fi
10311fi
10312ac_ct_AR=$ac_cv_prog_ac_ct_AR
10313if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo "$ac_ct_AR" >&6; }
10316else
cristy8b350f62009-11-15 23:12:43 +000010317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010318$as_echo "no" >&6; }
10319fi
10320
10321 if test "x$ac_ct_AR" = x; then
10322 AR="false"
10323 else
10324 case $cross_compiling:$ac_tool_warned in
10325yes:)
cristy8b350f62009-11-15 23:12:43 +000010326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328ac_tool_warned=yes ;;
10329esac
10330 AR=$ac_ct_AR
10331 fi
10332else
10333 AR="$ac_cv_prog_AR"
10334fi
10335
10336test -z "$AR" && AR=ar
10337test -z "$AR_FLAGS" && AR_FLAGS=cru
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349if test -n "$ac_tool_prefix"; then
10350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10351set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010353$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010354if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010355 $as_echo_n "(cached) " >&6
10356else
10357 if test -n "$STRIP"; then
10358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010369 break 2
10370 fi
10371done
cristy8b350f62009-11-15 23:12:43 +000010372 done
cristy3ed852e2009-09-05 21:47:34 +000010373IFS=$as_save_IFS
10374
10375fi
10376fi
10377STRIP=$ac_cv_prog_STRIP
10378if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo "$STRIP" >&6; }
10381else
cristy8b350f62009-11-15 23:12:43 +000010382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010383$as_echo "no" >&6; }
10384fi
10385
10386
10387fi
10388if test -z "$ac_cv_prog_STRIP"; then
10389 ac_ct_STRIP=$STRIP
10390 # Extract the first word of "strip", so it can be a program name with args.
10391set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010394if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010395 $as_echo_n "(cached) " >&6
10396else
10397 if test -n "$ac_ct_STRIP"; then
10398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10399else
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10407 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010409 break 2
10410 fi
10411done
cristy8b350f62009-11-15 23:12:43 +000010412 done
cristy3ed852e2009-09-05 21:47:34 +000010413IFS=$as_save_IFS
10414
10415fi
10416fi
10417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10418if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010420$as_echo "$ac_ct_STRIP" >&6; }
10421else
cristy8b350f62009-11-15 23:12:43 +000010422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010423$as_echo "no" >&6; }
10424fi
10425
10426 if test "x$ac_ct_STRIP" = x; then
10427 STRIP=":"
10428 else
10429 case $cross_compiling:$ac_tool_warned in
10430yes:)
cristy8b350f62009-11-15 23:12:43 +000010431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433ac_tool_warned=yes ;;
10434esac
10435 STRIP=$ac_ct_STRIP
10436 fi
10437else
10438 STRIP="$ac_cv_prog_STRIP"
10439fi
10440
10441test -z "$STRIP" && STRIP=:
10442
10443
10444
10445
10446
10447
10448if test -n "$ac_tool_prefix"; then
10449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10450set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010452$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010453if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010454 $as_echo_n "(cached) " >&6
10455else
10456 if test -n "$RANLIB"; then
10457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010468 break 2
10469 fi
10470done
cristy8b350f62009-11-15 23:12:43 +000010471 done
cristy3ed852e2009-09-05 21:47:34 +000010472IFS=$as_save_IFS
10473
10474fi
10475fi
10476RANLIB=$ac_cv_prog_RANLIB
10477if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010479$as_echo "$RANLIB" >&6; }
10480else
cristy8b350f62009-11-15 23:12:43 +000010481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010482$as_echo "no" >&6; }
10483fi
10484
10485
10486fi
10487if test -z "$ac_cv_prog_RANLIB"; then
10488 ac_ct_RANLIB=$RANLIB
10489 # Extract the first word of "ranlib", so it can be a program name with args.
10490set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010493if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010494 $as_echo_n "(cached) " >&6
10495else
10496 if test -n "$ac_ct_RANLIB"; then
10497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010508 break 2
10509 fi
10510done
cristy8b350f62009-11-15 23:12:43 +000010511 done
cristy3ed852e2009-09-05 21:47:34 +000010512IFS=$as_save_IFS
10513
10514fi
10515fi
10516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10517if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010519$as_echo "$ac_ct_RANLIB" >&6; }
10520else
cristy8b350f62009-11-15 23:12:43 +000010521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010522$as_echo "no" >&6; }
10523fi
10524
10525 if test "x$ac_ct_RANLIB" = x; then
10526 RANLIB=":"
10527 else
10528 case $cross_compiling:$ac_tool_warned in
10529yes:)
cristy8b350f62009-11-15 23:12:43 +000010530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532ac_tool_warned=yes ;;
10533esac
10534 RANLIB=$ac_ct_RANLIB
10535 fi
10536else
10537 RANLIB="$ac_cv_prog_RANLIB"
10538fi
10539
10540test -z "$RANLIB" && RANLIB=:
10541
10542
10543
10544
10545
10546
10547# Determine commands to create old-style static archives.
10548old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10549old_postinstall_cmds='chmod 644 $oldlib'
10550old_postuninstall_cmds=
10551
10552if test -n "$RANLIB"; then
10553 case $host_os in
10554 openbsd*)
10555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10556 ;;
10557 *)
10558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10559 ;;
10560 esac
10561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10562fi
10563
cristyfd9dcd42010-08-08 18:07:02 +000010564case $host_os in
10565 darwin*)
10566 lock_old_archive_extraction=yes ;;
10567 *)
10568 lock_old_archive_extraction=no ;;
10569esac
10570
10571
10572
10573
10574
10575
cristy3ed852e2009-09-05 21:47:34 +000010576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609# If no C compiler was specified, use CC.
10610LTCC=${LTCC-"$CC"}
10611
10612# If no C compiler flags were specified, use CFLAGS.
10613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10614
10615# Allow CC to be a program name with arguments.
10616compiler=$CC
10617
10618
10619# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010621$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010622if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010623 $as_echo_n "(cached) " >&6
10624else
10625
10626# These are sane defaults that work on at least a few old systems.
10627# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10628
10629# Character class describing NM global symbol codes.
10630symcode='[BCDEGRST]'
10631
10632# Regexp to match symbols that can be accessed directly from C.
10633sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10634
10635# Define system-specific variables.
10636case $host_os in
10637aix*)
10638 symcode='[BCDT]'
10639 ;;
10640cygwin* | mingw* | pw32* | cegcc*)
10641 symcode='[ABCDGISTW]'
10642 ;;
10643hpux*)
10644 if test "$host_cpu" = ia64; then
10645 symcode='[ABCDEGRST]'
10646 fi
10647 ;;
10648irix* | nonstopux*)
10649 symcode='[BCDEGRST]'
10650 ;;
10651osf*)
10652 symcode='[BCDEGQRST]'
10653 ;;
10654solaris*)
10655 symcode='[BDRT]'
10656 ;;
10657sco3.2v5*)
10658 symcode='[DT]'
10659 ;;
10660sysv4.2uw2*)
10661 symcode='[DT]'
10662 ;;
10663sysv5* | sco5v6* | unixware* | OpenUNIX*)
10664 symcode='[ABDT]'
10665 ;;
10666sysv4)
10667 symcode='[DFNSTU]'
10668 ;;
10669esac
10670
10671# If we're using GNU nm, then use its standard symbol codes.
10672case `$NM -V 2>&1` in
10673*GNU* | *'with BFD'*)
10674 symcode='[ABCDGIRSTW]' ;;
10675esac
10676
10677# Transform an extracted symbol line into a proper C declaration.
10678# Some systems (esp. on ia64) link data and code symbols differently,
10679# so use this general approach.
10680lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10681
10682# Transform an extracted symbol line into symbol name and symbol address
10683lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10684lt_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'"
10685
10686# Handle CRLF in mingw tool chain
10687opt_cr=
10688case $build_os in
10689mingw*)
10690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10691 ;;
10692esac
10693
10694# Try without a prefix underscore, then with it.
10695for ac_symprfx in "" "_"; do
10696
10697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10698 symxfrm="\\1 $ac_symprfx\\2 \\2"
10699
10700 # Write the raw and C identifiers.
10701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10702 # Fake it for dumpbin and say T for any non-static function
10703 # and D for any global variable.
10704 # Also find C++ and __fastcall symbols from MSVC++,
10705 # which start with @ or ?.
10706 lt_cv_sys_global_symbol_pipe="$AWK '"\
10707" {last_section=section; section=\$ 3};"\
10708" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10709" \$ 0!~/External *\|/{next};"\
10710" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10711" {if(hide[section]) next};"\
10712" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10713" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10714" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10715" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10716" ' prfx=^$ac_symprfx"
10717 else
10718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10719 fi
10720
10721 # Check to see that the pipe works correctly.
10722 pipe_works=no
10723
10724 rm -f conftest*
10725 cat > conftest.$ac_ext <<_LT_EOF
10726#ifdef __cplusplus
10727extern "C" {
10728#endif
10729char nm_test_var;
10730void nm_test_func(void);
10731void nm_test_func(void){}
10732#ifdef __cplusplus
10733}
10734#endif
10735int main(){nm_test_var='a';nm_test_func();return(0);}
10736_LT_EOF
10737
cristy8b350f62009-11-15 23:12:43 +000010738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010739 (eval $ac_compile) 2>&5
10740 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010743 # Now try to grab the symbols.
10744 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010747 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010750 # Try sorting and uniquifying the output.
10751 if sort "$nlist" | uniq > "$nlist"T; then
10752 mv -f "$nlist"T "$nlist"
10753 else
10754 rm -f "$nlist"T
10755 fi
10756
10757 # Make sure that we snagged all the symbols we need.
10758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10760 cat <<_LT_EOF > conftest.$ac_ext
10761#ifdef __cplusplus
10762extern "C" {
10763#endif
10764
10765_LT_EOF
10766 # Now generate the symbol file.
10767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10768
10769 cat <<_LT_EOF >> conftest.$ac_ext
10770
10771/* The mapping between symbol names and symbols. */
10772const struct {
10773 const char *name;
10774 void *address;
10775}
10776lt__PROGRAM__LTX_preloaded_symbols[] =
10777{
10778 { "@PROGRAM@", (void *) 0 },
10779_LT_EOF
10780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10781 cat <<\_LT_EOF >> conftest.$ac_ext
10782 {0, (void *) 0}
10783};
10784
10785/* This works around a problem in FreeBSD linker */
10786#ifdef FREEBSD_WORKAROUND
10787static const void *lt_preloaded_setup() {
10788 return lt__PROGRAM__LTX_preloaded_symbols;
10789}
10790#endif
10791
10792#ifdef __cplusplus
10793}
10794#endif
10795_LT_EOF
10796 # Now try linking the two files.
10797 mv conftest.$ac_objext conftstm.$ac_objext
10798 lt_save_LIBS="$LIBS"
10799 lt_save_CFLAGS="$CFLAGS"
10800 LIBS="conftstm.$ac_objext"
10801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010803 (eval $ac_link) 2>&5
10804 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010807 pipe_works=yes
10808 fi
10809 LIBS="$lt_save_LIBS"
10810 CFLAGS="$lt_save_CFLAGS"
10811 else
10812 echo "cannot find nm_test_func in $nlist" >&5
10813 fi
10814 else
10815 echo "cannot find nm_test_var in $nlist" >&5
10816 fi
10817 else
10818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10819 fi
10820 else
10821 echo "$progname: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 fi
10824 rm -rf conftest* conftst*
10825
10826 # Do not use the global_symbol_pipe unless it works.
10827 if test "$pipe_works" = yes; then
10828 break
10829 else
10830 lt_cv_sys_global_symbol_pipe=
10831 fi
10832done
10833
10834fi
10835
10836if test -z "$lt_cv_sys_global_symbol_pipe"; then
10837 lt_cv_sys_global_symbol_to_cdecl=
10838fi
10839if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010841$as_echo "failed" >&6; }
10842else
cristy8b350f62009-11-15 23:12:43 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010844$as_echo "ok" >&6; }
10845fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010869if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010870 enableval=$enable_libtool_lock;
10871fi
10872
10873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10874
10875# Some flags need to be propagated to the compiler or linker for good
10876# libtool support.
10877case $host in
10878ia64-*-hpux*)
10879 # Find out which ABI we are using.
10880 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010882 (eval $ac_compile) 2>&5
10883 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010886 case `/usr/bin/file conftest.$ac_objext` in
10887 *ELF-32*)
10888 HPUX_IA64_MODE="32"
10889 ;;
10890 *ELF-64*)
10891 HPUX_IA64_MODE="64"
10892 ;;
10893 esac
10894 fi
10895 rm -rf conftest*
10896 ;;
10897*-*-irix6*)
10898 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010901 (eval $ac_compile) 2>&5
10902 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010905 if test "$lt_cv_prog_gnu_ld" = yes; then
10906 case `/usr/bin/file conftest.$ac_objext` in
10907 *32-bit*)
10908 LD="${LD-ld} -melf32bsmip"
10909 ;;
10910 *N32*)
10911 LD="${LD-ld} -melf32bmipn32"
10912 ;;
10913 *64-bit*)
10914 LD="${LD-ld} -melf64bmip"
10915 ;;
10916 esac
10917 else
10918 case `/usr/bin/file conftest.$ac_objext` in
10919 *32-bit*)
10920 LD="${LD-ld} -32"
10921 ;;
10922 *N32*)
10923 LD="${LD-ld} -n32"
10924 ;;
10925 *64-bit*)
10926 LD="${LD-ld} -64"
10927 ;;
10928 esac
10929 fi
10930 fi
10931 rm -rf conftest*
10932 ;;
10933
10934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10936 # Find out which ABI we are using.
10937 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010939 (eval $ac_compile) 2>&5
10940 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010943 case `/usr/bin/file conftest.o` in
10944 *32-bit*)
10945 case $host in
10946 x86_64-*kfreebsd*-gnu)
10947 LD="${LD-ld} -m elf_i386_fbsd"
10948 ;;
10949 x86_64-*linux*)
10950 LD="${LD-ld} -m elf_i386"
10951 ;;
10952 ppc64-*linux*|powerpc64-*linux*)
10953 LD="${LD-ld} -m elf32ppclinux"
10954 ;;
10955 s390x-*linux*)
10956 LD="${LD-ld} -m elf_s390"
10957 ;;
10958 sparc64-*linux*)
10959 LD="${LD-ld} -m elf32_sparc"
10960 ;;
10961 esac
10962 ;;
10963 *64-bit*)
10964 case $host in
10965 x86_64-*kfreebsd*-gnu)
10966 LD="${LD-ld} -m elf_x86_64_fbsd"
10967 ;;
10968 x86_64-*linux*)
10969 LD="${LD-ld} -m elf_x86_64"
10970 ;;
10971 ppc*-*linux*|powerpc*-*linux*)
10972 LD="${LD-ld} -m elf64ppc"
10973 ;;
10974 s390*-*linux*|s390*-*tpf*)
10975 LD="${LD-ld} -m elf64_s390"
10976 ;;
10977 sparc*-*linux*)
10978 LD="${LD-ld} -m elf64_sparc"
10979 ;;
10980 esac
10981 ;;
10982 esac
10983 fi
10984 rm -rf conftest*
10985 ;;
10986
10987*-*-sco3.2v5*)
10988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10989 SAVE_CFLAGS="$CFLAGS"
10990 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010992$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010993if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010994 $as_echo_n "(cached) " >&6
10995else
10996 ac_ext=c
10997ac_cpp='$CPP $CPPFLAGS'
10998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
cristy8b350f62009-11-15 23:12:43 +000011002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011003/* end confdefs.h. */
11004
11005int
11006main ()
11007{
11008
11009 ;
11010 return 0;
11011}
11012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011014 lt_cv_cc_needs_belf=yes
11015else
cristy8b350f62009-11-15 23:12:43 +000011016 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011017fi
cristy8b350f62009-11-15 23:12:43 +000011018rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011020 ac_ext=c
11021ac_cpp='$CPP $CPPFLAGS'
11022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026fi
cristy8b350f62009-11-15 23:12:43 +000011027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011028$as_echo "$lt_cv_cc_needs_belf" >&6; }
11029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11031 CFLAGS="$SAVE_CFLAGS"
11032 fi
11033 ;;
11034sparc*-*solaris*)
11035 # Find out which ABI we are using.
11036 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011038 (eval $ac_compile) 2>&5
11039 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011042 case `/usr/bin/file conftest.o` in
11043 *64-bit*)
11044 case $lt_cv_prog_gnu_ld in
11045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11046 *)
11047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11048 LD="${LD-ld} -64"
11049 fi
11050 ;;
11051 esac
11052 ;;
11053 esac
11054 fi
11055 rm -rf conftest*
11056 ;;
11057esac
11058
11059need_locks="$enable_libtool_lock"
11060
11061
11062 case $host_os in
11063 rhapsody* | darwin*)
11064 if test -n "$ac_tool_prefix"; then
11065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11066set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011068$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011069if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$DSYMUTIL"; then
11073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011084 break 2
11085 fi
11086done
cristy8b350f62009-11-15 23:12:43 +000011087 done
cristy3ed852e2009-09-05 21:47:34 +000011088IFS=$as_save_IFS
11089
11090fi
11091fi
11092DSYMUTIL=$ac_cv_prog_DSYMUTIL
11093if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011095$as_echo "$DSYMUTIL" >&6; }
11096else
cristy8b350f62009-11-15 23:12:43 +000011097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011098$as_echo "no" >&6; }
11099fi
11100
11101
11102fi
11103if test -z "$ac_cv_prog_DSYMUTIL"; then
11104 ac_ct_DSYMUTIL=$DSYMUTIL
11105 # Extract the first word of "dsymutil", so it can be a program name with args.
11106set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011109if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$ac_ct_DSYMUTIL"; then
11113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011124 break 2
11125 fi
11126done
cristy8b350f62009-11-15 23:12:43 +000011127 done
cristy3ed852e2009-09-05 21:47:34 +000011128IFS=$as_save_IFS
11129
11130fi
11131fi
11132ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11133if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011135$as_echo "$ac_ct_DSYMUTIL" >&6; }
11136else
cristy8b350f62009-11-15 23:12:43 +000011137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011138$as_echo "no" >&6; }
11139fi
11140
11141 if test "x$ac_ct_DSYMUTIL" = x; then
11142 DSYMUTIL=":"
11143 else
11144 case $cross_compiling:$ac_tool_warned in
11145yes:)
cristy8b350f62009-11-15 23:12:43 +000011146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148ac_tool_warned=yes ;;
11149esac
11150 DSYMUTIL=$ac_ct_DSYMUTIL
11151 fi
11152else
11153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11154fi
11155
11156 if test -n "$ac_tool_prefix"; then
11157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11158set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011160$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011161if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011162 $as_echo_n "(cached) " >&6
11163else
11164 if test -n "$NMEDIT"; then
11165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011176 break 2
11177 fi
11178done
cristy8b350f62009-11-15 23:12:43 +000011179 done
cristy3ed852e2009-09-05 21:47:34 +000011180IFS=$as_save_IFS
11181
11182fi
11183fi
11184NMEDIT=$ac_cv_prog_NMEDIT
11185if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011187$as_echo "$NMEDIT" >&6; }
11188else
cristy8b350f62009-11-15 23:12:43 +000011189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011190$as_echo "no" >&6; }
11191fi
11192
11193
11194fi
11195if test -z "$ac_cv_prog_NMEDIT"; then
11196 ac_ct_NMEDIT=$NMEDIT
11197 # Extract the first word of "nmedit", so it can be a program name with args.
11198set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011201if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011202 $as_echo_n "(cached) " >&6
11203else
11204 if test -n "$ac_ct_NMEDIT"; then
11205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011216 break 2
11217 fi
11218done
cristy8b350f62009-11-15 23:12:43 +000011219 done
cristy3ed852e2009-09-05 21:47:34 +000011220IFS=$as_save_IFS
11221
11222fi
11223fi
11224ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11225if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011227$as_echo "$ac_ct_NMEDIT" >&6; }
11228else
cristy8b350f62009-11-15 23:12:43 +000011229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011230$as_echo "no" >&6; }
11231fi
11232
11233 if test "x$ac_ct_NMEDIT" = x; then
11234 NMEDIT=":"
11235 else
11236 case $cross_compiling:$ac_tool_warned in
11237yes:)
cristy8b350f62009-11-15 23:12:43 +000011238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11240ac_tool_warned=yes ;;
11241esac
11242 NMEDIT=$ac_ct_NMEDIT
11243 fi
11244else
11245 NMEDIT="$ac_cv_prog_NMEDIT"
11246fi
11247
11248 if test -n "$ac_tool_prefix"; then
11249 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11250set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011253if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011254 $as_echo_n "(cached) " >&6
11255else
11256 if test -n "$LIPO"; then
11257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011268 break 2
11269 fi
11270done
cristy8b350f62009-11-15 23:12:43 +000011271 done
cristy3ed852e2009-09-05 21:47:34 +000011272IFS=$as_save_IFS
11273
11274fi
11275fi
11276LIPO=$ac_cv_prog_LIPO
11277if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011279$as_echo "$LIPO" >&6; }
11280else
cristy8b350f62009-11-15 23:12:43 +000011281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011282$as_echo "no" >&6; }
11283fi
11284
11285
11286fi
11287if test -z "$ac_cv_prog_LIPO"; then
11288 ac_ct_LIPO=$LIPO
11289 # Extract the first word of "lipo", so it can be a program name with args.
11290set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011293if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011294 $as_echo_n "(cached) " >&6
11295else
11296 if test -n "$ac_ct_LIPO"; then
11297 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011308 break 2
11309 fi
11310done
cristy8b350f62009-11-15 23:12:43 +000011311 done
cristy3ed852e2009-09-05 21:47:34 +000011312IFS=$as_save_IFS
11313
11314fi
11315fi
11316ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11317if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011319$as_echo "$ac_ct_LIPO" >&6; }
11320else
cristy8b350f62009-11-15 23:12:43 +000011321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011322$as_echo "no" >&6; }
11323fi
11324
11325 if test "x$ac_ct_LIPO" = x; then
11326 LIPO=":"
11327 else
11328 case $cross_compiling:$ac_tool_warned in
11329yes:)
cristy8b350f62009-11-15 23:12:43 +000011330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332ac_tool_warned=yes ;;
11333esac
11334 LIPO=$ac_ct_LIPO
11335 fi
11336else
11337 LIPO="$ac_cv_prog_LIPO"
11338fi
11339
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11342set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011344$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011345if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011346 $as_echo_n "(cached) " >&6
11347else
11348 if test -n "$OTOOL"; then
11349 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011360 break 2
11361 fi
11362done
cristy8b350f62009-11-15 23:12:43 +000011363 done
cristy3ed852e2009-09-05 21:47:34 +000011364IFS=$as_save_IFS
11365
11366fi
11367fi
11368OTOOL=$ac_cv_prog_OTOOL
11369if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011371$as_echo "$OTOOL" >&6; }
11372else
cristy8b350f62009-11-15 23:12:43 +000011373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011374$as_echo "no" >&6; }
11375fi
11376
11377
11378fi
11379if test -z "$ac_cv_prog_OTOOL"; then
11380 ac_ct_OTOOL=$OTOOL
11381 # Extract the first word of "otool", so it can be a program name with args.
11382set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011385if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011386 $as_echo_n "(cached) " >&6
11387else
11388 if test -n "$ac_ct_OTOOL"; then
11389 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011400 break 2
11401 fi
11402done
cristy8b350f62009-11-15 23:12:43 +000011403 done
cristy3ed852e2009-09-05 21:47:34 +000011404IFS=$as_save_IFS
11405
11406fi
11407fi
11408ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11409if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011411$as_echo "$ac_ct_OTOOL" >&6; }
11412else
cristy8b350f62009-11-15 23:12:43 +000011413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011414$as_echo "no" >&6; }
11415fi
11416
11417 if test "x$ac_ct_OTOOL" = x; then
11418 OTOOL=":"
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421yes:)
cristy8b350f62009-11-15 23:12:43 +000011422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424ac_tool_warned=yes ;;
11425esac
11426 OTOOL=$ac_ct_OTOOL
11427 fi
11428else
11429 OTOOL="$ac_cv_prog_OTOOL"
11430fi
11431
11432 if test -n "$ac_tool_prefix"; then
11433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11434set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011436$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011437if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011438 $as_echo_n "(cached) " >&6
11439else
11440 if test -n "$OTOOL64"; then
11441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11442else
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011452 break 2
11453 fi
11454done
cristy8b350f62009-11-15 23:12:43 +000011455 done
cristy3ed852e2009-09-05 21:47:34 +000011456IFS=$as_save_IFS
11457
11458fi
11459fi
11460OTOOL64=$ac_cv_prog_OTOOL64
11461if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011463$as_echo "$OTOOL64" >&6; }
11464else
cristy8b350f62009-11-15 23:12:43 +000011465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011466$as_echo "no" >&6; }
11467fi
11468
11469
11470fi
11471if test -z "$ac_cv_prog_OTOOL64"; then
11472 ac_ct_OTOOL64=$OTOOL64
11473 # Extract the first word of "otool64", so it can be a program name with args.
11474set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011476$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011477if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$ac_ct_OTOOL64"; then
11481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11482else
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011492 break 2
11493 fi
11494done
cristy8b350f62009-11-15 23:12:43 +000011495 done
cristy3ed852e2009-09-05 21:47:34 +000011496IFS=$as_save_IFS
11497
11498fi
11499fi
11500ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11501if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011503$as_echo "$ac_ct_OTOOL64" >&6; }
11504else
cristy8b350f62009-11-15 23:12:43 +000011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011506$as_echo "no" >&6; }
11507fi
11508
11509 if test "x$ac_ct_OTOOL64" = x; then
11510 OTOOL64=":"
11511 else
11512 case $cross_compiling:$ac_tool_warned in
11513yes:)
cristy8b350f62009-11-15 23:12:43 +000011514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516ac_tool_warned=yes ;;
11517esac
11518 OTOOL64=$ac_ct_OTOOL64
11519 fi
11520else
11521 OTOOL64="$ac_cv_prog_OTOOL64"
11522fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
cristy8b350f62009-11-15 23:12:43 +000011550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011551$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011552if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011553 $as_echo_n "(cached) " >&6
11554else
11555 lt_cv_apple_cc_single_mod=no
11556 if test -z "${LT_MULTI_MODULE}"; then
11557 # By default we will add the -single_module flag. You can override
11558 # by either setting the environment variable LT_MULTI_MODULE
11559 # non-empty at configure time, or by adding -multi_module to the
11560 # link flags.
11561 rm -rf libconftest.dylib*
11562 echo "int foo(void){return 1;}" > conftest.c
11563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11564-dynamiclib -Wl,-single_module conftest.c" >&5
11565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11567 _lt_result=$?
11568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11569 lt_cv_apple_cc_single_mod=yes
11570 else
11571 cat conftest.err >&5
11572 fi
11573 rm -rf libconftest.dylib*
11574 rm -f conftest.*
11575 fi
11576fi
cristy8b350f62009-11-15 23:12:43 +000011577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011578$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011580$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011581if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011582 $as_echo_n "(cached) " >&6
11583else
11584 lt_cv_ld_exported_symbols_list=no
11585 save_LDFLAGS=$LDFLAGS
11586 echo "_main" > conftest.sym
11587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011589/* end confdefs.h. */
11590
11591int
11592main ()
11593{
11594
11595 ;
11596 return 0;
11597}
11598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011600 lt_cv_ld_exported_symbols_list=yes
11601else
cristy8b350f62009-11-15 23:12:43 +000011602 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011603fi
cristy8b350f62009-11-15 23:12:43 +000011604rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011606 LDFLAGS="$save_LDFLAGS"
11607
11608fi
cristy8b350f62009-11-15 23:12:43 +000011609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011610$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11612$as_echo_n "checking for -force_load linker flag... " >&6; }
11613if test "${lt_cv_ld_force_load+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615else
11616 lt_cv_ld_force_load=no
11617 cat > conftest.c << _LT_EOF
11618int forced_loaded() { return 2;}
11619_LT_EOF
11620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11622 echo "$AR cru libconftest.a conftest.o" >&5
11623 $AR cru libconftest.a conftest.o 2>&5
11624 echo "$RANLIB libconftest.a" >&5
11625 $RANLIB libconftest.a 2>&5
11626 cat > conftest.c << _LT_EOF
11627int main() { return 0;}
11628_LT_EOF
11629 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11630 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11631 _lt_result=$?
11632 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11633 lt_cv_ld_force_load=yes
11634 else
11635 cat conftest.err >&5
11636 fi
11637 rm -f conftest.err libconftest.a conftest conftest.c
11638 rm -rf conftest.dSYM
11639
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11642$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011643 case $host_os in
11644 rhapsody* | darwin1.[012])
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11646 darwin1.*)
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648 darwin*) # darwin 5.x on
11649 # if running on 10.5 or later, the deployment target defaults
11650 # to the OS version, if on x86, and 10.4, the deployment
11651 # target defaults to 10.4. Don't you love it?
11652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11653 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655 10.[012]*)
11656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11657 10.*)
11658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11659 esac
11660 ;;
11661 esac
11662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11663 _lt_dar_single_mod='$single_module'
11664 fi
11665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11667 else
11668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669 fi
cristyfd9dcd42010-08-08 18:07:02 +000011670 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011671 _lt_dsymutil='~$DSYMUTIL $lib || :'
11672 else
11673 _lt_dsymutil=
11674 fi
11675 ;;
11676 esac
11677
cristy3ed852e2009-09-05 21:47:34 +000011678for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011679do :
11680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11681"
11682if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011683 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011684#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011685_ACEOF
11686
11687fi
11688
11689done
11690
11691
11692
cristy3ed852e2009-09-05 21:47:34 +000011693
11694
11695
11696# Set options
11697enable_win32_dll=yes
11698
11699case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011700*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011701 if test -n "$ac_tool_prefix"; then
11702 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11703set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011705$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011706if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011707 $as_echo_n "(cached) " >&6
11708else
11709 if test -n "$AS"; then
11710 ac_cv_prog_AS="$AS" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011721 break 2
11722 fi
11723done
cristy8b350f62009-11-15 23:12:43 +000011724 done
cristy3ed852e2009-09-05 21:47:34 +000011725IFS=$as_save_IFS
11726
11727fi
11728fi
11729AS=$ac_cv_prog_AS
11730if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011732$as_echo "$AS" >&6; }
11733else
cristy8b350f62009-11-15 23:12:43 +000011734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011735$as_echo "no" >&6; }
11736fi
11737
11738
11739fi
11740if test -z "$ac_cv_prog_AS"; then
11741 ac_ct_AS=$AS
11742 # Extract the first word of "as", so it can be a program name with args.
11743set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011746if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011747 $as_echo_n "(cached) " >&6
11748else
11749 if test -n "$ac_ct_AS"; then
11750 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11751else
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011761 break 2
11762 fi
11763done
cristy8b350f62009-11-15 23:12:43 +000011764 done
cristy3ed852e2009-09-05 21:47:34 +000011765IFS=$as_save_IFS
11766
11767fi
11768fi
11769ac_ct_AS=$ac_cv_prog_ac_ct_AS
11770if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011772$as_echo "$ac_ct_AS" >&6; }
11773else
cristy8b350f62009-11-15 23:12:43 +000011774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011775$as_echo "no" >&6; }
11776fi
11777
11778 if test "x$ac_ct_AS" = x; then
11779 AS="false"
11780 else
11781 case $cross_compiling:$ac_tool_warned in
11782yes:)
cristy8b350f62009-11-15 23:12:43 +000011783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11785ac_tool_warned=yes ;;
11786esac
11787 AS=$ac_ct_AS
11788 fi
11789else
11790 AS="$ac_cv_prog_AS"
11791fi
11792
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11795set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011797$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011798if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011799 $as_echo_n "(cached) " >&6
11800else
11801 if test -n "$DLLTOOL"; then
11802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11803else
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011813 break 2
11814 fi
11815done
cristy8b350f62009-11-15 23:12:43 +000011816 done
cristy3ed852e2009-09-05 21:47:34 +000011817IFS=$as_save_IFS
11818
11819fi
11820fi
11821DLLTOOL=$ac_cv_prog_DLLTOOL
11822if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011824$as_echo "$DLLTOOL" >&6; }
11825else
cristy8b350f62009-11-15 23:12:43 +000011826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011827$as_echo "no" >&6; }
11828fi
11829
11830
11831fi
11832if test -z "$ac_cv_prog_DLLTOOL"; then
11833 ac_ct_DLLTOOL=$DLLTOOL
11834 # Extract the first word of "dlltool", so it can be a program name with args.
11835set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011837$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011838if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011839 $as_echo_n "(cached) " >&6
11840else
11841 if test -n "$ac_ct_DLLTOOL"; then
11842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11843else
11844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845for as_dir in $PATH
11846do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011853 break 2
11854 fi
11855done
cristy8b350f62009-11-15 23:12:43 +000011856 done
cristy3ed852e2009-09-05 21:47:34 +000011857IFS=$as_save_IFS
11858
11859fi
11860fi
11861ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11862if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011864$as_echo "$ac_ct_DLLTOOL" >&6; }
11865else
cristy8b350f62009-11-15 23:12:43 +000011866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011867$as_echo "no" >&6; }
11868fi
11869
11870 if test "x$ac_ct_DLLTOOL" = x; then
11871 DLLTOOL="false"
11872 else
11873 case $cross_compiling:$ac_tool_warned in
11874yes:)
cristy8b350f62009-11-15 23:12:43 +000011875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877ac_tool_warned=yes ;;
11878esac
11879 DLLTOOL=$ac_ct_DLLTOOL
11880 fi
11881else
11882 DLLTOOL="$ac_cv_prog_DLLTOOL"
11883fi
11884
11885 if test -n "$ac_tool_prefix"; then
11886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11887set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011889$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011890if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011891 $as_echo_n "(cached) " >&6
11892else
11893 if test -n "$OBJDUMP"; then
11894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11895else
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011905 break 2
11906 fi
11907done
cristy8b350f62009-11-15 23:12:43 +000011908 done
cristy3ed852e2009-09-05 21:47:34 +000011909IFS=$as_save_IFS
11910
11911fi
11912fi
11913OBJDUMP=$ac_cv_prog_OBJDUMP
11914if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011916$as_echo "$OBJDUMP" >&6; }
11917else
cristy8b350f62009-11-15 23:12:43 +000011918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011919$as_echo "no" >&6; }
11920fi
11921
11922
11923fi
11924if test -z "$ac_cv_prog_OBJDUMP"; then
11925 ac_ct_OBJDUMP=$OBJDUMP
11926 # Extract the first word of "objdump", so it can be a program name with args.
11927set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011930if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$ac_ct_OBJDUMP"; then
11934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011945 break 2
11946 fi
11947done
cristy8b350f62009-11-15 23:12:43 +000011948 done
cristy3ed852e2009-09-05 21:47:34 +000011949IFS=$as_save_IFS
11950
11951fi
11952fi
11953ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11954if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011956$as_echo "$ac_ct_OBJDUMP" >&6; }
11957else
cristy8b350f62009-11-15 23:12:43 +000011958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011959$as_echo "no" >&6; }
11960fi
11961
11962 if test "x$ac_ct_OBJDUMP" = x; then
11963 OBJDUMP="false"
11964 else
11965 case $cross_compiling:$ac_tool_warned in
11966yes:)
cristy8b350f62009-11-15 23:12:43 +000011967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969ac_tool_warned=yes ;;
11970esac
11971 OBJDUMP=$ac_ct_OBJDUMP
11972 fi
11973else
11974 OBJDUMP="$ac_cv_prog_OBJDUMP"
11975fi
11976
11977 ;;
11978esac
11979
11980test -z "$AS" && AS=as
11981
11982
11983
11984
11985
11986test -z "$DLLTOOL" && DLLTOOL=dlltool
11987
11988
11989
11990
11991
11992test -z "$OBJDUMP" && OBJDUMP=objdump
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012003if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012004 enableval=$enable_shared; p=${PACKAGE-default}
12005 case $enableval in
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12008 *)
12009 enable_shared=no
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12013 IFS="$lt_save_ifs"
12014 if test "X$pkg" = "X$p"; then
12015 enable_shared=yes
12016 fi
12017 done
12018 IFS="$lt_save_ifs"
12019 ;;
12020 esac
12021else
12022 enable_shared=yes
12023fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012034if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012035 enableval=$enable_static; p=${PACKAGE-default}
12036 case $enableval in
12037 yes) enable_static=yes ;;
12038 no) enable_static=no ;;
12039 *)
12040 enable_static=no
12041 # Look at the argument we got. We use all the common list separators.
12042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12043 for pkg in $enableval; do
12044 IFS="$lt_save_ifs"
12045 if test "X$pkg" = "X$p"; then
12046 enable_static=yes
12047 fi
12048 done
12049 IFS="$lt_save_ifs"
12050 ;;
12051 esac
12052else
12053 enable_static=yes
12054fi
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012066if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012067 withval=$with_pic; pic_mode="$withval"
12068else
12069 pic_mode=default
12070fi
12071
12072
12073test -z "$pic_mode" && pic_mode=default
12074
12075
12076
12077
12078
12079
12080
12081 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012082if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012083 enableval=$enable_fast_install; p=${PACKAGE-default}
12084 case $enableval in
12085 yes) enable_fast_install=yes ;;
12086 no) enable_fast_install=no ;;
12087 *)
12088 enable_fast_install=no
12089 # Look at the argument we got. We use all the common list separators.
12090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12091 for pkg in $enableval; do
12092 IFS="$lt_save_ifs"
12093 if test "X$pkg" = "X$p"; then
12094 enable_fast_install=yes
12095 fi
12096 done
12097 IFS="$lt_save_ifs"
12098 ;;
12099 esac
12100else
12101 enable_fast_install=yes
12102fi
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114# This can be used to rebuild libtool when needed
12115LIBTOOL_DEPS="$ltmain"
12116
12117# Always use our own libtool.
12118LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
cristyfd9dcd42010-08-08 18:07:02 +000012144
cristy3ed852e2009-09-05 21:47:34 +000012145test -z "$LN_S" && LN_S="ln -s"
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160if test -n "${ZSH_VERSION+set}" ; then
12161 setopt NO_GLOB_SUBST
12162fi
12163
cristy8b350f62009-11-15 23:12:43 +000012164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012165$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012166if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012167 $as_echo_n "(cached) " >&6
12168else
12169 rm -f .libs 2>/dev/null
12170mkdir .libs 2>/dev/null
12171if test -d .libs; then
12172 lt_cv_objdir=.libs
12173else
12174 # MS-DOS does not allow filenames that begin with a dot.
12175 lt_cv_objdir=_libs
12176fi
12177rmdir .libs 2>/dev/null
12178fi
cristy8b350f62009-11-15 23:12:43 +000012179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012180$as_echo "$lt_cv_objdir" >&6; }
12181objdir=$lt_cv_objdir
12182
12183
12184
12185
12186
12187cat >>confdefs.h <<_ACEOF
12188#define LT_OBJDIR "$lt_cv_objdir/"
12189_ACEOF
12190
12191
12192
12193
cristy3ed852e2009-09-05 21:47:34 +000012194case $host_os in
12195aix3*)
12196 # AIX sometimes has problems with the GCC collect2 program. For some
12197 # reason, if we set the COLLECT_NAMES environment variable, the problems
12198 # vanish in a puff of smoke.
12199 if test "X${COLLECT_NAMES+set}" != Xset; then
12200 COLLECT_NAMES=
12201 export COLLECT_NAMES
12202 fi
12203 ;;
12204esac
12205
cristy3ed852e2009-09-05 21:47:34 +000012206# Global variables:
12207ofile=libtool
12208can_build_shared=yes
12209
12210# All known linkers require a `.a' archive for static linking (except MSVC,
12211# which needs '.lib').
12212libext=a
12213
12214with_gnu_ld="$lt_cv_prog_gnu_ld"
12215
12216old_CC="$CC"
12217old_CFLAGS="$CFLAGS"
12218
12219# Set sane defaults for various variables
12220test -z "$CC" && CC=cc
12221test -z "$LTCC" && LTCC=$CC
12222test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12223test -z "$LD" && LD=ld
12224test -z "$ac_objext" && ac_objext=o
12225
12226for cc_temp in $compiler""; do
12227 case $cc_temp in
12228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12230 \-*) ;;
12231 *) break;;
12232 esac
12233done
cristyfd9dcd42010-08-08 18:07:02 +000012234cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012235
12236
12237# Only perform the check for file, if the check method requires it
12238test -z "$MAGIC_CMD" && MAGIC_CMD=file
12239case $deplibs_check_method in
12240file_magic*)
12241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012243$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012244if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012245 $as_echo_n "(cached) " >&6
12246else
12247 case $MAGIC_CMD in
12248[\\/*] | ?:[\\/]*)
12249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12250 ;;
12251*)
12252 lt_save_MAGIC_CMD="$MAGIC_CMD"
12253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12255 for ac_dir in $ac_dummy; do
12256 IFS="$lt_save_ifs"
12257 test -z "$ac_dir" && ac_dir=.
12258 if test -f $ac_dir/${ac_tool_prefix}file; then
12259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12260 if test -n "$file_magic_test_file"; then
12261 case $deplibs_check_method in
12262 "file_magic "*)
12263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12266 $EGREP "$file_magic_regex" > /dev/null; then
12267 :
12268 else
12269 cat <<_LT_EOF 1>&2
12270
12271*** Warning: the command libtool uses to detect shared libraries,
12272*** $file_magic_cmd, produces output that libtool cannot recognize.
12273*** The result is that libtool may fail to recognize shared libraries
12274*** as such. This will affect the creation of libtool libraries that
12275*** depend on shared libraries, but programs linked with such libtool
12276*** libraries will work regardless of this problem. Nevertheless, you
12277*** may want to report the problem to your system manager and/or to
12278*** bug-libtool@gnu.org
12279
12280_LT_EOF
12281 fi ;;
12282 esac
12283 fi
12284 break
12285 fi
12286 done
12287 IFS="$lt_save_ifs"
12288 MAGIC_CMD="$lt_save_MAGIC_CMD"
12289 ;;
12290esac
12291fi
12292
12293MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12294if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012296$as_echo "$MAGIC_CMD" >&6; }
12297else
cristy8b350f62009-11-15 23:12:43 +000012298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012299$as_echo "no" >&6; }
12300fi
12301
12302
12303
12304
12305
12306if test -z "$lt_cv_path_MAGIC_CMD"; then
12307 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012309$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012310if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012311 $as_echo_n "(cached) " >&6
12312else
12313 case $MAGIC_CMD in
12314[\\/*] | ?:[\\/]*)
12315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12316 ;;
12317*)
12318 lt_save_MAGIC_CMD="$MAGIC_CMD"
12319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12321 for ac_dir in $ac_dummy; do
12322 IFS="$lt_save_ifs"
12323 test -z "$ac_dir" && ac_dir=.
12324 if test -f $ac_dir/file; then
12325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12326 if test -n "$file_magic_test_file"; then
12327 case $deplibs_check_method in
12328 "file_magic "*)
12329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12332 $EGREP "$file_magic_regex" > /dev/null; then
12333 :
12334 else
12335 cat <<_LT_EOF 1>&2
12336
12337*** Warning: the command libtool uses to detect shared libraries,
12338*** $file_magic_cmd, produces output that libtool cannot recognize.
12339*** The result is that libtool may fail to recognize shared libraries
12340*** as such. This will affect the creation of libtool libraries that
12341*** depend on shared libraries, but programs linked with such libtool
12342*** libraries will work regardless of this problem. Nevertheless, you
12343*** may want to report the problem to your system manager and/or to
12344*** bug-libtool@gnu.org
12345
12346_LT_EOF
12347 fi ;;
12348 esac
12349 fi
12350 break
12351 fi
12352 done
12353 IFS="$lt_save_ifs"
12354 MAGIC_CMD="$lt_save_MAGIC_CMD"
12355 ;;
12356esac
12357fi
12358
12359MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12360if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012362$as_echo "$MAGIC_CMD" >&6; }
12363else
cristy8b350f62009-11-15 23:12:43 +000012364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012365$as_echo "no" >&6; }
12366fi
12367
12368
12369 else
12370 MAGIC_CMD=:
12371 fi
12372fi
12373
12374 fi
12375 ;;
12376esac
12377
12378# Use C for the default configuration in the libtool script
12379
12380lt_save_CC="$CC"
12381ac_ext=c
12382ac_cpp='$CPP $CPPFLAGS'
12383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387
12388# Source file extension for C test sources.
12389ac_ext=c
12390
12391# Object file extension for compiled C test sources.
12392objext=o
12393objext=$objext
12394
12395# Code to be used in simple compile tests
12396lt_simple_compile_test_code="int some_variable = 0;"
12397
12398# Code to be used in simple link tests
12399lt_simple_link_test_code='int main(){return(0);}'
12400
12401
12402
12403
12404
12405
12406
12407# If no C compiler was specified, use CC.
12408LTCC=${LTCC-"$CC"}
12409
12410# If no C compiler flags were specified, use CFLAGS.
12411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12412
12413# Allow CC to be a program name with arguments.
12414compiler=$CC
12415
12416# Save the default compiler, since it gets overwritten when the other
12417# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12418compiler_DEFAULT=$CC
12419
12420# save warnings/boilerplate of simple test code
12421ac_outfile=conftest.$ac_objext
12422echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12424_lt_compiler_boilerplate=`cat conftest.err`
12425$RM conftest*
12426
12427ac_outfile=conftest.$ac_objext
12428echo "$lt_simple_link_test_code" >conftest.$ac_ext
12429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12430_lt_linker_boilerplate=`cat conftest.err`
12431$RM -r conftest*
12432
12433
12434## CAVEAT EMPTOR:
12435## There is no encapsulation within the following macros, do not change
12436## the running order or otherwise move them around unless you know exactly
12437## what you are doing...
12438if test -n "$compiler"; then
12439
12440lt_prog_compiler_no_builtin_flag=
12441
12442if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012443 case $cc_basename in
12444 nvcc*)
12445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12446 *)
12447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12448 esac
cristy3ed852e2009-09-05 21:47:34 +000012449
cristy8b350f62009-11-15 23:12:43 +000012450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012451$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012453 $as_echo_n "(cached) " >&6
12454else
12455 lt_cv_prog_compiler_rtti_exceptions=no
12456 ac_outfile=conftest.$ac_objext
12457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12458 lt_compiler_flag="-fno-rtti -fno-exceptions"
12459 # Insert the option either (1) after the last *FLAGS variable, or
12460 # (2) before a word containing "conftest.", or (3) at the end.
12461 # Note that $ac_compile itself does not contain backslashes and begins
12462 # with a dollar sign (not a hyphen), so the echo should work correctly.
12463 # The option is referenced via a variable to avoid confusing sed.
12464 lt_compile=`echo "$ac_compile" | $SED \
12465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012469 (eval "$lt_compile" 2>conftest.err)
12470 ac_status=$?
12471 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012473 if (exit $ac_status) && test -s "$ac_outfile"; then
12474 # The compiler can only warn and ignore the option if not recognized
12475 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12479 lt_cv_prog_compiler_rtti_exceptions=yes
12480 fi
12481 fi
12482 $RM conftest*
12483
12484fi
cristy8b350f62009-11-15 23:12:43 +000012485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012486$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12487
12488if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12490else
12491 :
12492fi
12493
12494fi
12495
12496
12497
12498
12499
12500
12501 lt_prog_compiler_wl=
12502lt_prog_compiler_pic=
12503lt_prog_compiler_static=
12504
cristy8b350f62009-11-15 23:12:43 +000012505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012506$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12507
12508 if test "$GCC" = yes; then
12509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_static='-static'
12511
12512 case $host_os in
12513 aix*)
12514 # All AIX code is PIC.
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 now supports IA64 processor
12517 lt_prog_compiler_static='-Bstatic'
12518 fi
12519 ;;
12520
12521 amigaos*)
12522 case $host_cpu in
12523 powerpc)
12524 # see comment about AmigaOS4 .so support
12525 lt_prog_compiler_pic='-fPIC'
12526 ;;
12527 m68k)
12528 # FIXME: we need at least 68020 code to build shared libraries, but
12529 # adding the `-m68020' flag to GCC prevents building anything better,
12530 # like `-m68040'.
12531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12532 ;;
12533 esac
12534 ;;
12535
12536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12537 # PIC is the default for these OSes.
12538 ;;
12539
12540 mingw* | cygwin* | pw32* | os2* | cegcc*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12544 # (--disable-auto-import) libraries
12545 lt_prog_compiler_pic='-DDLL_EXPORT'
12546 ;;
12547
12548 darwin* | rhapsody*)
12549 # PIC is the default on this platform
12550 # Common symbols not allowed in MH_DYLIB files
12551 lt_prog_compiler_pic='-fno-common'
12552 ;;
12553
cristyfd9dcd42010-08-08 18:07:02 +000012554 haiku*)
12555 # PIC is the default for Haiku.
12556 # The "-static" flag exists, but is broken.
12557 lt_prog_compiler_static=
12558 ;;
12559
cristy3ed852e2009-09-05 21:47:34 +000012560 hpux*)
12561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12563 # sets the default TLS model and affects inlining.
12564 case $host_cpu in
12565 hppa*64*)
12566 # +Z the default
12567 ;;
12568 *)
12569 lt_prog_compiler_pic='-fPIC'
12570 ;;
12571 esac
12572 ;;
12573
12574 interix[3-9]*)
12575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12576 # Instead, we relocate shared libraries at runtime.
12577 ;;
12578
12579 msdosdjgpp*)
12580 # Just because we use GCC doesn't mean we suddenly get shared libraries
12581 # on systems that don't support them.
12582 lt_prog_compiler_can_build_shared=no
12583 enable_shared=no
12584 ;;
12585
12586 *nto* | *qnx*)
12587 # QNX uses GNU C++, but need to define -shared option too, otherwise
12588 # it will coredump.
12589 lt_prog_compiler_pic='-fPIC -shared'
12590 ;;
12591
12592 sysv4*MP*)
12593 if test -d /usr/nec; then
12594 lt_prog_compiler_pic=-Kconform_pic
12595 fi
12596 ;;
12597
12598 *)
12599 lt_prog_compiler_pic='-fPIC'
12600 ;;
12601 esac
cristyfd9dcd42010-08-08 18:07:02 +000012602
12603 case $cc_basename in
12604 nvcc*) # Cuda Compiler Driver 2.2
12605 lt_prog_compiler_wl='-Xlinker '
12606 lt_prog_compiler_pic='-Xcompiler -fPIC'
12607 ;;
12608 esac
cristy3ed852e2009-09-05 21:47:34 +000012609 else
12610 # PORTME Check for flag to pass linker flags through the system compiler.
12611 case $host_os in
12612 aix*)
12613 lt_prog_compiler_wl='-Wl,'
12614 if test "$host_cpu" = ia64; then
12615 # AIX 5 now supports IA64 processor
12616 lt_prog_compiler_static='-Bstatic'
12617 else
12618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12619 fi
12620 ;;
12621
12622 mingw* | cygwin* | pw32* | os2* | cegcc*)
12623 # This hack is so that the source file can tell whether it is being
12624 # built for inclusion in a dll (and should export symbols for example).
12625 lt_prog_compiler_pic='-DDLL_EXPORT'
12626 ;;
12627
12628 hpux9* | hpux10* | hpux11*)
12629 lt_prog_compiler_wl='-Wl,'
12630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12631 # not for PA HP-UX.
12632 case $host_cpu in
12633 hppa*64*|ia64*)
12634 # +Z the default
12635 ;;
12636 *)
12637 lt_prog_compiler_pic='+Z'
12638 ;;
12639 esac
12640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12641 lt_prog_compiler_static='${wl}-a ${wl}archive'
12642 ;;
12643
12644 irix5* | irix6* | nonstopux*)
12645 lt_prog_compiler_wl='-Wl,'
12646 # PIC (with -KPIC) is the default.
12647 lt_prog_compiler_static='-non_shared'
12648 ;;
12649
cristyfd9dcd42010-08-08 18:07:02 +000012650 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012651 case $cc_basename in
12652 # old Intel for x86_64 which still supported -KPIC.
12653 ecc*)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-KPIC'
12656 lt_prog_compiler_static='-static'
12657 ;;
12658 # icc used to be incompatible with GCC.
12659 # ICC 10 doesn't accept -KPIC any more.
12660 icc* | ifort*)
12661 lt_prog_compiler_wl='-Wl,'
12662 lt_prog_compiler_pic='-fPIC'
12663 lt_prog_compiler_static='-static'
12664 ;;
12665 # Lahey Fortran 8.1.
12666 lf95*)
12667 lt_prog_compiler_wl='-Wl,'
12668 lt_prog_compiler_pic='--shared'
12669 lt_prog_compiler_static='--static'
12670 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012672 # Portland Group compilers (*not* the Pentium gcc compiler,
12673 # which looks to be a dead project)
12674 lt_prog_compiler_wl='-Wl,'
12675 lt_prog_compiler_pic='-fpic'
12676 lt_prog_compiler_static='-Bstatic'
12677 ;;
12678 ccc*)
12679 lt_prog_compiler_wl='-Wl,'
12680 # All Alpha code is PIC.
12681 lt_prog_compiler_static='-non_shared'
12682 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012683 xl* | bgxl* | bgf* | mpixl*)
12684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012685 lt_prog_compiler_wl='-Wl,'
12686 lt_prog_compiler_pic='-qpic'
12687 lt_prog_compiler_static='-qstaticlink'
12688 ;;
12689 *)
12690 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012691 *Sun\ F* | *Sun*Fortran*)
12692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12693 lt_prog_compiler_pic='-KPIC'
12694 lt_prog_compiler_static='-Bstatic'
12695 lt_prog_compiler_wl=''
12696 ;;
cristy3ed852e2009-09-05 21:47:34 +000012697 *Sun\ C*)
12698 # Sun C 5.9
12699 lt_prog_compiler_pic='-KPIC'
12700 lt_prog_compiler_static='-Bstatic'
12701 lt_prog_compiler_wl='-Wl,'
12702 ;;
cristy3ed852e2009-09-05 21:47:34 +000012703 esac
12704 ;;
12705 esac
12706 ;;
12707
12708 newsos6)
12709 lt_prog_compiler_pic='-KPIC'
12710 lt_prog_compiler_static='-Bstatic'
12711 ;;
12712
12713 *nto* | *qnx*)
12714 # QNX uses GNU C++, but need to define -shared option too, otherwise
12715 # it will coredump.
12716 lt_prog_compiler_pic='-fPIC -shared'
12717 ;;
12718
12719 osf3* | osf4* | osf5*)
12720 lt_prog_compiler_wl='-Wl,'
12721 # All OSF/1 code is PIC.
12722 lt_prog_compiler_static='-non_shared'
12723 ;;
12724
12725 rdos*)
12726 lt_prog_compiler_static='-non_shared'
12727 ;;
12728
12729 solaris*)
12730 lt_prog_compiler_pic='-KPIC'
12731 lt_prog_compiler_static='-Bstatic'
12732 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012734 lt_prog_compiler_wl='-Qoption ld ';;
12735 *)
12736 lt_prog_compiler_wl='-Wl,';;
12737 esac
12738 ;;
12739
12740 sunos4*)
12741 lt_prog_compiler_wl='-Qoption ld '
12742 lt_prog_compiler_pic='-PIC'
12743 lt_prog_compiler_static='-Bstatic'
12744 ;;
12745
12746 sysv4 | sysv4.2uw2* | sysv4.3*)
12747 lt_prog_compiler_wl='-Wl,'
12748 lt_prog_compiler_pic='-KPIC'
12749 lt_prog_compiler_static='-Bstatic'
12750 ;;
12751
12752 sysv4*MP*)
12753 if test -d /usr/nec ;then
12754 lt_prog_compiler_pic='-Kconform_pic'
12755 lt_prog_compiler_static='-Bstatic'
12756 fi
12757 ;;
12758
12759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12760 lt_prog_compiler_wl='-Wl,'
12761 lt_prog_compiler_pic='-KPIC'
12762 lt_prog_compiler_static='-Bstatic'
12763 ;;
12764
12765 unicos*)
12766 lt_prog_compiler_wl='-Wl,'
12767 lt_prog_compiler_can_build_shared=no
12768 ;;
12769
12770 uts4*)
12771 lt_prog_compiler_pic='-pic'
12772 lt_prog_compiler_static='-Bstatic'
12773 ;;
12774
12775 *)
12776 lt_prog_compiler_can_build_shared=no
12777 ;;
12778 esac
12779 fi
12780
12781case $host_os in
12782 # For platforms which do not support PIC, -DPIC is meaningless:
12783 *djgpp*)
12784 lt_prog_compiler_pic=
12785 ;;
12786 *)
12787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12788 ;;
12789esac
cristy8b350f62009-11-15 23:12:43 +000012790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012791$as_echo "$lt_prog_compiler_pic" >&6; }
12792
12793
12794
12795
12796
12797
12798#
12799# Check to make sure the PIC flag actually works.
12800#
12801if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012804if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012805 $as_echo_n "(cached) " >&6
12806else
12807 lt_cv_prog_compiler_pic_works=no
12808 ac_outfile=conftest.$ac_objext
12809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12811 # Insert the option either (1) after the last *FLAGS variable, or
12812 # (2) before a word containing "conftest.", or (3) at the end.
12813 # Note that $ac_compile itself does not contain backslashes and begins
12814 # with a dollar sign (not a hyphen), so the echo should work correctly.
12815 # The option is referenced via a variable to avoid confusing sed.
12816 lt_compile=`echo "$ac_compile" | $SED \
12817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012821 (eval "$lt_compile" 2>conftest.err)
12822 ac_status=$?
12823 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012825 if (exit $ac_status) && test -s "$ac_outfile"; then
12826 # The compiler can only warn and ignore the option if not recognized
12827 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12831 lt_cv_prog_compiler_pic_works=yes
12832 fi
12833 fi
12834 $RM conftest*
12835
12836fi
cristy8b350f62009-11-15 23:12:43 +000012837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12839
12840if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12841 case $lt_prog_compiler_pic in
12842 "" | " "*) ;;
12843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12844 esac
12845else
12846 lt_prog_compiler_pic=
12847 lt_prog_compiler_can_build_shared=no
12848fi
12849
12850fi
12851
12852
12853
12854
12855
12856
12857#
12858# Check to make sure the static flag actually works.
12859#
12860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012863if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012864 $as_echo_n "(cached) " >&6
12865else
12866 lt_cv_prog_compiler_static_works=no
12867 save_LDFLAGS="$LDFLAGS"
12868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12871 # The linker can only warn and ignore the option if not recognized
12872 # So say no if there are warnings
12873 if test -s conftest.err; then
12874 # Append any errors to the config.log.
12875 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12878 if diff conftest.exp conftest.er2 >/dev/null; then
12879 lt_cv_prog_compiler_static_works=yes
12880 fi
12881 else
12882 lt_cv_prog_compiler_static_works=yes
12883 fi
12884 fi
12885 $RM -r conftest*
12886 LDFLAGS="$save_LDFLAGS"
12887
12888fi
cristy8b350f62009-11-15 23:12:43 +000012889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12891
12892if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12893 :
12894else
12895 lt_prog_compiler_static=
12896fi
12897
12898
12899
12900
12901
12902
12903
cristy8b350f62009-11-15 23:12:43 +000012904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012906if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 lt_cv_prog_compiler_c_o=no
12910 $RM -r conftest 2>/dev/null
12911 mkdir conftest
12912 cd conftest
12913 mkdir out
12914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12915
12916 lt_compiler_flag="-o out/conftest2.$ac_objext"
12917 # Insert the option either (1) after the last *FLAGS variable, or
12918 # (2) before a word containing "conftest.", or (3) at the end.
12919 # Note that $ac_compile itself does not contain backslashes and begins
12920 # with a dollar sign (not a hyphen), so the echo should work correctly.
12921 lt_compile=`echo "$ac_compile" | $SED \
12922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12924 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012926 (eval "$lt_compile" 2>out/conftest.err)
12927 ac_status=$?
12928 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12931 then
12932 # The compiler can only warn and ignore the option if not recognized
12933 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12937 lt_cv_prog_compiler_c_o=yes
12938 fi
12939 fi
12940 chmod u+w . 2>&5
12941 $RM conftest*
12942 # SGI C++ compiler will create directory out/ii_files/ for
12943 # template instantiation
12944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12945 $RM out/* && rmdir out
12946 cd ..
12947 $RM -r conftest
12948 $RM conftest*
12949
12950fi
cristy8b350f62009-11-15 23:12:43 +000012951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12953
12954
12955
12956
12957
12958
cristy8b350f62009-11-15 23:12:43 +000012959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012961if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012962 $as_echo_n "(cached) " >&6
12963else
12964 lt_cv_prog_compiler_c_o=no
12965 $RM -r conftest 2>/dev/null
12966 mkdir conftest
12967 cd conftest
12968 mkdir out
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970
12971 lt_compiler_flag="-o out/conftest2.$ac_objext"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 lt_compile=`echo "$ac_compile" | $SED \
12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012981 (eval "$lt_compile" 2>out/conftest.err)
12982 ac_status=$?
12983 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12986 then
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992 lt_cv_prog_compiler_c_o=yes
12993 fi
12994 fi
12995 chmod u+w . 2>&5
12996 $RM conftest*
12997 # SGI C++ compiler will create directory out/ii_files/ for
12998 # template instantiation
12999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13000 $RM out/* && rmdir out
13001 cd ..
13002 $RM -r conftest
13003 $RM conftest*
13004
13005fi
cristy8b350f62009-11-15 23:12:43 +000013006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13008
13009
13010
13011
13012hard_links="nottested"
13013if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13014 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013016$as_echo_n "checking if we can lock with hard links... " >&6; }
13017 hard_links=yes
13018 $RM conftest*
13019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13020 touch conftest.a
13021 ln conftest.a conftest.b 2>&5 || hard_links=no
13022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013024$as_echo "$hard_links" >&6; }
13025 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013026 { $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 +000013027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13028 need_locks=warn
13029 fi
13030else
13031 need_locks=no
13032fi
13033
13034
13035
13036
13037
13038
cristy8b350f62009-11-15 23:12:43 +000013039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13041
13042 runpath_var=
13043 allow_undefined_flag=
13044 always_export_symbols=no
13045 archive_cmds=
13046 archive_expsym_cmds=
13047 compiler_needs_object=no
13048 enable_shared_with_static_runtimes=no
13049 export_dynamic_flag_spec=
13050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051 hardcode_automatic=no
13052 hardcode_direct=no
13053 hardcode_direct_absolute=no
13054 hardcode_libdir_flag_spec=
13055 hardcode_libdir_flag_spec_ld=
13056 hardcode_libdir_separator=
13057 hardcode_minus_L=no
13058 hardcode_shlibpath_var=unsupported
13059 inherit_rpath=no
13060 link_all_deplibs=unknown
13061 module_cmds=
13062 module_expsym_cmds=
13063 old_archive_from_new_cmds=
13064 old_archive_from_expsyms_cmds=
13065 thread_safe_flag_spec=
13066 whole_archive_flag_spec=
13067 # include_expsyms should be a list of space-separated symbols to be *always*
13068 # included in the symbol list
13069 include_expsyms=
13070 # exclude_expsyms can be an extended regexp of symbols to exclude
13071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13073 # as well as any symbol that contains `d'.
13074 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13076 # platforms (ab)use it in PIC code, but their linkers get confused if
13077 # the symbol is explicitly referenced. Since portable code cannot
13078 # rely on this symbol name, it's probably fine to never include it in
13079 # preloaded symbol tables.
13080 # Exclude shared library initialization/finalization symbols.
13081 extract_expsyms_cmds=
13082
13083 case $host_os in
13084 cygwin* | mingw* | pw32* | cegcc*)
13085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13086 # When not using gcc, we currently assume that we are using
13087 # Microsoft Visual C++.
13088 if test "$GCC" != yes; then
13089 with_gnu_ld=no
13090 fi
13091 ;;
13092 interix*)
13093 # we just hope/assume this is gcc and not c89 (= MSVC++)
13094 with_gnu_ld=yes
13095 ;;
13096 openbsd*)
13097 with_gnu_ld=no
13098 ;;
13099 esac
13100
13101 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013102
13103 # On some targets, GNU ld is compatible enough with the native linker
13104 # that we're better off using the native interface for both.
13105 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013106 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013107 case $host_os in
13108 aix*)
13109 # The AIX port of GNU ld has always aspired to compatibility
13110 # with the native linker. However, as the warning in the GNU ld
13111 # block says, versions before 2.19.5* couldn't really create working
13112 # shared libraries, regardless of the interface used.
13113 case `$LD -v 2>&1` in
13114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13117 *)
13118 lt_use_gnu_ld_interface=yes
13119 ;;
13120 esac
13121 ;;
13122 *)
13123 lt_use_gnu_ld_interface=yes
13124 ;;
13125 esac
13126 fi
13127
13128 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013129 # If archive_cmds runs LD, not CC, wlarc should be empty
13130 wlarc='${wl}'
13131
13132 # Set some defaults for GNU ld with shared library support. These
13133 # are reset later if shared libraries are not supported. Putting them
13134 # here allows them to be overridden if necessary.
13135 runpath_var=LD_RUN_PATH
13136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13137 export_dynamic_flag_spec='${wl}--export-dynamic'
13138 # ancient GNU ld didn't support --whole-archive et. al.
13139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13140 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13141 else
13142 whole_archive_flag_spec=
13143 fi
13144 supports_anon_versioning=no
13145 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013146 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13150 *\ 2.11.*) ;; # other 2.11 versions
13151 *) supports_anon_versioning=yes ;;
13152 esac
13153
13154 # See if GNU ld supports shared libraries.
13155 case $host_os in
13156 aix[3-9]*)
13157 # On AIX/PPC, the GNU linker is very broken
13158 if test "$host_cpu" != ia64; then
13159 ld_shlibs=no
13160 cat <<_LT_EOF 1>&2
13161
cristyfd9dcd42010-08-08 18:07:02 +000013162*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013163*** to be unable to reliably create shared libraries on AIX.
13164*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013165*** really care for shared libraries, you may want to install binutils
13166*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13167*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013168
13169_LT_EOF
13170 fi
13171 ;;
13172
13173 amigaos*)
13174 case $host_cpu in
13175 powerpc)
13176 # see comment about AmigaOS4 .so support
13177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 archive_expsym_cmds=''
13179 ;;
13180 m68k)
13181 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)'
13182 hardcode_libdir_flag_spec='-L$libdir'
13183 hardcode_minus_L=yes
13184 ;;
13185 esac
13186 ;;
13187
13188 beos*)
13189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13190 allow_undefined_flag=unsupported
13191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13192 # support --undefined. This deserves some investigation. FIXME
13193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 else
13195 ld_shlibs=no
13196 fi
13197 ;;
13198
13199 cygwin* | mingw* | pw32* | cegcc*)
13200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13201 # as there is no search path for DLLs.
13202 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013203 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013204 allow_undefined_flag=unsupported
13205 always_export_symbols=no
13206 enable_shared_with_static_runtimes=yes
13207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13208
13209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211 # If the export-symbols file already is a .def file (1st line
13212 # is EXPORTS), use it as is; otherwise, prepend...
13213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214 cp $export_symbols $output_objdir/$soname.def;
13215 else
13216 echo EXPORTS > $output_objdir/$soname.def;
13217 cat $export_symbols >> $output_objdir/$soname.def;
13218 fi~
13219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13220 else
13221 ld_shlibs=no
13222 fi
13223 ;;
13224
cristyfd9dcd42010-08-08 18:07:02 +000013225 haiku*)
13226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 link_all_deplibs=yes
13228 ;;
13229
cristy3ed852e2009-09-05 21:47:34 +000013230 interix[3-9]*)
13231 hardcode_direct=no
13232 hardcode_shlibpath_var=no
13233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13234 export_dynamic_flag_spec='${wl}-E'
13235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13236 # Instead, shared libraries are loaded at an image base (0x10000000 by
13237 # default) and relocated if they conflict, which is a slow very memory
13238 # consuming and fragmenting process. To avoid this, we pick a random,
13239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13242 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'
13243 ;;
13244
cristyfd9dcd42010-08-08 18:07:02 +000013245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013246 tmp_diet=no
13247 if test "$host_os" = linux-dietlibc; then
13248 case $cc_basename in
13249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13250 esac
13251 fi
13252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13253 && test "$tmp_diet" = no
13254 then
13255 tmp_addflag=
13256 tmp_sharedflag='-shared'
13257 case $cc_basename,$host_cpu in
13258 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013259 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 +000013260 tmp_addflag=' $pic_flag'
13261 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013262 pgf77* | pgf90* | pgf95* | pgfortran*)
13263 # Portland Group f77 and f90 compilers
13264 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 +000013265 tmp_addflag=' $pic_flag -Mnomain' ;;
13266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13267 tmp_addflag=' -i_dynamic' ;;
13268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13269 tmp_addflag=' -i_dynamic -nofor_main' ;;
13270 ifc* | ifort*) # Intel Fortran compiler
13271 tmp_addflag=' -nofor_main' ;;
13272 lf95*) # Lahey Fortran 8.1
13273 whole_archive_flag_spec=
13274 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013275 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013276 tmp_sharedflag='-qmkshrobj'
13277 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013278 nvcc*) # Cuda Compiler Driver 2.2
13279 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'
13280 compiler_needs_object=yes
13281 ;;
cristy3ed852e2009-09-05 21:47:34 +000013282 esac
13283 case `$CC -V 2>&1 | sed 5q` in
13284 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013285 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 +000013286 compiler_needs_object=yes
13287 tmp_sharedflag='-G' ;;
13288 *Sun\ F*) # Sun Fortran 8.3
13289 tmp_sharedflag='-G' ;;
13290 esac
13291 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292
13293 if test "x$supports_anon_versioning" = xyes; then
13294 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13296 echo "local: *; };" >> $output_objdir/$libname.ver~
13297 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13298 fi
13299
13300 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013301 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13304 hardcode_libdir_flag_spec=
13305 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013306 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013307 if test "x$supports_anon_versioning" = xyes; then
13308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13310 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013311 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013312 fi
13313 ;;
13314 esac
13315 else
13316 ld_shlibs=no
13317 fi
13318 ;;
13319
13320 netbsd*)
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13322 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13323 wlarc=
13324 else
13325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327 fi
13328 ;;
13329
13330 solaris*)
13331 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13332 ld_shlibs=no
13333 cat <<_LT_EOF 1>&2
13334
13335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13336*** create shared libraries on Solaris systems. Therefore, libtool
13337*** is disabling shared libraries support. We urge you to upgrade GNU
13338*** binutils to release 2.9.1 or newer. Another option is to modify
13339*** your PATH or compiler configuration so that the native linker is
13340*** used, and then restart.
13341
13342_LT_EOF
13343 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13346 else
13347 ld_shlibs=no
13348 fi
13349 ;;
13350
13351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13352 case `$LD -v 2>&1` in
13353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13354 ld_shlibs=no
13355 cat <<_LT_EOF 1>&2
13356
13357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13358*** reliably create shared libraries on SCO systems. Therefore, libtool
13359*** is disabling shared libraries support. We urge you to upgrade GNU
13360*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13361*** your PATH or compiler configuration so that the native linker is
13362*** used, and then restart.
13363
13364_LT_EOF
13365 ;;
13366 *)
13367 # For security reasons, it is highly recommended that you always
13368 # use absolute paths for naming shared libraries, and exclude the
13369 # DT_RUNPATH tag from executables and libraries. But doing so
13370 # requires that you compile everything twice, which is a pain.
13371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13375 else
13376 ld_shlibs=no
13377 fi
13378 ;;
13379 esac
13380 ;;
13381
13382 sunos4*)
13383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384 wlarc=
13385 hardcode_direct=yes
13386 hardcode_shlibpath_var=no
13387 ;;
13388
13389 *)
13390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13393 else
13394 ld_shlibs=no
13395 fi
13396 ;;
13397 esac
13398
13399 if test "$ld_shlibs" = no; then
13400 runpath_var=
13401 hardcode_libdir_flag_spec=
13402 export_dynamic_flag_spec=
13403 whole_archive_flag_spec=
13404 fi
13405 else
13406 # PORTME fill in a description of your system's linker (not GNU ld)
13407 case $host_os in
13408 aix3*)
13409 allow_undefined_flag=unsupported
13410 always_export_symbols=yes
13411 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'
13412 # Note: this linker hardcodes the directories in LIBPATH if there
13413 # are no directories specified by -L.
13414 hardcode_minus_L=yes
13415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13416 # Neither direct hardcoding nor static linking is supported with a
13417 # broken collect2.
13418 hardcode_direct=unsupported
13419 fi
13420 ;;
13421
13422 aix[4-9]*)
13423 if test "$host_cpu" = ia64; then
13424 # On IA64, the linker does run time linking by default, so we don't
13425 # have to do anything special.
13426 aix_use_runtimelinking=no
13427 exp_sym_flag='-Bexport'
13428 no_entry_flag=""
13429 else
13430 # If we're using GNU nm, then we don't want the "-C" option.
13431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013432 # Also, AIX nm treats weak defined symbols like other global
13433 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013434 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013435 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 +000013436 else
13437 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'
13438 fi
13439 aix_use_runtimelinking=no
13440
13441 # Test if we are trying to use run time linking or normal
13442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443 # need to do runtime linking.
13444 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445 for ld_flag in $LDFLAGS; do
13446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447 aix_use_runtimelinking=yes
13448 break
13449 fi
13450 done
13451 ;;
13452 esac
13453
13454 exp_sym_flag='-bexport'
13455 no_entry_flag='-bnoentry'
13456 fi
13457
13458 # When large executables or shared objects are built, AIX ld can
13459 # have problems creating the table of contents. If linking a library
13460 # or program results in "error TOC overflow" add -mminimal-toc to
13461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13463
13464 archive_cmds=''
13465 hardcode_direct=yes
13466 hardcode_direct_absolute=yes
13467 hardcode_libdir_separator=':'
13468 link_all_deplibs=yes
13469 file_list_spec='${wl}-f,'
13470
13471 if test "$GCC" = yes; then
13472 case $host_os in aix4.[012]|aix4.[012].*)
13473 # We only want to do this on AIX 4.2 and lower, the check
13474 # below for broken collect2 doesn't work under 4.3+
13475 collect2name=`${CC} -print-prog-name=collect2`
13476 if test -f "$collect2name" &&
13477 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13478 then
13479 # We have reworked collect2
13480 :
13481 else
13482 # We have old collect2
13483 hardcode_direct=unsupported
13484 # It fails to find uninstalled libraries when the uninstalled
13485 # path is not listed in the libpath. Setting hardcode_minus_L
13486 # to unsupported forces relinking
13487 hardcode_minus_L=yes
13488 hardcode_libdir_flag_spec='-L$libdir'
13489 hardcode_libdir_separator=
13490 fi
13491 ;;
13492 esac
13493 shared_flag='-shared'
13494 if test "$aix_use_runtimelinking" = yes; then
13495 shared_flag="$shared_flag "'${wl}-G'
13496 fi
13497 else
13498 # not using gcc
13499 if test "$host_cpu" = ia64; then
13500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501 # chokes on -Wl,-G. The following line is correct:
13502 shared_flag='-G'
13503 else
13504 if test "$aix_use_runtimelinking" = yes; then
13505 shared_flag='${wl}-G'
13506 else
13507 shared_flag='${wl}-bM:SRE'
13508 fi
13509 fi
13510 fi
13511
13512 export_dynamic_flag_spec='${wl}-bexpall'
13513 # It seems that -bexpall does not export symbols beginning with
13514 # underscore (_), so it is better to generate a list of symbols to export.
13515 always_export_symbols=yes
13516 if test "$aix_use_runtimelinking" = yes; then
13517 # Warning - without using the other runtime loading flags (-brtl),
13518 # -berok will link without error, but may produce a broken library.
13519 allow_undefined_flag='-berok'
13520 # Determine the default libpath from the value encoded in an
13521 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013523/* end confdefs.h. */
13524
13525int
13526main ()
13527{
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013534
13535lt_aix_libpath_sed='
13536 /Import File Strings/,/^$/ {
13537 /^0/ {
13538 s/^0 *\(.*\)$/\1/
13539 p
13540 }
13541 }'
13542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543# Check for a 64-bit object if we didn't find anything.
13544if test -z "$aix_libpath"; then
13545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13546fi
cristy3ed852e2009-09-05 21:47:34 +000013547fi
cristy8b350f62009-11-15 23:12:43 +000013548rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13551
13552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013553 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 +000013554 else
13555 if test "$host_cpu" = ia64; then
13556 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13557 allow_undefined_flag="-z nodefs"
13558 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"
13559 else
13560 # Determine the default libpath from the value encoded in an
13561 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013563/* end confdefs.h. */
13564
13565int
13566main ()
13567{
13568
13569 ;
13570 return 0;
13571}
13572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013573if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013574
13575lt_aix_libpath_sed='
13576 /Import File Strings/,/^$/ {
13577 /^0/ {
13578 s/^0 *\(.*\)$/\1/
13579 p
13580 }
13581 }'
13582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583# Check for a 64-bit object if we didn't find anything.
13584if test -z "$aix_libpath"; then
13585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13586fi
cristy3ed852e2009-09-05 21:47:34 +000013587fi
cristy8b350f62009-11-15 23:12:43 +000013588rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591
13592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13593 # Warning - without using the other run time loading flags,
13594 # -berok will link without error, but may produce a broken library.
13595 no_undefined_flag=' ${wl}-bernotok'
13596 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013597 if test "$with_gnu_ld" = yes; then
13598 # We only use this code for GNU lds that support --whole-archive.
13599 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13600 else
13601 # Exported symbols can be pulled into shared objects from archives
13602 whole_archive_flag_spec='$convenience'
13603 fi
cristy3ed852e2009-09-05 21:47:34 +000013604 archive_cmds_need_lc=yes
13605 # This is similar to how AIX traditionally builds its shared libraries.
13606 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'
13607 fi
13608 fi
13609 ;;
13610
13611 amigaos*)
13612 case $host_cpu in
13613 powerpc)
13614 # see comment about AmigaOS4 .so support
13615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 archive_expsym_cmds=''
13617 ;;
13618 m68k)
13619 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)'
13620 hardcode_libdir_flag_spec='-L$libdir'
13621 hardcode_minus_L=yes
13622 ;;
13623 esac
13624 ;;
13625
13626 bsdi[45]*)
13627 export_dynamic_flag_spec=-rdynamic
13628 ;;
13629
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 # When not using gcc, we currently assume that we are using
13632 # Microsoft Visual C++.
13633 # hardcode_libdir_flag_spec is actually meaningless, as there is
13634 # no search path for DLLs.
13635 hardcode_libdir_flag_spec=' '
13636 allow_undefined_flag=unsupported
13637 # Tell ltmain to make .lib files, not .a files.
13638 libext=lib
13639 # Tell ltmain to make .dll files, not .so files.
13640 shrext_cmds=".dll"
13641 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013643 # The linker will automatically build a .lib file if we build a DLL.
13644 old_archive_from_new_cmds='true'
13645 # FIXME: Should let the user specify the lib program.
13646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13647 fix_srcfile_path='`cygpath -w "$srcfile"`'
13648 enable_shared_with_static_runtimes=yes
13649 ;;
13650
13651 darwin* | rhapsody*)
13652
13653
13654 archive_cmds_need_lc=no
13655 hardcode_direct=no
13656 hardcode_automatic=yes
13657 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013658 if test "$lt_cv_ld_force_load" = "yes"; then
13659 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\"`'
13660 else
13661 whole_archive_flag_spec=''
13662 fi
cristy3ed852e2009-09-05 21:47:34 +000013663 link_all_deplibs=yes
13664 allow_undefined_flag="$_lt_dar_allow_undefined"
13665 case $cc_basename in
13666 ifort*) _lt_dar_can_shared=yes ;;
13667 *) _lt_dar_can_shared=$GCC ;;
13668 esac
13669 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013670 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13673 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}"
13674 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}"
13675
13676 else
13677 ld_shlibs=no
13678 fi
13679
13680 ;;
13681
13682 dgux*)
13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_shlibpath_var=no
13686 ;;
13687
13688 freebsd1*)
13689 ld_shlibs=no
13690 ;;
13691
13692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693 # support. Future versions do this automatically, but an explicit c++rt0.o
13694 # does not break anything, and helps significantly (at the cost of a little
13695 # extra space).
13696 freebsd2.2*)
13697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698 hardcode_libdir_flag_spec='-R$libdir'
13699 hardcode_direct=yes
13700 hardcode_shlibpath_var=no
13701 ;;
13702
13703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13704 freebsd2*)
13705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_direct=yes
13707 hardcode_minus_L=yes
13708 hardcode_shlibpath_var=no
13709 ;;
13710
13711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712 freebsd* | dragonfly*)
13713 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714 hardcode_libdir_flag_spec='-R$libdir'
13715 hardcode_direct=yes
13716 hardcode_shlibpath_var=no
13717 ;;
13718
13719 hpux9*)
13720 if test "$GCC" = yes; then
13721 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'
13722 else
13723 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'
13724 fi
13725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13726 hardcode_libdir_separator=:
13727 hardcode_direct=yes
13728
13729 # hardcode_minus_L: Not really in the search PATH,
13730 # but as the default location of the library.
13731 hardcode_minus_L=yes
13732 export_dynamic_flag_spec='${wl}-E'
13733 ;;
13734
13735 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013736 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13738 else
13739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13740 fi
13741 if test "$with_gnu_ld" = no; then
13742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743 hardcode_libdir_flag_spec_ld='+b $libdir'
13744 hardcode_libdir_separator=:
13745 hardcode_direct=yes
13746 hardcode_direct_absolute=yes
13747 export_dynamic_flag_spec='${wl}-E'
13748 # hardcode_minus_L: Not really in the search PATH,
13749 # but as the default location of the library.
13750 hardcode_minus_L=yes
13751 fi
13752 ;;
13753
13754 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013756 case $host_cpu in
13757 hppa*64*)
13758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 ;;
13760 ia64*)
13761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 *)
13764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13765 ;;
13766 esac
13767 else
13768 case $host_cpu in
13769 hppa*64*)
13770 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 ;;
13772 ia64*)
13773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13774 ;;
13775 *)
cristyfd9dcd42010-08-08 18:07:02 +000013776
13777 # Older versions of the 11.00 compiler do not understand -b yet
13778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13780$as_echo_n "checking if $CC understands -b... " >&6; }
13781if test "${lt_cv_prog_compiler__b+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13783else
13784 lt_cv_prog_compiler__b=no
13785 save_LDFLAGS="$LDFLAGS"
13786 LDFLAGS="$LDFLAGS -b"
13787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13789 # The linker can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test -s conftest.err; then
13792 # Append any errors to the config.log.
13793 cat conftest.err 1>&5
13794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796 if diff conftest.exp conftest.er2 >/dev/null; then
13797 lt_cv_prog_compiler__b=yes
13798 fi
13799 else
13800 lt_cv_prog_compiler__b=yes
13801 fi
13802 fi
13803 $RM -r conftest*
13804 LDFLAGS="$save_LDFLAGS"
13805
13806fi
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13808$as_echo "$lt_cv_prog_compiler__b" >&6; }
13809
13810if test x"$lt_cv_prog_compiler__b" = xyes; then
13811 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13812else
13813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13814fi
13815
cristy3ed852e2009-09-05 21:47:34 +000013816 ;;
13817 esac
13818 fi
13819 if test "$with_gnu_ld" = no; then
13820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13821 hardcode_libdir_separator=:
13822
13823 case $host_cpu in
13824 hppa*64*|ia64*)
13825 hardcode_direct=no
13826 hardcode_shlibpath_var=no
13827 ;;
13828 *)
13829 hardcode_direct=yes
13830 hardcode_direct_absolute=yes
13831 export_dynamic_flag_spec='${wl}-E'
13832
13833 # hardcode_minus_L: Not really in the search PATH,
13834 # but as the default location of the library.
13835 hardcode_minus_L=yes
13836 ;;
13837 esac
13838 fi
13839 ;;
13840
13841 irix5* | irix6* | nonstopux*)
13842 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013843 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 +000013844 # Try to use the -exported_symbol ld option, if it does not
13845 # work, assume that -exports_file does not work either and
13846 # implicitly export all symbols.
13847 save_LDFLAGS="$LDFLAGS"
13848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013851int foo(void) {}
13852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013853if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013854 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 +000013855
cristy3ed852e2009-09-05 21:47:34 +000013856fi
cristy8b350f62009-11-15 23:12:43 +000013857rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013859 LDFLAGS="$save_LDFLAGS"
13860 else
cristyfd9dcd42010-08-08 18:07:02 +000013861 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'
13862 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 +000013863 fi
13864 archive_cmds_need_lc='no'
13865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866 hardcode_libdir_separator=:
13867 inherit_rpath=yes
13868 link_all_deplibs=yes
13869 ;;
13870
13871 netbsd*)
13872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13874 else
13875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13876 fi
13877 hardcode_libdir_flag_spec='-R$libdir'
13878 hardcode_direct=yes
13879 hardcode_shlibpath_var=no
13880 ;;
13881
13882 newsos6)
13883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 hardcode_direct=yes
13885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13886 hardcode_libdir_separator=:
13887 hardcode_shlibpath_var=no
13888 ;;
13889
13890 *nto* | *qnx*)
13891 ;;
13892
13893 openbsd*)
13894 if test -f /usr/libexec/ld.so; then
13895 hardcode_direct=yes
13896 hardcode_shlibpath_var=no
13897 hardcode_direct_absolute=yes
13898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13902 export_dynamic_flag_spec='${wl}-E'
13903 else
13904 case $host_os in
13905 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_libdir_flag_spec='-R$libdir'
13908 ;;
13909 *)
13910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13912 ;;
13913 esac
13914 fi
13915 else
13916 ld_shlibs=no
13917 fi
13918 ;;
13919
13920 os2*)
13921 hardcode_libdir_flag_spec='-L$libdir'
13922 hardcode_minus_L=yes
13923 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013924 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 +000013925 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13926 ;;
13927
13928 osf3*)
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013931 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 +000013932 else
13933 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013934 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 +000013935 fi
13936 archive_cmds_need_lc='no'
13937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 hardcode_libdir_separator=:
13939 ;;
13940
13941 osf4* | osf5*) # as osf3* with the addition of -msym flag
13942 if test "$GCC" = yes; then
13943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013944 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 +000013945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13946 else
13947 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013948 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 +000013949 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 +000013950 $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 +000013951
13952 # Both c and cxx compiler support -rpath directly
13953 hardcode_libdir_flag_spec='-rpath $libdir'
13954 fi
13955 archive_cmds_need_lc='no'
13956 hardcode_libdir_separator=:
13957 ;;
13958
13959 solaris*)
13960 no_undefined_flag=' -z defs'
13961 if test "$GCC" = yes; then
13962 wlarc='${wl}'
13963 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13966 else
13967 case `$CC -V 2>&1` in
13968 *"Compilers 5.0"*)
13969 wlarc=''
13970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13973 ;;
13974 *)
13975 wlarc='${wl}'
13976 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13978 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13979 ;;
13980 esac
13981 fi
13982 hardcode_libdir_flag_spec='-R$libdir'
13983 hardcode_shlibpath_var=no
13984 case $host_os in
13985 solaris2.[0-5] | solaris2.[0-5].*) ;;
13986 *)
13987 # The compiler driver will combine and reorder linker options,
13988 # but understands `-z linker_flag'. GCC discards it without `$wl',
13989 # but is careful enough not to reorder.
13990 # Supported since Solaris 2.6 (maybe 2.5.1?)
13991 if test "$GCC" = yes; then
13992 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13993 else
13994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13995 fi
13996 ;;
13997 esac
13998 link_all_deplibs=yes
13999 ;;
14000
14001 sunos4*)
14002 if test "x$host_vendor" = xsequent; then
14003 # Use $CC to link under sequent, because it throws in some extra .o
14004 # files that make .init and .fini sections work.
14005 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14006 else
14007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14008 fi
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 hardcode_direct=yes
14011 hardcode_minus_L=yes
14012 hardcode_shlibpath_var=no
14013 ;;
14014
14015 sysv4)
14016 case $host_vendor in
14017 sni)
14018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_direct=yes # is this really true???
14020 ;;
14021 siemens)
14022 ## LD is ld it makes a PLAMLIB
14023 ## CC just makes a GrossModule.
14024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14025 reload_cmds='$CC -r -o $output$reload_objs'
14026 hardcode_direct=no
14027 ;;
14028 motorola)
14029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14031 ;;
14032 esac
14033 runpath_var='LD_RUN_PATH'
14034 hardcode_shlibpath_var=no
14035 ;;
14036
14037 sysv4.3*)
14038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var=no
14040 export_dynamic_flag_spec='-Bexport'
14041 ;;
14042
14043 sysv4*MP*)
14044 if test -d /usr/nec; then
14045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14046 hardcode_shlibpath_var=no
14047 runpath_var=LD_RUN_PATH
14048 hardcode_runpath_var=yes
14049 ld_shlibs=yes
14050 fi
14051 ;;
14052
14053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14054 no_undefined_flag='${wl}-z,text'
14055 archive_cmds_need_lc=no
14056 hardcode_shlibpath_var=no
14057 runpath_var='LD_RUN_PATH'
14058
14059 if test "$GCC" = yes; then
14060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 else
14063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 fi
14066 ;;
14067
14068 sysv5* | sco3.2v5* | sco5v6*)
14069 # Note: We can NOT use -z defs as we might desire, because we do not
14070 # link with -lc, and that would cause any symbols used from libc to
14071 # always be unresolved, which means just about no library would
14072 # ever link correctly. If we're not using GNU ld we use -z text
14073 # though, which does catch some bad symbols but isn't as heavy-handed
14074 # as -z defs.
14075 no_undefined_flag='${wl}-z,text'
14076 allow_undefined_flag='${wl}-z,nodefs'
14077 archive_cmds_need_lc=no
14078 hardcode_shlibpath_var=no
14079 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14080 hardcode_libdir_separator=':'
14081 link_all_deplibs=yes
14082 export_dynamic_flag_spec='${wl}-Bexport'
14083 runpath_var='LD_RUN_PATH'
14084
14085 if test "$GCC" = yes; then
14086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 else
14089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 fi
14092 ;;
14093
14094 uts4*)
14095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_libdir_flag_spec='-L$libdir'
14097 hardcode_shlibpath_var=no
14098 ;;
14099
14100 *)
14101 ld_shlibs=no
14102 ;;
14103 esac
14104
14105 if test x$host_vendor = xsni; then
14106 case $host in
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108 export_dynamic_flag_spec='${wl}-Blargedynsym'
14109 ;;
14110 esac
14111 fi
14112 fi
14113
cristy8b350f62009-11-15 23:12:43 +000014114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014115$as_echo "$ld_shlibs" >&6; }
14116test "$ld_shlibs" = no && can_build_shared=no
14117
14118with_gnu_ld=$with_gnu_ld
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134#
14135# Do we need to explicitly link libc?
14136#
14137case "x$archive_cmds_need_lc" in
14138x|xyes)
14139 # Assume -lc should be added
14140 archive_cmds_need_lc=yes
14141
14142 if test "$enable_shared" = yes && test "$GCC" = yes; then
14143 case $archive_cmds in
14144 *'~'*)
14145 # FIXME: we may have to deal with multi-command sequences.
14146 ;;
14147 '$CC '*)
14148 # Test whether the compiler implicitly links with -lc since on some
14149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14150 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014153if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155else
14156 $RM conftest*
14157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014158
cristyfd9dcd42010-08-08 18:07:02 +000014159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014160 (eval $ac_compile) 2>&5
14161 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014164 soname=conftest
14165 lib=conftest
14166 libobjs=conftest.$ac_objext
14167 deplibs=
14168 wl=$lt_prog_compiler_wl
14169 pic_flag=$lt_prog_compiler_pic
14170 compiler_flags=-v
14171 linker_flags=-v
14172 verstring=
14173 output_objdir=.
14174 libname=conftest
14175 lt_save_allow_undefined_flag=$allow_undefined_flag
14176 allow_undefined_flag=
14177 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 +000014178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14179 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014182 then
14183 lt_cv_archive_cmds_need_lc=no
14184 else
14185 lt_cv_archive_cmds_need_lc=yes
14186 fi
14187 allow_undefined_flag=$lt_save_allow_undefined_flag
14188 else
14189 cat conftest.err 1>&5
14190 fi
14191 $RM conftest*
14192
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14195$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014197 ;;
14198 esac
14199 fi
14200 ;;
14201esac
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
cristy8b350f62009-11-15 23:12:43 +000014359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014360$as_echo_n "checking dynamic linker characteristics... " >&6; }
14361
14362if test "$GCC" = yes; then
14363 case $host_os in
14364 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14365 *) lt_awk_arg="/^libraries:/" ;;
14366 esac
cristyfd9dcd42010-08-08 18:07:02 +000014367 case $host_os in
14368 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14369 *) lt_sed_strip_eq="s,=/,/,g" ;;
14370 esac
14371 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14372 case $lt_search_path_spec in
14373 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014374 # if the path contains ";" then we assume it to be the separator
14375 # otherwise default to the standard path separator (i.e. ":") - it is
14376 # assumed that no part of a normal pathname contains ";" but that should
14377 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14379 ;;
14380 *)
14381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14382 ;;
14383 esac
cristy3ed852e2009-09-05 21:47:34 +000014384 # Ok, now we have the path, separated by spaces, we can step through it
14385 # and add multilib dir if necessary.
14386 lt_tmp_lt_search_path_spec=
14387 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14388 for lt_sys_path in $lt_search_path_spec; do
14389 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14391 else
14392 test -d "$lt_sys_path" && \
14393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14394 fi
14395 done
cristyfd9dcd42010-08-08 18:07:02 +000014396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014397BEGIN {RS=" "; FS="/|\n";} {
14398 lt_foo="";
14399 lt_count=0;
14400 for (lt_i = NF; lt_i > 0; lt_i--) {
14401 if ($lt_i != "" && $lt_i != ".") {
14402 if ($lt_i == "..") {
14403 lt_count++;
14404 } else {
14405 if (lt_count == 0) {
14406 lt_foo="/" $lt_i lt_foo;
14407 } else {
14408 lt_count--;
14409 }
14410 }
14411 }
14412 }
14413 if (lt_foo != "") { lt_freq[lt_foo]++; }
14414 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14415}'`
cristyfd9dcd42010-08-08 18:07:02 +000014416 # AWK program above erroneously prepends '/' to C:/dos/paths
14417 # for these hosts.
14418 case $host_os in
14419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14420 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14421 esac
14422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014423else
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14425fi
14426library_names_spec=
14427libname_spec='lib$name'
14428soname_spec=
14429shrext_cmds=".so"
14430postinstall_cmds=
14431postuninstall_cmds=
14432finish_cmds=
14433finish_eval=
14434shlibpath_var=
14435shlibpath_overrides_runpath=unknown
14436version_type=none
14437dynamic_linker="$host_os ld.so"
14438sys_lib_dlsearch_path_spec="/lib /usr/lib"
14439need_lib_prefix=unknown
14440hardcode_into_libs=no
14441
14442# when you set need_version to no, make sure it does not cause -set_version
14443# flags to be left without arguments
14444need_version=unknown
14445
14446case $host_os in
14447aix3*)
14448 version_type=linux
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14450 shlibpath_var=LIBPATH
14451
14452 # AIX 3 has no versioning support, so we append a major version to the name.
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 ;;
14455
14456aix[4-9]*)
14457 version_type=linux
14458 need_lib_prefix=no
14459 need_version=no
14460 hardcode_into_libs=yes
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 supports IA64
14463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 else
14466 # With GCC up to 2.95.x, collect2 would create an import file
14467 # for dependence libraries. The import file would start with
14468 # the line `#! .'. This would cause the generated library to
14469 # depend on `.', always an invalid library. This was fixed in
14470 # development snapshots of GCC prior to 3.0.
14471 case $host_os in
14472 aix4 | aix4.[01] | aix4.[01].*)
14473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14474 echo ' yes '
14475 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14476 :
14477 else
14478 can_build_shared=no
14479 fi
14480 ;;
14481 esac
14482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14483 # soname into executable. Probably we can add versioning support to
14484 # collect2, so additional links can be useful in future.
14485 if test "$aix_use_runtimelinking" = yes; then
14486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14487 # instead of lib<name>.a to let people know that these are not
14488 # typical AIX shared libraries.
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 else
14491 # We preserve .a as extension for shared libraries through AIX4.2
14492 # and later when we are not doing run time linking.
14493 library_names_spec='${libname}${release}.a $libname.a'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 fi
14496 shlibpath_var=LIBPATH
14497 fi
14498 ;;
14499
14500amigaos*)
14501 case $host_cpu in
14502 powerpc)
14503 # Since July 2007 AmigaOS4 officially supports .so libraries.
14504 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 ;;
14507 m68k)
14508 library_names_spec='$libname.ixlibrary $libname.a'
14509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014510 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 +000014511 ;;
14512 esac
14513 ;;
14514
14515beos*)
14516 library_names_spec='${libname}${shared_ext}'
14517 dynamic_linker="$host_os ld.so"
14518 shlibpath_var=LIBRARY_PATH
14519 ;;
14520
14521bsdi[45]*)
14522 version_type=linux
14523 need_version=no
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14530 # the default ld.so.conf also contains /usr/contrib/lib and
14531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14532 # libtool to hard-code these into programs
14533 ;;
14534
14535cygwin* | mingw* | pw32* | cegcc*)
14536 version_type=windows
14537 shrext_cmds=".dll"
14538 need_version=no
14539 need_lib_prefix=no
14540
14541 case $GCC,$host_os in
14542 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14543 library_names_spec='$libname.dll.a'
14544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14545 postinstall_cmds='base_file=`basename \${file}`~
14546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14547 dldir=$destdir/`dirname \$dlpath`~
14548 test -d \$dldir || mkdir -p \$dldir~
14549 $install_prog $dir/$dlname \$dldir/$dlname~
14550 chmod a+x \$dldir/$dlname~
14551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14553 fi'
14554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14555 dlpath=$dir/\$dldll~
14556 $RM \$dlpath'
14557 shlibpath_overrides_runpath=yes
14558
14559 case $host_os in
14560 cygwin*)
14561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014563
14564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014565 ;;
14566 mingw* | cegcc*)
14567 # MinGW DLLs use traditional 'lib' prefix
14568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014569 ;;
14570 pw32*)
14571 # pw32 DLLs use 'pw' prefix rather than 'lib'
14572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573 ;;
14574 esac
14575 ;;
14576
14577 *)
14578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14579 ;;
14580 esac
14581 dynamic_linker='Win32 ld.exe'
14582 # FIXME: first we should search . and the directory the executable is in
14583 shlibpath_var=PATH
14584 ;;
14585
14586darwin* | rhapsody*)
14587 dynamic_linker="$host_os dyld"
14588 version_type=darwin
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14592 soname_spec='${libname}${release}${major}$shared_ext'
14593 shlibpath_overrides_runpath=yes
14594 shlibpath_var=DYLD_LIBRARY_PATH
14595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14596
14597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14599 ;;
14600
14601dgux*)
14602 version_type=linux
14603 need_lib_prefix=no
14604 need_version=no
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 ;;
14609
14610freebsd1*)
14611 dynamic_linker=no
14612 ;;
14613
14614freebsd* | dragonfly*)
14615 # DragonFly does not have aout. When/if they implement a new
14616 # versioning mechanism, adjust this.
14617 if test -x /usr/bin/objformat; then
14618 objformat=`/usr/bin/objformat`
14619 else
14620 case $host_os in
14621 freebsd[123]*) objformat=aout ;;
14622 *) objformat=elf ;;
14623 esac
14624 fi
14625 version_type=freebsd-$objformat
14626 case $version_type in
14627 freebsd-elf*)
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629 need_version=no
14630 need_lib_prefix=no
14631 ;;
14632 freebsd-*)
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14634 need_version=yes
14635 ;;
14636 esac
14637 shlibpath_var=LD_LIBRARY_PATH
14638 case $host_os in
14639 freebsd2*)
14640 shlibpath_overrides_runpath=yes
14641 ;;
14642 freebsd3.[01]* | freebsdelf3.[01]*)
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14645 ;;
14646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14648 shlibpath_overrides_runpath=no
14649 hardcode_into_libs=yes
14650 ;;
14651 *) # from 4.6 on, and DragonFly
14652 shlibpath_overrides_runpath=yes
14653 hardcode_into_libs=yes
14654 ;;
14655 esac
14656 ;;
14657
14658gnu*)
14659 version_type=linux
14660 need_lib_prefix=no
14661 need_version=no
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 hardcode_into_libs=yes
14666 ;;
14667
cristyfd9dcd42010-08-08 18:07:02 +000014668haiku*)
14669 version_type=linux
14670 need_lib_prefix=no
14671 need_version=no
14672 dynamic_linker="$host_os runtime_loader"
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LIBRARY_PATH
14676 shlibpath_overrides_runpath=yes
14677 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14678 hardcode_into_libs=yes
14679 ;;
14680
cristy3ed852e2009-09-05 21:47:34 +000014681hpux9* | hpux10* | hpux11*)
14682 # Give a soname corresponding to the major version so that dld.sl refuses to
14683 # link against other versions.
14684 version_type=sunos
14685 need_lib_prefix=no
14686 need_version=no
14687 case $host_cpu in
14688 ia64*)
14689 shrext_cmds='.so'
14690 hardcode_into_libs=yes
14691 dynamic_linker="$host_os dld.so"
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 if test "X$HPUX_IA64_MODE" = X32; then
14697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14698 else
14699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14700 fi
14701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702 ;;
14703 hppa*64*)
14704 shrext_cmds='.sl'
14705 hardcode_into_libs=yes
14706 dynamic_linker="$host_os dld.sl"
14707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14713 ;;
14714 *)
14715 shrext_cmds='.sl'
14716 dynamic_linker="$host_os dld.sl"
14717 shlibpath_var=SHLIB_PATH
14718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 ;;
14722 esac
cristyfd9dcd42010-08-08 18:07:02 +000014723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014724 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014725 # or fails outright, so override atomically:
14726 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014727 ;;
14728
14729interix[3-9]*)
14730 version_type=linux
14731 need_lib_prefix=no
14732 need_version=no
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=no
14738 hardcode_into_libs=yes
14739 ;;
14740
14741irix5* | irix6* | nonstopux*)
14742 case $host_os in
14743 nonstopux*) version_type=nonstopux ;;
14744 *)
14745 if test "$lt_cv_prog_gnu_ld" = yes; then
14746 version_type=linux
14747 else
14748 version_type=irix
14749 fi ;;
14750 esac
14751 need_lib_prefix=no
14752 need_version=no
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14755 case $host_os in
14756 irix5* | nonstopux*)
14757 libsuff= shlibsuff=
14758 ;;
14759 *)
14760 case $LD in # libtool.m4 will add one of these switches to LD
14761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14762 libsuff= shlibsuff= libmagic=32-bit;;
14763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14764 libsuff=32 shlibsuff=N32 libmagic=N32;;
14765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14767 *) libsuff= shlibsuff= libmagic=never-match;;
14768 esac
14769 ;;
14770 esac
14771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14772 shlibpath_overrides_runpath=no
14773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14775 hardcode_into_libs=yes
14776 ;;
14777
14778# No shared lib support for Linux oldld, aout, or coff.
14779linux*oldld* | linux*aout* | linux*coff*)
14780 dynamic_linker=no
14781 ;;
14782
14783# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014784linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014785 version_type=linux
14786 need_lib_prefix=no
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014793
cristy3ed852e2009-09-05 21:47:34 +000014794 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014795 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14797else
14798 lt_cv_shlibpath_overrides_runpath=no
14799 save_LDFLAGS=$LDFLAGS
14800 save_libdir=$libdir
14801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014804/* end confdefs.h. */
14805
14806int
14807main ()
14808{
14809
14810 ;
14811 return 0;
14812}
14813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014814if ac_fn_c_try_link "$LINENO"; then :
14815 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014816 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014817fi
cristy3ed852e2009-09-05 21:47:34 +000014818fi
cristy8b350f62009-11-15 23:12:43 +000014819rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014821 LDFLAGS=$save_LDFLAGS
14822 libdir=$save_libdir
14823
14824fi
14825
14826 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014827
14828 # This implies no fast_install, which is unacceptable.
14829 # Some rework will be needed to allow for fast_install
14830 # before this can be enabled.
14831 hardcode_into_libs=yes
14832
cristy679ed8e2009-12-05 02:37:41 +000014833 # Add ABI-specific directories to the system library path.
14834 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14835
cristy3ed852e2009-09-05 21:47:34 +000014836 # Append ld.so.conf contents to the search path
14837 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014838 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 +000014839 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014840
cristy3ed852e2009-09-05 21:47:34 +000014841 fi
14842
14843 # We used to test for /lib/ld.so.1 and disable shared libraries on
14844 # powerpc, because MkLinux only supported shared libraries with the
14845 # GNU dynamic linker. Since this was broken with cross compilers,
14846 # most powerpc-linux boxes support dynamic linking these days and
14847 # people can always --disable-shared, the test was removed, and we
14848 # assume the GNU/Linux dynamic linker is in use.
14849 dynamic_linker='GNU/Linux ld.so'
14850 ;;
14851
14852netbsd*)
14853 version_type=sunos
14854 need_lib_prefix=no
14855 need_version=no
14856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859 dynamic_linker='NetBSD (a.out) ld.so'
14860 else
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 dynamic_linker='NetBSD ld.elf_so'
14864 fi
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 ;;
14869
14870newsos6)
14871 version_type=linux
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 ;;
14876
14877*nto* | *qnx*)
14878 version_type=qnx
14879 need_lib_prefix=no
14880 need_version=no
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=no
14885 hardcode_into_libs=yes
14886 dynamic_linker='ldqnx.so'
14887 ;;
14888
14889openbsd*)
14890 version_type=sunos
14891 sys_lib_dlsearch_path_spec="/usr/lib"
14892 need_lib_prefix=no
14893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14894 case $host_os in
14895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14896 *) need_version=no ;;
14897 esac
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14902 case $host_os in
14903 openbsd2.[89] | openbsd2.[89].*)
14904 shlibpath_overrides_runpath=no
14905 ;;
14906 *)
14907 shlibpath_overrides_runpath=yes
14908 ;;
14909 esac
14910 else
14911 shlibpath_overrides_runpath=yes
14912 fi
14913 ;;
14914
14915os2*)
14916 libname_spec='$name'
14917 shrext_cmds=".dll"
14918 need_lib_prefix=no
14919 library_names_spec='$libname${shared_ext} $libname.a'
14920 dynamic_linker='OS/2 ld.exe'
14921 shlibpath_var=LIBPATH
14922 ;;
14923
14924osf3* | osf4* | osf5*)
14925 version_type=osf
14926 need_lib_prefix=no
14927 need_version=no
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14933 ;;
14934
14935rdos*)
14936 dynamic_linker=no
14937 ;;
14938
14939solaris*)
14940 version_type=linux
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 # ldd complains unless libraries are executable
14949 postinstall_cmds='chmod +x $lib'
14950 ;;
14951
14952sunos4*)
14953 version_type=sunos
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=yes
14958 if test "$with_gnu_ld" = yes; then
14959 need_lib_prefix=no
14960 fi
14961 need_version=yes
14962 ;;
14963
14964sysv4 | sysv4.3*)
14965 version_type=linux
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 case $host_vendor in
14970 sni)
14971 shlibpath_overrides_runpath=no
14972 need_lib_prefix=no
14973 runpath_var=LD_RUN_PATH
14974 ;;
14975 siemens)
14976 need_lib_prefix=no
14977 ;;
14978 motorola)
14979 need_lib_prefix=no
14980 need_version=no
14981 shlibpath_overrides_runpath=no
14982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14983 ;;
14984 esac
14985 ;;
14986
14987sysv4*MP*)
14988 if test -d /usr/nec ;then
14989 version_type=linux
14990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14991 soname_spec='$libname${shared_ext}.$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 fi
14994 ;;
14995
14996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14997 version_type=freebsd-elf
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 hardcode_into_libs=yes
15005 if test "$with_gnu_ld" = yes; then
15006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15007 else
15008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15009 case $host_os in
15010 sco3.2v5*)
15011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15012 ;;
15013 esac
15014 fi
15015 sys_lib_dlsearch_path_spec='/usr/lib'
15016 ;;
15017
15018tpf*)
15019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15020 version_type=linux
15021 need_lib_prefix=no
15022 need_version=no
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=no
15026 hardcode_into_libs=yes
15027 ;;
15028
15029uts4*)
15030 version_type=linux
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 ;;
15035
15036*)
15037 dynamic_linker=no
15038 ;;
15039esac
cristy8b350f62009-11-15 23:12:43 +000015040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015041$as_echo "$dynamic_linker" >&6; }
15042test "$dynamic_linker" = no && can_build_shared=no
15043
15044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15045if test "$GCC" = yes; then
15046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15047fi
15048
15049if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15051fi
15052if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15054fi
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
cristyfd9dcd42010-08-08 18:07:02 +000015142
15143
15144
15145
15146
cristy8b350f62009-11-15 23:12:43 +000015147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015148$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15149hardcode_action=
15150if test -n "$hardcode_libdir_flag_spec" ||
15151 test -n "$runpath_var" ||
15152 test "X$hardcode_automatic" = "Xyes" ; then
15153
15154 # We can hardcode non-existent directories.
15155 if test "$hardcode_direct" != no &&
15156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15157 # have to relink, otherwise we might link with an installed library
15158 # when we should be linking with a yet-to-be-installed one
15159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15160 test "$hardcode_minus_L" != no; then
15161 # Linking always hardcodes the temporary library directory.
15162 hardcode_action=relink
15163 else
15164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15165 hardcode_action=immediate
15166 fi
15167else
15168 # We cannot hardcode anything, or else we can only hardcode existing
15169 # directories.
15170 hardcode_action=unsupported
15171fi
cristy8b350f62009-11-15 23:12:43 +000015172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015173$as_echo "$hardcode_action" >&6; }
15174
15175if test "$hardcode_action" = relink ||
15176 test "$inherit_rpath" = yes; then
15177 # Fast installation is not supported
15178 enable_fast_install=no
15179elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no; then
15181 # Fast installation is not necessary
15182 enable_fast_install=needless
15183fi
15184
15185
15186
15187
15188
15189
15190 if test "x$enable_dlopen" != xyes; then
15191 enable_dlopen=unknown
15192 enable_dlopen_self=unknown
15193 enable_dlopen_self_static=unknown
15194else
15195 lt_cv_dlopen=no
15196 lt_cv_dlopen_libs=
15197
15198 case $host_os in
15199 beos*)
15200 lt_cv_dlopen="load_add_on"
15201 lt_cv_dlopen_libs=
15202 lt_cv_dlopen_self=yes
15203 ;;
15204
15205 mingw* | pw32* | cegcc*)
15206 lt_cv_dlopen="LoadLibrary"
15207 lt_cv_dlopen_libs=
15208 ;;
15209
15210 cygwin*)
15211 lt_cv_dlopen="dlopen"
15212 lt_cv_dlopen_libs=
15213 ;;
15214
15215 darwin*)
15216 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015218$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015219if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015220 $as_echo_n "(cached) " >&6
15221else
15222 ac_check_lib_save_LIBS=$LIBS
15223LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015225/* end confdefs.h. */
15226
15227/* Override any GCC internal prototype to avoid an error.
15228 Use char because int might match the return type of a GCC
15229 builtin and then its argument prototype would still apply. */
15230#ifdef __cplusplus
15231extern "C"
15232#endif
15233char dlopen ();
15234int
15235main ()
15236{
15237return dlopen ();
15238 ;
15239 return 0;
15240}
15241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015243 ac_cv_lib_dl_dlopen=yes
15244else
cristy8b350f62009-11-15 23:12:43 +000015245 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015246fi
cristy8b350f62009-11-15 23:12:43 +000015247rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015249LIBS=$ac_check_lib_save_LIBS
15250fi
cristy8b350f62009-11-15 23:12:43 +000015251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015252$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015253if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15255else
15256
15257 lt_cv_dlopen="dyld"
15258 lt_cv_dlopen_libs=
15259 lt_cv_dlopen_self=yes
15260
15261fi
15262
15263 ;;
15264
15265 *)
cristy8b350f62009-11-15 23:12:43 +000015266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15267if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015268 lt_cv_dlopen="shl_load"
15269else
cristy8b350f62009-11-15 23:12:43 +000015270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015271$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015272if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015273 $as_echo_n "(cached) " >&6
15274else
15275 ac_check_lib_save_LIBS=$LIBS
15276LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015278/* end confdefs.h. */
15279
15280/* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283#ifdef __cplusplus
15284extern "C"
15285#endif
15286char shl_load ();
15287int
15288main ()
15289{
15290return shl_load ();
15291 ;
15292 return 0;
15293}
15294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015296 ac_cv_lib_dld_shl_load=yes
15297else
cristy8b350f62009-11-15 23:12:43 +000015298 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015299fi
cristy8b350f62009-11-15 23:12:43 +000015300rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015302LIBS=$ac_check_lib_save_LIBS
15303fi
cristy8b350f62009-11-15 23:12:43 +000015304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015305$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015306if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15308else
cristy8b350f62009-11-15 23:12:43 +000015309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15310if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015311 lt_cv_dlopen="dlopen"
15312else
cristy8b350f62009-11-15 23:12:43 +000015313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015314$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015315if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015316 $as_echo_n "(cached) " >&6
15317else
15318 ac_check_lib_save_LIBS=$LIBS
15319LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015321/* end confdefs.h. */
15322
15323/* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15326#ifdef __cplusplus
15327extern "C"
15328#endif
15329char dlopen ();
15330int
15331main ()
15332{
15333return dlopen ();
15334 ;
15335 return 0;
15336}
15337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015339 ac_cv_lib_dl_dlopen=yes
15340else
cristy8b350f62009-11-15 23:12:43 +000015341 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015342fi
cristy8b350f62009-11-15 23:12:43 +000015343rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015345LIBS=$ac_check_lib_save_LIBS
15346fi
cristy8b350f62009-11-15 23:12:43 +000015347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015348$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015349if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15351else
cristy8b350f62009-11-15 23:12:43 +000015352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015353$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015354if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015355 $as_echo_n "(cached) " >&6
15356else
15357 ac_check_lib_save_LIBS=$LIBS
15358LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015360/* end confdefs.h. */
15361
15362/* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15365#ifdef __cplusplus
15366extern "C"
15367#endif
15368char dlopen ();
15369int
15370main ()
15371{
15372return dlopen ();
15373 ;
15374 return 0;
15375}
15376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015378 ac_cv_lib_svld_dlopen=yes
15379else
cristy8b350f62009-11-15 23:12:43 +000015380 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015381fi
cristy8b350f62009-11-15 23:12:43 +000015382rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015384LIBS=$ac_check_lib_save_LIBS
15385fi
cristy8b350f62009-11-15 23:12:43 +000015386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015387$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015388if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15390else
cristy8b350f62009-11-15 23:12:43 +000015391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015392$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015393if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015394 $as_echo_n "(cached) " >&6
15395else
15396 ac_check_lib_save_LIBS=$LIBS
15397LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015399/* end confdefs.h. */
15400
15401/* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
15404#ifdef __cplusplus
15405extern "C"
15406#endif
15407char dld_link ();
15408int
15409main ()
15410{
15411return dld_link ();
15412 ;
15413 return 0;
15414}
15415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015417 ac_cv_lib_dld_dld_link=yes
15418else
cristy8b350f62009-11-15 23:12:43 +000015419 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015420fi
cristy8b350f62009-11-15 23:12:43 +000015421rm -f core conftest.err conftest.$ac_objext \
15422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015423LIBS=$ac_check_lib_save_LIBS
15424fi
cristy8b350f62009-11-15 23:12:43 +000015425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015426$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015427if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15429fi
15430
15431
15432fi
15433
15434
15435fi
15436
15437
15438fi
15439
15440
15441fi
15442
15443
15444fi
15445
15446 ;;
15447 esac
15448
15449 if test "x$lt_cv_dlopen" != xno; then
15450 enable_dlopen=yes
15451 else
15452 enable_dlopen=no
15453 fi
15454
15455 case $lt_cv_dlopen in
15456 dlopen)
15457 save_CPPFLAGS="$CPPFLAGS"
15458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15459
15460 save_LDFLAGS="$LDFLAGS"
15461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15462
15463 save_LIBS="$LIBS"
15464 LIBS="$lt_cv_dlopen_libs $LIBS"
15465
cristy8b350f62009-11-15 23:12:43 +000015466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015467$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015468if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015469 $as_echo_n "(cached) " >&6
15470else
15471 if test "$cross_compiling" = yes; then :
15472 lt_cv_dlopen_self=cross
15473else
15474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15475 lt_status=$lt_dlunknown
15476 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015477#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015478#include "confdefs.h"
15479
15480#if HAVE_DLFCN_H
15481#include <dlfcn.h>
15482#endif
15483
15484#include <stdio.h>
15485
15486#ifdef RTLD_GLOBAL
15487# define LT_DLGLOBAL RTLD_GLOBAL
15488#else
15489# ifdef DL_GLOBAL
15490# define LT_DLGLOBAL DL_GLOBAL
15491# else
15492# define LT_DLGLOBAL 0
15493# endif
15494#endif
15495
15496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15497 find out it does not work in some platform. */
15498#ifndef LT_DLLAZY_OR_NOW
15499# ifdef RTLD_LAZY
15500# define LT_DLLAZY_OR_NOW RTLD_LAZY
15501# else
15502# ifdef DL_LAZY
15503# define LT_DLLAZY_OR_NOW DL_LAZY
15504# else
15505# ifdef RTLD_NOW
15506# define LT_DLLAZY_OR_NOW RTLD_NOW
15507# else
15508# ifdef DL_NOW
15509# define LT_DLLAZY_OR_NOW DL_NOW
15510# else
15511# define LT_DLLAZY_OR_NOW 0
15512# endif
15513# endif
15514# endif
15515# endif
15516#endif
15517
cristyfd9dcd42010-08-08 18:07:02 +000015518/* When -fvisbility=hidden is used, assume the code has been annotated
15519 correspondingly for the symbols needed. */
15520#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15521void fnord () __attribute__((visibility("default")));
15522#endif
15523
15524void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015525int main ()
15526{
15527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15528 int status = $lt_dlunknown;
15529
15530 if (self)
15531 {
15532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015533 else
15534 {
15535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15536 else puts (dlerror ());
15537 }
cristy3ed852e2009-09-05 21:47:34 +000015538 /* dlclose (self); */
15539 }
15540 else
15541 puts (dlerror ());
15542
15543 return status;
15544}
15545_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015547 (eval $ac_link) 2>&5
15548 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015551 (./conftest; exit; ) >&5 2>/dev/null
15552 lt_status=$?
15553 case x$lt_status in
15554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15557 esac
15558 else :
15559 # compilation failed
15560 lt_cv_dlopen_self=no
15561 fi
15562fi
15563rm -fr conftest*
15564
15565
15566fi
cristy8b350f62009-11-15 23:12:43 +000015567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015568$as_echo "$lt_cv_dlopen_self" >&6; }
15569
15570 if test "x$lt_cv_dlopen_self" = xyes; then
15571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015573$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015574if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015575 $as_echo_n "(cached) " >&6
15576else
15577 if test "$cross_compiling" = yes; then :
15578 lt_cv_dlopen_self_static=cross
15579else
15580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15581 lt_status=$lt_dlunknown
15582 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015583#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015584#include "confdefs.h"
15585
15586#if HAVE_DLFCN_H
15587#include <dlfcn.h>
15588#endif
15589
15590#include <stdio.h>
15591
15592#ifdef RTLD_GLOBAL
15593# define LT_DLGLOBAL RTLD_GLOBAL
15594#else
15595# ifdef DL_GLOBAL
15596# define LT_DLGLOBAL DL_GLOBAL
15597# else
15598# define LT_DLGLOBAL 0
15599# endif
15600#endif
15601
15602/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15603 find out it does not work in some platform. */
15604#ifndef LT_DLLAZY_OR_NOW
15605# ifdef RTLD_LAZY
15606# define LT_DLLAZY_OR_NOW RTLD_LAZY
15607# else
15608# ifdef DL_LAZY
15609# define LT_DLLAZY_OR_NOW DL_LAZY
15610# else
15611# ifdef RTLD_NOW
15612# define LT_DLLAZY_OR_NOW RTLD_NOW
15613# else
15614# ifdef DL_NOW
15615# define LT_DLLAZY_OR_NOW DL_NOW
15616# else
15617# define LT_DLLAZY_OR_NOW 0
15618# endif
15619# endif
15620# endif
15621# endif
15622#endif
15623
cristyfd9dcd42010-08-08 18:07:02 +000015624/* When -fvisbility=hidden is used, assume the code has been annotated
15625 correspondingly for the symbols needed. */
15626#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15627void fnord () __attribute__((visibility("default")));
15628#endif
15629
15630void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015631int main ()
15632{
15633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15634 int status = $lt_dlunknown;
15635
15636 if (self)
15637 {
15638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015639 else
15640 {
15641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15642 else puts (dlerror ());
15643 }
cristy3ed852e2009-09-05 21:47:34 +000015644 /* dlclose (self); */
15645 }
15646 else
15647 puts (dlerror ());
15648
15649 return status;
15650}
15651_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015653 (eval $ac_link) 2>&5
15654 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015657 (./conftest; exit; ) >&5 2>/dev/null
15658 lt_status=$?
15659 case x$lt_status in
15660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15663 esac
15664 else :
15665 # compilation failed
15666 lt_cv_dlopen_self_static=no
15667 fi
15668fi
15669rm -fr conftest*
15670
15671
15672fi
cristy8b350f62009-11-15 23:12:43 +000015673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015674$as_echo "$lt_cv_dlopen_self_static" >&6; }
15675 fi
15676
15677 CPPFLAGS="$save_CPPFLAGS"
15678 LDFLAGS="$save_LDFLAGS"
15679 LIBS="$save_LIBS"
15680 ;;
15681 esac
15682
15683 case $lt_cv_dlopen_self in
15684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15685 *) enable_dlopen_self=unknown ;;
15686 esac
15687
15688 case $lt_cv_dlopen_self_static in
15689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15690 *) enable_dlopen_self_static=unknown ;;
15691 esac
15692fi
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710striplib=
15711old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015713$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15714if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015718$as_echo "yes" >&6; }
15719else
15720# FIXME - insert some real tests, host_os isn't really good enough
15721 case $host_os in
15722 darwin*)
15723 if test -n "$STRIP" ; then
15724 striplib="$STRIP -x"
15725 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015727$as_echo "yes" >&6; }
15728 else
cristy8b350f62009-11-15 23:12:43 +000015729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015730$as_echo "no" >&6; }
15731 fi
15732 ;;
15733 *)
cristy8b350f62009-11-15 23:12:43 +000015734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015735$as_echo "no" >&6; }
15736 ;;
15737 esac
15738fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015753$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015755$as_echo "$can_build_shared" >&6; }
15756
cristy8b350f62009-11-15 23:12:43 +000015757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015758$as_echo_n "checking whether to build shared libraries... " >&6; }
15759 test "$can_build_shared" = "no" && enable_shared=no
15760
15761 # On AIX, shared libraries and static libraries use the same namespace, and
15762 # are all built from PIC.
15763 case $host_os in
15764 aix3*)
15765 test "$enable_shared" = yes && enable_static=no
15766 if test -n "$RANLIB"; then
15767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15768 postinstall_cmds='$RANLIB $lib'
15769 fi
15770 ;;
15771
15772 aix[4-9]*)
15773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15774 test "$enable_shared" = yes && enable_static=no
15775 fi
15776 ;;
15777 esac
cristy8b350f62009-11-15 23:12:43 +000015778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015779$as_echo "$enable_shared" >&6; }
15780
cristy8b350f62009-11-15 23:12:43 +000015781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015782$as_echo_n "checking whether to build static libraries... " >&6; }
15783 # Make sure either enable_shared or enable_static is yes.
15784 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015786$as_echo "$enable_static" >&6; }
15787
15788
15789
15790
15791fi
15792ac_ext=c
15793ac_cpp='$CPP $CPPFLAGS'
15794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15796ac_compiler_gnu=$ac_cv_c_compiler_gnu
15797
15798CC="$lt_save_CC"
15799
cristyfd9dcd42010-08-08 18:07:02 +000015800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15802 (test "X$CXX" != "Xg++"))) ; then
15803 ac_ext=cpp
15804ac_cpp='$CXXCPP $CPPFLAGS'
15805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15809$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15810if test -z "$CXXCPP"; then
15811 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15812 $as_echo_n "(cached) " >&6
15813else
15814 # Double quotes because CXXCPP needs to be expanded
15815 for CXXCPP in "$CXX -E" "/lib/cpp"
15816 do
15817 ac_preproc_ok=false
15818for ac_cxx_preproc_warn_flag in '' yes
15819do
15820 # Use a header file that comes with gcc, so configuring glibc
15821 # with a fresh cross-compiler works.
15822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823 # <limits.h> exists even on freestanding compilers.
15824 # On the NeXT, cc -E runs the code through the compiler's parser,
15825 # not just through cpp. "Syntax error" is here to catch this case.
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h. */
15828#ifdef __STDC__
15829# include <limits.h>
15830#else
15831# include <assert.h>
15832#endif
15833 Syntax error
15834_ACEOF
15835if ac_fn_cxx_try_cpp "$LINENO"; then :
15836
15837else
15838 # Broken: fails on valid input.
15839continue
15840fi
15841rm -f conftest.err conftest.$ac_ext
15842
15843 # OK, works on sane cases. Now check whether nonexistent headers
15844 # can be detected and how.
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846/* end confdefs.h. */
15847#include <ac_nonexistent.h>
15848_ACEOF
15849if ac_fn_cxx_try_cpp "$LINENO"; then :
15850 # Broken: success on invalid input.
15851continue
15852else
15853 # Passes both tests.
15854ac_preproc_ok=:
15855break
15856fi
15857rm -f conftest.err conftest.$ac_ext
15858
15859done
15860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15861rm -f conftest.err conftest.$ac_ext
15862if $ac_preproc_ok; then :
15863 break
15864fi
15865
15866 done
15867 ac_cv_prog_CXXCPP=$CXXCPP
15868
15869fi
15870 CXXCPP=$ac_cv_prog_CXXCPP
15871else
15872 ac_cv_prog_CXXCPP=$CXXCPP
15873fi
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15875$as_echo "$CXXCPP" >&6; }
15876ac_preproc_ok=false
15877for ac_cxx_preproc_warn_flag in '' yes
15878do
15879 # Use a header file that comes with gcc, so configuring glibc
15880 # with a fresh cross-compiler works.
15881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 # <limits.h> exists even on freestanding compilers.
15883 # On the NeXT, cc -E runs the code through the compiler's parser,
15884 # not just through cpp. "Syntax error" is here to catch this case.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h. */
15887#ifdef __STDC__
15888# include <limits.h>
15889#else
15890# include <assert.h>
15891#endif
15892 Syntax error
15893_ACEOF
15894if ac_fn_cxx_try_cpp "$LINENO"; then :
15895
15896else
15897 # Broken: fails on valid input.
15898continue
15899fi
15900rm -f conftest.err conftest.$ac_ext
15901
15902 # OK, works on sane cases. Now check whether nonexistent headers
15903 # can be detected and how.
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h. */
15906#include <ac_nonexistent.h>
15907_ACEOF
15908if ac_fn_cxx_try_cpp "$LINENO"; then :
15909 # Broken: success on invalid input.
15910continue
15911else
15912 # Passes both tests.
15913ac_preproc_ok=:
15914break
15915fi
15916rm -f conftest.err conftest.$ac_ext
15917
15918done
15919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15920rm -f conftest.err conftest.$ac_ext
15921if $ac_preproc_ok; then :
15922
15923else
15924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15926as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15927See \`config.log' for more details" "$LINENO" 5; }
15928fi
15929
15930ac_ext=c
15931ac_cpp='$CPP $CPPFLAGS'
15932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934ac_compiler_gnu=$ac_cv_c_compiler_gnu
15935
15936else
15937 _lt_caught_CXX_error=yes
15938fi
cristy3ed852e2009-09-05 21:47:34 +000015939
15940ac_ext=cpp
15941ac_cpp='$CXXCPP $CPPFLAGS'
15942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15945
15946archive_cmds_need_lc_CXX=no
15947allow_undefined_flag_CXX=
15948always_export_symbols_CXX=no
15949archive_expsym_cmds_CXX=
15950compiler_needs_object_CXX=no
15951export_dynamic_flag_spec_CXX=
15952hardcode_direct_CXX=no
15953hardcode_direct_absolute_CXX=no
15954hardcode_libdir_flag_spec_CXX=
15955hardcode_libdir_flag_spec_ld_CXX=
15956hardcode_libdir_separator_CXX=
15957hardcode_minus_L_CXX=no
15958hardcode_shlibpath_var_CXX=unsupported
15959hardcode_automatic_CXX=no
15960inherit_rpath_CXX=no
15961module_cmds_CXX=
15962module_expsym_cmds_CXX=
15963link_all_deplibs_CXX=unknown
15964old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015965reload_flag_CXX=$reload_flag
15966reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015967no_undefined_flag_CXX=
15968whole_archive_flag_spec_CXX=
15969enable_shared_with_static_runtimes_CXX=no
15970
15971# Source file extension for C++ test sources.
15972ac_ext=cpp
15973
15974# Object file extension for compiled C++ test sources.
15975objext=o
15976objext_CXX=$objext
15977
15978# No sense in running all these tests if we already determined that
15979# the CXX compiler isn't working. Some variables (like enable_shared)
15980# are currently assumed to apply to all compilers on this platform,
15981# and will be corrupted by setting them based on a non-working compiler.
15982if test "$_lt_caught_CXX_error" != yes; then
15983 # Code to be used in simple compile tests
15984 lt_simple_compile_test_code="int some_variable = 0;"
15985
15986 # Code to be used in simple link tests
15987 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15988
15989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15990
15991
15992
15993
15994
15995
15996# If no C compiler was specified, use CC.
15997LTCC=${LTCC-"$CC"}
15998
15999# If no C compiler flags were specified, use CFLAGS.
16000LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16001
16002# Allow CC to be a program name with arguments.
16003compiler=$CC
16004
16005
16006 # save warnings/boilerplate of simple test code
16007 ac_outfile=conftest.$ac_objext
16008echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16009eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16010_lt_compiler_boilerplate=`cat conftest.err`
16011$RM conftest*
16012
16013 ac_outfile=conftest.$ac_objext
16014echo "$lt_simple_link_test_code" >conftest.$ac_ext
16015eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16016_lt_linker_boilerplate=`cat conftest.err`
16017$RM -r conftest*
16018
16019
16020 # Allow CC to be a program name with arguments.
16021 lt_save_CC=$CC
16022 lt_save_LD=$LD
16023 lt_save_GCC=$GCC
16024 GCC=$GXX
16025 lt_save_with_gnu_ld=$with_gnu_ld
16026 lt_save_path_LD=$lt_cv_path_LD
16027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16029 else
16030 $as_unset lt_cv_prog_gnu_ld
16031 fi
16032 if test -n "${lt_cv_path_LDCXX+set}"; then
16033 lt_cv_path_LD=$lt_cv_path_LDCXX
16034 else
16035 $as_unset lt_cv_path_LD
16036 fi
16037 test -z "${LDCXX+set}" || LD=$LDCXX
16038 CC=${CXX-"c++"}
16039 compiler=$CC
16040 compiler_CXX=$CC
16041 for cc_temp in $compiler""; do
16042 case $cc_temp in
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045 \-*) ;;
16046 *) break;;
16047 esac
16048done
cristyfd9dcd42010-08-08 18:07:02 +000016049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016050
16051
16052 if test -n "$compiler"; then
16053 # We don't want -fno-exception when compiling C++ code, so set the
16054 # no_builtin_flag separately
16055 if test "$GXX" = yes; then
16056 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16057 else
16058 lt_prog_compiler_no_builtin_flag_CXX=
16059 fi
16060
16061 if test "$GXX" = yes; then
16062 # Set up default GNU C++ configuration
16063
16064
16065
16066# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016067if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16069else
16070 with_gnu_ld=no
16071fi
16072
16073ac_prog=ld
16074if test "$GCC" = yes; then
16075 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016077$as_echo_n "checking for ld used by $CC... " >&6; }
16078 case $host in
16079 *-*-mingw*)
16080 # gcc leaves a trailing carriage return which upsets mingw
16081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16082 *)
16083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16084 esac
16085 case $ac_prog in
16086 # Accept absolute paths.
16087 [\\/]* | ?:[\\/]*)
16088 re_direlt='/[^/][^/]*/\.\./'
16089 # Canonicalize the pathname of ld
16090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16093 done
16094 test -z "$LD" && LD="$ac_prog"
16095 ;;
16096 "")
16097 # If it fails, then pretend we aren't using GCC.
16098 ac_prog=ld
16099 ;;
16100 *)
16101 # If it is relative, then search for the first ld in PATH.
16102 with_gnu_ld=unknown
16103 ;;
16104 esac
16105elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016107$as_echo_n "checking for GNU ld... " >&6; }
16108else
cristy8b350f62009-11-15 23:12:43 +000016109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016110$as_echo_n "checking for non-GNU ld... " >&6; }
16111fi
cristy8b350f62009-11-15 23:12:43 +000016112if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016113 $as_echo_n "(cached) " >&6
16114else
16115 if test -z "$LD"; then
16116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16117 for ac_dir in $PATH; do
16118 IFS="$lt_save_ifs"
16119 test -z "$ac_dir" && ac_dir=.
16120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16121 lt_cv_path_LD="$ac_dir/$ac_prog"
16122 # Check to see if the program is GNU ld. I'd rather use --version,
16123 # but apparently some variants of GNU ld only accept -v.
16124 # Break only if it was the GNU/non-GNU ld that we prefer.
16125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16126 *GNU* | *'with BFD'*)
16127 test "$with_gnu_ld" != no && break
16128 ;;
16129 *)
16130 test "$with_gnu_ld" != yes && break
16131 ;;
16132 esac
16133 fi
16134 done
16135 IFS="$lt_save_ifs"
16136else
16137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16138fi
16139fi
16140
16141LD="$lt_cv_path_LD"
16142if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016144$as_echo "$LD" >&6; }
16145else
cristy8b350f62009-11-15 23:12:43 +000016146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016147$as_echo "no" >&6; }
16148fi
cristyfd9dcd42010-08-08 18:07:02 +000016149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016152if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016153 $as_echo_n "(cached) " >&6
16154else
16155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16156case `$LD -v 2>&1 </dev/null` in
16157*GNU* | *'with BFD'*)
16158 lt_cv_prog_gnu_ld=yes
16159 ;;
16160*)
16161 lt_cv_prog_gnu_ld=no
16162 ;;
16163esac
16164fi
cristy8b350f62009-11-15 23:12:43 +000016165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16167with_gnu_ld=$lt_cv_prog_gnu_ld
16168
16169
16170
16171
16172
16173
16174
16175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16176 # archiving commands below assume that GNU ld is being used.
16177 if test "$with_gnu_ld" = yes; then
16178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 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'
16180
16181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16183
16184 # If archive_cmds runs LD, not CC, wlarc should be empty
16185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16186 # investigate it a little bit more. (MM)
16187 wlarc='${wl}'
16188
16189 # ancient GNU ld didn't support --whole-archive et. al.
16190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16191 $GREP 'no-whole-archive' > /dev/null; then
16192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16193 else
16194 whole_archive_flag_spec_CXX=
16195 fi
16196 else
16197 with_gnu_ld=no
16198 wlarc=
16199
16200 # A generic and very simple default shared library creation
16201 # command for GNU C++ for the case where it uses the native
16202 # linker, instead of GNU ld. If possible, this setting should
16203 # overridden to take advantage of the native linker features on
16204 # the platform it is being used on.
16205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16206 fi
16207
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016212
16213 else
16214 GXX=no
16215 with_gnu_ld=no
16216 wlarc=
16217 fi
16218
16219 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016221$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16222 ld_shlibs_CXX=yes
16223 case $host_os in
16224 aix3*)
16225 # FIXME: insert proper C++ library support
16226 ld_shlibs_CXX=no
16227 ;;
16228 aix[4-9]*)
16229 if test "$host_cpu" = ia64; then
16230 # On IA64, the linker does run time linking by default, so we don't
16231 # have to do anything special.
16232 aix_use_runtimelinking=no
16233 exp_sym_flag='-Bexport'
16234 no_entry_flag=""
16235 else
16236 aix_use_runtimelinking=no
16237
16238 # Test if we are trying to use run time linking or normal
16239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16240 # need to do runtime linking.
16241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16242 for ld_flag in $LDFLAGS; do
16243 case $ld_flag in
16244 *-brtl*)
16245 aix_use_runtimelinking=yes
16246 break
16247 ;;
16248 esac
16249 done
16250 ;;
16251 esac
16252
16253 exp_sym_flag='-bexport'
16254 no_entry_flag='-bnoentry'
16255 fi
16256
16257 # When large executables or shared objects are built, AIX ld can
16258 # have problems creating the table of contents. If linking a library
16259 # or program results in "error TOC overflow" add -mminimal-toc to
16260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16262
16263 archive_cmds_CXX=''
16264 hardcode_direct_CXX=yes
16265 hardcode_direct_absolute_CXX=yes
16266 hardcode_libdir_separator_CXX=':'
16267 link_all_deplibs_CXX=yes
16268 file_list_spec_CXX='${wl}-f,'
16269
16270 if test "$GXX" = yes; then
16271 case $host_os in aix4.[012]|aix4.[012].*)
16272 # We only want to do this on AIX 4.2 and lower, the check
16273 # below for broken collect2 doesn't work under 4.3+
16274 collect2name=`${CC} -print-prog-name=collect2`
16275 if test -f "$collect2name" &&
16276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16277 then
16278 # We have reworked collect2
16279 :
16280 else
16281 # We have old collect2
16282 hardcode_direct_CXX=unsupported
16283 # It fails to find uninstalled libraries when the uninstalled
16284 # path is not listed in the libpath. Setting hardcode_minus_L
16285 # to unsupported forces relinking
16286 hardcode_minus_L_CXX=yes
16287 hardcode_libdir_flag_spec_CXX='-L$libdir'
16288 hardcode_libdir_separator_CXX=
16289 fi
16290 esac
16291 shared_flag='-shared'
16292 if test "$aix_use_runtimelinking" = yes; then
16293 shared_flag="$shared_flag "'${wl}-G'
16294 fi
16295 else
16296 # not using gcc
16297 if test "$host_cpu" = ia64; then
16298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16299 # chokes on -Wl,-G. The following line is correct:
16300 shared_flag='-G'
16301 else
16302 if test "$aix_use_runtimelinking" = yes; then
16303 shared_flag='${wl}-G'
16304 else
16305 shared_flag='${wl}-bM:SRE'
16306 fi
16307 fi
16308 fi
16309
16310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16311 # It seems that -bexpall does not export symbols beginning with
16312 # underscore (_), so it is better to generate a list of symbols to
16313 # export.
16314 always_export_symbols_CXX=yes
16315 if test "$aix_use_runtimelinking" = yes; then
16316 # Warning - without using the other runtime loading flags (-brtl),
16317 # -berok will link without error, but may produce a broken library.
16318 allow_undefined_flag_CXX='-berok'
16319 # Determine the default libpath from the value encoded in an empty
16320 # executable.
cristy8b350f62009-11-15 23:12:43 +000016321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016322/* end confdefs.h. */
16323
16324int
16325main ()
16326{
16327
16328 ;
16329 return 0;
16330}
16331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016332if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016333
16334lt_aix_libpath_sed='
16335 /Import File Strings/,/^$/ {
16336 /^0/ {
16337 s/^0 *\(.*\)$/\1/
16338 p
16339 }
16340 }'
16341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342# Check for a 64-bit object if we didn't find anything.
16343if test -z "$aix_libpath"; then
16344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16345fi
cristy3ed852e2009-09-05 21:47:34 +000016346fi
cristy8b350f62009-11-15 23:12:43 +000016347rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16350
16351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16352
cristyfd9dcd42010-08-08 18:07:02 +000016353 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 +000016354 else
16355 if test "$host_cpu" = ia64; then
16356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16357 allow_undefined_flag_CXX="-z nodefs"
16358 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"
16359 else
16360 # Determine the default libpath from the value encoded in an
16361 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016363/* end confdefs.h. */
16364
16365int
16366main ()
16367{
16368
16369 ;
16370 return 0;
16371}
16372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016373if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016374
16375lt_aix_libpath_sed='
16376 /Import File Strings/,/^$/ {
16377 /^0/ {
16378 s/^0 *\(.*\)$/\1/
16379 p
16380 }
16381 }'
16382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383# Check for a 64-bit object if we didn't find anything.
16384if test -z "$aix_libpath"; then
16385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386fi
cristy3ed852e2009-09-05 21:47:34 +000016387fi
cristy8b350f62009-11-15 23:12:43 +000016388rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16391
16392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16393 # Warning - without using the other run time loading flags,
16394 # -berok will link without error, but may produce a broken library.
16395 no_undefined_flag_CXX=' ${wl}-bernotok'
16396 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016397 if test "$with_gnu_ld" = yes; then
16398 # We only use this code for GNU lds that support --whole-archive.
16399 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16400 else
16401 # Exported symbols can be pulled into shared objects from archives
16402 whole_archive_flag_spec_CXX='$convenience'
16403 fi
cristy3ed852e2009-09-05 21:47:34 +000016404 archive_cmds_need_lc_CXX=yes
16405 # This is similar to how AIX traditionally builds its shared
16406 # libraries.
16407 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'
16408 fi
16409 fi
16410 ;;
16411
16412 beos*)
16413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414 allow_undefined_flag_CXX=unsupported
16415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416 # support --undefined. This deserves some investigation. FIXME
16417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 else
16419 ld_shlibs_CXX=no
16420 fi
16421 ;;
16422
16423 chorus*)
16424 case $cc_basename in
16425 *)
16426 # FIXME: insert proper C++ library support
16427 ld_shlibs_CXX=no
16428 ;;
16429 esac
16430 ;;
16431
16432 cygwin* | mingw* | pw32* | cegcc*)
16433 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16434 # as there is no search path for DLLs.
16435 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016436 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016437 allow_undefined_flag_CXX=unsupported
16438 always_export_symbols_CXX=no
16439 enable_shared_with_static_runtimes_CXX=yes
16440
16441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16442 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'
16443 # If the export-symbols file already is a .def file (1st line
16444 # is EXPORTS), use it as is; otherwise, prepend...
16445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16446 cp $export_symbols $output_objdir/$soname.def;
16447 else
16448 echo EXPORTS > $output_objdir/$soname.def;
16449 cat $export_symbols >> $output_objdir/$soname.def;
16450 fi~
16451 $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'
16452 else
16453 ld_shlibs_CXX=no
16454 fi
16455 ;;
16456 darwin* | rhapsody*)
16457
16458
16459 archive_cmds_need_lc_CXX=no
16460 hardcode_direct_CXX=no
16461 hardcode_automatic_CXX=yes
16462 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016463 if test "$lt_cv_ld_force_load" = "yes"; then
16464 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\"`'
16465 else
16466 whole_archive_flag_spec_CXX=''
16467 fi
cristy3ed852e2009-09-05 21:47:34 +000016468 link_all_deplibs_CXX=yes
16469 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16470 case $cc_basename in
16471 ifort*) _lt_dar_can_shared=yes ;;
16472 *) _lt_dar_can_shared=$GCC ;;
16473 esac
16474 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016475 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016476 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}"
16477 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16478 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}"
16479 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}"
16480 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16481 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}"
16482 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}"
16483 fi
16484
16485 else
16486 ld_shlibs_CXX=no
16487 fi
16488
16489 ;;
16490
16491 dgux*)
16492 case $cc_basename in
16493 ec++*)
16494 # FIXME: insert proper C++ library support
16495 ld_shlibs_CXX=no
16496 ;;
16497 ghcx*)
16498 # Green Hills C++ Compiler
16499 # FIXME: insert proper C++ library support
16500 ld_shlibs_CXX=no
16501 ;;
16502 *)
16503 # FIXME: insert proper C++ library support
16504 ld_shlibs_CXX=no
16505 ;;
16506 esac
16507 ;;
16508
16509 freebsd[12]*)
16510 # C++ shared libraries reported to be fairly broken before
16511 # switch to ELF
16512 ld_shlibs_CXX=no
16513 ;;
16514
16515 freebsd-elf*)
16516 archive_cmds_need_lc_CXX=no
16517 ;;
16518
16519 freebsd* | dragonfly*)
16520 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16521 # conventions
16522 ld_shlibs_CXX=yes
16523 ;;
16524
16525 gnu*)
16526 ;;
16527
cristyfd9dcd42010-08-08 18:07:02 +000016528 haiku*)
16529 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530 link_all_deplibs_CXX=yes
16531 ;;
16532
cristy3ed852e2009-09-05 21:47:34 +000016533 hpux9*)
16534 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16535 hardcode_libdir_separator_CXX=:
16536 export_dynamic_flag_spec_CXX='${wl}-E'
16537 hardcode_direct_CXX=yes
16538 hardcode_minus_L_CXX=yes # Not in the search PATH,
16539 # but as the default
16540 # location of the library.
16541
16542 case $cc_basename in
16543 CC*)
16544 # FIXME: insert proper C++ library support
16545 ld_shlibs_CXX=no
16546 ;;
16547 aCC*)
16548 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'
16549 # Commands to make compiler produce verbose output that lists
16550 # what "hidden" libraries, object files and flags are used when
16551 # linking a shared library.
16552 #
16553 # There doesn't appear to be a way to prevent this compiler from
16554 # explicitly linking system object files so we need to strip them
16555 # from the output so that they don't get included in the library
16556 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016557 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 +000016558 ;;
16559 *)
16560 if test "$GXX" = yes; then
16561 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'
16562 else
16563 # FIXME: insert proper C++ library support
16564 ld_shlibs_CXX=no
16565 fi
16566 ;;
16567 esac
16568 ;;
16569
16570 hpux10*|hpux11*)
16571 if test $with_gnu_ld = no; then
16572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16573 hardcode_libdir_separator_CXX=:
16574
16575 case $host_cpu in
16576 hppa*64*|ia64*)
16577 ;;
16578 *)
16579 export_dynamic_flag_spec_CXX='${wl}-E'
16580 ;;
16581 esac
16582 fi
16583 case $host_cpu in
16584 hppa*64*|ia64*)
16585 hardcode_direct_CXX=no
16586 hardcode_shlibpath_var_CXX=no
16587 ;;
16588 *)
16589 hardcode_direct_CXX=yes
16590 hardcode_direct_absolute_CXX=yes
16591 hardcode_minus_L_CXX=yes # Not in the search PATH,
16592 # but as the default
16593 # location of the library.
16594 ;;
16595 esac
16596
16597 case $cc_basename in
16598 CC*)
16599 # FIXME: insert proper C++ library support
16600 ld_shlibs_CXX=no
16601 ;;
16602 aCC*)
16603 case $host_cpu in
16604 hppa*64*)
16605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606 ;;
16607 ia64*)
16608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16609 ;;
16610 *)
16611 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16612 ;;
16613 esac
16614 # Commands to make compiler produce verbose output that lists
16615 # what "hidden" libraries, object files and flags are used when
16616 # linking a shared library.
16617 #
16618 # There doesn't appear to be a way to prevent this compiler from
16619 # explicitly linking system object files so we need to strip them
16620 # from the output so that they don't get included in the library
16621 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016622 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 +000016623 ;;
16624 *)
16625 if test "$GXX" = yes; then
16626 if test $with_gnu_ld = no; then
16627 case $host_cpu in
16628 hppa*64*)
16629 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16630 ;;
16631 ia64*)
16632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16633 ;;
16634 *)
16635 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'
16636 ;;
16637 esac
16638 fi
16639 else
16640 # FIXME: insert proper C++ library support
16641 ld_shlibs_CXX=no
16642 fi
16643 ;;
16644 esac
16645 ;;
16646
16647 interix[3-9]*)
16648 hardcode_direct_CXX=no
16649 hardcode_shlibpath_var_CXX=no
16650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16651 export_dynamic_flag_spec_CXX='${wl}-E'
16652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16653 # Instead, shared libraries are loaded at an image base (0x10000000 by
16654 # default) and relocated if they conflict, which is a slow very memory
16655 # consuming and fragmenting process. To avoid this, we pick a random,
16656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16658 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'
16659 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'
16660 ;;
16661 irix5* | irix6*)
16662 case $cc_basename in
16663 CC*)
16664 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016665 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 +000016666
16667 # Archives containing C++ object files must be created using
16668 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16669 # necessary to make sure instantiated templates are included
16670 # in the archive.
16671 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16672 ;;
16673 *)
16674 if test "$GXX" = yes; then
16675 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016676 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 +000016677 else
cristyfd9dcd42010-08-08 18:07:02 +000016678 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 +000016679 fi
16680 fi
16681 link_all_deplibs_CXX=yes
16682 ;;
16683 esac
16684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16685 hardcode_libdir_separator_CXX=:
16686 inherit_rpath_CXX=yes
16687 ;;
16688
cristyfd9dcd42010-08-08 18:07:02 +000016689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016690 case $cc_basename in
16691 KCC*)
16692 # Kuck and Associates, Inc. (KAI) C++ Compiler
16693
16694 # KCC will only create a shared library if the output file
16695 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16696 # to its proper name (with version) after linking.
16697 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'
16698 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'
16699 # Commands to make compiler produce verbose output that lists
16700 # what "hidden" libraries, object files and flags are used when
16701 # linking a shared library.
16702 #
16703 # There doesn't appear to be a way to prevent this compiler from
16704 # explicitly linking system object files so we need to strip them
16705 # from the output so that they don't get included in the library
16706 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016707 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 +000016708
16709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16711
16712 # Archives containing C++ object files must be created using
16713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16715 ;;
16716 icpc* | ecpc* )
16717 # Intel C++
16718 with_gnu_ld=yes
16719 # version 8.0 and above of icpc choke on multiply defined symbols
16720 # if we add $predep_objects and $postdep_objects, however 7.1 and
16721 # earlier do not add the objects themselves.
16722 case `$CC -V 2>&1` in
16723 *"Version 7."*)
16724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 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'
16726 ;;
16727 *) # Version 8.0 or newer
16728 tmp_idyn=
16729 case $host_cpu in
16730 ia64*) tmp_idyn=' -i_dynamic';;
16731 esac
16732 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733 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'
16734 ;;
16735 esac
16736 archive_cmds_need_lc_CXX=no
16737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16740 ;;
16741 pgCC* | pgcpp*)
16742 # Portland Group C++ compiler
16743 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016744 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016745 prelink_cmds_CXX='tpldir=Template.dir~
16746 rm -rf $tpldir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016748 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016749 old_archive_cmds_CXX='tpldir=Template.dir~
16750 rm -rf $tpldir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016752 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016753 $RANLIB $oldlib'
16754 archive_cmds_CXX='tpldir=Template.dir~
16755 rm -rf $tpldir~
16756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016757 $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 +000016758 archive_expsym_cmds_CXX='tpldir=Template.dir~
16759 rm -rf $tpldir~
16760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016761 $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 +000016762 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016763 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016764 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16765 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'
16766 ;;
16767 esac
16768
16769 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016771 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 +000016772 ;;
16773 cxx*)
16774 # Compaq C++
16775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776 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'
16777
16778 runpath_var=LD_RUN_PATH
16779 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16780 hardcode_libdir_separator_CXX=:
16781
16782 # Commands to make compiler produce verbose output that lists
16783 # what "hidden" libraries, object files and flags are used when
16784 # linking a shared library.
16785 #
16786 # There doesn't appear to be a way to prevent this compiler from
16787 # explicitly linking system object files so we need to strip them
16788 # from the output so that they don't get included in the library
16789 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016790 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 +000016791 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016792 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016793 # IBM XL 8.0 on PPC, with GNU ld
16794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16796 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797 if test "x$supports_anon_versioning" = xyes; then
16798 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16802 fi
16803 ;;
16804 *)
16805 case `$CC -V 2>&1 | sed 5q` in
16806 *Sun\ C*)
16807 # Sun C++ 5.9
16808 no_undefined_flag_CXX=' -zdefs'
16809 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16810 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'
16811 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016812 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 +000016813 compiler_needs_object_CXX=yes
16814
16815 # Not sure whether something based on
16816 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16817 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016818 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016819
16820 # Archives containing C++ object files must be created using
16821 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16822 # necessary to make sure instantiated templates are included
16823 # in the archive.
16824 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16825 ;;
16826 esac
16827 ;;
16828 esac
16829 ;;
16830
16831 lynxos*)
16832 # FIXME: insert proper C++ library support
16833 ld_shlibs_CXX=no
16834 ;;
16835
16836 m88k*)
16837 # FIXME: insert proper C++ library support
16838 ld_shlibs_CXX=no
16839 ;;
16840
16841 mvs*)
16842 case $cc_basename in
16843 cxx*)
16844 # FIXME: insert proper C++ library support
16845 ld_shlibs_CXX=no
16846 ;;
16847 *)
16848 # FIXME: insert proper C++ library support
16849 ld_shlibs_CXX=no
16850 ;;
16851 esac
16852 ;;
16853
16854 netbsd*)
16855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16856 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16857 wlarc=
16858 hardcode_libdir_flag_spec_CXX='-R$libdir'
16859 hardcode_direct_CXX=yes
16860 hardcode_shlibpath_var_CXX=no
16861 fi
16862 # Workaround some broken pre-1.5 toolchains
16863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16864 ;;
16865
16866 *nto* | *qnx*)
16867 ld_shlibs_CXX=yes
16868 ;;
16869
16870 openbsd2*)
16871 # C++ shared libraries are fairly broken
16872 ld_shlibs_CXX=no
16873 ;;
16874
16875 openbsd*)
16876 if test -f /usr/libexec/ld.so; then
16877 hardcode_direct_CXX=yes
16878 hardcode_shlibpath_var_CXX=no
16879 hardcode_direct_absolute_CXX=yes
16880 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16882 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16883 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16884 export_dynamic_flag_spec_CXX='${wl}-E'
16885 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16886 fi
cristyfd9dcd42010-08-08 18:07:02 +000016887 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016888 else
16889 ld_shlibs_CXX=no
16890 fi
16891 ;;
16892
16893 osf3* | osf4* | osf5*)
16894 case $cc_basename in
16895 KCC*)
16896 # Kuck and Associates, Inc. (KAI) C++ Compiler
16897
16898 # KCC will only create a shared library if the output file
16899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16900 # to its proper name (with version) after linking.
16901 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'
16902
16903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16904 hardcode_libdir_separator_CXX=:
16905
16906 # Archives containing C++ object files must be created using
16907 # the KAI C++ compiler.
16908 case $host in
16909 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16910 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16911 esac
16912 ;;
16913 RCC*)
16914 # Rational C++ 2.4.1
16915 # FIXME: insert proper C++ library support
16916 ld_shlibs_CXX=no
16917 ;;
16918 cxx*)
16919 case $host in
16920 osf3*)
16921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016922 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 +000016923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16924 ;;
16925 *)
16926 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016927 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 +000016928 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16929 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016930 $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 +000016931 $RM $lib.exp'
16932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16933 ;;
16934 esac
16935
16936 hardcode_libdir_separator_CXX=:
16937
16938 # Commands to make compiler produce verbose output that lists
16939 # what "hidden" libraries, object files and flags are used when
16940 # linking a shared library.
16941 #
16942 # There doesn't appear to be a way to prevent this compiler from
16943 # explicitly linking system object files so we need to strip them
16944 # from the output so that they don't get included in the library
16945 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016946 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 +000016947 ;;
16948 *)
16949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16951 case $host in
16952 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016953 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016954 ;;
16955 *)
cristyfd9dcd42010-08-08 18:07:02 +000016956 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 +000016957 ;;
16958 esac
16959
16960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16961 hardcode_libdir_separator_CXX=:
16962
16963 # Commands to make compiler produce verbose output that lists
16964 # what "hidden" libraries, object files and flags are used when
16965 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016967
16968 else
16969 # FIXME: insert proper C++ library support
16970 ld_shlibs_CXX=no
16971 fi
16972 ;;
16973 esac
16974 ;;
16975
16976 psos*)
16977 # FIXME: insert proper C++ library support
16978 ld_shlibs_CXX=no
16979 ;;
16980
16981 sunos4*)
16982 case $cc_basename in
16983 CC*)
16984 # Sun C++ 4.x
16985 # FIXME: insert proper C++ library support
16986 ld_shlibs_CXX=no
16987 ;;
16988 lcc*)
16989 # Lucid
16990 # FIXME: insert proper C++ library support
16991 ld_shlibs_CXX=no
16992 ;;
16993 *)
16994 # FIXME: insert proper C++ library support
16995 ld_shlibs_CXX=no
16996 ;;
16997 esac
16998 ;;
16999
17000 solaris*)
17001 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017002 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017003 # Sun C++ 4.2, 5.x and Centerline C++
17004 archive_cmds_need_lc_CXX=yes
17005 no_undefined_flag_CXX=' -zdefs'
17006 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17007 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17008 $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'
17009
17010 hardcode_libdir_flag_spec_CXX='-R$libdir'
17011 hardcode_shlibpath_var_CXX=no
17012 case $host_os in
17013 solaris2.[0-5] | solaris2.[0-5].*) ;;
17014 *)
17015 # The compiler driver will combine and reorder linker options,
17016 # but understands `-z linker_flag'.
17017 # Supported since Solaris 2.6 (maybe 2.5.1?)
17018 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17019 ;;
17020 esac
17021 link_all_deplibs_CXX=yes
17022
cristyfd9dcd42010-08-08 18:07:02 +000017023 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017024
17025 # Archives containing C++ object files must be created using
17026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17027 # necessary to make sure instantiated templates are included
17028 # in the archive.
17029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17030 ;;
17031 gcx*)
17032 # Green Hills C++ Compiler
17033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17034
17035 # The C++ compiler must be used to create the archive.
17036 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17037 ;;
17038 *)
17039 # GNU C++ compiler with Solaris linker
17040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17041 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17042 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17043 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17044 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17045 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17046
17047 # Commands to make compiler produce verbose output that lists
17048 # what "hidden" libraries, object files and flags are used when
17049 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017051 else
17052 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17053 # platform.
17054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17055 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17057
17058 # Commands to make compiler produce verbose output that lists
17059 # what "hidden" libraries, object files and flags are used when
17060 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017061 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017062 fi
17063
17064 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17065 case $host_os in
17066 solaris2.[0-5] | solaris2.[0-5].*) ;;
17067 *)
17068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17069 ;;
17070 esac
17071 fi
17072 ;;
17073 esac
17074 ;;
17075
17076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17077 no_undefined_flag_CXX='${wl}-z,text'
17078 archive_cmds_need_lc_CXX=no
17079 hardcode_shlibpath_var_CXX=no
17080 runpath_var='LD_RUN_PATH'
17081
17082 case $cc_basename in
17083 CC*)
17084 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086 ;;
17087 *)
17088 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 ;;
17091 esac
17092 ;;
17093
17094 sysv5* | sco3.2v5* | sco5v6*)
17095 # Note: We can NOT use -z defs as we might desire, because we do not
17096 # link with -lc, and that would cause any symbols used from libc to
17097 # always be unresolved, which means just about no library would
17098 # ever link correctly. If we're not using GNU ld we use -z text
17099 # though, which does catch some bad symbols but isn't as heavy-handed
17100 # as -z defs.
17101 no_undefined_flag_CXX='${wl}-z,text'
17102 allow_undefined_flag_CXX='${wl}-z,nodefs'
17103 archive_cmds_need_lc_CXX=no
17104 hardcode_shlibpath_var_CXX=no
17105 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17106 hardcode_libdir_separator_CXX=':'
17107 link_all_deplibs_CXX=yes
17108 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17109 runpath_var='LD_RUN_PATH'
17110
17111 case $cc_basename in
17112 CC*)
17113 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 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 +000017115 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17116 '"$old_archive_cmds_CXX"
17117 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17118 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017119 ;;
17120 *)
17121 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17122 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 ;;
17124 esac
17125 ;;
17126
17127 tandem*)
17128 case $cc_basename in
17129 NCC*)
17130 # NonStop-UX NCC 3.20
17131 # FIXME: insert proper C++ library support
17132 ld_shlibs_CXX=no
17133 ;;
17134 *)
17135 # FIXME: insert proper C++ library support
17136 ld_shlibs_CXX=no
17137 ;;
17138 esac
17139 ;;
17140
17141 vxworks*)
17142 # FIXME: insert proper C++ library support
17143 ld_shlibs_CXX=no
17144 ;;
17145
17146 *)
17147 # FIXME: insert proper C++ library support
17148 ld_shlibs_CXX=no
17149 ;;
17150 esac
17151
cristy8b350f62009-11-15 23:12:43 +000017152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017153$as_echo "$ld_shlibs_CXX" >&6; }
17154 test "$ld_shlibs_CXX" = no && can_build_shared=no
17155
17156 GCC_CXX="$GXX"
17157 LD_CXX="$LD"
17158
17159 ## CAVEAT EMPTOR:
17160 ## There is no encapsulation within the following macros, do not change
17161 ## the running order or otherwise move them around unless you know exactly
17162 ## what you are doing...
17163 # Dependencies to place before and after the object being linked:
17164predep_objects_CXX=
17165postdep_objects_CXX=
17166predeps_CXX=
17167postdeps_CXX=
17168compiler_lib_search_path_CXX=
17169
17170cat > conftest.$ac_ext <<_LT_EOF
17171class Foo
17172{
17173public:
17174 Foo (void) { a = 0; }
17175private:
17176 int a;
17177};
17178_LT_EOF
17179
cristy8b350f62009-11-15 23:12:43 +000017180if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017181 (eval $ac_compile) 2>&5
17182 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017185 # Parse the compiler output and extract the necessary
17186 # objects, libraries and library flags.
17187
17188 # Sentinel used to keep track of whether or not we are before
17189 # the conftest object file.
17190 pre_test_object_deps_done=no
17191
17192 for p in `eval "$output_verbose_link_cmd"`; do
17193 case $p in
17194
17195 -L* | -R* | -l*)
17196 # Some compilers place space between "-{L,R}" and the path.
17197 # Remove the space.
17198 if test $p = "-L" ||
17199 test $p = "-R"; then
17200 prev=$p
17201 continue
17202 else
17203 prev=
17204 fi
17205
17206 if test "$pre_test_object_deps_done" = no; then
17207 case $p in
17208 -L* | -R*)
17209 # Internal compiler library paths should come after those
17210 # provided the user. The postdeps already come after the
17211 # user supplied libs so there is no need to process them.
17212 if test -z "$compiler_lib_search_path_CXX"; then
17213 compiler_lib_search_path_CXX="${prev}${p}"
17214 else
17215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17216 fi
17217 ;;
17218 # The "-l" case would never come before the object being
17219 # linked, so don't bother handling this case.
17220 esac
17221 else
17222 if test -z "$postdeps_CXX"; then
17223 postdeps_CXX="${prev}${p}"
17224 else
17225 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17226 fi
17227 fi
17228 ;;
17229
17230 *.$objext)
17231 # This assumes that the test object file only shows up
17232 # once in the compiler output.
17233 if test "$p" = "conftest.$objext"; then
17234 pre_test_object_deps_done=yes
17235 continue
17236 fi
17237
17238 if test "$pre_test_object_deps_done" = no; then
17239 if test -z "$predep_objects_CXX"; then
17240 predep_objects_CXX="$p"
17241 else
17242 predep_objects_CXX="$predep_objects_CXX $p"
17243 fi
17244 else
17245 if test -z "$postdep_objects_CXX"; then
17246 postdep_objects_CXX="$p"
17247 else
17248 postdep_objects_CXX="$postdep_objects_CXX $p"
17249 fi
17250 fi
17251 ;;
17252
17253 *) ;; # Ignore the rest.
17254
17255 esac
17256 done
17257
17258 # Clean up.
17259 rm -f a.out a.exe
17260else
17261 echo "libtool.m4: error: problem compiling CXX test program"
17262fi
17263
17264$RM -f confest.$objext
17265
17266# PORTME: override above test on systems where it is broken
17267case $host_os in
17268interix[3-9]*)
17269 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17270 # hack all around it, let's just trust "g++" to DTRT.
17271 predep_objects_CXX=
17272 postdep_objects_CXX=
17273 postdeps_CXX=
17274 ;;
17275
17276linux*)
17277 case `$CC -V 2>&1 | sed 5q` in
17278 *Sun\ C*)
17279 # Sun C++ 5.9
17280
17281 # The more standards-conforming stlport4 library is
17282 # incompatible with the Cstd library. Avoid specifying
17283 # it if it's in CXXFLAGS. Ignore libCrun as
17284 # -library=stlport4 depends on it.
17285 case " $CXX $CXXFLAGS " in
17286 *" -library=stlport4 "*)
17287 solaris_use_stlport4=yes
17288 ;;
17289 esac
17290
17291 if test "$solaris_use_stlport4" != yes; then
17292 postdeps_CXX='-library=Cstd -library=Crun'
17293 fi
17294 ;;
17295 esac
17296 ;;
17297
17298solaris*)
17299 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017300 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017301 # The more standards-conforming stlport4 library is
17302 # incompatible with the Cstd library. Avoid specifying
17303 # it if it's in CXXFLAGS. Ignore libCrun as
17304 # -library=stlport4 depends on it.
17305 case " $CXX $CXXFLAGS " in
17306 *" -library=stlport4 "*)
17307 solaris_use_stlport4=yes
17308 ;;
17309 esac
17310
17311 # Adding this requires a known-good setup of shared libraries for
17312 # Sun compiler versions before 5.6, else PIC objects from an old
17313 # archive will be linked into the output, leading to subtle bugs.
17314 if test "$solaris_use_stlport4" != yes; then
17315 postdeps_CXX='-library=Cstd -library=Crun'
17316 fi
17317 ;;
17318 esac
17319 ;;
17320esac
17321
17322
17323case " $postdeps_CXX " in
17324*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17325esac
17326 compiler_lib_search_dirs_CXX=
17327if test -n "${compiler_lib_search_path_CXX}"; then
17328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17329fi
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361 lt_prog_compiler_wl_CXX=
17362lt_prog_compiler_pic_CXX=
17363lt_prog_compiler_static_CXX=
17364
cristy8b350f62009-11-15 23:12:43 +000017365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017366$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17367
17368 # C++ specific cases for pic, static, wl, etc.
17369 if test "$GXX" = yes; then
17370 lt_prog_compiler_wl_CXX='-Wl,'
17371 lt_prog_compiler_static_CXX='-static'
17372
17373 case $host_os in
17374 aix*)
17375 # All AIX code is PIC.
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 now supports IA64 processor
17378 lt_prog_compiler_static_CXX='-Bstatic'
17379 fi
17380 ;;
17381
17382 amigaos*)
17383 case $host_cpu in
17384 powerpc)
17385 # see comment about AmigaOS4 .so support
17386 lt_prog_compiler_pic_CXX='-fPIC'
17387 ;;
17388 m68k)
17389 # FIXME: we need at least 68020 code to build shared libraries, but
17390 # adding the `-m68020' flag to GCC prevents building anything better,
17391 # like `-m68040'.
17392 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17393 ;;
17394 esac
17395 ;;
17396
17397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17398 # PIC is the default for these OSes.
17399 ;;
17400 mingw* | cygwin* | os2* | pw32* | cegcc*)
17401 # This hack is so that the source file can tell whether it is being
17402 # built for inclusion in a dll (and should export symbols for example).
17403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17404 # (--disable-auto-import) libraries
17405 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17406 ;;
17407 darwin* | rhapsody*)
17408 # PIC is the default on this platform
17409 # Common symbols not allowed in MH_DYLIB files
17410 lt_prog_compiler_pic_CXX='-fno-common'
17411 ;;
17412 *djgpp*)
17413 # DJGPP does not support shared libraries at all
17414 lt_prog_compiler_pic_CXX=
17415 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017416 haiku*)
17417 # PIC is the default for Haiku.
17418 # The "-static" flag exists, but is broken.
17419 lt_prog_compiler_static_CXX=
17420 ;;
cristy3ed852e2009-09-05 21:47:34 +000017421 interix[3-9]*)
17422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17423 # Instead, we relocate shared libraries at runtime.
17424 ;;
17425 sysv4*MP*)
17426 if test -d /usr/nec; then
17427 lt_prog_compiler_pic_CXX=-Kconform_pic
17428 fi
17429 ;;
17430 hpux*)
17431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17433 # sets the default TLS model and affects inlining.
17434 case $host_cpu in
17435 hppa*64*)
17436 ;;
17437 *)
17438 lt_prog_compiler_pic_CXX='-fPIC'
17439 ;;
17440 esac
17441 ;;
17442 *qnx* | *nto*)
17443 # QNX uses GNU C++, but need to define -shared option too, otherwise
17444 # it will coredump.
17445 lt_prog_compiler_pic_CXX='-fPIC -shared'
17446 ;;
17447 *)
17448 lt_prog_compiler_pic_CXX='-fPIC'
17449 ;;
17450 esac
17451 else
17452 case $host_os in
17453 aix[4-9]*)
17454 # All AIX code is PIC.
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 now supports IA64 processor
17457 lt_prog_compiler_static_CXX='-Bstatic'
17458 else
17459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17460 fi
17461 ;;
17462 chorus*)
17463 case $cc_basename in
17464 cxch68*)
17465 # Green Hills C++ Compiler
17466 # _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"
17467 ;;
17468 esac
17469 ;;
17470 dgux*)
17471 case $cc_basename in
17472 ec++*)
17473 lt_prog_compiler_pic_CXX='-KPIC'
17474 ;;
17475 ghcx*)
17476 # Green Hills C++ Compiler
17477 lt_prog_compiler_pic_CXX='-pic'
17478 ;;
17479 *)
17480 ;;
17481 esac
17482 ;;
17483 freebsd* | dragonfly*)
17484 # FreeBSD uses GNU C++
17485 ;;
17486 hpux9* | hpux10* | hpux11*)
17487 case $cc_basename in
17488 CC*)
17489 lt_prog_compiler_wl_CXX='-Wl,'
17490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17491 if test "$host_cpu" != ia64; then
17492 lt_prog_compiler_pic_CXX='+Z'
17493 fi
17494 ;;
17495 aCC*)
17496 lt_prog_compiler_wl_CXX='-Wl,'
17497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17498 case $host_cpu in
17499 hppa*64*|ia64*)
17500 # +Z the default
17501 ;;
17502 *)
17503 lt_prog_compiler_pic_CXX='+Z'
17504 ;;
17505 esac
17506 ;;
17507 *)
17508 ;;
17509 esac
17510 ;;
17511 interix*)
17512 # This is c89, which is MS Visual C++ (no shared libs)
17513 # Anyone wants to do a port?
17514 ;;
17515 irix5* | irix6* | nonstopux*)
17516 case $cc_basename in
17517 CC*)
17518 lt_prog_compiler_wl_CXX='-Wl,'
17519 lt_prog_compiler_static_CXX='-non_shared'
17520 # CC pic flag -KPIC is the default.
17521 ;;
17522 *)
17523 ;;
17524 esac
17525 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017527 case $cc_basename in
17528 KCC*)
17529 # KAI C++ Compiler
17530 lt_prog_compiler_wl_CXX='--backend -Wl,'
17531 lt_prog_compiler_pic_CXX='-fPIC'
17532 ;;
17533 ecpc* )
17534 # old Intel C++ for x86_64 which still supported -KPIC.
17535 lt_prog_compiler_wl_CXX='-Wl,'
17536 lt_prog_compiler_pic_CXX='-KPIC'
17537 lt_prog_compiler_static_CXX='-static'
17538 ;;
17539 icpc* )
17540 # Intel C++, used to be incompatible with GCC.
17541 # ICC 10 doesn't accept -KPIC any more.
17542 lt_prog_compiler_wl_CXX='-Wl,'
17543 lt_prog_compiler_pic_CXX='-fPIC'
17544 lt_prog_compiler_static_CXX='-static'
17545 ;;
17546 pgCC* | pgcpp*)
17547 # Portland Group C++ compiler
17548 lt_prog_compiler_wl_CXX='-Wl,'
17549 lt_prog_compiler_pic_CXX='-fpic'
17550 lt_prog_compiler_static_CXX='-Bstatic'
17551 ;;
17552 cxx*)
17553 # Compaq C++
17554 # Make sure the PIC flag is empty. It appears that all Alpha
17555 # Linux and Compaq Tru64 Unix objects are PIC.
17556 lt_prog_compiler_pic_CXX=
17557 lt_prog_compiler_static_CXX='-non_shared'
17558 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017559 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17560 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017561 lt_prog_compiler_wl_CXX='-Wl,'
17562 lt_prog_compiler_pic_CXX='-qpic'
17563 lt_prog_compiler_static_CXX='-qstaticlink'
17564 ;;
17565 *)
17566 case `$CC -V 2>&1 | sed 5q` in
17567 *Sun\ C*)
17568 # Sun C++ 5.9
17569 lt_prog_compiler_pic_CXX='-KPIC'
17570 lt_prog_compiler_static_CXX='-Bstatic'
17571 lt_prog_compiler_wl_CXX='-Qoption ld '
17572 ;;
17573 esac
17574 ;;
17575 esac
17576 ;;
17577 lynxos*)
17578 ;;
17579 m88k*)
17580 ;;
17581 mvs*)
17582 case $cc_basename in
17583 cxx*)
17584 lt_prog_compiler_pic_CXX='-W c,exportall'
17585 ;;
17586 *)
17587 ;;
17588 esac
17589 ;;
17590 netbsd*)
17591 ;;
17592 *qnx* | *nto*)
17593 # QNX uses GNU C++, but need to define -shared option too, otherwise
17594 # it will coredump.
17595 lt_prog_compiler_pic_CXX='-fPIC -shared'
17596 ;;
17597 osf3* | osf4* | osf5*)
17598 case $cc_basename in
17599 KCC*)
17600 lt_prog_compiler_wl_CXX='--backend -Wl,'
17601 ;;
17602 RCC*)
17603 # Rational C++ 2.4.1
17604 lt_prog_compiler_pic_CXX='-pic'
17605 ;;
17606 cxx*)
17607 # Digital/Compaq C++
17608 lt_prog_compiler_wl_CXX='-Wl,'
17609 # Make sure the PIC flag is empty. It appears that all Alpha
17610 # Linux and Compaq Tru64 Unix objects are PIC.
17611 lt_prog_compiler_pic_CXX=
17612 lt_prog_compiler_static_CXX='-non_shared'
17613 ;;
17614 *)
17615 ;;
17616 esac
17617 ;;
17618 psos*)
17619 ;;
17620 solaris*)
17621 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017622 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017623 # Sun C++ 4.2, 5.x and Centerline C++
17624 lt_prog_compiler_pic_CXX='-KPIC'
17625 lt_prog_compiler_static_CXX='-Bstatic'
17626 lt_prog_compiler_wl_CXX='-Qoption ld '
17627 ;;
17628 gcx*)
17629 # Green Hills C++ Compiler
17630 lt_prog_compiler_pic_CXX='-PIC'
17631 ;;
17632 *)
17633 ;;
17634 esac
17635 ;;
17636 sunos4*)
17637 case $cc_basename in
17638 CC*)
17639 # Sun C++ 4.x
17640 lt_prog_compiler_pic_CXX='-pic'
17641 lt_prog_compiler_static_CXX='-Bstatic'
17642 ;;
17643 lcc*)
17644 # Lucid
17645 lt_prog_compiler_pic_CXX='-pic'
17646 ;;
17647 *)
17648 ;;
17649 esac
17650 ;;
17651 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17652 case $cc_basename in
17653 CC*)
17654 lt_prog_compiler_wl_CXX='-Wl,'
17655 lt_prog_compiler_pic_CXX='-KPIC'
17656 lt_prog_compiler_static_CXX='-Bstatic'
17657 ;;
17658 esac
17659 ;;
17660 tandem*)
17661 case $cc_basename in
17662 NCC*)
17663 # NonStop-UX NCC 3.20
17664 lt_prog_compiler_pic_CXX='-KPIC'
17665 ;;
17666 *)
17667 ;;
17668 esac
17669 ;;
17670 vxworks*)
17671 ;;
17672 *)
17673 lt_prog_compiler_can_build_shared_CXX=no
17674 ;;
17675 esac
17676 fi
17677
17678case $host_os in
17679 # For platforms which do not support PIC, -DPIC is meaningless:
17680 *djgpp*)
17681 lt_prog_compiler_pic_CXX=
17682 ;;
17683 *)
17684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17685 ;;
17686esac
cristy8b350f62009-11-15 23:12:43 +000017687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017688$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17689
17690
17691
17692#
17693# Check to make sure the PIC flag actually works.
17694#
17695if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017696 { $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 +000017697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017698if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017699 $as_echo_n "(cached) " >&6
17700else
17701 lt_cv_prog_compiler_pic_works_CXX=no
17702 ac_outfile=conftest.$ac_objext
17703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17705 # Insert the option either (1) after the last *FLAGS variable, or
17706 # (2) before a word containing "conftest.", or (3) at the end.
17707 # Note that $ac_compile itself does not contain backslashes and begins
17708 # with a dollar sign (not a hyphen), so the echo should work correctly.
17709 # The option is referenced via a variable to avoid confusing sed.
17710 lt_compile=`echo "$ac_compile" | $SED \
17711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17713 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017715 (eval "$lt_compile" 2>conftest.err)
17716 ac_status=$?
17717 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017719 if (exit $ac_status) && test -s "$ac_outfile"; then
17720 # The compiler can only warn and ignore the option if not recognized
17721 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17725 lt_cv_prog_compiler_pic_works_CXX=yes
17726 fi
17727 fi
17728 $RM conftest*
17729
17730fi
cristy8b350f62009-11-15 23:12:43 +000017731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017732$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17733
17734if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17735 case $lt_prog_compiler_pic_CXX in
17736 "" | " "*) ;;
17737 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17738 esac
17739else
17740 lt_prog_compiler_pic_CXX=
17741 lt_prog_compiler_can_build_shared_CXX=no
17742fi
17743
17744fi
17745
17746
17747
17748#
17749# Check to make sure the static flag actually works.
17750#
17751wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017753$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017754if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017755 $as_echo_n "(cached) " >&6
17756else
17757 lt_cv_prog_compiler_static_works_CXX=no
17758 save_LDFLAGS="$LDFLAGS"
17759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17762 # The linker can only warn and ignore the option if not recognized
17763 # So say no if there are warnings
17764 if test -s conftest.err; then
17765 # Append any errors to the config.log.
17766 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17769 if diff conftest.exp conftest.er2 >/dev/null; then
17770 lt_cv_prog_compiler_static_works_CXX=yes
17771 fi
17772 else
17773 lt_cv_prog_compiler_static_works_CXX=yes
17774 fi
17775 fi
17776 $RM -r conftest*
17777 LDFLAGS="$save_LDFLAGS"
17778
17779fi
cristy8b350f62009-11-15 23:12:43 +000017780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017781$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17782
17783if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17784 :
17785else
17786 lt_prog_compiler_static_CXX=
17787fi
17788
17789
17790
17791
cristy8b350f62009-11-15 23:12:43 +000017792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017794if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017795 $as_echo_n "(cached) " >&6
17796else
17797 lt_cv_prog_compiler_c_o_CXX=no
17798 $RM -r conftest 2>/dev/null
17799 mkdir conftest
17800 cd conftest
17801 mkdir out
17802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17803
17804 lt_compiler_flag="-o out/conftest2.$ac_objext"
17805 # Insert the option either (1) after the last *FLAGS variable, or
17806 # (2) before a word containing "conftest.", or (3) at the end.
17807 # Note that $ac_compile itself does not contain backslashes and begins
17808 # with a dollar sign (not a hyphen), so the echo should work correctly.
17809 lt_compile=`echo "$ac_compile" | $SED \
17810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17812 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017814 (eval "$lt_compile" 2>out/conftest.err)
17815 ac_status=$?
17816 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17819 then
17820 # The compiler can only warn and ignore the option if not recognized
17821 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17825 lt_cv_prog_compiler_c_o_CXX=yes
17826 fi
17827 fi
17828 chmod u+w . 2>&5
17829 $RM conftest*
17830 # SGI C++ compiler will create directory out/ii_files/ for
17831 # template instantiation
17832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17833 $RM out/* && rmdir out
17834 cd ..
17835 $RM -r conftest
17836 $RM conftest*
17837
17838fi
cristy8b350f62009-11-15 23:12:43 +000017839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17841
17842
17843
cristy8b350f62009-11-15 23:12:43 +000017844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017846if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017847 $as_echo_n "(cached) " >&6
17848else
17849 lt_cv_prog_compiler_c_o_CXX=no
17850 $RM -r conftest 2>/dev/null
17851 mkdir conftest
17852 cd conftest
17853 mkdir out
17854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17855
17856 lt_compiler_flag="-o out/conftest2.$ac_objext"
17857 # Insert the option either (1) after the last *FLAGS variable, or
17858 # (2) before a word containing "conftest.", or (3) at the end.
17859 # Note that $ac_compile itself does not contain backslashes and begins
17860 # with a dollar sign (not a hyphen), so the echo should work correctly.
17861 lt_compile=`echo "$ac_compile" | $SED \
17862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17864 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017866 (eval "$lt_compile" 2>out/conftest.err)
17867 ac_status=$?
17868 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17871 then
17872 # The compiler can only warn and ignore the option if not recognized
17873 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17877 lt_cv_prog_compiler_c_o_CXX=yes
17878 fi
17879 fi
17880 chmod u+w . 2>&5
17881 $RM conftest*
17882 # SGI C++ compiler will create directory out/ii_files/ for
17883 # template instantiation
17884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17885 $RM out/* && rmdir out
17886 cd ..
17887 $RM -r conftest
17888 $RM conftest*
17889
17890fi
cristy8b350f62009-11-15 23:12:43 +000017891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017892$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17893
17894
17895
17896
17897hard_links="nottested"
17898if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017901$as_echo_n "checking if we can lock with hard links... " >&6; }
17902 hard_links=yes
17903 $RM conftest*
17904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17905 touch conftest.a
17906 ln conftest.a conftest.b 2>&5 || hard_links=no
17907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017909$as_echo "$hard_links" >&6; }
17910 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017911 { $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 +000017912$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17913 need_locks=warn
17914 fi
17915else
17916 need_locks=no
17917fi
17918
17919
17920
cristy8b350f62009-11-15 23:12:43 +000017921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17923
17924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925 case $host_os in
17926 aix[4-9]*)
17927 # If we're using GNU nm, then we don't want the "-C" option.
17928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017929 # Also, AIX nm treats weak defined symbols like other global defined
17930 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017932 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 +000017933 else
17934 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'
17935 fi
17936 ;;
17937 pw32*)
17938 export_symbols_cmds_CXX="$ltdll_cmds"
17939 ;;
17940 cygwin* | mingw* | cegcc*)
17941 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'
17942 ;;
17943 *)
17944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17945 ;;
17946 esac
17947 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17948
cristy8b350f62009-11-15 23:12:43 +000017949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017950$as_echo "$ld_shlibs_CXX" >&6; }
17951test "$ld_shlibs_CXX" = no && can_build_shared=no
17952
17953with_gnu_ld_CXX=$with_gnu_ld
17954
17955
17956
17957
17958
17959
17960#
17961# Do we need to explicitly link libc?
17962#
17963case "x$archive_cmds_need_lc_CXX" in
17964x|xyes)
17965 # Assume -lc should be added
17966 archive_cmds_need_lc_CXX=yes
17967
17968 if test "$enable_shared" = yes && test "$GCC" = yes; then
17969 case $archive_cmds_CXX in
17970 *'~'*)
17971 # FIXME: we may have to deal with multi-command sequences.
17972 ;;
17973 '$CC '*)
17974 # Test whether the compiler implicitly links with -lc since on some
17975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17976 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017978$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017979if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17981else
17982 $RM conftest*
17983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017984
cristyfd9dcd42010-08-08 18:07:02 +000017985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017986 (eval $ac_compile) 2>&5
17987 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017990 soname=conftest
17991 lib=conftest
17992 libobjs=conftest.$ac_objext
17993 deplibs=
17994 wl=$lt_prog_compiler_wl_CXX
17995 pic_flag=$lt_prog_compiler_pic_CXX
17996 compiler_flags=-v
17997 linker_flags=-v
17998 verstring=
17999 output_objdir=.
18000 libname=conftest
18001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18002 allow_undefined_flag_CXX=
18003 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 +000018004 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18005 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000018008 then
18009 lt_cv_archive_cmds_need_lc_CXX=no
18010 else
18011 lt_cv_archive_cmds_need_lc_CXX=yes
18012 fi
18013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18014 else
18015 cat conftest.err 1>&5
18016 fi
18017 $RM conftest*
18018
18019fi
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18021$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18022 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018023 ;;
18024 esac
18025 fi
18026 ;;
18027esac
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
cristy8b350f62009-11-15 23:12:43 +000018092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018093$as_echo_n "checking dynamic linker characteristics... " >&6; }
18094
18095library_names_spec=
18096libname_spec='lib$name'
18097soname_spec=
18098shrext_cmds=".so"
18099postinstall_cmds=
18100postuninstall_cmds=
18101finish_cmds=
18102finish_eval=
18103shlibpath_var=
18104shlibpath_overrides_runpath=unknown
18105version_type=none
18106dynamic_linker="$host_os ld.so"
18107sys_lib_dlsearch_path_spec="/lib /usr/lib"
18108need_lib_prefix=unknown
18109hardcode_into_libs=no
18110
18111# when you set need_version to no, make sure it does not cause -set_version
18112# flags to be left without arguments
18113need_version=unknown
18114
18115case $host_os in
18116aix3*)
18117 version_type=linux
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18119 shlibpath_var=LIBPATH
18120
18121 # AIX 3 has no versioning support, so we append a major version to the name.
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 ;;
18124
18125aix[4-9]*)
18126 version_type=linux
18127 need_lib_prefix=no
18128 need_version=no
18129 hardcode_into_libs=yes
18130 if test "$host_cpu" = ia64; then
18131 # AIX 5 supports IA64
18132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 else
18135 # With GCC up to 2.95.x, collect2 would create an import file
18136 # for dependence libraries. The import file would start with
18137 # the line `#! .'. This would cause the generated library to
18138 # depend on `.', always an invalid library. This was fixed in
18139 # development snapshots of GCC prior to 3.0.
18140 case $host_os in
18141 aix4 | aix4.[01] | aix4.[01].*)
18142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18143 echo ' yes '
18144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18145 :
18146 else
18147 can_build_shared=no
18148 fi
18149 ;;
18150 esac
18151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18152 # soname into executable. Probably we can add versioning support to
18153 # collect2, so additional links can be useful in future.
18154 if test "$aix_use_runtimelinking" = yes; then
18155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18156 # instead of lib<name>.a to let people know that these are not
18157 # typical AIX shared libraries.
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 else
18160 # We preserve .a as extension for shared libraries through AIX4.2
18161 # and later when we are not doing run time linking.
18162 library_names_spec='${libname}${release}.a $libname.a'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18164 fi
18165 shlibpath_var=LIBPATH
18166 fi
18167 ;;
18168
18169amigaos*)
18170 case $host_cpu in
18171 powerpc)
18172 # Since July 2007 AmigaOS4 officially supports .so libraries.
18173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 ;;
18176 m68k)
18177 library_names_spec='$libname.ixlibrary $libname.a'
18178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018179 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 +000018180 ;;
18181 esac
18182 ;;
18183
18184beos*)
18185 library_names_spec='${libname}${shared_ext}'
18186 dynamic_linker="$host_os ld.so"
18187 shlibpath_var=LIBRARY_PATH
18188 ;;
18189
18190bsdi[45]*)
18191 version_type=linux
18192 need_version=no
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18199 # the default ld.so.conf also contains /usr/contrib/lib and
18200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18201 # libtool to hard-code these into programs
18202 ;;
18203
18204cygwin* | mingw* | pw32* | cegcc*)
18205 version_type=windows
18206 shrext_cmds=".dll"
18207 need_version=no
18208 need_lib_prefix=no
18209
18210 case $GCC,$host_os in
18211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18212 library_names_spec='$libname.dll.a'
18213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18214 postinstall_cmds='base_file=`basename \${file}`~
18215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18216 dldir=$destdir/`dirname \$dlpath`~
18217 test -d \$dldir || mkdir -p \$dldir~
18218 $install_prog $dir/$dlname \$dldir/$dlname~
18219 chmod a+x \$dldir/$dlname~
18220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18222 fi'
18223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18224 dlpath=$dir/\$dldll~
18225 $RM \$dlpath'
18226 shlibpath_overrides_runpath=yes
18227
18228 case $host_os in
18229 cygwin*)
18230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018232
cristy3ed852e2009-09-05 21:47:34 +000018233 ;;
18234 mingw* | cegcc*)
18235 # MinGW DLLs use traditional 'lib' prefix
18236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018237 ;;
18238 pw32*)
18239 # pw32 DLLs use 'pw' prefix rather than 'lib'
18240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18241 ;;
18242 esac
18243 ;;
18244
18245 *)
18246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18247 ;;
18248 esac
18249 dynamic_linker='Win32 ld.exe'
18250 # FIXME: first we should search . and the directory the executable is in
18251 shlibpath_var=PATH
18252 ;;
18253
18254darwin* | rhapsody*)
18255 dynamic_linker="$host_os dyld"
18256 version_type=darwin
18257 need_lib_prefix=no
18258 need_version=no
18259 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18260 soname_spec='${libname}${release}${major}$shared_ext'
18261 shlibpath_overrides_runpath=yes
18262 shlibpath_var=DYLD_LIBRARY_PATH
18263 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18264
18265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18266 ;;
18267
18268dgux*)
18269 version_type=linux
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 ;;
18276
18277freebsd1*)
18278 dynamic_linker=no
18279 ;;
18280
18281freebsd* | dragonfly*)
18282 # DragonFly does not have aout. When/if they implement a new
18283 # versioning mechanism, adjust this.
18284 if test -x /usr/bin/objformat; then
18285 objformat=`/usr/bin/objformat`
18286 else
18287 case $host_os in
18288 freebsd[123]*) objformat=aout ;;
18289 *) objformat=elf ;;
18290 esac
18291 fi
18292 version_type=freebsd-$objformat
18293 case $version_type in
18294 freebsd-elf*)
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18296 need_version=no
18297 need_lib_prefix=no
18298 ;;
18299 freebsd-*)
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18301 need_version=yes
18302 ;;
18303 esac
18304 shlibpath_var=LD_LIBRARY_PATH
18305 case $host_os in
18306 freebsd2*)
18307 shlibpath_overrides_runpath=yes
18308 ;;
18309 freebsd3.[01]* | freebsdelf3.[01]*)
18310 shlibpath_overrides_runpath=yes
18311 hardcode_into_libs=yes
18312 ;;
18313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18315 shlibpath_overrides_runpath=no
18316 hardcode_into_libs=yes
18317 ;;
18318 *) # from 4.6 on, and DragonFly
18319 shlibpath_overrides_runpath=yes
18320 hardcode_into_libs=yes
18321 ;;
18322 esac
18323 ;;
18324
18325gnu*)
18326 version_type=linux
18327 need_lib_prefix=no
18328 need_version=no
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 hardcode_into_libs=yes
18333 ;;
18334
cristyfd9dcd42010-08-08 18:07:02 +000018335haiku*)
18336 version_type=linux
18337 need_lib_prefix=no
18338 need_version=no
18339 dynamic_linker="$host_os runtime_loader"
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18345 hardcode_into_libs=yes
18346 ;;
18347
cristy3ed852e2009-09-05 21:47:34 +000018348hpux9* | hpux10* | hpux11*)
18349 # Give a soname corresponding to the major version so that dld.sl refuses to
18350 # link against other versions.
18351 version_type=sunos
18352 need_lib_prefix=no
18353 need_version=no
18354 case $host_cpu in
18355 ia64*)
18356 shrext_cmds='.so'
18357 hardcode_into_libs=yes
18358 dynamic_linker="$host_os dld.so"
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 if test "X$HPUX_IA64_MODE" = X32; then
18364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18365 else
18366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18367 fi
18368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18369 ;;
18370 hppa*64*)
18371 shrext_cmds='.sl'
18372 hardcode_into_libs=yes
18373 dynamic_linker="$host_os dld.sl"
18374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18380 ;;
18381 *)
18382 shrext_cmds='.sl'
18383 dynamic_linker="$host_os dld.sl"
18384 shlibpath_var=SHLIB_PATH
18385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 ;;
18389 esac
cristyfd9dcd42010-08-08 18:07:02 +000018390 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018391 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018392 # or fails outright, so override atomically:
18393 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018394 ;;
18395
18396interix[3-9]*)
18397 version_type=linux
18398 need_lib_prefix=no
18399 need_version=no
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 shlibpath_overrides_runpath=no
18405 hardcode_into_libs=yes
18406 ;;
18407
18408irix5* | irix6* | nonstopux*)
18409 case $host_os in
18410 nonstopux*) version_type=nonstopux ;;
18411 *)
18412 if test "$lt_cv_prog_gnu_ld" = yes; then
18413 version_type=linux
18414 else
18415 version_type=irix
18416 fi ;;
18417 esac
18418 need_lib_prefix=no
18419 need_version=no
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18422 case $host_os in
18423 irix5* | nonstopux*)
18424 libsuff= shlibsuff=
18425 ;;
18426 *)
18427 case $LD in # libtool.m4 will add one of these switches to LD
18428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18429 libsuff= shlibsuff= libmagic=32-bit;;
18430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18431 libsuff=32 shlibsuff=N32 libmagic=N32;;
18432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18434 *) libsuff= shlibsuff= libmagic=never-match;;
18435 esac
18436 ;;
18437 esac
18438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18439 shlibpath_overrides_runpath=no
18440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18442 hardcode_into_libs=yes
18443 ;;
18444
18445# No shared lib support for Linux oldld, aout, or coff.
18446linux*oldld* | linux*aout* | linux*coff*)
18447 dynamic_linker=no
18448 ;;
18449
18450# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018451linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018452 version_type=linux
18453 need_lib_prefix=no
18454 need_version=no
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018460
cristy3ed852e2009-09-05 21:47:34 +000018461 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018462 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18463 $as_echo_n "(cached) " >&6
18464else
18465 lt_cv_shlibpath_overrides_runpath=no
18466 save_LDFLAGS=$LDFLAGS
18467 save_libdir=$libdir
18468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018471/* end confdefs.h. */
18472
18473int
18474main ()
18475{
18476
18477 ;
18478 return 0;
18479}
18480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018481if ac_fn_cxx_try_link "$LINENO"; then :
18482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018483 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018484fi
cristy3ed852e2009-09-05 21:47:34 +000018485fi
cristy8b350f62009-11-15 23:12:43 +000018486rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018488 LDFLAGS=$save_LDFLAGS
18489 libdir=$save_libdir
18490
18491fi
18492
18493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018494
18495 # This implies no fast_install, which is unacceptable.
18496 # Some rework will be needed to allow for fast_install
18497 # before this can be enabled.
18498 hardcode_into_libs=yes
18499
cristy679ed8e2009-12-05 02:37:41 +000018500 # Add ABI-specific directories to the system library path.
18501 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18502
cristy3ed852e2009-09-05 21:47:34 +000018503 # Append ld.so.conf contents to the search path
18504 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018505 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 +000018506 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018507
cristy3ed852e2009-09-05 21:47:34 +000018508 fi
18509
18510 # We used to test for /lib/ld.so.1 and disable shared libraries on
18511 # powerpc, because MkLinux only supported shared libraries with the
18512 # GNU dynamic linker. Since this was broken with cross compilers,
18513 # most powerpc-linux boxes support dynamic linking these days and
18514 # people can always --disable-shared, the test was removed, and we
18515 # assume the GNU/Linux dynamic linker is in use.
18516 dynamic_linker='GNU/Linux ld.so'
18517 ;;
18518
18519netbsd*)
18520 version_type=sunos
18521 need_lib_prefix=no
18522 need_version=no
18523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18526 dynamic_linker='NetBSD (a.out) ld.so'
18527 else
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 dynamic_linker='NetBSD ld.elf_so'
18531 fi
18532 shlibpath_var=LD_LIBRARY_PATH
18533 shlibpath_overrides_runpath=yes
18534 hardcode_into_libs=yes
18535 ;;
18536
18537newsos6)
18538 version_type=linux
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 shlibpath_overrides_runpath=yes
18542 ;;
18543
18544*nto* | *qnx*)
18545 version_type=qnx
18546 need_lib_prefix=no
18547 need_version=no
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18553 dynamic_linker='ldqnx.so'
18554 ;;
18555
18556openbsd*)
18557 version_type=sunos
18558 sys_lib_dlsearch_path_spec="/usr/lib"
18559 need_lib_prefix=no
18560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18561 case $host_os in
18562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18563 *) need_version=no ;;
18564 esac
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18569 case $host_os in
18570 openbsd2.[89] | openbsd2.[89].*)
18571 shlibpath_overrides_runpath=no
18572 ;;
18573 *)
18574 shlibpath_overrides_runpath=yes
18575 ;;
18576 esac
18577 else
18578 shlibpath_overrides_runpath=yes
18579 fi
18580 ;;
18581
18582os2*)
18583 libname_spec='$name'
18584 shrext_cmds=".dll"
18585 need_lib_prefix=no
18586 library_names_spec='$libname${shared_ext} $libname.a'
18587 dynamic_linker='OS/2 ld.exe'
18588 shlibpath_var=LIBPATH
18589 ;;
18590
18591osf3* | osf4* | osf5*)
18592 version_type=osf
18593 need_lib_prefix=no
18594 need_version=no
18595 soname_spec='${libname}${release}${shared_ext}$major'
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18600 ;;
18601
18602rdos*)
18603 dynamic_linker=no
18604 ;;
18605
18606solaris*)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 hardcode_into_libs=yes
18615 # ldd complains unless libraries are executable
18616 postinstall_cmds='chmod +x $lib'
18617 ;;
18618
18619sunos4*)
18620 version_type=sunos
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=yes
18625 if test "$with_gnu_ld" = yes; then
18626 need_lib_prefix=no
18627 fi
18628 need_version=yes
18629 ;;
18630
18631sysv4 | sysv4.3*)
18632 version_type=linux
18633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18634 soname_spec='${libname}${release}${shared_ext}$major'
18635 shlibpath_var=LD_LIBRARY_PATH
18636 case $host_vendor in
18637 sni)
18638 shlibpath_overrides_runpath=no
18639 need_lib_prefix=no
18640 runpath_var=LD_RUN_PATH
18641 ;;
18642 siemens)
18643 need_lib_prefix=no
18644 ;;
18645 motorola)
18646 need_lib_prefix=no
18647 need_version=no
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18650 ;;
18651 esac
18652 ;;
18653
18654sysv4*MP*)
18655 if test -d /usr/nec ;then
18656 version_type=linux
18657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658 soname_spec='$libname${shared_ext}.$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 fi
18661 ;;
18662
18663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664 version_type=freebsd-elf
18665 need_lib_prefix=no
18666 need_version=no
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18671 hardcode_into_libs=yes
18672 if test "$with_gnu_ld" = yes; then
18673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18674 else
18675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18676 case $host_os in
18677 sco3.2v5*)
18678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18679 ;;
18680 esac
18681 fi
18682 sys_lib_dlsearch_path_spec='/usr/lib'
18683 ;;
18684
18685tpf*)
18686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18687 version_type=linux
18688 need_lib_prefix=no
18689 need_version=no
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=no
18693 hardcode_into_libs=yes
18694 ;;
18695
18696uts4*)
18697 version_type=linux
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 ;;
18702
18703*)
18704 dynamic_linker=no
18705 ;;
18706esac
cristy8b350f62009-11-15 23:12:43 +000018707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018708$as_echo "$dynamic_linker" >&6; }
18709test "$dynamic_linker" = no && can_build_shared=no
18710
18711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712if test "$GCC" = yes; then
18713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18714fi
18715
18716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18718fi
18719if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18721fi
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
cristyfd9dcd42010-08-08 18:07:02 +000018758
18759
cristy8b350f62009-11-15 23:12:43 +000018760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018761$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18762hardcode_action_CXX=
18763if test -n "$hardcode_libdir_flag_spec_CXX" ||
18764 test -n "$runpath_var_CXX" ||
18765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18766
18767 # We can hardcode non-existent directories.
18768 if test "$hardcode_direct_CXX" != no &&
18769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18770 # have to relink, otherwise we might link with an installed library
18771 # when we should be linking with a yet-to-be-installed one
18772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18773 test "$hardcode_minus_L_CXX" != no; then
18774 # Linking always hardcodes the temporary library directory.
18775 hardcode_action_CXX=relink
18776 else
18777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18778 hardcode_action_CXX=immediate
18779 fi
18780else
18781 # We cannot hardcode anything, or else we can only hardcode existing
18782 # directories.
18783 hardcode_action_CXX=unsupported
18784fi
cristy8b350f62009-11-15 23:12:43 +000018785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018786$as_echo "$hardcode_action_CXX" >&6; }
18787
18788if test "$hardcode_action_CXX" = relink ||
18789 test "$inherit_rpath_CXX" = yes; then
18790 # Fast installation is not supported
18791 enable_fast_install=no
18792elif test "$shlibpath_overrides_runpath" = yes ||
18793 test "$enable_shared" = no; then
18794 # Fast installation is not necessary
18795 enable_fast_install=needless
18796fi
18797
18798
18799
18800
18801
18802
18803
18804 fi # test -n "$compiler"
18805
18806 CC=$lt_save_CC
18807 LDCXX=$LD
18808 LD=$lt_save_LD
18809 GCC=$lt_save_GCC
18810 with_gnu_ld=$lt_save_with_gnu_ld
18811 lt_cv_path_LDCXX=$lt_cv_path_LD
18812 lt_cv_path_LD=$lt_save_path_LD
18813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18815fi # test "$_lt_caught_CXX_error" != yes
18816
18817ac_ext=c
18818ac_cpp='$CPP $CPPFLAGS'
18819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18821ac_compiler_gnu=$ac_cv_c_compiler_gnu
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835 ac_config_commands="$ac_config_commands libtool"
18836
18837
18838
18839
18840# Only expand once:
18841
18842
18843
18844
18845
18846# Configure libltdl
18847
18848
18849
18850
18851
18852
18853
cristy8b350f62009-11-15 23:12:43 +000018854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018855$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018856if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018857 $as_echo_n "(cached) " >&6
18858else
18859
18860module=yes
18861eval libltdl_cv_shlibext=$shrext_cmds
18862
18863fi
cristy8b350f62009-11-15 23:12:43 +000018864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018865$as_echo "$libltdl_cv_shlibext" >&6; }
18866if test -n "$libltdl_cv_shlibext"; then
18867
18868cat >>confdefs.h <<_ACEOF
18869#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18870_ACEOF
18871
18872fi
18873
cristy8b350f62009-11-15 23:12:43 +000018874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018875$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018876if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018877 $as_echo_n "(cached) " >&6
18878else
18879 lt_cv_module_path_var="$shlibpath_var"
18880fi
cristy8b350f62009-11-15 23:12:43 +000018881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018882$as_echo "$lt_cv_module_path_var" >&6; }
18883if test -n "$lt_cv_module_path_var"; then
18884
18885cat >>confdefs.h <<_ACEOF
18886#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18887_ACEOF
18888
18889fi
18890
cristy8b350f62009-11-15 23:12:43 +000018891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018892$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018893if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018894 $as_echo_n "(cached) " >&6
18895else
18896 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18897fi
cristy8b350f62009-11-15 23:12:43 +000018898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018899$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18900if test -n "$lt_cv_sys_dlsearch_path"; then
18901 sys_dlsearch_path=
18902 for dir in $lt_cv_sys_dlsearch_path; do
18903 if test -z "$sys_dlsearch_path"; then
18904 sys_dlsearch_path="$dir"
18905 else
18906 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18907 fi
18908 done
18909
18910cat >>confdefs.h <<_ACEOF
18911#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18912_ACEOF
18913
18914fi
18915
18916
18917LT_DLLOADERS=
18918
18919
18920ac_ext=c
18921ac_cpp='$CPP $CPPFLAGS'
18922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924ac_compiler_gnu=$ac_cv_c_compiler_gnu
18925
18926
18927LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018929$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018930if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018931 $as_echo_n "(cached) " >&6
18932else
18933 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018935/* end confdefs.h. */
18936
18937/* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18940#ifdef __cplusplus
18941extern "C"
18942#endif
18943char dlopen ();
18944int
18945main ()
18946{
18947return dlopen ();
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952for ac_lib in '' dl; do
18953 if test -z "$ac_lib"; then
18954 ac_res="none required"
18955 else
18956 ac_res=-l$ac_lib
18957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18958 fi
cristy8b350f62009-11-15 23:12:43 +000018959 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018960 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018961fi
cristy8b350f62009-11-15 23:12:43 +000018962rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext
18964 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018965 break
18966fi
18967done
cristy8b350f62009-11-15 23:12:43 +000018968if test "${ac_cv_search_dlopen+set}" = set; then :
18969
cristy3ed852e2009-09-05 21:47:34 +000018970else
18971 ac_cv_search_dlopen=no
18972fi
18973rm conftest.$ac_ext
18974LIBS=$ac_func_search_save_LIBS
18975fi
cristy8b350f62009-11-15 23:12:43 +000018976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018977$as_echo "$ac_cv_search_dlopen" >&6; }
18978ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018979if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18981
cristy8b350f62009-11-15 23:12:43 +000018982$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018983
18984 if test "$ac_cv_search_dlopen" != "none required" ; then
18985 LIBADD_DLOPEN="-ldl"
18986 fi
18987 libltdl_cv_lib_dl_dlopen="yes"
18988 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18989else
cristy8b350f62009-11-15 23:12:43 +000018990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018991/* end confdefs.h. */
18992#if HAVE_DLFCN_H
18993# include <dlfcn.h>
18994#endif
18995
18996int
18997main ()
18998{
18999dlopen(0, 0);
19000 ;
19001 return 0;
19002}
19003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019005
cristy8b350f62009-11-15 23:12:43 +000019006$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019007
19008 libltdl_cv_func_dlopen="yes"
19009 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19010else
cristy8b350f62009-11-15 23:12:43 +000019011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019012$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019013if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019014 $as_echo_n "(cached) " >&6
19015else
19016 ac_check_lib_save_LIBS=$LIBS
19017LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019019/* end confdefs.h. */
19020
19021/* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19024#ifdef __cplusplus
19025extern "C"
19026#endif
19027char dlopen ();
19028int
19029main ()
19030{
19031return dlopen ();
19032 ;
19033 return 0;
19034}
19035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019037 ac_cv_lib_svld_dlopen=yes
19038else
cristy8b350f62009-11-15 23:12:43 +000019039 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019040fi
cristy8b350f62009-11-15 23:12:43 +000019041rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019043LIBS=$ac_check_lib_save_LIBS
19044fi
cristy8b350f62009-11-15 23:12:43 +000019045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019046$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019047if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019048
cristy8b350f62009-11-15 23:12:43 +000019049$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019050
19051 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19052 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19053fi
19054
19055fi
cristy8b350f62009-11-15 23:12:43 +000019056rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019058fi
19059
19060if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19061then
19062 lt_save_LIBS="$LIBS"
19063 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019064 for ac_func in dlerror
19065do :
19066 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19067if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019068 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019069#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019070_ACEOF
19071
19072fi
19073done
19074
19075 LIBS="$lt_save_LIBS"
19076fi
19077
19078
19079LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019080ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19081if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019082
cristy8b350f62009-11-15 23:12:43 +000019083$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019084
19085 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19086else
cristy8b350f62009-11-15 23:12:43 +000019087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019088$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019089if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019090 $as_echo_n "(cached) " >&6
19091else
19092 ac_check_lib_save_LIBS=$LIBS
19093LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019095/* end confdefs.h. */
19096
19097/* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19100#ifdef __cplusplus
19101extern "C"
19102#endif
19103char shl_load ();
19104int
19105main ()
19106{
19107return shl_load ();
19108 ;
19109 return 0;
19110}
19111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019113 ac_cv_lib_dld_shl_load=yes
19114else
cristy8b350f62009-11-15 23:12:43 +000019115 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019116fi
cristy8b350f62009-11-15 23:12:43 +000019117rm -f core conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019119LIBS=$ac_check_lib_save_LIBS
19120fi
cristy8b350f62009-11-15 23:12:43 +000019121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019122$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019123if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019124
cristy8b350f62009-11-15 23:12:43 +000019125$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019126
19127 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19128 LIBADD_SHL_LOAD="-ldld"
19129fi
19130
19131fi
19132
19133
19134
19135case $host_os in
19136darwin[1567].*)
19137# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019138 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19139if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019140
cristy8b350f62009-11-15 23:12:43 +000019141$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019142
19143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19144fi
19145
19146 ;;
19147beos*)
19148 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19149 ;;
19150cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019151 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19152"
19153if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19154 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019155else
cristy8b350f62009-11-15 23:12:43 +000019156 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019157fi
19158
cristy3ed852e2009-09-05 21:47:34 +000019159cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019160#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019161_ACEOF
19162
cristy3ed852e2009-09-05 21:47:34 +000019163 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19164 ;;
19165esac
19166
cristy8b350f62009-11-15 23:12:43 +000019167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019168$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019169if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019170 $as_echo_n "(cached) " >&6
19171else
19172 ac_check_lib_save_LIBS=$LIBS
19173LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019175/* end confdefs.h. */
19176
19177/* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19180#ifdef __cplusplus
19181extern "C"
19182#endif
19183char dld_link ();
19184int
19185main ()
19186{
19187return dld_link ();
19188 ;
19189 return 0;
19190}
19191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019193 ac_cv_lib_dld_dld_link=yes
19194else
cristy8b350f62009-11-15 23:12:43 +000019195 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019196fi
cristy8b350f62009-11-15 23:12:43 +000019197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019199LIBS=$ac_check_lib_save_LIBS
19200fi
cristy8b350f62009-11-15 23:12:43 +000019201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019202$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019203if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019204
cristy8b350f62009-11-15 23:12:43 +000019205$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019206
19207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19208fi
19209
19210
19211
19212
19213LT_DLPREOPEN=
19214if test -n "$LT_DLLOADERS"
19215then
19216 for lt_loader in $LT_DLLOADERS; do
19217 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19218 done
19219
cristy8b350f62009-11-15 23:12:43 +000019220$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019221
19222fi
19223
19224
19225LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19226
19227
19228ac_ext=c
19229ac_cpp='$CPP $CPPFLAGS'
19230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
cristy8b350f62009-11-15 23:12:43 +000019235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019236$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019237if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019238 $as_echo_n "(cached) " >&6
19239else
19240 lt_cv_sys_symbol_underscore=no
19241 cat > conftest.$ac_ext <<_LT_EOF
19242void nm_test_func(){}
19243int main(){nm_test_func;return 0;}
19244_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019246 (eval $ac_compile) 2>&5
19247 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19249 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019250 # Now try to grab the symbols.
19251 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019252 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 +000019253 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19254 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19256 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019257 # See whether the symbols have a leading underscore.
19258 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19259 lt_cv_sys_symbol_underscore=yes
19260 else
19261 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19262 :
19263 else
19264 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19265 fi
19266 fi
19267 else
19268 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19269 fi
19270 else
19271 echo "configure: failed program was:" >&5
19272 cat conftest.c >&5
19273 fi
19274 rm -rf conftest*
19275
19276fi
cristy8b350f62009-11-15 23:12:43 +000019277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019278$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19279 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19280
19281
19282if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19283 if test x"$libltdl_cv_func_dlopen" = xyes ||
19284 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019286$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019287if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019288 $as_echo_n "(cached) " >&6
19289else
19290 libltdl_cv_need_uscore=unknown
19291 save_LIBS="$LIBS"
19292 LIBS="$LIBS $LIBADD_DLOPEN"
19293 if test "$cross_compiling" = yes; then :
19294 libltdl_cv_need_uscore=cross
19295else
19296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19297 lt_status=$lt_dlunknown
19298 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019299#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019300#include "confdefs.h"
19301
19302#if HAVE_DLFCN_H
19303#include <dlfcn.h>
19304#endif
19305
19306#include <stdio.h>
19307
19308#ifdef RTLD_GLOBAL
19309# define LT_DLGLOBAL RTLD_GLOBAL
19310#else
19311# ifdef DL_GLOBAL
19312# define LT_DLGLOBAL DL_GLOBAL
19313# else
19314# define LT_DLGLOBAL 0
19315# endif
19316#endif
19317
19318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319 find out it does not work in some platform. */
19320#ifndef LT_DLLAZY_OR_NOW
19321# ifdef RTLD_LAZY
19322# define LT_DLLAZY_OR_NOW RTLD_LAZY
19323# else
19324# ifdef DL_LAZY
19325# define LT_DLLAZY_OR_NOW DL_LAZY
19326# else
19327# ifdef RTLD_NOW
19328# define LT_DLLAZY_OR_NOW RTLD_NOW
19329# else
19330# ifdef DL_NOW
19331# define LT_DLLAZY_OR_NOW DL_NOW
19332# else
19333# define LT_DLLAZY_OR_NOW 0
19334# endif
19335# endif
19336# endif
19337# endif
19338#endif
19339
cristyfd9dcd42010-08-08 18:07:02 +000019340/* When -fvisbility=hidden is used, assume the code has been annotated
19341 correspondingly for the symbols needed. */
19342#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343void fnord () __attribute__((visibility("default")));
19344#endif
19345
19346void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019347int main ()
19348{
19349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350 int status = $lt_dlunknown;
19351
19352 if (self)
19353 {
19354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019355 else
19356 {
19357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19358 else puts (dlerror ());
19359 }
cristy3ed852e2009-09-05 21:47:34 +000019360 /* dlclose (self); */
19361 }
19362 else
19363 puts (dlerror ());
19364
19365 return status;
19366}
19367_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019369 (eval $ac_link) 2>&5
19370 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019373 (./conftest; exit; ) >&5 2>/dev/null
19374 lt_status=$?
19375 case x$lt_status in
19376 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19377 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19378 x$lt_dlunknown|x*) ;;
19379 esac
19380 else :
19381 # compilation failed
19382
19383 fi
19384fi
19385rm -fr conftest*
19386
19387 LIBS="$save_LIBS"
19388
19389fi
cristy8b350f62009-11-15 23:12:43 +000019390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019391$as_echo "$libltdl_cv_need_uscore" >&6; }
19392 fi
19393fi
19394
19395if test x"$libltdl_cv_need_uscore" = xyes; then
19396
cristy8b350f62009-11-15 23:12:43 +000019397$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019398
19399fi
19400
cristy8b350f62009-11-15 23:12:43 +000019401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019402$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019403if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019404 $as_echo_n "(cached) " >&6
19405else
19406 # PORTME does your system automatically load deplibs for dlopen?
19407 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19408 # For now, we just catch OSes we know something about -- in the
19409 # future, we'll try test this programmatically.
19410 lt_cv_sys_dlopen_deplibs=unknown
19411 case $host_os in
19412 aix3*|aix4.1.*|aix4.2.*)
19413 # Unknown whether this is true for these versions of AIX, but
19414 # we want this `case' here to explicitly catch those versions.
19415 lt_cv_sys_dlopen_deplibs=unknown
19416 ;;
19417 aix[4-9]*)
19418 lt_cv_sys_dlopen_deplibs=yes
19419 ;;
19420 amigaos*)
19421 case $host_cpu in
19422 powerpc)
19423 lt_cv_sys_dlopen_deplibs=no
19424 ;;
19425 esac
19426 ;;
19427 darwin*)
19428 # Assuming the user has installed a libdl from somewhere, this is true
19429 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19430 lt_cv_sys_dlopen_deplibs=yes
19431 ;;
19432 freebsd* | dragonfly*)
19433 lt_cv_sys_dlopen_deplibs=yes
19434 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019435 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019436 # GNU and its variants, using gnu ld.so (Glibc)
19437 lt_cv_sys_dlopen_deplibs=yes
19438 ;;
19439 hpux10*|hpux11*)
19440 lt_cv_sys_dlopen_deplibs=yes
19441 ;;
19442 interix*)
19443 lt_cv_sys_dlopen_deplibs=yes
19444 ;;
19445 irix[12345]*|irix6.[01]*)
19446 # Catch all versions of IRIX before 6.2, and indicate that we don't
19447 # know how it worked for any of those versions.
19448 lt_cv_sys_dlopen_deplibs=unknown
19449 ;;
19450 irix*)
19451 # The case above catches anything before 6.2, and it's known that
19452 # at 6.2 and later dlopen does load deplibs.
19453 lt_cv_sys_dlopen_deplibs=yes
19454 ;;
19455 netbsd*)
19456 lt_cv_sys_dlopen_deplibs=yes
19457 ;;
19458 openbsd*)
19459 lt_cv_sys_dlopen_deplibs=yes
19460 ;;
19461 osf[1234]*)
19462 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19463 # it did *not* use an RPATH in a shared library to find objects the
19464 # library depends on, so we explicitly say `no'.
19465 lt_cv_sys_dlopen_deplibs=no
19466 ;;
19467 osf5.0|osf5.0a|osf5.1)
19468 # dlopen *does* load deplibs and with the right loader patch applied
19469 # it even uses RPATH in a shared library to search for shared objects
19470 # that the library depends on, but there's no easy way to know if that
19471 # patch is installed. Since this is the case, all we can really
19472 # say is unknown -- it depends on the patch being installed. If
19473 # it is, this changes to `yes'. Without it, it would be `no'.
19474 lt_cv_sys_dlopen_deplibs=unknown
19475 ;;
19476 osf*)
19477 # the two cases above should catch all versions of osf <= 5.1. Read
19478 # the comments above for what we know about them.
19479 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19480 # is used to find them so we can finally say `yes'.
19481 lt_cv_sys_dlopen_deplibs=yes
19482 ;;
19483 qnx*)
19484 lt_cv_sys_dlopen_deplibs=yes
19485 ;;
19486 solaris*)
19487 lt_cv_sys_dlopen_deplibs=yes
19488 ;;
19489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19490 libltdl_cv_sys_dlopen_deplibs=yes
19491 ;;
19492 esac
19493
19494fi
cristy8b350f62009-11-15 23:12:43 +000019495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019496$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19497if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19498
cristy8b350f62009-11-15 23:12:43 +000019499$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019500
19501fi
19502
19503:
19504
cristy3ed852e2009-09-05 21:47:34 +000019505for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019506do :
19507 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19508"
19509if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019510 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019511#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019512_ACEOF
19513
19514fi
19515
19516done
19517
19518
cristy8b350f62009-11-15 23:12:43 +000019519ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019520# include <argz.h>
19521#endif
cristy8b350f62009-11-15 23:12:43 +000019522"
19523if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019524
19525cat >>confdefs.h <<_ACEOF
19526#define HAVE_ERROR_T 1
19527_ACEOF
19528
19529
19530else
19531
cristy8b350f62009-11-15 23:12:43 +000019532$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019533
19534
cristy8b350f62009-11-15 23:12:43 +000019535$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019536
19537fi
19538
19539
19540ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019541for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19542 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019543do :
19544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019546if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019547 cat >>confdefs.h <<_ACEOF
19548#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549_ACEOF
19550
19551else
19552 ARGZ_H=argz.h;
19553
19554 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19555
19556fi
19557done
19558
19559
cristy8b350f62009-11-15 23:12:43 +000019560if test -z "$ARGZ_H"; then :
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019562$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019563if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019564 $as_echo_n "(cached) " >&6
19565else
19566 case $host_os in #(
19567 *cygwin*)
19568 lt_cv_sys_argz_works=no
19569 if test "$cross_compiling" != no; then
19570 lt_cv_sys_argz_works="guessing no"
19571 else
19572 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19573 save_IFS=$IFS
19574 IFS=-.
19575 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19576 IFS=$save_IFS
19577 lt_os_major=${2-0}
19578 lt_os_minor=${3-0}
19579 lt_os_micro=${4-0}
19580 if test "$lt_os_major" -gt 1 \
19581 || { test "$lt_os_major" -eq 1 \
19582 && { test "$lt_os_minor" -gt 5 \
19583 || { test "$lt_os_minor" -eq 5 \
19584 && test "$lt_os_micro" -gt 24; }; }; }; then
19585 lt_cv_sys_argz_works=yes
19586 fi
19587 fi
19588 ;; #(
19589 *) lt_cv_sys_argz_works=yes ;;
19590 esac
19591fi
cristy8b350f62009-11-15 23:12:43 +000019592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019593$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019594 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019595
cristy8b350f62009-11-15 23:12:43 +000019596$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019597
19598else
19599 ARGZ_H=argz.h
19600
19601
19602 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19603
19604fi
cristy3ed852e2009-09-05 21:47:34 +000019605fi
19606
19607
19608
cristy8b350f62009-11-15 23:12:43 +000019609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019610$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019611if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019612 $as_echo_n "(cached) " >&6
19613else
19614 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19615 libltdl_cv_preloaded_symbols=yes
19616 else
19617 libltdl_cv_preloaded_symbols=no
19618 fi
19619
19620fi
cristy8b350f62009-11-15 23:12:43 +000019621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019622$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19623if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19624
cristy8b350f62009-11-15 23:12:43 +000019625$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019626
19627fi
19628
19629# Set options
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019642if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019643 withval=$with_included_ltdl;
19644fi
19645
19646
19647if test "x$with_included_ltdl" != xyes; then
19648 # We are not being forced to use the included libltdl sources, so
19649 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019650 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019651
cristy8b350f62009-11-15 23:12:43 +000019652"
19653if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19654 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 +000019655 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019656"
19657if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019659$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019660if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019661 $as_echo_n "(cached) " >&6
19662else
19663 ac_check_lib_save_LIBS=$LIBS
19664LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019666/* end confdefs.h. */
19667
19668/* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19671#ifdef __cplusplus
19672extern "C"
19673#endif
19674char lt_dladvise_preload ();
19675int
19676main ()
19677{
19678return lt_dladvise_preload ();
19679 ;
19680 return 0;
19681}
19682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019684 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19685else
cristy8b350f62009-11-15 23:12:43 +000019686 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019687fi
cristy8b350f62009-11-15 23:12:43 +000019688rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019690LIBS=$ac_check_lib_save_LIBS
19691fi
cristy8b350f62009-11-15 23:12:43 +000019692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019693$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019694if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019695 with_included_ltdl=no
19696else
19697 with_included_ltdl=yes
19698fi
19699
19700else
19701 with_included_ltdl=yes
19702fi
19703
19704else
19705 with_included_ltdl=yes
19706fi
19707
19708
19709fi
19710
19711
19712
19713
19714# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019715if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019716 withval=$with_ltdl_include;
19717fi
19718
19719
19720if test -n "$with_ltdl_include"; then
19721 if test -f "$with_ltdl_include/ltdl.h"; then :
19722 else
cristyfd9dcd42010-08-08 18:07:02 +000019723 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019724 fi
19725else
19726 with_ltdl_include=no
19727fi
19728
19729
19730# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019731if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019732 withval=$with_ltdl_lib;
19733fi
19734
19735
19736if test -n "$with_ltdl_lib"; then
19737 if test -f "$with_ltdl_lib/libltdl.la"; then :
19738 else
cristyfd9dcd42010-08-08 18:07:02 +000019739 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019740 fi
19741else
19742 with_ltdl_lib=no
19743fi
19744
19745case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19746 ,yes,no,no,)
19747 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019748 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019749 "") enable_ltdl_convenience=yes
19750 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19751esac
19752LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19753LTDLDEPS=$LIBLTDL
19754LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19755
19756
19757
19758
19759
19760# For backwards non-gettext consistent compatibility...
19761INCLTDL="$LTDLINCL"
19762
19763
19764 ;;
19765 ,no,no,no,)
19766 # If the included ltdl is not to be used, then use the
19767 # preinstalled libltdl we found.
19768
cristy8b350f62009-11-15 23:12:43 +000019769$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019770
19771 LIBLTDL=-lltdl
19772 LTDLDEPS=
19773 LTDLINCL=
19774 ;;
19775 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019776 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019777 ;;
19778 *) with_included_ltdl=no
19779 LIBLTDL="-L$with_ltdl_lib -lltdl"
19780 LTDLDEPS=
19781 LTDLINCL="-I$with_ltdl_include"
19782 ;;
19783esac
19784INCLTDL="$LTDLINCL"
19785
19786# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019788$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019790$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019792$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019794$as_echo "$LIBLTDL" >&6; }
19795
19796
19797
19798# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019799if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019800 enableval=$enable_ltdl_install;
19801fi
19802
19803
19804case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19805 *yes*) ;;
19806 *) enable_ltdl_convenience=yes ;;
19807esac
19808
19809 if test x"${enable_ltdl_install-no}" != xno; then
19810 INSTALL_LTDL_TRUE=
19811 INSTALL_LTDL_FALSE='#'
19812else
19813 INSTALL_LTDL_TRUE='#'
19814 INSTALL_LTDL_FALSE=
19815fi
19816
19817 if test x"${enable_ltdl_convenience-no}" != xno; then
19818 CONVENIENCE_LTDL_TRUE=
19819 CONVENIENCE_LTDL_FALSE='#'
19820else
19821 CONVENIENCE_LTDL_TRUE='#'
19822 CONVENIENCE_LTDL_FALSE=
19823fi
19824
19825
19826
19827
19828
19829
cristy3ed852e2009-09-05 21:47:34 +000019830# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19831# the user used. This is so that ltdl.h can pick up the parent projects
19832# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19833# definitions required by ltdl.c.
19834# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19835
19836
19837
cristy3ed852e2009-09-05 21:47:34 +000019838for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019839do :
19840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19842"
cristyfd9dcd42010-08-08 18:07:02 +000019843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019844 cat >>confdefs.h <<_ACEOF
19845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19846_ACEOF
19847
19848fi
19849
19850done
19851
19852
cristy3ed852e2009-09-05 21:47:34 +000019853for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019854do :
19855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19856ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019857if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019858 cat >>confdefs.h <<_ACEOF
19859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860_ACEOF
19861
19862else
19863
19864
19865 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19866
19867fi
19868done
19869
cristy3ed852e2009-09-05 21:47:34 +000019870for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019871do :
19872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019875 cat >>confdefs.h <<_ACEOF
19876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877_ACEOF
19878
19879else
19880
19881
19882 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19883
19884fi
19885done
19886
19887
19888
19889cat >>confdefs.h <<_ACEOF
19890#define LT_LIBEXT "$libext"
19891_ACEOF
19892
19893
19894name=ltdl
19895LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19896
19897
19898
19899
19900
19901
19902
19903
19904# Only expand once:
19905
19906
19907
19908# Check to see if building shared libraries
19909libtool_build_shared_libs='no'
19910if test "$enable_shared" = 'yes'; then
19911 libtool_build_shared_libs='yes'
19912fi
19913
19914# Check to see if building static libraries
19915libtool_build_static_libs='no'
19916if test "$enable_static" = 'yes'; then
19917 libtool_build_static_libs='yes'
19918fi
19919
cristyfa112112010-01-04 17:48:07 +000019920 if test "${libtool_build_shared_libs}" = 'yes'; then
19921 WITH_SHARED_LIBS_TRUE=
19922 WITH_SHARED_LIBS_FALSE='#'
19923else
19924 WITH_SHARED_LIBS_TRUE='#'
19925 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019926fi
19927
19928#
19929# Enable support for building loadable modules
19930#
19931
19932# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019933if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019934 withval=$with_modules; with_modules=$withval
19935else
cristy5a1cefd2010-01-06 20:42:35 +000019936 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019937fi
19938
19939
19940# Only allow building loadable modules if we are building shared libraries
19941if test "$with_modules" != 'no' ; then
19942 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019943 { $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 +000019944$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19945 with_modules='no'
19946 fi
19947fi
19948if test "$with_modules" != 'no'; then
19949
cristy8b350f62009-11-15 23:12:43 +000019950$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019951
19952fi
19953 if test "$with_modules" != 'no'; then
19954 WITH_MODULES_TRUE=
19955 WITH_MODULES_FALSE='#'
19956else
19957 WITH_MODULES_TRUE='#'
19958 WITH_MODULES_FALSE=
19959fi
19960
19961
19962# Enable building/use of libltdl if we are building shared libraries regardless
19963# of whether modules are built or not.
19964with_ltdl='no'
19965if test "$libtool_build_shared_libs" != 'no'; then
19966 with_ltdl='yes'
19967fi
19968
19969 if test "$with_ltdl" != 'no'; then
19970 WITH_LTDL_TRUE=
19971 WITH_LTDL_FALSE='#'
19972else
19973 WITH_LTDL_TRUE='#'
19974 WITH_LTDL_FALSE=
19975fi
19976
19977if test "$with_ltdl" != 'no'; then
19978
cristy8b350f62009-11-15 23:12:43 +000019979$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019980
19981
19982 # Set DLLDFLAGS
19983 if test X"$enable_shared" = Xyes; then
19984 DLLDFLAGS=-export-dynamic
19985
19986 fi
19987fi
19988
19989# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019990# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019991# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019992if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019993 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19994else
19995 enable_delegate_build='no'
19996fi
19997
19998
19999# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020000if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020001 enableval=$enable_deprecated; enable_deprecated=$enableval
20002else
20003 enable_deprecated='no'
20004fi
20005
20006
20007if test "$enable_deprecated" = 'yes'; then
20008
cristy8b350f62009-11-15 23:12:43 +000020009$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020010
20011else
20012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20013fi
20014
20015# Build a version of ImageMagick which operates uninstalled.
20016# Used to build distributions located via MAGICK_HOME / executable path
20017# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020018if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020019 enableval=$enable_installed; enable_installed=$enableval
20020else
20021 enable_installed='yes'
20022fi
20023
20024
20025if test "$enable_installed" = 'yes'; then
20026
cristy8b350f62009-11-15 23:12:43 +000020027$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020028
20029else
20030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20031fi
20032
20033# Permit enciphering and deciphering image pixels.
20034# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020035if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020036 enableval=$enable_cipher; enable_cipher=$enableval
20037else
20038 enable_cipher='yes'
20039fi
20040
20041
20042if test "$enable_cipher" = 'yes'; then
20043
cristy8b350f62009-11-15 23:12:43 +000020044$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020045
20046fi
20047
20048# Build an embeddable version of ImageMagick.
20049# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020050if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020051 enableval=$enable_embeddable; enable_embeddable=$enableval
20052else
20053 enable_embeddable='no'
20054fi
20055
20056
20057if test "$enable_embeddable" = 'yes'; then
20058
cristy8b350f62009-11-15 23:12:43 +000020059$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020060
20061fi
20062
20063# Build a high dynamic range version of ImageMagick.
20064# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020065if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020066 enableval=$enable_hdri; enable_hdri=$enableval
20067else
20068 enable_hdri='no'
20069fi
20070
20071
20072MAGICK_HDRI=""
20073if test "$enable_hdri" = 'yes'; then
20074 MAGICK_HDRI="HDRI"
20075
cristy8b350f62009-11-15 23:12:43 +000020076$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020077
cristyfd9dcd42010-08-08 18:07:02 +000020078 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020079fi
20080
cristy3ed852e2009-09-05 21:47:34 +000020081# Build a version of ImageMagick with assert statements.
20082# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020083if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020084 enableval=$enable_assert; enable_assert=$enableval
20085else
20086 enable_assert='yes'
20087fi
20088
20089
20090if test "$enable_assert" = 'no'; then
20091
cristy8b350f62009-11-15 23:12:43 +000020092$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020093
20094fi
20095
20096# Add configure option --enable-maintainer-mode which enables dependency
20097# checking and generation useful to package maintainers. This is made an
20098# option to avoid confusing end users.
20099
cristy8b350f62009-11-15 23:12:43 +000020100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020101$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20102 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020103if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020104 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20105else
20106 USE_MAINTAINER_MODE=no
20107fi
20108
cristy8b350f62009-11-15 23:12:43 +000020109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020110$as_echo "$USE_MAINTAINER_MODE" >&6; }
20111 if test $USE_MAINTAINER_MODE = yes; then
20112 MAINTAINER_MODE_TRUE=
20113 MAINTAINER_MODE_FALSE='#'
20114else
20115 MAINTAINER_MODE_TRUE='#'
20116 MAINTAINER_MODE_FALSE=
20117fi
20118
20119 MAINT=$MAINTAINER_MODE_TRUE
20120
20121
20122
20123
20124# Enable ccmalloc memory debugging support
20125# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020126if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020127 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20128else
20129 enable_ccmalloc='no'
20130fi
20131
20132
20133# Enable Electric Fence memory debugging support
20134# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020135if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020136 enableval=$enable_efence; enable_efence=$enableval
20137else
20138 enable_efence='no'
20139fi
20140
20141
20142# Enable prof-based profiling support
20143# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020144if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020145 enableval=$enable_prof; enable_prof=$enableval
20146else
20147 enable_prof='no'
20148fi
20149
20150
20151# Enable gprof-based profiling support
20152# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020153if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020154 enableval=$enable_gprof; enable_gprof=$enableval
20155else
20156 enable_gprof='no'
20157fi
20158
20159
20160# Enable gcov-based profiling support
20161# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020162if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020163 enableval=$enable_gcov; enable_gcov=$enableval
20164else
20165 enable_gcov='no'
20166fi
20167
20168
20169enable_profiling='no'
20170if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20171 enable_profiling='yes'
20172 if test "$libtool_build_shared_libs" = 'yes'; then
20173 echo "Warning: Can not profile code using shared libraries"
20174 fi
20175fi
20176
20177# Magick API method prefix
20178
20179# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020180if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020181 withval=$with_method_prefix; with_method_prefix=$enableval
20182else
20183 with_method_prefix=''
20184fi
20185
20186
20187if test "$with_method_prefix" != ''; then
20188
20189cat >>confdefs.h <<_ACEOF
20190#define NAMESPACE_PREFIX $with_method_prefix
20191_ACEOF
20192
20193fi
20194
20195# Number of bits in a Quantum
20196
20197# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020198if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020199 withval=$with_quantum_depth; with_quantum_depth=$withval
20200else
20201 with_quantum_depth=16
20202fi
20203
20204
20205if test "$with_quantum_depth" != '8'; then
20206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20207fi
20208
20209case "${with_quantum_depth}" in
20210 8 ) ;;
20211 16 ) ;;
20212 32 ) ;;
20213 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000020214 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020215esac
cristycdae12a2010-09-19 02:24:31 +000020216if test "$enable_hdri" = 'yes'; then
20217 with_quantum_depth=16
20218fi
cristy3ed852e2009-09-05 21:47:34 +000020219QUANTUM_DEPTH="$with_quantum_depth"
20220
20221cat >>confdefs.h <<_ACEOF
20222#define QUANTUM_DEPTH $QUANTUM_DEPTH
20223_ACEOF
20224
20225
20226# Set pixel cache threshold
20227
20228# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020229if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020230 withval=$with_cache; with_cache=$withval
20231else
20232 with_cache=''
20233fi
20234
20235
20236if test "$with_cache" != ''; then
20237
20238cat >>confdefs.h <<_ACEOF
20239#define PixelCacheThreshold $with_cache
20240_ACEOF
20241
20242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20243fi
20244
20245# Disable/Enable support for full delegate paths
20246
20247# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020248if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020249 withval=$with_frozenpaths; with_frozenpaths=$withval
20250else
20251 with_frozenpaths='no'
20252fi
20253
20254
20255# Enable build/install of Magick++
20256
20257# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020258if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020259 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20260else
20261 with_magick_plus_plus='yes'
20262fi
20263
20264
20265# Disable build/install of PerlMagick.
20266
20267# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020268if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020269 withval=$with_perl; with_perl=$withval
20270else
cristyb5f4e2f2010-04-25 00:49:11 +000020271 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020272fi
20273
20274
20275# Options to pass when configuring PerlMagick
20276
20277# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020278if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020279 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020280fi
20281
20282
cristy3ed852e2009-09-05 21:47:34 +000020283
20284# Enable umem, object-caching memory allocation library.
20285
20286# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020287if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020288 withval=$with_umem; with_umem=$withval
20289else
20290 with_umem='no'
20291fi
20292
20293if test "$with_umem" != 'yes' ; then
20294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20295fi
20296
20297#
20298# Specify path to shared libstdc++ if not in normal location
20299#
20300
20301# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020302if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020303 withval=$with_libstdc; with_libstdc=$withval
20304else
20305 with_libstdc=''
20306fi
20307
20308
20309if test "$with_libstdc" != ''; then
20310 if test -d "$with_libstdc"; then
20311 LIBSTDCLDFLAGS="-L$with_libstdc"
20312 fi
20313fi
20314
20315
20316# Does gcc required -traditional?
20317if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020319$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020320if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020321 $as_echo_n "(cached) " >&6
20322else
20323 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020325/* end confdefs.h. */
20326#include <sgtty.h>
20327Autoconf TIOCGETP
20328_ACEOF
20329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020330 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020331 ac_cv_prog_gcc_traditional=yes
20332else
20333 ac_cv_prog_gcc_traditional=no
20334fi
20335rm -f conftest*
20336
20337
20338 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020340/* end confdefs.h. */
20341#include <termio.h>
20342Autoconf TCGETA
20343_ACEOF
20344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020345 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020346 ac_cv_prog_gcc_traditional=yes
20347fi
20348rm -f conftest*
20349
20350 fi
20351fi
cristy8b350f62009-11-15 23:12:43 +000020352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020353$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20354 if test $ac_cv_prog_gcc_traditional = yes; then
20355 CC="$CC -traditional"
20356 fi
20357fi
20358
20359
20360########
20361#
20362# Set defines required to build DLLs and modules using MinGW
20363#
20364########
20365# These options are set for multi-thread DLL module build
20366# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20367# module: _DLL
20368# executable/Magick++: _DLL _MAGICKMOD_
20369MODULE_EXTRA_CPPFLAGS=''
20370LIBRARY_EXTRA_CPPFLAGS=''
20371if test "${native_win32_build}" = 'yes'; then
20372 if test "${libtool_build_shared_libs}" = 'yes'; then
20373 CPPFLAGS="$CPPFLAGS -D_DLL"
20374 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20375 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20376 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377 if test "$with_modules" = 'yes'; then
20378 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20379 else
20380 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20381 fi
20382 else
20383 CPPFLAGS="$CPPFLAGS -D_LIB"
20384 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20385 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20386 fi
20387 if test "$with_threads" = 'yes'; then
20388 CPPFLAGS="$CPPFLAGS -D_MT"
20389 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20390 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20391 fi
20392fi
20393
20394
20395
20396# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020398$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020399if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020400 $as_echo_n "(cached) " >&6
20401else
cristy8b350f62009-11-15 23:12:43 +000020402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020403/* end confdefs.h. */
20404#include <stdlib.h>
20405#include <stdarg.h>
20406#include <string.h>
20407#include <float.h>
20408
20409int
20410main ()
20411{
20412
20413 ;
20414 return 0;
20415}
20416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020417if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020418 ac_cv_header_stdc=yes
20419else
cristy8b350f62009-11-15 23:12:43 +000020420 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020421fi
cristy3ed852e2009-09-05 21:47:34 +000020422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423
20424if test $ac_cv_header_stdc = yes; then
20425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020427/* end confdefs.h. */
20428#include <string.h>
20429
20430_ACEOF
20431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020432 $EGREP "memchr" >/dev/null 2>&1; then :
20433
cristy3ed852e2009-09-05 21:47:34 +000020434else
20435 ac_cv_header_stdc=no
20436fi
20437rm -f conftest*
20438
20439fi
20440
20441if test $ac_cv_header_stdc = yes; then
20442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020444/* end confdefs.h. */
20445#include <stdlib.h>
20446
20447_ACEOF
20448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020449 $EGREP "free" >/dev/null 2>&1; then :
20450
cristy3ed852e2009-09-05 21:47:34 +000020451else
20452 ac_cv_header_stdc=no
20453fi
20454rm -f conftest*
20455
20456fi
20457
20458if test $ac_cv_header_stdc = yes; then
20459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020460 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020461 :
20462else
cristy8b350f62009-11-15 23:12:43 +000020463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020464/* end confdefs.h. */
20465#include <ctype.h>
20466#include <stdlib.h>
20467#if ((' ' & 0x0FF) == 0x020)
20468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20470#else
20471# define ISLOWER(c) \
20472 (('a' <= (c) && (c) <= 'i') \
20473 || ('j' <= (c) && (c) <= 'r') \
20474 || ('s' <= (c) && (c) <= 'z'))
20475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20476#endif
20477
20478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20479int
20480main ()
20481{
20482 int i;
20483 for (i = 0; i < 256; i++)
20484 if (XOR (islower (i), ISLOWER (i))
20485 || toupper (i) != TOUPPER (i))
20486 return 2;
20487 return 0;
20488}
20489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020490if ac_fn_c_try_run "$LINENO"; then :
20491
cristy3ed852e2009-09-05 21:47:34 +000020492else
cristy8b350f62009-11-15 23:12:43 +000020493 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020494fi
cristy8b350f62009-11-15 23:12:43 +000020495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20496 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020497fi
20498
cristy3ed852e2009-09-05 21:47:34 +000020499fi
20500fi
cristy8b350f62009-11-15 23:12:43 +000020501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020502$as_echo "$ac_cv_header_stdc" >&6; }
20503if test $ac_cv_header_stdc = yes; then
20504
cristy8b350f62009-11-15 23:12:43 +000020505$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020506
20507fi
20508
20509if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020510 { $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 +000020511 header files. Compilation cannot proceed. Please install the ANSI C
20512 headers and rerun this script." >&5
20513$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20514 header files. Compilation cannot proceed. Please install the ANSI C
20515 headers and rerun this script." >&2;};
20516fi
cristya0b81c32010-01-22 02:54:33 +000020517
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20519$as_echo_n "checking whether to enable assertions... " >&6; }
20520 # Check whether --enable-assert was given.
20521if test "${enable_assert+set}" = set; then :
20522 enableval=$enable_assert; ac_enable_assert=$enableval
20523 if test "x$enableval" = xno; then :
20524
20525$as_echo "#define NDEBUG 1" >>confdefs.h
20526
20527elif test "x$enableval" != xyes; then :
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20529$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20530 ac_enable_assert=yes
20531fi
20532else
20533 ac_enable_assert=yes
20534fi
20535
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20537$as_echo "$ac_enable_assert" >&6; }
20538
cristy3ed852e2009-09-05 21:47:34 +000020539ac_header_dirent=no
20540for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20541 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020544if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020545 $as_echo_n "(cached) " >&6
20546else
cristy8b350f62009-11-15 23:12:43 +000020547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020548/* end confdefs.h. */
20549#include <sys/types.h>
20550#include <$ac_hdr>
20551
20552int
20553main ()
20554{
20555if ((DIR *) 0)
20556return 0;
20557 ;
20558 return 0;
20559}
20560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020562 eval "$as_ac_Header=yes"
20563else
cristy8b350f62009-11-15 23:12:43 +000020564 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020565fi
cristy3ed852e2009-09-05 21:47:34 +000020566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567fi
cristy8b350f62009-11-15 23:12:43 +000020568eval ac_res=\$$as_ac_Header
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020570$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020572 cat >>confdefs.h <<_ACEOF
20573#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20574_ACEOF
20575
20576ac_header_dirent=$ac_hdr; break
20577fi
20578
20579done
20580# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20581if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020583$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020584if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020585 $as_echo_n "(cached) " >&6
20586else
20587 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020589/* end confdefs.h. */
20590
20591/* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20594#ifdef __cplusplus
20595extern "C"
20596#endif
20597char opendir ();
20598int
20599main ()
20600{
20601return opendir ();
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606for ac_lib in '' dir; do
20607 if test -z "$ac_lib"; then
20608 ac_res="none required"
20609 else
20610 ac_res=-l$ac_lib
20611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20612 fi
cristy8b350f62009-11-15 23:12:43 +000020613 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020614 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020615fi
cristy8b350f62009-11-15 23:12:43 +000020616rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext
20618 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020619 break
20620fi
20621done
cristy8b350f62009-11-15 23:12:43 +000020622if test "${ac_cv_search_opendir+set}" = set; then :
20623
cristy3ed852e2009-09-05 21:47:34 +000020624else
20625 ac_cv_search_opendir=no
20626fi
20627rm conftest.$ac_ext
20628LIBS=$ac_func_search_save_LIBS
20629fi
cristy8b350f62009-11-15 23:12:43 +000020630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020631$as_echo "$ac_cv_search_opendir" >&6; }
20632ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020633if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20635
20636fi
20637
20638else
cristy8b350f62009-11-15 23:12:43 +000020639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020640$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020641if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020642 $as_echo_n "(cached) " >&6
20643else
20644 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020646/* end confdefs.h. */
20647
20648/* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20651#ifdef __cplusplus
20652extern "C"
20653#endif
20654char opendir ();
20655int
20656main ()
20657{
20658return opendir ();
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663for ac_lib in '' x; do
20664 if test -z "$ac_lib"; then
20665 ac_res="none required"
20666 else
20667 ac_res=-l$ac_lib
20668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20669 fi
cristy8b350f62009-11-15 23:12:43 +000020670 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020671 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020672fi
cristy8b350f62009-11-15 23:12:43 +000020673rm -f core conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext
20675 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020676 break
20677fi
20678done
cristy8b350f62009-11-15 23:12:43 +000020679if test "${ac_cv_search_opendir+set}" = set; then :
20680
cristy3ed852e2009-09-05 21:47:34 +000020681else
20682 ac_cv_search_opendir=no
20683fi
20684rm conftest.$ac_ext
20685LIBS=$ac_func_search_save_LIBS
20686fi
cristy8b350f62009-11-15 23:12:43 +000020687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020688$as_echo "$ac_cv_search_opendir" >&6; }
20689ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020690if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20692
20693fi
20694
20695fi
20696
20697
20698# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020699for 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 +000020700do :
20701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20702ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020704 cat >>confdefs.h <<_ACEOF
20705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706_ACEOF
20707
20708fi
20709
20710done
20711
20712
20713########
20714#
20715# Checks for typedefs, structures, and compiler characteristics.
20716#
20717########
20718
cristy8b350f62009-11-15 23:12:43 +000020719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020720$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020721if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020722 $as_echo_n "(cached) " >&6
20723else
cristy8b350f62009-11-15 23:12:43 +000020724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020725/* end confdefs.h. */
20726
20727#include <stdbool.h>
20728#ifndef bool
20729 "error: bool is not defined"
20730#endif
20731#ifndef false
20732 "error: false is not defined"
20733#endif
20734#if false
20735 "error: false is not 0"
20736#endif
20737#ifndef true
20738 "error: true is not defined"
20739#endif
20740#if true != 1
20741 "error: true is not 1"
20742#endif
20743#ifndef __bool_true_false_are_defined
20744 "error: __bool_true_false_are_defined is not defined"
20745#endif
20746
20747 struct s { _Bool s: 1; _Bool t; } s;
20748
20749 char a[true == 1 ? 1 : -1];
20750 char b[false == 0 ? 1 : -1];
20751 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20752 char d[(bool) 0.5 == true ? 1 : -1];
20753 bool e = &s;
20754 char f[(_Bool) 0.0 == false ? 1 : -1];
20755 char g[true];
20756 char h[sizeof (_Bool)];
20757 char i[sizeof s.t];
20758 enum { j = false, k = true, l = false * true, m = true * 256 };
20759 /* The following fails for
20760 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20761 _Bool n[m];
20762 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20763 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20764# if defined __xlc__ || defined __GNUC__
20765 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20766 reported by James Lemley on 2005-10-05; see
20767 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20768 This test is not quite right, since xlc is allowed to
20769 reject this program, as the initializer for xlcbug is
20770 not one of the forms that C requires support for.
20771 However, doing the test right would require a runtime
20772 test, and that would make cross-compilation harder.
20773 Let us hope that IBM fixes the xlc bug, and also adds
20774 support for this kind of constant expression. In the
20775 meantime, this test will reject xlc, which is OK, since
20776 our stdbool.h substitute should suffice. We also test
20777 this with GCC, where it should work, to detect more
20778 quickly whether someone messes up the test in the
20779 future. */
20780 char digs[] = "0123456789";
20781 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20782# endif
20783 /* Catch a bug in an HP-UX C compiler. See
20784 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20785 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20786 */
20787 _Bool q = true;
20788 _Bool *pq = &q;
20789
20790int
20791main ()
20792{
20793
20794 *pq |= q;
20795 *pq |= ! q;
20796 /* Refer to every declared value, to avoid compiler optimizations. */
20797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20798 + !m + !n + !o + !p + !q + !pq);
20799
20800 ;
20801 return 0;
20802}
20803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 ac_cv_header_stdbool_h=yes
20806else
cristy8b350f62009-11-15 23:12:43 +000020807 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020808fi
cristy3ed852e2009-09-05 21:47:34 +000020809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810fi
cristy8b350f62009-11-15 23:12:43 +000020811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020812$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020813ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20814if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020815
20816cat >>confdefs.h <<_ACEOF
20817#define HAVE__BOOL 1
20818_ACEOF
20819
20820
20821fi
20822
20823if test $ac_cv_header_stdbool_h = yes; then
20824
cristy8b350f62009-11-15 23:12:43 +000020825$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020826
20827fi
20828
cristy8b350f62009-11-15 23:12:43 +000020829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020830$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020831if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020832 $as_echo_n "(cached) " >&6
20833else
cristy8b350f62009-11-15 23:12:43 +000020834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020835/* end confdefs.h. */
20836
20837int
20838main ()
20839{
20840
20841volatile int x;
20842int * volatile y = (int *) 0;
20843return !x && !y;
20844 ;
20845 return 0;
20846}
20847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020849 ac_cv_c_volatile=yes
20850else
cristy8b350f62009-11-15 23:12:43 +000020851 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020852fi
cristy3ed852e2009-09-05 21:47:34 +000020853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854fi
cristy8b350f62009-11-15 23:12:43 +000020855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020856$as_echo "$ac_cv_c_volatile" >&6; }
20857if test $ac_cv_c_volatile = no; then
20858
cristy8b350f62009-11-15 23:12:43 +000020859$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020860
20861fi
20862
cristy8b350f62009-11-15 23:12:43 +000020863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020864$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020865if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 $as_echo_n "(cached) " >&6
20867else
cristy8b350f62009-11-15 23:12:43 +000020868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020869/* end confdefs.h. */
20870#define x(y) #y
20871
20872char *s = x(teststring);
20873_ACEOF
20874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020875 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 ac_cv_c_stringize=no
20877else
20878 ac_cv_c_stringize=yes
20879fi
20880rm -f conftest*
20881
20882fi
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo "$ac_cv_c_stringize" >&6; }
20885if test $ac_cv_c_stringize = yes; then
20886
cristy8b350f62009-11-15 23:12:43 +000020887$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020888
20889fi
20890
cristy8b350f62009-11-15 23:12:43 +000020891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020892$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020893if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020894 $as_echo_n "(cached) " >&6
20895else
cristy8b350f62009-11-15 23:12:43 +000020896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020897/* end confdefs.h. */
20898#include <sys/types.h>
20899#include <sys/stat.h>
20900
20901#if defined S_ISBLK && defined S_IFDIR
20902extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20903#endif
20904
20905#if defined S_ISBLK && defined S_IFCHR
20906extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20907#endif
20908
20909#if defined S_ISLNK && defined S_IFREG
20910extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20911#endif
20912
20913#if defined S_ISSOCK && defined S_IFREG
20914extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20915#endif
20916
20917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020918if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 ac_cv_header_stat_broken=no
20920else
cristy8b350f62009-11-15 23:12:43 +000020921 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020922fi
cristy3ed852e2009-09-05 21:47:34 +000020923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924fi
cristy8b350f62009-11-15 23:12:43 +000020925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020926$as_echo "$ac_cv_header_stat_broken" >&6; }
20927if test $ac_cv_header_stat_broken = yes; then
20928
cristy8b350f62009-11-15 23:12:43 +000020929$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020930
20931fi
20932
cristy8b350f62009-11-15 23:12:43 +000020933{ $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 +000020934$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020935if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020936 $as_echo_n "(cached) " >&6
20937else
cristy8b350f62009-11-15 23:12:43 +000020938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020939/* end confdefs.h. */
20940#include <sys/types.h>
20941#include <sys/time.h>
20942#include <time.h>
20943
20944int
20945main ()
20946{
20947if ((struct tm *) 0)
20948return 0;
20949 ;
20950 return 0;
20951}
20952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020954 ac_cv_header_time=yes
20955else
cristy8b350f62009-11-15 23:12:43 +000020956 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020957fi
cristy3ed852e2009-09-05 21:47:34 +000020958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959fi
cristy8b350f62009-11-15 23:12:43 +000020960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020961$as_echo "$ac_cv_header_time" >&6; }
20962if test $ac_cv_header_time = yes; then
20963
cristy8b350f62009-11-15 23:12:43 +000020964$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020965
20966fi
20967
cristy8b350f62009-11-15 23:12:43 +000020968{ $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 +000020969$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020970if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020971 $as_echo_n "(cached) " >&6
20972else
cristy8b350f62009-11-15 23:12:43 +000020973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020974/* end confdefs.h. */
20975#include <sys/types.h>
20976#include <time.h>
20977
20978int
20979main ()
20980{
20981struct tm tm;
20982 int *p = &tm.tm_sec;
20983 return !p;
20984 ;
20985 return 0;
20986}
20987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020989 ac_cv_struct_tm=time.h
20990else
cristy8b350f62009-11-15 23:12:43 +000020991 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020992fi
cristy3ed852e2009-09-05 21:47:34 +000020993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994fi
cristy8b350f62009-11-15 23:12:43 +000020995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020996$as_echo "$ac_cv_struct_tm" >&6; }
20997if test $ac_cv_struct_tm = sys/time.h; then
20998
cristy8b350f62009-11-15 23:12:43 +000020999$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021000
21001fi
21002
cristy92703d82010-04-26 00:18:18 +000021003ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21004#include <$ac_cv_struct_tm>
21005
21006"
21007if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21008
21009cat >>confdefs.h <<_ACEOF
21010#define HAVE_STRUCT_TM_TM_ZONE 1
21011_ACEOF
21012
21013
21014fi
21015
21016if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017
21018$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21019
21020else
21021 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21022"
21023if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21024 ac_have_decl=1
21025else
21026 ac_have_decl=0
21027fi
21028
21029cat >>confdefs.h <<_ACEOF
21030#define HAVE_DECL_TZNAME $ac_have_decl
21031_ACEOF
21032
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21034$as_echo_n "checking for tzname... " >&6; }
21035if test "${ac_cv_var_tzname+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21037else
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039/* end confdefs.h. */
21040#include <time.h>
21041#if !HAVE_DECL_TZNAME
21042extern char *tzname[];
21043#endif
21044
21045int
21046main ()
21047{
21048return tzname[0][0];
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_link "$LINENO"; then :
21054 ac_cv_var_tzname=yes
21055else
21056 ac_cv_var_tzname=no
21057fi
21058rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060fi
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21062$as_echo "$ac_cv_var_tzname" >&6; }
21063 if test $ac_cv_var_tzname = yes; then
21064
21065$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21066
21067 fi
21068fi
21069
cristy8b350f62009-11-15 23:12:43 +000021070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021071$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021072if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 $as_echo_n "(cached) " >&6
21074else
21075 echo '#! /bin/cat
21076exit 69
21077' >conftest
21078chmod u+x conftest
21079(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21080if test $? -ne 69; then
21081 ac_cv_sys_interpreter=yes
21082else
21083 ac_cv_sys_interpreter=no
21084fi
21085rm -f conftest
21086fi
cristy8b350f62009-11-15 23:12:43 +000021087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021088$as_echo "$ac_cv_sys_interpreter" >&6; }
21089interpval=$ac_cv_sys_interpreter
21090
21091
cristy3ed852e2009-09-05 21:47:34 +000021092# If the C compiler supports the keyword inline, do nothing. Otherwise
21093# define inline to __inline__ or __inline if it accepts one of those,
21094# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021097if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021098 $as_echo_n "(cached) " >&6
21099else
21100 ac_cv_c_inline=no
21101for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021103/* end confdefs.h. */
21104#ifndef __cplusplus
21105typedef int foo_t;
21106static $ac_kw foo_t static_foo () {return 0; }
21107$ac_kw foo_t foo () {return 0; }
21108#endif
21109
21110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021111if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021113fi
cristy3ed852e2009-09-05 21:47:34 +000021114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 test "$ac_cv_c_inline" != no && break
21116done
21117
21118fi
cristy8b350f62009-11-15 23:12:43 +000021119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021120$as_echo "$ac_cv_c_inline" >&6; }
21121
cristy3ed852e2009-09-05 21:47:34 +000021122case $ac_cv_c_inline in
21123 inline | yes) ;;
21124 *)
21125 case $ac_cv_c_inline in
21126 no) ac_val=;;
21127 *) ac_val=$ac_cv_c_inline;;
21128 esac
21129 cat >>confdefs.h <<_ACEOF
21130#ifndef __cplusplus
21131#define inline $ac_val
21132#endif
21133_ACEOF
21134 ;;
21135esac
21136
21137
21138# If the C compiler supports the keyword restrict, do nothing. Otherwise
21139# define restrict to __restrict__ or __restrict if it accepts one of those,
21140# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021142$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021143if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 $as_echo_n "(cached) " >&6
21145else
21146 ac_cv_c_restrict=no
21147 # The order here caters to the fact that C++ does not require restrict.
21148 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021150/* end confdefs.h. */
21151typedef int * int_ptr;
21152 int foo (int_ptr $ac_kw ip) {
21153 return ip[0];
21154 }
21155int
21156main ()
21157{
21158int s[1];
21159 int * $ac_kw t = s;
21160 t[0] = 0;
21161 return foo(t)
21162 ;
21163 return 0;
21164}
21165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021167 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021168fi
cristy3ed852e2009-09-05 21:47:34 +000021169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170 test "$ac_cv_c_restrict" != no && break
21171 done
21172
21173fi
cristy8b350f62009-11-15 23:12:43 +000021174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021175$as_echo "$ac_cv_c_restrict" >&6; }
21176
cristy3ed852e2009-09-05 21:47:34 +000021177 case $ac_cv_c_restrict in
21178 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021179 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021180 ;;
21181 *) cat >>confdefs.h <<_ACEOF
21182#define restrict $ac_cv_c_restrict
21183_ACEOF
21184 ;;
21185 esac
21186
21187
21188# If words are stored with the most significant byte first (like
21189# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021192if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 $as_echo_n "(cached) " >&6
21194else
21195 ac_cv_c_bigendian=unknown
21196 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021198/* end confdefs.h. */
21199#ifndef __APPLE_CC__
21200 not a universal capable compiler
21201 #endif
21202 typedef int dummy;
21203
21204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021206
21207 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021208 # there are at least two -arch flags with different values.
21209 ac_arch=
21210 ac_prev=
21211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21212 if test -n "$ac_prev"; then
21213 case $ac_word in
21214 i?86 | x86_64 | ppc | ppc64)
21215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21216 ac_arch=$ac_word
21217 else
21218 ac_cv_c_bigendian=universal
21219 break
21220 fi
21221 ;;
21222 esac
21223 ac_prev=
21224 elif test "x$ac_word" = "x-arch"; then
21225 ac_prev=arch
21226 fi
21227 done
cristy3ed852e2009-09-05 21:47:34 +000021228fi
cristy3ed852e2009-09-05 21:47:34 +000021229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 if test $ac_cv_c_bigendian = unknown; then
21231 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021233/* end confdefs.h. */
21234#include <sys/types.h>
21235 #include <sys/param.h>
21236
21237int
21238main ()
21239{
21240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21242 && LITTLE_ENDIAN)
21243 bogus endian macros
21244 #endif
21245
21246 ;
21247 return 0;
21248}
21249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021253/* end confdefs.h. */
21254#include <sys/types.h>
21255 #include <sys/param.h>
21256
21257int
21258main ()
21259{
21260#if BYTE_ORDER != BIG_ENDIAN
21261 not big endian
21262 #endif
21263
21264 ;
21265 return 0;
21266}
21267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_c_bigendian=yes
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021272fi
cristy3ed852e2009-09-05 21:47:34 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021274fi
cristy3ed852e2009-09-05 21:47:34 +000021275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277 if test $ac_cv_c_bigendian = unknown; then
21278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280/* end confdefs.h. */
21281#include <limits.h>
21282
21283int
21284main ()
21285{
21286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21287 bogus endian macros
21288 #endif
21289
21290 ;
21291 return 0;
21292}
21293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021297/* end confdefs.h. */
21298#include <limits.h>
21299
21300int
21301main ()
21302{
21303#ifndef _BIG_ENDIAN
21304 not big endian
21305 #endif
21306
21307 ;
21308 return 0;
21309}
21310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 ac_cv_c_bigendian=yes
21313else
cristy8b350f62009-11-15 23:12:43 +000021314 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021315fi
cristy3ed852e2009-09-05 21:47:34 +000021316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021317fi
cristy3ed852e2009-09-05 21:47:34 +000021318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 if test $ac_cv_c_bigendian = unknown; then
21321 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021322 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021325/* end confdefs.h. */
21326short int ascii_mm[] =
21327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21328 short int ascii_ii[] =
21329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21330 int use_ascii (int i) {
21331 return ascii_mm[i] + ascii_ii[i];
21332 }
21333 short int ebcdic_ii[] =
21334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21335 short int ebcdic_mm[] =
21336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21337 int use_ebcdic (int i) {
21338 return ebcdic_mm[i] + ebcdic_ii[i];
21339 }
21340 extern int foo;
21341
21342int
21343main ()
21344{
21345return use_ascii (foo) == use_ebcdic (foo);
21346 ;
21347 return 0;
21348}
21349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21352 ac_cv_c_bigendian=yes
21353 fi
21354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21355 if test "$ac_cv_c_bigendian" = unknown; then
21356 ac_cv_c_bigendian=no
21357 else
21358 # finding both strings is unlikely to happen, but who knows?
21359 ac_cv_c_bigendian=unknown
21360 fi
21361 fi
cristy3ed852e2009-09-05 21:47:34 +000021362fi
cristy3ed852e2009-09-05 21:47:34 +000021363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364else
cristy8b350f62009-11-15 23:12:43 +000021365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021366/* end confdefs.h. */
21367$ac_includes_default
21368int
21369main ()
21370{
21371
21372 /* Are we little or big endian? From Harbison&Steele. */
21373 union
21374 {
21375 long int l;
21376 char c[sizeof (long int)];
21377 } u;
21378 u.l = 1;
21379 return u.c[sizeof (long int) - 1] == 1;
21380
21381 ;
21382 return 0;
21383}
21384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021385if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 ac_cv_c_bigendian=no
21387else
cristy8b350f62009-11-15 23:12:43 +000021388 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021389fi
cristy8b350f62009-11-15 23:12:43 +000021390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021392fi
21393
cristy3ed852e2009-09-05 21:47:34 +000021394 fi
21395fi
cristy8b350f62009-11-15 23:12:43 +000021396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021397$as_echo "$ac_cv_c_bigendian" >&6; }
21398 case $ac_cv_c_bigendian in #(
21399 yes)
cristy8b350f62009-11-15 23:12:43 +000021400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021401;; #(
21402 no)
21403 ;; #(
21404 universal)
21405
cristy8b350f62009-11-15 23:12:43 +000021406$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021407
21408 ;; #(
21409 *)
cristyfd9dcd42010-08-08 18:07:02 +000021410 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021412 esac
21413
21414
21415# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021416ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21417if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021418
cristy3ed852e2009-09-05 21:47:34 +000021419else
21420
21421cat >>confdefs.h <<_ACEOF
21422#define mode_t int
21423_ACEOF
21424
21425fi
21426
21427
21428# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021429ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21430if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021431
cristy3ed852e2009-09-05 21:47:34 +000021432else
21433
21434cat >>confdefs.h <<_ACEOF
21435#define off_t long int
21436_ACEOF
21437
21438fi
21439
21440
21441# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021442ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21443if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021444
cristy3ed852e2009-09-05 21:47:34 +000021445else
21446
21447cat >>confdefs.h <<_ACEOF
21448#define pid_t int
21449_ACEOF
21450
21451fi
21452
21453
21454# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021455ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21456if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021457
cristy3ed852e2009-09-05 21:47:34 +000021458else
21459
21460cat >>confdefs.h <<_ACEOF
21461#define size_t unsigned int
21462_ACEOF
21463
21464fi
21465
21466
21467# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021468ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21469if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021470
cristy3ed852e2009-09-05 21:47:34 +000021471else
21472
21473cat >>confdefs.h <<_ACEOF
21474#define ssize_t int
21475_ACEOF
21476
21477fi
21478
21479
21480# If the C compiler supports a working long double type with more range
21481# or precision than the double type, define HAVE_LONG_DOUBLE.
21482
cristy8b350f62009-11-15 23:12:43 +000021483 { $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 +000021484$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021485if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 $as_echo_n "(cached) " >&6
21487else
cristy8b350f62009-11-15 23:12:43 +000021488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489/* end confdefs.h. */
21490#include <float.h>
21491 long double const a[] =
21492 {
21493 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21494 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21495 };
21496 long double
21497 f (long double x)
21498 {
21499 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21500 + (x ? f (x) : 'c'));
21501 }
21502
21503int
21504main ()
21505{
21506static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21507 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21508 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21509 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21510 && (int) LDBL_EPSILON == 0
21511 )];
21512test_array [0] = 0
21513
21514 ;
21515 return 0;
21516}
21517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021518if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 ac_cv_type_long_double_wider=yes
21520else
cristy8b350f62009-11-15 23:12:43 +000021521 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021522fi
cristy3ed852e2009-09-05 21:47:34 +000021523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_type_long_double_wider" >&6; }
21527 if test $ac_cv_type_long_double_wider = yes; then
21528
cristy8b350f62009-11-15 23:12:43 +000021529$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531 fi
21532
21533
21534# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21535# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021538if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 $as_echo_n "(cached) " >&6
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543$ac_includes_default
21544int
21545main ()
21546{
21547static int test_array [1 - 2 * !(((char) -1) < 0)];
21548test_array [0] = 0
21549
21550 ;
21551 return 0;
21552}
21553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021554if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 ac_cv_c_char_unsigned=no
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy3ed852e2009-09-05 21:47:34 +000021559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560fi
cristy8b350f62009-11-15 23:12:43 +000021561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo "$ac_cv_c_char_unsigned" >&6; }
21563if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021564 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021565
21566fi
21567
21568
21569# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21570# The cast to long int works around a bug in the HP C Compiler
21571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21573# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021576if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 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 +000021580
cristy3ed852e2009-09-05 21:47:34 +000021581else
cristy8b350f62009-11-15 23:12:43 +000021582 if test "$ac_cv_type_signed_short" = yes; then
21583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021585as_fn_error 77 "cannot compute sizeof (signed short)
21586See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021587 else
21588 ac_cv_sizeof_signed_short=0
21589 fi
21590fi
cristy8b350f62009-11-15 23:12:43 +000021591
cristy3ed852e2009-09-05 21:47:34 +000021592fi
cristy8b350f62009-11-15 23:12:43 +000021593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21595
21596
21597
21598cat >>confdefs.h <<_ACEOF
21599#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21600_ACEOF
21601
21602
21603
21604# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21605# The cast to long int works around a bug in the HP C Compiler
21606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21608# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021610$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021611if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 $as_echo_n "(cached) " >&6
21613else
cristy8b350f62009-11-15 23:12:43 +000021614 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 +000021615
cristy3ed852e2009-09-05 21:47:34 +000021616else
cristy8b350f62009-11-15 23:12:43 +000021617 if test "$ac_cv_type_unsigned_short" = yes; then
21618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021620as_fn_error 77 "cannot compute sizeof (unsigned short)
21621See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021622 else
21623 ac_cv_sizeof_unsigned_short=0
21624 fi
21625fi
cristy8b350f62009-11-15 23:12:43 +000021626
cristy3ed852e2009-09-05 21:47:34 +000021627fi
cristy8b350f62009-11-15 23:12:43 +000021628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021629$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21630
21631
21632
21633cat >>confdefs.h <<_ACEOF
21634#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21635_ACEOF
21636
21637
21638
21639# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21640# The cast to long int works around a bug in the HP C Compiler
21641# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21642# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21643# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021646if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 $as_echo_n "(cached) " >&6
21648else
cristy8b350f62009-11-15 23:12:43 +000021649 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 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651else
cristy8b350f62009-11-15 23:12:43 +000021652 if test "$ac_cv_type_signed_int" = yes; then
21653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021655as_fn_error 77 "cannot compute sizeof (signed int)
21656See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021657 else
21658 ac_cv_sizeof_signed_int=0
21659 fi
21660fi
cristy8b350f62009-11-15 23:12:43 +000021661
cristy3ed852e2009-09-05 21:47:34 +000021662fi
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21665
21666
21667
21668cat >>confdefs.h <<_ACEOF
21669#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21670_ACEOF
21671
21672
21673
21674# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21675# The cast to long int works around a bug in the HP C Compiler
21676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21678# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021680$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021681if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 $as_echo_n "(cached) " >&6
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 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 +000021685
cristy3ed852e2009-09-05 21:47:34 +000021686else
cristy8b350f62009-11-15 23:12:43 +000021687 if test "$ac_cv_type_unsigned_int" = yes; then
21688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021690as_fn_error 77 "cannot compute sizeof (unsigned int)
21691See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021692 else
21693 ac_cv_sizeof_unsigned_int=0
21694 fi
21695fi
cristy8b350f62009-11-15 23:12:43 +000021696
cristy3ed852e2009-09-05 21:47:34 +000021697fi
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21700
21701
21702
21703cat >>confdefs.h <<_ACEOF
21704#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21705_ACEOF
21706
21707
21708
21709# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21710# The cast to long int works around a bug in the HP C Compiler
21711# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021715$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021716if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 $as_echo_n "(cached) " >&6
21718else
cristy8b350f62009-11-15 23:12:43 +000021719 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 +000021720
cristy3ed852e2009-09-05 21:47:34 +000021721else
cristy8b350f62009-11-15 23:12:43 +000021722 if test "$ac_cv_type_signed_long" = yes; then
21723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021725as_fn_error 77 "cannot compute sizeof (signed long)
21726See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021727 else
21728 ac_cv_sizeof_signed_long=0
21729 fi
21730fi
cristy8b350f62009-11-15 23:12:43 +000021731
cristy3ed852e2009-09-05 21:47:34 +000021732fi
cristy8b350f62009-11-15 23:12:43 +000021733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21735
21736
21737
21738cat >>confdefs.h <<_ACEOF
21739#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21740_ACEOF
21741
21742
21743
21744# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21745# The cast to long int works around a bug in the HP C Compiler
21746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21748# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021750$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021751if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 $as_echo_n "(cached) " >&6
21753else
cristy8b350f62009-11-15 23:12:43 +000021754 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 +000021755
cristy3ed852e2009-09-05 21:47:34 +000021756else
cristy8b350f62009-11-15 23:12:43 +000021757 if test "$ac_cv_type_unsigned_long" = yes; then
21758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021760as_fn_error 77 "cannot compute sizeof (unsigned long)
21761See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021762 else
21763 ac_cv_sizeof_unsigned_long=0
21764 fi
21765fi
cristy8b350f62009-11-15 23:12:43 +000021766
cristy3ed852e2009-09-05 21:47:34 +000021767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21770
21771
21772
21773cat >>confdefs.h <<_ACEOF
21774#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21775_ACEOF
21776
21777
21778
21779# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21780# 'signed long long' is not supported then the value defined is zero.
21781# The cast to long int works around a bug in the HP C Compiler
21782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21784# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021787if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021788 $as_echo_n "(cached) " >&6
21789else
cristy8b350f62009-11-15 23:12:43 +000021790 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 +000021791
cristy3ed852e2009-09-05 21:47:34 +000021792else
cristy8b350f62009-11-15 23:12:43 +000021793 if test "$ac_cv_type_signed_long_long" = yes; then
21794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021796as_fn_error 77 "cannot compute sizeof (signed long long)
21797See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021798 else
21799 ac_cv_sizeof_signed_long_long=0
21800 fi
21801fi
cristy8b350f62009-11-15 23:12:43 +000021802
cristy3ed852e2009-09-05 21:47:34 +000021803fi
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21806
21807
21808
21809cat >>confdefs.h <<_ACEOF
21810#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21811_ACEOF
21812
21813
21814
21815# Obtain size of a 'unsigned long long' and define as
21816# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21817# supported then the value defined is zero.
21818# The cast to long int works around a bug in the HP C Compiler
21819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021824if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 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 +000021828
cristy3ed852e2009-09-05 21:47:34 +000021829else
cristy8b350f62009-11-15 23:12:43 +000021830 if test "$ac_cv_type_unsigned_long_long" = yes; then
21831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021833as_fn_error 77 "cannot compute sizeof (unsigned long long)
21834See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021835 else
21836 ac_cv_sizeof_unsigned_long_long=0
21837 fi
21838fi
cristy8b350f62009-11-15 23:12:43 +000021839
cristy3ed852e2009-09-05 21:47:34 +000021840fi
cristy8b350f62009-11-15 23:12:43 +000021841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021842$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21843
21844
21845
21846cat >>confdefs.h <<_ACEOF
21847#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21848_ACEOF
21849
21850
21851
21852# Obtain size of off_t and define as SIZEOF_OFF_T
21853# The cast to long int works around a bug in the HP C Compiler
21854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21856# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021858$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021859if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 $as_echo_n "(cached) " >&6
21861else
cristy8b350f62009-11-15 23:12:43 +000021862 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 +000021863
cristy3ed852e2009-09-05 21:47:34 +000021864else
cristy8b350f62009-11-15 23:12:43 +000021865 if test "$ac_cv_type_off_t" = yes; then
21866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021868as_fn_error 77 "cannot compute sizeof (off_t)
21869See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021870 else
21871 ac_cv_sizeof_off_t=0
21872 fi
21873fi
cristy8b350f62009-11-15 23:12:43 +000021874
cristy3ed852e2009-09-05 21:47:34 +000021875fi
cristy8b350f62009-11-15 23:12:43 +000021876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021877$as_echo "$ac_cv_sizeof_off_t" >&6; }
21878
21879
21880
21881cat >>confdefs.h <<_ACEOF
21882#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21883_ACEOF
21884
21885
21886
21887# Obtain size of size_t and define as SIZEOF_SIZE_T
21888# The cast to long int works around a bug in the HP C Compiler
21889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21891# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021893$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021894if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 $as_echo_n "(cached) " >&6
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 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 +000021898
cristy3ed852e2009-09-05 21:47:34 +000021899else
cristy8b350f62009-11-15 23:12:43 +000021900 if test "$ac_cv_type_size_t" = yes; then
21901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021903as_fn_error 77 "cannot compute sizeof (size_t)
21904See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021905 else
21906 ac_cv_sizeof_size_t=0
21907 fi
21908fi
cristy8b350f62009-11-15 23:12:43 +000021909
cristy3ed852e2009-09-05 21:47:34 +000021910fi
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$ac_cv_sizeof_size_t" >&6; }
21913
21914
21915
21916cat >>confdefs.h <<_ACEOF
21917#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21918_ACEOF
21919
21920
21921
cristy330e9352010-06-01 18:42:49 +000021922# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21923# The cast to long int works around a bug in the HP C Compiler
21924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21926# This bug is HP SR number 8606223364.
21927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21928$as_echo_n "checking size of ssize_t... " >&6; }
21929if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21931else
21932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21933
21934else
21935 if test "$ac_cv_type_ssize_t" = yes; then
21936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021938as_fn_error 77 "cannot compute sizeof (ssize_t)
21939See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021940 else
21941 ac_cv_sizeof_ssize_t=0
21942 fi
21943fi
21944
21945fi
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21947$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21948
21949
21950
21951cat >>confdefs.h <<_ACEOF
21952#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21953_ACEOF
21954
21955
21956
cristy3ed852e2009-09-05 21:47:34 +000021957# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21958# The cast to long int works around a bug in the HP C Compiler
21959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21961# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021963$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021964if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 $as_echo_n "(cached) " >&6
21966else
cristy8b350f62009-11-15 23:12:43 +000021967 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 +000021968
cristy3ed852e2009-09-05 21:47:34 +000021969else
cristy8b350f62009-11-15 23:12:43 +000021970 if test "$ac_cv_type_unsigned_intp" = yes; then
21971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021973as_fn_error 77 "cannot compute sizeof (unsigned int*)
21974See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021975 else
21976 ac_cv_sizeof_unsigned_intp=0
21977 fi
21978fi
cristy8b350f62009-11-15 23:12:43 +000021979
cristy3ed852e2009-09-05 21:47:34 +000021980fi
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21983
21984
21985
21986cat >>confdefs.h <<_ACEOF
21987#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21988_ACEOF
21989
21990
21991
21992#
21993# Compute sized types for current CPU and compiler options.
21994#
21995
cristy8b350f62009-11-15 23:12:43 +000021996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo_n "checking for signed 8-bit type... " >&6; }
21998INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$INT8_T" >&6; }
22001
22002
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22005UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo "$UINT8_T" >&6; }
22008
22009
cristy8b350f62009-11-15 23:12:43 +000022010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo_n "checking for signed 16-bit type... " >&6; }
22012INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo "$INT16_T" >&6; }
22015
22016
cristy8b350f62009-11-15 23:12:43 +000022017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22019UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$UINT16_T" >&6; }
22022
22023
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking for signed 32-bit type... " >&6; }
22026INT32_T='none'
22027if test $ac_cv_sizeof_signed_int -eq 4; then
22028 INT32_T='signed int'
22029elif test $ac_cv_sizeof_signed_long -eq 4; then
22030 INT32_T='signed long'
22031fi
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$INT32_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22038UINT32_T='none'
22039if test $ac_cv_sizeof_unsigned_int -eq 4; then
22040 UINT32_T='unsigned int'
22041elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22042 UINT32_T='unsigned long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$UINT32_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for signed 64-bit type... " >&6; }
22050INT64_T='none'
22051if test $ac_cv_sizeof_signed_long -eq 8; then
22052 INT64_T='signed long'
22053elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22054 INT64_T='signed long long'
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$INT64_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22062UINT64_T='none'
22063if test $ac_cv_sizeof_unsigned_long -eq 8; then
22064 UINT64_T='unsigned long'
22065elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22066 UINT64_T='unsigned long long'
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$UINT64_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for unsigned maximum type... " >&6; }
22074UINTMAX_T='none'
22075if test "$UINT64_T" != 'none'; then
22076 UINTMAX_T=$UINT64_T
22077elif test "$UINT32_T" != 'none'; then
22078 UINTMAX_T=$UINT32_T
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$UINTMAX_T" >&6; }
22082
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking for pointer difference type... " >&6; }
22086UINTPTR_T='none'
22087if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22088 UINTPTR_T='unsigned long'
22089elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22090 UINTPTR_T='unsigned long long'
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$UINTPTR_T" >&6; }
22094
22095
cristy8b350f62009-11-15 23:12:43 +000022096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022097$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022099/* end confdefs.h. */
22100
22101int
22102main ()
22103{
22104{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22105 ;
22106 return 0;
22107}
22108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022109if ac_fn_c_try_compile "$LINENO"; then :
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo "yes" >&6; }
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022116$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022118/* end confdefs.h. */
22119
22120int
22121main ()
22122{
22123{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22124 ;
22125 return 0;
22126}
22127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022128if ac_fn_c_try_compile "$LINENO"; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo "yes" >&6; }
22131
cristy8b350f62009-11-15 23:12:43 +000022132$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022133
22134else
cristy8b350f62009-11-15 23:12:43 +000022135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo "no" >&6; }
22137
cristy8b350f62009-11-15 23:12:43 +000022138$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022139
22140fi
cristy3ed852e2009-09-05 21:47:34 +000022141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142fi
cristy3ed852e2009-09-05 21:47:34 +000022143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144
22145########
22146#
22147# Check for functions
22148#
22149########
cristy3ed852e2009-09-05 21:47:34 +000022150for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022151do :
22152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22153ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 cat >>confdefs.h <<_ACEOF
22156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157_ACEOF
22158
22159fi
22160
22161done
22162
cristy3ed852e2009-09-05 21:47:34 +000022163for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022164do :
22165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22166if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022167 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022168#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022169_ACEOF
22170
22171fi
22172done
22173
cristy8b350f62009-11-15 23:12:43 +000022174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022176if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022177 $as_echo_n "(cached) " >&6
22178else
cristy8b350f62009-11-15 23:12:43 +000022179 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022180 magick_cv_func_mmap_fileio=no
22181else
cristy8b350f62009-11-15 23:12:43 +000022182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022183/* end confdefs.h. */
22184$ac_includes_default
22185/* malloc might have been renamed as rpl_malloc. */
22186#undef malloc
22187
22188/*
22189 This test is derived from GNU Autoconf's similar macro.
22190 The purpose of this test is to verify that files may be memory
22191 mapped, and that memory mapping and file I/O are coherent.
22192
22193 The test creates a test file, memory maps the file, updates
22194 the file using the memory map, and then reads the file using
22195 file I/O to verify that the file contains the updates.
22196*/
22197
22198#include <fcntl.h>
22199#include <sys/mman.h>
22200
22201#if !STDC_HEADERS && !HAVE_STDLIB_H
22202char *malloc ();
22203#endif
22204
22205/* This mess was copied from the GNU getpagesize.h. */
22206#if !HAVE_GETPAGESIZE
22207/* Assume that all systems that can run configure have sys/param.h. */
22208# if !HAVE_SYS_PARAM_H
22209# define HAVE_SYS_PARAM_H 1
22210# endif
22211
22212# ifdef _SC_PAGESIZE
22213# define getpagesize() sysconf(_SC_PAGESIZE)
22214# else /* no _SC_PAGESIZE */
22215# if HAVE_SYS_PARAM_H
22216# include <sys/param.h>
22217# ifdef EXEC_PAGESIZE
22218# define getpagesize() EXEC_PAGESIZE
22219# else /* no EXEC_PAGESIZE */
22220# ifdef NBPG
22221# define getpagesize() NBPG * CLSIZE
22222# ifndef CLSIZE
22223# define CLSIZE 1
22224# endif /* no CLSIZE */
22225# else /* no NBPG */
22226# ifdef NBPC
22227# define getpagesize() NBPC
22228# else /* no NBPC */
22229# ifdef PAGESIZE
22230# define getpagesize() PAGESIZE
22231# endif /* PAGESIZE */
22232# endif /* no NBPC */
22233# endif /* no NBPG */
22234# endif /* no EXEC_PAGESIZE */
22235# else /* no HAVE_SYS_PARAM_H */
22236# define getpagesize() 8192 /* punt totally */
22237# endif /* no HAVE_SYS_PARAM_H */
22238# endif /* no _SC_PAGESIZE */
22239
22240#endif /* no HAVE_GETPAGESIZE */
22241
22242int
22243main ()
22244{
22245 char *data, *data2, *data3;
22246 int i, pagesize;
22247 int fd;
22248
22249 pagesize = getpagesize ();
22250
22251 /* First, make a file with some known garbage in it. */
22252 data = (char *) malloc (pagesize);
22253 if (!data)
22254 exit (1);
22255 for (i = 0; i < pagesize; ++i)
22256 *(data + i) = rand ();
22257 umask (0);
22258 fd = creat ("conftest.mmap", 0600);
22259 if (fd < 0)
22260 exit (1);
22261 if (write (fd, data, pagesize) != pagesize)
22262 exit (1);
22263 close (fd);
22264
22265 /* Mmap the file as read/write/shared and verify that we see the
22266 same garbage. */
22267 fd = open ("conftest.mmap", O_RDWR);
22268 if (fd < 0)
22269 exit (1);
22270 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22271 if (data2 == 0)
22272 exit (1);
22273 for (i = 0; i < pagesize; ++i)
22274 if (*(data + i) != *(data2 + i))
22275 exit (1);
22276
22277 /* Finally, make sure that changes to the mapped area
22278 percolate back to the file as seen by read(). */
22279 for (i = 0; i < pagesize; ++i)
22280 *(data2 + i) = *(data2 + i) + 1;
22281 data3 = (char *) malloc (pagesize);
22282 if (!data3)
22283 exit (1);
22284 if (read (fd, data3, pagesize) != pagesize)
22285 exit (1);
22286 for (i = 0; i < pagesize; ++i)
22287 if (*(data2 + i) != *(data3 + i))
22288 exit (1);
22289 close (fd);
22290 exit (0);
22291}
22292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022293if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 magick_cv_func_mmap_fileio=yes
22295else
cristy8b350f62009-11-15 23:12:43 +000022296 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022297fi
cristy8b350f62009-11-15 23:12:43 +000022298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22299 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022300fi
22301
cristy3ed852e2009-09-05 21:47:34 +000022302fi
cristy8b350f62009-11-15 23:12:43 +000022303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22305if test $magick_cv_func_mmap_fileio = yes; then
22306
cristy8b350f62009-11-15 23:12:43 +000022307$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022308
22309fi
22310rm -f conftest.mmap
22311
cristy8b350f62009-11-15 23:12:43 +000022312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022313$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022314if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 $as_echo_n "(cached) " >&6
22316else
cristy8b350f62009-11-15 23:12:43 +000022317 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 ac_cv_func_closedir_void=yes
22319else
cristy8b350f62009-11-15 23:12:43 +000022320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022321/* end confdefs.h. */
22322$ac_includes_default
22323#include <$ac_header_dirent>
22324#ifndef __cplusplus
22325int closedir ();
22326#endif
22327
22328int
22329main ()
22330{
22331return closedir (opendir (".")) != 0;
22332 ;
22333 return 0;
22334}
22335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022336if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022337 ac_cv_func_closedir_void=no
22338else
cristy8b350f62009-11-15 23:12:43 +000022339 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022340fi
cristy8b350f62009-11-15 23:12:43 +000022341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022343fi
22344
cristy3ed852e2009-09-05 21:47:34 +000022345fi
cristy8b350f62009-11-15 23:12:43 +000022346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022347$as_echo "$ac_cv_func_closedir_void" >&6; }
22348if test $ac_cv_func_closedir_void = yes; then
22349
cristy8b350f62009-11-15 23:12:43 +000022350$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022351
22352fi
22353
cristycd4c5312009-11-22 01:19:08 +000022354
22355
22356
22357 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022358do :
22359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022360ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22361"
cristyfd9dcd42010-08-08 18:07:02 +000022362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 cat >>confdefs.h <<_ACEOF
22364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22365_ACEOF
22366
22367fi
22368
22369done
22370
cristycd4c5312009-11-22 01:19:08 +000022371
22372
22373
22374
22375
22376
22377
cristy3ed852e2009-09-05 21:47:34 +000022378for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022379do :
22380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22381if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022383#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022384_ACEOF
22385
22386fi
22387done
22388
cristy8b350f62009-11-15 23:12:43 +000022389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022390$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022391if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 $as_echo_n "(cached) " >&6
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 ac_cv_func_mmap_fixed_mapped=no
22396else
cristy8b350f62009-11-15 23:12:43 +000022397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022398/* end confdefs.h. */
22399$ac_includes_default
22400/* malloc might have been renamed as rpl_malloc. */
22401#undef malloc
22402
22403/* Thanks to Mike Haertel and Jim Avera for this test.
22404 Here is a matrix of mmap possibilities:
22405 mmap private not fixed
22406 mmap private fixed at somewhere currently unmapped
22407 mmap private fixed at somewhere already mapped
22408 mmap shared not fixed
22409 mmap shared fixed at somewhere currently unmapped
22410 mmap shared fixed at somewhere already mapped
22411 For private mappings, we should verify that changes cannot be read()
22412 back from the file, nor mmap's back from the file at a different
22413 address. (There have been systems where private was not correctly
22414 implemented like the infamous i386 svr4.0, and systems where the
22415 VM page cache was not coherent with the file system buffer cache
22416 like early versions of FreeBSD and possibly contemporary NetBSD.)
22417 For shared mappings, we should conversely verify that changes get
22418 propagated back to all the places they're supposed to be.
22419
22420 Grep wants private fixed already mapped.
22421 The main things grep needs to know about mmap are:
22422 * does it exist and is it safe to write into the mmap'd area
22423 * how to use it (BSD variants) */
22424
22425#include <fcntl.h>
22426#include <sys/mman.h>
22427
22428#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22429char *malloc ();
22430#endif
22431
22432/* This mess was copied from the GNU getpagesize.h. */
22433#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022434# ifdef _SC_PAGESIZE
22435# define getpagesize() sysconf(_SC_PAGESIZE)
22436# else /* no _SC_PAGESIZE */
22437# ifdef HAVE_SYS_PARAM_H
22438# include <sys/param.h>
22439# ifdef EXEC_PAGESIZE
22440# define getpagesize() EXEC_PAGESIZE
22441# else /* no EXEC_PAGESIZE */
22442# ifdef NBPG
22443# define getpagesize() NBPG * CLSIZE
22444# ifndef CLSIZE
22445# define CLSIZE 1
22446# endif /* no CLSIZE */
22447# else /* no NBPG */
22448# ifdef NBPC
22449# define getpagesize() NBPC
22450# else /* no NBPC */
22451# ifdef PAGESIZE
22452# define getpagesize() PAGESIZE
22453# endif /* PAGESIZE */
22454# endif /* no NBPC */
22455# endif /* no NBPG */
22456# endif /* no EXEC_PAGESIZE */
22457# else /* no HAVE_SYS_PARAM_H */
22458# define getpagesize() 8192 /* punt totally */
22459# endif /* no HAVE_SYS_PARAM_H */
22460# endif /* no _SC_PAGESIZE */
22461
22462#endif /* no HAVE_GETPAGESIZE */
22463
22464int
22465main ()
22466{
22467 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022468 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022469 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022470 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022471
22472 pagesize = getpagesize ();
22473
22474 /* First, make a file with some known garbage in it. */
22475 data = (char *) malloc (pagesize);
22476 if (!data)
22477 return 1;
22478 for (i = 0; i < pagesize; ++i)
22479 *(data + i) = rand ();
22480 umask (0);
22481 fd = creat ("conftest.mmap", 0600);
22482 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022483 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022484 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022485 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022486 close (fd);
22487
cristycd4c5312009-11-22 01:19:08 +000022488 /* Next, check that the tail of a page is zero-filled. File must have
22489 non-zero length, otherwise we risk SIGBUS for entire page. */
22490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22491 if (fd2 < 0)
22492 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022493 cdata2 = "";
22494 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022495 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022497 if (data2 == MAP_FAILED)
22498 return 6;
22499 for (i = 0; i < pagesize; ++i)
22500 if (*(data2 + i))
22501 return 7;
22502 close (fd2);
22503 if (munmap (data2, pagesize))
22504 return 8;
22505
cristy3ed852e2009-09-05 21:47:34 +000022506 /* Next, try to mmap the file at a fixed address which already has
22507 something else allocated at it. If we can, also make sure that
22508 we see the same garbage. */
22509 fd = open ("conftest.mmap", O_RDWR);
22510 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022511 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022514 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022515 for (i = 0; i < pagesize; ++i)
22516 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022517 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022518
22519 /* Finally, make sure that changes to the mapped area do not
22520 percolate back to the file as seen by read(). (This is a bug on
22521 some variants of i386 svr4.0.) */
22522 for (i = 0; i < pagesize; ++i)
22523 *(data2 + i) = *(data2 + i) + 1;
22524 data3 = (char *) malloc (pagesize);
22525 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022526 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022527 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022528 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022529 for (i = 0; i < pagesize; ++i)
22530 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022531 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022532 close (fd);
22533 return 0;
22534}
22535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022536if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 ac_cv_func_mmap_fixed_mapped=yes
22538else
cristy8b350f62009-11-15 23:12:43 +000022539 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022543fi
22544
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy8b350f62009-11-15 23:12:43 +000022546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022547$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22548if test $ac_cv_func_mmap_fixed_mapped = yes; then
22549
cristy8b350f62009-11-15 23:12:43 +000022550$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022551
22552fi
cristycd4c5312009-11-22 01:19:08 +000022553rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022554
cristy3ed852e2009-09-05 21:47:34 +000022555for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022556do :
22557 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22558if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022559 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022560#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022561_ACEOF
22562
22563fi
22564
22565done
22566
cristy3ed852e2009-09-05 21:47:34 +000022567for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022568do :
22569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022571if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 cat >>confdefs.h <<_ACEOF
22573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22574_ACEOF
22575
22576fi
22577done
22578
22579if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022582if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 $as_echo_n "(cached) " >&6
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_func_fork_works=cross
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022589/* end confdefs.h. */
22590$ac_includes_default
22591int
22592main ()
22593{
22594
22595 /* By Ruediger Kuhlmann. */
22596 return fork () < 0;
22597
22598 ;
22599 return 0;
22600}
22601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022602if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 ac_cv_func_fork_works=yes
22604else
cristy8b350f62009-11-15 23:12:43 +000022605 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022606fi
cristy8b350f62009-11-15 23:12:43 +000022607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22608 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022609fi
22610
cristy3ed852e2009-09-05 21:47:34 +000022611fi
cristy8b350f62009-11-15 23:12:43 +000022612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022613$as_echo "$ac_cv_func_fork_works" >&6; }
22614
22615else
22616 ac_cv_func_fork_works=$ac_cv_func_fork
22617fi
22618if test "x$ac_cv_func_fork_works" = xcross; then
22619 case $host in
22620 *-*-amigaos* | *-*-msdosdjgpp*)
22621 # Override, as these systems have only a dummy fork() stub
22622 ac_cv_func_fork_works=no
22623 ;;
22624 *)
22625 ac_cv_func_fork_works=yes
22626 ;;
22627 esac
cristy8b350f62009-11-15 23:12:43 +000022628 { $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 +000022629$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22630fi
22631ac_cv_func_vfork_works=$ac_cv_func_vfork
22632if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022634$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022635if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 $as_echo_n "(cached) " >&6
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022639 ac_cv_func_vfork_works=cross
22640else
cristy8b350f62009-11-15 23:12:43 +000022641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022642/* end confdefs.h. */
22643/* Thanks to Paul Eggert for this test. */
22644$ac_includes_default
22645#include <sys/wait.h>
22646#ifdef HAVE_VFORK_H
22647# include <vfork.h>
22648#endif
22649/* On some sparc systems, changes by the child to local and incoming
22650 argument registers are propagated back to the parent. The compiler
22651 is told about this with #include <vfork.h>, but some compilers
22652 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22653 static variable whose address is put into a register that is
22654 clobbered by the vfork. */
22655static void
22656#ifdef __cplusplus
22657sparc_address_test (int arg)
22658# else
22659sparc_address_test (arg) int arg;
22660#endif
22661{
22662 static pid_t child;
22663 if (!child) {
22664 child = vfork ();
22665 if (child < 0) {
22666 perror ("vfork");
22667 _exit(2);
22668 }
22669 if (!child) {
22670 arg = getpid();
22671 write(-1, "", 0);
22672 _exit (arg);
22673 }
22674 }
22675}
22676
22677int
22678main ()
22679{
22680 pid_t parent = getpid ();
22681 pid_t child;
22682
22683 sparc_address_test (0);
22684
22685 child = vfork ();
22686
22687 if (child == 0) {
22688 /* Here is another test for sparc vfork register problems. This
22689 test uses lots of local variables, at least as many local
22690 variables as main has allocated so far including compiler
22691 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22692 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22693 reuse the register of parent for one of the local variables,
22694 since it will think that parent can't possibly be used any more
22695 in this routine. Assigning to the local variable will thus
22696 munge parent in the parent process. */
22697 pid_t
22698 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22699 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22700 /* Convince the compiler that p..p7 are live; otherwise, it might
22701 use the same hardware register for all 8 local variables. */
22702 if (p != p1 || p != p2 || p != p3 || p != p4
22703 || p != p5 || p != p6 || p != p7)
22704 _exit(1);
22705
22706 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22707 from child file descriptors. If the child closes a descriptor
22708 before it execs or exits, this munges the parent's descriptor
22709 as well. Test for this by closing stdout in the child. */
22710 _exit(close(fileno(stdout)) != 0);
22711 } else {
22712 int status;
22713 struct stat st;
22714
22715 while (wait(&status) != child)
22716 ;
22717 return (
22718 /* Was there some problem with vforking? */
22719 child < 0
22720
22721 /* Did the child fail? (This shouldn't happen.) */
22722 || status
22723
22724 /* Did the vfork/compiler bug occur? */
22725 || parent != getpid()
22726
22727 /* Did the file descriptor bug occur? */
22728 || fstat(fileno(stdout), &st) != 0
22729 );
22730 }
22731}
22732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022733if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022734 ac_cv_func_vfork_works=yes
22735else
cristy8b350f62009-11-15 23:12:43 +000022736 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022737fi
cristy8b350f62009-11-15 23:12:43 +000022738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22739 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022740fi
22741
cristy3ed852e2009-09-05 21:47:34 +000022742fi
cristy8b350f62009-11-15 23:12:43 +000022743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022744$as_echo "$ac_cv_func_vfork_works" >&6; }
22745
22746fi;
22747if test "x$ac_cv_func_fork_works" = xcross; then
22748 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022749 { $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 +000022750$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22751fi
22752
22753if test "x$ac_cv_func_vfork_works" = xyes; then
22754
cristy8b350f62009-11-15 23:12:43 +000022755$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022756
22757else
22758
cristy8b350f62009-11-15 23:12:43 +000022759$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022760
22761fi
22762if test "x$ac_cv_func_fork_works" = xyes; then
22763
cristy8b350f62009-11-15 23:12:43 +000022764$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022765
22766fi
22767
cristy8b350f62009-11-15 23:12:43 +000022768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022770if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 $as_echo_n "(cached) " >&6
22772else
cristy8b350f62009-11-15 23:12:43 +000022773 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022774 ac_cv_func_memcmp_working=no
22775else
cristy8b350f62009-11-15 23:12:43 +000022776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022777/* end confdefs.h. */
22778$ac_includes_default
22779int
22780main ()
22781{
22782
22783 /* Some versions of memcmp are not 8-bit clean. */
22784 char c0 = '\100', c1 = '\200', c2 = '\201';
22785 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22786 return 1;
22787
22788 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22789 or more and with at least one buffer not starting on a 4-byte boundary.
22790 William Lewis provided this test program. */
22791 {
22792 char foo[21];
22793 char bar[21];
22794 int i;
22795 for (i = 0; i < 4; i++)
22796 {
22797 char *a = foo + i;
22798 char *b = bar + i;
22799 strcpy (a, "--------01111111");
22800 strcpy (b, "--------10000000");
22801 if (memcmp (a, b, 16) >= 0)
22802 return 1;
22803 }
22804 return 0;
22805 }
22806
22807 ;
22808 return 0;
22809}
22810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022811if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022812 ac_cv_func_memcmp_working=yes
22813else
cristy8b350f62009-11-15 23:12:43 +000022814 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022815fi
cristy8b350f62009-11-15 23:12:43 +000022816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22817 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022818fi
22819
cristy3ed852e2009-09-05 21:47:34 +000022820fi
cristy8b350f62009-11-15 23:12:43 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo "$ac_cv_func_memcmp_working" >&6; }
22823test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22824 *" memcmp.$ac_objext "* ) ;;
22825 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22826 ;;
22827esac
22828
22829
cristy3ed852e2009-09-05 21:47:34 +000022830for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022831do :
22832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22833ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022835 cat >>confdefs.h <<_ACEOF
22836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22837_ACEOF
22838
22839fi
22840
22841done
22842
cristy8b350f62009-11-15 23:12:43 +000022843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022844$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022845if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022846 $as_echo_n "(cached) " >&6
22847else
22848 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22849 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22850 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022852/* end confdefs.h. */
22853$ac_includes_default
22854#ifdef HAVE_SYS_SELECT_H
22855# include <sys/select.h>
22856#endif
22857#ifdef HAVE_SYS_SOCKET_H
22858# include <sys/socket.h>
22859#endif
22860
22861int
22862main ()
22863{
22864extern int select ($ac_arg1,
22865 $ac_arg234, $ac_arg234, $ac_arg234,
22866 $ac_arg5);
22867 ;
22868 return 0;
22869}
22870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022871if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022872 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022873fi
cristy3ed852e2009-09-05 21:47:34 +000022874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22875 done
22876 done
22877done
22878# Provide a safe default value.
22879: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22880
22881fi
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo "$ac_cv_func_select_args" >&6; }
22884ac_save_IFS=$IFS; IFS=','
22885set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22886IFS=$ac_save_IFS
22887shift
22888
22889cat >>confdefs.h <<_ACEOF
22890#define SELECT_TYPE_ARG1 $1
22891_ACEOF
22892
22893
22894cat >>confdefs.h <<_ACEOF
22895#define SELECT_TYPE_ARG234 ($2)
22896_ACEOF
22897
22898
22899cat >>confdefs.h <<_ACEOF
22900#define SELECT_TYPE_ARG5 ($3)
22901_ACEOF
22902
22903rm -f conftest*
22904
cristy8b350f62009-11-15 23:12:43 +000022905if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022906 $as_echo_n "(cached) " >&6
22907else
22908 ac_cv_func_setvbuf_reversed=no
22909fi
22910
22911
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022914if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022915 $as_echo_n "(cached) " >&6
22916else
cristy8b350f62009-11-15 23:12:43 +000022917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022918/* end confdefs.h. */
22919#include <sys/types.h>
22920#include <signal.h>
22921
22922int
22923main ()
22924{
22925return *(signal (0, 0)) (0) == 1;
22926 ;
22927 return 0;
22928}
22929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 ac_cv_type_signal=int
22932else
cristy8b350f62009-11-15 23:12:43 +000022933 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022934fi
cristy3ed852e2009-09-05 21:47:34 +000022935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$ac_cv_type_signal" >&6; }
22939
22940cat >>confdefs.h <<_ACEOF
22941#define RETSIGTYPE $ac_cv_type_signal
22942_ACEOF
22943
22944
cristy8b350f62009-11-15 23:12:43 +000022945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022946$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022947if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022948 $as_echo_n "(cached) " >&6
22949else
cristy8b350f62009-11-15 23:12:43 +000022950 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022951 ac_cv_func_strtod=no
22952else
cristy8b350f62009-11-15 23:12:43 +000022953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022954/* end confdefs.h. */
22955
22956$ac_includes_default
22957#ifndef strtod
22958double strtod ();
22959#endif
22960int
22961main()
22962{
22963 {
22964 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22965 char *string = " +69";
22966 char *term;
22967 double value;
22968 value = strtod (string, &term);
22969 if (value != 69 || term != (string + 4))
22970 return 1;
22971 }
22972
22973 {
22974 /* Under Solaris 2.4, strtod returns the wrong value for the
22975 terminating character under some conditions. */
22976 char *string = "NaN";
22977 char *term;
22978 strtod (string, &term);
22979 if (term != string && *(term - 1) == 0)
22980 return 1;
22981 }
22982 return 0;
22983}
22984
22985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022986if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022987 ac_cv_func_strtod=yes
22988else
cristy8b350f62009-11-15 23:12:43 +000022989 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022990fi
cristy8b350f62009-11-15 23:12:43 +000022991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22992 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022993fi
22994
cristy3ed852e2009-09-05 21:47:34 +000022995fi
cristy8b350f62009-11-15 23:12:43 +000022996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022997$as_echo "$ac_cv_func_strtod" >&6; }
22998if test $ac_cv_func_strtod = no; then
22999 case " $LIBOBJS " in
23000 *" strtod.$ac_objext "* ) ;;
23001 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23002 ;;
23003esac
23004
cristy8b350f62009-11-15 23:12:43 +000023005ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23006if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023007
cristy3ed852e2009-09-05 21:47:34 +000023008fi
23009
cristy3ed852e2009-09-05 21:47:34 +000023010if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023012$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023013if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023014 $as_echo_n "(cached) " >&6
23015else
23016 ac_check_lib_save_LIBS=$LIBS
23017LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023019/* end confdefs.h. */
23020
23021/* Override any GCC internal prototype to avoid an error.
23022 Use char because int might match the return type of a GCC
23023 builtin and then its argument prototype would still apply. */
23024#ifdef __cplusplus
23025extern "C"
23026#endif
23027char pow ();
23028int
23029main ()
23030{
23031return pow ();
23032 ;
23033 return 0;
23034}
23035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 ac_cv_lib_m_pow=yes
23038else
cristy8b350f62009-11-15 23:12:43 +000023039 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023040fi
cristy8b350f62009-11-15 23:12:43 +000023041rm -f core conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023043LIBS=$ac_check_lib_save_LIBS
23044fi
cristy8b350f62009-11-15 23:12:43 +000023045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023046$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023047if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 POW_LIB=-lm
23049else
cristy8b350f62009-11-15 23:12:43 +000023050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023051$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23052fi
23053
23054fi
23055
23056fi
23057
cristy3ed852e2009-09-05 21:47:34 +000023058for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023059do :
23060 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23061if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023063#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023064_ACEOF
23065
cristy8b350f62009-11-15 23:12:43 +000023066ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23067if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023068
cristy8b350f62009-11-15 23:12:43 +000023069$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023070
23071fi
23072
23073fi
23074done
23075
23076
23077
cristy161b9262010-03-20 19:34:32 +000023078#
23079# Find math library
23080#
23081MATH_LIBS=''
23082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23083$as_echo_n "checking for sqrt in -lm... " >&6; }
23084if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23085 $as_echo_n "(cached) " >&6
23086else
23087 ac_check_lib_save_LIBS=$LIBS
23088LIBS="-lm $LIBS"
23089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090/* end confdefs.h. */
23091
23092/* Override any GCC internal prototype to avoid an error.
23093 Use char because int might match the return type of a GCC
23094 builtin and then its argument prototype would still apply. */
23095#ifdef __cplusplus
23096extern "C"
23097#endif
23098char sqrt ();
23099int
23100main ()
23101{
23102return sqrt ();
23103 ;
23104 return 0;
23105}
23106_ACEOF
23107if ac_fn_c_try_link "$LINENO"; then :
23108 ac_cv_lib_m_sqrt=yes
23109else
23110 ac_cv_lib_m_sqrt=no
23111fi
23112rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114LIBS=$ac_check_lib_save_LIBS
23115fi
23116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23117$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23118if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23119 MATH_LIBS="-lm"
23120fi
23121
23122LIBS="$MATH_LIBS $LIBS"
23123
23124
cristyf1897e32010-08-29 19:59:09 +000023125for 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 +000023126do :
23127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23128ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023129if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 cat >>confdefs.h <<_ACEOF
23131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23132_ACEOF
23133
23134fi
23135done
23136
23137
cristye43a45e2009-09-28 14:49:00 +000023138#
23139# Check for clock_gettime().
23140#
cristy8b350f62009-11-15 23:12:43 +000023141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023142$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023143if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023144 $as_echo_n "(cached) " >&6
23145else
23146 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023148/* end confdefs.h. */
23149
23150/* Override any GCC internal prototype to avoid an error.
23151 Use char because int might match the return type of a GCC
23152 builtin and then its argument prototype would still apply. */
23153#ifdef __cplusplus
23154extern "C"
23155#endif
23156char clock_gettime ();
23157int
23158main ()
23159{
23160return clock_gettime ();
23161 ;
23162 return 0;
23163}
23164_ACEOF
23165for ac_lib in '' rt; do
23166 if test -z "$ac_lib"; then
23167 ac_res="none required"
23168 else
23169 ac_res=-l$ac_lib
23170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23171 fi
cristy8b350f62009-11-15 23:12:43 +000023172 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023173 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023174fi
cristy8b350f62009-11-15 23:12:43 +000023175rm -f core conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext
23177 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023178 break
23179fi
23180done
cristy8b350f62009-11-15 23:12:43 +000023181if test "${ac_cv_search_clock_gettime+set}" = set; then :
23182
cristye43a45e2009-09-28 14:49:00 +000023183else
23184 ac_cv_search_clock_gettime=no
23185fi
23186rm conftest.$ac_ext
23187LIBS=$ac_func_search_save_LIBS
23188fi
cristy8b350f62009-11-15 23:12:43 +000023189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023190$as_echo "$ac_cv_search_clock_gettime" >&6; }
23191ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023192if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23194
23195
cristy8b350f62009-11-15 23:12:43 +000023196$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023197
cristy8b350f62009-11-15 23:12:43 +000023198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023199$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023201/* end confdefs.h. */
23202#include <time.h>
23203int
23204main ()
23205{
23206clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023207 ;
23208 return 0;
23209}
23210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023211if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023212
cristy8b350f62009-11-15 23:12:43 +000023213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023214$as_echo "yes" >&6; }
23215
cristy8b350f62009-11-15 23:12:43 +000023216$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023217
23218
23219else
cristy8b350f62009-11-15 23:12:43 +000023220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023221$as_echo "no" >&6; }
23222
23223fi
cristye43a45e2009-09-28 14:49:00 +000023224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225
23226else
23227
cristy8b350f62009-11-15 23:12:43 +000023228 for ac_func in gettimeofday ftime
23229do :
23230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023232if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023233 cat >>confdefs.h <<_ACEOF
23234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23235_ACEOF
23236 break
23237fi
23238done
23239
23240
23241
23242fi
23243
23244
cristy3ed852e2009-09-05 21:47:34 +000023245########
23246#
23247# Check for function prototypes
23248#
23249########
23250
cristy8b350f62009-11-15 23:12:43 +000023251ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023252#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023253"
23254if test "x$ac_cv_have_decl_pread" = x""yes; then :
23255 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023256else
cristy8b350f62009-11-15 23:12:43 +000023257 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023258fi
23259
cristy3ed852e2009-09-05 21:47:34 +000023260cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023261#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023263ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023264#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023265"
23266if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23267 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023268else
cristy8b350f62009-11-15 23:12:43 +000023269 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023270fi
23271
cristy3ed852e2009-09-05 21:47:34 +000023272cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023273#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023274_ACEOF
23275
23276
cristy8b350f62009-11-15 23:12:43 +000023277ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023278#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023279"
23280if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23281 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023282else
cristy8b350f62009-11-15 23:12:43 +000023283 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023284fi
23285
cristy3ed852e2009-09-05 21:47:34 +000023286cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023287#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023288_ACEOF
23289
23290
cristy8b350f62009-11-15 23:12:43 +000023291ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023292#include <stdio.h>
23293#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023294"
23295if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23296 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023297else
cristy8b350f62009-11-15 23:12:43 +000023298 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023299fi
23300
cristy3ed852e2009-09-05 21:47:34 +000023301cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023302#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023303_ACEOF
23304
23305
cristy3ed852e2009-09-05 21:47:34 +000023306########
23307#
23308# C++ Support Tests (For Magick++)
23309#
23310########
23311have_magick_plus_plus='no'
23312if test "$with_magick_plus_plus" = 'yes'; then
23313 OLIBS="$LIBS"
23314 LIBS=''
23315 ac_ext=cpp
23316ac_cpp='$CXXCPP $CPPFLAGS'
23317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23320
23321
23322 # Full set of headers used...
23323 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23324 # functional iomanip iosfwd iostream iterator list string strstream utility
23325 ac_ext=cpp
23326ac_cpp='$CXXCPP $CPPFLAGS'
23327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23330
23331 ac_ext=cpp
23332ac_cpp='$CXXCPP $CPPFLAGS'
23333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336if test -z "$CXX"; then
23337 if test -n "$CCC"; then
23338 CXX=$CCC
23339 else
23340 if test -n "$ac_tool_prefix"; then
23341 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23342 do
23343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023347if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023348 $as_echo_n "(cached) " >&6
23349else
23350 if test -n "$CXX"; then
23351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23352else
23353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23354for as_dir in $PATH
23355do
23356 IFS=$as_save_IFS
23357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362 break 2
23363 fi
23364done
cristy8b350f62009-11-15 23:12:43 +000023365 done
cristy3ed852e2009-09-05 21:47:34 +000023366IFS=$as_save_IFS
23367
23368fi
23369fi
23370CXX=$ac_cv_prog_CXX
23371if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$CXX" >&6; }
23374else
cristy8b350f62009-11-15 23:12:43 +000023375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023376$as_echo "no" >&6; }
23377fi
23378
23379
23380 test -n "$CXX" && break
23381 done
23382fi
23383if test -z "$CXX"; then
23384 ac_ct_CXX=$CXX
23385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23386do
23387 # Extract the first word of "$ac_prog", so it can be a program name with args.
23388set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 $as_echo_n "(cached) " >&6
23393else
23394 if test -n "$ac_ct_CXX"; then
23395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23396else
23397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398for as_dir in $PATH
23399do
23400 IFS=$as_save_IFS
23401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23404 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406 break 2
23407 fi
23408done
cristy8b350f62009-11-15 23:12:43 +000023409 done
cristy3ed852e2009-09-05 21:47:34 +000023410IFS=$as_save_IFS
23411
23412fi
23413fi
23414ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23415if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023417$as_echo "$ac_ct_CXX" >&6; }
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo "no" >&6; }
23421fi
23422
23423
23424 test -n "$ac_ct_CXX" && break
23425done
23426
23427 if test "x$ac_ct_CXX" = x; then
23428 CXX="g++"
23429 else
23430 case $cross_compiling:$ac_tool_warned in
23431yes:)
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23434ac_tool_warned=yes ;;
23435esac
23436 CXX=$ac_ct_CXX
23437 fi
23438fi
23439
23440 fi
23441fi
23442# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023443$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444set X $ac_compile
23445ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023446for ac_option in --version -v -V -qversion; do
23447 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023448case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451esac
cristy8b350f62009-11-15 23:12:43 +000023452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23453$as_echo "$ac_try_echo"; } >&5
23454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023455 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023456 if test -s conftest.err; then
23457 sed '10a\
23458... rest of stderr output deleted ...
23459 10q' conftest.err >conftest.er1
23460 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023461 fi
cristycd4c5312009-11-22 01:19:08 +000023462 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464 test $ac_status = 0; }
23465done
cristy3ed852e2009-09-05 21:47:34 +000023466
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023469if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023470 $as_echo_n "(cached) " >&6
23471else
cristy8b350f62009-11-15 23:12:43 +000023472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023473/* end confdefs.h. */
23474
23475int
23476main ()
23477{
23478#ifndef __GNUC__
23479 choke me
23480#endif
23481
23482 ;
23483 return 0;
23484}
23485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023486if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023487 ac_compiler_gnu=yes
23488else
cristy8b350f62009-11-15 23:12:43 +000023489 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023490fi
cristy3ed852e2009-09-05 21:47:34 +000023491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23493
23494fi
cristy8b350f62009-11-15 23:12:43 +000023495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23497if test $ac_compiler_gnu = yes; then
23498 GXX=yes
23499else
23500 GXX=
23501fi
23502ac_test_CXXFLAGS=${CXXFLAGS+set}
23503ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023506if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 $as_echo_n "(cached) " >&6
23508else
23509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23510 ac_cxx_werror_flag=yes
23511 ac_cv_prog_cxx_g=no
23512 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023514/* end confdefs.h. */
23515
23516int
23517main ()
23518{
23519
23520 ;
23521 return 0;
23522}
23523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023524if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023525 ac_cv_prog_cxx_g=yes
23526else
cristy8b350f62009-11-15 23:12:43 +000023527 CXXFLAGS=""
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023529/* end confdefs.h. */
23530
23531int
23532main ()
23533{
23534
23535 ;
23536 return 0;
23537}
23538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023539if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023540
cristy8b350f62009-11-15 23:12:43 +000023541else
23542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023543 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023545/* end confdefs.h. */
23546
23547int
23548main ()
23549{
23550
23551 ;
23552 return 0;
23553}
23554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023555if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023556 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023557fi
cristy3ed852e2009-09-05 21:47:34 +000023558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559fi
cristy3ed852e2009-09-05 21:47:34 +000023560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561fi
cristy3ed852e2009-09-05 21:47:34 +000023562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23564fi
cristy8b350f62009-11-15 23:12:43 +000023565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "$ac_cv_prog_cxx_g" >&6; }
23567if test "$ac_test_CXXFLAGS" = set; then
23568 CXXFLAGS=$ac_save_CXXFLAGS
23569elif test $ac_cv_prog_cxx_g = yes; then
23570 if test "$GXX" = yes; then
23571 CXXFLAGS="-g -O2"
23572 else
23573 CXXFLAGS="-g"
23574 fi
23575else
23576 if test "$GXX" = yes; then
23577 CXXFLAGS="-O2"
23578 else
23579 CXXFLAGS=
23580 fi
23581fi
23582ac_ext=cpp
23583ac_cpp='$CXXCPP $CPPFLAGS'
23584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23587
23588depcc="$CXX" am_compiler_list=
23589
cristy8b350f62009-11-15 23:12:43 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023591$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023592if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023593 $as_echo_n "(cached) " >&6
23594else
23595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23596 # We make a subdir and do the tests there. Otherwise we can end up
23597 # making bogus files that we don't know about and never remove. For
23598 # instance it was reported that on HP-UX the gcc test will end up
23599 # making a dummy file named `D' -- because `-MD' means `put the output
23600 # in D'.
23601 mkdir conftest.dir
23602 # Copy depcomp to subdir because otherwise we won't find it if we're
23603 # using a relative directory.
23604 cp "$am_depcomp" conftest.dir
23605 cd conftest.dir
23606 # We will build objects and dependencies in a subdirectory because
23607 # it helps to detect inapplicable dependency modes. For instance
23608 # both Tru64's cc and ICC support -MD to output dependencies as a
23609 # side effect of compilation, but ICC will put the dependencies in
23610 # the current directory while Tru64 will put them in the object
23611 # directory.
23612 mkdir sub
23613
23614 am_cv_CXX_dependencies_compiler_type=none
23615 if test "$am_compiler_list" = ""; then
23616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23617 fi
23618 am__universal=false
23619 case " $depcc " in #(
23620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23621 esac
23622
23623 for depmode in $am_compiler_list; do
23624 # Setup a source with many dependencies, because some compilers
23625 # like to wrap large dependency lists on column 80 (with \), and
23626 # we should not choose a depcomp mode which is confused by this.
23627 #
23628 # We need to recreate these files for each test, as the compiler may
23629 # overwrite some of them when testing with obscure command lines.
23630 # This happens at least with the AIX C compiler.
23631 : > sub/conftest.c
23632 for i in 1 2 3 4 5 6; do
23633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23635 # Solaris 8's {/usr,}/bin/sh.
23636 touch sub/conftst$i.h
23637 done
23638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23639
23640 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23641 # mode. It turns out that the SunPro C++ compiler does not properly
23642 # handle `-M -o', and we need to detect this. Also, some Intel
23643 # versions had trouble with output in subdirs
23644 am__obj=sub/conftest.${OBJEXT-o}
23645 am__minus_obj="-o $am__obj"
23646 case $depmode in
23647 gcc)
23648 # This depmode causes a compiler race in universal mode.
23649 test "$am__universal" = false || continue
23650 ;;
23651 nosideeffect)
23652 # after this tag, mechanisms are not by side-effect, so they'll
23653 # only be used when explicitly requested
23654 if test "x$enable_dependency_tracking" = xyes; then
23655 continue
23656 else
23657 break
23658 fi
23659 ;;
23660 msvisualcpp | msvcmsys)
23661 # This compiler won't grok `-c -o', but also, the minuso test has
23662 # not run yet. These depmodes are late enough in the game, and
23663 # so weak that their functioning should not be impacted.
23664 am__obj=conftest.${OBJEXT-o}
23665 am__minus_obj=
23666 ;;
23667 none) break ;;
23668 esac
23669 if depmode=$depmode \
23670 source=sub/conftest.c object=$am__obj \
23671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23673 >/dev/null 2>conftest.err &&
23674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23678 # icc doesn't choke on unknown options, it will just issue warnings
23679 # or remarks (even with -Werror). So we grep stderr for any message
23680 # that says an option was ignored or not supported.
23681 # When given -MP, icc 7.0 and 7.1 complain thusly:
23682 # icc: Command line warning: ignoring option '-M'; no argument required
23683 # The diagnosis changed in icc 8.0:
23684 # icc: Command line remark: option '-MP' not supported
23685 if (grep 'ignoring option' conftest.err ||
23686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23687 am_cv_CXX_dependencies_compiler_type=$depmode
23688 break
23689 fi
23690 fi
23691 done
23692
23693 cd ..
23694 rm -rf conftest.dir
23695else
23696 am_cv_CXX_dependencies_compiler_type=none
23697fi
23698
23699fi
cristy8b350f62009-11-15 23:12:43 +000023700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023701$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23702CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23703
23704 if
23705 test "x$enable_dependency_tracking" != xno \
23706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23707 am__fastdepCXX_TRUE=
23708 am__fastdepCXX_FALSE='#'
23709else
23710 am__fastdepCXX_TRUE='#'
23711 am__fastdepCXX_FALSE=
23712fi
23713
23714
cristy8b350f62009-11-15 23:12:43 +000023715 { $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 +000023716$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023717if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023718 $as_echo_n "(cached) " >&6
23719else
23720
23721 ac_ext=cpp
23722ac_cpp='$CXXCPP $CPPFLAGS'
23723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23726
cristy8b350f62009-11-15 23:12:43 +000023727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023728/* end confdefs.h. */
23729
23730int f(int x){return 1;}
23731int f(char x){return 1;}
23732int f(bool x){return 1;}
23733
23734int
23735main ()
23736{
23737bool b = true; return f(b);
23738 ;
23739 return 0;
23740}
23741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023742if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023743 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023744else
cristy964cb7f2010-04-25 23:18:00 +000023745 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023746fi
cristy3ed852e2009-09-05 21:47:34 +000023747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 ac_ext=cpp
23749ac_cpp='$CXXCPP $CPPFLAGS'
23750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23753
23754
23755fi
cristy964cb7f2010-04-25 23:18:00 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23757$as_echo "$ax_cv_cxx_bool" >&6; }
23758if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023759
cristy8b350f62009-11-15 23:12:43 +000023760$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023761
23762fi
23763
cristy8b350f62009-11-15 23:12:43 +000023764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023765$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023766if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023767 $as_echo_n "(cached) " >&6
23768else
23769
23770 ac_ext=cpp
23771ac_cpp='$CXXCPP $CPPFLAGS'
23772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23775
cristy8b350f62009-11-15 23:12:43 +000023776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023777/* end confdefs.h. */
23778namespace Outer { namespace Inner { int i = 0; }}
23779int
23780main ()
23781{
23782using namespace Outer::Inner; return i;
23783 ;
23784 return 0;
23785}
23786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023787if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023788 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023789else
cristy964cb7f2010-04-25 23:18:00 +000023790 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristy3ed852e2009-09-05 21:47:34 +000023792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 ac_ext=cpp
23794ac_cpp='$CXXCPP $CPPFLAGS'
23795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
23799
23800fi
cristy964cb7f2010-04-25 23:18:00 +000023801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23802$as_echo "$ax_cv_cxx_namespaces" >&6; }
23803if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023804
cristy8b350f62009-11-15 23:12:43 +000023805$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023806
23807fi
23808
cristy964cb7f2010-04-25 23:18:00 +000023809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23811$as_echo_n "checking if g++ supports namespace std... " >&6; }
23812if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023813 $as_echo_n "(cached) " >&6
23814else
23815
cristy964cb7f2010-04-25 23:18:00 +000023816 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023817ac_cpp='$CXXCPP $CPPFLAGS'
23818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23821
cristy964cb7f2010-04-25 23:18:00 +000023822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023823/* end confdefs.h. */
23824#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023825 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023826int
23827main ()
23828{
cristy964cb7f2010-04-25 23:18:00 +000023829
cristy3ed852e2009-09-05 21:47:34 +000023830 ;
23831 return 0;
23832}
23833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023834if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023835 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023836else
cristy964cb7f2010-04-25 23:18:00 +000023837 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023838fi
cristy3ed852e2009-09-05 21:47:34 +000023839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023840 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023841ac_cpp='$CXXCPP $CPPFLAGS'
23842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23845
23846
23847fi
cristy964cb7f2010-04-25 23:18:00 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23849$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23850 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023851
cristy964cb7f2010-04-25 23:18:00 +000023852$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023853
cristy964cb7f2010-04-25 23:18:00 +000023854 fi
cristy3ed852e2009-09-05 21:47:34 +000023855
cristy8b350f62009-11-15 23:12:43 +000023856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023857$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023858if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023859 $as_echo_n "(cached) " >&6
23860else
23861
23862
23863 ac_ext=cpp
23864ac_cpp='$CXXCPP $CPPFLAGS'
23865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23868
cristy8b350f62009-11-15 23:12:43 +000023869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023870/* end confdefs.h. */
23871#include <iostream>
23872#include <map>
23873#include <iomanip>
23874#include <cmath>
23875#ifdef HAVE_NAMESPACES
23876using namespace std;
23877#endif
23878int
23879main ()
23880{
23881return 0;
23882 ;
23883 return 0;
23884}
23885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023886if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023887 ac_cv_cxx_have_std_libs=yes
23888else
cristy8b350f62009-11-15 23:12:43 +000023889 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023890fi
cristy3ed852e2009-09-05 21:47:34 +000023891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892 ac_ext=cpp
23893ac_cpp='$CXXCPP $CPPFLAGS'
23894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23897
23898
23899fi
cristy8b350f62009-11-15 23:12:43 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023901$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23902if test "$ac_cv_cxx_have_std_libs" = yes; then
23903
cristy8b350f62009-11-15 23:12:43 +000023904$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023905
23906fi
23907
cristy8b350f62009-11-15 23:12:43 +000023908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023909$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023910if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023911 $as_echo_n "(cached) " >&6
23912else
23913
23914 ac_ext=cpp
23915ac_cpp='$CXXCPP $CPPFLAGS'
23916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23919
cristy8b350f62009-11-15 23:12:43 +000023920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023921/* end confdefs.h. */
23922const wchar_t* s=L"wide string";
23923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023924if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023925 ac_cv_cxx_have_lstring=yes
23926else
cristy8b350f62009-11-15 23:12:43 +000023927 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023928fi
cristy3ed852e2009-09-05 21:47:34 +000023929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930 ac_ext=cpp
23931ac_cpp='$CXXCPP $CPPFLAGS'
23932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23935
23936
23937fi
cristy8b350f62009-11-15 23:12:43 +000023938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023939$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23940if test "$ac_cv_cxx_have_lstring" = yes; then
23941
cristy8b350f62009-11-15 23:12:43 +000023942$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023943
23944fi
23945
23946
23947 OPENMP_CXXFLAGS=
23948 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023949if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023950 enableval=$enable_openmp;
23951fi
23952
23953 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23955$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023956if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 $as_echo_n "(cached) " >&6
23958else
cristy8b350f62009-11-15 23:12:43 +000023959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023961
23962#ifndef _OPENMP
23963 choke me
23964#endif
23965#include <omp.h>
23966int main () { return omp_get_num_threads (); }
23967
23968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023969if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023970 ac_cv_prog_cxx_openmp='none needed'
23971else
cristy8b350f62009-11-15 23:12:43 +000023972 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023973 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23974 ac_save_CXXFLAGS=$CXXFLAGS
23975 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023978
23979#ifndef _OPENMP
23980 choke me
23981#endif
23982#include <omp.h>
23983int main () { return omp_get_num_threads (); }
23984
23985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023986if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023987 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023988fi
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 +000023991 CXXFLAGS=$ac_save_CXXFLAGS
23992 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23993 break
23994 fi
23995 done
23996fi
cristy8b350f62009-11-15 23:12:43 +000023997rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023999fi
cristy8b350f62009-11-15 23:12:43 +000024000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024001$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24002 case $ac_cv_prog_cxx_openmp in #(
24003 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024004 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024005 *)
cristy8b350f62009-11-15 23:12:43 +000024006 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024007 esac
24008 fi
24009
24010
24011 ac_ext=c
24012ac_cpp='$CPP $CPPFLAGS'
24013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24015ac_compiler_gnu=$ac_cv_c_compiler_gnu
24016
24017
cristy8b350f62009-11-15 23:12:43 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24020 if \
cristy964cb7f2010-04-25 23:18:00 +000024021 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024022 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024023 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024024 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024025 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024026 have_magick_plus_plus='yes'
24027 else
24028 have_magick_plus_plus='no (failed tests)'
24029 fi
cristy8b350f62009-11-15 23:12:43 +000024030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024031$as_echo "$have_magick_plus_plus" >&6; }
24032 LIBS="$OLIBS"
24033fi
24034 if test "$have_magick_plus_plus" = 'yes'; then
24035 WITH_MAGICK_PLUS_PLUS_TRUE=
24036 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24037else
24038 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24039 WITH_MAGICK_PLUS_PLUS_FALSE=
24040fi
24041
24042
24043# Only check for delegate libraries in subdirectories if requested.
24044if test "$enable_delegate_build" != 'no'; then
24045 # Check for delegate sub-directories and add -I & -L options as required.
24046 # This presumes that delegates are installed as detailed in the ImageMagick
24047 # README. If delegates are installed in a standard location where the
24048 # compiler will automatically find them then these options should not be
24049 # required.
24050
24051 #
24052 # Most delegates have includes in the same directory as the library, but not all...
24053 #
24054 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024055 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 +000024056 if test -d "$builddir/$dir"; then
24057 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24058 else
24059 if test -d "$srcdirfull/$dir"; then
24060 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24061 fi
24062 fi
24063 done
24064
24065 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024066 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 +000024067 if test -d "$builddir/$dir/.libs"; then
24068 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24069 else
24070 if test -d "$srcdirfull/$dir/.libs"; then
24071 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24072 fi
24073 fi
24074 if test -d "$builddir/$dir"; then
24075 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24076 else
24077 if test -d "$srcdirfull/$dir"; then
24078 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24079 fi
24080 fi
24081 done
24082fi
24083
24084# Assume that delegate headers reside under same directory as ImageMagick
24085# installation prefix.
24086MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24087
24088#
24089# Find the X11 RGB database
24090#
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024093if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024094 $as_echo_n "(cached) " >&6
24095else
24096 # Look for the header file in a standard set of common directories.
24097# Check X11 before X11Rn because it is often a symlink to the current release.
24098 for ac_dir in \
24099 /lib/usr/lib/X11 \
24100 /usr/X11/lib \
24101 /usr/X11R4/lib \
24102 /usr/X11R5/lib \
24103 /usr/X11R6/lib \
24104 /usr/X11R7/lib \
24105 /usr/X386/lib \
24106 /usr/XFree86/lib/X11 \
24107 /usr/athena/lib \
24108 /usr/lib \
24109 /usr/lib/X11 \
24110 /usr/lib/X11R4 \
24111 /usr/lib/X11R5 \
24112 /usr/lib/X11R6 \
24113 /usr/lib/X11R7 \
24114 /usr/local/X11/lib \
24115 /usr/local/X11R4/lib \
24116 /usr/local/X11R5/lib \
24117 /usr/local/X11R6/lib \
24118 /usr/local/lib \
24119 /usr/local/lib/X11 \
24120 /usr/local/lib/X11R4 \
24121 /usr/local/lib/X11R5 \
24122 /usr/local/lib/X11R6 \
24123 /usr/local/lib/X11R7 \
24124 /usr/local/x11r5/lib \
24125 /usr/lpp/Xamples/lib \
24126 /usr/openwin/lib \
24127 /usr/openwin/share/lib \
24128 /usr/unsupported/lib \
24129 /usr/x386/lib \
24130 ; do
24131 if test -f "$ac_dir/X11/rgb.txt"; then
24132 im_cv_x_configure="$ac_dir/X11/"
24133 break
24134 elif test -f "$ac_dir/rgb.txt"; then
24135 im_cv_x_configure="$ac_dir/"
24136 break
24137 fi
24138
24139 done
24140fi
cristy8b350f62009-11-15 23:12:43 +000024141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo "$im_cv_x_configure" >&6; }
24143X11_CONFIGURE_PATH="$im_cv_x_configure"
24144case "${build_os}" in
24145 mingw* )
24146 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24147 ;;
24148esac
24149
24150cat >>confdefs.h <<_ACEOF
24151#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24152_ACEOF
24153
24154
24155#
24156# Find OpenMP library
24157#
24158GOMP_LIBS=''
24159if test "$enable_openmp" != 'no'; then
24160 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024163if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 $as_echo_n "(cached) " >&6
24165else
24166 ac_check_lib_save_LIBS=$LIBS
24167LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024169/* end confdefs.h. */
24170
24171/* Override any GCC internal prototype to avoid an error.
24172 Use char because int might match the return type of a GCC
24173 builtin and then its argument prototype would still apply. */
24174#ifdef __cplusplus
24175extern "C"
24176#endif
24177char GOMP_parallel_start ();
24178int
24179main ()
24180{
24181return GOMP_parallel_start ();
24182 ;
24183 return 0;
24184}
24185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 ac_cv_lib_gomp_GOMP_parallel_start=yes
24188else
cristy8b350f62009-11-15 23:12:43 +000024189 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024190fi
cristy8b350f62009-11-15 23:12:43 +000024191rm -f core conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024193LIBS=$ac_check_lib_save_LIBS
24194fi
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024197if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 GOMP_LIBS="-lgomp"
24199fi
24200 # gcc
24201 else
cristy8b350f62009-11-15 23:12:43 +000024202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024203$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024204if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 $as_echo_n "(cached) " >&6
24206else
24207 ac_check_lib_save_LIBS=$LIBS
24208LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024210/* end confdefs.h. */
24211
24212/* Override any GCC internal prototype to avoid an error.
24213 Use char because int might match the return type of a GCC
24214 builtin and then its argument prototype would still apply. */
24215#ifdef __cplusplus
24216extern "C"
24217#endif
24218char sunw_mp_register_warn ();
24219int
24220main ()
24221{
24222return sunw_mp_register_warn ();
24223 ;
24224 return 0;
24225}
24226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24229else
cristy8b350f62009-11-15 23:12:43 +000024230 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024231fi
cristy8b350f62009-11-15 23:12:43 +000024232rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024234LIBS=$ac_check_lib_save_LIBS
24235fi
cristy8b350f62009-11-15 23:12:43 +000024236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 GOMP_LIBS="-lmtsk"
24240fi
24241 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024244if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024245 $as_echo_n "(cached) " >&6
24246else
24247 ac_check_lib_save_LIBS=$LIBS
24248LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024250/* end confdefs.h. */
24251
24252/* Override any GCC internal prototype to avoid an error.
24253 Use char because int might match the return type of a GCC
24254 builtin and then its argument prototype would still apply. */
24255#ifdef __cplusplus
24256extern "C"
24257#endif
24258char _xlsmpFlush ();
24259int
24260main ()
24261{
24262return _xlsmpFlush ();
24263 ;
24264 return 0;
24265}
24266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024268 ac_cv_lib_xlsmp__xlsmpFlush=yes
24269else
cristy8b350f62009-11-15 23:12:43 +000024270 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024271fi
cristy8b350f62009-11-15 23:12:43 +000024272rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024274LIBS=$ac_check_lib_save_LIBS
24275fi
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024278if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 GOMP_LIBS="-lxlsmp"
24280fi
24281 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024284if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 $as_echo_n "(cached) " >&6
24286else
24287 ac_check_lib_save_LIBS=$LIBS
24288LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024290/* end confdefs.h. */
24291
24292/* Override any GCC internal prototype to avoid an error.
24293 Use char because int might match the return type of a GCC
24294 builtin and then its argument prototype would still apply. */
24295#ifdef __cplusplus
24296extern "C"
24297#endif
24298char mp_destroy ();
24299int
24300main ()
24301{
24302return mp_destroy ();
24303 ;
24304 return 0;
24305}
24306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 ac_cv_lib_mp_mp_destroy=yes
24309else
cristy8b350f62009-11-15 23:12:43 +000024310 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024311fi
cristy8b350f62009-11-15 23:12:43 +000024312rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024314LIBS=$ac_check_lib_save_LIBS
24315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024318if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024319 GOMP_LIBS="-lmp"
24320fi
24321 # SGI IRIX 6.5 MIPSpro C/C++
24322 fi
24323 LIBS="$GOMP_LIBS $LIBS"
24324fi
24325
24326
24327#
24328# Find Posix threads library
24329#
24330THREAD_LIBS=''
24331if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24332
24333 if test "x$PTHREAD_LIBS" = "x"; then
24334 case "${host_cpu}-${host_os}" in
24335 *-freebsd*)
24336
24337
24338
24339ac_ext=c
24340ac_cpp='$CPP $CPPFLAGS'
24341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24343ac_compiler_gnu=$ac_cv_c_compiler_gnu
24344
24345magick_pthread_lib_ok=no
24346
24347LIB=-lc_r
24348save_LIBS="$LIBS"
24349LIBS="$LIBS $LIB"
24350
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024354/* end confdefs.h. */
24355#include <pthread.h>
24356int
24357main ()
24358{
24359 pthread_t th;
24360 pthread_join(th, 0);
24361 pthread_attr_init(0);
24362 pthread_cleanup_push(0, 0);
24363 pthread_create(0,0,0,0);
24364 pthread_cleanup_pop(0);
24365 ;
24366 return 0;
24367}
24368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024370 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024371fi
cristy8b350f62009-11-15 23:12:43 +000024372rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024374
cristy8b350f62009-11-15 23:12:43 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo "${magick_pthread_lib_ok}" >&6; }
24377if test "$magick_pthread_lib_ok" = yes
24378then
24379 PTHREAD_LIBS=-lc_r
24380 :
24381else
24382
24383 :
24384fi
24385
24386LIBS="$save_LIBS"
24387
24388ac_ext=c
24389ac_cpp='$CPP $CPPFLAGS'
24390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24392ac_compiler_gnu=$ac_cv_c_compiler_gnu
24393
24394 ;;
24395 esac
24396 fi
24397
24398 for lib in pthread pthreads; do
24399 if test "x$PTHREAD_LIBS" = "x"; then
24400
24401
24402
24403ac_ext=c
24404ac_cpp='$CPP $CPPFLAGS'
24405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24407ac_compiler_gnu=$ac_cv_c_compiler_gnu
24408
24409magick_pthread_lib_ok=no
24410
24411LIB=-l$lib
24412save_LIBS="$LIBS"
24413LIBS="$LIBS $LIB"
24414
cristy8b350f62009-11-15 23:12:43 +000024415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024416$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024418/* end confdefs.h. */
24419#include <pthread.h>
24420int
24421main ()
24422{
24423 pthread_t th;
24424 pthread_join(th, 0);
24425 pthread_attr_init(0);
24426 pthread_cleanup_push(0, 0);
24427 pthread_create(0,0,0,0);
24428 pthread_cleanup_pop(0);
24429 ;
24430 return 0;
24431}
24432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024434 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024435fi
cristy8b350f62009-11-15 23:12:43 +000024436rm -f core conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024438
cristy8b350f62009-11-15 23:12:43 +000024439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024440$as_echo "${magick_pthread_lib_ok}" >&6; }
24441if test "$magick_pthread_lib_ok" = yes
24442then
24443 PTHREAD_LIBS=-l$lib
24444 :
24445else
24446
24447 :
24448fi
24449
24450LIBS="$save_LIBS"
24451
24452ac_ext=c
24453ac_cpp='$CPP $CPPFLAGS'
24454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24456ac_compiler_gnu=$ac_cv_c_compiler_gnu
24457
24458
24459 fi
24460 done
24461
24462 THREAD_LIBS="$PTHREAD_LIBS"
24463 LIBS="$LIBS $THREAD_LIBS"
24464fi
24465
24466
24467#
24468# Check for umem.
24469#
24470have_umem='no'
24471UMEM_LIBS=''
24472if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo "" >&6; }
24477 failed=0
24478 passed=0
cristy8b350f62009-11-15 23:12:43 +000024479 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24480if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024481 passed=`expr $passed + 1`
24482else
24483 failed=`expr $failed + 1`
24484fi
24485
24486
cristy8b350f62009-11-15 23:12:43 +000024487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024488$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024489if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024490 $as_echo_n "(cached) " >&6
24491else
24492 ac_check_lib_save_LIBS=$LIBS
24493LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495/* end confdefs.h. */
24496
24497/* Override any GCC internal prototype to avoid an error.
24498 Use char because int might match the return type of a GCC
24499 builtin and then its argument prototype would still apply. */
24500#ifdef __cplusplus
24501extern "C"
24502#endif
24503char umem_alloc ();
24504int
24505main ()
24506{
24507return umem_alloc ();
24508 ;
24509 return 0;
24510}
24511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 ac_cv_lib_umem_umem_alloc=yes
24514else
cristy8b350f62009-11-15 23:12:43 +000024515 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024516fi
cristy8b350f62009-11-15 23:12:43 +000024517rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024519LIBS=$ac_check_lib_save_LIBS
24520fi
cristy8b350f62009-11-15 23:12:43 +000024521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024523if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 passed=`expr $passed + 1`
24525else
24526 failed=`expr $failed + 1`
24527fi
24528
cristy8b350f62009-11-15 23:12:43 +000024529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024531if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 $as_echo_n "(cached) " >&6
24533else
24534 ac_check_lib_save_LIBS=$LIBS
24535LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024537/* end confdefs.h. */
24538
24539/* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24542#ifdef __cplusplus
24543extern "C"
24544#endif
24545char umem_free ();
24546int
24547main ()
24548{
24549return umem_free ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_lib_umem_umem_free=yes
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024558fi
cristy8b350f62009-11-15 23:12:43 +000024559rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024561LIBS=$ac_check_lib_save_LIBS
24562fi
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024565if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024566 passed=`expr $passed + 1`
24567else
24568 failed=`expr $failed + 1`
24569fi
24570
cristy8b350f62009-11-15 23:12:43 +000024571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24573 if test $passed -gt 0; then
24574 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo "no -- some components failed test" >&6; }
24577 have_umem='no (failed tests)'
24578 else
24579 UMEM_LIBS='-lumem'
24580 LIBS="$UMEM_LIBS $LIBS"
24581
cristy8b350f62009-11-15 23:12:43 +000024582$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024583
cristy8b350f62009-11-15 23:12:43 +000024584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024585$as_echo "yes" >&6; }
24586 have_umem='yes'
24587 fi
24588 else
cristy8b350f62009-11-15 23:12:43 +000024589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "no" >&6; }
24591 fi
24592fi
24593 if test "$have_umem" = 'yes'; then
24594 HasUMEM_TRUE=
24595 HasUMEM_FALSE='#'
24596else
24597 HasUMEM_TRUE='#'
24598 HasUMEM_FALSE=
24599fi
24600
24601
24602
24603#
24604# Add support for ccmalloc memory debugging library if requested
24605#
24606have_ccmalloc='no'
24607CCMALLOC_LIBS=''
24608if test "$enable_ccmalloc" = 'yes'; then
24609 # Extract the first word of "ccmalloc", so it can be a program name with args.
24610set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024613if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 $as_echo_n "(cached) " >&6
24615else
24616 case $CCMALLOCDelegate in
24617 [\\/]* | ?:[\\/]*)
24618 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24619 ;;
24620 *)
24621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24622for as_dir in $PATH
24623do
24624 IFS=$as_save_IFS
24625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24628 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630 break 2
24631 fi
24632done
cristy8b350f62009-11-15 23:12:43 +000024633 done
cristy3ed852e2009-09-05 21:47:34 +000024634IFS=$as_save_IFS
24635
24636 ;;
24637esac
24638fi
24639CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24640if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024642$as_echo "$CCMALLOCDelegate" >&6; }
24643else
cristy8b350f62009-11-15 23:12:43 +000024644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024645$as_echo "no" >&6; }
24646fi
24647
24648
24649 if test -n "$CCMALLOCDelegate"; then
24650 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24651 OLIBS="$LIBS"
24652 # Assume that gcc is used with ccmalloc.
24653 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024655$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024656if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 $as_echo_n "(cached) " >&6
24658else
24659 ac_check_lib_save_LIBS=$LIBS
24660LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663
24664/* Override any GCC internal prototype to avoid an error.
24665 Use char because int might match the return type of a GCC
24666 builtin and then its argument prototype would still apply. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670char ccmalloc_malloc ();
24671int
24672main ()
24673{
24674return ccmalloc_malloc ();
24675 ;
24676 return 0;
24677}
24678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24681else
cristy8b350f62009-11-15 23:12:43 +000024682 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy8b350f62009-11-15 23:12:43 +000024684rm -f core conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686LIBS=$ac_check_lib_save_LIBS
24687fi
cristy8b350f62009-11-15 23:12:43 +000024688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024690if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24692fi
24693
24694 if test -n "$CCMALLOC_LIBS"; then
24695 LIBS="$OLIBS"
24696 LIBS="$LIBS $CCMALLOC_LIBS"
24697 have_ccmalloc='yes'
24698 else
24699 LIBS="$OLIBS"
24700 fi
24701 fi
24702fi
24703
24704#
24705# Add support for efence memory debugging library if requested
24706#
24707if test "$enable_efence" = 'yes'; then
24708 EFENCE_LIBS='-lefence'
24709 LIBS="$EFENCE_LIBS $LIBS"
24710fi
24711
cristy3ed852e2009-09-05 21:47:34 +000024712
24713#
24714# Check for BZLIB
24715#
24716
24717
24718# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024719if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 withval=$with_bzlib; with_bzlib=$withval
24721else
24722 with_bzlib='yes'
24723fi
24724
24725
24726if test "$with_bzlib" != 'yes'; then
24727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24728fi
24729
24730have_bzlib='no'
24731if test "$with_bzlib" != 'no'; then
24732 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024738$as_echo "" >&6; }
24739 failed=0
24740 passed=0
24741 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024742 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24743if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 passed=`expr $passed + 1`
24745else
24746 failed=`expr $failed + 1`
24747fi
24748
24749
cristy8b350f62009-11-15 23:12:43 +000024750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024751$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024752if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 $as_echo_n "(cached) " >&6
24754else
24755 ac_check_lib_save_LIBS=$LIBS
24756LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024758/* end confdefs.h. */
24759
24760/* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24763#ifdef __cplusplus
24764extern "C"
24765#endif
24766char BZ2_bzDecompress ();
24767int
24768main ()
24769{
24770return BZ2_bzDecompress ();
24771 ;
24772 return 0;
24773}
24774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024779fi
cristy8b350f62009-11-15 23:12:43 +000024780rm -f core conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024782LIBS=$ac_check_lib_save_LIBS
24783fi
cristy8b350f62009-11-15 23:12:43 +000024784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024786if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 found_libbz=`expr $found_libbz + 1`
24788fi
24789
24790 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024792$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024793if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 $as_echo_n "(cached) " >&6
24795else
24796 ac_check_lib_save_LIBS=$LIBS
24797LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799/* end confdefs.h. */
24800
24801/* Override any GCC internal prototype to avoid an error.
24802 Use char because int might match the return type of a GCC
24803 builtin and then its argument prototype would still apply. */
24804#ifdef __cplusplus
24805extern "C"
24806#endif
24807char _imp__BZ2_decompress ();
24808int
24809main ()
24810{
24811return _imp__BZ2_decompress ();
24812 ;
24813 return 0;
24814}
24815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024817 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24818else
cristy8b350f62009-11-15 23:12:43 +000024819 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024820fi
cristy8b350f62009-11-15 23:12:43 +000024821rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024823LIBS=$ac_check_lib_save_LIBS
24824fi
cristy8b350f62009-11-15 23:12:43 +000024825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024827if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 found_libbz=`expr $found_libbz + 1`
24829fi
24830
24831 fi
24832 if test $found_libbz -gt 0; then
24833 passed=`expr $passed + 1`
24834 else
24835 failed=`expr $failed + 1`
24836 fi
cristy8b350f62009-11-15 23:12:43 +000024837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo_n "checking if BZLIB package is complete... " >&6; }
24839 if test $passed -gt 0; then
24840 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024842$as_echo "no -- some components failed test" >&6; }
24843 have_bzlib='no (failed tests)'
24844 else
24845 BZLIB_LIBS='-lbz2'
24846 LIBS="$BZLIB_LIBS $LIBS"
24847
cristy8b350f62009-11-15 23:12:43 +000024848$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024849
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "yes" >&6; }
24852 have_bzlib='yes'
24853 fi
24854 else
cristy8b350f62009-11-15 23:12:43 +000024855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "no" >&6; }
24857 fi
24858fi
24859 if test "$have_bzlib" = 'yes'; then
24860 BZLIB_DELEGATE_TRUE=
24861 BZLIB_DELEGATE_FALSE='#'
24862else
24863 BZLIB_DELEGATE_TRUE='#'
24864 BZLIB_DELEGATE_FALSE=
24865fi
24866
24867
24868
24869#
24870# Find the X11 include and library directories.
24871#
24872IPC_LIBS=''
24873X11_LIBS=''
24874XEXT_LIBS=''
24875XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024877$as_echo_n "checking for X... " >&6; }
24878
24879
24880# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024881if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024882 withval=$with_x;
24883fi
24884
24885# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24886if test "x$with_x" = xno; then
24887 # The user explicitly disabled X.
24888 have_x=disabled
24889else
24890 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024891 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024893 $as_echo_n "(cached) " >&6
24894else
24895 # One or both of the vars are not set, and there is no cached value.
24896ac_x_includes=no ac_x_libraries=no
24897rm -f -r conftest.dir
24898if mkdir conftest.dir; then
24899 cd conftest.dir
24900 cat >Imakefile <<'_ACEOF'
24901incroot:
24902 @echo incroot='${INCROOT}'
24903usrlibdir:
24904 @echo usrlibdir='${USRLIBDIR}'
24905libdir:
24906 @echo libdir='${LIBDIR}'
24907_ACEOF
24908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024909 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024910 for ac_var in incroot usrlibdir libdir; do
24911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24912 done
24913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24914 for ac_extension in a so sl dylib la dll; do
24915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24917 ac_im_usrlibdir=$ac_im_libdir; break
24918 fi
24919 done
24920 # Screen out bogus values from the imake configuration. They are
24921 # bogus both because they are the default anyway, and because
24922 # using them would break gcc on systems where it needs fixed includes.
24923 case $ac_im_incroot in
24924 /usr/include) ac_x_includes= ;;
24925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24926 esac
24927 case $ac_im_usrlibdir in
24928 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24930 esac
24931 fi
24932 cd ..
24933 rm -f -r conftest.dir
24934fi
24935
24936# Standard set of common directories for X headers.
24937# Check X11 before X11Rn because it is often a symlink to the current release.
24938ac_x_header_dirs='
24939/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024940/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024941/usr/X11R6/include
24942/usr/X11R5/include
24943/usr/X11R4/include
24944
24945/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024946/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024947/usr/include/X11R6
24948/usr/include/X11R5
24949/usr/include/X11R4
24950
24951/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024952/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024953/usr/local/X11R6/include
24954/usr/local/X11R5/include
24955/usr/local/X11R4/include
24956
24957/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024958/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024959/usr/local/include/X11R6
24960/usr/local/include/X11R5
24961/usr/local/include/X11R4
24962
24963/usr/X386/include
24964/usr/x386/include
24965/usr/XFree86/include/X11
24966
24967/usr/include
24968/usr/local/include
24969/usr/unsupported/include
24970/usr/athena/include
24971/usr/local/x11r5/include
24972/usr/lpp/Xamples/include
24973
24974/usr/openwin/include
24975/usr/openwin/share/include'
24976
24977if test "$ac_x_includes" = no; then
24978 # Guess where to find include files, by looking for Xlib.h.
24979 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024981/* end confdefs.h. */
24982#include <X11/Xlib.h>
24983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024984if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024985 # We can compile using X headers with no special include directory.
24986ac_x_includes=
24987else
cristyc7083c12009-10-14 03:16:55 +000024988 for ac_dir in $ac_x_header_dirs; do
24989 if test -r "$ac_dir/X11/Xlib.h"; then
24990 ac_x_includes=$ac_dir
24991 break
24992 fi
24993done
24994fi
cristyc7083c12009-10-14 03:16:55 +000024995rm -f conftest.err conftest.$ac_ext
24996fi # $ac_x_includes = no
24997
24998if test "$ac_x_libraries" = no; then
24999 # Check for the libraries.
25000 # See if we find them without any special options.
25001 # Don't add to $LIBS permanently.
25002 ac_save_LIBS=$LIBS
25003 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025005/* end confdefs.h. */
25006#include <X11/Xlib.h>
25007int
25008main ()
25009{
25010XrmInitialize ()
25011 ;
25012 return 0;
25013}
25014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025015if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025016 LIBS=$ac_save_LIBS
25017# We can link X programs with no special library path.
25018ac_x_libraries=
25019else
cristy8b350f62009-11-15 23:12:43 +000025020 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025021for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25022do
25023 # Don't even attempt the hair of trying to link an X program!
25024 for ac_extension in a so sl dylib la dll; do
25025 if test -r "$ac_dir/libX11.$ac_extension"; then
25026 ac_x_libraries=$ac_dir
25027 break 2
25028 fi
25029 done
25030done
25031fi
cristy8b350f62009-11-15 23:12:43 +000025032rm -f core conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025034fi # $ac_x_libraries = no
25035
25036case $ac_x_includes,$ac_x_libraries in #(
25037 no,* | *,no | *\'*)
25038 # Didn't find X, or a directory has "'" in its name.
25039 ac_cv_have_x="have_x=no";; #(
25040 *)
25041 # Record where we found X for the cache.
25042 ac_cv_have_x="have_x=yes\
25043 ac_x_includes='$ac_x_includes'\
25044 ac_x_libraries='$ac_x_libraries'"
25045esac
25046fi
25047;; #(
25048 *) have_x=yes;;
25049 esac
25050 eval "$ac_cv_have_x"
25051fi # $with_x != no
25052
25053if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025055$as_echo "$have_x" >&6; }
25056 no_x=yes
25057else
25058 # If each of the values was on the command line, it overrides each guess.
25059 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25060 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25061 # Update the cache value to reflect the command line values.
25062 ac_cv_have_x="have_x=yes\
25063 ac_x_includes='$x_includes'\
25064 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025066$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25067fi
25068
cristy3ed852e2009-09-05 21:47:34 +000025069if test "$no_x" = yes; then
25070 # Not all programs may use this symbol, but it does not hurt to define it.
25071
cristy8b350f62009-11-15 23:12:43 +000025072$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025073
25074 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25075else
25076 if test -n "$x_includes"; then
25077 X_CFLAGS="$X_CFLAGS -I$x_includes"
25078 fi
25079
25080 # It would also be nice to do this for all -L options, not just this one.
25081 if test -n "$x_libraries"; then
25082 X_LIBS="$X_LIBS -L$x_libraries"
25083 # For Solaris; some versions of Sun CC require a space after -R and
25084 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25087 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25088 ac_xsave_c_werror_flag=$ac_c_werror_flag
25089 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025091/* end confdefs.h. */
25092
25093int
25094main ()
25095{
25096
25097 ;
25098 return 0;
25099}
25100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025101if ac_fn_c_try_link "$LINENO"; then :
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025103$as_echo "no" >&6; }
25104 X_LIBS="$X_LIBS -R$x_libraries"
25105else
cristy8b350f62009-11-15 23:12:43 +000025106 LIBS="$ac_xsave_LIBS -R $x_libraries"
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025108/* end confdefs.h. */
25109
25110int
25111main ()
25112{
25113
25114 ;
25115 return 0;
25116}
25117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118if ac_fn_c_try_link "$LINENO"; then :
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "yes" >&6; }
25121 X_LIBS="$X_LIBS -R $x_libraries"
25122else
cristy8b350f62009-11-15 23:12:43 +000025123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025124$as_echo "neither works" >&6; }
25125fi
cristy8b350f62009-11-15 23:12:43 +000025126rm -f core conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025128fi
cristy8b350f62009-11-15 23:12:43 +000025129rm -f core conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025131 ac_c_werror_flag=$ac_xsave_c_werror_flag
25132 LIBS=$ac_xsave_LIBS
25133 fi
25134
25135 # Check for system-dependent libraries X programs must link with.
25136 # Do this before checking for the system-independent R6 libraries
25137 # (-lICE), since we may need -lsocket or whatever for X linking.
25138
25139 if test "$ISC" = yes; then
25140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25141 else
25142 # Martyn Johnson says this is needed for Ultrix, if the X
25143 # libraries were built with DECnet support. And Karl Berry says
25144 # the Alpha needs dnet_stub (dnet does not exist).
25145 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025147/* end confdefs.h. */
25148
25149/* Override any GCC internal prototype to avoid an error.
25150 Use char because int might match the return type of a GCC
25151 builtin and then its argument prototype would still apply. */
25152#ifdef __cplusplus
25153extern "C"
25154#endif
25155char XOpenDisplay ();
25156int
25157main ()
25158{
25159return XOpenDisplay ();
25160 ;
25161 return 0;
25162}
25163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025165
cristy8b350f62009-11-15 23:12:43 +000025166else
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025168$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025169if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025170 $as_echo_n "(cached) " >&6
25171else
25172 ac_check_lib_save_LIBS=$LIBS
25173LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025175/* end confdefs.h. */
25176
25177/* Override any GCC internal prototype to avoid an error.
25178 Use char because int might match the return type of a GCC
25179 builtin and then its argument prototype would still apply. */
25180#ifdef __cplusplus
25181extern "C"
25182#endif
25183char dnet_ntoa ();
25184int
25185main ()
25186{
25187return dnet_ntoa ();
25188 ;
25189 return 0;
25190}
25191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025193 ac_cv_lib_dnet_dnet_ntoa=yes
25194else
cristy8b350f62009-11-15 23:12:43 +000025195 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025196fi
cristy8b350f62009-11-15 23:12:43 +000025197rm -f core conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025199LIBS=$ac_check_lib_save_LIBS
25200fi
cristy8b350f62009-11-15 23:12:43 +000025201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025202$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025203if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25205fi
25206
25207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025209$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025210if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 $as_echo_n "(cached) " >&6
25212else
25213 ac_check_lib_save_LIBS=$LIBS
25214LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025216/* end confdefs.h. */
25217
25218/* Override any GCC internal prototype to avoid an error.
25219 Use char because int might match the return type of a GCC
25220 builtin and then its argument prototype would still apply. */
25221#ifdef __cplusplus
25222extern "C"
25223#endif
25224char dnet_ntoa ();
25225int
25226main ()
25227{
25228return dnet_ntoa ();
25229 ;
25230 return 0;
25231}
25232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25235else
cristy8b350f62009-11-15 23:12:43 +000025236 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025237fi
cristy8b350f62009-11-15 23:12:43 +000025238rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025240LIBS=$ac_check_lib_save_LIBS
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025244if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25246fi
25247
25248 fi
25249fi
cristy8b350f62009-11-15 23:12:43 +000025250rm -f core conftest.err conftest.$ac_objext \
25251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025252 LIBS="$ac_xsave_LIBS"
25253
25254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25255 # to get the SysV transport functions.
25256 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25257 # needs -lnsl.
25258 # The nsl library prevents programs from opening the X display
25259 # on Irix 5.2, according to T.E. Dickey.
25260 # The functions gethostbyname, getservbyname, and inet_addr are
25261 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025262 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25263if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025264
cristy3ed852e2009-09-05 21:47:34 +000025265fi
25266
cristy3ed852e2009-09-05 21:47:34 +000025267 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025270if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025271 $as_echo_n "(cached) " >&6
25272else
25273 ac_check_lib_save_LIBS=$LIBS
25274LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char gethostbyname ();
25285int
25286main ()
25287{
25288return gethostbyname ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025294 ac_cv_lib_nsl_gethostbyname=yes
25295else
cristy8b350f62009-11-15 23:12:43 +000025296 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025297fi
cristy8b350f62009-11-15 23:12:43 +000025298rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025300LIBS=$ac_check_lib_save_LIBS
25301fi
cristy8b350f62009-11-15 23:12:43 +000025302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025304if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25306fi
25307
25308 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025310$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025311if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 $as_echo_n "(cached) " >&6
25313else
25314 ac_check_lib_save_LIBS=$LIBS
25315LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025317/* end confdefs.h. */
25318
25319/* Override any GCC internal prototype to avoid an error.
25320 Use char because int might match the return type of a GCC
25321 builtin and then its argument prototype would still apply. */
25322#ifdef __cplusplus
25323extern "C"
25324#endif
25325char gethostbyname ();
25326int
25327main ()
25328{
25329return gethostbyname ();
25330 ;
25331 return 0;
25332}
25333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 ac_cv_lib_bsd_gethostbyname=yes
25336else
cristy8b350f62009-11-15 23:12:43 +000025337 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025338fi
cristy8b350f62009-11-15 23:12:43 +000025339rm -f core conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025341LIBS=$ac_check_lib_save_LIBS
25342fi
cristy8b350f62009-11-15 23:12:43 +000025343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025344$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025345if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25347fi
25348
25349 fi
25350 fi
25351
25352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25353 # socket/setsockopt and other routines are undefined under SCO ODT
25354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25355 # on later versions), says Simon Leinen: it contains gethostby*
25356 # variants that don't use the name server (or something). -lsocket
25357 # must be given before -lnsl if both are needed. We assume that
25358 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025359 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25360if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361
cristy3ed852e2009-09-05 21:47:34 +000025362fi
25363
cristy3ed852e2009-09-05 21:47:34 +000025364 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025367if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 $as_echo_n "(cached) " >&6
25369else
25370 ac_check_lib_save_LIBS=$LIBS
25371LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025373/* end confdefs.h. */
25374
25375/* Override any GCC internal prototype to avoid an error.
25376 Use char because int might match the return type of a GCC
25377 builtin and then its argument prototype would still apply. */
25378#ifdef __cplusplus
25379extern "C"
25380#endif
25381char connect ();
25382int
25383main ()
25384{
25385return connect ();
25386 ;
25387 return 0;
25388}
25389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 ac_cv_lib_socket_connect=yes
25392else
cristy8b350f62009-11-15 23:12:43 +000025393 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025394fi
cristy8b350f62009-11-15 23:12:43 +000025395rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025397LIBS=$ac_check_lib_save_LIBS
25398fi
cristy8b350f62009-11-15 23:12:43 +000025399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025401if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25403fi
25404
25405 fi
25406
25407 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025408 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25409if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025410
cristy3ed852e2009-09-05 21:47:34 +000025411fi
25412
cristy3ed852e2009-09-05 21:47:34 +000025413 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025415$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025416if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 $as_echo_n "(cached) " >&6
25418else
25419 ac_check_lib_save_LIBS=$LIBS
25420LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025422/* end confdefs.h. */
25423
25424/* Override any GCC internal prototype to avoid an error.
25425 Use char because int might match the return type of a GCC
25426 builtin and then its argument prototype would still apply. */
25427#ifdef __cplusplus
25428extern "C"
25429#endif
25430char remove ();
25431int
25432main ()
25433{
25434return remove ();
25435 ;
25436 return 0;
25437}
25438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 ac_cv_lib_posix_remove=yes
25441else
cristy8b350f62009-11-15 23:12:43 +000025442 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025443fi
cristy8b350f62009-11-15 23:12:43 +000025444rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025446LIBS=$ac_check_lib_save_LIBS
25447fi
cristy8b350f62009-11-15 23:12:43 +000025448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025450if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25452fi
25453
25454 fi
25455
25456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025457 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25458if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025459
cristy3ed852e2009-09-05 21:47:34 +000025460fi
25461
cristy3ed852e2009-09-05 21:47:34 +000025462 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025464$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025465if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025466 $as_echo_n "(cached) " >&6
25467else
25468 ac_check_lib_save_LIBS=$LIBS
25469LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025471/* end confdefs.h. */
25472
25473/* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479char shmat ();
25480int
25481main ()
25482{
25483return shmat ();
25484 ;
25485 return 0;
25486}
25487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 ac_cv_lib_ipc_shmat=yes
25490else
cristy8b350f62009-11-15 23:12:43 +000025491 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025492fi
cristy8b350f62009-11-15 23:12:43 +000025493rm -f core conftest.err conftest.$ac_objext \
25494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025495LIBS=$ac_check_lib_save_LIBS
25496fi
cristy8b350f62009-11-15 23:12:43 +000025497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025499if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25501fi
25502
25503 fi
25504 fi
25505
25506 # Check for libraries that X11R6 Xt/Xaw programs need.
25507 ac_save_LDFLAGS=$LDFLAGS
25508 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25509 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25510 # check for ICE first), but we must link in the order -lSM -lICE or
25511 # we get undefined symbols. So assume we have SM if we have ICE.
25512 # These have to be linked with before -lX11, unlike the other
25513 # libraries we check for below, so use a different variable.
25514 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025516$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025517if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025518 $as_echo_n "(cached) " >&6
25519else
25520 ac_check_lib_save_LIBS=$LIBS
25521LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025523/* end confdefs.h. */
25524
25525/* Override any GCC internal prototype to avoid an error.
25526 Use char because int might match the return type of a GCC
25527 builtin and then its argument prototype would still apply. */
25528#ifdef __cplusplus
25529extern "C"
25530#endif
25531char IceConnectionNumber ();
25532int
25533main ()
25534{
25535return IceConnectionNumber ();
25536 ;
25537 return 0;
25538}
25539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 ac_cv_lib_ICE_IceConnectionNumber=yes
25542else
cristy8b350f62009-11-15 23:12:43 +000025543 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025544fi
cristy8b350f62009-11-15 23:12:43 +000025545rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025547LIBS=$ac_check_lib_save_LIBS
25548fi
cristy8b350f62009-11-15 23:12:43 +000025549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025551if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25553fi
25554
25555 LDFLAGS=$ac_save_LDFLAGS
25556
25557fi
25558
25559if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025563$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo "" >&6; }
25566 LDFLAGS="$LDFLAGS $X_LIBS"
25567 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25568 LIBS="$X11_LIBS $LIBS"
25569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25570
25571
cristy8b350f62009-11-15 23:12:43 +000025572$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025573
25574 #
25575 # Check for X11 shared memory extension
25576 #
25577 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025578 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25579if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025580 have_shmctl='yes'
25581fi
25582
25583 if test "$have_shmctl" != 'yes'; then
25584 PERSIST_LIBS=$LIBS
25585 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587/* end confdefs.h. */
25588
25589/* Override any GCC internal prototype to avoid an error.
25590 Use char because int might match the return type of a GCC
25591 builtin and then its argument prototype would still apply. */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595char shmctl ();
25596int
25597main ()
25598{
25599return shmctl ();
25600 ;
25601 return 0;
25602}
25603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025605 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025606fi
cristy8b350f62009-11-15 23:12:43 +000025607rm -f core conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025609 LIBS=$PERSIST_LIBS
25610 fi
25611
25612 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025614$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025615if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 $as_echo_n "(cached) " >&6
25617else
25618 ac_check_lib_save_LIBS=$LIBS
25619LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025621/* end confdefs.h. */
25622
25623/* Override any GCC internal prototype to avoid an error.
25624 Use char because int might match the return type of a GCC
25625 builtin and then its argument prototype would still apply. */
25626#ifdef __cplusplus
25627extern "C"
25628#endif
25629char XShmAttach ();
25630int
25631main ()
25632{
25633return XShmAttach ();
25634 ;
25635 return 0;
25636}
25637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 ac_cv_lib_Xext_XShmAttach=yes
25640else
cristy8b350f62009-11-15 23:12:43 +000025641 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025642fi
cristy8b350f62009-11-15 23:12:43 +000025643rm -f core conftest.err conftest.$ac_objext \
25644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025645LIBS=$ac_check_lib_save_LIBS
25646fi
cristy8b350f62009-11-15 23:12:43 +000025647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025649if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025651$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025652
25653fi
25654
25655 fi
25656
25657 #
25658 # Check for X11 shape extension
25659 #
cristy8b350f62009-11-15 23:12:43 +000025660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025661$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025662if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025663 $as_echo_n "(cached) " >&6
25664else
25665 ac_check_lib_save_LIBS=$LIBS
25666LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025668/* end confdefs.h. */
25669
25670/* Override any GCC internal prototype to avoid an error.
25671 Use char because int might match the return type of a GCC
25672 builtin and then its argument prototype would still apply. */
25673#ifdef __cplusplus
25674extern "C"
25675#endif
25676char XShapeCombineMask ();
25677int
25678main ()
25679{
25680return XShapeCombineMask ();
25681 ;
25682 return 0;
25683}
25684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025686 ac_cv_lib_Xext_XShapeCombineMask=yes
25687else
cristy8b350f62009-11-15 23:12:43 +000025688 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025689fi
cristy8b350f62009-11-15 23:12:43 +000025690rm -f core conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025692LIBS=$ac_check_lib_save_LIBS
25693fi
cristy8b350f62009-11-15 23:12:43 +000025694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025695$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025696if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025697 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025698$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025699
25700fi
25701
cristy8b350f62009-11-15 23:12:43 +000025702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025703$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025704if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 $as_echo_n "(cached) " >&6
25706else
25707 ac_check_lib_save_LIBS=$LIBS
25708LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025710/* end confdefs.h. */
25711
25712/* Override any GCC internal prototype to avoid an error.
25713 Use char because int might match the return type of a GCC
25714 builtin and then its argument prototype would still apply. */
25715#ifdef __cplusplus
25716extern "C"
25717#endif
25718char XtSetEventDispatcher ();
25719int
25720main ()
25721{
25722return XtSetEventDispatcher ();
25723 ;
25724 return 0;
25725}
25726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25729else
cristy8b350f62009-11-15 23:12:43 +000025730 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025731fi
cristy8b350f62009-11-15 23:12:43 +000025732rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025734LIBS=$ac_check_lib_save_LIBS
25735fi
cristy8b350f62009-11-15 23:12:43 +000025736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025737$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025738if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025739 XT_LIBS='-lXt'
25740fi
25741
25742 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25743fi
25744if test "$no_x" != 'yes'; then
25745 have_x='yes'
25746else
25747 have_x='no'
25748fi
25749 if test "$have_x" = 'yes'; then
25750 X11_DELEGATE_TRUE=
25751 X11_DELEGATE_FALSE='#'
25752else
25753 X11_DELEGATE_TRUE='#'
25754 X11_DELEGATE_FALSE=
25755fi
25756
25757
25758
25759
25760
25761#
25762# Check for ZLIB
25763#
25764
25765# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025766if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 withval=$with_zlib; with_zlib=$withval
25768else
25769 with_zlib='yes'
25770fi
25771
25772
25773if test "$with_zlib" != 'yes'; then
25774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25775fi
25776
25777have_zlib='no'
25778ZLIB_LIBS=''
25779if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025781$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025783$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025785$as_echo "" >&6; }
25786 ZLIB_LIBS=''
25787 failed=0
25788 passed=0
cristy8b350f62009-11-15 23:12:43 +000025789 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25790if test "x$ac_cv_header_zconf_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 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25798if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025799 passed=`expr $passed + 1`
25800else
25801 failed=`expr $failed + 1`
25802fi
25803
25804
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025807if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 $as_echo_n "(cached) " >&6
25809else
25810 ac_check_lib_save_LIBS=$LIBS
25811LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025813/* end confdefs.h. */
25814
25815/* Override any GCC internal prototype to avoid an error.
25816 Use char because int might match the return type of a GCC
25817 builtin and then its argument prototype would still apply. */
25818#ifdef __cplusplus
25819extern "C"
25820#endif
25821char compress ();
25822int
25823main ()
25824{
25825return compress ();
25826 ;
25827 return 0;
25828}
25829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 ac_cv_lib_z_compress=yes
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025834fi
cristy8b350f62009-11-15 23:12:43 +000025835rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025837LIBS=$ac_check_lib_save_LIBS
25838fi
cristy8b350f62009-11-15 23:12:43 +000025839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025841if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 passed=`expr $passed + 1`
25843else
25844 failed=`expr $failed + 1`
25845fi
25846
cristy8b350f62009-11-15 23:12:43 +000025847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025849if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025850 $as_echo_n "(cached) " >&6
25851else
25852 ac_check_lib_save_LIBS=$LIBS
25853LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855/* end confdefs.h. */
25856
25857/* Override any GCC internal prototype to avoid an error.
25858 Use char because int might match the return type of a GCC
25859 builtin and then its argument prototype would still apply. */
25860#ifdef __cplusplus
25861extern "C"
25862#endif
25863char uncompress ();
25864int
25865main ()
25866{
25867return uncompress ();
25868 ;
25869 return 0;
25870}
25871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 ac_cv_lib_z_uncompress=yes
25874else
cristy8b350f62009-11-15 23:12:43 +000025875 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025876fi
cristy8b350f62009-11-15 23:12:43 +000025877rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025879LIBS=$ac_check_lib_save_LIBS
25880fi
cristy8b350f62009-11-15 23:12:43 +000025881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 passed=`expr $passed + 1`
25885else
25886 failed=`expr $failed + 1`
25887fi
25888
cristy8b350f62009-11-15 23:12:43 +000025889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025891if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 $as_echo_n "(cached) " >&6
25893else
25894 ac_check_lib_save_LIBS=$LIBS
25895LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897/* end confdefs.h. */
25898
25899/* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25902#ifdef __cplusplus
25903extern "C"
25904#endif
25905char deflate ();
25906int
25907main ()
25908{
25909return deflate ();
25910 ;
25911 return 0;
25912}
25913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 ac_cv_lib_z_deflate=yes
25916else
cristy8b350f62009-11-15 23:12:43 +000025917 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025918fi
cristy8b350f62009-11-15 23:12:43 +000025919rm -f core conftest.err conftest.$ac_objext \
25920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025921LIBS=$ac_check_lib_save_LIBS
25922fi
cristy8b350f62009-11-15 23:12:43 +000025923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025924$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025925if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025926 passed=`expr $passed + 1`
25927else
25928 failed=`expr $failed + 1`
25929fi
25930
cristy8b350f62009-11-15 23:12:43 +000025931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 $as_echo_n "(cached) " >&6
25935else
25936 ac_check_lib_save_LIBS=$LIBS
25937LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025939/* end confdefs.h. */
25940
25941/* Override any GCC internal prototype to avoid an error.
25942 Use char because int might match the return type of a GCC
25943 builtin and then its argument prototype would still apply. */
25944#ifdef __cplusplus
25945extern "C"
25946#endif
25947char inflate ();
25948int
25949main ()
25950{
25951return inflate ();
25952 ;
25953 return 0;
25954}
25955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_lib_z_inflate=yes
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025960fi
cristy8b350f62009-11-15 23:12:43 +000025961rm -f core conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025963LIBS=$ac_check_lib_save_LIBS
25964fi
cristy8b350f62009-11-15 23:12:43 +000025965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025967if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 passed=`expr $passed + 1`
25969else
25970 failed=`expr $failed + 1`
25971fi
25972
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025975if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025976 $as_echo_n "(cached) " >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025981/* end confdefs.h. */
25982
25983/* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25986#ifdef __cplusplus
25987extern "C"
25988#endif
25989char gzseek ();
25990int
25991main ()
25992{
25993return gzseek ();
25994 ;
25995 return 0;
25996}
25997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 ac_cv_lib_z_gzseek=yes
26000else
cristy8b350f62009-11-15 23:12:43 +000026001 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026002fi
cristy8b350f62009-11-15 23:12:43 +000026003rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026005LIBS=$ac_check_lib_save_LIBS
26006fi
cristy8b350f62009-11-15 23:12:43 +000026007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026009if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 passed=`expr $passed + 1`
26011else
26012 failed=`expr $failed + 1`
26013fi
26014
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026017if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 $as_echo_n "(cached) " >&6
26019else
26020 ac_check_lib_save_LIBS=$LIBS
26021LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026023/* end confdefs.h. */
26024
26025/* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031char gztell ();
26032int
26033main ()
26034{
26035return gztell ();
26036 ;
26037 return 0;
26038}
26039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_lib_z_gztell=yes
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026044fi
cristy8b350f62009-11-15 23:12:43 +000026045rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047LIBS=$ac_check_lib_save_LIBS
26048fi
cristy8b350f62009-11-15 23:12:43 +000026049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026051if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 passed=`expr $passed + 1`
26053else
26054 failed=`expr $failed + 1`
26055fi
26056
cristy8b350f62009-11-15 23:12:43 +000026057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo_n "checking if ZLIB package is complete... " >&6; }
26059 if test $passed -gt 0; then
26060 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo "no -- some components failed test" >&6; }
26063 have_zlib='no (failed tests)'
26064 else
26065 ZLIB_LIBS='-lz'
26066 LIBS="$ZLIB_LIBS $LIBS"
26067
cristy8b350f62009-11-15 23:12:43 +000026068$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026069
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "yes" >&6; }
26072 have_zlib='yes'
26073 fi
26074 else
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo "no" >&6; }
26077 fi
26078fi
26079 if test "$have_zlib" = 'yes'; then
26080 ZLIB_DELEGATE_TRUE=
26081 ZLIB_DELEGATE_FALSE='#'
26082else
26083 ZLIB_DELEGATE_TRUE='#'
26084 ZLIB_DELEGATE_FALSE=
26085fi
26086
26087
26088
26089#
26090# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26091#
26092LIB_DL=''
26093if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026095$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026096if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026097 $as_echo_n "(cached) " >&6
26098else
26099 ac_check_lib_save_LIBS=$LIBS
26100LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026102/* end confdefs.h. */
26103
26104/* Override any GCC internal prototype to avoid an error.
26105 Use char because int might match the return type of a GCC
26106 builtin and then its argument prototype would still apply. */
26107#ifdef __cplusplus
26108extern "C"
26109#endif
26110char dlopen ();
26111int
26112main ()
26113{
26114return dlopen ();
26115 ;
26116 return 0;
26117}
26118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026119if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 ac_cv_lib_dl_dlopen=yes
26121else
cristy8b350f62009-11-15 23:12:43 +000026122 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026123fi
cristy8b350f62009-11-15 23:12:43 +000026124rm -f core conftest.err conftest.$ac_objext \
26125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026126LIBS=$ac_check_lib_save_LIBS
26127fi
cristy8b350f62009-11-15 23:12:43 +000026128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026129$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026130if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 LIB_DL='-ldl'
26132fi
26133
26134 LIBS="$LIB_DL $LIBS"
26135fi
26136
26137
26138
26139#
26140# Check for Autotrace delegate library.
26141#
26142
26143# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026144if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 withval=$with_autotrace; with_autotrace=$withval
26146else
26147 with_autotrace='no'
26148fi
26149
26150
26151if test "$with_autotrace" != 'yes'; then
26152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26153fi
26154
26155have_autotrace='no'
26156AUTOTRACE_CFLAGS=""
26157AUTOTRACE_LIBS=""
26158AUTOTRACE_PKG=""
26159if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo "-------------------------------------------------------------" >&6; }
26162
26163pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for AUTOTRACE... " >&6; }
26166
26167if test -n "$AUTOTRACE_CFLAGS"; then
26168 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26169 elif test -n "$PKG_CONFIG"; then
26170 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026172 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26173 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026176 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26177else
26178 pkg_failed=yes
26179fi
26180 else
26181 pkg_failed=untried
26182fi
26183if test -n "$AUTOTRACE_LIBS"; then
26184 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26185 elif test -n "$PKG_CONFIG"; then
26186 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026188 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26189 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026192 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26193else
26194 pkg_failed=yes
26195fi
26196 else
26197 pkg_failed=untried
26198fi
26199
26200
26201
26202if test $pkg_failed = yes; then
26203
26204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26205 _pkg_short_errors_supported=yes
26206else
26207 _pkg_short_errors_supported=no
26208fi
26209 if test $_pkg_short_errors_supported = yes; then
26210 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26211 else
26212 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26213 fi
26214 # Put the nasty error message in config.log where it belongs
26215 echo "$AUTOTRACE_PKG_ERRORS" >&5
26216
cristy8b350f62009-11-15 23:12:43 +000026217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo "no" >&6; }
26219 have_autotrace=no
26220elif test $pkg_failed = untried; then
26221 have_autotrace=no
26222else
26223 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26224 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo "yes" >&6; }
26227 have_autotrace=yes
26228fi
cristy8b350f62009-11-15 23:12:43 +000026229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026230$as_echo "" >&6; }
26231fi
26232
26233if test "$have_autotrace" = 'yes'; then
26234 failed=0
26235
cristy8b350f62009-11-15 23:12:43 +000026236$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026237
26238 if test "$with_modules" = 'no'; then
26239 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26240 fi
26241fi
26242
26243 if test "$have_autotrace" = 'yes'; then
26244 AUTOTRACE_DELEGATE_TRUE=
26245 AUTOTRACE_DELEGATE_FALSE='#'
26246else
26247 AUTOTRACE_DELEGATE_TRUE='#'
26248 AUTOTRACE_DELEGATE_FALSE=
26249fi
26250
26251
26252
26253
26254
26255#
26256# Check for Display Postscript delegate library.
26257#
26258
26259# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026260if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026261 withval=$with_dps; with_dps=$withval
26262else
26263 with_dps='yes'
26264fi
26265
26266
26267if test "$with_dps" != 'yes'; then
26268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26269fi
26270
26271have_dps='no'
26272DPS_LIBS=''
26273if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026279$as_echo "" >&6; }
26280 failed=0
26281 passed=0
26282 PERSIST_CPPFLAGS="$CPPFLAGS"
26283 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026284 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26285if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026286 passed=`expr $passed + 1`
26287else
26288 failed=`expr $failed + 1`
26289fi
26290
26291
26292 # DPS issues:
26293 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26294 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26295 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26296 # ImageMagick itself doesn't use -lXt.
26297 have_libdps='no'
26298 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026301if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 $as_echo_n "(cached) " >&6
26303else
26304 ac_check_lib_save_LIBS=$LIBS
26305LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026307/* end confdefs.h. */
26308
26309/* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26312#ifdef __cplusplus
26313extern "C"
26314#endif
26315char DPSInitialize ();
26316int
26317main ()
26318{
26319return DPSInitialize ();
26320 ;
26321 return 0;
26322}
26323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 ac_cv_lib_dps_DPSInitialize=yes
26326else
cristy8b350f62009-11-15 23:12:43 +000026327 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026328fi
cristy8b350f62009-11-15 23:12:43 +000026329rm -f core conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026331LIBS=$ac_check_lib_save_LIBS
26332fi
cristy8b350f62009-11-15 23:12:43 +000026333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026334$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026335if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 have_libdps='yes'
26337else
26338 have_libdps='no'
26339fi
26340
26341 if test "$have_libdps" != 'yes'; then
26342 # Unset cache variable so we can try again.
26343 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026346if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 $as_echo_n "(cached) " >&6
26348else
26349 ac_check_lib_save_LIBS=$LIBS
26350LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026352/* end confdefs.h. */
26353
26354/* Override any GCC internal prototype to avoid an error.
26355 Use char because int might match the return type of a GCC
26356 builtin and then its argument prototype would still apply. */
26357#ifdef __cplusplus
26358extern "C"
26359#endif
26360char DPSInitialize ();
26361int
26362main ()
26363{
26364return DPSInitialize ();
26365 ;
26366 return 0;
26367}
26368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 ac_cv_lib_dps_DPSInitialize=yes
26371else
cristy8b350f62009-11-15 23:12:43 +000026372 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026373fi
cristy8b350f62009-11-15 23:12:43 +000026374rm -f core conftest.err conftest.$ac_objext \
26375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026376LIBS=$ac_check_lib_save_LIBS
26377fi
cristy8b350f62009-11-15 23:12:43 +000026378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026380if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 have_libdps='yes'
26382else
26383 have_libdps='no'
26384fi
26385
26386 if test "$have_libdps" = 'yes'; then
26387 LIBDPS_XT='-lXt'
26388 fi
26389 fi
26390 if test "$have_libdps" = 'yes'; then
26391 passed=`expr $passed + 1`
26392 else
26393 failed=`expr $failed + 1`
26394 fi
cristy8b350f62009-11-15 23:12:43 +000026395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026397if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026398 $as_echo_n "(cached) " >&6
26399else
26400 ac_check_lib_save_LIBS=$LIBS
26401LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026403/* end confdefs.h. */
26404
26405/* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26408#ifdef __cplusplus
26409extern "C"
26410#endif
26411char XDPSPixelsPerPoint ();
26412int
26413main ()
26414{
26415return XDPSPixelsPerPoint ();
26416 ;
26417 return 0;
26418}
26419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26422else
cristy8b350f62009-11-15 23:12:43 +000026423 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026424fi
cristy8b350f62009-11-15 23:12:43 +000026425rm -f core conftest.err conftest.$ac_objext \
26426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026427LIBS=$ac_check_lib_save_LIBS
26428fi
cristy8b350f62009-11-15 23:12:43 +000026429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026431if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026432 passed=`expr $passed + 1`
26433else
26434 failed=`expr $failed + 1`
26435fi
26436
cristy8b350f62009-11-15 23:12:43 +000026437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo_n "checking if DPS package is complete... " >&6; }
26439 if test $passed -gt 0; then
26440 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026442$as_echo "no -- some components failed test" >&6; }
26443 have_dps='no (failed tests)'
26444 CPPFLAGS="$PERSIST_CPPFLAGS"
26445 else
26446 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26447 LIBS="$DPS_LIBS $LIBS"
26448
cristy8b350f62009-11-15 23:12:43 +000026449$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026450
cristy8b350f62009-11-15 23:12:43 +000026451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo "yes" >&6; }
26453 have_dps='yes'
26454 fi
26455 else
cristy8b350f62009-11-15 23:12:43 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo "no" >&6; }
26458 CPPFLAGS=$PERSIST_CPPFLAGS
26459 fi
26460fi
26461 if test "$have_dps" = 'yes'; then
26462 DPS_DELEGATE_TRUE=
26463 DPS_DELEGATE_FALSE='#'
26464else
26465 DPS_DELEGATE_TRUE='#'
26466 DPS_DELEGATE_FALSE=
26467fi
26468
26469
26470
26471
26472#
26473# Check for DJVU delegate library.
26474#
26475
26476# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026477if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 withval=$with_djvu; with_djvu=$withval
26479else
26480 with_djvu='yes'
26481fi
26482
26483
26484if test "$with_djvu" != 'yes'; then
26485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26486fi
26487
26488have_djvu='no'
26489DJVU_LIBS=''
26490if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo "" >&6; }
26497 failed=0
26498 passed=0
cristy8b350f62009-11-15 23:12:43 +000026499 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26500if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 passed=`expr $passed + 1`
26502else
26503 failed=`expr $failed + 1`
26504fi
26505
26506
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026509if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 $as_echo_n "(cached) " >&6
26511else
26512 ac_check_lib_save_LIBS=$LIBS
26513LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026515/* end confdefs.h. */
26516
26517/* Override any GCC internal prototype to avoid an error.
26518 Use char because int might match the return type of a GCC
26519 builtin and then its argument prototype would still apply. */
26520#ifdef __cplusplus
26521extern "C"
26522#endif
26523char ddjvu_context_create ();
26524int
26525main ()
26526{
26527return ddjvu_context_create ();
26528 ;
26529 return 0;
26530}
26531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026533 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26534else
cristy8b350f62009-11-15 23:12:43 +000026535 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026536fi
cristy8b350f62009-11-15 23:12:43 +000026537rm -f core conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026539LIBS=$ac_check_lib_save_LIBS
26540fi
cristy8b350f62009-11-15 23:12:43 +000026541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026543if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026544 passed=`expr $passed + 1`
26545else
26546 failed=`expr $failed + 1`
26547fi
26548
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo_n "checking if DJVU package is complete... " >&6; }
26551 if test $passed -gt 0; then
26552 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo "no -- some components failed test" >&6; }
26555 have_djvu='no (failed tests)'
26556 else
26557 DJVU_LIBS='-ldjvulibre'
26558 LIBS="$DJVU_LIBS $LIBS"
26559
cristy8b350f62009-11-15 23:12:43 +000026560$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026561
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo "yes" >&6; }
26564 have_djvu='yes'
26565 fi
26566 else
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo "no" >&6; }
26569 fi
26570fi
26571 if test "$have_djvu" = 'yes'; then
26572 DJVU_DELEGATE_TRUE=
26573 DJVU_DELEGATE_FALSE='#'
26574else
26575 DJVU_DELEGATE_TRUE='#'
26576 DJVU_DELEGATE_FALSE=
26577fi
26578
26579
26580
26581
26582#
cristy430a7312010-01-21 20:44:04 +000026583# Set DejaVu font directory.
26584#
26585
26586# Check whether --with-dejavu-font-dir was given.
26587if test "${with_dejavu_font_dir+set}" = set; then :
26588 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26589else
26590 with_dejavu_font_dir='default'
26591fi
26592
26593
26594if test "$with_dejavu_font_dir" != 'default'; then
26595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26596fi
26597
26598
26599#
cristy3ed852e2009-09-05 21:47:34 +000026600# Check for FFTW delegate library.
26601#
26602
26603# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026604if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 withval=$with_fftw; with_fftw=$withval
26606else
26607 with_fftw='yes'
26608fi
26609
26610
26611if test "$with_fftw" != 'yes'; then
26612 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26613fi
26614
26615have_fftw='no'
26616FFTW_LIBS=''
26617if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026623$as_echo "" >&6; }
26624 failed=0
26625 passed=0
cristy8b350f62009-11-15 23:12:43 +000026626 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26627if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 passed=`expr $passed + 1`
26629else
26630 failed=`expr $failed + 1`
26631fi
26632
26633
cristy8b350f62009-11-15 23:12:43 +000026634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026635$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026636if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 $as_echo_n "(cached) " >&6
26638else
26639 ac_check_lib_save_LIBS=$LIBS
26640LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026642/* end confdefs.h. */
26643
26644/* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply. */
26647#ifdef __cplusplus
26648extern "C"
26649#endif
26650char fftw_execute ();
26651int
26652main ()
26653{
26654return fftw_execute ();
26655 ;
26656 return 0;
26657}
26658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 ac_cv_lib_fftw3_fftw_execute=yes
26661else
cristy8b350f62009-11-15 23:12:43 +000026662 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026663fi
cristy8b350f62009-11-15 23:12:43 +000026664rm -f core conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026666LIBS=$ac_check_lib_save_LIBS
26667fi
cristy8b350f62009-11-15 23:12:43 +000026668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026670if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026671 passed=`expr $passed + 1`
26672else
26673 failed=`expr $failed + 1`
26674fi
26675
cristy8b350f62009-11-15 23:12:43 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking if FFTW package is complete... " >&6; }
26678 if test $passed -gt 0; then
26679 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "no -- some components failed test" >&6; }
26682 have_fftw='no (failed tests)'
26683 else
26684 FFTW_LIBS='-lfftw3'
26685 LIBS="$FFTW_LIBS $LIBS"
26686
cristy8b350f62009-11-15 23:12:43 +000026687$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026688
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "yes" >&6; }
26691 have_fftw='yes'
26692 fi
26693 else
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo "no" >&6; }
26696 fi
26697fi
26698 if test "$have_fftw" = 'yes'; then
26699 FFTW_DELEGATE_TRUE=
26700 FFTW_DELEGATE_FALSE='#'
26701else
26702 FFTW_DELEGATE_TRUE='#'
26703 FFTW_DELEGATE_FALSE=
26704fi
26705
26706
26707
26708
26709#
26710# Check for FlashPIX delegate library.
26711#
26712
26713# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026714if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026715 withval=$with_fpx; with_fpx=$withval
26716else
26717 with_fpx='yes'
26718fi
26719
26720
26721if test "$with_fpx" != 'yes'; then
26722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26723fi
26724
26725have_fpx='no'
26726FPX_LIBS=''
26727if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "" >&6; }
26734 failed=0
26735 passed=0
26736 ac_ext=cpp
26737ac_cpp='$CXXCPP $CPPFLAGS'
26738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26741
26742
cristy8b350f62009-11-15 23:12:43 +000026743ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26744if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 passed=`expr $passed + 1`
26746else
26747 failed=`expr $failed + 1`
26748fi
26749
26750
cristy8b350f62009-11-15 23:12:43 +000026751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026753if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 $as_echo_n "(cached) " >&6
26755else
26756 ac_check_lib_save_LIBS=$LIBS
26757LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759/* end confdefs.h. */
26760
26761/* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26764#ifdef __cplusplus
26765extern "C"
26766#endif
26767char FPX_OpenImageByFilename ();
26768int
26769main ()
26770{
26771return FPX_OpenImageByFilename ();
26772 ;
26773 return 0;
26774}
26775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026776if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26778else
cristy8b350f62009-11-15 23:12:43 +000026779 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026780fi
cristy8b350f62009-11-15 23:12:43 +000026781rm -f core conftest.err conftest.$ac_objext \
26782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026783LIBS=$ac_check_lib_save_LIBS
26784fi
cristy8b350f62009-11-15 23:12:43 +000026785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026786$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026787if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 passed=`expr $passed + 1`
26789else
26790 failed=`expr $failed + 1`
26791fi
26792
26793 ac_ext=c
26794ac_cpp='$CPP $CPPFLAGS'
26795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797ac_compiler_gnu=$ac_cv_c_compiler_gnu
26798
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26801 if test $passed -gt 0; then
26802 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "no -- some components failed test" >&6; }
26805 have_fpx='no (failed tests)'
26806 else
26807 FPX_LIBS='-lfpx'
26808
cristy8b350f62009-11-15 23:12:43 +000026809$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026810
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo "yes" >&6; }
26813 have_fpx='yes'
26814 PERLMAINCC="$CXX"
26815 fi
26816 else
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo "no" >&6; }
26819 fi
26820fi
26821 if test "$have_fpx" = 'yes'; then
26822 FPX_DELEGATE_TRUE=
26823 FPX_DELEGATE_FALSE='#'
26824else
26825 FPX_DELEGATE_TRUE='#'
26826 FPX_DELEGATE_FALSE=
26827fi
26828
26829
26830
26831
26832#
26833# Check for fontconfig delegate library.
26834#
26835
26836# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026837if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 withval=$with_fontconfig; with_fontconfig=$withval
26839else
26840 with_fontconfig=$have_x
26841fi
26842
26843
26844if test "$with_fontconfig" != 'yes'; then
26845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26846fi
26847
26848have_fontconfig='no'
26849FONTCONFIG_CFLAGS=""
26850FONTCONFIG_LIBS=""
26851FONTCONFIG_PKG=""
26852if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026854$as_echo "-------------------------------------------------------------" >&6; }
26855
26856pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo_n "checking for FONTCONFIG... " >&6; }
26859
26860if test -n "$FONTCONFIG_CFLAGS"; then
26861 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26862 elif test -n "$PKG_CONFIG"; then
26863 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026865 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26866 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026869 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26870else
26871 pkg_failed=yes
26872fi
26873 else
26874 pkg_failed=untried
26875fi
26876if test -n "$FONTCONFIG_LIBS"; then
26877 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26878 elif test -n "$PKG_CONFIG"; then
26879 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026881 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26882 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026885 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26886else
26887 pkg_failed=yes
26888fi
26889 else
26890 pkg_failed=untried
26891fi
26892
26893
26894
26895if test $pkg_failed = yes; then
26896
26897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26898 _pkg_short_errors_supported=yes
26899else
26900 _pkg_short_errors_supported=no
26901fi
26902 if test $_pkg_short_errors_supported = yes; then
26903 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26904 else
26905 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26906 fi
26907 # Put the nasty error message in config.log where it belongs
26908 echo "$FONTCONFIG_PKG_ERRORS" >&5
26909
cristy8b350f62009-11-15 23:12:43 +000026910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "no" >&6; }
26912 have_fontconfig=no
26913elif test $pkg_failed = untried; then
26914 have_fontconfig=no
26915else
26916 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26917 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "yes" >&6; }
26920 have_fontconfig=yes
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "" >&6; }
26924fi
26925
26926if test "$have_fontconfig" = 'yes'; then
26927
cristy8b350f62009-11-15 23:12:43 +000026928$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026929
cristyd09bcf92010-03-25 03:04:45 +000026930 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026931 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026932 fi
cristy3ed852e2009-09-05 21:47:34 +000026933fi
26934
26935 if test "$have_fontconfig" = 'yes'; then
26936 FONTCONFIG_DELEGATE_TRUE=
26937 FONTCONFIG_DELEGATE_FALSE='#'
26938else
26939 FONTCONFIG_DELEGATE_TRUE='#'
26940 FONTCONFIG_DELEGATE_FALSE=
26941fi
26942
26943
26944
26945
26946
26947#
26948# Check for freetype delegate library.
26949#
26950
26951# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026952if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 withval=$with_freetype; with_freetype=$withval
26954else
26955 with_freetype='yes'
26956fi
26957
26958
26959
26960if test "$with_freetype" != 'yes'; then
26961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26962fi
26963
26964have_freetype='no'
26965FREETYPE_LIBS=''
26966if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026972$as_echo "" >&6; }
26973 failed=0
26974 passed=0
cristy66291112009-10-03 22:44:36 +000026975 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026976 PERSIST_CPPFLAGS="$CPPFLAGS"
26977 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26978 :
26979 else
26980 freetype_config=''
26981 for ac_prog in freetype-config
26982do
26983 # Extract the first word of "$ac_prog", so it can be a program name with args.
26984set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026987if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026988 $as_echo_n "(cached) " >&6
26989else
26990 if test -n "$freetype_config"; then
26991 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26992else
26993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994for as_dir in $PATH
26995do
26996 IFS=$as_save_IFS
26997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27000 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002 break 2
27003 fi
27004done
cristy8b350f62009-11-15 23:12:43 +000027005 done
cristy3ed852e2009-09-05 21:47:34 +000027006IFS=$as_save_IFS
27007
27008fi
27009fi
27010freetype_config=$ac_cv_prog_freetype_config
27011if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "$freetype_config" >&6; }
27014else
cristy8b350f62009-11-15 23:12:43 +000027015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027016$as_echo "no" >&6; }
27017fi
27018
27019
27020 test -n "$freetype_config" && break
27021done
27022 if test -n "$freetype_config"; then
27023 freetype_cflags=`$freetype_config --cflags`
27024 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027025 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027026 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27027 fi
27028 fi
27029
27030 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027033if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 $as_echo_n "(cached) " >&6
27035else
27036 ac_check_lib_save_LIBS=$LIBS
27037LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039/* end confdefs.h. */
27040
27041/* Override any GCC internal prototype to avoid an error.
27042 Use char because int might match the return type of a GCC
27043 builtin and then its argument prototype would still apply. */
27044#ifdef __cplusplus
27045extern "C"
27046#endif
27047char FT_Init_FreeType ();
27048int
27049main ()
27050{
27051return FT_Init_FreeType ();
27052 ;
27053 return 0;
27054}
27055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 ac_cv_lib_freetype_FT_Init_FreeType=yes
27058else
cristy8b350f62009-11-15 23:12:43 +000027059 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027060fi
cristy8b350f62009-11-15 23:12:43 +000027061rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027063LIBS=$ac_check_lib_save_LIBS
27064fi
cristy8b350f62009-11-15 23:12:43 +000027065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027067if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 FREETYPE_LIBS='-lfreetype'
27069fi
27070
27071 if test "$FREETYPE_LIBS" != ''; then
27072 passed=`expr $passed + 1`
27073 else
27074 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027075 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027076 fi
27077 fi
27078
cristy8b350f62009-11-15 23:12:43 +000027079 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27080if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 FT2BUILD_H='#include <ft2build.h>'
27082else
27083 ft2build=''
27084fi
27085
27086
cristy8b350f62009-11-15 23:12:43 +000027087 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27088"
27089if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027090 have_freetype_h='yes'
27091else
27092 have_freetype_h='no'
27093fi
27094
27095
27096 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27097 passed=`expr $passed + 1`
27098 else
27099 failed=`expr $failed + 1`
27100 CPPFLAGS="$PERSIST_CPPFLAGS"
27101 fi
27102
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo_n "checking if FreeType package is complete... " >&6; }
27105 if test $passed -gt 0; then
27106 if test $failed -gt 0; then
27107 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "no -- some components failed test" >&6; }
27110 have_freetype='no (failed tests)'
27111 else
27112 LIBS="$FREETYPE_LIBS $LIBS"
27113
cristy8b350f62009-11-15 23:12:43 +000027114$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027115
27116 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27117
cristy8b350f62009-11-15 23:12:43 +000027118$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027119
27120 fi
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "yes" >&6; }
27123 have_freetype='yes'
27124 fi
27125 else
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "no" >&6; }
27128 fi
27129fi
27130 if test "$have_freetype" = 'yes'; then
27131 FREETYPE_DELEGATE_TRUE=
27132 FREETYPE_DELEGATE_FALSE='#'
27133else
27134 FREETYPE_DELEGATE_TRUE='#'
27135 FREETYPE_DELEGATE_FALSE=
27136fi
27137
27138
27139
27140
27141
27142#
27143# Check for Ghostscript library or framework.
27144#
27145# Test for iapi.h & test for gsapi_new_instance in -lgs
27146# or -framework Ghostscript
27147
27148
27149# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027150if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027151 withval=$with_gslib; with_gslib=$withval
27152else
27153 with_gslib='no'
27154fi
27155
27156
cristyb7931f12009-09-25 10:22:21 +000027157gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027158if test "$with_gslib" != 'yes'; then
27159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27160fi
27161
27162have_gslib='no'
27163GS_LIBS=''
27164if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027171 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027172 failed=0
27173 passed=0
cristy8b350f62009-11-15 23:12:43 +000027174 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27175if test "x$ac_cv_header_ghostscript_iapi_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 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27183if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 passed=`expr $passed + 1`
27185else
27186 failed=`expr $failed + 1`
27187fi
27188
27189
cristy8b350f62009-11-15 23:12:43 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027192if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 $as_echo_n "(cached) " >&6
27194else
27195 ac_check_framework_save_LIBS=$LIBS
27196LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198/* end confdefs.h. */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char gsapi_new_instance ();
27207int
27208main ()
27209{
27210return gsapi_new_instance ();
27211 ;
27212 return 0;
27213}
27214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27217else
cristy8b350f62009-11-15 23:12:43 +000027218 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027219fi
cristy8b350f62009-11-15 23:12:43 +000027220rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222LIBS=$ac_check_framework_save_LIBS
27223fi
cristy8b350f62009-11-15 23:12:43 +000027224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027226if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 framework=`expr $framework + 1`
27228else
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027231if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 $as_echo_n "(cached) " >&6
27233else
27234 ac_check_lib_save_LIBS=$LIBS
27235LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027237/* end confdefs.h. */
27238
27239/* Override any GCC internal prototype to avoid an error.
27240 Use char because int might match the return type of a GCC
27241 builtin and then its argument prototype would still apply. */
27242#ifdef __cplusplus
27243extern "C"
27244#endif
27245char gsapi_new_instance ();
27246int
27247main ()
27248{
27249return gsapi_new_instance ();
27250 ;
27251 return 0;
27252}
27253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 ac_cv_lib_gs_gsapi_new_instance=yes
27256else
cristy8b350f62009-11-15 23:12:43 +000027257 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027258fi
cristy8b350f62009-11-15 23:12:43 +000027259rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027261LIBS=$ac_check_lib_save_LIBS
27262fi
cristy8b350f62009-11-15 23:12:43 +000027263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027265if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 passed=`expr $passed + 1`
27267else
27268 failed=`expr $failed + 1`
27269fi
27270
27271fi
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27274 if test $passed -gt 0; then
27275 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo "no -- some components failed test" >&6; }
27278 have_gslib='no (failed tests)'
27279 else
27280 if test $framework -gt 0; then
27281 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027282 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027284$as_echo "yes, using framework." >&6; }
27285 else
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "yes, using library." >&6; }
27288 GS_LIBS='-lgs'
27289 fi
27290 LIBS="$GS_LIBS $LIBS"
27291
cristy8b350f62009-11-15 23:12:43 +000027292$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027293
27294 have_gslib='yes'
27295 fi
27296 else
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "no" >&6; }
27299 fi
27300fi
27301 if test "$have_gslib" = 'yes'; then
27302 GS_DELEGATE_TRUE=
27303 GS_DELEGATE_FALSE='#'
27304else
27305 GS_DELEGATE_TRUE='#'
27306 GS_DELEGATE_FALSE=
27307fi
27308
27309
27310
27311# Set default font search path
27312
27313# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027314if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 withval=$with_fontpath; with_fontpath=$withval
27316else
27317 with_fontpath=''
27318fi
27319
27320
27321if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27322 with_fontpath=''
27323else
27324
27325cat >>confdefs.h <<_ACEOF
27326#define MAGICK_FONT_PATH "$with_fontpath"
27327_ACEOF
27328
27329fi
27330if test "$with_fontpath=" != ''; then
27331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27332fi
27333
27334# Set Ghostscript font directory
27335
27336# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027337if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27339else
27340 with_gs_font_dir='default'
27341fi
27342
27343
27344if test "$with_gs_font_dir" != 'default'; then
27345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27346fi
27347
27348
27349#
27350# Check for GVC delegate library.
27351#
27352
27353# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027354if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 withval=$with_gvc; with_gvc=$withval
27356else
27357 with_gvc='yes'
27358fi
27359
27360
27361if test "$with_gvc" != 'yes'; then
27362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27363fi
27364
27365GVC_PKG=""
27366if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027368$as_echo "-------------------------------------------------------------" >&6; }
27369
27370pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027372$as_echo_n "checking for GVC... " >&6; }
27373
27374if test -n "$GVC_CFLAGS"; then
27375 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27376 elif test -n "$PKG_CONFIG"; then
27377 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027379 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27380 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027383 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27384else
27385 pkg_failed=yes
27386fi
27387 else
27388 pkg_failed=untried
27389fi
27390if test -n "$GVC_LIBS"; then
27391 pkg_cv_GVC_LIBS="$GVC_LIBS"
27392 elif test -n "$PKG_CONFIG"; then
27393 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027395 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27396 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027399 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27400else
27401 pkg_failed=yes
27402fi
27403 else
27404 pkg_failed=untried
27405fi
27406
27407
27408
27409if test $pkg_failed = yes; then
27410
27411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27412 _pkg_short_errors_supported=yes
27413else
27414 _pkg_short_errors_supported=no
27415fi
27416 if test $_pkg_short_errors_supported = yes; then
27417 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27418 else
27419 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27420 fi
27421 # Put the nasty error message in config.log where it belongs
27422 echo "$GVC_PKG_ERRORS" >&5
27423
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo "no" >&6; }
27426 have_gvc=no
27427elif test $pkg_failed = untried; then
27428 have_gvc=no
27429else
27430 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27431 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027433$as_echo "yes" >&6; }
27434 have_gvc=yes
27435fi
cristy8b350f62009-11-15 23:12:43 +000027436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo "" >&6; }
27438fi
27439
27440if test "$have_gvc" = 'yes'; then
27441
cristy8b350f62009-11-15 23:12:43 +000027442$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027443
27444 if test "$with_modules" = 'no'; then
27445 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27446 fi
27447fi
27448
27449 if test "$have_gvc" = 'yes'; then
27450 GVC_DELEGATE_TRUE=
27451 GVC_DELEGATE_FALSE='#'
27452else
27453 GVC_DELEGATE_TRUE='#'
27454 GVC_DELEGATE_FALSE=
27455fi
27456
27457
27458
27459
27460
27461#
27462# Check for JBIG delegate library.
27463#
27464
27465
27466# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027467if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027468 withval=$with_jbig; with_jbig=$withval
27469else
27470 with_jbig='yes'
27471fi
27472
27473
27474have_jbig='no'
27475JBIG_LIBS=''
27476if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo "" >&6; }
27483 failed=0
27484 passed=0
cristy8b350f62009-11-15 23:12:43 +000027485 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27486if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 passed=`expr $passed + 1`
27488else
27489 failed=`expr $failed + 1`
27490fi
27491
27492
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027495if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 $as_echo_n "(cached) " >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501/* end confdefs.h. */
27502
27503/* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506#ifdef __cplusplus
27507extern "C"
27508#endif
27509char jbg_dec_init ();
27510int
27511main ()
27512{
27513return jbg_dec_init ();
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 ac_cv_lib_jbig_jbg_dec_init=yes
27520else
cristy8b350f62009-11-15 23:12:43 +000027521 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027522fi
cristy8b350f62009-11-15 23:12:43 +000027523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525LIBS=$ac_check_lib_save_LIBS
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027529if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 passed=`expr $passed + 1`
27531else
27532 failed=`expr $failed + 1`
27533fi
27534
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking if JBIG package is complete... " >&6; }
27537 if test $passed -gt 0; then
27538 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo "no -- some components failed test" >&6; }
27541 have_jbig='no (failed tests)'
27542 else
27543 JBIG_LIBS='-ljbig'
27544 LIBS="$JBIG_LIBS $LIBS"
27545
cristy8b350f62009-11-15 23:12:43 +000027546$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027547
cristy8b350f62009-11-15 23:12:43 +000027548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027549$as_echo "yes" >&6; }
27550 have_jbig='yes'
27551 fi
27552 else
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo "no" >&6; }
27555 fi
27556fi
27557 if test "$have_jbig" = 'yes'; then
27558 JBIG_DELEGATE_TRUE=
27559 JBIG_DELEGATE_FALSE='#'
27560else
27561 JBIG_DELEGATE_TRUE='#'
27562 JBIG_DELEGATE_FALSE=
27563fi
27564
27565
27566
27567
27568#
27569# Check for JPEG delegate library.
27570#
27571
27572# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027573if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 withval=$with_jpeg; with_jpeg=$withval
27575else
27576 with_jpeg='yes'
27577fi
27578
27579
27580if test "$with_jpeg" != 'yes'; then
27581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27582fi
27583
27584have_jpeg='no'
27585JPEG_LIBS=''
27586if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027590$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo "" >&6; }
27593 failed=0
27594 passed=0
cristy8b350f62009-11-15 23:12:43 +000027595 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27596if test "x$ac_cv_header_jconfig_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" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27604if test "x$ac_cv_header_jerror_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" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27612if test "x$ac_cv_header_jmorecfg_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 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27620if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 passed=`expr $passed + 1`
27622else
27623 failed=`expr $failed + 1`
27624fi
27625
27626
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027629if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 $as_echo_n "(cached) " >&6
27631else
27632 ac_check_lib_save_LIBS=$LIBS
27633LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635/* end confdefs.h. */
27636
27637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640#ifdef __cplusplus
27641extern "C"
27642#endif
27643char jpeg_read_header ();
27644int
27645main ()
27646{
27647return jpeg_read_header ();
27648 ;
27649 return 0;
27650}
27651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 ac_cv_lib_jpeg_jpeg_read_header=yes
27654else
cristy8b350f62009-11-15 23:12:43 +000027655 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027656fi
cristy8b350f62009-11-15 23:12:43 +000027657rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659LIBS=$ac_check_lib_save_LIBS
27660fi
cristy8b350f62009-11-15 23:12:43 +000027661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027663if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 passed=`expr $passed + 1`
27665else
27666 failed=`expr $failed + 1`
27667fi
27668
27669
27670# Test for compatible JPEG library
27671if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027674if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 $as_echo_n "(cached) " >&6
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027678/* end confdefs.h. */
27679#include <stdio.h>
27680#include <stdlib.h>
27681#include <jpeglib.h>
27682
27683int
27684main ()
27685{
27686
27687#if JPEG_LIB_VERSION < 62
27688#error IJG JPEG library must be version 6b or newer!
27689#endif
27690return 0;
27691
27692 ;
27693 return 0;
27694}
27695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27698else
cristy8b350f62009-11-15 23:12:43 +000027699 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027700fi
cristy3ed852e2009-09-05 21:47:34 +000027701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702fi
cristy8b350f62009-11-15 23:12:43 +000027703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27705fi
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo_n "checking if JPEG package is complete... " >&6; }
27708 if test $passed -gt 0; then
27709 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027711$as_echo "no -- some components failed test" >&6; }
27712 have_jpeg='no (failed tests)'
27713 else
27714 JPEG_LIBS='-ljpeg'
27715 LIBS="$JPEG_LIBS $LIBS"
27716
cristy8b350f62009-11-15 23:12:43 +000027717$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027718
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "yes" >&6; }
27721 have_jpeg='yes'
27722 fi
27723 else
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "no" >&6; }
27726 fi
27727fi
27728 if test "$have_jpeg" = 'yes'; then
27729 JPEG_DELEGATE_TRUE=
27730 JPEG_DELEGATE_FALSE='#'
27731else
27732 JPEG_DELEGATE_TRUE='#'
27733 JPEG_DELEGATE_FALSE=
27734fi
27735
27736
27737
27738
27739#
27740# Check for JPEG Version 2 delegate library.
27741#
27742
27743# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027744if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 withval=$with_jp2; with_jp2=$withval
27746else
27747 with_jp2='yes'
27748fi
27749
27750
27751if test "$with_jp2" != 'yes'; then
27752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27753fi
27754
27755have_jp2='no'
27756JP2_LIBS=''
27757if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "" >&6; }
27764 failed=0
27765 passed=0
cristy8b350f62009-11-15 23:12:43 +000027766 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27767if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
27773
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027776if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027777 $as_echo_n "(cached) " >&6
27778else
27779 ac_check_lib_save_LIBS=$LIBS
27780LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782/* end confdefs.h. */
27783
27784/* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27787#ifdef __cplusplus
27788extern "C"
27789#endif
27790char jas_stream_fopen ();
27791int
27792main ()
27793{
27794return jas_stream_fopen ();
27795 ;
27796 return 0;
27797}
27798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 ac_cv_lib_jasper_jas_stream_fopen=yes
27801else
cristy8b350f62009-11-15 23:12:43 +000027802 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027803fi
cristy8b350f62009-11-15 23:12:43 +000027804rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027806LIBS=$ac_check_lib_save_LIBS
27807fi
cristy8b350f62009-11-15 23:12:43 +000027808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027810if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 passed=`expr $passed + 1`
27812else
27813 failed=`expr $failed + 1`
27814fi
27815
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27818 if test $passed -gt 0; then
27819 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo "no -- some components failed test" >&6; }
27822 have_jp2='no (failed tests)'
27823 else
27824 JP2_LIBS='-ljasper'
27825 LIBS="$JP2_LIBS $LIBS"
27826
cristy8b350f62009-11-15 23:12:43 +000027827$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027828
cristy8b350f62009-11-15 23:12:43 +000027829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027830$as_echo "yes" >&6; }
27831 have_jp2='yes'
27832 fi
27833 else
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo "no" >&6; }
27836 fi
27837fi
27838 if test "$have_jp2" = 'yes'; then
27839 JP2_DELEGATE_TRUE=
27840 JP2_DELEGATE_FALSE='#'
27841else
27842 JP2_DELEGATE_TRUE='#'
27843 JP2_DELEGATE_FALSE=
27844fi
27845
27846
27847
27848
27849#
27850# Check for LCMS delegate library.
27851#
cristy71203402010-06-18 13:12:03 +000027852# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027853
27854# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027855if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 withval=$with_lcms; with_lcms=$withval
27857else
27858 with_lcms='yes'
27859fi
27860
cristy71203402010-06-18 13:12:03 +000027861if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27863fi
27864
cristy71203402010-06-18 13:12:03 +000027865# Disable LCMS2.
27866
27867# Check whether --with-lcms2 was given.
27868if test "${with_lcms2+set}" = set; then :
27869 withval=$with_lcms2; with_lcms2=$withval
27870else
27871 with_lcms2='yes'
27872fi
27873
27874if test "$with_lcms2" != 'yes' ; then
27875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27876fi
27877
27878have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027879LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027880if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27884$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027886$as_echo "" >&6; }
27887 failed=0
27888 passed=0
27889 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027890
27891 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027892 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27893if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27894 have_lcms_header='yes'
27895fi
27896
27897
27898 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027899
27900$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27901
cristy71203402010-06-18 13:12:03 +000027902 passed=`expr $passed + 1`
27903 fi
27904
27905 # Check for <lcms2/lcms2.h)
27906 if test "$have_lcms_header" != 'yes'; then
27907 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27908if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027909 have_lcms_header='yes'
27910fi
27911
27912
cristy71203402010-06-18 13:12:03 +000027913 if test "$have_lcms_header" = 'yes'; then
27914 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027915
cristy71203402010-06-18 13:12:03 +000027916$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027917
cristy71203402010-06-18 13:12:03 +000027918 fi
cristyd09bcf92010-03-25 03:04:45 +000027919 fi
cristy71203402010-06-18 13:12:03 +000027920
27921 # Failed to find lcms header?
27922 if test "$have_lcms_header" != 'yes'; then
27923 failed=`expr $failed + 1`
27924 fi
27925
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27927$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27928if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027929 $as_echo_n "(cached) " >&6
27930else
27931 ac_check_lib_save_LIBS=$LIBS
27932LIBS="-llcms2 $LIBS"
27933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934/* end confdefs.h. */
27935
27936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
cristy71203402010-06-18 13:12:03 +000027942char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027943int
27944main ()
27945{
cristy71203402010-06-18 13:12:03 +000027946return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027947 ;
27948 return 0;
27949}
27950_ACEOF
27951if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027952 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027953else
cristy71203402010-06-18 13:12:03 +000027954 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027955fi
27956rm -f core conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
27958LIBS=$ac_check_lib_save_LIBS
27959fi
cristy71203402010-06-18 13:12:03 +000027960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27961$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27962if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027963 passed=`expr $passed + 1`
27964else
27965 failed=`expr $failed + 1`
27966fi
27967
cristy71203402010-06-18 13:12:03 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27969$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027970 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027971 if test $failed -gt 0; then
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027973$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027974 have_lcms2='no (failed tests)'
27975 else
27976 LCMS_LIBS='-llcms2'
27977 LIBS="$LCMS_LIBS $LIBS"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027979$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027980 have_lcms2='yes'
27981 fi
cristyd09bcf92010-03-25 03:04:45 +000027982 else
cristy71203402010-06-18 13:12:03 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027984$as_echo "no" >&6; }
27985 fi
27986fi
27987
cristy71203402010-06-18 13:12:03 +000027988#
27989# Check for LCMS v1 (1.11 or later)
27990#
27991if test $have_lcms2 = 'yes'; then
27992 with_lcms='no'
27993fi
27994
27995have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027996if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27998$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28000$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28002$as_echo "" >&6; }
28003 failed=0
28004 passed=0
28005 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028006
28007 # Check for <lcms.h>
28008 if test "$have_lcms_header" != 'yes'; then
28009 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028010if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 have_lcms_header='yes'
28012fi
28013
28014
cristy71203402010-06-18 13:12:03 +000028015 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028016 passed=`expr $passed + 1`
28017
cristy8b350f62009-11-15 23:12:43 +000028018$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028019
cristy71203402010-06-18 13:12:03 +000028020 fi
28021 fi
28022
28023 # Check for <lcms/lcms.h>
28024 if test "$have_lcms_header" != 'yes'; then
28025 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 +000028026if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 have_lcms_header='yes'
28028fi
28029
28030
cristy71203402010-06-18 13:12:03 +000028031 if test "$have_lcms_header" = 'yes'; then
28032 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028033
cristy8b350f62009-11-15 23:12:43 +000028034$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028035
cristy71203402010-06-18 13:12:03 +000028036 fi
cristy3ed852e2009-09-05 21:47:34 +000028037 fi
cristy71203402010-06-18 13:12:03 +000028038
28039 # Failed to find lcms header?
28040 if test "$have_lcms_header" != 'yes'; then
28041 failed=`expr $failed + 1`
28042 fi
28043
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28045$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28046if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 $as_echo_n "(cached) " >&6
28048else
28049 ac_check_lib_save_LIBS=$LIBS
28050LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028052/* end confdefs.h. */
28053
28054/* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28057#ifdef __cplusplus
28058extern "C"
28059#endif
cristy71203402010-06-18 13:12:03 +000028060char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028061int
28062main ()
28063{
cristy71203402010-06-18 13:12:03 +000028064return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028065 ;
28066 return 0;
28067}
28068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028069if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028070 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028071else
cristy71203402010-06-18 13:12:03 +000028072 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028073fi
cristy8b350f62009-11-15 23:12:43 +000028074rm -f core conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028076LIBS=$ac_check_lib_save_LIBS
28077fi
cristy71203402010-06-18 13:12:03 +000028078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28079$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28080if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 passed=`expr $passed + 1`
28082else
28083 failed=`expr $failed + 1`
28084fi
28085
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking if LCMS package is complete... " >&6; }
28088 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028089 if test $failed -gt 0; then
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028092 have_lcms='no (failed tests)'
28093 else
28094 LCMS_LIBS='-llcms'
28095 LIBS="$LCMS_LIBS $LIBS"
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028098 have_lcms='yes'
28099 fi
cristy3ed852e2009-09-05 21:47:34 +000028100 else
cristy71203402010-06-18 13:12:03 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo "no" >&6; }
28103 fi
28104fi
cristy71203402010-06-18 13:12:03 +000028105
28106 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028107 LCMS_DELEGATE_TRUE=
28108 LCMS_DELEGATE_FALSE='#'
28109else
28110 LCMS_DELEGATE_TRUE='#'
28111 LCMS_DELEGATE_FALSE=
28112fi
28113
cristy71203402010-06-18 13:12:03 +000028114if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28115
28116$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28117
28118fi
28119
cristy3ed852e2009-09-05 21:47:34 +000028120
28121
28122
28123#
28124# Check for the LQR (Liquid Rescale) delegate library.
28125#
28126
28127# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028128if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 withval=$with_lqr; with_lqr=$withval
28130else
28131 with_lqr='yes'
28132fi
28133
28134
28135if test "$with_lqr" != 'yes'; then
28136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28137fi
28138
28139have_lqr='no'
28140LQR_CFLAGS=""
28141LQR_LIBS=""
28142LQR_PKG=""
28143if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo "-------------------------------------------------------------" >&6; }
28146
28147pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028149$as_echo_n "checking for LQR... " >&6; }
28150
28151if test -n "$LQR_CFLAGS"; then
28152 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28153 elif test -n "$PKG_CONFIG"; then
28154 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028156 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28157 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028160 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28161else
28162 pkg_failed=yes
28163fi
28164 else
28165 pkg_failed=untried
28166fi
28167if test -n "$LQR_LIBS"; then
28168 pkg_cv_LQR_LIBS="$LQR_LIBS"
28169 elif test -n "$PKG_CONFIG"; then
28170 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028172 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28173 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28175 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028176 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28177else
28178 pkg_failed=yes
28179fi
28180 else
28181 pkg_failed=untried
28182fi
28183
28184
28185
28186if test $pkg_failed = yes; then
28187
28188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28189 _pkg_short_errors_supported=yes
28190else
28191 _pkg_short_errors_supported=no
28192fi
28193 if test $_pkg_short_errors_supported = yes; then
28194 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28195 else
28196 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28197 fi
28198 # Put the nasty error message in config.log where it belongs
28199 echo "$LQR_PKG_ERRORS" >&5
28200
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo "no" >&6; }
28203 have_lqr=no
28204elif test $pkg_failed = untried; then
28205 have_lqr=no
28206else
28207 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28208 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028210$as_echo "yes" >&6; }
28211 have_lqr=yes
28212fi
cristy8b350f62009-11-15 23:12:43 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028214$as_echo "" >&6; }
28215fi
28216
28217if test "$have_lqr" = 'yes'; then
28218
cristy8b350f62009-11-15 23:12:43 +000028219$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028220
28221 CFLAGS="$LQR_CFLAGS $CFLAGS"
28222fi
28223
28224 if test "$have_lqr" = 'yes'; then
28225 LQR_DELEGATE_TRUE=
28226 LQR_DELEGATE_FALSE='#'
28227else
28228 LQR_DELEGATE_TRUE='#'
28229 LQR_DELEGATE_FALSE=
28230fi
28231
28232
28233
28234
28235
28236#
28237# Check for the OpenEXR delegate library.
28238#
28239
28240# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028241if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 withval=$with_openexr; with_openexr=$withval
28243else
28244 with_openexr='yes'
28245fi
28246
28247
28248if test "$with_openexr" != 'yes'; then
28249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28250fi
28251
28252have_openexr='no'
28253OPENEXR_CFLAGS=""
28254OPENEXR_LIBS=""
28255OPENEXR_PKG=""
28256if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "-------------------------------------------------------------" >&6; }
28259
28260pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo_n "checking for OPENEXR... " >&6; }
28263
28264if test -n "$OPENEXR_CFLAGS"; then
28265 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28266 elif test -n "$PKG_CONFIG"; then
28267 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028269 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28270 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28272 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028273 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28274else
28275 pkg_failed=yes
28276fi
28277 else
28278 pkg_failed=untried
28279fi
28280if test -n "$OPENEXR_LIBS"; then
28281 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28282 elif test -n "$PKG_CONFIG"; then
28283 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028285 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28286 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28288 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028289 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28290else
28291 pkg_failed=yes
28292fi
28293 else
28294 pkg_failed=untried
28295fi
28296
28297
28298
28299if test $pkg_failed = yes; then
28300
28301if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28302 _pkg_short_errors_supported=yes
28303else
28304 _pkg_short_errors_supported=no
28305fi
28306 if test $_pkg_short_errors_supported = yes; then
28307 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28308 else
28309 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28310 fi
28311 # Put the nasty error message in config.log where it belongs
28312 echo "$OPENEXR_PKG_ERRORS" >&5
28313
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo "no" >&6; }
28316 have_openexr=no
28317elif test $pkg_failed = untried; then
28318 have_openexr=no
28319else
28320 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28321 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo "yes" >&6; }
28324 have_openexr=yes
28325fi
cristy8b350f62009-11-15 23:12:43 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028327$as_echo "" >&6; }
28328fi
28329
28330if test "$have_openexr" = 'yes'; then
28331
cristy8b350f62009-11-15 23:12:43 +000028332$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028333
28334 if test "$with_modules" = 'no'; then
28335 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28336 fi
28337fi
28338
28339 if test "$have_openexr" = 'yes'; then
28340 OPENEXR_DELEGATE_TRUE=
28341 OPENEXR_DELEGATE_FALSE='#'
28342else
28343 OPENEXR_DELEGATE_TRUE='#'
28344 OPENEXR_DELEGATE_FALSE=
28345fi
28346
28347
28348
28349
28350
28351#
28352# Check for PNG delegate library.
28353#
28354
28355# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028356if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 withval=$with_png; with_png=$withval
28358else
28359 with_png='yes'
28360fi
28361
28362
28363if test "$with_png" != 'yes'; then
28364 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28365fi
28366
28367have_png='no'
28368PNG_LIBS=''
28369if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo "" >&6; }
28376 failed=0
28377 passed=0
cristy8b350f62009-11-15 23:12:43 +000028378 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28379if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028380 passed=`expr $passed + 1`
28381else
28382 failed=`expr $failed + 1`
28383fi
28384
28385
cristy8b350f62009-11-15 23:12:43 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028387$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028388if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028389 $as_echo_n "(cached) " >&6
28390else
28391 ac_check_lib_save_LIBS=$LIBS
28392LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028394/* end confdefs.h. */
28395
28396/* Override any GCC internal prototype to avoid an error.
28397 Use char because int might match the return type of a GCC
28398 builtin and then its argument prototype would still apply. */
28399#ifdef __cplusplus
28400extern "C"
28401#endif
28402char png_get_io_ptr ();
28403int
28404main ()
28405{
28406return png_get_io_ptr ();
28407 ;
28408 return 0;
28409}
28410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028411if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028412 ac_cv_lib_png_png_get_io_ptr=yes
28413else
cristy8b350f62009-11-15 23:12:43 +000028414 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028415fi
cristy8b350f62009-11-15 23:12:43 +000028416rm -f core conftest.err conftest.$ac_objext \
28417 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028418LIBS=$ac_check_lib_save_LIBS
28419fi
cristy8b350f62009-11-15 23:12:43 +000028420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028421$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028422if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028423 passed=`expr $passed + 1`
28424else
28425 failed=`expr $failed + 1`
28426fi
28427
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo_n "checking if PNG package is complete... " >&6; }
28430 if test $passed -gt 0; then
28431 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "no -- some components failed test" >&6; }
28434 have_png='no (failed tests)'
28435 else
28436 PNG_LIBS='-lpng'
28437 LIBS="$PNG_LIBS $LIBS"
28438
cristy8b350f62009-11-15 23:12:43 +000028439$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028440
cristy8b350f62009-11-15 23:12:43 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028442$as_echo "yes" >&6; }
28443 have_png='yes'
28444 fi
28445 else
cristy8b350f62009-11-15 23:12:43 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo "no" >&6; }
28448 fi
28449fi
28450 if test "$have_png" = 'yes'; then
28451 PNG_DELEGATE_TRUE=
28452 PNG_DELEGATE_FALSE='#'
28453else
28454 PNG_DELEGATE_TRUE='#'
28455 PNG_DELEGATE_FALSE=
28456fi
28457
28458
28459
28460
28461#
28462# Check for RSVG delegate library.
28463#
28464
28465# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028466if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028467 withval=$with_rsvg; with_rsvg=$withval
28468else
28469 with_rsvg=$have_x
28470fi
28471
28472
28473if test "$with_rsvg" != 'yes'; then
28474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28475fi
28476
28477have_rsvg='no'
28478have_cairo='no'
28479RSVG_CFLAGS=""
28480RSVG_LIBS=""
28481RSVG_PKG=""
28482if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028484$as_echo "-------------------------------------------------------------" >&6; }
28485
28486pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028488$as_echo_n "checking for RSVG... " >&6; }
28489
28490if test -n "$RSVG_CFLAGS"; then
28491 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28492 elif test -n "$PKG_CONFIG"; then
28493 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028494 { { $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 +000028495 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28496 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028499 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28500else
28501 pkg_failed=yes
28502fi
28503 else
28504 pkg_failed=untried
28505fi
28506if test -n "$RSVG_LIBS"; then
28507 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28508 elif test -n "$PKG_CONFIG"; then
28509 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028510 { { $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 +000028511 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28512 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28514 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028515 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28516else
28517 pkg_failed=yes
28518fi
28519 else
28520 pkg_failed=untried
28521fi
28522
28523
28524
28525if test $pkg_failed = yes; then
28526
28527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28528 _pkg_short_errors_supported=yes
28529else
28530 _pkg_short_errors_supported=no
28531fi
28532 if test $_pkg_short_errors_supported = yes; then
28533 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28534 else
28535 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28536 fi
28537 # Put the nasty error message in config.log where it belongs
28538 echo "$RSVG_PKG_ERRORS" >&5
28539
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo "no" >&6; }
28542 have_rsvg=no
28543elif test $pkg_failed = untried; then
28544 have_rsvg=no
28545else
28546 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28547 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "yes" >&6; }
28550 have_rsvg=yes
28551fi
cristy8b350f62009-11-15 23:12:43 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028553$as_echo "" >&6; }
28554
28555pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo_n "checking for CAIRO_SVG... " >&6; }
28558
28559if test -n "$CAIRO_SVG_CFLAGS"; then
28560 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28561 elif test -n "$PKG_CONFIG"; then
28562 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028564 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28565 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28567 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028568 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28569else
28570 pkg_failed=yes
28571fi
28572 else
28573 pkg_failed=untried
28574fi
28575if test -n "$CAIRO_SVG_LIBS"; then
28576 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28577 elif test -n "$PKG_CONFIG"; then
28578 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028580 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28581 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28583 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028584 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28585else
28586 pkg_failed=yes
28587fi
28588 else
28589 pkg_failed=untried
28590fi
28591
28592
28593
28594if test $pkg_failed = yes; then
28595
28596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28597 _pkg_short_errors_supported=yes
28598else
28599 _pkg_short_errors_supported=no
28600fi
28601 if test $_pkg_short_errors_supported = yes; then
28602 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28603 else
28604 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28605 fi
28606 # Put the nasty error message in config.log where it belongs
28607 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28608
cristy8b350f62009-11-15 23:12:43 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "no" >&6; }
28611 have_cairo=no
28612elif test $pkg_failed = untried; then
28613 have_cairo=no
28614else
28615 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28616 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "yes" >&6; }
28619 have_cairo=yes
28620fi
cristy8b350f62009-11-15 23:12:43 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028622$as_echo "" >&6; }
28623fi
28624
28625if test "$have_rsvg" = 'yes'; then
28626
cristy8b350f62009-11-15 23:12:43 +000028627$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028628
28629 if test "$with_modules" = 'no'; then
28630 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28631 fi
28632fi
28633
28634if test "$have_cairo" = 'yes'; then
28635
cristy8b350f62009-11-15 23:12:43 +000028636$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028637
28638 if test "$with_modules" = 'no'; then
28639 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28640 fi
28641fi
28642
28643 if test "$have_rsvg" = 'yes'; then
28644 RSVG_DELEGATE_TRUE=
28645 RSVG_DELEGATE_FALSE='#'
28646else
28647 RSVG_DELEGATE_TRUE='#'
28648 RSVG_DELEGATE_FALSE=
28649fi
28650
28651 if test "$have_cairo" = 'yes'; then
28652 CAIRO_DELEGATE_TRUE=
28653 CAIRO_DELEGATE_FALSE='#'
28654else
28655 CAIRO_DELEGATE_TRUE='#'
28656 CAIRO_DELEGATE_FALSE=
28657fi
28658
28659
28660
28661
28662
28663#
28664# Check for TIFF delegate library.
28665#
28666
28667# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028668if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 withval=$with_tiff; with_tiff=$withval
28670else
28671 with_tiff='yes'
28672fi
28673
28674
28675if test "$with_tiff" != 'yes'; then
28676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28677fi
28678
28679have_tiff='no'
28680TIFF_LIBS=''
28681if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028683$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028687$as_echo "" >&6; }
28688 failed=0
28689 passed=0
cristy8b350f62009-11-15 23:12:43 +000028690 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28691if test "x$ac_cv_header_tiff_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 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28699if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028700 passed=`expr $passed + 1`
28701else
28702 failed=`expr $failed + 1`
28703fi
28704
28705
cristy8b350f62009-11-15 23:12:43 +000028706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028707$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028708if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028709 $as_echo_n "(cached) " >&6
28710else
28711 ac_check_lib_save_LIBS=$LIBS
28712LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028714/* end confdefs.h. */
28715
28716/* Override any GCC internal prototype to avoid an error.
28717 Use char because int might match the return type of a GCC
28718 builtin and then its argument prototype would still apply. */
28719#ifdef __cplusplus
28720extern "C"
28721#endif
28722char TIFFOpen ();
28723int
28724main ()
28725{
28726return TIFFOpen ();
28727 ;
28728 return 0;
28729}
28730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028732 ac_cv_lib_tiff_TIFFOpen=yes
28733else
cristy8b350f62009-11-15 23:12:43 +000028734 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028735fi
cristy8b350f62009-11-15 23:12:43 +000028736rm -f core conftest.err conftest.$ac_objext \
28737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028738LIBS=$ac_check_lib_save_LIBS
28739fi
cristy8b350f62009-11-15 23:12:43 +000028740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028741$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028742if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 passed=`expr $passed + 1`
28744else
28745 failed=`expr $failed + 1`
28746fi
28747
cristy8b350f62009-11-15 23:12:43 +000028748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028749$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028750if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028751 $as_echo_n "(cached) " >&6
28752else
28753 ac_check_lib_save_LIBS=$LIBS
28754LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028756/* end confdefs.h. */
28757
28758/* Override any GCC internal prototype to avoid an error.
28759 Use char because int might match the return type of a GCC
28760 builtin and then its argument prototype would still apply. */
28761#ifdef __cplusplus
28762extern "C"
28763#endif
28764char TIFFClientOpen ();
28765int
28766main ()
28767{
28768return TIFFClientOpen ();
28769 ;
28770 return 0;
28771}
28772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 ac_cv_lib_tiff_TIFFClientOpen=yes
28775else
cristy8b350f62009-11-15 23:12:43 +000028776 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028777fi
cristy8b350f62009-11-15 23:12:43 +000028778rm -f core conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028780LIBS=$ac_check_lib_save_LIBS
28781fi
cristy8b350f62009-11-15 23:12:43 +000028782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028784if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 passed=`expr $passed + 1`
28786else
28787 failed=`expr $failed + 1`
28788fi
28789
cristyb97f1002010-07-26 14:02:57 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28791$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28792if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28793 $as_echo_n "(cached) " >&6
28794else
28795 ac_check_lib_save_LIBS=$LIBS
28796LIBS="-ltiff $LIBS"
28797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798/* end confdefs.h. */
28799
28800/* Override any GCC internal prototype to avoid an error.
28801 Use char because int might match the return type of a GCC
28802 builtin and then its argument prototype would still apply. */
28803#ifdef __cplusplus
28804extern "C"
28805#endif
28806char TIFFIsBigEndian ();
28807int
28808main ()
28809{
28810return TIFFIsBigEndian ();
28811 ;
28812 return 0;
28813}
28814_ACEOF
28815if ac_fn_c_try_link "$LINENO"; then :
28816 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28817else
28818 ac_cv_lib_tiff_TIFFIsBigEndian=no
28819fi
28820rm -f core conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
28822LIBS=$ac_check_lib_save_LIBS
28823fi
28824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28825$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28826if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28827 passed=`expr $passed + 1`
28828else
28829 failed=`expr $failed + 1`
28830fi
28831
cristy8b350f62009-11-15 23:12:43 +000028832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028833$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028834if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028835 $as_echo_n "(cached) " >&6
28836else
28837 ac_check_lib_save_LIBS=$LIBS
28838LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028840/* end confdefs.h. */
28841
28842/* Override any GCC internal prototype to avoid an error.
28843 Use char because int might match the return type of a GCC
28844 builtin and then its argument prototype would still apply. */
28845#ifdef __cplusplus
28846extern "C"
28847#endif
28848char TIFFIsByteSwapped ();
28849int
28850main ()
28851{
28852return TIFFIsByteSwapped ();
28853 ;
28854 return 0;
28855}
28856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28859else
cristy8b350f62009-11-15 23:12:43 +000028860 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028861fi
cristy8b350f62009-11-15 23:12:43 +000028862rm -f core conftest.err conftest.$ac_objext \
28863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028864LIBS=$ac_check_lib_save_LIBS
28865fi
cristy8b350f62009-11-15 23:12:43 +000028866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028868if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 passed=`expr $passed + 1`
28870else
28871 failed=`expr $failed + 1`
28872fi
28873
cristy8b350f62009-11-15 23:12:43 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028875$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028876if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028877 $as_echo_n "(cached) " >&6
28878else
28879 ac_check_lib_save_LIBS=$LIBS
28880LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028882/* end confdefs.h. */
28883
28884/* Override any GCC internal prototype to avoid an error.
28885 Use char because int might match the return type of a GCC
28886 builtin and then its argument prototype would still apply. */
28887#ifdef __cplusplus
28888extern "C"
28889#endif
28890char TIFFReadRGBATile ();
28891int
28892main ()
28893{
28894return TIFFReadRGBATile ();
28895 ;
28896 return 0;
28897}
28898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028899if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28901else
cristy8b350f62009-11-15 23:12:43 +000028902 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028903fi
cristy8b350f62009-11-15 23:12:43 +000028904rm -f core conftest.err conftest.$ac_objext \
28905 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028906LIBS=$ac_check_lib_save_LIBS
28907fi
cristy8b350f62009-11-15 23:12:43 +000028908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028909$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028910if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028911 passed=`expr $passed + 1`
28912else
28913 failed=`expr $failed + 1`
28914fi
28915
cristy8b350f62009-11-15 23:12:43 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028917$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028918if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 $as_echo_n "(cached) " >&6
28920else
28921 ac_check_lib_save_LIBS=$LIBS
28922LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028924/* end confdefs.h. */
28925
28926/* Override any GCC internal prototype to avoid an error.
28927 Use char because int might match the return type of a GCC
28928 builtin and then its argument prototype would still apply. */
28929#ifdef __cplusplus
28930extern "C"
28931#endif
28932char TIFFReadRGBAStrip ();
28933int
28934main ()
28935{
28936return TIFFReadRGBAStrip ();
28937 ;
28938 return 0;
28939}
28940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028941if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028942 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28943else
cristy8b350f62009-11-15 23:12:43 +000028944 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028945fi
cristy8b350f62009-11-15 23:12:43 +000028946rm -f core conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028948LIBS=$ac_check_lib_save_LIBS
28949fi
cristy8b350f62009-11-15 23:12:43 +000028950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028952if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028953 passed=`expr $passed + 1`
28954else
28955 failed=`expr $failed + 1`
28956fi
28957
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo_n "checking if TIFF package is complete... " >&6; }
28960 if test $passed -gt 0; then
28961 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo "no -- some components failed test" >&6; }
28964 have_tiff='no (failed tests)'
28965 else
28966 TIFF_LIBS='-ltiff'
28967 LIBS="$TIFF_LIBS $LIBS"
28968
cristy8b350f62009-11-15 23:12:43 +000028969$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028970
cristy8b350f62009-11-15 23:12:43 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028972$as_echo "yes" >&6; }
28973 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028974 for ac_header in tiffconf.h
28975do :
28976 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28977if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028978 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028979#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028980_ACEOF
28981
28982fi
28983
28984done
28985
cristy8b350f62009-11-15 23:12:43 +000028986 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028987 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28988 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028989do :
28990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028992if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028993 cat >>confdefs.h <<_ACEOF
28994#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28995_ACEOF
28996
28997fi
28998done
28999
29000 fi
29001 else
cristy8b350f62009-11-15 23:12:43 +000029002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029003$as_echo "no" >&6; }
29004 fi
29005fi
29006 if test "$have_tiff" = 'yes'; then
29007 TIFF_DELEGATE_TRUE=
29008 TIFF_DELEGATE_FALSE='#'
29009else
29010 TIFF_DELEGATE_TRUE='#'
29011 TIFF_DELEGATE_FALSE=
29012fi
29013
29014
29015
29016
29017#
29018# Set Windows font directory.
29019#
29020
29021# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029022if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29024else
29025 with_windows_font_dir=''
29026fi
29027
29028if test "$with_windows_font_dir" != '' ; then
29029 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29030fi
29031
29032
29033#
29034# Check for WMF delegate library.
29035#
29036
29037# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029038if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029039 withval=$with_wmf; with_wmf=$withval
29040else
cristy8d63d1d2010-01-06 20:38:37 +000029041 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029042fi
29043
29044
29045if test "$with_wmf" != 'yes'; then
29046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29047fi
29048
29049have_wmf='no'
29050WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029051if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029055$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029058 failed=0
29059 passed=0
29060 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29061if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29062 passed=`expr $passed + 1`
29063else
29064 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029065fi
29066
29067
cristy735e8942010-04-02 20:32:57 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29069$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29070if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029071 $as_echo_n "(cached) " >&6
29072else
29073 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029074LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029076/* end confdefs.h. */
29077
29078/* Override any GCC internal prototype to avoid an error.
29079 Use char because int might match the return type of a GCC
29080 builtin and then its argument prototype would still apply. */
29081#ifdef __cplusplus
29082extern "C"
29083#endif
cristy735e8942010-04-02 20:32:57 +000029084char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029085int
29086main ()
29087{
cristy735e8942010-04-02 20:32:57 +000029088return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029089 ;
29090 return 0;
29091}
29092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029093if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029094 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029095else
cristy735e8942010-04-02 20:32:57 +000029096 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029097fi
cristy8b350f62009-11-15 23:12:43 +000029098rm -f core conftest.err conftest.$ac_objext \
29099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029100LIBS=$ac_check_lib_save_LIBS
29101fi
cristy735e8942010-04-02 20:32:57 +000029102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29103$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29104if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29105 passed=`expr $passed + 1`
29106else
29107 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029108fi
29109
cristy735e8942010-04-02 20:32:57 +000029110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29111$as_echo_n "checking if WMF package is complete... " >&6; }
29112 if test $passed -gt 0; then
29113 if test $failed -gt 0; then
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29115$as_echo "no -- some components failed test" >&6; }
29116 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029117 else
cristy735e8942010-04-02 20:32:57 +000029118 WMF_LIBS='-lwmf -lwmflite'
29119 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029120
cristy8b350f62009-11-15 23:12:43 +000029121$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029122
cristy735e8942010-04-02 20:32:57 +000029123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029125 have_wmf='yes'
29126 fi
cristy3ed852e2009-09-05 21:47:34 +000029127 else
cristy8b350f62009-11-15 23:12:43 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo "no" >&6; }
29130 fi
29131fi
29132 if test "$have_wmf" = 'yes'; then
29133 WMF_DELEGATE_TRUE=
29134 WMF_DELEGATE_FALSE='#'
29135else
29136 WMF_DELEGATE_TRUE='#'
29137 WMF_DELEGATE_FALSE=
29138fi
29139
29140
29141
29142
29143
cristy735e8942010-04-02 20:32:57 +000029144
cristy3ed852e2009-09-05 21:47:34 +000029145#
29146# Check for XML delegate library.
29147#
29148
29149# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029150if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029151 withval=$with_xml; with_xml=$withval
29152else
29153 with_xml=$have_x
29154fi
29155
29156
29157if test "$with_xml" != 'yes' ; then
29158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29159fi
29160
29161have_xml='no'
29162XML_LIBS=''
29163if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029169$as_echo "" >&6; }
29170 PERSIST_LDFLAGS=$LDFLAGS
29171 PERSIST_CPPFLAGS=$CPPFLAGS
29172 xml2_config=''
29173 for ac_prog in xml2-config
29174do
29175 # Extract the first word of "$ac_prog", so it can be a program name with args.
29176set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029179if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 $as_echo_n "(cached) " >&6
29181else
29182 if test -n "$xml2_config"; then
29183 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29184else
29185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29186for as_dir in $PATH
29187do
29188 IFS=$as_save_IFS
29189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29192 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029194 break 2
29195 fi
29196done
cristy8b350f62009-11-15 23:12:43 +000029197 done
cristy3ed852e2009-09-05 21:47:34 +000029198IFS=$as_save_IFS
29199
29200fi
29201fi
29202xml2_config=$ac_cv_prog_xml2_config
29203if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029205$as_echo "$xml2_config" >&6; }
29206else
cristy8b350f62009-11-15 23:12:43 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029208$as_echo "no" >&6; }
29209fi
29210
29211
29212 test -n "$xml2_config" && break
29213done
29214 if test -n "$xml2_config"; then
29215 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29216 # the shared library installed under /usr/lib, whereas the package
29217 # installs itself under $prefix/libxml and $prefix/lib.
29218 xml2_prefix=`xml2-config --prefix`
29219 if test -d "${xml2_prefix}/include/libxml2"; then
29220 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29221 fi
29222 if test "${xml2_prefix}" != '/usr'; then
29223 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29224 fi
29225 fi
29226 failed=0
29227 passed=0
cristy8b350f62009-11-15 23:12:43 +000029228 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29229if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029230 passed=`expr $passed + 1`
29231else
29232 failed=`expr $failed + 1`
29233fi
29234
29235
cristy8b350f62009-11-15 23:12:43 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029238if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 $as_echo_n "(cached) " >&6
29240else
29241 ac_check_lib_save_LIBS=$LIBS
29242LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029244/* end confdefs.h. */
29245
29246/* Override any GCC internal prototype to avoid an error.
29247 Use char because int might match the return type of a GCC
29248 builtin and then its argument prototype would still apply. */
29249#ifdef __cplusplus
29250extern "C"
29251#endif
29252char xmlParseExternalEntity ();
29253int
29254main ()
29255{
29256return xmlParseExternalEntity ();
29257 ;
29258 return 0;
29259}
29260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29263else
cristy8b350f62009-11-15 23:12:43 +000029264 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029265fi
cristy8b350f62009-11-15 23:12:43 +000029266rm -f core conftest.err conftest.$ac_objext \
29267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029268LIBS=$ac_check_lib_save_LIBS
29269fi
cristy8b350f62009-11-15 23:12:43 +000029270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029272if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 passed=`expr $passed + 1`
29274else
29275 failed=`expr $failed + 1`
29276fi
29277
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo_n "checking if XML package is complete... " >&6; }
29280 if test $passed -gt 0; then
29281 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo "no -- some components failed test" >&6; }
29284 have_xml='no (failed tests)'
29285 LDFLAGS="$PERSIST_LDFLAGS"
29286 CPPFLAGS="$PERSIST_CPPFLAGS"
29287 else
29288 XML_LIBS='-lxml2'
29289 LIBS="$XML_LIBS $LIBS"
29290
cristy8b350f62009-11-15 23:12:43 +000029291$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029292
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo "yes" >&6; }
29295 have_xml='yes'
29296 fi
29297 else
cristy8b350f62009-11-15 23:12:43 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029299$as_echo "no" >&6; }
29300 fi
29301fi
29302 if test "$have_xml" = 'yes'; then
29303 XML_DELEGATE_TRUE=
29304 XML_DELEGATE_FALSE='#'
29305else
29306 XML_DELEGATE_TRUE='#'
29307 XML_DELEGATE_FALSE=
29308fi
29309
29310
29311
29312
29313# Substitute compiler name to build/link PerlMagick
29314#
29315
29316
29317#
29318# Configure install Paths
29319#
29320
29321# Subdirectory under lib to place ImageMagick lib files
29322LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29323
29324cat >>confdefs.h <<_ACEOF
29325#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29326_ACEOF
29327
29328
29329# Path to ImageMagick bin directory
29330EXECUTABLE_PATH="${BIN_DIR}"
29331DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29332case "${build_os}" in
29333 mingw* )
29334 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29335 ;;
29336esac
29337
29338cat >>confdefs.h <<_ACEOF
29339#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29340_ACEOF
29341
29342
29343
29344# Path to ImageMagick lib
29345LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29346DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29347case "${build_os}" in
29348 mingw* )
29349 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29350 ;;
29351esac
29352
29353cat >>confdefs.h <<_ACEOF
29354#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29355_ACEOF
29356
29357
29358
29359# Subdirectory under lib to place ImageMagick configuration files
29360CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29361
29362cat >>confdefs.h <<_ACEOF
29363#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29364_ACEOF
29365
29366CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29367DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29368case "${build_os}" in
29369 mingw* )
29370 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29371 ;;
29372esac
29373
29374cat >>confdefs.h <<_ACEOF
29375#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29376_ACEOF
29377
29378
29379
29380#
29381# Subdirectory under lib to place ImageMagick coder module files
29382CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29383
29384cat >>confdefs.h <<_ACEOF
29385#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29386_ACEOF
29387
29388CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29389DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29390case "${build_os}" in
29391 mingw* )
29392 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29393 ;;
29394esac
29395
29396cat >>confdefs.h <<_ACEOF
29397#define CODER_PATH "$DEFINE_CODER_PATH"
29398_ACEOF
29399
29400
29401
29402#
29403# Subdirectory under lib to place ImageMagick filter module files
29404FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29405
29406cat >>confdefs.h <<_ACEOF
29407#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29408_ACEOF
29409
29410FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29411DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29412case "${build_os}" in
29413 mingw* )
29414 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29415 ;;
29416esac
29417
29418cat >>confdefs.h <<_ACEOF
29419#define FILTER_PATH "$DEFINE_FILTER_PATH"
29420_ACEOF
29421
29422
29423
29424#
29425# Path to ImageMagick documentation files
29426DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29427DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29428DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29429case "${build_os}" in
29430 mingw* )
29431 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29432 ;;
29433esac
29434
29435cat >>confdefs.h <<_ACEOF
29436#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29437_ACEOF
29438
29439
29440
29441#
29442# Path to ImageMagick share files
29443SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29444SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29445DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29446case "${build_os}" in
29447 mingw* )
29448 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29449 ;;
29450esac
29451
29452cat >>confdefs.h <<_ACEOF
29453#define SHARE_PATH "$DEFINE_SHARE_PATH"
29454_ACEOF
29455
29456
29457
29458# Subdirectory under share to place ImageMagick configuration files
29459SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29460
29461cat >>confdefs.h <<_ACEOF
29462#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29463_ACEOF
29464
29465SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29466DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29467case "${build_os}" in
29468 mingw* )
29469 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29470 ;;
29471esac
29472
29473cat >>confdefs.h <<_ACEOF
29474#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29475_ACEOF
29476
29477
29478
29479#
29480# program_transform_name is formed for use in a Makefile, so create a
29481# modified version for use in a shell script.
29482configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29483
29484# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029488$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029490$as_echo "" >&6; }
29491AutotraceDecodeDelegateDefault='autotrace'
29492AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029493BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029494BZIPDelegateDefault='bzip2'
29495BrowseDelegateDefault='xdg-open'
29496CGMDecodeDelegateDefault='ralcgm'
29497CatDelegateDefault='cat'
29498DNGDecodeDelegateDefault='ufraw-batch'
29499GVCDecodeDelegateDefault='dot'
29500DVIDecodeDelegateDefault='dvips'
29501EchoDelegateDefault='echo'
29502EditorDelegateDefault='xterm'
29503FIGDecodeDelegateDefault='fig2dev'
29504ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29505DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29506MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29507GnuplotDecodeDelegateDefault='gnuplot'
29508HDRDecodeDelegateDefault='ra_pfm'
29509HPGLDecodeDelegateDefault='hp2xx'
29510HTMLDecodeDelegateDefault='html2ps'
29511ILBMDecodeDelegateDefault='ilbmtoppm'
29512ILBMEncodeDelegateDefault='ppmtoilbm'
29513LPDelegateDefault='lp'
29514LPRDelegateDefault='lpr'
29515LZWDecodeDelegateDefault='uncompress'
29516LZWEncodeDelegateDefault='compress'
29517LaunchDelegateDefault='gimp'
29518MANDelegateDefault='groff'
29519MPEGDecodeDelegateDefault='ffmpeg'
29520MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029521MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029522MVDelegateDefault='mv'
29523PCLDelegateDefault='pcl6'
29524PGPDecodeDelegateDefault='pgpv'
29525POVDelegateDefault='povray'
29526if test "$native_win32_build" = 'yes'; then
29527 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029528elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029529 PSDelegateDefault='gsc'
29530else
29531 PSDelegateDefault='gs'
29532fi
29533RLEEncodeDelegateDefault='rawtorle'
29534RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029535RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029536SCANDecodeDelegateDefault='scanimage'
29537TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029538UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029539WMFDecodeDelegateDefault='wmf2eps'
29540WWWDecodeDelegateDefault='curl'
29541XPSDelegateDefault='gxps'
29542ZipDelegateDefault='gzip'
29543
29544# Search for delegates
29545# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29546set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029548$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029549if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 $as_echo_n "(cached) " >&6
29551else
29552 case $AutotraceDecodeDelegate in
29553 [\\/]* | ?:[\\/]*)
29554 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29555 ;;
29556 *)
29557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29558for as_dir in $PATH
29559do
29560 IFS=$as_save_IFS
29561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29564 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029566 break 2
29567 fi
29568done
cristy8b350f62009-11-15 23:12:43 +000029569 done
cristy3ed852e2009-09-05 21:47:34 +000029570IFS=$as_save_IFS
29571
29572 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29573 ;;
29574esac
29575fi
29576AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29577if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029579$as_echo "$AutotraceDecodeDelegate" >&6; }
29580else
cristy8b350f62009-11-15 23:12:43 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029582$as_echo "no" >&6; }
29583fi
29584
29585
29586# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29587set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029589$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029590if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 $as_echo_n "(cached) " >&6
29592else
29593 case $AVIDecodeDelegate in
29594 [\\/]* | ?:[\\/]*)
29595 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29596 ;;
29597 *)
29598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29599for as_dir in $PATH
29600do
29601 IFS=$as_save_IFS
29602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29605 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029607 break 2
29608 fi
29609done
cristy8b350f62009-11-15 23:12:43 +000029610 done
cristy3ed852e2009-09-05 21:47:34 +000029611IFS=$as_save_IFS
29612
29613 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29614 ;;
29615esac
29616fi
29617AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29618if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo "$AVIDecodeDelegate" >&6; }
29621else
cristy8b350f62009-11-15 23:12:43 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo "no" >&6; }
29624fi
29625
29626
29627# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29628set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029630$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029631if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029632 $as_echo_n "(cached) " >&6
29633else
29634 case $BlenderDecodeDelegate in
29635 [\\/]* | ?:[\\/]*)
29636 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29637 ;;
29638 *)
29639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29640for as_dir in $PATH
29641do
29642 IFS=$as_save_IFS
29643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29646 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648 break 2
29649 fi
29650done
cristy8b350f62009-11-15 23:12:43 +000029651 done
cristy3ed852e2009-09-05 21:47:34 +000029652IFS=$as_save_IFS
29653
29654 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29655 ;;
29656esac
29657fi
29658BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29659if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo "$BlenderDecodeDelegate" >&6; }
29662else
cristy8b350f62009-11-15 23:12:43 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo "no" >&6; }
29665fi
29666
29667
29668# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29669set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029671$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029672if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029673 $as_echo_n "(cached) " >&6
29674else
29675 case $BZIPDelegate in
29676 [\\/]* | ?:[\\/]*)
29677 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29678 ;;
29679 *)
29680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29681for as_dir in $PATH
29682do
29683 IFS=$as_save_IFS
29684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29687 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689 break 2
29690 fi
29691done
cristy8b350f62009-11-15 23:12:43 +000029692 done
cristy3ed852e2009-09-05 21:47:34 +000029693IFS=$as_save_IFS
29694
29695 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29696 ;;
29697esac
29698fi
29699BZIPDelegate=$ac_cv_path_BZIPDelegate
29700if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo "$BZIPDelegate" >&6; }
29703else
cristy8b350f62009-11-15 23:12:43 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo "no" >&6; }
29706fi
29707
29708
29709# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29710set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029712$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029713if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029714 $as_echo_n "(cached) " >&6
29715else
29716 case $BrowseDelegate in
29717 [\\/]* | ?:[\\/]*)
29718 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29719 ;;
29720 *)
29721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29722for as_dir in $PATH
29723do
29724 IFS=$as_save_IFS
29725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29728 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730 break 2
29731 fi
29732done
cristy8b350f62009-11-15 23:12:43 +000029733 done
cristy3ed852e2009-09-05 21:47:34 +000029734IFS=$as_save_IFS
29735
29736 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29737 ;;
29738esac
29739fi
29740BrowseDelegate=$ac_cv_path_BrowseDelegate
29741if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029743$as_echo "$BrowseDelegate" >&6; }
29744else
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo "no" >&6; }
29747fi
29748
29749
29750# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29751set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029754if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029755 $as_echo_n "(cached) " >&6
29756else
29757 case $CGMDecodeDelegate in
29758 [\\/]* | ?:[\\/]*)
29759 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29760 ;;
29761 *)
29762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29763for as_dir in $PATH
29764do
29765 IFS=$as_save_IFS
29766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29769 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771 break 2
29772 fi
29773done
cristy8b350f62009-11-15 23:12:43 +000029774 done
cristy3ed852e2009-09-05 21:47:34 +000029775IFS=$as_save_IFS
29776
29777 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29778 ;;
29779esac
29780fi
29781CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29782if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo "$CGMDecodeDelegate" >&6; }
29785else
cristy8b350f62009-11-15 23:12:43 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo "no" >&6; }
29788fi
29789
29790
29791# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29792set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029795if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029796 $as_echo_n "(cached) " >&6
29797else
29798 case $CatDelegate in
29799 [\\/]* | ?:[\\/]*)
29800 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29801 ;;
29802 *)
29803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29804for as_dir in $PATH
29805do
29806 IFS=$as_save_IFS
29807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29810 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812 break 2
29813 fi
29814done
cristy8b350f62009-11-15 23:12:43 +000029815 done
cristy3ed852e2009-09-05 21:47:34 +000029816IFS=$as_save_IFS
29817
29818 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29819 ;;
29820esac
29821fi
29822CatDelegate=$ac_cv_path_CatDelegate
29823if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo "$CatDelegate" >&6; }
29826else
cristy8b350f62009-11-15 23:12:43 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029828$as_echo "no" >&6; }
29829fi
29830
29831
29832# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29833set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029835$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029836if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029837 $as_echo_n "(cached) " >&6
29838else
29839 case $DNGDecodeDelegate in
29840 [\\/]* | ?:[\\/]*)
29841 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29842 ;;
29843 *)
29844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29845for as_dir in $PATH
29846do
29847 IFS=$as_save_IFS
29848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29851 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853 break 2
29854 fi
29855done
cristy8b350f62009-11-15 23:12:43 +000029856 done
cristy3ed852e2009-09-05 21:47:34 +000029857IFS=$as_save_IFS
29858
29859 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29860 ;;
29861esac
29862fi
29863DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29864if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo "$DNGDecodeDelegate" >&6; }
29867else
cristy8b350f62009-11-15 23:12:43 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo "no" >&6; }
29870fi
29871
29872
29873# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29874set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029876$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029877if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029878 $as_echo_n "(cached) " >&6
29879else
29880 case $GVCDecodeDelegate in
29881 [\\/]* | ?:[\\/]*)
29882 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29883 ;;
29884 *)
29885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29886for as_dir in $PATH
29887do
29888 IFS=$as_save_IFS
29889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29892 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894 break 2
29895 fi
29896done
cristy8b350f62009-11-15 23:12:43 +000029897 done
cristy3ed852e2009-09-05 21:47:34 +000029898IFS=$as_save_IFS
29899
29900 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29901 ;;
29902esac
29903fi
29904GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29905if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo "$GVCDecodeDelegate" >&6; }
29908else
cristy8b350f62009-11-15 23:12:43 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029910$as_echo "no" >&6; }
29911fi
29912
29913
29914# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29915set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029917$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029918if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029919 $as_echo_n "(cached) " >&6
29920else
29921 case $DVIDecodeDelegate in
29922 [\\/]* | ?:[\\/]*)
29923 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29924 ;;
29925 *)
29926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29927for as_dir in $PATH
29928do
29929 IFS=$as_save_IFS
29930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29933 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935 break 2
29936 fi
29937done
cristy8b350f62009-11-15 23:12:43 +000029938 done
cristy3ed852e2009-09-05 21:47:34 +000029939IFS=$as_save_IFS
29940
29941 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29942 ;;
29943esac
29944fi
29945DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29946if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo "$DVIDecodeDelegate" >&6; }
29949else
cristy8b350f62009-11-15 23:12:43 +000029950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029951$as_echo "no" >&6; }
29952fi
29953
29954
29955# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29956set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029959if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029960 $as_echo_n "(cached) " >&6
29961else
29962 case $EchoDelegate in
29963 [\\/]* | ?:[\\/]*)
29964 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29965 ;;
29966 *)
29967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29968for as_dir in $PATH
29969do
29970 IFS=$as_save_IFS
29971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29974 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976 break 2
29977 fi
29978done
cristy8b350f62009-11-15 23:12:43 +000029979 done
cristy3ed852e2009-09-05 21:47:34 +000029980IFS=$as_save_IFS
29981
29982 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29983 ;;
29984esac
29985fi
29986EchoDelegate=$ac_cv_path_EchoDelegate
29987if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029989$as_echo "$EchoDelegate" >&6; }
29990else
cristy8b350f62009-11-15 23:12:43 +000029991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029992$as_echo "no" >&6; }
29993fi
29994
29995
29996# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29997set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029999$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030000if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030001 $as_echo_n "(cached) " >&6
30002else
30003 case $EditorDelegate in
30004 [\\/]* | ?:[\\/]*)
30005 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30006 ;;
30007 *)
30008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30009for as_dir in $PATH
30010do
30011 IFS=$as_save_IFS
30012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30015 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017 break 2
30018 fi
30019done
cristy8b350f62009-11-15 23:12:43 +000030020 done
cristy3ed852e2009-09-05 21:47:34 +000030021IFS=$as_save_IFS
30022
30023 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30024 ;;
30025esac
30026fi
30027EditorDelegate=$ac_cv_path_EditorDelegate
30028if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030030$as_echo "$EditorDelegate" >&6; }
30031else
cristy8b350f62009-11-15 23:12:43 +000030032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030033$as_echo "no" >&6; }
30034fi
30035
30036
30037# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30038set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030040$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030041if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030042 $as_echo_n "(cached) " >&6
30043else
30044 case $FIGDecodeDelegate in
30045 [\\/]* | ?:[\\/]*)
30046 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30047 ;;
30048 *)
30049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30050for as_dir in $PATH
30051do
30052 IFS=$as_save_IFS
30053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30056 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058 break 2
30059 fi
30060done
cristy8b350f62009-11-15 23:12:43 +000030061 done
cristy3ed852e2009-09-05 21:47:34 +000030062IFS=$as_save_IFS
30063
30064 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30065 ;;
30066esac
30067fi
30068FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30069if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo "$FIGDecodeDelegate" >&6; }
30072else
cristy8b350f62009-11-15 23:12:43 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo "no" >&6; }
30075fi
30076
30077
30078# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30079set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030082if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030083 $as_echo_n "(cached) " >&6
30084else
30085 case $ConvertDelegate in
30086 [\\/]* | ?:[\\/]*)
30087 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30088 ;;
30089 *)
30090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30091for as_dir in $PATH
30092do
30093 IFS=$as_save_IFS
30094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30097 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099 break 2
30100 fi
30101done
cristy8b350f62009-11-15 23:12:43 +000030102 done
cristy3ed852e2009-09-05 21:47:34 +000030103IFS=$as_save_IFS
30104
30105 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30106 ;;
30107esac
30108fi
30109ConvertDelegate=$ac_cv_path_ConvertDelegate
30110if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "$ConvertDelegate" >&6; }
30113else
cristy8b350f62009-11-15 23:12:43 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo "no" >&6; }
30116fi
30117
30118
30119# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30120set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030123if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030124 $as_echo_n "(cached) " >&6
30125else
30126 case $DisplayDelegate in
30127 [\\/]* | ?:[\\/]*)
30128 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30129 ;;
30130 *)
30131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30132for as_dir in $PATH
30133do
30134 IFS=$as_save_IFS
30135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30138 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140 break 2
30141 fi
30142done
cristy8b350f62009-11-15 23:12:43 +000030143 done
cristy3ed852e2009-09-05 21:47:34 +000030144IFS=$as_save_IFS
30145
30146 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30147 ;;
30148esac
30149fi
30150DisplayDelegate=$ac_cv_path_DisplayDelegate
30151if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo "$DisplayDelegate" >&6; }
30154else
cristy8b350f62009-11-15 23:12:43 +000030155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo "no" >&6; }
30157fi
30158
30159
30160# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30161set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030163$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030164if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030165 $as_echo_n "(cached) " >&6
30166else
30167 case $MogrifyDelegate in
30168 [\\/]* | ?:[\\/]*)
30169 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30170 ;;
30171 *)
30172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30173for as_dir in $PATH
30174do
30175 IFS=$as_save_IFS
30176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30179 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181 break 2
30182 fi
30183done
cristy8b350f62009-11-15 23:12:43 +000030184 done
cristy3ed852e2009-09-05 21:47:34 +000030185IFS=$as_save_IFS
30186
30187 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30188 ;;
30189esac
30190fi
30191MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30192if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "$MogrifyDelegate" >&6; }
30195else
cristy8b350f62009-11-15 23:12:43 +000030196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030197$as_echo "no" >&6; }
30198fi
30199
30200
30201# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30202set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030204$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030205if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030206 $as_echo_n "(cached) " >&6
30207else
30208 case $GnuplotDecodeDelegate in
30209 [\\/]* | ?:[\\/]*)
30210 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30211 ;;
30212 *)
30213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30214for as_dir in $PATH
30215do
30216 IFS=$as_save_IFS
30217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30220 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222 break 2
30223 fi
30224done
cristy8b350f62009-11-15 23:12:43 +000030225 done
cristy3ed852e2009-09-05 21:47:34 +000030226IFS=$as_save_IFS
30227
30228 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30229 ;;
30230esac
30231fi
30232GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30233if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo "$GnuplotDecodeDelegate" >&6; }
30236else
cristy8b350f62009-11-15 23:12:43 +000030237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030238$as_echo "no" >&6; }
30239fi
30240
30241
30242# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30243set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030245$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030246if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030247 $as_echo_n "(cached) " >&6
30248else
30249 case $HDRDecodeDelegate in
30250 [\\/]* | ?:[\\/]*)
30251 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30252 ;;
30253 *)
30254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30255for as_dir in $PATH
30256do
30257 IFS=$as_save_IFS
30258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30261 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263 break 2
30264 fi
30265done
cristy8b350f62009-11-15 23:12:43 +000030266 done
cristy3ed852e2009-09-05 21:47:34 +000030267IFS=$as_save_IFS
30268
30269 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30270 ;;
30271esac
30272fi
30273HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30274if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo "$HDRDecodeDelegate" >&6; }
30277else
cristy8b350f62009-11-15 23:12:43 +000030278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030279$as_echo "no" >&6; }
30280fi
30281
30282
30283# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30284set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030286$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030287if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030288 $as_echo_n "(cached) " >&6
30289else
30290 case $HPGLDecodeDelegate in
30291 [\\/]* | ?:[\\/]*)
30292 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30293 ;;
30294 *)
30295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30296for as_dir in $PATH
30297do
30298 IFS=$as_save_IFS
30299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30302 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304 break 2
30305 fi
30306done
cristy8b350f62009-11-15 23:12:43 +000030307 done
cristy3ed852e2009-09-05 21:47:34 +000030308IFS=$as_save_IFS
30309
30310 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30311 ;;
30312esac
30313fi
30314HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30315if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "$HPGLDecodeDelegate" >&6; }
30318else
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo "no" >&6; }
30321fi
30322
30323
30324# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30325set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030328if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030329 $as_echo_n "(cached) " >&6
30330else
30331 case $HTMLDecodeDelegate in
30332 [\\/]* | ?:[\\/]*)
30333 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30334 ;;
30335 *)
30336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30337for as_dir in $PATH
30338do
30339 IFS=$as_save_IFS
30340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30343 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345 break 2
30346 fi
30347done
cristy8b350f62009-11-15 23:12:43 +000030348 done
cristy3ed852e2009-09-05 21:47:34 +000030349IFS=$as_save_IFS
30350
30351 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30352 ;;
30353esac
30354fi
30355HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30356if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo "$HTMLDecodeDelegate" >&6; }
30359else
cristy8b350f62009-11-15 23:12:43 +000030360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo "no" >&6; }
30362fi
30363
30364
30365# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30366set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030368$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030369if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030370 $as_echo_n "(cached) " >&6
30371else
30372 case $ILBMDecodeDelegate in
30373 [\\/]* | ?:[\\/]*)
30374 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30375 ;;
30376 *)
30377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30378for as_dir in $PATH
30379do
30380 IFS=$as_save_IFS
30381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30384 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386 break 2
30387 fi
30388done
cristy8b350f62009-11-15 23:12:43 +000030389 done
cristy3ed852e2009-09-05 21:47:34 +000030390IFS=$as_save_IFS
30391
30392 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30393 ;;
30394esac
30395fi
30396ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30397if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030399$as_echo "$ILBMDecodeDelegate" >&6; }
30400else
cristy8b350f62009-11-15 23:12:43 +000030401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030402$as_echo "no" >&6; }
30403fi
30404
30405
30406# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30407set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030409$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030410if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030411 $as_echo_n "(cached) " >&6
30412else
30413 case $ILBMEncodeDelegate in
30414 [\\/]* | ?:[\\/]*)
30415 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30416 ;;
30417 *)
30418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30419for as_dir in $PATH
30420do
30421 IFS=$as_save_IFS
30422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30425 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427 break 2
30428 fi
30429done
cristy8b350f62009-11-15 23:12:43 +000030430 done
cristy3ed852e2009-09-05 21:47:34 +000030431IFS=$as_save_IFS
30432
30433 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30434 ;;
30435esac
30436fi
30437ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30438if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "$ILBMEncodeDelegate" >&6; }
30441else
cristy8b350f62009-11-15 23:12:43 +000030442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo "no" >&6; }
30444fi
30445
30446
30447# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30448set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030450$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030451if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030452 $as_echo_n "(cached) " >&6
30453else
30454 case $LPDelegate in
30455 [\\/]* | ?:[\\/]*)
30456 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30457 ;;
30458 *)
30459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30460for as_dir in $PATH
30461do
30462 IFS=$as_save_IFS
30463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30466 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468 break 2
30469 fi
30470done
cristy8b350f62009-11-15 23:12:43 +000030471 done
cristy3ed852e2009-09-05 21:47:34 +000030472IFS=$as_save_IFS
30473
30474 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30475 ;;
30476esac
30477fi
30478LPDelegate=$ac_cv_path_LPDelegate
30479if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030481$as_echo "$LPDelegate" >&6; }
30482else
cristy8b350f62009-11-15 23:12:43 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030484$as_echo "no" >&6; }
30485fi
30486
30487
30488# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30489set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030491$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030492if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030493 $as_echo_n "(cached) " >&6
30494else
30495 case $LPRDelegate in
30496 [\\/]* | ?:[\\/]*)
30497 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30498 ;;
30499 *)
30500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30501for as_dir in $PATH
30502do
30503 IFS=$as_save_IFS
30504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30507 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509 break 2
30510 fi
30511done
cristy8b350f62009-11-15 23:12:43 +000030512 done
cristy3ed852e2009-09-05 21:47:34 +000030513IFS=$as_save_IFS
30514
30515 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30516 ;;
30517esac
30518fi
30519LPRDelegate=$ac_cv_path_LPRDelegate
30520if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo "$LPRDelegate" >&6; }
30523else
cristy8b350f62009-11-15 23:12:43 +000030524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030525$as_echo "no" >&6; }
30526fi
30527
30528
30529# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30530set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030532$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030533if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030534 $as_echo_n "(cached) " >&6
30535else
30536 case $LZWDecodeDelegate in
30537 [\\/]* | ?:[\\/]*)
30538 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30539 ;;
30540 *)
30541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30542for as_dir in $PATH
30543do
30544 IFS=$as_save_IFS
30545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30548 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550 break 2
30551 fi
30552done
cristy8b350f62009-11-15 23:12:43 +000030553 done
cristy3ed852e2009-09-05 21:47:34 +000030554IFS=$as_save_IFS
30555
30556 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30557 ;;
30558esac
30559fi
30560LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30561if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030563$as_echo "$LZWDecodeDelegate" >&6; }
30564else
cristy8b350f62009-11-15 23:12:43 +000030565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030566$as_echo "no" >&6; }
30567fi
30568
30569
30570# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30571set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030574if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030575 $as_echo_n "(cached) " >&6
30576else
30577 case $LZWEncodeDelegate in
30578 [\\/]* | ?:[\\/]*)
30579 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30580 ;;
30581 *)
30582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30583for as_dir in $PATH
30584do
30585 IFS=$as_save_IFS
30586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30589 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591 break 2
30592 fi
30593done
cristy8b350f62009-11-15 23:12:43 +000030594 done
cristy3ed852e2009-09-05 21:47:34 +000030595IFS=$as_save_IFS
30596
30597 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30598 ;;
30599esac
30600fi
30601LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30602if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo "$LZWEncodeDelegate" >&6; }
30605else
cristy8b350f62009-11-15 23:12:43 +000030606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030607$as_echo "no" >&6; }
30608fi
30609
30610
30611# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30612set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030615if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030616 $as_echo_n "(cached) " >&6
30617else
30618 case $LaunchDelegate in
30619 [\\/]* | ?:[\\/]*)
30620 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30621 ;;
30622 *)
30623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624for as_dir in $PATH
30625do
30626 IFS=$as_save_IFS
30627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30630 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632 break 2
30633 fi
30634done
cristy8b350f62009-11-15 23:12:43 +000030635 done
cristy3ed852e2009-09-05 21:47:34 +000030636IFS=$as_save_IFS
30637
30638 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30639 ;;
30640esac
30641fi
30642LaunchDelegate=$ac_cv_path_LaunchDelegate
30643if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "$LaunchDelegate" >&6; }
30646else
cristy8b350f62009-11-15 23:12:43 +000030647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030648$as_echo "no" >&6; }
30649fi
30650
30651
30652# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30653set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030656if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030657 $as_echo_n "(cached) " >&6
30658else
30659 case $MANDelegate in
30660 [\\/]* | ?:[\\/]*)
30661 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30662 ;;
30663 *)
30664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30665for as_dir in $PATH
30666do
30667 IFS=$as_save_IFS
30668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30671 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673 break 2
30674 fi
30675done
cristy8b350f62009-11-15 23:12:43 +000030676 done
cristy3ed852e2009-09-05 21:47:34 +000030677IFS=$as_save_IFS
30678
30679 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30680 ;;
30681esac
30682fi
30683MANDelegate=$ac_cv_path_MANDelegate
30684if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo "$MANDelegate" >&6; }
30687else
cristy8b350f62009-11-15 23:12:43 +000030688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030689$as_echo "no" >&6; }
30690fi
30691
30692
30693# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30694set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030697if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030698 $as_echo_n "(cached) " >&6
30699else
30700 case $MPEGDecodeDelegate in
30701 [\\/]* | ?:[\\/]*)
30702 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30703 ;;
30704 *)
30705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706for as_dir in $PATH
30707do
30708 IFS=$as_save_IFS
30709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30712 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714 break 2
30715 fi
30716done
cristy8b350f62009-11-15 23:12:43 +000030717 done
cristy3ed852e2009-09-05 21:47:34 +000030718IFS=$as_save_IFS
30719
30720 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30721 ;;
30722esac
30723fi
30724MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30725if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo "$MPEGDecodeDelegate" >&6; }
30728else
cristy8b350f62009-11-15 23:12:43 +000030729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030730$as_echo "no" >&6; }
30731fi
30732
30733
30734# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30735set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030738if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030739 $as_echo_n "(cached) " >&6
30740else
30741 case $MPEGEncodeDelegate in
30742 [\\/]* | ?:[\\/]*)
30743 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30744 ;;
30745 *)
30746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30747for as_dir in $PATH
30748do
30749 IFS=$as_save_IFS
30750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30753 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755 break 2
30756 fi
30757done
cristy8b350f62009-11-15 23:12:43 +000030758 done
cristy3ed852e2009-09-05 21:47:34 +000030759IFS=$as_save_IFS
30760
30761 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30762 ;;
30763esac
30764fi
30765MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30766if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030768$as_echo "$MPEGEncodeDelegate" >&6; }
30769else
cristy8b350f62009-11-15 23:12:43 +000030770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030771$as_echo "no" >&6; }
30772fi
30773
30774
cristy935c86e2010-06-05 23:50:07 +000030775# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30776set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30778$as_echo_n "checking for $ac_word... " >&6; }
30779if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30780 $as_echo_n "(cached) " >&6
30781else
30782 case $MrSIDDecodeDelegate in
30783 [\\/]* | ?:[\\/]*)
30784 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30785 ;;
30786 *)
30787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788for as_dir in $PATH
30789do
30790 IFS=$as_save_IFS
30791 test -z "$as_dir" && as_dir=.
30792 for ac_exec_ext in '' $ac_executable_extensions; do
30793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30794 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30796 break 2
30797 fi
30798done
30799 done
30800IFS=$as_save_IFS
30801
30802 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30803 ;;
30804esac
30805fi
30806MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30807if test -n "$MrSIDDecodeDelegate"; then
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30809$as_echo "$MrSIDDecodeDelegate" >&6; }
30810else
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30812$as_echo "no" >&6; }
30813fi
30814
30815
cristy3ed852e2009-09-05 21:47:34 +000030816# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30817set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030819$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030820if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030821 $as_echo_n "(cached) " >&6
30822else
30823 case $MVDelegate in
30824 [\\/]* | ?:[\\/]*)
30825 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30826 ;;
30827 *)
30828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829for as_dir in $PATH
30830do
30831 IFS=$as_save_IFS
30832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30835 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837 break 2
30838 fi
30839done
cristy8b350f62009-11-15 23:12:43 +000030840 done
cristy3ed852e2009-09-05 21:47:34 +000030841IFS=$as_save_IFS
30842
30843 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30844 ;;
30845esac
30846fi
30847MVDelegate=$ac_cv_path_MVDelegate
30848if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030850$as_echo "$MVDelegate" >&6; }
30851else
cristy8b350f62009-11-15 23:12:43 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030853$as_echo "no" >&6; }
30854fi
30855
30856
30857# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30858set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030861if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030862 $as_echo_n "(cached) " >&6
30863else
30864 case $PCLDelegate in
30865 [\\/]* | ?:[\\/]*)
30866 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30867 ;;
30868 *)
30869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30870for as_dir in $PATH
30871do
30872 IFS=$as_save_IFS
30873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30876 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030878 break 2
30879 fi
30880done
cristy8b350f62009-11-15 23:12:43 +000030881 done
cristy3ed852e2009-09-05 21:47:34 +000030882IFS=$as_save_IFS
30883
30884 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30885 ;;
30886esac
30887fi
30888PCLDelegate=$ac_cv_path_PCLDelegate
30889if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030891$as_echo "$PCLDelegate" >&6; }
30892else
cristy8b350f62009-11-15 23:12:43 +000030893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030894$as_echo "no" >&6; }
30895fi
30896
30897
30898# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30899set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030902if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030903 $as_echo_n "(cached) " >&6
30904else
30905 case $PGPDecodeDelegate in
30906 [\\/]* | ?:[\\/]*)
30907 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30908 ;;
30909 *)
30910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911for as_dir in $PATH
30912do
30913 IFS=$as_save_IFS
30914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919 break 2
30920 fi
30921done
cristy8b350f62009-11-15 23:12:43 +000030922 done
cristy3ed852e2009-09-05 21:47:34 +000030923IFS=$as_save_IFS
30924
30925 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30926 ;;
30927esac
30928fi
30929PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30930if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo "$PGPDecodeDelegate" >&6; }
30933else
cristy8b350f62009-11-15 23:12:43 +000030934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030935$as_echo "no" >&6; }
30936fi
30937
30938
30939# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30940set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030943if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030944 $as_echo_n "(cached) " >&6
30945else
30946 case $POVDelegate in
30947 [\\/]* | ?:[\\/]*)
30948 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30949 ;;
30950 *)
30951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30952for as_dir in $PATH
30953do
30954 IFS=$as_save_IFS
30955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30958 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030960 break 2
30961 fi
30962done
cristy8b350f62009-11-15 23:12:43 +000030963 done
cristy3ed852e2009-09-05 21:47:34 +000030964IFS=$as_save_IFS
30965
30966 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30967 ;;
30968esac
30969fi
30970POVDelegate=$ac_cv_path_POVDelegate
30971if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo "$POVDelegate" >&6; }
30974else
cristy8b350f62009-11-15 23:12:43 +000030975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030976$as_echo "no" >&6; }
30977fi
30978
30979
30980for ac_prog in gsx gsc "$PSDelegateDefault"
30981do
30982 # Extract the first word of "$ac_prog", so it can be a program name with args.
30983set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030986if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030987 $as_echo_n "(cached) " >&6
30988else
30989 case $PSDelegate in
30990 [\\/]* | ?:[\\/]*)
30991 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30992 ;;
30993 *)
30994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30995for as_dir in $PATH
30996do
30997 IFS=$as_save_IFS
30998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31001 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031003 break 2
31004 fi
31005done
cristy8b350f62009-11-15 23:12:43 +000031006 done
cristy3ed852e2009-09-05 21:47:34 +000031007IFS=$as_save_IFS
31008
31009 ;;
31010esac
31011fi
31012PSDelegate=$ac_cv_path_PSDelegate
31013if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031015$as_echo "$PSDelegate" >&6; }
31016else
cristy8b350f62009-11-15 23:12:43 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo "no" >&6; }
31019fi
31020
31021
31022 test -n "$PSDelegate" && break
31023done
31024test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31025
31026# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31027set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031029$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031030if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031031 $as_echo_n "(cached) " >&6
31032else
31033 case $RLEEncodeDelegate in
31034 [\\/]* | ?:[\\/]*)
31035 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31036 ;;
31037 *)
31038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31039for as_dir in $PATH
31040do
31041 IFS=$as_save_IFS
31042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31045 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047 break 2
31048 fi
31049done
cristy8b350f62009-11-15 23:12:43 +000031050 done
cristy3ed852e2009-09-05 21:47:34 +000031051IFS=$as_save_IFS
31052
31053 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31054 ;;
31055esac
31056fi
31057RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31058if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo "$RLEEncodeDelegate" >&6; }
31061else
cristy8b350f62009-11-15 23:12:43 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo "no" >&6; }
31064fi
31065
31066
31067# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31068set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031070$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031071if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031072 $as_echo_n "(cached) " >&6
31073else
31074 case $RMDelegate in
31075 [\\/]* | ?:[\\/]*)
31076 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31077 ;;
31078 *)
31079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31080for as_dir in $PATH
31081do
31082 IFS=$as_save_IFS
31083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31086 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088 break 2
31089 fi
31090done
cristy8b350f62009-11-15 23:12:43 +000031091 done
cristy3ed852e2009-09-05 21:47:34 +000031092IFS=$as_save_IFS
31093
31094 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31095 ;;
31096esac
31097fi
31098RMDelegate=$ac_cv_path_RMDelegate
31099if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031101$as_echo "$RMDelegate" >&6; }
31102else
cristy8b350f62009-11-15 23:12:43 +000031103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104$as_echo "no" >&6; }
31105fi
31106
31107
cristy4689cf02010-02-17 21:15:45 +000031108# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31109set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31111$as_echo_n "checking for $ac_word... " >&6; }
31112if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31113 $as_echo_n "(cached) " >&6
31114else
31115 case $RSVGDecodeDelegate in
31116 [\\/]* | ?:[\\/]*)
31117 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31118 ;;
31119 *)
31120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31121for as_dir in $PATH
31122do
31123 IFS=$as_save_IFS
31124 test -z "$as_dir" && as_dir=.
31125 for ac_exec_ext in '' $ac_executable_extensions; do
31126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31127 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31129 break 2
31130 fi
31131done
31132 done
31133IFS=$as_save_IFS
31134
31135 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31136 ;;
31137esac
31138fi
31139RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31140if test -n "$RSVGDecodeDelegate"; then
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31142$as_echo "$RSVGDecodeDelegate" >&6; }
31143else
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31145$as_echo "no" >&6; }
31146fi
31147
31148
cristy3ed852e2009-09-05 21:47:34 +000031149# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31150set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031153if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031154 $as_echo_n "(cached) " >&6
31155else
31156 case $SCANDecodeDelegate in
31157 [\\/]* | ?:[\\/]*)
31158 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31159 ;;
31160 *)
31161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31162for as_dir in $PATH
31163do
31164 IFS=$as_save_IFS
31165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31168 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170 break 2
31171 fi
31172done
cristy8b350f62009-11-15 23:12:43 +000031173 done
cristy3ed852e2009-09-05 21:47:34 +000031174IFS=$as_save_IFS
31175
31176 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31177 ;;
31178esac
31179fi
31180SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31181if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "$SCANDecodeDelegate" >&6; }
31184else
cristy8b350f62009-11-15 23:12:43 +000031185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031186$as_echo "no" >&6; }
31187fi
31188
31189
31190# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31191set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031194if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031195 $as_echo_n "(cached) " >&6
31196else
31197 case $TXTDelegate in
31198 [\\/]* | ?:[\\/]*)
31199 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31200 ;;
31201 *)
31202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31203for as_dir in $PATH
31204do
31205 IFS=$as_save_IFS
31206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31209 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211 break 2
31212 fi
31213done
cristy8b350f62009-11-15 23:12:43 +000031214 done
cristy3ed852e2009-09-05 21:47:34 +000031215IFS=$as_save_IFS
31216
31217 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31218 ;;
31219esac
31220fi
31221TXTDelegate=$ac_cv_path_TXTDelegate
31222if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "$TXTDelegate" >&6; }
31225else
cristy8b350f62009-11-15 23:12:43 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo "no" >&6; }
31228fi
31229
31230
cristy5ac9ac82010-07-29 13:24:24 +000031231# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31232set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31234$as_echo_n "checking for $ac_word... " >&6; }
31235if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31236 $as_echo_n "(cached) " >&6
31237else
31238 case $UniconvertorDelegate in
31239 [\\/]* | ?:[\\/]*)
31240 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31241 ;;
31242 *)
31243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31244for as_dir in $PATH
31245do
31246 IFS=$as_save_IFS
31247 test -z "$as_dir" && as_dir=.
31248 for ac_exec_ext in '' $ac_executable_extensions; do
31249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31250 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31252 break 2
31253 fi
31254done
31255 done
31256IFS=$as_save_IFS
31257
31258 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31259 ;;
31260esac
31261fi
31262UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31263if test -n "$UniconvertorDelegate"; then
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31265$as_echo "$UniconvertorDelegate" >&6; }
31266else
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31268$as_echo "no" >&6; }
31269fi
31270
31271
cristy3ed852e2009-09-05 21:47:34 +000031272# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31273set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031276if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031277 $as_echo_n "(cached) " >&6
31278else
31279 case $WMFDecodeDelegate in
31280 [\\/]* | ?:[\\/]*)
31281 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31282 ;;
31283 *)
31284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31285for as_dir in $PATH
31286do
31287 IFS=$as_save_IFS
31288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31291 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293 break 2
31294 fi
31295done
cristy8b350f62009-11-15 23:12:43 +000031296 done
cristy3ed852e2009-09-05 21:47:34 +000031297IFS=$as_save_IFS
31298
31299 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31300 ;;
31301esac
31302fi
31303WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31304if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "$WMFDecodeDelegate" >&6; }
31307else
cristy8b350f62009-11-15 23:12:43 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo "no" >&6; }
31310fi
31311
31312
31313# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31314set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031317if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031318 $as_echo_n "(cached) " >&6
31319else
31320 case $WWWDecodeDelegate in
31321 [\\/]* | ?:[\\/]*)
31322 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31323 ;;
31324 *)
31325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31326for as_dir in $PATH
31327do
31328 IFS=$as_save_IFS
31329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31332 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334 break 2
31335 fi
31336done
cristy8b350f62009-11-15 23:12:43 +000031337 done
cristy3ed852e2009-09-05 21:47:34 +000031338IFS=$as_save_IFS
31339
31340 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31341 ;;
31342esac
31343fi
31344WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31345if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "$WWWDecodeDelegate" >&6; }
31348else
cristy8b350f62009-11-15 23:12:43 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo "no" >&6; }
31351fi
31352
31353
31354# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31355set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031358if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 $as_echo_n "(cached) " >&6
31360else
31361 case $XPSDelegate in
31362 [\\/]* | ?:[\\/]*)
31363 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31364 ;;
31365 *)
31366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31367for as_dir in $PATH
31368do
31369 IFS=$as_save_IFS
31370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31373 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375 break 2
31376 fi
31377done
cristy8b350f62009-11-15 23:12:43 +000031378 done
cristy3ed852e2009-09-05 21:47:34 +000031379IFS=$as_save_IFS
31380
31381 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31382 ;;
31383esac
31384fi
31385XPSDelegate=$ac_cv_path_XPSDelegate
31386if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "$XPSDelegate" >&6; }
31389else
cristy8b350f62009-11-15 23:12:43 +000031390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391$as_echo "no" >&6; }
31392fi
31393
31394
31395# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31396set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031398$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031399if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031400 $as_echo_n "(cached) " >&6
31401else
31402 case $ZipDelegate in
31403 [\\/]* | ?:[\\/]*)
31404 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31405 ;;
31406 *)
31407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31408for as_dir in $PATH
31409do
31410 IFS=$as_save_IFS
31411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31414 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416 break 2
31417 fi
31418done
cristy8b350f62009-11-15 23:12:43 +000031419 done
cristy3ed852e2009-09-05 21:47:34 +000031420IFS=$as_save_IFS
31421
31422 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31423 ;;
31424esac
31425fi
31426ZipDelegate=$ac_cv_path_ZipDelegate
31427if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "$ZipDelegate" >&6; }
31430else
cristy8b350f62009-11-15 23:12:43 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031432$as_echo "no" >&6; }
31433fi
31434
31435
31436
31437# Prefer lpr to lp; lp needs options tacked on.
31438if test "$LPRDelegate" != no; then
31439 PrintDelegate="$LPRDelegate"
31440else
31441 PrintDelegate="$LPDelegate -c -s"
31442fi
31443
31444
31445# Installed ImageMagick utiltity paths
31446ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31447DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31448MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31449
31450# Set delegate booleans
31451have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31452have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31453have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31454have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31455have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31456have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031457have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031458have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31459have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31460have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31461have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31462have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31463
31464#
31465# Test for font directories
31466#
31467type_include_files=''
31468
cristy430a7312010-01-21 20:44:04 +000031469# Dejavu fonts.
31470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31471$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31472dejavu_font_dir=''
31473if test "${with_dejavu_font_dir}" != 'default'; then
31474 dejavu_font_dir="${with_dejavu_font_dir}/"
31475else
31476 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31477 if test -f "${font_dir}DejaVuSerif.ttf"; then
31478 dejavu_font_dir="${font_dir}"
31479 break 1
31480 fi
31481 done
31482fi
31483if test "${dejavu_font_dir}x" != 'x'; then
31484 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31486$as_echo "$dejavu_font_dir" >&6; }
31487else
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31489$as_echo "not found!" >&6; };
31490fi
31491
31492
cristy3ed852e2009-09-05 21:47:34 +000031493# Windows
31494windows_font_dir=''
31495if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31496 windows_font_dir="${with_windows_font_dir}/"
31497fi
cristy430a7312010-01-21 20:44:04 +000031498if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031499 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31500 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31501 fi
31502 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31503 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31504 fi
31505 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31506 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31507 fi
31508fi
cristy430a7312010-01-21 20:44:04 +000031509if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031510 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31511fi
31512
31513
31514# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031516$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31517ghostscript_font_dir=''
31518if test "${with_gs_font_dir}" != 'default'; then
31519 ghostscript_font_dir="${with_gs_font_dir}/"
31520else
31521 if test "${native_win32_build}" = 'yes'; then
31522 # Native Windows Build
31523 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31524 if test -f "${font_dir}a010013l.pfb"; then
31525 ghostscript_font_dir="$font_dir"
31526 break 1
31527 fi
31528 done
31529 if test "${PSDelegate}" != 'gswin32c'; then
31530 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31531 fi
31532 else
31533 # Linux / Mac OS X / Unix Build
31534 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
31535 if test -f "${font_dir}a010013l.pfb"; then
31536 ghostscript_font_dir="${font_dir}"
31537 break 1
31538 fi
31539 done
31540 if test "${ghostscript_font_dir}x" = 'x'; then
31541 if test "$PSDelegate" != 'gs'; then
31542 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31543 fi
31544 fi
31545 fi
31546fi
31547if test "${ghostscript_font_dir}x" != 'x'; then
31548 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031550$as_echo "$ghostscript_font_dir" >&6; }
31551else
cristy8b350f62009-11-15 23:12:43 +000031552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031553$as_echo "not found!" >&6; };
31554fi
31555
31556case "${build_os}" in
31557 mingw* )
31558 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31559 ;;
31560esac
31561
31562
31563
31564#
31565# Handle case where user doesn't want frozen paths
31566#
31567if test "$with_frozenpaths" != 'yes'; then
31568 # Re-set delegate definitions to default (no paths)
31569 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31570 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31571 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31572 BZIPDelegate="$BZIPDelegateDefault"
31573 BrowseDelegate="$BrowseDelegateDefault"
31574 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31575 CatDelegate="$CatDelegateDefault"
31576 ConvertDelegate="$ConvertDelegateDefault"
31577 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31578 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31579 EchoDelegate="$EchoDelegateDefault"
31580 EditorDelegate="$EditorDelegateDefault"
31581 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31582 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31583 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31584 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31585 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31586 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31587 LPDelegate="$LPDelegateDefault"
31588 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31589 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31590 LaunchDelegate="$LaunchDelegateDefault"
31591 MANDelegate="$MANDelegateDefault"
31592 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31593 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031594 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031595 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31596 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031597 PCLDelegate="$PCLDelegateDefault"
31598 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31599 POVDelegate="$POVDelegateDefault"
31600 PSDelegate="$PSDelegateDefault"
31601 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31602 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31603 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031604 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031605 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31606 ShowImageDelegate="$ShowImageDelegateDefault"
31607 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031608 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031609 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31610 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31611 XPSDelegate="$XPSDelegateDefault"
31612 ZipDelegate="$ZipDelegateDefault"
31613fi
31614
31615# Delegate substitutions
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
cristy935c86e2010-06-05 23:50:07 +000031658
cristy5ac9ac82010-07-29 13:24:24 +000031659
cristy3ed852e2009-09-05 21:47:34 +000031660#
31661# RPM support.
31662#
31663RPM=''
31664for ac_prog in gnutar gtar tar
31665do
31666 # Extract the first word of "$ac_prog", so it can be a program name with args.
31667set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031670if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031671 $as_echo_n "(cached) " >&6
31672else
31673 if test -n "$TAR"; then
31674 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31675else
31676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31677for as_dir in $PATH
31678do
31679 IFS=$as_save_IFS
31680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31683 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685 break 2
31686 fi
31687done
cristy8b350f62009-11-15 23:12:43 +000031688 done
cristy3ed852e2009-09-05 21:47:34 +000031689IFS=$as_save_IFS
31690
31691fi
31692fi
31693TAR=$ac_cv_prog_TAR
31694if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031696$as_echo "$TAR" >&6; }
31697else
cristy8b350f62009-11-15 23:12:43 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo "no" >&6; }
31700fi
31701
31702
31703 test -n "$TAR" && break
31704done
31705
31706for ac_prog in perl
31707do
31708 # Extract the first word of "$ac_prog", so it can be a program name with args.
31709set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031712if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031713 $as_echo_n "(cached) " >&6
31714else
31715 if test -n "$PERL"; then
31716 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31717else
31718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31719for as_dir in $PATH
31720do
31721 IFS=$as_save_IFS
31722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31725 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031727 break 2
31728 fi
31729done
cristy8b350f62009-11-15 23:12:43 +000031730 done
cristy3ed852e2009-09-05 21:47:34 +000031731IFS=$as_save_IFS
31732
31733fi
31734fi
31735PERL=$ac_cv_prog_PERL
31736if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "$PERL" >&6; }
31739else
cristy8b350f62009-11-15 23:12:43 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo "no" >&6; }
31742fi
31743
31744
31745 test -n "$PERL" && break
31746done
31747
31748for ac_prog in rpmbuild rpm
31749do
31750 # Extract the first word of "$ac_prog", so it can be a program name with args.
31751set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031754if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031755 $as_echo_n "(cached) " >&6
31756else
31757 if test -n "$RPM"; then
31758 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31759else
31760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31761for as_dir in $PATH
31762do
31763 IFS=$as_save_IFS
31764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31767 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769 break 2
31770 fi
31771done
cristy8b350f62009-11-15 23:12:43 +000031772 done
cristy3ed852e2009-09-05 21:47:34 +000031773IFS=$as_save_IFS
31774
31775fi
31776fi
31777RPM=$ac_cv_prog_RPM
31778if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031780$as_echo "$RPM" >&6; }
31781else
cristy8b350f62009-11-15 23:12:43 +000031782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031783$as_echo "no" >&6; }
31784fi
31785
31786
31787 test -n "$RPM" && break
31788done
31789
31790
31791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31792
31793
31794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31795
31796
31797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31798
31799
31800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31801
31802
31803 if test "x$RPM" != "x" ; then
31804 RPM_DELEGATE_TRUE=
31805 RPM_DELEGATE_FALSE='#'
31806else
31807 RPM_DELEGATE_TRUE='#'
31808 RPM_DELEGATE_FALSE=
31809fi
31810
31811
31812#
31813# 7ZIP support (http://p7zip.sourceforge.net/)
31814#
31815P7ZIP=''
31816for ac_prog in 7za
31817do
31818 # Extract the first word of "$ac_prog", so it can be a program name with args.
31819set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031821$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031822if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 $as_echo_n "(cached) " >&6
31824else
31825 if test -n "$P7ZIP"; then
31826 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31827else
31828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31829for as_dir in $PATH
31830do
31831 IFS=$as_save_IFS
31832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31835 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031837 break 2
31838 fi
31839done
cristy8b350f62009-11-15 23:12:43 +000031840 done
cristy3ed852e2009-09-05 21:47:34 +000031841IFS=$as_save_IFS
31842
31843fi
31844fi
31845P7ZIP=$ac_cv_prog_P7ZIP
31846if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo "$P7ZIP" >&6; }
31849else
cristy8b350f62009-11-15 23:12:43 +000031850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo "no" >&6; }
31852fi
31853
31854
31855 test -n "$P7ZIP" && break
31856done
31857
31858
31859 if test "x$P7ZIP" != "x" ; then
31860 P7ZIP_DELEGATE_TRUE=
31861 P7ZIP_DELEGATE_FALSE='#'
31862else
31863 P7ZIP_DELEGATE_TRUE='#'
31864 P7ZIP_DELEGATE_FALSE=
31865fi
31866
31867
31868#
31869# ZIP support (http://www.info-zip.org/Zip.html)
31870#
31871ZIP=''
31872for ac_prog in zip
31873do
31874 # Extract the first word of "$ac_prog", so it can be a program name with args.
31875set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031878if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031879 $as_echo_n "(cached) " >&6
31880else
31881 if test -n "$ZIP"; then
31882 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31883else
31884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31885for as_dir in $PATH
31886do
31887 IFS=$as_save_IFS
31888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31891 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893 break 2
31894 fi
31895done
cristy8b350f62009-11-15 23:12:43 +000031896 done
cristy3ed852e2009-09-05 21:47:34 +000031897IFS=$as_save_IFS
31898
31899fi
31900fi
31901ZIP=$ac_cv_prog_ZIP
31902if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031904$as_echo "$ZIP" >&6; }
31905else
cristy8b350f62009-11-15 23:12:43 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907$as_echo "no" >&6; }
31908fi
31909
31910
31911 test -n "$ZIP" && break
31912done
31913
31914
31915 if test "x$ZIP" != "x" ; then
31916 ZIP_DELEGATE_TRUE=
31917 ZIP_DELEGATE_FALSE='#'
31918else
31919 ZIP_DELEGATE_TRUE='#'
31920 ZIP_DELEGATE_FALSE=
31921fi
31922
31923
31924#
31925# GhostPCL related configuration.
31926#
31927PCLColorDevice=ppmraw
31928PCLCMYKDevice=bmpsep8
31929PCLMonoDevice=pbmraw
31930if test -z "$PCLVersion"; then
31931 PCLVersion='unknown'
31932fi
31933if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031939$as_echo "" >&6; }
31940 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942$as_echo_n "checking for pcl color device... " >&6; }
31943 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31944 :
31945 else
31946 PCLColorDevice=ppmraw
31947 fi
cristy8b350f62009-11-15 23:12:43 +000031948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo "$PCLColorDevice" >&6; }
31950
31951 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo_n "checking for pcl CMYK device... " >&6; }
31954 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31955 :
31956 else
31957 PCLCMYKDevice=$PCLColorDevice
31958 fi
cristy8b350f62009-11-15 23:12:43 +000031959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031960$as_echo "$PCLCMYKDevice" >&6; }
31961
31962 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031964$as_echo_n "checking for pcl mono device... " >&6; }
31965 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31966 :
31967 else
31968 PCLMonoDevice=$PCLColorDevice
31969 fi
cristy8b350f62009-11-15 23:12:43 +000031970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031971$as_echo "$PCLMonoDevice" >&6; }
31972fi
31973
31974
31975
31976
31977
31978
31979#
31980# GhostXPS related configuration.
31981#
31982XPSColorDevice=ppmraw
31983XPSCMYKDevice=bmpsep8
31984XPSMonoDevice=pbmraw
31985if test -z "$XPSVersion"; then
31986 XPSVersion='unknown'
31987fi
31988if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031994$as_echo "" >&6; }
31995 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo_n "checking for xps color device... " >&6; }
31998 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31999 :
32000 else
32001 XPSColorDevice=ppmraw
32002 fi
cristy8b350f62009-11-15 23:12:43 +000032003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004$as_echo "$XPSColorDevice" >&6; }
32005
32006 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032008$as_echo_n "checking for xps CMYK device... " >&6; }
32009 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32010 :
32011 else
32012 XPSCMYKDevice=$XPSColorDevice
32013 fi
cristy8b350f62009-11-15 23:12:43 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032015$as_echo "$XPSCMYKDevice" >&6; }
32016
32017 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo_n "checking for xps mono device... " >&6; }
32020 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32021 :
32022 else
32023 XPSMonoDevice=$XPSColorDevice
32024 fi
cristy8b350f62009-11-15 23:12:43 +000032025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032026$as_echo "$XPSMonoDevice" >&6; }
32027fi
32028
32029
32030
32031
32032
32033
32034#
32035# Ghostscript related configuration.
32036#
32037if test "$have_png" = 'yes'; then
32038 GSAlphaDevice=pngalpha
32039else
32040 GSAlphaDevice=pnmraw
32041fi
32042GSColorDevice=pnmraw
32043GSCMYKDevice=pam
32044GSMonoDevice=pbmraw
32045GSPDFDevice=pdfwrite
32046GSPSDevice=pswrite
32047GSEPSDevice=epswrite
32048GSVersion='unknown'
32049if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032055$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032057$as_echo_n "checking for Ghostscript version... " >&6; }
32058 if GSVersion=`$PSDelegate --version`; then
32059 :
32060 else
32061 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32062 fi
cristy8b350f62009-11-15 23:12:43 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032064$as_echo "$GSVersion" >&6; }
32065
32066 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032068$as_echo_n "checking for gs alpha device... " >&6; }
32069 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32070 :
32071 else
32072 GSAlphaDevice=pnmraw
32073 fi
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "$GSAlphaDevice" >&6; }
32076
32077 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo_n "checking for gs color device... " >&6; }
32080 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32081 :
32082 else
32083 GSColorDevice=pnmraw
32084 fi
cristy8b350f62009-11-15 23:12:43 +000032085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032086$as_echo "$GSColorDevice" >&6; }
32087
32088 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032090$as_echo_n "checking for gs CMYK device... " >&6; }
32091 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32092 :
32093 else
32094 GSCMYKDevice=bmpsep8
32095 fi
cristy8b350f62009-11-15 23:12:43 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097$as_echo "$GSCMYKDevice" >&6; }
32098
32099 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032101$as_echo_n "checking for gs mono device... " >&6; }
32102 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32103 :
32104 else
32105 GSMonoDevice=$GSColorDevice
32106 fi
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo "$GSMonoDevice" >&6; }
32109
32110 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032112$as_echo_n "checking for gs PDF writing device... " >&6; }
32113 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32114 :
32115 else
32116 GSPDFDevice=nodevice
32117 fi
cristy8b350f62009-11-15 23:12:43 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo "$GSPDFDevice" >&6; }
32120
32121 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo_n "checking for gs PS writing device... " >&6; }
32124 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32125 :
32126 else
32127 GSPSDevice=nodevice
32128 fi
cristy8b350f62009-11-15 23:12:43 +000032129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo "$GSPSDevice" >&6; }
32131
32132 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032134$as_echo_n "checking for gs EPS writing device... " >&6; }
32135 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32136 :
32137 else
32138 GSEPSDevice=nodevice
32139 fi
cristy8b350f62009-11-15 23:12:43 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo "$GSEPSDevice" >&6; }
32142fi
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153#
32154# PerlMagick-related configuration
32155#
32156
32157# Look for PERL if PerlMagick requested
32158# If name/path of desired PERL interpreter is specified, look for that one first
32159have_perl='no'
32160if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo "" >&6; }
32167 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032170if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032171 $as_echo_n "(cached) " >&6
32172else
32173 ac_cv_path_PERL="$with_perl"
32174fi
cristy8b350f62009-11-15 23:12:43 +000032175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032176$as_echo "$ac_cv_path_PERL" >&6; };
32177 PERL=$ac_cv_path_PERL
32178 have_perl="$ac_cv_path_PERL"
32179 else
32180 for ac_prog in perl perl5
32181do
32182 # Extract the first word of "$ac_prog", so it can be a program name with args.
32183set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032186if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032187 $as_echo_n "(cached) " >&6
32188else
32189 case $PERL in
32190 [\\/]* | ?:[\\/]*)
32191 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32192 ;;
32193 *)
32194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32195for as_dir in $PATH
32196do
32197 IFS=$as_save_IFS
32198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32201 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032203 break 2
32204 fi
32205done
cristy8b350f62009-11-15 23:12:43 +000032206 done
cristy3ed852e2009-09-05 21:47:34 +000032207IFS=$as_save_IFS
32208
32209 ;;
32210esac
32211fi
32212PERL=$ac_cv_path_PERL
32213if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032215$as_echo "$PERL" >&6; }
32216else
cristy8b350f62009-11-15 23:12:43 +000032217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032218$as_echo "no" >&6; }
32219fi
32220
32221
32222 test -n "$PERL" && break
32223done
32224 if test "$ac_cv_path_PERL"; then
32225 have_perl="$ac_cv_path_PERL"
32226 fi
32227 fi
32228fi
32229
cristy949301e2010-01-06 01:38:40 +000032230if test "$with_perl" != 'yes' ; then
32231 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32232fi
32233
32234PERL_SUPPORTS_DESTDIR='no'
32235
cristy3ed852e2009-09-05 21:47:34 +000032236with_perl_static='no'
32237with_perl_dynamic='no'
32238if test "$have_perl" != 'no'; then
32239 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32240 with_perl_static='yes'
32241 fi
32242 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32243 with_perl_dynamic='yes'
32244 fi
32245 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032246
32247
32248
32249
32250 if test -n "$PERL"; then :
32251
32252 ax_perl_version="5.8.1"
32253
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32255$as_echo_n "checking for perl version... " >&6; }
32256
32257 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32258
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32260$as_echo "$perl_version" >&6; }
32261
32262 PERL_VERSION=$perl_version
32263
32264
32265
32266
32267
32268 # Used to indicate true or false condition
32269 ax_compare_version=false
32270
32271 # Convert the two version strings to be compared into a format that
32272 # allows a simple string comparison. The end result is that a version
32273 # string of the form 1.12.5-r617 will be converted to the form
32274 # 0001001200050617. In other words, each number is zero padded to four
32275 # digits, and non digits are removed.
32276
32277 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32278 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32279 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32280 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32281 -e 's/[^0-9]//g'`
32282
32283
32284 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32285 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32286 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32287 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32288 -e 's/[^0-9]//g'`
32289
32290
32291 ax_compare_version=`echo "x$ax_compare_version_A
32292x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32293
32294
32295
32296 if test "$ax_compare_version" = "true" ; then
32297
32298 :
32299 PERL_SUPPORTS_DESTDIR='yes'
32300
32301 else
32302 :
32303 PERL_SUPPORTS_DESTDIR='no'
32304
cristy3ed852e2009-09-05 21:47:34 +000032305 fi
cristy3ed852e2009-09-05 21:47:34 +000032306
cristy964cb7f2010-04-25 23:18:00 +000032307
cristy3ed852e2009-09-05 21:47:34 +000032308else
cristy3ed852e2009-09-05 21:47:34 +000032309
cristy964cb7f2010-04-25 23:18:00 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32311$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32312 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032313
32314fi
32315
cristy3ed852e2009-09-05 21:47:34 +000032316fi
32317 if test "$have_perl" != 'no'; then
32318 WITH_PERL_TRUE=
32319 WITH_PERL_FALSE='#'
32320else
32321 WITH_PERL_TRUE='#'
32322 WITH_PERL_FALSE=
32323fi
32324
32325 if test $with_perl_static = 'yes'; then
32326 WITH_PERL_STATIC_TRUE=
32327 WITH_PERL_STATIC_FALSE='#'
32328else
32329 WITH_PERL_STATIC_TRUE='#'
32330 WITH_PERL_STATIC_FALSE=
32331fi
32332
32333 if test $with_perl_dynamic = 'yes'; then
32334 WITH_PERL_DYNAMIC_TRUE=
32335 WITH_PERL_DYNAMIC_FALSE='#'
32336else
32337 WITH_PERL_DYNAMIC_TRUE='#'
32338 WITH_PERL_DYNAMIC_FALSE=
32339fi
32340
32341
32342
32343# Determine path to pick up MagickCore library from for use with building PerlMagick
32344MAGICKCORE_PATH="${LIB_DIR}"
32345if test $with_perl_static = 'yes'; then
32346 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32347 libtool_objdir=$objdir
32348
32349 # Linker search path to library, followed by -lMagickCore
32350 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32351fi
32352
32353
32354# Create a simple string containing format names for all delegate libraries
32355DELEGATES=''
32356if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32357if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32358if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32359if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32360if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32361if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32362if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32363if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32364if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32365if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32366if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32367if test "$have_jpeg" = 'yes'; then
32368 DELEGATES="$DELEGATES jpeg";
32369 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32370fi
32371if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032372if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032373if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32374if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32375if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32376if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32377if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32378if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32379if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32380if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32381if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32382if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32383if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32384
32385
32386
32387#
32388# Handle special compiler flags
32389#
32390
32391# Add '-p' if prof source profiling support enabled
32392if test "$enable_prof" = 'yes'; then
32393 CFLAGS="-p $CFLAGS"
32394 CXXFLAGS="-p $CXXFLAGS"
32395 LDFLAGS="-p $LDFLAGS"
32396fi
32397
32398# Add '-pg' if gprof source profiling support enabled
32399if test "$enable_gprof" = 'yes'; then
32400 CFLAGS="-pg $CFLAGS"
32401 CXXFLAGS="-pg $CXXFLAGS"
32402 LDFLAGS="-pg $LDFLAGS"
32403fi
32404
32405# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32406# This is a gcc-specific feature
32407if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032409$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032410if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032411 $as_echo_n "(cached) " >&6
32412else
32413 ac_check_lib_save_LIBS=$LIBS
32414LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032416/* end confdefs.h. */
32417
32418/* Override any GCC internal prototype to avoid an error.
32419 Use char because int might match the return type of a GCC
32420 builtin and then its argument prototype would still apply. */
32421#ifdef __cplusplus
32422extern "C"
32423#endif
32424char _gcov_init ();
32425int
32426main ()
32427{
32428return _gcov_init ();
32429 ;
32430 return 0;
32431}
32432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032434 ac_cv_lib_gcov__gcov_init=yes
32435else
cristy8b350f62009-11-15 23:12:43 +000032436 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032437fi
cristy8b350f62009-11-15 23:12:43 +000032438rm -f core conftest.err conftest.$ac_objext \
32439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032440LIBS=$ac_check_lib_save_LIBS
32441fi
cristy8b350f62009-11-15 23:12:43 +000032442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032443$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032444if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032445 cat >>confdefs.h <<_ACEOF
32446#define HAVE_LIBGCOV 1
32447_ACEOF
32448
32449 LIBS="-lgcov $LIBS"
32450
32451fi
32452
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032455if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032456 $as_echo_n "(cached) " >&6
32457else
32458 ac_check_lib_save_LIBS=$LIBS
32459LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032461/* end confdefs.h. */
32462
32463/* Override any GCC internal prototype to avoid an error.
32464 Use char because int might match the return type of a GCC
32465 builtin and then its argument prototype would still apply. */
32466#ifdef __cplusplus
32467extern "C"
32468#endif
32469char __gcov_init ();
32470int
32471main ()
32472{
32473return __gcov_init ();
32474 ;
32475 return 0;
32476}
32477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032479 ac_cv_lib_gcov___gcov_init=yes
32480else
cristy8b350f62009-11-15 23:12:43 +000032481 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032482fi
cristy8b350f62009-11-15 23:12:43 +000032483rm -f core conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032485LIBS=$ac_check_lib_save_LIBS
32486fi
cristy8b350f62009-11-15 23:12:43 +000032487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032488$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032489if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032490 cat >>confdefs.h <<_ACEOF
32491#define HAVE_LIBGCOV 1
32492_ACEOF
32493
32494 LIBS="-lgcov $LIBS"
32495
32496fi
32497
32498 case "$target_os" in
32499 darwin*)
32500 OSX_GCOV_LDFLAG="-Wl,-single_module"
32501 ;;
32502 *)
32503 OSX_GCOV_LDFLAG=""
32504 ;;
32505 esac
32506
32507 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32508 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32509 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32510fi
32511
32512#
32513# Build library dependency list for libMagickCore
32514#
32515
32516MAGICK_LIBLTDL='' # Libltdl for build
32517MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32518MAGICK_LTDLDEPS='' # extra libltdl dependencies
32519if test "$with_ltdl" != 'no'
32520then
32521 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32522 MAGICK_API_LIBLTDL='-lltdl'
32523 fi
32524 MAGICK_LIBLTDL=${LIBLTDL}
32525 MAGICK_LTDLDEPS=${LTDLDEPS}
32526fi
32527
32528
32529
32530if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032531 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 +000032532else
cristy2e8b51d2009-10-17 18:26:15 +000032533 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 +000032534fi
32535
32536
32537#
32538# Remove extraneous spaces from output variables (asthetic)
32539#
32540X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32541X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32542X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32543X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32544
32545CC=`echo $CC | sed -e 's/ */ /g'`
32546CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32547CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32548CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32549DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32550DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32551LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32552TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32553MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32554#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32555
32556# Pass only user-provided LIBS as "global" libraries
32557LIBS=$USER_LIBS
32558
32559#AC_SUBST(CPPFLAGS)
32560
32561#AC_SUBST(LDFLAGS)
32562#AC_SUBST(X_PRE_LIBS)
32563#AC_SUBST(X_LIBS)
32564#AC_SUBST(X_EXTRA_LIBS)
32565
32566MAGICK_CFLAGS=$CFLAGS
32567MAGICK_CXXFLAGS="$CXXFLAGS"
32568MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32569MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32570MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32571MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32572
32573
32574
32575
32576
32577
32578
32579
cristyfd9dcd42010-08-08 18:07:02 +000032580
cristy3ed852e2009-09-05 21:47:34 +000032581# Set configured scripts to executable.
32582ac_config_commands="$ac_config_commands default"
32583
32584ac_config_commands="$ac_config_commands MagickCore-config.in"
32585
32586ac_config_commands="$ac_config_commands Magick-config.in"
32587
32588ac_config_commands="$ac_config_commands MagickWand-config.in"
32589
32590ac_config_commands="$ac_config_commands Wand-config.in"
32591
32592ac_config_commands="$ac_config_commands Magick++-config.in"
32593
32594ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32595
32596
cristy8b350f62009-11-15 23:12:43 +000032597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032600$as_echo "Update ImageMagick configuration" >&6; }
32601cat >confcache <<\_ACEOF
32602# This file is a shell script that caches the results of configure
32603# tests run on this system so they can be shared between configure
32604# scripts and configure runs, see configure's option --config-cache.
32605# It is not useful on other systems. If it contains results you don't
32606# want to keep, you may remove or edit it.
32607#
32608# config.status only pays attention to the cache file if you give it
32609# the --recheck option to rerun configure.
32610#
32611# `ac_cv_env_foo' variables (set or unset) will be overridden when
32612# loading this file, other *unset* `ac_cv_foo' will be assigned the
32613# following values.
32614
32615_ACEOF
32616
32617# The following way of writing the cache mishandles newlines in values,
32618# but we know of no workaround that is simple, portable, and efficient.
32619# So, we kill variables containing newlines.
32620# Ultrix sh set writes to stderr and can't be redirected directly,
32621# and sets the high bit in the cache file unless we assign to the vars.
32622(
32623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32624 eval ac_val=\$$ac_var
32625 case $ac_val in #(
32626 *${as_nl}*)
32627 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032629$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32630 esac
32631 case $ac_var in #(
32632 _ | IFS | as_nl) ;; #(
32633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032634 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032635 esac ;;
32636 esac
32637 done
32638
32639 (set) 2>&1 |
32640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32641 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032642 # `set' does not quote correctly, so add quotes: double-quote
32643 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032644 sed -n \
32645 "s/'/'\\\\''/g;
32646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32647 ;; #(
32648 *)
32649 # `set' quotes correctly as required by POSIX, so do not add quotes.
32650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32651 ;;
32652 esac |
32653 sort
32654) |
32655 sed '
32656 /^ac_cv_env_/b end
32657 t clear
32658 :clear
32659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32660 t end
32661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32662 :end' >>confcache
32663if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32664 if test -w "$cache_file"; then
32665 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032667$as_echo "$as_me: updating cache $cache_file" >&6;}
32668 cat confcache >$cache_file
32669 else
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32672 fi
32673fi
32674rm -f confcache
32675
32676test "x$prefix" = xNONE && prefix=$ac_default_prefix
32677# Let make expand exec_prefix.
32678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32679
32680DEFS=-DHAVE_CONFIG_H
32681
32682ac_libobjs=
32683ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032684U=
cristy3ed852e2009-09-05 21:47:34 +000032685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32686 # 1. Remove the extension, and $U if already installed.
32687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32690 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032693done
32694LIBOBJS=$ac_libobjs
32695
32696LTLIBOBJS=$ac_ltlibobjs
32697
32698
32699 if test -n "$EXEEXT"; then
32700 am__EXEEXT_TRUE=
32701 am__EXEEXT_FALSE='#'
32702else
32703 am__EXEEXT_TRUE='#'
32704 am__EXEEXT_FALSE=
32705fi
32706
32707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032708 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032709Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032710fi
32711if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032712 as_fn_error $? "conditional \"am__fastdepCC\" 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
cristya0b81c32010-01-22 02:54:33 +000032715if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032716 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032717Usually this means the macro was only invoked conditionally." "$LINENO" 5
32718fi
cristy3ed852e2009-09-05 21:47:34 +000032719if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032720 as_fn_error $? "conditional \"am__fastdepCXX\" 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 "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032724 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" 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 "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032728 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" 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
32731if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032732 as_fn_error $? "conditional \"CYGWIN_BUILD\" 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 "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032736 as_fn_error $? "conditional \"USING_CL\" 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
cristy3ed852e2009-09-05 21:47:34 +000032739if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032740 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032741Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032742fi
32743if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032744 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032745Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032746fi
32747LT_CONFIG_H=config/config.h
32748
32749 _ltdl_libobjs=
32750 _ltdl_ltlibobjs=
32751 if test -n "$_LT_LIBOBJS"; then
32752 # Remove the extension.
32753 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32754 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32755 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32756 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32757 done
32758 fi
32759 ltdl_LIBOBJS=$_ltdl_libobjs
32760
32761 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32762
32763
cristyfa112112010-01-04 17:48:07 +000032764if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032765 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032766Usually this means the macro was only invoked conditionally." "$LINENO" 5
32767fi
cristy3ed852e2009-09-05 21:47:34 +000032768if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032769 as_fn_error $? "conditional \"WITH_MODULES\" 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
32772if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032773 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032774Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032775fi
32776if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032777 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032778Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032779fi
32780
32781if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032782 as_fn_error $? "conditional \"am__fastdepCXX\" 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 "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032786 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" 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 "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032790 as_fn_error $? "conditional \"HasUMEM\" 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 "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032794 as_fn_error $? "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032798 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032802 as_fn_error $? "conditional \"ZLIB_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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032806 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032810 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032814 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032818 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032822 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032826 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032830 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032834 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032838 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032842 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032846 as_fn_error $? "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032850 as_fn_error $? "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032854 as_fn_error $? "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032858 as_fn_error $? "conditional \"LQR_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 "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032862 as_fn_error $? "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032866 as_fn_error $? "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032870 as_fn_error $? "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032874 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032878 as_fn_error $? "conditional \"TIFF_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 "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032882 as_fn_error $? "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032886 as_fn_error $? "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032890 as_fn_error $? "conditional \"RPM_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 "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032894 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" 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 "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032898 as_fn_error $? "conditional \"ZIP_DELEGATE\" 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_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032902 as_fn_error $? "conditional \"WITH_PERL\" 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
32905if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032906 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032907Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032908fi
32909if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032910 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032911Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032912fi
32913
32914: ${CONFIG_STATUS=./config.status}
32915ac_write_fail=0
32916ac_clean_files_save=$ac_clean_files
32917ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032918{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032920as_write_fail=0
32921cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032922#! $SHELL
32923# Generated by $as_me.
32924# Run this file to recreate the current configuration.
32925# Compiler output produced by configure, useful for debugging
32926# configure, is in config.log if it exists.
32927
32928debug=false
32929ac_cs_recheck=false
32930ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032931
cristy8b350f62009-11-15 23:12:43 +000032932SHELL=\${CONFIG_SHELL-$SHELL}
32933export SHELL
32934_ASEOF
32935cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32936## -------------------- ##
32937## M4sh Initialization. ##
32938## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032939
32940# Be more Bourne compatible
32941DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032942if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032943 emulate sh
32944 NULLCMD=:
32945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32946 # is contrary to our usage. Disable this feature.
32947 alias -g '${1+"$@"}'='"$@"'
32948 setopt NO_GLOB_SUBST
32949else
cristy8b350f62009-11-15 23:12:43 +000032950 case `(set -o) 2>/dev/null` in #(
32951 *posix*) :
32952 set -o posix ;; #(
32953 *) :
32954 ;;
cristy3ed852e2009-09-05 21:47:34 +000032955esac
cristy3ed852e2009-09-05 21:47:34 +000032956fi
32957
32958
cristy3ed852e2009-09-05 21:47:34 +000032959as_nl='
32960'
32961export as_nl
32962# Printing a long string crashes Solaris 7 /usr/bin/printf.
32963as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32964as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32965as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032966# Prefer a ksh shell builtin over an external printf program on Solaris,
32967# but without wasting forks for bash or zsh.
32968if test -z "$BASH_VERSION$ZSH_VERSION" \
32969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32970 as_echo='print -r --'
32971 as_echo_n='print -rn --'
32972elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032973 as_echo='printf %s\n'
32974 as_echo_n='printf %s'
32975else
32976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32977 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32978 as_echo_n='/usr/ucb/echo -n'
32979 else
32980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32981 as_echo_n_body='eval
32982 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032983 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032984 *"$as_nl"*)
32985 expr "X$arg" : "X\\(.*\\)$as_nl";
32986 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32987 esac;
32988 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32989 '
32990 export as_echo_n_body
32991 as_echo_n='sh -c $as_echo_n_body as_echo'
32992 fi
32993 export as_echo_body
32994 as_echo='sh -c $as_echo_body as_echo'
32995fi
32996
32997# The user is always right.
32998if test "${PATH_SEPARATOR+set}" != set; then
32999 PATH_SEPARATOR=:
33000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33002 PATH_SEPARATOR=';'
33003 }
33004fi
33005
cristy3ed852e2009-09-05 21:47:34 +000033006
33007# IFS
33008# We need space, tab and new line, in precisely that order. Quoting is
33009# there to prevent editors from complaining about space-tab.
33010# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33011# splitting by setting IFS to empty value.)
33012IFS=" "" $as_nl"
33013
33014# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033015case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033016 *[\\/]* ) as_myself=$0 ;;
33017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33018for as_dir in $PATH
33019do
33020 IFS=$as_save_IFS
33021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33023 done
cristy3ed852e2009-09-05 21:47:34 +000033024IFS=$as_save_IFS
33025
33026 ;;
33027esac
33028# We did not find ourselves, most probably we were run as `sh COMMAND'
33029# in which case we are not to be found in the path.
33030if test "x$as_myself" = x; then
33031 as_myself=$0
33032fi
33033if test ! -f "$as_myself"; then
33034 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033035 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033036fi
33037
cristy8b350f62009-11-15 23:12:43 +000033038# Unset variables that we do not need and which cause bugs (e.g. in
33039# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33040# suppresses any "Segmentation fault" message there. '((' could
33041# trigger a bug in pdksh 5.2.14.
33042for as_var in BASH_ENV ENV MAIL MAILPATH
33043do eval test x\${$as_var+set} = xset \
33044 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033045done
33046PS1='$ '
33047PS2='> '
33048PS4='+ '
33049
33050# NLS nuisances.
33051LC_ALL=C
33052export LC_ALL
33053LANGUAGE=C
33054export LANGUAGE
33055
cristy8b350f62009-11-15 23:12:43 +000033056# CDPATH.
33057(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33058
33059
cristyfd9dcd42010-08-08 18:07:02 +000033060# as_fn_error STATUS ERROR [LINENO LOG_FD]
33061# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033062# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33063# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000033064# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033065as_fn_error ()
33066{
cristyfd9dcd42010-08-08 18:07:02 +000033067 as_status=$1; test $as_status -eq 0 && as_status=1
33068 if test "$4"; then
33069 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33070 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033071 fi
cristyfd9dcd42010-08-08 18:07:02 +000033072 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033073 as_fn_exit $as_status
33074} # as_fn_error
33075
33076
33077# as_fn_set_status STATUS
33078# -----------------------
33079# Set $? to STATUS, without forking.
33080as_fn_set_status ()
33081{
33082 return $1
33083} # as_fn_set_status
33084
33085# as_fn_exit STATUS
33086# -----------------
33087# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33088as_fn_exit ()
33089{
33090 set +e
33091 as_fn_set_status $1
33092 exit $1
33093} # as_fn_exit
33094
33095# as_fn_unset VAR
33096# ---------------
33097# Portably unset VAR.
33098as_fn_unset ()
33099{
33100 { eval $1=; unset $1;}
33101}
33102as_unset=as_fn_unset
33103# as_fn_append VAR VALUE
33104# ----------------------
33105# Append the text in VALUE to the end of the definition contained in VAR. Take
33106# advantage of any shell optimizations that allow amortized linear growth over
33107# repeated appends, instead of the typical quadratic growth present in naive
33108# implementations.
33109if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33110 eval 'as_fn_append ()
33111 {
33112 eval $1+=\$2
33113 }'
33114else
33115 as_fn_append ()
33116 {
33117 eval $1=\$$1\$2
33118 }
33119fi # as_fn_append
33120
33121# as_fn_arith ARG...
33122# ------------------
33123# Perform arithmetic evaluation on the ARGs, and store the result in the
33124# global $as_val. Take advantage of shells that can avoid forks. The arguments
33125# must be portable across $(()) and expr.
33126if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33127 eval 'as_fn_arith ()
33128 {
33129 as_val=$(( $* ))
33130 }'
33131else
33132 as_fn_arith ()
33133 {
33134 as_val=`expr "$@" || test $? -eq 1`
33135 }
33136fi # as_fn_arith
33137
33138
cristy3ed852e2009-09-05 21:47:34 +000033139if expr a : '\(a\)' >/dev/null 2>&1 &&
33140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33141 as_expr=expr
33142else
33143 as_expr=false
33144fi
33145
33146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33147 as_basename=basename
33148else
33149 as_basename=false
33150fi
33151
cristy8b350f62009-11-15 23:12:43 +000033152if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33153 as_dirname=dirname
33154else
33155 as_dirname=false
33156fi
cristy3ed852e2009-09-05 21:47:34 +000033157
cristy3ed852e2009-09-05 21:47:34 +000033158as_me=`$as_basename -- "$0" ||
33159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33160 X"$0" : 'X\(//\)$' \| \
33161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33162$as_echo X/"$0" |
33163 sed '/^.*\/\([^/][^/]*\)\/*$/{
33164 s//\1/
33165 q
33166 }
33167 /^X\/\(\/\/\)$/{
33168 s//\1/
33169 q
33170 }
33171 /^X\/\(\/\).*/{
33172 s//\1/
33173 q
33174 }
33175 s/.*/./; q'`
33176
cristy8b350f62009-11-15 23:12:43 +000033177# Avoid depending upon Character Ranges.
33178as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33179as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33180as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33181as_cr_digits='0123456789'
33182as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033183
33184ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033185case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033186-n*)
cristy8b350f62009-11-15 23:12:43 +000033187 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033188 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033189 xy) ECHO_C='\c';;
33190 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33191 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033192 esac;;
33193*)
33194 ECHO_N='-n';;
33195esac
cristy3ed852e2009-09-05 21:47:34 +000033196
33197rm -f conf$$ conf$$.exe conf$$.file
33198if test -d conf$$.dir; then
33199 rm -f conf$$.dir/conf$$.file
33200else
33201 rm -f conf$$.dir
33202 mkdir conf$$.dir 2>/dev/null
33203fi
33204if (echo >conf$$.file) 2>/dev/null; then
33205 if ln -s conf$$.file conf$$ 2>/dev/null; then
33206 as_ln_s='ln -s'
33207 # ... but there are two gotchas:
33208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33210 # In both cases, we have to default to `cp -p'.
33211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33212 as_ln_s='cp -p'
33213 elif ln conf$$.file conf$$ 2>/dev/null; then
33214 as_ln_s=ln
33215 else
33216 as_ln_s='cp -p'
33217 fi
33218else
33219 as_ln_s='cp -p'
33220fi
33221rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33222rmdir conf$$.dir 2>/dev/null
33223
cristy8b350f62009-11-15 23:12:43 +000033224
33225# as_fn_mkdir_p
33226# -------------
33227# Create "$as_dir" as a directory, including parents if necessary.
33228as_fn_mkdir_p ()
33229{
33230
33231 case $as_dir in #(
33232 -*) as_dir=./$as_dir;;
33233 esac
33234 test -d "$as_dir" || eval $as_mkdir_p || {
33235 as_dirs=
33236 while :; do
33237 case $as_dir in #(
33238 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33239 *) as_qdir=$as_dir;;
33240 esac
33241 as_dirs="'$as_qdir' $as_dirs"
33242 as_dir=`$as_dirname -- "$as_dir" ||
33243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33244 X"$as_dir" : 'X\(//\)[^/]' \| \
33245 X"$as_dir" : 'X\(//\)$' \| \
33246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33247$as_echo X"$as_dir" |
33248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33249 s//\1/
33250 q
33251 }
33252 /^X\(\/\/\)[^/].*/{
33253 s//\1/
33254 q
33255 }
33256 /^X\(\/\/\)$/{
33257 s//\1/
33258 q
33259 }
33260 /^X\(\/\).*/{
33261 s//\1/
33262 q
33263 }
33264 s/.*/./; q'`
33265 test -d "$as_dir" && break
33266 done
33267 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000033268 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033269
33270
33271} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033272if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033273 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033274else
33275 test -d ./-p && rmdir ./-p
33276 as_mkdir_p=false
33277fi
33278
33279if test -x / >/dev/null 2>&1; then
33280 as_test_x='test -x'
33281else
33282 if ls -dL / >/dev/null 2>&1; then
33283 as_ls_L_option=L
33284 else
33285 as_ls_L_option=
33286 fi
33287 as_test_x='
33288 eval sh -c '\''
33289 if test -d "$1"; then
33290 test -d "$1/.";
33291 else
cristy8b350f62009-11-15 23:12:43 +000033292 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033293 -*)set "./$1";;
33294 esac;
cristy8b350f62009-11-15 23:12:43 +000033295 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033296 ???[sx]*):;;*)false;;esac;fi
33297 '\'' sh
33298 '
33299fi
33300as_executable_p=$as_test_x
33301
33302# Sed expression to map a string onto a valid CPP name.
33303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33304
33305# Sed expression to map a string onto a valid variable name.
33306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33307
33308
33309exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033310## ----------------------------------- ##
33311## Main body of $CONFIG_STATUS script. ##
33312## ----------------------------------- ##
33313_ASEOF
33314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033315
cristy8b350f62009-11-15 23:12:43 +000033316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33317# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033318# report actual input values of CONFIG_FILES etc. instead of their
33319# values after options handling.
33320ac_log="
cristy56225732010-09-04 23:44:25 +000033321This file was extended by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +000033322generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033323
33324 CONFIG_FILES = $CONFIG_FILES
33325 CONFIG_HEADERS = $CONFIG_HEADERS
33326 CONFIG_LINKS = $CONFIG_LINKS
33327 CONFIG_COMMANDS = $CONFIG_COMMANDS
33328 $ $0 $@
33329
33330on `(hostname || uname -n) 2>/dev/null | sed 1q`
33331"
33332
33333_ACEOF
33334
33335case $ac_config_files in *"
33336"*) set x $ac_config_files; shift; ac_config_files=$*;;
33337esac
33338
33339case $ac_config_headers in *"
33340"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33341esac
33342
33343
33344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33345# Files that config.status was made for.
33346config_files="$ac_config_files"
33347config_headers="$ac_config_headers"
33348config_commands="$ac_config_commands"
33349
33350_ACEOF
33351
33352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33353ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033354\`$as_me' instantiates files and other configuration actions
33355from templates according to the current configuration. Unless the files
33356and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033357
cristy8b350f62009-11-15 23:12:43 +000033358Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033359
33360 -h, --help print this help, then exit
33361 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033362 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033363 -q, --quiet, --silent
33364 do not print progress messages
33365 -d, --debug don't remove temporary files
33366 --recheck update $as_me by reconfiguring in the same conditions
33367 --file=FILE[:TEMPLATE]
33368 instantiate the configuration file FILE
33369 --header=FILE[:TEMPLATE]
33370 instantiate the configuration header FILE
33371
33372Configuration files:
33373$config_files
33374
33375Configuration headers:
33376$config_headers
33377
33378Configuration commands:
33379$config_commands
33380
cristy8b350f62009-11-15 23:12:43 +000033381Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033382
33383_ACEOF
33384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033385ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033386ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033387ImageMagick config.status 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +000033388configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033389 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033390
cristyfd9dcd42010-08-08 18:07:02 +000033391Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033392This config.status script is free software; the Free Software Foundation
33393gives unlimited permission to copy, distribute and modify it."
33394
33395ac_pwd='$ac_pwd'
33396srcdir='$srcdir'
33397INSTALL='$INSTALL'
33398MKDIR_P='$MKDIR_P'
33399AWK='$AWK'
33400test -n "\$AWK" || AWK=awk
33401_ACEOF
33402
33403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33404# The default lists apply if the user does not specify any file.
33405ac_need_defaults=:
33406while test $# != 0
33407do
33408 case $1 in
33409 --*=*)
33410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33412 ac_shift=:
33413 ;;
33414 *)
33415 ac_option=$1
33416 ac_optarg=$2
33417 ac_shift=shift
33418 ;;
33419 esac
33420
33421 case $ac_option in
33422 # Handling of the options.
33423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33424 ac_cs_recheck=: ;;
33425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33426 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033427 --config | --confi | --conf | --con | --co | --c )
33428 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033429 --debug | --debu | --deb | --de | --d | -d )
33430 debug=: ;;
33431 --file | --fil | --fi | --f )
33432 $ac_shift
33433 case $ac_optarg in
33434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33435 esac
cristy8b350f62009-11-15 23:12:43 +000033436 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033437 ac_need_defaults=false;;
33438 --header | --heade | --head | --hea )
33439 $ac_shift
33440 case $ac_optarg in
33441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33442 esac
cristy8b350f62009-11-15 23:12:43 +000033443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033444 ac_need_defaults=false;;
33445 --he | --h)
33446 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033447 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033448Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033449 --help | --hel | -h )
33450 $as_echo "$ac_cs_usage"; exit ;;
33451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33453 ac_cs_silent=: ;;
33454
33455 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033456 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033457Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033458
cristy8b350f62009-11-15 23:12:43 +000033459 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033460 ac_need_defaults=false ;;
33461
33462 esac
33463 shift
33464done
33465
33466ac_configure_extra_args=
33467
33468if $ac_cs_silent; then
33469 exec 6>/dev/null
33470 ac_configure_extra_args="$ac_configure_extra_args --silent"
33471fi
33472
33473_ACEOF
33474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33475if \$ac_cs_recheck; then
33476 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33477 shift
33478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33479 CONFIG_SHELL='$SHELL'
33480 export CONFIG_SHELL
33481 exec "\$@"
33482fi
33483
33484_ACEOF
33485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33486exec 5>>config.log
33487{
33488 echo
33489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33490## Running $as_me. ##
33491_ASBOX
33492 $as_echo "$ac_log"
33493} >&5
33494
33495_ACEOF
33496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33497#
33498# INIT-COMMANDS
33499#
33500PACKAGE="$PACKAGE"
33501AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33502
33503
33504# The HP-UX ksh and POSIX shell print the target directory to stdout
33505# if CDPATH is set.
33506(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33507
33508sed_quote_subst='$sed_quote_subst'
33509double_quote_subst='$double_quote_subst'
33510delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033511SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33512Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33513GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33514EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33515FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33516SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33517ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33518LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33519macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33520macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33521AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33522DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33523OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33524enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33525enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33526pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33527enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33528host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33529host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33530host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33531build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33532build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33533build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33534NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33535LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33536max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33537ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33538exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33539lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33540lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33541lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33542reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33543reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33544deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33545file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33546AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33547AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33548STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33549RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33550old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33551old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33552old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33553lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33554CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33555CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33556compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33557GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33558lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33559lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33560lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33561lt_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"`'
33562objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33563MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33564lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33565lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33566lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33567lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33568lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33569need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33570DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33571NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33572LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33573OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33574OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33575libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33576shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33577extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33578archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33579enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33580export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33581whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33582compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33583old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33584old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33585archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33586archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33587module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33588module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33589with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33590allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33591no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33592hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33593hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33594hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33595hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33596hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33597hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33598hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33599hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33600inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33601link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33602fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33603always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33604export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33605exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33606include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33607prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33608file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33609variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33610need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33611need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33612version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33613runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33614shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33615shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33616libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33617library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33618soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33619install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33620postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33621postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33622finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33623finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33624hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33625sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33626sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33627hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33628enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33629enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33630enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33631old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33632striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33633compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33634predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33635postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33636predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33637postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33638compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33639LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33640reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33641reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33642old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33643compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33644GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33645lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33646lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33647lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33648lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33649lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33650archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33651enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33652export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33653whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33654compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33655old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33656old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33657archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33658archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33659module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33660module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33661with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33662allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33663no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33664hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33665hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33666hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33667hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33668hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33669hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33670hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33671hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33672inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33673link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33674fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33675always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33676export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33677exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33678include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33679prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33680file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33681hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33682compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33683predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33684postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33685predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33686postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33687compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033688
33689LTCC='$LTCC'
33690LTCFLAGS='$LTCFLAGS'
33691compiler='$compiler_DEFAULT'
33692
cristyfd9dcd42010-08-08 18:07:02 +000033693# A function that is used when there is no print builtin or printf.
33694func_fallback_echo ()
33695{
33696 eval 'cat <<_LTECHO_EOF
33697\$1
33698_LTECHO_EOF'
33699}
33700
cristy3ed852e2009-09-05 21:47:34 +000033701# Quote evaled strings.
33702for var in SED \
33703GREP \
33704EGREP \
33705FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033706SHELL \
33707ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033708LD \
cristyfd9dcd42010-08-08 18:07:02 +000033709AS \
33710DLLTOOL \
33711OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033712NM \
33713LN_S \
33714lt_SP2NL \
33715lt_NL2SP \
33716reload_flag \
33717deplibs_check_method \
33718file_magic_cmd \
33719AR \
33720AR_FLAGS \
33721STRIP \
33722RANLIB \
33723CC \
33724CFLAGS \
33725compiler \
33726lt_cv_sys_global_symbol_pipe \
33727lt_cv_sys_global_symbol_to_cdecl \
33728lt_cv_sys_global_symbol_to_c_name_address \
33729lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033730lt_prog_compiler_no_builtin_flag \
33731lt_prog_compiler_wl \
33732lt_prog_compiler_pic \
33733lt_prog_compiler_static \
33734lt_cv_prog_compiler_c_o \
33735need_locks \
33736DSYMUTIL \
33737NMEDIT \
33738LIPO \
33739OTOOL \
33740OTOOL64 \
33741shrext_cmds \
33742export_dynamic_flag_spec \
33743whole_archive_flag_spec \
33744compiler_needs_object \
33745with_gnu_ld \
33746allow_undefined_flag \
33747no_undefined_flag \
33748hardcode_libdir_flag_spec \
33749hardcode_libdir_flag_spec_ld \
33750hardcode_libdir_separator \
33751fix_srcfile_path \
33752exclude_expsyms \
33753include_expsyms \
33754file_list_spec \
33755variables_saved_for_relink \
33756libname_spec \
33757library_names_spec \
33758soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033759install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033760finish_eval \
33761old_striplib \
33762striplib \
33763compiler_lib_search_dirs \
33764predep_objects \
33765postdep_objects \
33766predeps \
33767postdeps \
33768compiler_lib_search_path \
33769LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033770reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033771compiler_CXX \
33772lt_prog_compiler_no_builtin_flag_CXX \
33773lt_prog_compiler_wl_CXX \
33774lt_prog_compiler_pic_CXX \
33775lt_prog_compiler_static_CXX \
33776lt_cv_prog_compiler_c_o_CXX \
33777export_dynamic_flag_spec_CXX \
33778whole_archive_flag_spec_CXX \
33779compiler_needs_object_CXX \
33780with_gnu_ld_CXX \
33781allow_undefined_flag_CXX \
33782no_undefined_flag_CXX \
33783hardcode_libdir_flag_spec_CXX \
33784hardcode_libdir_flag_spec_ld_CXX \
33785hardcode_libdir_separator_CXX \
33786fix_srcfile_path_CXX \
33787exclude_expsyms_CXX \
33788include_expsyms_CXX \
33789file_list_spec_CXX \
33790compiler_lib_search_dirs_CXX \
33791predep_objects_CXX \
33792postdep_objects_CXX \
33793predeps_CXX \
33794postdeps_CXX \
33795compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033796 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033797 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033799 ;;
33800 *)
33801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33802 ;;
33803 esac
33804done
33805
33806# Double-quote double-evaled strings.
33807for var in reload_cmds \
33808old_postinstall_cmds \
33809old_postuninstall_cmds \
33810old_archive_cmds \
33811extract_expsyms_cmds \
33812old_archive_from_new_cmds \
33813old_archive_from_expsyms_cmds \
33814archive_cmds \
33815archive_expsym_cmds \
33816module_cmds \
33817module_expsym_cmds \
33818export_symbols_cmds \
33819prelink_cmds \
33820postinstall_cmds \
33821postuninstall_cmds \
33822finish_cmds \
33823sys_lib_search_path_spec \
33824sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033825reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033826old_archive_cmds_CXX \
33827old_archive_from_new_cmds_CXX \
33828old_archive_from_expsyms_cmds_CXX \
33829archive_cmds_CXX \
33830archive_expsym_cmds_CXX \
33831module_cmds_CXX \
33832module_expsym_cmds_CXX \
33833export_symbols_cmds_CXX \
33834prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033836 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033838 ;;
33839 *)
33840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33841 ;;
33842 esac
33843done
33844
cristy3ed852e2009-09-05 21:47:34 +000033845ac_aux_dir='$ac_aux_dir'
33846xsi_shell='$xsi_shell'
33847lt_shell_append='$lt_shell_append'
33848
33849# See if we are running on zsh, and set the options which allow our
33850# commands through without removal of \ escapes INIT.
33851if test -n "\${ZSH_VERSION+set}" ; then
33852 setopt NO_GLOB_SUBST
33853fi
33854
33855
33856 PACKAGE='$PACKAGE'
33857 VERSION='$VERSION'
33858 TIMESTAMP='$TIMESTAMP'
33859 RM='$RM'
33860 ofile='$ofile'
33861
33862
33863
33864
33865
33866
33867_ACEOF
33868
33869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33870
33871# Handling of arguments.
33872for ac_config_target in $ac_config_targets
33873do
33874 case $ac_config_target in
33875 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33876 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33877 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33878 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33879 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33880 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33881 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033882 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033883 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33884 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33885 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33886 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33887 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33888 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33889 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33890 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33891 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33892 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33893 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33894 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33895 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33896 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33897 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33898 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33899 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33900 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33901 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33902 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33903 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33904 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33905 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33906 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33907 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33908 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33909 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33910 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33911 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33912 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33913 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33914 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33915 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33918 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33919 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33920 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33921 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33922 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33923 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33924 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33925
cristyfd9dcd42010-08-08 18:07:02 +000033926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033927 esac
33928done
33929
33930
33931# If the user did not use the arguments to specify the items to instantiate,
33932# then the envvar interface is used. Set only those that are not.
33933# We use the long form for the default assignment because of an extremely
33934# bizarre bug on SunOS 4.1.3.
33935if $ac_need_defaults; then
33936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33939fi
33940
33941# Have a temporary directory for convenience. Make it in the build tree
33942# simply because there is no reason against having it here, and in addition,
33943# creating and moving files from /tmp can sometimes cause problems.
33944# Hook for its removal unless debugging.
33945# Note that there is a small window in which the directory will not be cleaned:
33946# after its creation but before its name has been assigned to `$tmp'.
33947$debug ||
33948{
33949 tmp=
33950 trap 'exit_status=$?
33951 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33952' 0
cristy8b350f62009-11-15 23:12:43 +000033953 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033954}
33955# Create a (secure) tmp directory for tmp files.
33956
33957{
33958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33959 test -n "$tmp" && test -d "$tmp"
33960} ||
33961{
33962 tmp=./conf$$-$RANDOM
33963 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033964} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033965
33966# Set up the scripts for CONFIG_FILES section.
33967# No need to generate them if there are no CONFIG_FILES.
33968# This happens for instance with `./config.status config.h'.
33969if test -n "$CONFIG_FILES"; then
33970
33971
cristy8b350f62009-11-15 23:12:43 +000033972ac_cr=`echo X | tr X '\015'`
33973# On cygwin, bash can eat \r inside `` if the user requested igncr.
33974# But we know of no other shell where ac_cr would be empty at this
33975# point, so we can use a bashism as a fallback.
33976if test "x$ac_cr" = x; then
33977 eval ac_cr=\$\'\\r\'
33978fi
cristy3ed852e2009-09-05 21:47:34 +000033979ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33980if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033981 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033982else
33983 ac_cs_awk_cr=$ac_cr
33984fi
33985
33986echo 'BEGIN {' >"$tmp/subs1.awk" &&
33987_ACEOF
33988
33989
33990{
33991 echo "cat >conf$$subs.awk <<_ACEOF" &&
33992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33993 echo "_ACEOF"
33994} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33996ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033997ac_delim='%!_!# '
33998for ac_last_try in false false false false false :; do
33999 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000034000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034001
34002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34003 if test $ac_delim_n = $ac_delim_num; then
34004 break
34005 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034007 else
34008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34009 fi
34010done
34011rm -f conf$$subs.sh
34012
34013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34014cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34015_ACEOF
34016sed -n '
34017h
34018s/^/S["/; s/!.*/"]=/
34019p
34020g
34021s/^[^!]*!//
34022:repl
34023t repl
34024s/'"$ac_delim"'$//
34025t delim
34026:nl
34027h
cristycd4c5312009-11-22 01:19:08 +000034028s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034029t more1
34030s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34031p
34032n
34033b repl
34034:more1
34035s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34036p
34037g
34038s/.\{148\}//
34039t nl
34040:delim
34041h
cristycd4c5312009-11-22 01:19:08 +000034042s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034043t more2
34044s/["\\]/\\&/g; s/^/"/; s/$/"/
34045p
34046b
34047:more2
34048s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34049p
34050g
34051s/.\{148\}//
34052t delim
34053' <conf$$subs.awk | sed '
34054/^[^""]/{
34055 N
34056 s/\n//
34057}
34058' >>$CONFIG_STATUS || ac_write_fail=1
34059rm -f conf$$subs.awk
34060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34061_ACAWK
34062cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34063 for (key in S) S_is_set[key] = 1
34064 FS = ""
34065
34066}
34067{
34068 line = $ 0
34069 nfields = split(line, field, "@")
34070 substed = 0
34071 len = length(field[1])
34072 for (i = 2; i < nfields; i++) {
34073 key = field[i]
34074 keylen = length(key)
34075 if (S_is_set[key]) {
34076 value = S[key]
34077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34078 len += length(value) + length(field[++i])
34079 substed = 1
34080 } else
34081 len += 1 + keylen
34082 }
34083
34084 print line
34085}
34086
34087_ACAWK
34088_ACEOF
34089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34090if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34091 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34092else
34093 cat
34094fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000034095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034096_ACEOF
34097
cristyfd9dcd42010-08-08 18:07:02 +000034098# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34099# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034100# trailing colons and then remove the whole line if VPATH becomes empty
34101# (actually we leave an empty line to preserve line numbers).
34102if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000034103 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34104h
34105s///
34106s/^/:/
34107s/[ ]*$/:/
34108s/:\$(srcdir):/:/g
34109s/:\${srcdir}:/:/g
34110s/:@srcdir@:/:/g
34111s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034112s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000034113x
34114s/\(=[ ]*\).*/\1/
34115G
34116s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034117s/^[^=]*=[ ]*$//
34118}'
34119fi
34120
34121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34122fi # test -n "$CONFIG_FILES"
34123
34124# Set up the scripts for CONFIG_HEADERS section.
34125# No need to generate them if there are no CONFIG_HEADERS.
34126# This happens for instance with `./config.status Makefile'.
34127if test -n "$CONFIG_HEADERS"; then
34128cat >"$tmp/defines.awk" <<\_ACAWK ||
34129BEGIN {
34130_ACEOF
34131
34132# Transform confdefs.h into an awk script `defines.awk', embedded as
34133# here-document in config.status, that substitutes the proper values into
34134# config.h.in to produce config.h.
34135
34136# Create a delimiter string that does not exist in confdefs.h, to ease
34137# handling of long lines.
34138ac_delim='%!_!# '
34139for ac_last_try in false false :; do
34140 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34141 if test -z "$ac_t"; then
34142 break
34143 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034144 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034145 else
34146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34147 fi
34148done
34149
34150# For the awk script, D is an array of macro values keyed by name,
34151# likewise P contains macro parameters if any. Preserve backslash
34152# newline sequences.
34153
34154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34155sed -n '
34156s/.\{148\}/&'"$ac_delim"'/g
34157t rset
34158:rset
34159s/^[ ]*#[ ]*define[ ][ ]*/ /
34160t def
34161d
34162:def
34163s/\\$//
34164t bsnl
34165s/["\\]/\\&/g
34166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34167D["\1"]=" \3"/p
34168s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34169d
34170:bsnl
34171s/["\\]/\\&/g
34172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34173D["\1"]=" \3\\\\\\n"\\/p
34174t cont
34175s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34176t cont
34177d
34178:cont
34179n
34180s/.\{148\}/&'"$ac_delim"'/g
34181t clear
34182:clear
34183s/\\$//
34184t bsnlc
34185s/["\\]/\\&/g; s/^/"/; s/$/"/p
34186d
34187:bsnlc
34188s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34189b cont
34190' <confdefs.h | sed '
34191s/'"$ac_delim"'/"\\\
34192"/g' >>$CONFIG_STATUS || ac_write_fail=1
34193
34194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34195 for (key in D) D_is_set[key] = 1
34196 FS = ""
34197}
34198/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34199 line = \$ 0
34200 split(line, arg, " ")
34201 if (arg[1] == "#") {
34202 defundef = arg[2]
34203 mac1 = arg[3]
34204 } else {
34205 defundef = substr(arg[1], 2)
34206 mac1 = arg[2]
34207 }
34208 split(mac1, mac2, "(") #)
34209 macro = mac2[1]
34210 prefix = substr(line, 1, index(line, defundef) - 1)
34211 if (D_is_set[macro]) {
34212 # Preserve the white space surrounding the "#".
34213 print prefix "define", macro P[macro] D[macro]
34214 next
34215 } else {
34216 # Replace #undef with comments. This is necessary, for example,
34217 # in the case of _POSIX_SOURCE, which is predefined and required
34218 # on some systems where configure will not decide to define it.
34219 if (defundef == "undef") {
34220 print "/*", prefix defundef, macro, "*/"
34221 next
34222 }
34223 }
34224}
34225{ print }
34226_ACAWK
34227_ACEOF
34228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000034229 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034230fi # test -n "$CONFIG_HEADERS"
34231
34232
34233eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34234shift
34235for ac_tag
34236do
34237 case $ac_tag in
34238 :[FHLC]) ac_mode=$ac_tag; continue;;
34239 esac
34240 case $ac_mode$ac_tag in
34241 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000034242 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034243 :[FH]-) ac_tag=-:-;;
34244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34245 esac
34246 ac_save_IFS=$IFS
34247 IFS=:
34248 set x $ac_tag
34249 IFS=$ac_save_IFS
34250 shift
34251 ac_file=$1
34252 shift
34253
34254 case $ac_mode in
34255 :L) ac_source=$1;;
34256 :[FH])
34257 ac_file_inputs=
34258 for ac_f
34259 do
34260 case $ac_f in
34261 -) ac_f="$tmp/stdin";;
34262 *) # Look for the file first in the build tree, then in the source tree
34263 # (if the path is not absolute). The absolute path cannot be DOS-style,
34264 # because $ac_f cannot contain `:'.
34265 test -f "$ac_f" ||
34266 case $ac_f in
34267 [\\/$]*) false;;
34268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34269 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000034270 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034271 esac
34272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034273 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034274 done
34275
34276 # Let's still pretend it is `configure' which instantiates (i.e., don't
34277 # use $as_me), people would be surprised to read:
34278 # /* config.h. Generated by config.status. */
34279 configure_input='Generated from '`
34280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34281 `' by configure.'
34282 if test x"$ac_file" != x-; then
34283 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285$as_echo "$as_me: creating $ac_file" >&6;}
34286 fi
34287 # Neutralize special characters interpreted by sed in replacement strings.
34288 case $configure_input in #(
34289 *\&* | *\|* | *\\* )
34290 ac_sed_conf_input=`$as_echo "$configure_input" |
34291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34292 *) ac_sed_conf_input=$configure_input;;
34293 esac
34294
34295 case $ac_tag in
34296 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000034297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034298 esac
34299 ;;
34300 esac
34301
34302 ac_dir=`$as_dirname -- "$ac_file" ||
34303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34304 X"$ac_file" : 'X\(//\)[^/]' \| \
34305 X"$ac_file" : 'X\(//\)$' \| \
34306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34307$as_echo X"$ac_file" |
34308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34309 s//\1/
34310 q
34311 }
34312 /^X\(\/\/\)[^/].*/{
34313 s//\1/
34314 q
34315 }
34316 /^X\(\/\/\)$/{
34317 s//\1/
34318 q
34319 }
34320 /^X\(\/\).*/{
34321 s//\1/
34322 q
34323 }
34324 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034325 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034326 ac_builddir=.
34327
34328case "$ac_dir" in
34329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34330*)
34331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34332 # A ".." for each directory in $ac_dir_suffix.
34333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34334 case $ac_top_builddir_sub in
34335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34337 esac ;;
34338esac
34339ac_abs_top_builddir=$ac_pwd
34340ac_abs_builddir=$ac_pwd$ac_dir_suffix
34341# for backward compatibility:
34342ac_top_builddir=$ac_top_build_prefix
34343
34344case $srcdir in
34345 .) # We are building in place.
34346 ac_srcdir=.
34347 ac_top_srcdir=$ac_top_builddir_sub
34348 ac_abs_top_srcdir=$ac_pwd ;;
34349 [\\/]* | ?:[\\/]* ) # Absolute name.
34350 ac_srcdir=$srcdir$ac_dir_suffix;
34351 ac_top_srcdir=$srcdir
34352 ac_abs_top_srcdir=$srcdir ;;
34353 *) # Relative name.
34354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34355 ac_top_srcdir=$ac_top_build_prefix$srcdir
34356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34357esac
34358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34359
34360
34361 case $ac_mode in
34362 :F)
34363 #
34364 # CONFIG_FILE
34365 #
34366
34367 case $INSTALL in
34368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34370 esac
34371 ac_MKDIR_P=$MKDIR_P
34372 case $MKDIR_P in
34373 [\\/$]* | ?:[\\/]* ) ;;
34374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34375 esac
34376_ACEOF
34377
34378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34379# If the template does not know about datarootdir, expand it.
34380# FIXME: This hack should be removed a few years after 2.60.
34381ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034382ac_sed_dataroot='
34383/datarootdir/ {
34384 p
34385 q
34386}
34387/@datadir@/p
34388/@docdir@/p
34389/@infodir@/p
34390/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034391/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034392case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34393*datarootdir*) ac_datarootdir_seen=yes;;
34394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34397_ACEOF
34398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34399 ac_datarootdir_hack='
34400 s&@datadir@&$datadir&g
34401 s&@docdir@&$docdir&g
34402 s&@infodir@&$infodir&g
34403 s&@localedir@&$localedir&g
34404 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034405 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034406esac
34407_ACEOF
34408
34409# Neutralize VPATH when `$srcdir' = `.'.
34410# Shell code in configure.ac might set extrasub.
34411# FIXME: do we really want to maintain this feature?
34412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34413ac_sed_extra="$ac_vpsub
34414$extrasub
34415_ACEOF
34416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34417:t
34418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34419s|@configure_input@|$ac_sed_conf_input|;t t
34420s&@top_builddir@&$ac_top_builddir_sub&;t t
34421s&@top_build_prefix@&$ac_top_build_prefix&;t t
34422s&@srcdir@&$ac_srcdir&;t t
34423s&@abs_srcdir@&$ac_abs_srcdir&;t t
34424s&@top_srcdir@&$ac_top_srcdir&;t t
34425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34426s&@builddir@&$ac_builddir&;t t
34427s&@abs_builddir@&$ac_abs_builddir&;t t
34428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34429s&@INSTALL@&$ac_INSTALL&;t t
34430s&@MKDIR_P@&$ac_MKDIR_P&;t t
34431$ac_datarootdir_hack
34432"
34433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034435
34436test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034440which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034442which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034443
34444 rm -f "$tmp/stdin"
34445 case $ac_file in
34446 -) cat "$tmp/out" && rm -f "$tmp/out";;
34447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34448 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034450 ;;
34451 :H)
34452 #
34453 # CONFIG_HEADER
34454 #
34455 if test x"$ac_file" != x-; then
34456 {
34457 $as_echo "/* $configure_input */" \
34458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34459 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo "$as_me: $ac_file is unchanged" >&6;}
34464 else
34465 rm -f "$ac_file"
34466 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034468 fi
34469 else
34470 $as_echo "/* $configure_input */" \
34471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034472 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034473 fi
34474# Compute "$ac_file"'s index in $config_headers.
34475_am_arg="$ac_file"
34476_am_stamp_count=1
34477for _am_header in $config_headers :; do
34478 case $_am_header in
34479 $_am_arg | $_am_arg:* )
34480 break ;;
34481 * )
34482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34483 esac
34484done
34485echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34486$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34487 X"$_am_arg" : 'X\(//\)[^/]' \| \
34488 X"$_am_arg" : 'X\(//\)$' \| \
34489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34490$as_echo X"$_am_arg" |
34491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34492 s//\1/
34493 q
34494 }
34495 /^X\(\/\/\)[^/].*/{
34496 s//\1/
34497 q
34498 }
34499 /^X\(\/\/\)$/{
34500 s//\1/
34501 q
34502 }
34503 /^X\(\/\).*/{
34504 s//\1/
34505 q
34506 }
34507 s/.*/./; q'`/stamp-h$_am_stamp_count
34508 ;;
34509
cristy8b350f62009-11-15 23:12:43 +000034510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034511$as_echo "$as_me: executing $ac_file commands" >&6;}
34512 ;;
34513 esac
34514
34515
34516 case $ac_file$ac_mode in
34517 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34518ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34519ac_prefix_conf_PKG=`echo MagickCore`
34520ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34521ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34522ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34523if test ".$ac_prefix_conf_INP" = "."; then
34524 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34525 case "$ac_file" in
34526 *.h) ac_prefix_conf_INP=$ac_file ;;
34527 *)
34528 esac
34529 test ".$ac_prefix_conf_INP" != "." && break
34530 done
34531fi
34532if test ".$ac_prefix_conf_INP" = "."; then
34533 case "$ac_prefix_conf_OUT" in
34534 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34535 ;;
34536 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34537 ;;
34538 *) ac_prefix_conf_INP=config.h
34539 ;;
34540 esac
34541fi
34542if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034543 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034544else
34545 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34546 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34547 fi fi
cristy8b350f62009-11-15 23:12:43 +000034548 { $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 +000034549$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34550 if test -f $ac_prefix_conf_INP ; then
34551 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34552 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034553 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34554 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034555 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034556 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34557 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034558 echo "#endif/" >> conftest.prefix
34559 # now executing _script on _DEF input to create _OUT output file
34560 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34561 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34562 echo ' ' >>$tmp/pconfig.h
34563 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34564
34565 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34566 echo ' ' >>$tmp/pconfig.h
34567 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34568 echo "#endif" >>$tmp/pconfig.h
34569 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34572 else
34573 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34574$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34575 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34576 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34577 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34578$as_echo X"$ac_prefix_conf_OUT" |
34579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34580 s//\1/
34581 q
34582 }
34583 /^X\(\/\/\)[^/].*/{
34584 s//\1/
34585 q
34586 }
34587 /^X\(\/\/\)$/{
34588 s//\1/
34589 q
34590 }
34591 /^X\(\/\).*/{
34592 s//\1/
34593 q
34594 }
34595 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034596 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034597 rm -f "$ac_prefix_conf_OUT"
34598 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34599 fi
34600 cp conftest.prefix _configs.sed
34601 else
cristyfd9dcd42010-08-08 18:07:02 +000034602 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 +000034603 fi
34604 rm -f conftest.*
34605fi
34606 ;;
34607 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34608 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34609 # are listed without --file. Let's play safe and only enable the eval
34610 # if we detect the quoting.
34611 case $CONFIG_FILES in
34612 *\'*) eval set x "$CONFIG_FILES" ;;
34613 *) set x $CONFIG_FILES ;;
34614 esac
34615 shift
34616 for mf
34617 do
34618 # Strip MF so we end up with the name of the file.
34619 mf=`echo "$mf" | sed -e 's/:.*$//'`
34620 # Check whether this is an Automake generated Makefile or not.
34621 # We used to match only the files named `Makefile.in', but
34622 # some people rename them; so instead we look at the file content.
34623 # Grep'ing the first line is not enough: some people post-process
34624 # each Makefile.in and add a new line on top of each file to say so.
34625 # Grep'ing the whole file is not good either: AIX grep has a line
34626 # limit of 2048, but all sed's we know have understand at least 4000.
34627 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34628 dirpart=`$as_dirname -- "$mf" ||
34629$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34630 X"$mf" : 'X\(//\)[^/]' \| \
34631 X"$mf" : 'X\(//\)$' \| \
34632 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34633$as_echo X"$mf" |
34634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34635 s//\1/
34636 q
34637 }
34638 /^X\(\/\/\)[^/].*/{
34639 s//\1/
34640 q
34641 }
34642 /^X\(\/\/\)$/{
34643 s//\1/
34644 q
34645 }
34646 /^X\(\/\).*/{
34647 s//\1/
34648 q
34649 }
34650 s/.*/./; q'`
34651 else
34652 continue
34653 fi
34654 # Extract the definition of DEPDIR, am__include, and am__quote
34655 # from the Makefile without running `make'.
34656 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34657 test -z "$DEPDIR" && continue
34658 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34659 test -z "am__include" && continue
34660 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34661 # When using ansi2knr, U may be empty or an underscore; expand it
34662 U=`sed -n 's/^U = //p' < "$mf"`
34663 # Find all dependency output files, they are included files with
34664 # $(DEPDIR) in their names. We invoke sed twice because it is the
34665 # simplest approach to changing $(DEPDIR) to its actual value in the
34666 # expansion.
34667 for file in `sed -n "
34668 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34669 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34670 # Make sure the directory exists.
34671 test -f "$dirpart/$file" && continue
34672 fdir=`$as_dirname -- "$file" ||
34673$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34674 X"$file" : 'X\(//\)[^/]' \| \
34675 X"$file" : 'X\(//\)$' \| \
34676 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34677$as_echo X"$file" |
34678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34679 s//\1/
34680 q
34681 }
34682 /^X\(\/\/\)[^/].*/{
34683 s//\1/
34684 q
34685 }
34686 /^X\(\/\/\)$/{
34687 s//\1/
34688 q
34689 }
34690 /^X\(\/\).*/{
34691 s//\1/
34692 q
34693 }
34694 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034695 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034696 # echo "creating $dirpart/$file"
34697 echo '# dummy' > "$dirpart/$file"
34698 done
34699 done
34700}
34701 ;;
34702 "libtool":C)
34703
34704 # See if we are running on zsh, and set the options which allow our
34705 # commands through without removal of \ escapes.
34706 if test -n "${ZSH_VERSION+set}" ; then
34707 setopt NO_GLOB_SUBST
34708 fi
34709
34710 cfgfile="${ofile}T"
34711 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34712 $RM "$cfgfile"
34713
34714 cat <<_LT_EOF >> "$cfgfile"
34715#! $SHELL
34716
34717# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34718# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34720# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34721#
34722# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034723# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34724# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034725# Written by Gordon Matzigkeit, 1996
34726#
34727# This file is part of GNU Libtool.
34728#
34729# GNU Libtool is free software; you can redistribute it and/or
34730# modify it under the terms of the GNU General Public License as
34731# published by the Free Software Foundation; either version 2 of
34732# the License, or (at your option) any later version.
34733#
34734# As a special exception to the GNU General Public License,
34735# if you distribute this file as part of a program or library that
34736# is built using GNU Libtool, you may include this file under the
34737# same distribution terms that you use for the rest of that program.
34738#
34739# GNU Libtool is distributed in the hope that it will be useful,
34740# but WITHOUT ANY WARRANTY; without even the implied warranty of
34741# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34742# GNU General Public License for more details.
34743#
34744# You should have received a copy of the GNU General Public License
34745# along with GNU Libtool; see the file COPYING. If not, a copy
34746# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34747# obtained by writing to the Free Software Foundation, Inc.,
34748# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34749
34750
34751# The names of the tagged configurations supported by this script.
34752available_tags="CXX "
34753
34754# ### BEGIN LIBTOOL CONFIG
34755
34756# A sed program that does not truncate output.
34757SED=$lt_SED
34758
34759# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34760Xsed="\$SED -e 1s/^X//"
34761
34762# A grep program that handles long lines.
34763GREP=$lt_GREP
34764
34765# An ERE matcher.
34766EGREP=$lt_EGREP
34767
34768# A literal string matcher.
34769FGREP=$lt_FGREP
34770
cristyfd9dcd42010-08-08 18:07:02 +000034771# Shell to use when invoking shell scripts.
34772SHELL=$lt_SHELL
34773
34774# An echo program that protects backslashes.
34775ECHO=$lt_ECHO
34776
cristy3ed852e2009-09-05 21:47:34 +000034777# Which release of libtool.m4 was used?
34778macro_version=$macro_version
34779macro_revision=$macro_revision
34780
34781# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034782AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034783
34784# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034785DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034786
34787# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034788OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034789
34790# Whether or not to build shared libraries.
34791build_libtool_libs=$enable_shared
34792
34793# Whether or not to build static libraries.
34794build_old_libs=$enable_static
34795
34796# What type of objects to build.
34797pic_mode=$pic_mode
34798
34799# Whether or not to optimize for fast installation.
34800fast_install=$enable_fast_install
34801
34802# The host system.
34803host_alias=$host_alias
34804host=$host
34805host_os=$host_os
34806
34807# The build system.
34808build_alias=$build_alias
34809build=$build
34810build_os=$build_os
34811
34812# A BSD- or MS-compatible name lister.
34813NM=$lt_NM
34814
34815# Whether we need soft or hard links.
34816LN_S=$lt_LN_S
34817
34818# What is the maximum length of a command?
34819max_cmd_len=$max_cmd_len
34820
34821# Object file suffix (normally "o").
34822objext=$ac_objext
34823
34824# Executable file suffix (normally "").
34825exeext=$exeext
34826
34827# whether the shell understands "unset".
34828lt_unset=$lt_unset
34829
34830# turn spaces into newlines.
34831SP2NL=$lt_lt_SP2NL
34832
34833# turn newlines into spaces.
34834NL2SP=$lt_lt_NL2SP
34835
cristy3ed852e2009-09-05 21:47:34 +000034836# Method to check whether dependent libraries are shared objects.
34837deplibs_check_method=$lt_deplibs_check_method
34838
34839# Command to use when deplibs_check_method == "file_magic".
34840file_magic_cmd=$lt_file_magic_cmd
34841
34842# The archiver.
34843AR=$lt_AR
34844AR_FLAGS=$lt_AR_FLAGS
34845
34846# A symbol stripping program.
34847STRIP=$lt_STRIP
34848
34849# Commands used to install an old-style archive.
34850RANLIB=$lt_RANLIB
34851old_postinstall_cmds=$lt_old_postinstall_cmds
34852old_postuninstall_cmds=$lt_old_postuninstall_cmds
34853
cristyfd9dcd42010-08-08 18:07:02 +000034854# Whether to use a lock for old archive extraction.
34855lock_old_archive_extraction=$lock_old_archive_extraction
34856
cristy3ed852e2009-09-05 21:47:34 +000034857# A C compiler.
34858LTCC=$lt_CC
34859
34860# LTCC compiler flags.
34861LTCFLAGS=$lt_CFLAGS
34862
34863# Take the output of nm and produce a listing of raw symbols and C names.
34864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34865
34866# Transform the output of nm in a proper C declaration.
34867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34868
34869# Transform the output of nm in a C name address pair.
34870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34871
34872# Transform the output of nm in a C name address pair when lib prefix is needed.
34873global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34874
34875# The name of the directory that contains temporary libtool files.
34876objdir=$objdir
34877
cristy3ed852e2009-09-05 21:47:34 +000034878# Used to examine libraries when file_magic_cmd begins with "file".
34879MAGIC_CMD=$MAGIC_CMD
34880
34881# Must we lock files when doing compilation?
34882need_locks=$lt_need_locks
34883
34884# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34885DSYMUTIL=$lt_DSYMUTIL
34886
34887# Tool to change global to local symbols on Mac OS X.
34888NMEDIT=$lt_NMEDIT
34889
34890# Tool to manipulate fat objects and archives on Mac OS X.
34891LIPO=$lt_LIPO
34892
34893# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34894OTOOL=$lt_OTOOL
34895
34896# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34897OTOOL64=$lt_OTOOL64
34898
34899# Old archive suffix (normally "a").
34900libext=$libext
34901
34902# Shared library suffix (normally ".so").
34903shrext_cmds=$lt_shrext_cmds
34904
34905# The commands to extract the exported symbol list from a shared archive.
34906extract_expsyms_cmds=$lt_extract_expsyms_cmds
34907
34908# Variables whose values should be saved in libtool wrapper scripts and
34909# restored at link time.
34910variables_saved_for_relink=$lt_variables_saved_for_relink
34911
34912# Do we need the "lib" prefix for modules?
34913need_lib_prefix=$need_lib_prefix
34914
34915# Do we need a version for libraries?
34916need_version=$need_version
34917
34918# Library versioning type.
34919version_type=$version_type
34920
34921# Shared library runtime path variable.
34922runpath_var=$runpath_var
34923
34924# Shared library path variable.
34925shlibpath_var=$shlibpath_var
34926
34927# Is shlibpath searched before the hard-coded library search path?
34928shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34929
34930# Format of library name prefix.
34931libname_spec=$lt_libname_spec
34932
34933# List of archive names. First name is the real one, the rest are links.
34934# The last name is the one that the linker finds with -lNAME
34935library_names_spec=$lt_library_names_spec
34936
34937# The coded name of the library, if different from the real name.
34938soname_spec=$lt_soname_spec
34939
cristyfd9dcd42010-08-08 18:07:02 +000034940# Permission mode override for installation of shared libraries.
34941install_override_mode=$lt_install_override_mode
34942
cristy3ed852e2009-09-05 21:47:34 +000034943# Command to use after installation of a shared archive.
34944postinstall_cmds=$lt_postinstall_cmds
34945
34946# Command to use after uninstallation of a shared archive.
34947postuninstall_cmds=$lt_postuninstall_cmds
34948
34949# Commands used to finish a libtool library installation in a directory.
34950finish_cmds=$lt_finish_cmds
34951
34952# As "finish_cmds", except a single script fragment to be evaled but
34953# not shown.
34954finish_eval=$lt_finish_eval
34955
34956# Whether we should hardcode library paths into libraries.
34957hardcode_into_libs=$hardcode_into_libs
34958
34959# Compile-time system search path for libraries.
34960sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34961
34962# Run-time system search path for libraries.
34963sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34964
34965# Whether dlopen is supported.
34966dlopen_support=$enable_dlopen
34967
34968# Whether dlopen of programs is supported.
34969dlopen_self=$enable_dlopen_self
34970
34971# Whether dlopen of statically linked programs is supported.
34972dlopen_self_static=$enable_dlopen_self_static
34973
34974# Commands to strip libraries.
34975old_striplib=$lt_old_striplib
34976striplib=$lt_striplib
34977
34978
34979# The linker used to build libraries.
34980LD=$lt_LD
34981
cristyfd9dcd42010-08-08 18:07:02 +000034982# How to create reloadable object files.
34983reload_flag=$lt_reload_flag
34984reload_cmds=$lt_reload_cmds
34985
cristy3ed852e2009-09-05 21:47:34 +000034986# Commands used to build an old-style archive.
34987old_archive_cmds=$lt_old_archive_cmds
34988
34989# A language specific compiler.
34990CC=$lt_compiler
34991
34992# Is the compiler the GNU compiler?
34993with_gcc=$GCC
34994
34995# Compiler flag to turn off builtin functions.
34996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34997
34998# How to pass a linker flag through the compiler.
34999wl=$lt_lt_prog_compiler_wl
35000
35001# Additional compiler flags for building library objects.
35002pic_flag=$lt_lt_prog_compiler_pic
35003
35004# Compiler flag to prevent dynamic linking.
35005link_static_flag=$lt_lt_prog_compiler_static
35006
35007# Does compiler simultaneously support -c and -o options?
35008compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35009
35010# Whether or not to add -lc for building shared libraries.
35011build_libtool_need_lc=$archive_cmds_need_lc
35012
35013# Whether or not to disallow shared libs when runtime libs are static.
35014allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35015
35016# Compiler flag to allow reflexive dlopens.
35017export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35018
35019# Compiler flag to generate shared objects directly from archives.
35020whole_archive_flag_spec=$lt_whole_archive_flag_spec
35021
35022# Whether the compiler copes with passing no objects directly.
35023compiler_needs_object=$lt_compiler_needs_object
35024
35025# Create an old-style archive from a shared archive.
35026old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35027
35028# Create a temporary old-style archive to link instead of a shared archive.
35029old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35030
35031# Commands used to build a shared archive.
35032archive_cmds=$lt_archive_cmds
35033archive_expsym_cmds=$lt_archive_expsym_cmds
35034
35035# Commands used to build a loadable module if different from building
35036# a shared archive.
35037module_cmds=$lt_module_cmds
35038module_expsym_cmds=$lt_module_expsym_cmds
35039
35040# Whether we are building with GNU ld or not.
35041with_gnu_ld=$lt_with_gnu_ld
35042
35043# Flag that allows shared libraries with undefined symbols to be built.
35044allow_undefined_flag=$lt_allow_undefined_flag
35045
35046# Flag that enforces no undefined symbols.
35047no_undefined_flag=$lt_no_undefined_flag
35048
35049# Flag to hardcode \$libdir into a binary during linking.
35050# This must work even if \$libdir does not exist
35051hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35052
35053# If ld is used when linking, flag to hardcode \$libdir into a binary
35054# during linking. This must work even if \$libdir does not exist.
35055hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35056
35057# Whether we need a single "-rpath" flag with a separated argument.
35058hardcode_libdir_separator=$lt_hardcode_libdir_separator
35059
35060# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35061# DIR into the resulting binary.
35062hardcode_direct=$hardcode_direct
35063
35064# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35065# DIR into the resulting binary and the resulting library dependency is
35066# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35067# library is relocated.
35068hardcode_direct_absolute=$hardcode_direct_absolute
35069
35070# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35071# into the resulting binary.
35072hardcode_minus_L=$hardcode_minus_L
35073
35074# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35075# into the resulting binary.
35076hardcode_shlibpath_var=$hardcode_shlibpath_var
35077
35078# Set to "yes" if building a shared library automatically hardcodes DIR
35079# into the library and all subsequent libraries and executables linked
35080# against it.
35081hardcode_automatic=$hardcode_automatic
35082
35083# Set to yes if linker adds runtime paths of dependent libraries
35084# to runtime path list.
35085inherit_rpath=$inherit_rpath
35086
35087# Whether libtool must link a program against all its dependency libraries.
35088link_all_deplibs=$link_all_deplibs
35089
35090# Fix the shell variable \$srcfile for the compiler.
35091fix_srcfile_path=$lt_fix_srcfile_path
35092
35093# Set to "yes" if exported symbols are required.
35094always_export_symbols=$always_export_symbols
35095
35096# The commands to list exported symbols.
35097export_symbols_cmds=$lt_export_symbols_cmds
35098
35099# Symbols that should not be listed in the preloaded symbols.
35100exclude_expsyms=$lt_exclude_expsyms
35101
35102# Symbols that must always be exported.
35103include_expsyms=$lt_include_expsyms
35104
35105# Commands necessary for linking programs (against libraries) with templates.
35106prelink_cmds=$lt_prelink_cmds
35107
35108# Specify filename containing input files.
35109file_list_spec=$lt_file_list_spec
35110
35111# How to hardcode a shared library path into an executable.
35112hardcode_action=$hardcode_action
35113
35114# The directories searched by this compiler when creating a shared library.
35115compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35116
35117# Dependencies to place before and after the objects being linked to
35118# create a shared library.
35119predep_objects=$lt_predep_objects
35120postdep_objects=$lt_postdep_objects
35121predeps=$lt_predeps
35122postdeps=$lt_postdeps
35123
35124# The library search path used internally by the compiler when linking
35125# a shared library.
35126compiler_lib_search_path=$lt_compiler_lib_search_path
35127
35128# ### END LIBTOOL CONFIG
35129
35130_LT_EOF
35131
35132 case $host_os in
35133 aix3*)
35134 cat <<\_LT_EOF >> "$cfgfile"
35135# AIX sometimes has problems with the GCC collect2 program. For some
35136# reason, if we set the COLLECT_NAMES environment variable, the problems
35137# vanish in a puff of smoke.
35138if test "X${COLLECT_NAMES+set}" != Xset; then
35139 COLLECT_NAMES=
35140 export COLLECT_NAMES
35141fi
35142_LT_EOF
35143 ;;
35144 esac
35145
35146
35147ltmain="$ac_aux_dir/ltmain.sh"
35148
35149
35150 # We use sed instead of cat because bash on DJGPP gets confused if
35151 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35152 # text mode, it properly converts lines to CR/LF. This bash problem
35153 # is reportedly fixed, but why not run on old versions too?
35154 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35155 || (rm -f "$cfgfile"; exit 1)
35156
35157 case $xsi_shell in
35158 yes)
35159 cat << \_LT_EOF >> "$cfgfile"
35160
35161# func_dirname file append nondir_replacement
35162# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35163# otherwise set result to NONDIR_REPLACEMENT.
35164func_dirname ()
35165{
35166 case ${1} in
35167 */*) func_dirname_result="${1%/*}${2}" ;;
35168 * ) func_dirname_result="${3}" ;;
35169 esac
35170}
35171
35172# func_basename file
35173func_basename ()
35174{
35175 func_basename_result="${1##*/}"
35176}
35177
35178# func_dirname_and_basename file append nondir_replacement
35179# perform func_basename and func_dirname in a single function
35180# call:
35181# dirname: Compute the dirname of FILE. If nonempty,
35182# add APPEND to the result, otherwise set result
35183# to NONDIR_REPLACEMENT.
35184# value returned in "$func_dirname_result"
35185# basename: Compute filename of FILE.
35186# value retuned in "$func_basename_result"
35187# Implementation must be kept synchronized with func_dirname
35188# and func_basename. For efficiency, we do not delegate to
35189# those functions but instead duplicate the functionality here.
35190func_dirname_and_basename ()
35191{
35192 case ${1} in
35193 */*) func_dirname_result="${1%/*}${2}" ;;
35194 * ) func_dirname_result="${3}" ;;
35195 esac
35196 func_basename_result="${1##*/}"
35197}
35198
35199# func_stripname prefix suffix name
35200# strip PREFIX and SUFFIX off of NAME.
35201# PREFIX and SUFFIX must not contain globbing or regex special
35202# characters, hashes, percent signs, but SUFFIX may contain a leading
35203# dot (in which case that matches only a dot).
35204func_stripname ()
35205{
35206 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35207 # positional parameters, so assign one to ordinary parameter first.
35208 func_stripname_result=${3}
35209 func_stripname_result=${func_stripname_result#"${1}"}
35210 func_stripname_result=${func_stripname_result%"${2}"}
35211}
35212
35213# func_opt_split
35214func_opt_split ()
35215{
35216 func_opt_split_opt=${1%%=*}
35217 func_opt_split_arg=${1#*=}
35218}
35219
35220# func_lo2o object
35221func_lo2o ()
35222{
35223 case ${1} in
35224 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35225 *) func_lo2o_result=${1} ;;
35226 esac
35227}
35228
35229# func_xform libobj-or-source
35230func_xform ()
35231{
35232 func_xform_result=${1%.*}.lo
35233}
35234
35235# func_arith arithmetic-term...
35236func_arith ()
35237{
35238 func_arith_result=$(( $* ))
35239}
35240
35241# func_len string
35242# STRING may not start with a hyphen.
35243func_len ()
35244{
35245 func_len_result=${#1}
35246}
35247
35248_LT_EOF
35249 ;;
35250 *) # Bourne compatible functions.
35251 cat << \_LT_EOF >> "$cfgfile"
35252
35253# func_dirname file append nondir_replacement
35254# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35255# otherwise set result to NONDIR_REPLACEMENT.
35256func_dirname ()
35257{
35258 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035259 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035260 if test "X$func_dirname_result" = "X${1}"; then
35261 func_dirname_result="${3}"
35262 else
35263 func_dirname_result="$func_dirname_result${2}"
35264 fi
35265}
35266
35267# func_basename file
35268func_basename ()
35269{
cristyfd9dcd42010-08-08 18:07:02 +000035270 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035271}
35272
35273
35274# func_stripname prefix suffix name
35275# strip PREFIX and SUFFIX off of NAME.
35276# PREFIX and SUFFIX must not contain globbing or regex special
35277# characters, hashes, percent signs, but SUFFIX may contain a leading
35278# dot (in which case that matches only a dot).
35279# func_strip_suffix prefix name
35280func_stripname ()
35281{
35282 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035283 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35284 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035285 esac
35286}
35287
35288# sed scripts:
35289my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35290my_sed_long_arg='1s/^-[^=]*=//'
35291
35292# func_opt_split
35293func_opt_split ()
35294{
cristyfd9dcd42010-08-08 18:07:02 +000035295 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35296 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035297}
35298
35299# func_lo2o object
35300func_lo2o ()
35301{
cristyfd9dcd42010-08-08 18:07:02 +000035302 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035303}
35304
35305# func_xform libobj-or-source
35306func_xform ()
35307{
cristyfd9dcd42010-08-08 18:07:02 +000035308 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035309}
35310
35311# func_arith arithmetic-term...
35312func_arith ()
35313{
35314 func_arith_result=`expr "$@"`
35315}
35316
35317# func_len string
35318# STRING may not start with a hyphen.
35319func_len ()
35320{
35321 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35322}
35323
35324_LT_EOF
35325esac
35326
35327case $lt_shell_append in
35328 yes)
35329 cat << \_LT_EOF >> "$cfgfile"
35330
35331# func_append var value
35332# Append VALUE to the end of shell variable VAR.
35333func_append ()
35334{
35335 eval "$1+=\$2"
35336}
35337_LT_EOF
35338 ;;
35339 *)
35340 cat << \_LT_EOF >> "$cfgfile"
35341
35342# func_append var value
35343# Append VALUE to the end of shell variable VAR.
35344func_append ()
35345{
35346 eval "$1=\$$1\$2"
35347}
35348
35349_LT_EOF
35350 ;;
35351 esac
35352
35353
35354 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35355 || (rm -f "$cfgfile"; exit 1)
35356
35357 mv -f "$cfgfile" "$ofile" ||
35358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35359 chmod +x "$ofile"
35360
35361
35362 cat <<_LT_EOF >> "$ofile"
35363
35364# ### BEGIN LIBTOOL TAG CONFIG: CXX
35365
35366# The linker used to build libraries.
35367LD=$lt_LD_CXX
35368
cristyfd9dcd42010-08-08 18:07:02 +000035369# How to create reloadable object files.
35370reload_flag=$lt_reload_flag_CXX
35371reload_cmds=$lt_reload_cmds_CXX
35372
cristy3ed852e2009-09-05 21:47:34 +000035373# Commands used to build an old-style archive.
35374old_archive_cmds=$lt_old_archive_cmds_CXX
35375
35376# A language specific compiler.
35377CC=$lt_compiler_CXX
35378
35379# Is the compiler the GNU compiler?
35380with_gcc=$GCC_CXX
35381
35382# Compiler flag to turn off builtin functions.
35383no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35384
35385# How to pass a linker flag through the compiler.
35386wl=$lt_lt_prog_compiler_wl_CXX
35387
35388# Additional compiler flags for building library objects.
35389pic_flag=$lt_lt_prog_compiler_pic_CXX
35390
35391# Compiler flag to prevent dynamic linking.
35392link_static_flag=$lt_lt_prog_compiler_static_CXX
35393
35394# Does compiler simultaneously support -c and -o options?
35395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35396
35397# Whether or not to add -lc for building shared libraries.
35398build_libtool_need_lc=$archive_cmds_need_lc_CXX
35399
35400# Whether or not to disallow shared libs when runtime libs are static.
35401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35402
35403# Compiler flag to allow reflexive dlopens.
35404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35405
35406# Compiler flag to generate shared objects directly from archives.
35407whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35408
35409# Whether the compiler copes with passing no objects directly.
35410compiler_needs_object=$lt_compiler_needs_object_CXX
35411
35412# Create an old-style archive from a shared archive.
35413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35414
35415# Create a temporary old-style archive to link instead of a shared archive.
35416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35417
35418# Commands used to build a shared archive.
35419archive_cmds=$lt_archive_cmds_CXX
35420archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35421
35422# Commands used to build a loadable module if different from building
35423# a shared archive.
35424module_cmds=$lt_module_cmds_CXX
35425module_expsym_cmds=$lt_module_expsym_cmds_CXX
35426
35427# Whether we are building with GNU ld or not.
35428with_gnu_ld=$lt_with_gnu_ld_CXX
35429
35430# Flag that allows shared libraries with undefined symbols to be built.
35431allow_undefined_flag=$lt_allow_undefined_flag_CXX
35432
35433# Flag that enforces no undefined symbols.
35434no_undefined_flag=$lt_no_undefined_flag_CXX
35435
35436# Flag to hardcode \$libdir into a binary during linking.
35437# This must work even if \$libdir does not exist
35438hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35439
35440# If ld is used when linking, flag to hardcode \$libdir into a binary
35441# during linking. This must work even if \$libdir does not exist.
35442hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35443
35444# Whether we need a single "-rpath" flag with a separated argument.
35445hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35446
35447# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35448# DIR into the resulting binary.
35449hardcode_direct=$hardcode_direct_CXX
35450
35451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35452# DIR into the resulting binary and the resulting library dependency is
35453# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35454# library is relocated.
35455hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35456
35457# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35458# into the resulting binary.
35459hardcode_minus_L=$hardcode_minus_L_CXX
35460
35461# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35462# into the resulting binary.
35463hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35464
35465# Set to "yes" if building a shared library automatically hardcodes DIR
35466# into the library and all subsequent libraries and executables linked
35467# against it.
35468hardcode_automatic=$hardcode_automatic_CXX
35469
35470# Set to yes if linker adds runtime paths of dependent libraries
35471# to runtime path list.
35472inherit_rpath=$inherit_rpath_CXX
35473
35474# Whether libtool must link a program against all its dependency libraries.
35475link_all_deplibs=$link_all_deplibs_CXX
35476
35477# Fix the shell variable \$srcfile for the compiler.
35478fix_srcfile_path=$lt_fix_srcfile_path_CXX
35479
35480# Set to "yes" if exported symbols are required.
35481always_export_symbols=$always_export_symbols_CXX
35482
35483# The commands to list exported symbols.
35484export_symbols_cmds=$lt_export_symbols_cmds_CXX
35485
35486# Symbols that should not be listed in the preloaded symbols.
35487exclude_expsyms=$lt_exclude_expsyms_CXX
35488
35489# Symbols that must always be exported.
35490include_expsyms=$lt_include_expsyms_CXX
35491
35492# Commands necessary for linking programs (against libraries) with templates.
35493prelink_cmds=$lt_prelink_cmds_CXX
35494
35495# Specify filename containing input files.
35496file_list_spec=$lt_file_list_spec_CXX
35497
35498# How to hardcode a shared library path into an executable.
35499hardcode_action=$hardcode_action_CXX
35500
35501# The directories searched by this compiler when creating a shared library.
35502compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35503
35504# Dependencies to place before and after the objects being linked to
35505# create a shared library.
35506predep_objects=$lt_predep_objects_CXX
35507postdep_objects=$lt_postdep_objects_CXX
35508predeps=$lt_predeps_CXX
35509postdeps=$lt_postdeps_CXX
35510
35511# The library search path used internally by the compiler when linking
35512# a shared library.
35513compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35514
35515# ### END LIBTOOL TAG CONFIG: CXX
35516_LT_EOF
35517
35518 ;;
35519 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35520 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35521 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35522 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35523 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35524 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35525
35526 esac
35527done # for ac_tag
35528
35529
cristy8b350f62009-11-15 23:12:43 +000035530as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035531_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035532ac_clean_files=$ac_clean_files_save
35533
35534test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035535 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035536
35537
35538# configure is writing to config.log, and then calls config.status.
35539# config.status does its own redirection, appending to config.log.
35540# Unfortunately, on DOS this fails, as config.log is still kept open
35541# by configure, so config.status won't be able to write to it; its
35542# output is simply discarded. So we exec the FD to /dev/null,
35543# effectively closing config.log, so it can be properly (re)opened and
35544# appended to by config.status. When coming back to configure, we
35545# need to make the FD available again.
35546if test "$no_create" != yes; then
35547 ac_cs_success=:
35548 ac_config_status_args=
35549 test "$silent" = yes &&
35550 ac_config_status_args="$ac_config_status_args --quiet"
35551 exec 5>/dev/null
35552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35553 exec 5>>config.log
35554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35555 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035556 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035557fi
35558if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035560$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35561fi
35562
35563
35564rm -f magick-version
35565
cristy430a7312010-01-21 20:44:04 +000035566result_dejavu_font_dir='none'
35567if test "${dejavu_font_dir}x" != 'x'; then
35568 result_dejavu_font_dir=$dejavu_font_dir
35569fi
35570
cristy3ed852e2009-09-05 21:47:34 +000035571result_ghostscript_font_dir='none'
35572if test "${ghostscript_font_dir}x" != 'x'; then
35573 result_ghostscript_font_dir=$ghostscript_font_dir
35574fi
35575
35576result_windows_font_dir='none'
35577if test "${windows_font_dir}x" != 'x'; then
35578 result_windows_font_dir=${windows_font_dir}
35579fi
35580
cristy8b350f62009-11-15 23:12:43 +000035581{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035582ImageMagick is configured as follows. Please verify that this configuration
35583matches your expectations.
35584
35585Host system type: $host
35586Build system type: $build
35587
35588 Option Value
35589-------------------------------------------------------------------------------
35590Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35591Static libraries --enable-static=$enable_static $libtool_build_static_libs
35592Module support --with-modules=$with_modules $with_modules
35593GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35594Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35595High Dynamic Range Imagery
35596 --enable-hdri=$enable_hdri $enable_hdri
35597
35598Delegate Configuration:
35599BZLIB --with-bzlib=$with_bzlib $have_bzlib
35600Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035601Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035602DJVU --with-djvu=$with_djvu $have_djvu
35603DPS --with-dps=$with_dps $have_dps
35604FFTW --with-fftw=$with_fftw $have_fftw
35605FlashPIX --with-fpx=$with_fpx $have_fpx
35606FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35607FreeType --with-freetype=$with_freetype $have_freetype
35608GhostPCL None $PCLDelegate ($PCLVersion)
35609GhostXPS None $XPSDelegate ($XPSVersion)
35610Ghostscript None $PSDelegate ($GSVersion)
35611Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35612Ghostscript lib --with-gslib=$with_gslib $have_gslib
35613Graphviz --with-gvc=$with_gvc $have_gvc
35614JBIG --with-jbig=$with_jbig $have_jbig
35615JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35616JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035617LCMS v1 --with-lcms=$with_lcms $have_lcms
35618LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035619LQR --with-lqr=$with_lqr $have_lqr
35620Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35621OpenEXR --with-openexr=$with_openexr $have_openexr
35622PERL --with-perl=$with_perl $have_perl
35623PNG --with-png=$with_png $have_png
35624RSVG --with-rsvg=$with_rsvg $have_rsvg
35625TIFF --with-tiff=$with_tiff $have_tiff
35626Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35627WMF --with-wmf=$with_wmf $have_wmf
35628X11 --with-x=$with_x $have_x
35629XML --with-xml=$with_xml $have_xml
35630ZLIB --with-zlib=$with_zlib $have_zlib
35631
35632X11 Configuration:
35633 X_CFLAGS = $X_CFLAGS
35634 X_PRE_LIBS = $X_PRE_LIBS
35635 X_LIBS = $X_LIBS
35636 X_EXTRA_LIBS = $X_EXTRA_LIBS
35637
35638Options used to compile and link:
35639 PREFIX = $PREFIX_DIR
35640 EXEC-PREFIX = $EXEC_PREFIX_DIR
35641 VERSION = $PACKAGE_VERSION
35642 CC = $CC
35643 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035644 CPPFLAGS = $MAGICK_CPPFLAGS
35645 PCFLAGS = $MAGICK_PCFLAGS
35646 DEFS = $DEFS
35647 LDFLAGS = $LDFLAGS
35648 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35649 LIBS = $MAGICK_LIBS
35650 CXX = $CXX
35651 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035652 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035653" >&5
35654$as_echo "
35655ImageMagick is configured as follows. Please verify that this configuration
35656matches your expectations.
35657
35658Host system type: $host
35659Build system type: $build
35660
35661 Option Value
35662-------------------------------------------------------------------------------
35663Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35664Static libraries --enable-static=$enable_static $libtool_build_static_libs
35665Module support --with-modules=$with_modules $with_modules
35666GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35667Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35668High Dynamic Range Imagery
35669 --enable-hdri=$enable_hdri $enable_hdri
35670
35671Delegate Configuration:
35672BZLIB --with-bzlib=$with_bzlib $have_bzlib
35673Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035674Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035675DJVU --with-djvu=$with_djvu $have_djvu
35676DPS --with-dps=$with_dps $have_dps
35677FFTW --with-fftw=$with_fftw $have_fftw
35678FlashPIX --with-fpx=$with_fpx $have_fpx
35679FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35680FreeType --with-freetype=$with_freetype $have_freetype
35681GhostPCL None $PCLDelegate ($PCLVersion)
35682GhostXPS None $XPSDelegate ($XPSVersion)
35683Ghostscript None $PSDelegate ($GSVersion)
35684Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35685Ghostscript lib --with-gslib=$with_gslib $have_gslib
35686Graphviz --with-gvc=$with_gvc $have_gvc
35687JBIG --with-jbig=$with_jbig $have_jbig
35688JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35689JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035690LCMS v1 --with-lcms=$with_lcms $have_lcms
35691LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035692LQR --with-lqr=$with_lqr $have_lqr
35693Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35694OpenEXR --with-openexr=$with_openexr $have_openexr
35695PERL --with-perl=$with_perl $have_perl
35696PNG --with-png=$with_png $have_png
35697RSVG --with-rsvg=$with_rsvg $have_rsvg
35698TIFF --with-tiff=$with_tiff $have_tiff
35699Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35700WMF --with-wmf=$with_wmf $have_wmf
35701X11 --with-x=$with_x $have_x
35702XML --with-xml=$with_xml $have_xml
35703ZLIB --with-zlib=$with_zlib $have_zlib
35704
35705X11 Configuration:
35706 X_CFLAGS = $X_CFLAGS
35707 X_PRE_LIBS = $X_PRE_LIBS
35708 X_LIBS = $X_LIBS
35709 X_EXTRA_LIBS = $X_EXTRA_LIBS
35710
35711Options used to compile and link:
35712 PREFIX = $PREFIX_DIR
35713 EXEC-PREFIX = $EXEC_PREFIX_DIR
35714 VERSION = $PACKAGE_VERSION
35715 CC = $CC
35716 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035717 CPPFLAGS = $MAGICK_CPPFLAGS
35718 PCFLAGS = $MAGICK_PCFLAGS
35719 DEFS = $DEFS
35720 LDFLAGS = $LDFLAGS
35721 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35722 LIBS = $MAGICK_LIBS
35723 CXX = $CXX
35724 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035725 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035726" >&6; }